@eka-care/medassist-widget 0.1.79 → 0.1.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,12 @@
1
- var MedAssistWidget=(function(wo){"use strict";var Qr,lA,Bl,dt,ml,wl,Cl,Co,On,Fr,yl,yo,Eo,vo,El,Rn={},Dn=[],fp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ur=Array.isArray;function Pe(A,e){for(var t in e)A[t]=e[t];return A}function bo(A){A&&A.parentNode&&A.parentNode.removeChild(A)}function pe(A,e,t){var r,n,i,o={};for(i in e)i=="key"?r=e[i]:i=="ref"?n=e[i]:o[i]=e[i];if(arguments.length>2&&(o.children=arguments.length>3?Qr.call(arguments,2):t),typeof A=="function"&&A.defaultProps!=null)for(i in A.defaultProps)o[i]===void 0&&(o[i]=A.defaultProps[i]);return xr(A,o,r,n,null)}function xr(A,e,t,r,n){var i={type:A,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++Bl,__i:-1,__u:0};return n==null&&lA.vnode!=null&&lA.vnode(i),i}function vl(){return{current:null}}function QA(A){return A.children}function ve(A,e){this.props=A,this.context=e}function Xt(A,e){if(e==null)return A.__?Xt(A.__,A.__i+1):null;for(var t;e<A.__k.length;e++)if((t=A.__k[e])!=null&&t.__e!=null)return t.__e;return typeof A.type=="function"?Xt(A):null}function hp(A){if(A.__P&&A.__d){var e=A.__v,t=e.__e,r=[],n=[],i=Pe({},e);i.__v=e.__v+1,lA.vnode&&lA.vnode(i),Fo(A.__P,i,e,A.__n,A.__P.namespaceURI,32&e.__u?[t]:null,r,t??Xt(e),!!(32&e.__u),n),i.__v=e.__v,i.__.__k[i.__i]=i,Sl(r,i,n),e.__e=e.__=null,i.__e!=t&&bl(i)}}function bl(A){if((A=A.__)!=null&&A.__c!=null)return A.__e=A.__c.base=null,A.__k.some(function(e){if(e!=null&&e.__e!=null)return A.__e=A.__c.base=e.__e}),bl(A)}function Qo(A){(!A.__d&&(A.__d=!0)&&dt.push(A)&&!Pn.__r++||ml!=lA.debounceRendering)&&((ml=lA.debounceRendering)||wl)(Pn)}function Pn(){try{for(var A,e=1;dt.length;)dt.length>e&&dt.sort(Cl),A=dt.shift(),e=dt.length,hp(A)}finally{dt.length=Pn.__r=0}}function Ql(A,e,t,r,n,i,o,s,a,l,d){var u,h,f,g,p,w,m,C=r&&r.__k||Dn,b=e.length;for(a=gp(t,e,C,a,b),u=0;u<b;u++)(f=t.__k[u])!=null&&(h=f.__i!=-1&&C[f.__i]||Rn,f.__i=u,w=Fo(A,f,h,n,i,o,s,a,l,d),g=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&xo(h.ref,null,f),d.push(f.ref,f.__c||g,f)),p==null&&g!=null&&(p=g),(m=!!(4&f.__u))||h.__k===f.__k?(a=Fl(f,a,A,m),m&&h.__e&&(h.__e=null)):typeof f.type=="function"&&w!==void 0?a=w:g&&(a=g.nextSibling),f.__u&=-7);return t.__e=p,a}function gp(A,e,t,r,n){var i,o,s,a,l,d=t.length,u=d,h=0;for(A.__k=new Array(n),i=0;i<n;i++)(o=e[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?o=A.__k[i]=xr(null,o,null,null,null):Ur(o)?o=A.__k[i]=xr(QA,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=A.__k[i]=xr(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):A.__k[i]=o,a=i+h,o.__=A,o.__b=A.__b+1,s=null,(l=o.__i=pp(o,t,a,u))!=-1&&(u--,(s=t[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(n>d?h--:n<d&&h++),typeof o.type!="function"&&(o.__u|=4)):l!=a&&(l==a-1?h--:l==a+1?h++:(l>a?h--:h++,o.__u|=4))):A.__k[i]=null;if(u)for(i=0;i<d;i++)(s=t[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Xt(s)),Il(s,s));return r}function Fl(A,e,t,r){var n,i;if(typeof A.type=="function"){for(n=A.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=A,e=Fl(n[i],e,t,r));return e}A.__e!=e&&(r&&(e&&A.type&&!e.parentNode&&(e=Xt(A)),t.insertBefore(A.__e,e||null)),e=A.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function $e(A,e){return e=e||[],A==null||typeof A=="boolean"||(Ur(A)?A.some(function(t){$e(t,e)}):e.push(A)),e}function pp(A,e,t,r){var n,i,o,s=A.key,a=A.type,l=e[t],d=l!=null&&(2&l.__u)==0;if(l===null&&s==null||d&&s==l.key&&a==l.type)return t;if(r>(d?1:0)){for(n=t-1,i=t+1;n>=0||i<e.length;)if((l=e[o=n>=0?n--:i++])!=null&&(2&l.__u)==0&&s==l.key&&a==l.type)return o}return-1}function Ul(A,e,t){e[0]=="-"?A.setProperty(e,t??""):A[e]=t==null?"":typeof t!="number"||fp.test(e)?t:t+"px"}function Kn(A,e,t,r,n){var i,o;A:if(e=="style")if(typeof t=="string")A.style.cssText=t;else{if(typeof r=="string"&&(A.style.cssText=r=""),r)for(e in r)t&&e in t||Ul(A.style,e,"");if(t)for(e in t)r&&t[e]==r[e]||Ul(A.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")i=e!=(e=e.replace(yl,"$1")),o=e.toLowerCase(),e=o in A||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),A.l||(A.l={}),A.l[e+i]=t,t?r?t[Fr]=r[Fr]:(t[Fr]=yo,A.addEventListener(e,i?vo:Eo,i)):A.removeEventListener(e,i?vo:Eo,i);else{if(n=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in A)try{A[e]=t??"";break A}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?A.removeAttribute(e):A.setAttribute(e,e=="popover"&&t==1?"":t))}}function xl(A){return function(e){if(this.l){var t=this.l[e.type+A];if(e[On]==null)e[On]=yo++;else if(e[On]<t[Fr])return;return t(lA.event?lA.event(e):e)}}}function Fo(A,e,t,r,n,i,o,s,a,l){var d,u,h,f,g,p,w,m,C,b,_,x,y,F,Q,E=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(a=!!(32&t.__u),i=[s=e.__e=t.__e]),(d=lA.__b)&&d(e);A:if(typeof E=="function")try{if(m=e.props,C=E.prototype&&E.prototype.render,b=(d=E.contextType)&&r[d.__c],_=d?b?b.props.value:d.__:r,t.__c?w=(u=e.__c=t.__c).__=u.__E:(C?e.__c=u=new E(m,_):(e.__c=u=new ve(m,_),u.constructor=E,u.render=mp),b&&b.sub(u),u.state||(u.state={}),u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),C&&u.__s==null&&(u.__s=u.state),C&&E.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Pe({},u.__s)),Pe(u.__s,E.getDerivedStateFromProps(m,u.__s))),f=u.props,g=u.state,u.__v=e,h)C&&E.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),C&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C&&E.getDerivedStateFromProps==null&&m!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,_),e.__v==t.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,_)===!1){e.__v!=t.__v&&(u.props=m,u.state=u.__s,u.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(I){I&&(I.__=e)}),Dn.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&o.push(u);break A}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,_),C&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,g,p)})}if(u.context=_,u.props=m,u.__P=A,u.__e=!1,x=lA.__r,y=0,C)u.state=u.__s,u.__d=!1,x&&x(e),d=u.render(u.props,u.state,u.context),Dn.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,x&&x(e),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++y<25);u.state=u.__s,u.getChildContext!=null&&(r=Pe(Pe({},r),u.getChildContext())),C&&!h&&u.getSnapshotBeforeUpdate!=null&&(p=u.getSnapshotBeforeUpdate(f,g)),F=d!=null&&d.type===QA&&d.key==null?_l(d.props.children):d,s=Ql(A,Ur(F)?F:[F],e,t,r,n,i,o,s,a,l),u.base=e.__e,e.__u&=-161,u.__h.length&&o.push(u),w&&(u.__E=u.__=null)}catch(I){if(e.__v=null,a||i!=null)if(I.then){for(e.__u|=a?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,e.__e=s}else{for(Q=i.length;Q--;)bo(i[Q]);Uo(e)}else e.__e=t.__e,e.__k=t.__k,I.then||Uo(e);lA.__e(I,e,t)}else i==null&&e.__v==t.__v?(e.__k=t.__k,e.__e=t.__e):s=e.__e=Bp(t.__e,e,t,r,n,i,o,a,l);return(d=lA.diffed)&&d(e),128&e.__u?void 0:s}function Uo(A){A&&(A.__c&&(A.__c.__e=!0),A.__k&&A.__k.some(Uo))}function Sl(A,e,t){for(var r=0;r<t.length;r++)xo(t[r],t[++r],t[++r]);lA.__c&&lA.__c(e,A),A.some(function(n){try{A=n.__h,n.__h=[],A.some(function(i){i.call(n)})}catch(i){lA.__e(i,n.__v)}})}function _l(A){return typeof A!="object"||A==null||A.__b>0?A:Ur(A)?A.map(_l):A.constructor!==void 0?null:Pe({},A)}function Bp(A,e,t,r,n,i,o,s,a){var l,d,u,h,f,g,p,w=t.props||Rn,m=e.props,C=e.type;if(C=="svg"?n="http://www.w3.org/2000/svg":C=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((f=i[l])&&"setAttribute"in f==!!C&&(C?f.localName==C:f.nodeType==3)){A=f,i[l]=null;break}}if(A==null){if(C==null)return document.createTextNode(m);A=document.createElementNS(n,C,m.is&&m),s&&(lA.__m&&lA.__m(e,i),s=!1),i=null}if(C==null)w===m||s&&A.data==m||(A.data=m);else{if(i=C=="textarea"&&m.defaultValue!=null?null:i&&Qr.call(A.childNodes),!s&&i!=null)for(w={},l=0;l<A.attributes.length;l++)w[(f=A.attributes[l]).name]=f.value;for(l in w)f=w[l],l=="dangerouslySetInnerHTML"?u=f:l=="children"||l in m||l=="value"&&"defaultValue"in m||l=="checked"&&"defaultChecked"in m||Kn(A,l,null,f,n);for(l in m)f=m[l],l=="children"?h=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?g=f:l=="checked"?p=f:s&&typeof f!="function"||w[l]===f||Kn(A,l,f,w[l],n);if(d)s||u&&(d.__html==u.__html||d.__html==A.innerHTML)||(A.innerHTML=d.__html),e.__k=[];else if(u&&(A.innerHTML=""),Ql(e.type=="template"?A.content:A,Ur(h)?h:[h],e,t,r,C=="foreignObject"?"http://www.w3.org/1999/xhtml":n,i,o,i?i[0]:t.__k&&Xt(t,0),s,a),i!=null)for(l=i.length;l--;)bo(i[l]);s&&C!="textarea"||(l="value",C=="progress"&&g==null?A.removeAttribute("value"):g!=null&&(g!==A[l]||C=="progress"&&!g||C=="option"&&g!=w[l])&&Kn(A,l,g,w[l],n),l="checked",p!=null&&p!=A[l]&&Kn(A,l,p,w[l],n))}return A}function xo(A,e,t){try{if(typeof A=="function"){var r=typeof A.__u=="function";r&&A.__u(),r&&e==null||(A.__u=A(e))}else A.current=e}catch(n){lA.__e(n,t)}}function Il(A,e,t){var r,n;if(lA.unmount&&lA.unmount(A),(r=A.ref)&&(r.current&&r.current!=A.__e||xo(r,null,e)),(r=A.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){lA.__e(i,e)}r.base=r.__P=null}if(r=A.__k)for(n=0;n<r.length;n++)r[n]&&Il(r[n],e,t||typeof A.type!="function");t||bo(A.__e),A.__c=A.__=A.__e=void 0}function mp(A,e,t){return this.constructor(A,t)}function Sr(A,e,t){var r,n,i,o;e==document&&(e=document.documentElement),lA.__&&lA.__(A,e),n=(r=typeof t=="function")?null:t&&t.__k||e.__k,i=[],o=[],Fo(e,A=(!r&&t||e).__k=pe(QA,null,[A]),n||Rn,Rn,e.namespaceURI,!r&&t?[t]:n?null:e.firstChild?Qr.call(e.childNodes):null,i,!r&&t?t:n?n.__e:e.firstChild,r,o),Sl(i,A,o)}function Tl(A,e){Sr(A,e,Tl)}function wp(A,e,t){var r,n,i,o,s=Pe({},A.props);for(i in A.type&&A.type.defaultProps&&(o=A.type.defaultProps),e)i=="key"?r=e[i]:i=="ref"?n=e[i]:s[i]=e[i]===void 0&&o!=null?o[i]:e[i];return arguments.length>2&&(s.children=arguments.length>3?Qr.call(arguments,2):t),xr(A.type,s,r||A.key,n||A.ref,null)}function qe(A){function e(t){var r,n;return this.getChildContext||(r=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(o){o.__e=!0,Qo(o)})},this.sub=function(i){r.add(i);var o=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),o&&o.call(i)}}),t.children}return e.__c="__cC"+El++,e.__=A,e.Provider=e.__l=(e.Consumer=function(t,r){return t.children(r)}).contextType=e,e}Qr=Dn.slice,lA={__e:function(A,e,t,r){for(var n,i,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(A)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(A,r||{}),o=n.__d),o)return n.__E=n}catch(s){A=s}throw A}},Bl=0,ve.prototype.setState=function(A,e){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Pe({},this.state),typeof A=="function"&&(A=A(Pe({},t),this.props)),A&&Pe(t,A),A!=null&&this.__v&&(e&&this._sb.push(e),Qo(this))},ve.prototype.forceUpdate=function(A){this.__v&&(this.__e=!0,A&&this.__h.push(A),Qo(this))},ve.prototype.render=QA,dt=[],wl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Cl=function(A,e){return A.__v.__b-e.__v.__b},Pn.__r=0,Co=Math.random().toString(8),On="__d"+Co,Fr="__a"+Co,yl=/(PointerCapture)$|Capture$/i,yo=0,Eo=xl(!1),vo=xl(!0),El=0;var Cp=0;function c(A,e,t,r,n,i){e||(e={});var o,s,a=e;if("ref"in a)for(s in a={},e)s=="ref"?o=e[s]:a[s]=e[s];var l={type:A,props:a,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Cp,__i:-1,__u:0,__source:n,__self:i};if(typeof A=="function"&&(o=A.defaultProps))for(s in o)a[s]===void 0&&(a[s]=o[s]);return lA.vnode&&lA.vnode(l),l}var Ze,xA,So,Nl,Yt=0,kl=[],MA=lA,Hl=MA.__b,Ll=MA.__r,Ml=MA.diffed,Ol=MA.__c,Rl=MA.unmount,Dl=MA.__;function It(A,e){MA.__h&&MA.__h(xA,A,Yt||e),Yt=0;var t=xA.__H||(xA.__H={__:[],__h:[]});return A>=t.__.length&&t.__.push({}),t.__[A]}function G(A){return Yt=1,jt(Kl,A)}function jt(A,e,t){var r=It(Ze++,2);if(r.t=A,!r.__c&&(r.__=[t?t(e):Kl(void 0,e),function(s){var a=r.__N?r.__N[0]:r.__[0],l=r.t(a,s);a!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=xA,!xA.__f)){var n=function(s,a,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return h.__c});if(d.every(function(h){return!h.__N}))return!i||i.call(this,s,a,l);var u=r.__c.props!==s;return d.some(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(u=!0)}}),i&&i.call(this,s,a,l)||u};xA.__f=!0;var i=xA.shouldComponentUpdate,o=xA.componentWillUpdate;xA.componentWillUpdate=function(s,a,l){if(this.__e){var d=i;i=void 0,n(s,a,l),i=d}o&&o.call(this,s,a,l)},xA.shouldComponentUpdate=n}return r.__N||r.__}function j(A,e){var t=It(Ze++,3);!MA.__s&&ko(t.__H,e)&&(t.__=A,t.u=e,xA.__H.__h.push(t))}function ke(A,e){var t=It(Ze++,4);!MA.__s&&ko(t.__H,e)&&(t.__=A,t.u=e,xA.__h.push(t))}function Z(A){return Yt=5,yA(function(){return{current:A}},[])}function _o(A,e,t){Yt=6,ke(function(){if(typeof A=="function"){var r=A(e());return function(){A(null),r&&typeof r=="function"&&r()}}if(A)return A.current=e(),function(){return A.current=null}},t==null?t:t.concat(A))}function yA(A,e){var t=It(Ze++,7);return ko(t.__H,e)&&(t.__=A(),t.__H=e,t.__h=A),t.__}function mA(A,e){return Yt=8,yA(function(){return A},e)}function At(A){var e=xA.context[A.__c],t=It(Ze++,9);return t.c=A,e?(t.__==null&&(t.__=!0,e.sub(xA)),e.props.value):A.__}function Io(A,e){MA.useDebugValue&&MA.useDebugValue(e?e(A):A)}function yp(A){var e=It(Ze++,10),t=G();return e.__=A,xA.componentDidCatch||(xA.componentDidCatch=function(r,n){e.__&&e.__(r,n),t[1](r)}),[t[0],function(){t[1](void 0)}]}function To(){var A=It(Ze++,11);if(!A.__){for(var e=xA.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);A.__="P"+t[0]+"-"+t[1]++}return A.__}function Ep(){for(var A;A=kl.shift();){var e=A.__H;if(A.__P&&e)try{e.__h.some(Vn),e.__h.some(No),e.__h=[]}catch(t){e.__h=[],MA.__e(t,A.__v)}}}MA.__b=function(A){xA=null,Hl&&Hl(A)},MA.__=function(A,e){A&&e.__k&&e.__k.__m&&(A.__m=e.__k.__m),Dl&&Dl(A,e)},MA.__r=function(A){Ll&&Ll(A),Ze=0;var e=(xA=A.__c).__H;e&&(So===xA?(e.__h=[],xA.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(Vn),e.__h.some(No),e.__h=[],Ze=0)),So=xA},MA.diffed=function(A){Ml&&Ml(A);var e=A.__c;e&&e.__H&&(e.__H.__h.length&&(kl.push(e)!==1&&Nl===MA.requestAnimationFrame||((Nl=MA.requestAnimationFrame)||vp)(Ep)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),So=xA=null},MA.__c=function(A,e){e.some(function(t){try{t.__h.some(Vn),t.__h=t.__h.filter(function(r){return!r.__||No(r)})}catch(r){e.some(function(n){n.__h&&(n.__h=[])}),e=[],MA.__e(r,t.__v)}}),Ol&&Ol(A,e)},MA.unmount=function(A){Rl&&Rl(A);var e,t=A.__c;t&&t.__H&&(t.__H.__.some(function(r){try{Vn(r)}catch(n){e=n}}),t.__H=void 0,e&&MA.__e(e,t.__v))};var Pl=typeof requestAnimationFrame=="function";function vp(A){var e,t=function(){clearTimeout(r),Pl&&cancelAnimationFrame(e),setTimeout(A)},r=setTimeout(t,35);Pl&&(e=requestAnimationFrame(t))}function Vn(A){var e=xA,t=A.__c;typeof t=="function"&&(A.__c=void 0,t()),xA=e}function No(A){var e=xA;A.__c=A.__(),xA=e}function ko(A,e){return!A||A.length!==e.length||e.some(function(t,r){return t!==A[r]})}function Kl(A,e){return typeof e=="function"?e(A):e}function Vl(A,e){for(var t in e)A[t]=e[t];return A}function Ho(A,e){for(var t in A)if(t!=="__source"&&!(t in e))return!0;for(var r in e)if(r!=="__source"&&A[r]!==e[r])return!0;return!1}function Lo(A,e){var t=e(),r=G({t:{__:t,u:e}}),n=r[0].t,i=r[1];return ke(function(){n.__=t,n.u=e,Mo(n)&&i({t:n})},[A,t,e]),j(function(){return Mo(n)&&i({t:n}),A(function(){Mo(n)&&i({t:n})})},[A]),t}function Mo(A){try{return!((e=A.__)===(t=A.u())&&(e!==0||1/e==1/t)||e!=e&&t!=t)}catch{return!0}var e,t}function Oo(A){A()}function Ro(A){return A}function Do(){return[!1,Oo]}var Po=ke;function Gn(A,e){this.props=A,this.context=e}function Ko(A,e){function t(n){var i=this.props.ref;return i!=n.ref&&i&&(typeof i=="function"?i(null):i.current=null),e?!e(this.props,n)||i!=n.ref:Ho(this.props,n)}function r(n){return this.shouldComponentUpdate=t,pe(A,n)}return r.displayName="Memo("+(A.displayName||A.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=A,r}(Gn.prototype=new ve).isPureReactComponent=!0,Gn.prototype.shouldComponentUpdate=function(A,e){return Ho(this.props,A)||Ho(this.state,e)};var Gl=lA.__b;lA.__b=function(A){A.type&&A.type.__f&&A.ref&&(A.props.ref=A.ref,A.ref=null),Gl&&Gl(A)};var bp=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function oA(A){function e(t){var r=Vl({},t);return delete r.ref,A(r,t.ref||null)}return e.$$typeof=bp,e.render=A,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(A.displayName||A.name)+")",e}var zl=function(A,e){return A==null?null:$e($e(A).map(e))},Be={map:zl,forEach:zl,count:function(A){return A?$e(A).length:0},only:function(A){var e=$e(A);if(e.length!==1)throw"Children.only";return e[0]},toArray:$e},Qp=lA.__e;lA.__e=function(A,e,t,r){if(A.then){for(var n,i=e;i=i.__;)if((n=i.__c)&&n.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),n.__c(A,e)}Qp(A,e,t,r)};var Wl=lA.unmount;function Xl(A,e,t){return A&&(A.__c&&A.__c.__H&&(A.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),A.__c.__H=null),(A=Vl({},A)).__c!=null&&(A.__c.__P===t&&(A.__c.__P=e),A.__c.__e=!0,A.__c=null),A.__k=A.__k&&A.__k.map(function(r){return Xl(r,e,t)})),A}function Yl(A,e,t){return A&&t&&(A.__v=null,A.__k=A.__k&&A.__k.map(function(r){return Yl(r,e,t)}),A.__c&&A.__c.__P===e&&(A.__e&&t.appendChild(A.__e),A.__c.__e=!0,A.__c.__P=t)),A}function ue(){this.__u=0,this.o=null,this.__b=null}function jl(A){var e=A.__&&A.__.__c;return e&&e.__a&&e.__a(A)}function He(A){var e,t,r,n=null;function i(o){if(e||(e=A()).then(function(s){s&&(n=s.default||s),r=!0},function(s){t=s,r=!0}),t)throw t;if(!r)throw e;return n?pe(n,o):null}return i.displayName="Lazy",i.__f=!0,i}function Jt(){this.i=null,this.l=null}lA.unmount=function(A){var e=A.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&A.__u&&(A.type=null),Wl&&Wl(A)},(ue.prototype=new ve).__c=function(A,e){var t=e.__c,r=this;r.o==null&&(r.o=[]),r.o.push(t);var n=jl(r.__v),i=!1,o=function(){i||r.__z||(i=!0,t.__R=null,n?n(a):a())};t.__R=o;var s=t.__P;t.__P=null;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Yl(l,l.__c.__P,l.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.__P=s,d.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),A.then(o,o)},ue.prototype.componentWillUnmount=function(){this.o=[]},ue.prototype.render=function(A,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Xl(this.__b,t,r.__O=r.__P)}this.__b=null}var n=e.__a&&pe(QA,null,A.fallback);return n&&(n.__u&=-33),[pe(QA,null,e.__a?null:A.children),n]};var Jl=function(A,e,t){if(++t[1]===t[0]&&A.l.delete(e),A.props.revealOrder&&(A.props.revealOrder[0]!=="t"||!A.l.size))for(t=A.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;A.i=t=t[2]}};function Fp(A){return this.getChildContext=function(){return A.context},A.children}function Up(A){var e=this,t=A.h;if(e.componentWillUnmount=function(){Sr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==t&&e.componentWillUnmount(),!e.v){for(var r=e.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;e.h=t,e.v={nodeType:1,parentNode:t,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:t.namespaceURI,insertBefore:function(n,i){this.childNodes.push(n),e.h.insertBefore(n,i)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}}Sr(pe(Fp,{context:e.context},A.__v),e.v)}function $l(A,e){var t=pe(Up,{__v:A,h:e});return t.containerInfo=e,t}(Jt.prototype=new ve).__a=function(A){var e=this,t=jl(e.__v),r=e.l.get(A);return r[0]++,function(n){var i=function(){e.props.revealOrder?(r.push(n),Jl(e,A,r)):n()};t?t(i):i()}},Jt.prototype.render=function(A){this.i=null,this.l=new Map;var e=$e(A.children);A.revealOrder&&A.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.l.set(e[t],this.i=[1,0,this.i]);return A.children},Jt.prototype.componentDidUpdate=Jt.prototype.componentDidMount=function(){var A=this;this.l.forEach(function(e,t){Jl(A,t,e)})};var ql=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xp=/^(?: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]/,Sp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_p=/[A-Z0-9]/g,Ip=typeof document<"u",Tp=function(A){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(A)};function Vo(A,e,t){return e.__k==null&&(e.textContent=""),Sr(A,e),typeof t=="function"&&t(),A?A.__c:null}function Zl(A,e,t){return Tl(A,e),typeof t=="function"&&t(),A?A.__c:null}ve.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(A){Object.defineProperty(ve.prototype,A,{configurable:!0,get:function(){return this["UNSAFE_"+A]},set:function(e){Object.defineProperty(this,A,{configurable:!0,writable:!0,value:e})}})});var Ac=lA.event;lA.event=function(A){return Ac&&(A=Ac(A)),A.persist=function(){},A.isPropagationStopped=function(){return this.cancelBubble},A.isDefaultPrevented=function(){return this.defaultPrevented},A.nativeEvent=A};var Go,Np={configurable:!0,get:function(){return this.class}},ec=lA.vnode;lA.vnode=function(A){typeof A.type=="string"&&(function(e){var t=e.props,r=e.type,n={},i=r.indexOf("-")==-1;for(var o in t){var s=t[o];if(!(o==="value"&&"defaultValue"in t&&s==null||Ip&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var a=o.toLowerCase();o==="defaultValue"&&"value"in t&&t.value==null?o="value":o==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?o="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||Tp(t.type)?a==="onfocus"?o="onfocusin":a==="onblur"?o="onfocusout":Sp.test(o)&&(o=a):a=o="oninput":i&&xp.test(o)?o=o.replace(_p,"-$&").toLowerCase():s===null&&(s=void 0),a==="oninput"&&n[o=a]&&(o="oninputCapture"),n[o]=s}}r=="select"&&(n.multiple&&Array.isArray(n.value)&&(n.value=$e(t.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),n.defaultValue!=null&&(n.value=$e(t.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",Np)):t.className&&(n.class=n.className=t.className),e.props=n})(A),A.$$typeof=ql,ec&&ec(A)};var tc=lA.__r;lA.__r=function(A){tc&&tc(A),Go=A.__c};var rc=lA.diffed;lA.diffed=function(A){rc&&rc(A);var e=A.props,t=A.__e;t!=null&&A.type==="textarea"&&"value"in e&&e.value!==t.value&&(t.value=e.value==null?"":e.value),Go=null};var nc={ReactCurrentDispatcher:{current:{readContext:function(A){return Go.__n[A.__c].props.value},useCallback:mA,useContext:At,useDebugValue:Io,useDeferredValue:Ro,useEffect:j,useId:To,useImperativeHandle:_o,useInsertionEffect:Po,useLayoutEffect:ke,useMemo:yA,useReducer:jt,useRef:Z,useState:G,useSyncExternalStore:Lo,useTransition:Do}}},kp="18.3.1";function ic(A){return pe.bind(null,A)}function me(A){return!!A&&A.$$typeof===ql}function oc(A){return me(A)&&A.type===QA}function sc(A){return!!A&&typeof A.displayName=="string"&&A.displayName.indexOf("Memo(")==0}function Tt(A){return me(A)?wp.apply(null,arguments):A}function zo(A){return!!A.__k&&(Sr(null,A),!0)}function ac(A){return A&&(A.base||A.nodeType===1&&A)||null}var lc=function(A,e){return A(e)},cc=function(A,e){var t=lA.debounceRendering;lA.debounceRendering=function(n){return n()};var r=A(e);return lA.debounceRendering=t,r},uc=me,_r={useState:G,useId:To,useReducer:jt,useEffect:j,useLayoutEffect:ke,useInsertionEffect:Po,useTransition:Do,useDeferredValue:Ro,useSyncExternalStore:Lo,startTransition:Oo,useRef:Z,useImperativeHandle:_o,useMemo:yA,useCallback:mA,useContext:At,useDebugValue:Io,version:"18.3.1",Children:Be,render:Vo,hydrate:Zl,unmountComponentAtNode:zo,createPortal:$l,createElement:pe,createContext:qe,createFactory:ic,cloneElement:Tt,createRef:vl,Fragment:QA,isValidElement:me,isElement:uc,isFragment:oc,isMemo:sc,findDOMNode:ac,Component:ve,PureComponent:Gn,memo:Ko,forwardRef:oA,flushSync:cc,unstable_batchedUpdates:lc,StrictMode:QA,Suspense:ue,SuspenseList:Jt,lazy:He,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:nc};const Wo=Object.freeze(Object.defineProperty({__proto__:null,Children:Be,Component:ve,Fragment:QA,PureComponent:Gn,StrictMode:QA,Suspense:ue,SuspenseList:Jt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:nc,cloneElement:Tt,createContext:qe,createElement:pe,createFactory:ic,createPortal:$l,createRef:vl,default:_r,findDOMNode:ac,flushSync:cc,forwardRef:oA,hydrate:Zl,isElement:uc,isFragment:oc,isMemo:sc,isValidElement:me,lazy:He,memo:Ko,render:Vo,startTransition:Oo,unmountComponentAtNode:zo,unstable_batchedUpdates:lc,useCallback:mA,useContext:At,useDebugValue:Io,useDeferredValue:Ro,useEffect:j,useErrorBoundary:yp,useId:To,useImperativeHandle:_o,useInsertionEffect:Po,useLayoutEffect:ke,useMemo:yA,useReducer:jt,useRef:Z,useState:G,useSyncExternalStore:Lo,useTransition:Do,version:kp},Symbol.toStringTag,{value:"Module"}));function Hp(A){return{render:function(e){Vo(e,A)},unmount:function(){zo(A)}}}function dc(A,e){if(typeof A=="function")return A(e);A!=null&&(A.current=e)}function Xo(...A){return e=>{let t=!1;const r=A.map(n=>{const i=dc(n,e);return!t&&typeof i=="function"&&(t=!0),i});if(t)return()=>{for(let n=0;n<r.length;n++){const i=r[n];typeof i=="function"?i():dc(A[n],null)}}}}function et(...A){return mA(Xo(...A),A)}function Lp(A){const e=Mp(A),t=oA((r,n)=>{const{children:i,...o}=r,s=Be.toArray(i),a=s.find(Rp);if(a){const l=a.props.children,d=s.map(u=>u===a?Be.count(l)>1?Be.only(null):me(l)?l.props.children:null:u);return c(e,{...o,ref:n,children:me(l)?Tt(l,void 0,d):null})}return c(e,{...o,ref:n,children:i})});return t.displayName=`${A}.Slot`,t}function Mp(A){const e=oA((t,r)=>{const{children:n,...i}=t;if(me(n)){const o=Pp(n),s=Dp(i,n.props);return n.type!==QA&&(s.ref=r?Xo(r,o):o),Tt(n,s)}return Be.count(n)>1?Be.only(null):null});return e.displayName=`${A}.SlotClone`,e}var Op=Symbol("radix.slottable");function Rp(A){return me(A)&&typeof A.type=="function"&&"__radixId"in A.type&&A.type.__radixId===Op}function Dp(A,e){const t={...e};for(const r in e){const n=A[r],i=e[r];/^on[A-Z]/.test(r)?n&&i?t[r]=(...s)=>{const a=i(...s);return n(...s),a}:n&&(t[r]=n):r==="style"?t[r]={...n,...i}:r==="className"&&(t[r]=[n,i].filter(Boolean).join(" "))}return{...A,...t}}function Pp(A){let e=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=Object.getOwnPropertyDescriptor(A,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}var Kp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ft=Kp.reduce((A,e)=>{const t=Lp(`Primitive.${e}`),r=oA((n,i)=>{const{asChild:o,...s}=n,a=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c(a,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...A,[e]:r}},{}),ht=globalThis?.document?ke:()=>{};function Vp(A,e){return jt((t,r)=>e[t][r]??t,A)}var $t=A=>{const{present:e,children:t}=A,r=Gp(e),n=typeof t=="function"?t({present:r.isPresent}):Be.only(t),i=et(r.ref,zp(n));return typeof t=="function"||r.isPresent?Tt(n,{ref:i}):null};$t.displayName="Presence";function Gp(A){const[e,t]=G(),r=Z(null),n=Z(A),i=Z("none"),o=A?"mounted":"unmounted",[s,a]=Vp(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j(()=>{const l=zn(r.current);i.current=s==="mounted"?l:"none"},[s]),ht(()=>{const l=r.current,d=n.current;if(d!==A){const h=i.current,f=zn(l);A?a("MOUNT"):f==="none"||l?.display==="none"?a("UNMOUNT"):a(d&&h!==f?"ANIMATION_OUT":"UNMOUNT"),n.current=A}},[A,a]),ht(()=>{if(e){let l;const d=e.ownerDocument.defaultView??window,u=f=>{const p=zn(r.current).includes(CSS.escape(f.animationName));if(f.target===e&&p&&(a("ANIMATION_END"),!n.current)){const w=e.style.animationFillMode;e.style.animationFillMode="forwards",l=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=w)})}},h=f=>{f.target===e&&(i.current=zn(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{d.clearTimeout(l),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else a("ANIMATION_END")},[e,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:mA(l=>{r.current=l?getComputedStyle(l):null,t(l)},[])}}function zn(A){return A?.animationName||"none"}function zp(A){let e=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=Object.getOwnPropertyDescriptor(A,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}function fc(A,e=[]){let t=[];function r(i,o){const s=qe(o),a=t.length;t=[...t,o];const l=u=>{const{scope:h,children:f,...g}=u,p=h?.[A]?.[a]||s,w=yA(()=>g,Object.values(g));return c(p.Provider,{value:w,children:f})};l.displayName=i+"Provider";function d(u,h){const f=h?.[A]?.[a]||s,g=At(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[l,d]}const n=()=>{const i=t.map(o=>qe(o));return function(s){const a=s?.[A]||i;return yA(()=>({[`__scope${A}`]:{...s,[A]:a}}),[s,a])}};return n.scopeName=A,[r,Wp(n,...e)]}function Wp(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const u=a(i)[`__scope${l}`];return{...s,...u}},{});return yA(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function gt(A){const e=Z(A);return j(()=>{e.current=A}),yA(()=>(...t)=>e.current?.(...t),[])}var Xp=qe(void 0);function Yp(A){const e=At(Xp);return A||e||"ltr"}function jp(A,[e,t]){return Math.min(t,Math.max(e,A))}function tt(A,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(A?.(n),t===!1||!n.defaultPrevented)return e?.(n)}}function Jp(A,e){return jt((t,r)=>e[t][r]??t,A)}var Yo="ScrollArea",[hc]=fc(Yo),[$p,be]=hc(Yo),gc=oA((A,e)=>{const{__scopeScrollArea:t,type:r="hover",dir:n,scrollHideDelay:i=600,...o}=A,[s,a]=G(null),[l,d]=G(null),[u,h]=G(null),[f,g]=G(null),[p,w]=G(null),[m,C]=G(0),[b,_]=G(0),[x,y]=G(!1),[F,Q]=G(!1),E=et(e,k=>a(k)),I=Yp(n);return c($p,{scope:t,type:r,dir:I,scrollHideDelay:i,scrollArea:s,viewport:l,onViewportChange:d,content:u,onContentChange:h,scrollbarX:f,onScrollbarXChange:g,scrollbarXEnabled:x,onScrollbarXEnabledChange:y,scrollbarY:p,onScrollbarYChange:w,scrollbarYEnabled:F,onScrollbarYEnabledChange:Q,onCornerWidthChange:C,onCornerHeightChange:_,children:c(ft.div,{dir:I,...o,ref:E,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":b+"px",...A.style}})})});gc.displayName=Yo;var pc="ScrollAreaViewport",Bc=oA((A,e)=>{const{__scopeScrollArea:t,children:r,nonce:n,...i}=A,o=be(pc,t),s=Z(null),a=et(e,s,o.onViewportChange);return c(QA,{children:[c("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),c(ft.div,{"data-radix-scroll-area-viewport":"",...i,ref:a,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...A.style},children:c("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Bc.displayName=pc;var Ke="ScrollAreaScrollbar",jo=oA((A,e)=>{const{forceMount:t,...r}=A,n=be(Ke,A.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=n,s=A.orientation==="horizontal";return j(()=>(s?i(!0):o(!0),()=>{s?i(!1):o(!1)}),[s,i,o]),n.type==="hover"?c(qp,{...r,ref:e,forceMount:t}):n.type==="scroll"?c(Zp,{...r,ref:e,forceMount:t}):n.type==="auto"?c(mc,{...r,ref:e,forceMount:t}):n.type==="always"?c(Jo,{...r,ref:e}):null});jo.displayName=Ke;var qp=oA((A,e)=>{const{forceMount:t,...r}=A,n=be(Ke,A.__scopeScrollArea),[i,o]=G(!1);return j(()=>{const s=n.scrollArea;let a=0;if(s){const l=()=>{window.clearTimeout(a),o(!0)},d=()=>{a=window.setTimeout(()=>o(!1),n.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(a),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",d)}}},[n.scrollArea,n.scrollHideDelay]),c($t,{present:t||i,children:c(mc,{"data-state":i?"visible":"hidden",...r,ref:e})})}),Zp=oA((A,e)=>{const{forceMount:t,...r}=A,n=be(Ke,A.__scopeScrollArea),i=A.orientation==="horizontal",o=jn(()=>a("SCROLL_END"),100),[s,a]=Jp("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return j(()=>{if(s==="idle"){const l=window.setTimeout(()=>a("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,n.scrollHideDelay,a]),j(()=>{const l=n.viewport,d=i?"scrollLeft":"scrollTop";if(l){let u=l[d];const h=()=>{const f=l[d];u!==f&&(a("SCROLL"),o()),u=f};return l.addEventListener("scroll",h),()=>l.removeEventListener("scroll",h)}},[n.viewport,i,a,o]),c($t,{present:t||s!=="hidden",children:c(Jo,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:tt(A.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:tt(A.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),mc=oA((A,e)=>{const t=be(Ke,A.__scopeScrollArea),{forceMount:r,...n}=A,[i,o]=G(!1),s=A.orientation==="horizontal",a=jn(()=>{if(t.viewport){const l=t.viewport.offsetWidth<t.viewport.scrollWidth,d=t.viewport.offsetHeight<t.viewport.scrollHeight;o(s?l:d)}},10);return qt(t.viewport,a),qt(t.content,a),c($t,{present:r||i,children:c(Jo,{"data-state":i?"visible":"hidden",...n,ref:e})})}),Jo=oA((A,e)=>{const{orientation:t="vertical",...r}=A,n=be(Ke,A.__scopeScrollArea),i=Z(null),o=Z(0),[s,a]=G({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=vc(s.viewport,s.content),d={...r,sizes:s,onSizesChange:a,hasThumb:l>0&&l<1,onThumbChange:h=>i.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function u(h,f){return iB(h,o.current,s,f)}return t==="horizontal"?c(AB,{...d,ref:e,onThumbPositionChange:()=>{if(n.viewport&&i.current){const h=n.viewport.scrollLeft,f=bc(h,s,n.dir);i.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=u(h,n.dir))}}):t==="vertical"?c(eB,{...d,ref:e,onThumbPositionChange:()=>{if(n.viewport&&i.current){const h=n.viewport.scrollTop,f=bc(h,s);i.current.style.transform=`translate3d(0, ${f}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=u(h))}}):null}),AB=oA((A,e)=>{const{sizes:t,onSizesChange:r,...n}=A,i=be(Ke,A.__scopeScrollArea),[o,s]=G(),a=Z(null),l=et(e,a,i.onScrollbarXChange);return j(()=>{a.current&&s(getComputedStyle(a.current))},[a]),c(Cc,{"data-orientation":"horizontal",...n,ref:l,sizes:t,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Yn(t)+"px",...A.style},onThumbPointerDown:d=>A.onThumbPointerDown(d.x),onDragScroll:d=>A.onDragScroll(d.x),onWheelScroll:(d,u)=>{if(i.viewport){const h=i.viewport.scrollLeft+d.deltaX;A.onWheelScroll(h),Fc(h,u)&&d.preventDefault()}},onResize:()=>{a.current&&i.viewport&&o&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:Xn(o.paddingLeft),paddingEnd:Xn(o.paddingRight)}})}})}),eB=oA((A,e)=>{const{sizes:t,onSizesChange:r,...n}=A,i=be(Ke,A.__scopeScrollArea),[o,s]=G(),a=Z(null),l=et(e,a,i.onScrollbarYChange);return j(()=>{a.current&&s(getComputedStyle(a.current))},[a]),c(Cc,{"data-orientation":"vertical",...n,ref:l,sizes:t,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Yn(t)+"px",...A.style},onThumbPointerDown:d=>A.onThumbPointerDown(d.y),onDragScroll:d=>A.onDragScroll(d.y),onWheelScroll:(d,u)=>{if(i.viewport){const h=i.viewport.scrollTop+d.deltaY;A.onWheelScroll(h),Fc(h,u)&&d.preventDefault()}},onResize:()=>{a.current&&i.viewport&&o&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:Xn(o.paddingTop),paddingEnd:Xn(o.paddingBottom)}})}})}),[tB,wc]=hc(Ke),Cc=oA((A,e)=>{const{__scopeScrollArea:t,sizes:r,hasThumb:n,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:a,onDragScroll:l,onWheelScroll:d,onResize:u,...h}=A,f=be(Ke,t),[g,p]=G(null),w=et(e,E=>p(E)),m=Z(null),C=Z(""),b=f.viewport,_=r.content-r.viewport,x=gt(d),y=gt(a),F=jn(u,10);function Q(E){if(m.current){const I=E.clientX-m.current.left,k=E.clientY-m.current.top;l({x:I,y:k})}}return j(()=>{const E=I=>{const k=I.target;g?.contains(k)&&x(I,_)};return document.addEventListener("wheel",E,{passive:!1}),()=>document.removeEventListener("wheel",E,{passive:!1})},[b,g,_,x]),j(y,[r,y]),qt(g,F),qt(f.content,F),c(tB,{scope:t,scrollbar:g,hasThumb:n,onThumbChange:gt(i),onThumbPointerUp:gt(o),onThumbPositionChange:y,onThumbPointerDown:gt(s),children:c(ft.div,{...h,ref:w,style:{position:"absolute",...h.style},onPointerDown:tt(A.onPointerDown,E=>{E.button===0&&(E.target.setPointerCapture(E.pointerId),m.current=g.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),Q(E))}),onPointerMove:tt(A.onPointerMove,Q),onPointerUp:tt(A.onPointerUp,E=>{const I=E.target;I.hasPointerCapture(E.pointerId)&&I.releasePointerCapture(E.pointerId),document.body.style.webkitUserSelect=C.current,f.viewport&&(f.viewport.style.scrollBehavior=""),m.current=null})})})}),Wn="ScrollAreaThumb",yc=oA((A,e)=>{const{forceMount:t,...r}=A,n=wc(Wn,A.__scopeScrollArea);return c($t,{present:t||n.hasThumb,children:c(rB,{ref:e,...r})})}),rB=oA((A,e)=>{const{__scopeScrollArea:t,style:r,...n}=A,i=be(Wn,t),o=wc(Wn,t),{onThumbPositionChange:s}=o,a=et(e,u=>o.onThumbChange(u)),l=Z(void 0),d=jn(()=>{l.current&&(l.current(),l.current=void 0)},100);return j(()=>{const u=i.viewport;if(u){const h=()=>{if(d(),!l.current){const f=oB(u,s);l.current=f,s()}};return s(),u.addEventListener("scroll",h),()=>u.removeEventListener("scroll",h)}},[i.viewport,d,s]),c(ft.div,{"data-state":o.hasThumb?"visible":"hidden",...n,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:tt(A.onPointerDownCapture,u=>{const f=u.target.getBoundingClientRect(),g=u.clientX-f.left,p=u.clientY-f.top;o.onThumbPointerDown({x:g,y:p})}),onPointerUp:tt(A.onPointerUp,o.onThumbPointerUp)})});yc.displayName=Wn;var $o="ScrollAreaCorner",Ec=oA((A,e)=>{const t=be($o,A.__scopeScrollArea),r=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&r?c(nB,{...A,ref:e}):null});Ec.displayName=$o;var nB=oA((A,e)=>{const{__scopeScrollArea:t,...r}=A,n=be($o,t),[i,o]=G(0),[s,a]=G(0),l=!!(i&&s);return qt(n.scrollbarX,()=>{const d=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(d),a(d)}),qt(n.scrollbarY,()=>{const d=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(d),o(d)}),l?c(ft.div,{...r,ref:e,style:{width:i,height:s,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...A.style}}):null});function Xn(A){return A?parseInt(A,10):0}function vc(A,e){const t=A/e;return isNaN(t)?0:t}function Yn(A){const e=vc(A.viewport,A.content),t=A.scrollbar.paddingStart+A.scrollbar.paddingEnd,r=(A.scrollbar.size-t)*e;return Math.max(r,18)}function iB(A,e,t,r="ltr"){const n=Yn(t),i=n/2,o=e||i,s=n-o,a=t.scrollbar.paddingStart+o,l=t.scrollbar.size-t.scrollbar.paddingEnd-s,d=t.content-t.viewport,u=r==="ltr"?[0,d]:[d*-1,0];return Qc([a,l],u)(A)}function bc(A,e,t="ltr"){const r=Yn(e),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-n,o=e.content-e.viewport,s=i-r,a=t==="ltr"?[0,o]:[o*-1,0],l=jp(A,a);return Qc([0,o],[0,s])(l)}function Qc(A,e){return t=>{if(A[0]===A[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(A[1]-A[0]);return e[0]+r*(t-A[0])}}function Fc(A,e){return A>0&&A<e}var oB=(A,e=()=>{})=>{let t={left:A.scrollLeft,top:A.scrollTop},r=0;return(function n(){const i={left:A.scrollLeft,top:A.scrollTop},o=t.left!==i.left,s=t.top!==i.top;(o||s)&&e(),t=i,r=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(r)};function jn(A,e){const t=gt(A),r=Z(0);return j(()=>()=>window.clearTimeout(r.current),[]),mA(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(t,e)},[t,e])}function qt(A,e){const t=gt(e);ht(()=>{let r=0;if(A){const n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(A),()=>{window.cancelAnimationFrame(r),n.unobserve(A)}}},[A,t])}var Uc=gc,sB=Bc,aB=Ec;function xc(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}function lB(A){if(Object.prototype.hasOwnProperty.call(A,"__esModule"))return A;var e=A.default;if(typeof e=="function"){var t=function r(){var n=!1;try{n=this instanceof r}catch{}return n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(A).forEach(function(r){var n=Object.getOwnPropertyDescriptor(A,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return A[r]}})}),t}var Nt={},Ir={},qo={},Tr={},Nr={},kr={},Sc;function Zo(){if(Sc)return kr;Sc=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.EventEmitter=void 0;let A=class{eventListeners=new Map;on(t,r){const n=this.eventListeners.get(t)||new Set;n.add(r),this.eventListeners.set(t,n)}off(t,r){const n=this.eventListeners.get(t);n&&(n.delete(r),n.size===0&&this.eventListeners.delete(t))}emit(t,...r){const n=this.eventListeners.get(t);n&&n.forEach(i=>i(...r))}removeAllListeners(){this.eventListeners.clear()}};return kr.EventEmitter=A,kr}var kt={},_c;function Hr(){return _c||(_c=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.DisconnectionReason=kt.ConnectionStatus=void 0,kt.ConnectionStatus={CONNECTING:"connecting",CONNECTED:"connected",NOT_CONNECTED:"not_connected"},kt.DisconnectionReason={CLIENT_CLOSED:"client_closed",SERVER_CLOSED:"server_closed",CONNECTION_ERROR:"connection_error",AUTHENTICATION_ERROR:"authentication_error",MAX_RECONNECT_ATTEMPTS:"max_reconnect_attempts",TIMEOUT:"timeout",NETWORK_ERROR:"network_error"}),kt}var Ic;function As(){if(Ic)return Nr;Ic=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.BaseConnection=void 0;const A=Zo(),e=Hr();let t=class{status=e.ConnectionStatus.CONNECTING;queue=[];eventEmitter=new A.EventEmitter;disconnectionDetails=null;onErrorCallback=null;onDisconnectCallback=null;onMessageCallback=null;onOpenCallback=null;onStatusChangeCallback=null;getStatus(){return this.status}onOpen(n){this.onOpenCallback=n}onMessage(n){if(this.onMessageCallback=n,this.queue.length>0){const i=[...this.queue];this.queue.length=0,queueMicrotask(()=>{i.forEach(o=>{this.onMessageCallback?.(o)})})}}onDisconnect(n){this.onDisconnectCallback=n;const i=this.disconnectionDetails;i&&queueMicrotask(()=>{this.onDisconnectCallback?.(i)})}onError(n){this.onErrorCallback=n}on(n,i){this.eventEmitter.on(n,i)}off(n,i){this.eventEmitter.off(n,i)}emit(n,...i){this.eventEmitter.emit(n,...i)}onStatusChange(n){this.onStatusChangeCallback=n,queueMicrotask(()=>{n(this.status)})}disconnect(n){this.disconnectionDetails||(this.disconnectionDetails=n,this.updateStatus(e.ConnectionStatus.NOT_CONNECTED),this.onDisconnectCallback?.(n))}handleMessage(n){this.onMessageCallback?this.onMessageCallback(n):this.queue.push(n)}updateStatus(n){this.status!==n&&(this.status=n,this.onStatusChangeCallback?.(n))}};return Nr.BaseConnection=t,Nr}var es={},Tc;function Qe(){return Tc||(Tc=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.ValidationError=A.ConfigurationError=A.StoreError=A.MessageError=A.SessionError=A.FileError=A.AuthenticationError=A.RecordingError=A.ConnectionError=A.InternalServerError=A.RateLimitError=A.MethodNotAllowedError=A.NotFoundError=A.PermissionDeniedError=A.UnauthorizedError=A.BadRequestError=A.APIConnectionTimeoutError=A.APIUserAbortError=A.APIError=A.SynapseError=A.SynapseErrorCode=void 0,A.normalizeError=x,A.SynapseErrorCode={API:"API_ERROR",CONNECTION:"CONNECTION_ERROR",RECORDING:"RECORDING_ERROR",FILE:"FILE_ERROR",SESSION:"SESSION_ERROR",MESSAGE:"MESSAGE_ERROR",STORE:"STORE_ERROR",CONFIGURATION:"CONFIGURATION_ERROR",VALIDATION:"VALIDATION_ERROR",AUTH:"AUTH_ERROR",UNKNOWN:"UNKNOWN_ERROR"};class e extends Error{code;timestamp;cause;context;hint;displayMessage;constructor(F,Q=A.SynapseErrorCode.UNKNOWN,E={}){super(F),this.name="SynapseError",this.code=Q,this.timestamp=new Date,this.cause=E.cause,this.context=E.context,this.hint=E.hint,this.displayMessage=E.displayMessage||E?.hint||F,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}A.SynapseError=e;class t extends e{status;error;headers;constructor(F,Q,E,I){const k=t.makeMessage(Q,E,F);super(k,A.SynapseErrorCode.API,{cause:E,context:{status:Q,hasBody:!!E},hint:Q&&Q>=500?"Retry the request or contact support if the issue persists.":void 0,displayMessage:F||"Something went wrong"}),this.name="APIError",this.status=Q,this.error=E,this.headers=I}static makeMessage(F,Q,E){const I=Q instanceof Error?Q.message:E;return F&&I?`HTTP ${F}: ${I}`:F?`${F} status code (no body)`:I||"(no status code or body)"}static generate(F,Q,E,I){if(!F)return new r({message:E});const k=Q?.error,S=k&&typeof k=="object"&&!Array.isArray(k)?k:void 0;switch(F){case 400:return new i(E||"Bad Request",F,S,I);case 401:return new o(E||"Unauthorized",F,S,I);case 403:return new s(E||"Permission Denied",F,S,I);case 404:return new a(E||"Not Found",F,S,I);case 405:return new l(E||"Method Not Allowed",F,S,I);case 429:return new d(E||"Rate Limit Exceeded",F,S,I);case 500:return new u(E||"Internal Server Error",F,S,I);default:return new t(E||"API Error",F,S,I)}}}A.APIError=t;class r extends t{constructor({message:F}={}){super(F||"Request was aborted.",void 0,void 0,void 0),this.name="APIUserAbortError"}}A.APIUserAbortError=r;class n extends t{constructor({message:F}={}){super(F||"Request timed out.",void 0,void 0,void 0),this.name="APIConnectionTimeoutError"}}A.APIConnectionTimeoutError=n;class i extends t{constructor(F,Q,E,I){super(F,Q,E,I),this.name="BadRequestError"}}A.BadRequestError=i;class o extends t{constructor(F,Q,E,I){super(F,Q,E,I),this.name="UnauthorizedError"}}A.UnauthorizedError=o;class s extends t{constructor(F,Q,E,I){super(F,Q,E,I),this.name="PermissionDeniedError"}}A.PermissionDeniedError=s;class a extends t{constructor(F,Q,E,I){super(F,Q,E,I),this.name="NotFoundError"}}A.NotFoundError=a;class l extends t{constructor(F,Q,E,I){super(F,Q,E,I),this.name="MethodNotAllowedError"}}A.MethodNotAllowedError=l;class d extends t{constructor(F,Q,E,I){super(F,Q,E,I),this.name="RateLimitError"}}A.RateLimitError=d;class u extends t{constructor(F,Q,E,I){super(F,Q,E,I),this.name="InternalServerError"}}A.InternalServerError=u;class h extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.CONNECTION,Q),this.name="ConnectionError"}}A.ConnectionError=h;class f extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.RECORDING,Q),this.name="RecordingError"}}A.RecordingError=f;class g extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.AUTH,Q),this.name="AuthenticationError"}}A.AuthenticationError=g;class p extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.FILE,Q),this.name="FileError"}}A.FileError=p;class w extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.SESSION,Q),this.name="SessionError"}}A.SessionError=w;class m extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.MESSAGE,Q),this.name="MessageError"}}A.MessageError=m;class C extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.STORE,Q),this.name="StoreError"}}A.StoreError=C;class b extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.CONFIGURATION,Q),this.name="ConfigurationError"}}A.ConfigurationError=b;class _ extends e{constructor(F,Q={}){super(F,A.SynapseErrorCode.VALIDATION,Q),this.name="ValidationError"}}A.ValidationError=_;function x(y,F,Q,E={}){if(y instanceof F)return y;const I={...E,context:{...y instanceof e?y.context:void 0,...E.context},hint:E.hint??(y instanceof e?y.hint:void 0),cause:E.cause??y};if(y instanceof e)return new F(y.message,I);const k=y instanceof Error&&y.message?y.message:Q;return new F(k,I)}})(es)),es}var Nc;function kc(){if(Nc)return Tr;Nc=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.WebSocketConnection=void 0;const A=As(),e=Hr(),t=Qe();class r extends A.BaseConnection{conversationId;socket=null;config;authenticated=!1;constructor(i){super(),this.config={...i,reconnect:i.reconnect||!0,reconnectAttempts:i.reconnectAttempts||3,reconnectDelay:i.reconnectDelay||1e3},this.conversationId=i.auth.sessionId,this.connect()}connect(){try{if(this.socket&&this.socket.readyState===WebSocket.OPEN||this.authenticated)return;this.updateStatus(e.ConnectionStatus.CONNECTING);const i=this.buildConnectionUrl();this.socket=new WebSocket(i),this.socket.onopen=this.handleOpen.bind(this),this.socket.onmessage=this.handleSocketMessage.bind(this),this.socket.onerror=this.handleError.bind(this),this.socket.onclose=this.handleClose.bind(this)}catch(i){const o=(0,t.normalizeError)(i,t.ConnectionError,"Failed to establish WebSocket connection",{context:{stage:"connect"}});this.onErrorCallback?.(o),this.disconnect({code:1001,reason:e.DisconnectionReason.CONNECTION_ERROR,message:o.message,timestamp:new Date})}}buildConnectionUrl(){const i=new URL(this.config.serverUrl);return i.pathname=`/reloaded/ws/med-assist/session/${this.config.auth.sessionId}/`,i.toString()}handleOpen(){this.authenticated||this.socket?.readyState!==WebSocket.OPEN||this.onOpenCallback?.()}handleSocketMessage(i){try{const o=JSON.parse(i.data);this.handleMessage(o)}catch(o){const s=(0,t.normalizeError)(o,t.MessageError,"Failed to parse incoming WebSocket message",{context:{stage:"handleSocketMessage"}});this.onErrorCallback?.(s)}}handleError(i){}handleClose(i){const o=i.wasClean,s=i.code,a=i.reason;let l,d;this.authenticated=!1,!this.isConnected()&&(s===1e3?(l=e.DisconnectionReason.CLIENT_CLOSED,d="Connection closed normally"):s===1001||s===1006?(l=e.DisconnectionReason.NETWORK_ERROR,d=i.reason||"Network connection lost"):s===4001||s===1008?i.reason==="timeout"||i.reason==="Authentication timeout"?(l=e.DisconnectionReason.TIMEOUT,d="Connection timed out"):(l=e.DisconnectionReason.AUTHENTICATION_ERROR,d=i.reason||"Authentication failed"):o?(l=e.DisconnectionReason.SERVER_CLOSED,d=a||"Server closed connection"):(l=e.DisconnectionReason.CONNECTION_ERROR,d=a||"Connection closed unexpectedly"),this.disconnect({reason:l,message:d,code:s,timestamp:new Date}))}sendMessage(i){if(!this.socket||this.socket.readyState!==WebSocket.OPEN)throw new t.ConnectionError("Cannot send message: connection not open",{context:{stage:"sendMessage",readyState:this.socket?.readyState},hint:"Ensure the WebSocket is open before sending messages."});try{this.socket.send(JSON.stringify(i))}catch(o){const s=(0,t.normalizeError)(o,t.ConnectionError,"Failed to send WebSocket message",{context:{stage:"sendMessage"}});throw this.onErrorCallback?.(s),s}}close(){this.authenticated=!1,this.socket&&(this.updateStatus(e.ConnectionStatus.NOT_CONNECTED),this.socket.close(1e3,"Client closed connection"),this.socket=null)}isConnected(){return this.socket?.readyState===WebSocket.OPEN}handleConnected(){this.updateStatus(e.ConnectionStatus.CONNECTED),this.authenticated=!0}}return Tr.WebSocketConnection=r,Tr}var Lr={},Hc;function Lc(){if(Hc)return Lr;Hc=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.SSEConnection=void 0;const A=As(),e=Hr(),t=Qe();class r extends A.BaseConnection{conversationId;config;connected=!1;activeStreamController=null;constructor(i){super(),this.config=i,this.conversationId=i.auth.sessionId,this.connect()}connect(){this.updateStatus(e.ConnectionStatus.CONNECTING),this.connected=!0,setTimeout(()=>{this.onOpenCallback?.()},0)}onOpen(i){this.onOpenCallback=i,this.connected&&setTimeout(()=>i(),0)}buildChatUrl(){const i=new URL(this.config.serverUrl);return i.pathname=`${i.pathname.replace(/\/$/,"")}/med-assist/session/${this.config.auth.sessionId}/chat`,i.toString()}sendMessage(i){if(!this.connected){const s=new t.ConnectionError("SSE connection is not open",{context:{stage:"sendMessage"}});this.onErrorCallback?.(s);return}this.activeStreamController?.abort();const o=new AbortController;this.activeStreamController=o,this.streamChat(i,o)}async streamChat(i,o){const s=this.buildChatUrl();try{const a=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","sess-token":this.config.auth.sessionToken,"x-agent-id":this.config.agentId},body:JSON.stringify(i),signal:o.signal});if(!a.ok||!a.body)throw new t.ConnectionError(`SSE chat request failed with status ${a.status}`,{context:{stage:"streamChat",status:a.status}});const l=a.body.getReader(),d=new TextDecoder;let u="";for(;;){const{done:h,value:f}=await l.read();if(h)break;u+=d.decode(f,{stream:!0}),u=this.extractJsonObjects(u)}u.trim().length>0&&this.extractJsonObjects(u)}catch(a){if(o.signal.aborted)return;const l=(0,t.normalizeError)(a,t.ConnectionError,"SSE chat stream failed",{context:{stage:"streamChat"}});this.onErrorCallback?.(l)}finally{this.activeStreamController===o&&(this.activeStreamController=null)}}extractJsonObjects(i){let o=0;for(;o<i.length;){const s=i.indexOf("{",o);if(s===-1)return"";const a=this.findObjectEnd(i,s);if(a===-1)return i.slice(s);const l=i.slice(s,a+1);try{const d=JSON.parse(l);this.handleMessage(d)}catch(d){const u=(0,t.normalizeError)(d,t.MessageError,"Failed to parse incoming SSE object",{context:{stage:"extractJsonObjects",objStr:l}});this.onErrorCallback?.(u)}o=a+1}return""}findObjectEnd(i,o){let s=0,a=!1,l=!1;for(let d=o;d<i.length;d++){const u=i[d];if(a){l?l=!1:u==="\\"?l=!0:u==='"'&&(a=!1);continue}if(u==='"')a=!0;else if(u==="{")s++;else if(u==="}"&&(s--,s===0))return d}return-1}close(){this.connected=!1,this.activeStreamController?.abort(),this.activeStreamController=null,this.updateStatus(e.ConnectionStatus.NOT_CONNECTED)}isConnected(){return this.connected}handleConnected(){this.updateStatus(e.ConnectionStatus.CONNECTED)}}return Lr.SSEConnection=r,Lr}var Mc;function Oc(){return Mc||(Mc=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.ConnectionFactory=A.ConnectionType=void 0;const e=kc(),t=Lc(),r=Qe();A.ConnectionType={SOCKET:"socket",SSE:"sse"};class n{static async createConnection(o,s){switch(o){case A.ConnectionType.SOCKET:return new e.WebSocketConnection(s);case A.ConnectionType.SSE:return new t.SSEConnection(s);default:throw new r.ConnectionError(`Unsupported connection type: ${o}`,{context:{type:o}})}}}A.ConnectionFactory=n})(qo)),qo}var Mr={},Rc;function cB(){if(Rc)return Mr;Rc=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.getConfig=void 0;const A={WEBSOCKET_URL:"wss://matrix-ws.eka.care/reloaded",BASE_API_URL:"https://matrix.eka.care/reloaded"},e={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care/reloaded",BASE_API_URL:"https://matrix.dev.eka.care/reloaded"},t={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care",BASE_API_URL:"https://matrix.dev.eka.care"},r=(n="production")=>n==="development"?e:n==="production"?A:n==="staging"?t:A;return Mr.getConfig=r,Mr}var Or={},Rr={},Dc;function Pc(){if(Dc)return Rr;Dc=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.HttpClient=void 0;const A=Qe();let e=class{baseUrl;headers;timeout;maxRetries;constructor(r){this.baseUrl=r.baseUrl.replace(/\/$/,""),this.timeout=r.timeout||3e4,this.maxRetries=r.maxRetries||3,this.headers={"Content-Type":"application/json",...r.headers},r.authorization&&(this.headers.Authorization=r.authorization)}async request(r,n,i){const o=i?.retries??this.maxRetries;let s;for(let a=0;a<=o;a++)try{const l=this.buildUrl(n,i?.params),d=await fetch(l,{method:r,headers:{...this.headers,...i?.headers},body:i?.body?JSON.stringify(i.body):void 0,signal:AbortSignal.timeout(this.timeout)});return d.ok||await this.handleError(d),d.json()}catch(l){if(s=l,a===o||!(l instanceof TypeError&&l.message==="Failed to fetch"||l instanceof DOMException&&l.name==="AbortError"||l instanceof SyntaxError))break;const u=Math.pow(2,a)*100;await new Promise(h=>setTimeout(h,u))}throw s?s instanceof TypeError&&s.message==="Failed to fetch"?new A.APIError("Network error: Unable to connect to the server. Please check your internet connection.",0,{type:"NETWORK_ERROR",originalError:s.message}):s instanceof DOMException&&s.name==="AbortError"?new A.APIConnectionTimeoutError({message:`Request timed out after ${this.timeout}ms`}):s instanceof SyntaxError?new A.APIError("Invalid response format from server",502,{type:"PARSE_ERROR",originalError:s.message}):s instanceof A.APIError?s:new A.APIError(`Request failed: ${s.message||"Unknown error"}`,500,{type:"UNKNOWN_ERROR",originalError:s}):new A.APIError("Unknown error occurred",500,{type:"UNKNOWN_ERROR"})}async get(r,n,i){return this.request("GET",r,{params:n,...i})}async post(r,n,i){return this.request("POST",r,{body:n,...i})}async put(r,n,i){return this.request("PUT",r,{body:n,...i})}async delete(r,n){return this.request("DELETE",r,{...n})}async patch(r,n,i){return this.request("PATCH",r,{body:n,...i})}buildUrl(r,n){let i=`${this.baseUrl}${r}`;if(n){const o=new URLSearchParams(n).toString();i+=`?${o}`}return i}async handleError(r){let n,i;try{i=await r.json();const o=i,s=o?.error;n=o?.message||o?.msg||s?.msg||s?.message||r.statusText}catch{n=r.statusText}throw A.APIError.generate(r.status,i,n,r.headers)}};return Rr.HttpClient=e,Rr}var Dr={},Pr={},Kc;function Jn(){if(Kc)return Pr;Kc=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.BaseResource=void 0;let A=class{client;constructor(t){this.client=t}async get(t,r,n){return this.client.get(t,r,n)}async post(t,r,n){return this.client.post(t,r,n)}async put(t,r,n){return this.client.put(t,r,n)}async delete(t,r){return this.client.delete(t,r)}async patch(t,r,n){return this.client.patch(t,r,n)}buildPath(t,r){let n=t;for(const[i,o]of Object.entries(r))n=n.replace(`:${i}`,encodeURIComponent(o));return n}};return Pr.BaseResource=A,Pr}var Vc;function Gc(){if(Vc)return Dr;Vc=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.Session=void 0;const A=Jn();let e=class extends A.BaseResource{basePath="/med-assist/session";async create(r,n){return this.post(this.basePath,r,n?{headers:{"x-auth-token":n}}:void 0)}async retrieve(r){return this.get(`${this.basePath}/${r}`)}async refresh(r,n){return this.get(`${this.basePath}/${r}/refresh`,void 0,{headers:{"x-sess-token":n}})}async feedback(r,n,i,o){return this.put(`${this.basePath}/${r}/messages/${n}/feedback`,{feedback:i,feedback_reason:o})}async callTool(r,n,i,o,s){return this.post(`${this.basePath}/${r}/messages/${i}/tools/${n}`,{tool_params:s},{headers:{"x-sess-token":o}})}};return Dr.Session=e,Dr}var Kr={},zc;function uB(){if(zc)return Kr;zc=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.Config=void 0;const A=Jn();let e=class extends A.BaseResource{basePath="/med-assist/agent-config";async retrieve(r){return this.get(`${this.basePath}/${r}`)}};return Kr.Config=e,Kr}var Vr={},Wc;function dB(){if(Wc)return Vr;Wc=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.VoiceResource=void 0;const A=Jn();let e=class pl extends A.BaseResource{static ICE_SERVERS_PATH="/med-assist/voice/ice-servers";static OFFER_PATH="/med-assist/voice/offer";async getIceServers(r,n){return this.get(pl.ICE_SERVERS_PATH,{session_id:r,token:n})}async sendOffer(r){return this.post(pl.OFFER_PATH,r)}};return Vr.VoiceResource=e,Vr}var Xc;function Yc(){if(Xc)return Or;Xc=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.ResourceManager=void 0;const A=Pc(),e=Gc(),t=Qe(),r=uB(),n=dB();class i{resourceConfig;httpClient;session;config;voiceResource;constructor(s){this.resourceConfig=s,this.httpClient=new A.HttpClient({baseUrl:this.resourceConfig.serverUrl,headers:{"X-agent-id":this.resourceConfig.agentId,"ngrok-skip-browser-warning":"69420",...this.resourceConfig.authorization&&{Authorization:this.resourceConfig.authorization}}}),this.config=new r.Config(this.httpClient),this.session=new e.Session(this.httpClient),this.voiceResource=new n.VoiceResource(this.httpClient)}async createSession(s,a){try{const{profile:l,intent:d,user_location:u,referer:h,...f}=a||{},g={...s&&{user_id:s},...l&&{user_context:l},...(d||Object.keys(f).length>0)&&{session_context:{...d&&{intent:d},...u&&{user_location:u},...f}},...h&&{referer:h}},p=await this.session.create(g,this.resourceConfig.authToken);if(!p?.session_id||!p?.session_token)throw new t.APIError("Failed to start session.",500,void 0,void 0);return p}catch(l){throw l instanceof t.APIError?l:new t.APIError("Failed to start session.",500,void 0,void 0)}}async getAgentConfig(){this.config||(this.config=new r.Config(this.httpClient));try{return await this.config.retrieve(this.resourceConfig.agentId)}catch{throw new t.APIError("Failed to get agent config.",500,void 0,void 0)}}async validateSession(s){try{const a=await this.session.retrieve(s);return a.msg&&a.msg==="Session Active"?{expired:!1,active:!0}:{expired:!0,active:!1}}catch(a){if(a instanceof t.APIError)switch(a.status){case 401:return{expired:!0,active:!1};default:throw a}throw a}}async refreshSession(s,a){return await this.session.refresh(s,a)}async sendFeedback(s,a,l,d){return await this.session.feedback(s,a,l,d)}async callTool(s,a,l,d,u){return await this.session.callTool(s,a,l,d,u)}async getVoiceIceServers(s,a){return await this.voiceResource.getIceServers(s,a)}async sendVoiceOffer(s){return await this.voiceResource.sendOffer(s)}}return Or.ResourceManager=i,Or}var Gr={},ts={},jc;function rs(){return jc||(jc=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.MULTI_SELECT_ADDITIONAL_OPTION=A.SOCKET_EVENTS=A.SOCKET_CONTENT_TYPES=void 0,A.IsValidSocketMesssage=e,A.SOCKET_CONTENT_TYPES={TEXT:"text",AUDIO:"audio",FILE:"file",TOOL_CALL:"tool",TIPS:"tips",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},A.SOCKET_EVENTS={PING:"ping",PONG:"pong",CHAT:"chat",STREAM:"stream",AUTH:"auth",END_OF_STREAM:"eos",SYNC:"sync",ERROR:"err",CONNECTION_ESTABLISHED:"conn"},A.MULTI_SELECT_ADDITIONAL_OPTION={NOTA:"none_of_the_above",AOTA:"all_of_the_above"};function e(t){return[A.SOCKET_EVENTS.PING,A.SOCKET_EVENTS.PONG,A.SOCKET_EVENTS.ERROR,A.SOCKET_EVENTS.SYNC,A.SOCKET_EVENTS.CONNECTION_ESTABLISHED,A.SOCKET_EVENTS.CHAT,A.SOCKET_EVENTS.STREAM,A.SOCKET_EVENTS.END_OF_STREAM].includes(t.ev)}})(ts)),ts}var ns={},Jc;function fB(){return Jc||(Jc=1,(function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.Filemanager=A.MAX_FILE_SIZE=void 0;const e=Qe();A.MAX_FILE_SIZE=3145728;class t{pendingFiles=[];pendingMessage="";pendingFormats=[];setFilesForUpload(n,i){this.pendingFiles.length>0&&this.clearPendingFilesState();const o=n.filter(s=>this.validateFile(s));if(o.length===0)throw new e.FileError("File not supported",{context:{stage:"setFilesForUpload"}});this.pendingFiles=o,i&&i.trim()&&(this.pendingMessage=i),this.pendingFormats=o.map(s=>s.type)}getPendingFileState(){return{files:this.pendingFiles,message:this.pendingMessage||"",formats:this.pendingFormats||[]}}async uploadFilesToPresignedUrl(n){let i=[];const o=n.filter(s=>s.url&&s.url.trim());try{if(o.length===0)throw new e.FileError("No valid presigned URLs provided",{context:{stage:"uploadFilesToPresignedUrl"}});if(!this.pendingFiles.length)throw new e.FileError("No files to upload",{context:{stage:"uploadFilesToPresignedUrl"}});for(let s=0;s<o.length;s++){const a=o[s].url,l=await fetch(a,{method:"PUT",body:this.pendingFiles[s],headers:{"Content-Type":this.pendingFiles[s].type,"x-ms-blob-type":"BlockBlob"}});if(!l.ok)throw new e.FileError(`Failed to upload ${this.pendingFiles[s].name} to URL ${s+1}: ${l.status} ${l.statusText}`,{context:{stage:"uploadFilesToPresignedUrl"}});i.push(o[s].id)}return i}catch(s){if(i.length>0)return i;throw(0,e.normalizeError)(s,e.FileError,"Failed to upload files to presigned URL",{context:{stage:"uploadFilesToPresignedUrl"}})}}blobToFile(n,i){return new File([n],i,{type:n.type})}validateFile(n){return["application/pdf","image/jpeg","image/png","image/jpg"].includes(n.type)&&n.size<A.MAX_FILE_SIZE}clearPendingFilesState(){this.pendingFiles=[],this.pendingMessage="",this.pendingFormats=[]}}A.Filemanager=t})(ns)),ns}var Le={},$c;function $n(){if($c)return Le;$c=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.SYNAPSE_REALTIME_RESERVED_EVENTS=Le.SYNAPSE_REALTIME_ERROR_CODES=Le.SYNAPSE_REALTIME_EVENTS=Le.SYNAPSE_MESSAGE_TYPES=void 0;const A=rs();return Le.SYNAPSE_MESSAGE_TYPES=A.SOCKET_CONTENT_TYPES,Le.SYNAPSE_REALTIME_EVENTS={CONNECTED:"connected",DISCONNECTED:"disconnected",PROGRESS_MESSAGE:"progress_message",MESSAGE_CHUNK:"message_chunk",TIPS_MESSAGE:"tips_message",END_OF_STREAM:"end_of_stream",ERROR:"error",TOOL_CALL:"tool_call",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},Le.SYNAPSE_REALTIME_ERROR_CODES={SESSION_INACTIVE:"session_not_found",SESSION_EXPIRED:"session_expired",INVALID_EVENT:"invalid_event",INVALID_CONTENT_TYPE:"invalid_content",PARSING_ERROR:"parsing",FILE_UPLOAD_INPROGRESS:"file_upload_inprogress",TIMEOUT:"timeout",SERVER_ERROR:"server_error",SESSION_TOKEN_MISMATCH:"session_token_mismatch",PROMPT_FETCH_ERROR:"prompt_fetch_error",INVALID_FILE_REQUEST:"invalid_file_request"},Le.SYNAPSE_REALTIME_RESERVED_EVENTS={SESSION_EXPIRED:"session_expired"},Le}var zr={},qc;function hB(){if(qc)return zr;qc=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.AudioManager=void 0;const A=Qe();class e{mediaRecorder=null;mediaStream=null;recordingStartTime=0;autoPauseTimer=null;config;onAudioData=null;onAudioError=null;suppressCallbacks=!1;constructor(r={}){this.config={mimeType:"audio/webm;codecs=opus",audioBitsPerSecond:128e3,maxRecordingDuration:9e5,autoPauseEnabled:!0,...r}}async checkCurrentPermissionState(){if(!navigator.permissions||!navigator.permissions.query)return"prompt";try{const r=await navigator.permissions.query({name:"microphone"});if(r.state==="denied")throw new A.RecordingError("Microphone permission denied",{context:{permissionState:r.state},hint:"Ensure the browser has microphone access enabled for this site."});return r.state}catch(r){if(r instanceof Error&&r.name==="NotSupportedError")return"prompt"}return"prompt"}async start(r,n){try{if(!navigator.mediaDevices)throw new A.RecordingError("Media devices API is not available. This usually means the page is not served over HTTPS or there are browser restrictions.",{context:{feature:"mediaDevices"},hint:"Serve the app over HTTPS and verify browser/device microphone support.",displayMessage:"Microphone access is unavailable."});if(!window.MediaRecorder)throw new A.RecordingError("MediaRecorder is not supported in this browser",{context:{feature:"MediaRecorder"},hint:"Use a browser that supports the MediaRecorder API.",displayMessage:"Microphone access is unavailable."});const i=["audio/mp3","audio/ogg;codecs=opus","audio/mp4","audio/ogg","audio/wav"].filter(o=>MediaRecorder.isTypeSupported(o));if(i.length===0)throw new A.RecordingError("No supported audio formats found in this browser",{context:{requestedTypes:i},hint:"Verify codec support or adjust the requested MIME types.",displayMessage:"Microphone access is unavailable."});if(this.config.mimeType=i[0],await this.checkCurrentPermissionState(),this.onAudioData=r,this.onAudioError=n??null,this.suppressCallbacks=!1,this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!1,noiseSuppression:!1,autoGainControl:!1,sampleRate:44100,channelCount:1}}),this.mediaRecorder=new MediaRecorder(this.mediaStream,{mimeType:this.config.mimeType,audioBitsPerSecond:this.config.audioBitsPerSecond}),this.mediaRecorder.state!=="inactive")throw new A.RecordingError("MediaRecorder is in an invalid state for start()",{context:{recorderState:this.mediaRecorder.state},displayMessage:"Failed to start recording"});this.setupMediaRecorderEvents(),this.mediaRecorder.start(),this.recordingStartTime=Date.now(),this.config.autoPauseEnabled&&this.setupAutoPauseTimer()}catch(i){throw i instanceof Error&&i.name==="NotAllowedError"?new A.RecordingError("Microphone permission denied",{context:{permissionState:"denied"},hint:"Ensure the browser or device has microphone access enabled for this site/app."}):this.toRecordingError(i,"Failed to start audio recording",{stage:"start"})}}async processAudioChunk(r){try{const n=await this.blobToBase64(r),i=Date.now();if(!this.onAudioData)return;const o={audio:n,format:this.config.mimeType,duration:this.recordingStartTime>0?i-this.recordingStartTime:0,timestamp:this.recordingStartTime>0?this.recordingStartTime:i};this.onAudioData(o)}catch(n){this.handleError(n,{stage:"process_audio_chunk"})}}toRecordingError(r,n,i){if(r instanceof A.RecordingError)return r;if(r instanceof A.SynapseError)return new A.RecordingError(r.message,{cause:r,context:{...r.context,...i},hint:r.hint});const o=r instanceof Error&&r.message?r.message:n;return new A.RecordingError(o,{cause:r,context:i})}handleError(r,n){const i=this.toRecordingError(r,"Unexpected recording error",n);if(this.onAudioError)try{this.onAudioError(i)}catch{}}setupAutoPauseTimer(){this.autoPauseTimer&&clearTimeout(this.autoPauseTimer),this.autoPauseTimer=setTimeout(()=>{this.stop()},this.config.maxRecordingDuration)}setupMediaRecorderEvents(){this.mediaRecorder&&(this.mediaRecorder.ondataavailable=r=>{this.suppressCallbacks||r.data.size<=0||this.processAudioChunk(r.data).catch(n=>this.handleError(n,{stage:"media_recorder_ondataavailable",hasData:r.data.size>0}))},this.mediaRecorder.onstop=async()=>{this.recordingStartTime=0},this.mediaRecorder.onerror=r=>{this.handleError(r.error instanceof Error?r.error:new Error("MediaRecorder encountered an unknown error"),{stage:"media_recorder_onerror"})},this.mediaRecorder.onstart=()=>{})}blobToBase64(r){return new Promise((n,i)=>{const o=new FileReader;o.onload=()=>{if(typeof o.result=="string"){const s=o.result.split(",")[1];n(s)}else i(new A.RecordingError("Failed to convert blob to base64",{context:{stage:"blob_to_base64"}}))},o.onerror=()=>i(new A.RecordingError("FileReader error while converting audio chunk to base64",{cause:o.error??void 0,context:{stage:"blob_to_base64"}})),o.readAsDataURL(r)})}stop(){if(this.mediaRecorder)try{this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(r=>r.stop()),this.mediaStream=null)}catch(r){throw this.toRecordingError(r,"Failed to stop audio recording",{stage:"stop"})}}cancel(){if(this.mediaRecorder)try{this.suppressCallbacks=!0,this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.ondataavailable=null,this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(r=>r.stop()),this.mediaStream=null)}catch(r){throw this.toRecordingError(r,"Failed to cancel audio recording",{stage:"cancel"})}}destroy(){try{this.cancel(),this.mediaRecorder&&(this.mediaRecorder=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(r=>r.stop()),this.mediaStream=null)}catch(r){throw this.toRecordingError(r,"Failed to destroy audio resources",{stage:"destroy"})}}}return zr.AudioManager=e,zr}var Zc;function Au(){if(Zc)return Gr;Zc=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.MessageManager=void 0;const A=rs(),e=fB(),t=$n(),r=hB(),n=Qe();let i=class{connection=null;callbacks=null;fileManager=null;audioManager=null;outgoingBuffer=null;constructor(s){this.callbacks=s||null}setConnection(s){this.connection=s}handleFileUploadProcess({files:s,message:a,urls:l,tool_declined:d,tool_result:u}){this.fileManager||(this.fileManager=new e.Filemanager);let h;if(s&&s.length>0)this.fileManager.setFilesForUpload(s,a),h={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{extensions:this.fileManager.getPendingFileState().formats,...d&&{tool_declined:d},...u&&{tool_result:u}}};else if(l&&l.length>0){const f=this.fileManager.getPendingFileState().message;h={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{urls:l,...f&&{text:f},...d&&{tool_declined:d},...u&&{tool_result:u}}},this.fileManager?.clearPendingFilesState()}return h}sendSocketMessage({message:s,files:a,audio:l,urls:d,tool_declined:u,tool_id:h,tool_result:f,initial_prompts:g}){if(!this.connection?.isConnected()){this.outgoingBuffer={...s!==void 0&&{message:s},...a&&{files:a},...l&&{audio:l},...d&&{urls:d},...u&&{tool_declined:u},...h&&{tool_id:h},...f&&{tool_result:f},...g&&{initial_prompts:g}};return}const p=this.connection;let w;if(a&&a.length>0||d&&d.length>0){if(a&&a.length>3){const m=new n.MessageError("Maximum 3 files are allowed to be sent at a time",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(m),m}w=this.handleFileUploadProcess({files:a,message:s,urls:d,tool_declined:u,tool_result:f})}else s?w={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:s,...u&&{tool_declined:u},...h&&{tool_id:h},...g&&{initial_prompts:g},...f&&{tool_result:f}}}:l&&l?.audio&&l?.format?w={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.AUDIO,_id:Date.now().toString(),ts:Date.now(),data:{audio:l?.audio,format:l?.format,...u&&{tool_declined:u},...f&&{tool_result:f}}}:f&&(w={ev:A.SOCKET_EVENTS.CHAT,ct:A.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:"",tool_result:f}});if(!w){const m=new n.MessageError("No message to send",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(m),m}p.sendMessage(w)}handleIncomingSocketChatMessage(s){const a=this.assertConnection("handleIncomingSocketChatMessage");switch(s.ct){case A.SOCKET_CONTENT_TYPES.FILE:{s?.data?.urls&&s.data.urls?.length>0&&this.fileManager?.uploadFilesToPresignedUrl(s.data.urls).then(l=>{this.sendSocketMessage({urls:l})}).catch(l=>{const d=this.toFileError(l,"Failed to upload files to presigned URL",{stage:"handleIncomingSocketChatMessage",urls:s.data?.urls?.length});this.emitError(d)});break}case A.SOCKET_CONTENT_TYPES.TEXT:if(s.data.text&&s.data.text.trim()===""&&s._id){const l={data:{text:s.data.text},messageId:s._id,timestamp:s.ts};a.emit(t.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,l)}break;case A.SOCKET_CONTENT_TYPES.TOOL_CALL:if(s?.data?.tool_id&&s._id){const l={data:{...s.data},messageId:s._id,timestamp:s.ts};a.emit(t.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,l)}break;case A.SOCKET_CONTENT_TYPES.AUDIO_TRANSCRIPT:if(s?.data?.text){const l={data:{text:s.data.text},messageId:s._id,timestamp:s.ts};a.emit(t.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,l)}break}}handleIncomingSocketStreamMessage(s){const a=this.assertConnection("handleIncomingSocketStreamMessage");switch(s.ct){case A.SOCKET_CONTENT_TYPES.TEXT:if(s?.data?.progress_msg){const h={data:{text:s.data.progress_msg},messageId:s._id,timestamp:s.ts};a.emit(t.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,h);return}if(s?.data?.text){const h={data:{text:s.data.text},messageId:s._id,timestamp:s.ts};a.emit(t.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,h)}break;case A.SOCKET_CONTENT_TYPES.TIPS:if(s?.data?.tips){const h={data:{tips:s.data.tips},messageId:s._id,timestamp:s.ts};a.emit(t.SYNAPSE_REALTIME_EVENTS.TIPS_MESSAGE,h);return}break;case A.SOCKET_CONTENT_TYPES.TOOL_CALL:if(s?.data?.tool_id&&s._id){const h={data:{...s.data},messageId:s._id,timestamp:s.ts};a.emit(t.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,h);return}break;case A.SOCKET_CONTENT_TYPES.TOOL_START:const l={data:s?.data,messageId:s._id||Date.now().toString()};a.emit(t.SYNAPSE_REALTIME_EVENTS.TOOL_START,l);break;case A.SOCKET_CONTENT_TYPES.TOOL_END:const d={data:s?.data,messageId:s._id||Date.now().toString()};a.emit(t.SYNAPSE_REALTIME_EVENTS.TOOL_END,d);break;default:const u=new n.MessageError(`Unsupported content type ${s?.ct}`,{context:{stage:"handleIncomingSocketStreamMessage",contentType:s.ct}});throw this.emitError(u),u}}handleDisconnect(s){this.connection?.emit?.(t.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,s)}handleIncomingSocketEndOfStreamMessage(s){this.assertConnection("handleIncomingSocketEndOfStreamMessage").emit(t.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM)}handleIncomingSocketErrorMessage(s){const a=this.assertConnection("handleIncomingSocketErrorMessage");switch(s?.data?.code){case t.SYNAPSE_REALTIME_ERROR_CODES.SESSION_EXPIRED:a.emit(t.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED);break;default:const l=new n.MessageError(s?.data?.msg||"Socket error received",{context:{stage:"handleIncomingSocketErrorMessage",errorCode:s?.data?.code},hint:s?.data?.msg,cause:s,displayMessage:s?.data?.msg});a.emit(t.SYNAPSE_REALTIME_EVENTS.ERROR,s)}}sendSocketAuthMessage(s){const a=this.assertConnection("sendSocketAuthMessage"),l={ev:A.SOCKET_EVENTS.AUTH,_id:Date.now().toString(),ts:Date.now(),data:{token:s}};a.sendMessage(l)}sendSocketPingMessage(){const s=this.assertConnection("sendSocketPingMessage"),a={ev:A.SOCKET_EVENTS.PING,_id:Date.now().toString(),ts:Date.now()};s.sendMessage(a)}async startRecording({onChunks:s,onError:a}){if(!s){const l=new n.RecordingError("onChunks is required",{context:{stage:"startRecording"},hint:"onChunks is required"});throw this.emitError(l),l}this.audioManager||(this.audioManager=new r.AudioManager);try{await this.audioManager.start(s,l=>{const d=this.toRecordingError(l,"Failed to start audio recording",{stage:"startRecording"});a?.(d),this.emitError(d)})}catch(l){const d=this.toRecordingError(l,"Failed to start audio recording",{stage:"startRecording"});throw a?.(d),this.emitError(d),d}}endRecordingWithSocket(){if(!this.audioManager){const s=new n.RecordingError("Audio manager not set. Call startRecording() first.",{context:{stage:"stopRecording"}});throw this.emitError(s),s}try{this.audioManager.stop()}catch(s){const a=this.toRecordingError(s,"Failed to stop audio recording",{stage:"stopRecording"});throw this.emitError(a),a}}sendSocketPongMessage(){const s=this.assertConnection("sendSocketPongMessage"),a={ev:A.SOCKET_EVENTS.PONG,_id:Date.now().toString(),ts:Date.now()};s.sendMessage(a)}handleConnectionEstablished(){this.connection?.handleConnected(),this.connection?.emit(t.SYNAPSE_REALTIME_EVENTS.CONNECTED),this.flushOutgoingBuffer()}flushOutgoingBuffer(){if(!this.connection?.isConnected()||!this.outgoingBuffer)return;const s=this.outgoingBuffer;this.outgoingBuffer=null,this.sendSocketMessage(s)}cleanupMessageServerState(){this.outgoingBuffer=null,this.connection=null,this.fileManager&&(this.fileManager.clearPendingFilesState(),this.fileManager=null),this.audioManager&&(this.audioManager.destroy(),this.audioManager=null)}emitError(s){this.callbacks?.onError?.(s)}toFileError(s,a,l,d){return(0,n.normalizeError)(s,n.FileError,a,{context:l,hint:d})}toRecordingError(s,a,l,d){return(0,n.normalizeError)(s,n.RecordingError,a,{context:l,hint:d})}assertConnection(s){if(!this.connection){const a=new n.ConnectionError("Connection not set. Please ensure the connection is established before calling this method.",{context:{stage:s}});throw this.emitError(a),a}return this.connection}};return Gr.MessageManager=i,Gr}var Wr={},eu;function tu(){if(eu)return Wr;eu=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.ErrorUtils=void 0;const A=Qe();class e{static isAPIError(r){return r instanceof A.APIError}static isNetworkError(r){return r instanceof A.APIError&&(r.status===0||r.status===void 0)}static isTimeoutError(r){return r instanceof A.APIConnectionTimeoutError}static isAuthError(r){return r instanceof A.UnauthorizedError||r instanceof A.PermissionDeniedError}static isClientError(r){return r instanceof A.APIError&&r.status!==void 0&&r.status>=400&&r.status<500}static isServerError(r){return r instanceof A.APIError&&r.status!==void 0&&r.status>=500}static getUserFriendlyMessage(r){return e.isNetworkError(r)?"Unable to connect to the server. Please check your internet connection.":e.isTimeoutError(r)?"Request timed out. Please try again.":e.isAuthError(r)?"Authentication failed. Please log in again.":e.isServerError(r)?"Server error occurred. Please try again later.":e.isAPIError(r)||r instanceof Error?r.message:"An unexpected error occurred."}static getErrorDetails(r){return e.isAPIError(r)?{type:r.name,message:r.message,code:r.code,status:r.status,timestamp:r.timestamp,stack:r.stack,context:r.context,hint:r.hint}:r instanceof A.SynapseError?{type:r.name,message:r.message,code:r.code,timestamp:r.timestamp,stack:r.stack,context:r.context,hint:r.hint}:r instanceof Error?{type:r.name,message:r.message,stack:r.stack}:{type:"Unknown",message:String(r)}}}return Wr.ErrorUtils=e,Wr}var Xr={},Yr={},ru;function gB(){if(ru)return Yr;ru=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.VoiceAudioAnalyser=void 0;const A=256;let e=class{audioCtx=null;animFrame=null;start(r,n,i){const o=new AudioContext;this.audioCtx=o;const s=o.createAnalyser();s.fftSize=A,o.createMediaStreamSource(r).connect(s);const a=new Uint8Array(s.frequencyBinCount),l=()=>{if(!this.audioCtx)return;s.getByteFrequencyData(a);const d=a.reduce((u,h)=>u+h,0)/a.length;i(d>n),this.animFrame=requestAnimationFrame(l)};l()}stop(){this.animFrame!==null&&(cancelAnimationFrame(this.animFrame),this.animFrame=null),this.audioCtx&&(this.audioCtx.close().catch(()=>{}),this.audioCtx=null)}};return Yr.VoiceAudioAnalyser=e,Yr}var Ht={},nu;function iu(){return nu||(nu=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.VOICE_AGENT_EVENTS=Ht.VOICE_AGENT_STATE=void 0,Ht.VOICE_AGENT_STATE={IDLE:"idle",CONNECTING:"connecting",CONNECTED:"connected",LISTENING:"listening",THINKING:"thinking",SPEAKING:"speaking",MUTED:"muted",DISCONNECTING:"disconnecting",ERROR:"error"},Ht.VOICE_AGENT_EVENTS={STATE_CHANGED:"voice:state_changed",ERROR:"voice:error"}),Ht}var ou;function pB(){if(ou)return Xr;ou=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.VoiceAgent=void 0;const A=Zo(),e=gB(),t=Qe(),r=iu(),n=3e3,i=8,o=3600*1e3,s=600;function a(d,u){return new Promise(h=>{if(d.iceGatheringState==="complete"){h();return}const f=setTimeout(h,u);d.onicegatheringstatechange=()=>{d.iceGatheringState==="complete"&&(clearTimeout(f),h())}})}let l=class{config;resourceManager;getCredentials;emitter=new A.EventEmitter;remoteAnalyser=new e.VoiceAudioAnalyser;localAnalyser=new e.VoiceAudioAnalyser;pc=null;pcId=null;dataChannel=null;localStream=null;remoteAudio=null;_state=r.VOICE_AGENT_STATE.IDLE;_isMuted=!1;manuallyDisconnected=!1;_hasConnectionFailureNotified=!1;_userSpeaking=!1;_silenceTimer=null;_cachedIceServers=null;_iceServersCachedAt=0;constructor(u,h,f){this.config=u,this.resourceManager=h,this.getCredentials=f}get state(){return this._state}get isMuted(){return this._isMuted}on(u,h){this.emitter.on(u,h)}off(u,h){this.emitter.off(u,h)}async connect(){const u=await this.getCredentials();this.setState(r.VOICE_AGENT_STATE.CONNECTING),this._hasConnectionFailureNotified=!1;try{if(!navigator.mediaDevices?.getUserMedia)throw new Error("Microphone access is not available. Please ensure you are using a secure (HTTPS) connection.");const h=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3},video:!1});this.localStream=h;const f=await this.fetchIceServers(u),g=new RTCPeerConnection({iceServers:f,iceTransportPolicy:"all"});this.pc=g,this.dataChannel=g.createDataChannel("pipecat-events",{ordered:!0}),this.dataChannel.onopen=()=>{},this.dataChannel.onclose=()=>this.handleConnectionFailure(new Error("Data channel closed"),"Voice connection failed"),this.dataChannel.onerror=()=>this.handleConnectionFailure(new Error("Data channel error"),"Voice connection failed"),h.getAudioTracks().forEach(b=>g.addTrack(b,h)),g.ontrack=b=>this.handleRemoteTrack(b),g.onconnectionstatechange=()=>{g.connectionState==="connected"?(this.setState(r.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(h)):(g.connectionState==="failed"||g.connectionState==="closed")&&(this.releaseResources(),this.setState(r.VOICE_AGENT_STATE.IDLE))},g.oniceconnectionstatechange=()=>{(g.iceConnectionState==="connected"||g.iceConnectionState==="completed")&&this._state===r.VOICE_AGENT_STATE.CONNECTING?(this.setState(r.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(h)):g.iceConnectionState==="failed"&&(this.releaseResources(),this.setState(r.VOICE_AGENT_STATE.IDLE))};const p=await g.createOffer();await g.setLocalDescription(p);const w=this.config.iceGatheringTimeoutMs??n;await a(g,w);const m=b=>({sdp:g.localDescription.sdp,type:g.localDescription.type,pc_id:this.pcId,request_data:{session_id:b.sessionId,token:b.sessionToken}});let C;try{C=await this.resourceManager.sendVoiceOffer(m(u))}catch(b){if(b instanceof t.APIError&&b.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const _=await this.getCredentials();C=await this.resourceManager.sendVoiceOffer(m(_))}else throw b}if(!C)throw new Error("No answer received from voice offer");if(this.pcId=C.pc_id,g.signalingState==="closed")return;await g.setRemoteDescription(new RTCSessionDescription({sdp:C.sdp,type:C.type}))}catch(h){this.handleConnectionFailure(h)}}disconnect(){this.manuallyDisconnected=!0,this.setState(r.VOICE_AGENT_STATE.DISCONNECTING),this.releaseResources(),this.setState(r.VOICE_AGENT_STATE.IDLE)}toggleMute(){if(!this.localStream)return;const u=this.localStream.getAudioTracks()[0];if(!u)return;const h=u.enabled;this.localStream.getAudioTracks().forEach(f=>{f.enabled=!h}),this._isMuted=h,this.clearSilenceTimer(),this._userSpeaking=!1,this.setState(h?r.VOICE_AGENT_STATE.MUTED:r.VOICE_AGENT_STATE.LISTENING)}reset(){this.setState(r.VOICE_AGENT_STATE.IDLE)}destroy(){this.releaseResources(),this.emitter.removeAllListeners(),this._state=r.VOICE_AGENT_STATE.IDLE}async fetchIceServers(u){if(this.config.iceServers)return this.config.iceServers;const h=Date.now();if(this._cachedIceServers&&h-this._iceServersCachedAt<o)return this._cachedIceServers;let f;try{f=await this.resourceManager.getVoiceIceServers(u.sessionId,u.sessionToken)}catch(g){if(g instanceof t.APIError&&g.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const p=await this.getCredentials();f=await this.resourceManager.getVoiceIceServers(p.sessionId,p.sessionToken)}else throw g}if(!Array.isArray(f?.ice_servers)||f.ice_servers.length===0)throw new Error("ICE servers response is empty");return this._cachedIceServers=f.ice_servers,this._iceServersCachedAt=Date.now(),this._cachedIceServers}setState(u){this._state=u,this.emitter.emit(r.VOICE_AGENT_EVENTS.STATE_CHANGED,u)}clearSilenceTimer(){this._silenceTimer!==null&&(clearTimeout(this._silenceTimer),this._silenceTimer=null)}handleConnectionFailure(u,h="Voice connection failed"){if(this._hasConnectionFailureNotified||this._state===r.VOICE_AGENT_STATE.DISCONNECTING||this.manuallyDisconnected)return;this._hasConnectionFailureNotified=!0,this.releaseResources(),this.setState(r.VOICE_AGENT_STATE.ERROR);const f={message:h,cause:u};this.emitter.emit(r.VOICE_AGENT_EVENTS.ERROR,f)}releaseResources(){this.remoteAnalyser.stop(),this.localAnalyser.stop(),this.clearSilenceTimer(),this._userSpeaking=!1,this.localStream&&(this.localStream.getTracks().forEach(u=>u.stop()),this.localStream=null),this.dataChannel&&(this.dataChannel.close(),this.dataChannel=null),this.pc&&(this.pc.onconnectionstatechange=null,this.pc.oniceconnectionstatechange=null,this.pc.ontrack=null,this.pc.onicecandidate=null,this.pc.ondatachannel=null,this.pc.close(),this.pc=null),this.pcId=null,this._isMuted=!1,this.remoteAudio&&(this.remoteAudio.srcObject=null)}startLocalAudioAnalysis(u){const h=this.config.speakingThreshold??i;this.localAnalyser.start(u,h,f=>{this._state!==r.VOICE_AGENT_STATE.LISTENING&&this._state!==r.VOICE_AGENT_STATE.THINKING||(f?(this._userSpeaking=!0,this.clearSilenceTimer(),this._state===r.VOICE_AGENT_STATE.THINKING&&this.setState(r.VOICE_AGENT_STATE.LISTENING)):this._userSpeaking&&this._silenceTimer===null&&(this._silenceTimer=setTimeout(()=>{this._silenceTimer=null,this._userSpeaking&&this._state===r.VOICE_AGENT_STATE.LISTENING&&(this._userSpeaking=!1,this.setState(r.VOICE_AGENT_STATE.THINKING))},s)))})}handleRemoteTrack(u){this.remoteAudio||(this.remoteAudio=new Audio,this.remoteAudio.autoplay=!0);const h=u.streams[0];this.remoteAudio.srcObject=h;const f=this.config.speakingThreshold??i;this.remoteAnalyser.start(h,f,g=>{g?(this.clearSilenceTimer(),this._userSpeaking=!1,this._state!==r.VOICE_AGENT_STATE.SPEAKING&&this.setState(r.VOICE_AGENT_STATE.SPEAKING)):this._state===r.VOICE_AGENT_STATE.SPEAKING&&this.setState(r.VOICE_AGENT_STATE.LISTENING)})}};return Xr.VoiceAgent=l,Xr}var su;function BB(){if(su)return Ir;su=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.SynapseSDK=void 0;const A=Oc(),e=Hr(),t=cB(),r=Yc(),n=Au(),i=$n(),o=Zo(),s=tu(),a=Qe(),l=rs(),d=pB();class u{connection=null;messageManager;resourceManager;sessionConfig=null;config;connectionType;isRefreshingSession=!1;connectionAttempts=0;sdkEventEmitter=new o.EventEmitter;_voice=null;constructor(f){this.config={...f,environment:f.environment||"production"},this.connectionType=f.connectionType||A.ConnectionType.SSE;const g=(0,t.getConfig)(this.config?.environment).BASE_API_URL;this.resourceManager=new r.ResourceManager({agentId:this.config.agentId,serverUrl:this.config.serverUrl||g,...this.config.auth&&{authorization:this.config.auth},...this.config.authToken&&{authToken:this.config.authToken}}),this.messageManager=new n.MessageManager(this.config?.callbacks)}async startSession(f){try{const g=await this.manageSession(f);return await this.initializeConnection(g),this.setupEventHandlers(),g}catch(g){const p=s.ErrorUtils.getUserFriendlyMessage(g),w=s.ErrorUtils.getErrorDetails(g);if(g instanceof a.APIError&&(g.status===404||g.status===403))throw g;const m=this.toSessionError(g,p||"Failed to start session",{stage:"startSession",details:w},"Check network connectivity or recheck credentials before retrying.");throw this.emitError(m),m}}async sendMessage({message:f,files:g,audio:p,tool_declined:w,tool_id:m,initial_prompts:C,tool_result:b}){switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:this.messageManager.sendSocketMessage({message:f,files:g,audio:p,...w&&{tool_declined:w},...m&&{tool_id:m},...C?.length&&{initial_prompts:C},...b&&Object.keys(b)?.length&&{tool_result:b}});break;default:const _=new a.ConnectionError("Unsupported connection type",{context:{stage:"sendChatMessage",connectionType:this.connectionType}});throw this.emitError(_),_}}async sendFeedback(f,g,p){if(!this.connection){const w=new a.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(w),w}if(!this.sessionConfig?.session_id){const w=new a.SessionError("Session ID not found",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(w),w}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:await this.resourceManager.sendFeedback(this.sessionConfig.session_id,f,g,p);break}}on(f,g){this.sdkEventEmitter.on(f,g)}off(f,g){this.sdkEventEmitter.off(f,g)}getSessionConfig(){if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token)throw new a.SessionError("Session ID or token not found",{context:{stage:"getSessionConfig"},hint:"Ensure the session API returns both identifiers."});return this.sessionConfig}async callTool(f,g,p){if(!this.connection){const w=new a.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(w),w}if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const w=new a.SessionError("Session ID not found",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(w),w}switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:try{const m=await this.resourceManager.callTool(this.sessionConfig.session_id,f,g,this.sessionConfig.session_token,p);if(m.error)throw new a.APIError(m.error.msg,500,m.error);let C={data:{...m.data},messageId:m._id,timestamp:m.ts};this.connection.emit(i.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,C)}catch(m){if(m instanceof a.APIError&&m?.status===401)return await this.handleSessionExpiry(),await this.callTool(f,g,p);throw m}break;default:const w=new a.ConnectionError("Unsupported connection type",{context:{stage:"callTool",connectionType:this.connectionType}});throw this.emitError(w),w}}async startRecording({onChunks:f,onError:g}){switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:try{await this.messageManager.startRecording({onChunks:f,onError:g})}catch(w){throw w}break;default:const p=new a.ConnectionError("Unsupported connection type",{context:{stage:"sendAudio",connectionType:this.connectionType}});throw this.emitError(p),p}}endRecording(){switch(this.connectionType){case A.ConnectionType.SOCKET:case A.ConnectionType.SSE:this.messageManager.endRecordingWithSocket();break;default:const f=new a.ConnectionError("Unsupported connection type",{context:{stage:"endRecording",connectionType:this.connectionType}});throw this.emitError(f),f}}async getAgentConfig(){return this.resourceManager.getAgentConfig()}isConnected(){return this.connection?.isConnected()??!1}get voice(){return this._voice||(this._voice=new d.VoiceAgent(this.buildVoiceConfig(),this.resourceManager,async()=>{const f=await this.resourceManager.createSession();return{sessionId:f.session_id,sessionToken:f.session_token}})),this._voice}endSession(){this._voice?.destroy(),this._voice=null,this.closeConnection(),this.cleanup()}buildVoiceConfig(){return{offerUrl:`${this.config.serverUrl||(0,t.getConfig)(this.config.environment).BASE_API_URL}/med-assist/voice/offer`,handleRefresh:async()=>{await this.handleSessionExpiry()}}}toClientError(f){return f instanceof a.APIError?{message:f.error?.msg||f.message,error:f.error,code:f.code,status:f.status,context:f.context}:f instanceof a.SynapseError?{message:f.displayMessage||f.message,code:f.code,context:f.context}:f instanceof Error?{message:f.message}:{message:"An unexpected error occurred"}}emitError(f){this.config.callbacks?.onError?.(this.toClientError(f))}toSessionError(f,g,p,w){return(0,a.normalizeError)(f,a.SessionError,g,{context:p,hint:w})}async initializeConnection(f){if(this.closeConnection(),!f.session_id||!f.session_token)throw new a.SessionError("Session ID or token not found",{context:{stage:"initializeConnection"},hint:"Ensure the session API returns both identifiers."});this.sessionConfig=f;const g=(0,t.getConfig)(this.config?.environment),p=this.connectionType===A.ConnectionType.SOCKET,w=p?g.WEBSOCKET_URL:g.BASE_API_URL,m=this.config.serverUrl?p?`wss://${this.config.serverUrl.split("://")[1]}`:this.config.serverUrl:null;this.connection=await A.ConnectionFactory.createConnection(this.connectionType,{serverUrl:m||w,auth:{sessionId:f.session_id,sessionToken:f.session_token},agentId:this.config.agentId,userId:this.config.userId,overrides:this.config.overrides}),this.connectionAttempts++,this.messageManager.setConnection(this.connection);const C=this.connection.emit.bind(this.connection);this.connection.emit=(b,..._)=>{C(b,..._),this.sdkEventEmitter.emit(b,..._)}}async manageSession(f){try{if(!f?.session_id)return this.createNewSession();const g=await this.resourceManager.validateSession(f.session_id);if(g.active)return f;if(g.expired)return this.refreshSession(f.session_id,f.session_token);throw new a.APIError("Failed to create session",500,void 0,void 0)}catch(g){if(g instanceof a.APIError){if(g.status===404||g.status===403)throw g}else if(g instanceof a.NotFoundError&&g.status===404)throw g;throw this.toSessionError(g,"Failed to resolve session",{stage:"resolveSession"})}}async refreshSession(f,g){try{return await this.resourceManager.refreshSession(f,g)}catch(p){throw p instanceof a.APIError&&this.emitError(p),this.toSessionError(p,"Failed to refresh session",{stage:"refreshSession",sessionId:f})}}async createNewSession(){return await this.resourceManager.createSession(this.config.userId,this.config.context)}setupEventHandlers(){if(this.connection){switch(this.connectionType){case A.ConnectionType.SOCKET:this.connection.onOpen(()=>{this.onSocketConnectionOpen()}),this.connection.onMessage(f=>{this.onIncomingSocketMessage(f)}),this.connection.onError(f=>{this.onSocketConnectionError(f)}),this.connection.on(i.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;case A.ConnectionType.SSE:this.connection.onOpen(()=>{this.messageManager.handleConnectionEstablished()}),this.connection.onMessage(f=>{this.onIncomingSocketMessage(f)}),this.connection.onError(f=>{this.onSocketConnectionError(f)}),this.connection.on(i.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;default:throw new a.ConnectionError("Unsupported connection type",{context:{stage:"setupEventHandlers",connectionType:this.connectionType},hint:"Use ConnectionType.SOCKET or provide a custom handler."})}this.connection.onDisconnect(async f=>{if(f.reason!==e.DisconnectionReason.CLIENT_CLOSED)if(this.connectionAttempts<3&&this.sessionConfig?.session_id&&this.sessionConfig.session_token)try{await this.startSession({session_id:this.sessionConfig.session_id,session_token:this.sessionConfig.session_token})}catch{this.messageManager.handleDisconnect(f)}else this.messageManager.handleDisconnect(f)})}}onSocketConnectionError(f){this.connection?.emit(i.SYNAPSE_REALTIME_EVENTS.ERROR,f);const g=this.toConnectionError(f,"WebSocket connection error",{stage:"onSocketConnectionError"},"Verify network connectivity or attempt to reconnect.");this.emitError(g)}onSocketConnectionOpen(){if(!this.sessionConfig?.session_token){const f=new a.SessionError("Session token not set. Call startSession() first.",{context:{stage:"onSocketConnectionOpen"},hint:"Ensure startSession() completes successfully before socket opens."});throw this.emitError(f),f}this.messageManager.sendSocketAuthMessage(this.sessionConfig.session_token)}onIncomingSocketMessage(f){switch(f.ev){case l.SOCKET_EVENTS.CHAT:this.messageManager.handleIncomingSocketChatMessage(f);break;case l.SOCKET_EVENTS.CONNECTION_ESTABLISHED:this.messageManager.handleConnectionEstablished();break;case l.SOCKET_EVENTS.STREAM:this.messageManager.handleIncomingSocketStreamMessage(f);break;case l.SOCKET_EVENTS.END_OF_STREAM:this.messageManager.handleIncomingSocketEndOfStreamMessage(f);break;case l.SOCKET_EVENTS.PING:this.messageManager.sendSocketPongMessage();break;case l.SOCKET_EVENTS.PONG:this.messageManager.sendSocketPingMessage();break;case l.SOCKET_EVENTS.SYNC:break;case l.SOCKET_EVENTS.ERROR:this.messageManager.handleIncomingSocketErrorMessage(f);break;default:const g=new a.MessageError("Unsupported message type",{context:{stage:"onIncomingSocketMessage",event:f.ev??"unknown"},hint:"Ensure the server is sending supported socket events."});this.emitError(g);return}}async handleSessionExpiry(){if(!this.isRefreshingSession)try{if(this.closeConnection(),!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const g=new a.SessionError("Session ID or token not found",{context:{stage:"handleSessionExpiry"}});throw this.emitError(g),g}this.isRefreshingSession=!0;const f=await this.refreshSession(this.sessionConfig.session_id,this.sessionConfig.session_token);if(!f.session_id||!f.session_token)throw new a.SessionError("Session refresh failed",{context:{stage:"handleSessionExpiry"}});this.sessionConfig.session_id=f.session_id,this.sessionConfig.session_token=f.session_token,await this.initializeConnection(f),this.setupEventHandlers(),this.config.callbacks?.onSessionRefreshed?.(f)}catch(f){const g=this.toSessionError(f,"Session expired",{stage:"handleSessionExpiry"});this.emitError(g)}finally{this.isRefreshingSession=!1}}toConnectionError(f,g,p,w){return(0,a.normalizeError)(f,a.ConnectionError,g,{context:p,hint:w})}closeConnection(){this.connection&&(this.connection.close(),this.connection=null)}cleanup(){this.connectionAttempts=0,this.sdkEventEmitter?.removeAllListeners?.(),this.messageManager?.cleanupMessageServerState?.()}}return Ir.SynapseSDK=u,Ir}var is={},au;function mB(){return au||(au=1,Object.defineProperty(is,"__esModule",{value:!0})),is}var jr={},lu;function wB(){return lu||(lu=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.USER_FEEDBACK=void 0,jr.USER_FEEDBACK={LIKE:"LIKE",DISLIKE:"DISLIKE",NONE:"NONE"}),jr}var Jr={},cu;function CB(){if(cu)return Jr;cu=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.ToolCall=void 0;const A=Jn();let e=class extends A.BaseResource{basePath="/med-assist/api-call-tool";async callTool(r,n,i){return this.post(`${this.basePath}?session_id=${r}&tool_name=${n}`,{tool_params:i})}};return Jr.ToolCall=e,Jr}var Me={},uu;function yB(){if(uu)return Me;uu=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.SYNAPSE_EICITATION_STATUS=Me.SYNAPSE_TOOL_CALLBACK_NAME=Me.SYNAPSE_COMPONENTS=Me.SYNAPSE_TOOL_NAME=void 0;var A;(function(n){n.MOBILE_VERIFICATION="mobile_verification",n.AVAILABILITY_DATES="availability_dates",n.AVAILABILITY_SLOTS="availability_slots",n.DOCTOR_AVAILABILITY="doctor_availability",n.DOCTOR_DETAILS="doctor_details",n.GET_LOCATION="get_location"})(A||(Me.SYNAPSE_TOOL_NAME=A={}));var e;(function(n){n.MOBILE="mobile_number",n.OTP="otp",n.EMAIL="email_address",n.PILL="pills",n.MULTI="multi",n.DOCTOR_CARD="doctor_card",n.CARD="card",n.MEDIA_CARD="media_card"})(e||(Me.SYNAPSE_COMPONENTS=e={}));var t;(function(n){n.DOCTOR_AVAILABILITY="get_doctor_availability",n.AVAILABILITY_DATES="get_available_dates",n.AVAILABILITY_SLOTS="get_available_slots",n.MOBILE_VERIFICATION="verify_mobile_number",n.DOCTOR_DETAILS="get_doctor_details"})(t||(Me.SYNAPSE_TOOL_CALLBACK_NAME=t={}));var r;return(function(n){n.PROGRESS="progress",n.SUCCESS="success",n.FAILURE="failure"})(r||(Me.SYNAPSE_EICITATION_STATUS=r={})),Me}var os={},du;function EB(){return du||(du=1,Object.defineProperty(os,"__esModule",{value:!0})),os}var $r={},fu;function vB(){return fu||(fu=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.ErrorType=void 0,$r.ErrorType={NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",API_ERROR:"API_ERROR",RATE_LIMIT_ERROR:"RATE_LIMIT_ERROR",SERVER_ERROR:"SERVER_ERROR",PARSE_ERROR:"PARSE_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR"}),$r}var ss={},hu;function bB(){return hu||(hu=1,Object.defineProperty(ss,"__esModule",{value:!0})),ss}var qr={},gu;function QB(){if(gu)return qr;gu=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.SYNAPSE_CONVERSATION=void 0;var A;return(function(e){e.TEXT="text",e.FILE="file",e.AUDIO="audio",e.VOICE="voice"})(A||(qr.SYNAPSE_CONVERSATION=A={})),qr}var Lt={},pu;function FB(){return pu||(pu=1,(function(A){var e=Lt&&Lt.__createBinding||(Object.create?(function(r,n,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,s)}):(function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]})),t=Lt&&Lt.__exportStar||function(r,n){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&e(n,r,i)};Object.defineProperty(A,"__esModule",{value:!0}),t(iu(),A)})(Lt)),Lt}var Bu;function UB(){return Bu||(Bu=1,(function(A){var e=Nt&&Nt.__createBinding||(Object.create?(function(m,C,b,_){_===void 0&&(_=b);var x=Object.getOwnPropertyDescriptor(C,b);(!x||("get"in x?!C.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return C[b]}}),Object.defineProperty(m,_,x)}):(function(m,C,b,_){_===void 0&&(_=b),m[_]=C[b]})),t=Nt&&Nt.__exportStar||function(m,C){for(var b in m)b!=="default"&&!Object.prototype.hasOwnProperty.call(C,b)&&e(C,m,b)};Object.defineProperty(A,"__esModule",{value:!0}),A.SYNAPSE_MESSAGE_TYPES=A.ErrorUtils=A.ErrorType=A.SynapseErrorCode=A.InternalServerError=A.RateLimitError=A.MethodNotAllowedError=A.NotFoundError=A.PermissionDeniedError=A.UnauthorizedError=A.BadRequestError=A.APIConnectionTimeoutError=A.APIUserAbortError=A.APIError=A.SynapseError=A.HttpClient=A.MessageManager=A.ToolCall=A.Session=A.ResourceManager=A.ConnectionType=A.ConnectionFactory=A.SSEConnection=A.WebSocketConnection=A.BaseConnection=A.SynapseSDK=void 0;var r=BB();Object.defineProperty(A,"SynapseSDK",{enumerable:!0,get:function(){return r.SynapseSDK}});var n=As();Object.defineProperty(A,"BaseConnection",{enumerable:!0,get:function(){return n.BaseConnection}});var i=kc();Object.defineProperty(A,"WebSocketConnection",{enumerable:!0,get:function(){return i.WebSocketConnection}});var o=Lc();Object.defineProperty(A,"SSEConnection",{enumerable:!0,get:function(){return o.SSEConnection}});var s=Oc();Object.defineProperty(A,"ConnectionFactory",{enumerable:!0,get:function(){return s.ConnectionFactory}}),Object.defineProperty(A,"ConnectionType",{enumerable:!0,get:function(){return s.ConnectionType}}),t(Hr(),A);var a=Yc();Object.defineProperty(A,"ResourceManager",{enumerable:!0,get:function(){return a.ResourceManager}}),t(mB(),A);var l=Gc();Object.defineProperty(A,"Session",{enumerable:!0,get:function(){return l.Session}}),t(wB(),A);var d=CB();Object.defineProperty(A,"ToolCall",{enumerable:!0,get:function(){return d.ToolCall}}),t(yB(),A);var u=Au();Object.defineProperty(A,"MessageManager",{enumerable:!0,get:function(){return u.MessageManager}}),t($n(),A),t(EB(),A);var h=Pc();Object.defineProperty(A,"HttpClient",{enumerable:!0,get:function(){return h.HttpClient}});var f=Qe();Object.defineProperty(A,"SynapseError",{enumerable:!0,get:function(){return f.SynapseError}}),Object.defineProperty(A,"APIError",{enumerable:!0,get:function(){return f.APIError}}),Object.defineProperty(A,"APIUserAbortError",{enumerable:!0,get:function(){return f.APIUserAbortError}}),Object.defineProperty(A,"APIConnectionTimeoutError",{enumerable:!0,get:function(){return f.APIConnectionTimeoutError}}),Object.defineProperty(A,"BadRequestError",{enumerable:!0,get:function(){return f.BadRequestError}}),Object.defineProperty(A,"UnauthorizedError",{enumerable:!0,get:function(){return f.UnauthorizedError}}),Object.defineProperty(A,"PermissionDeniedError",{enumerable:!0,get:function(){return f.PermissionDeniedError}}),Object.defineProperty(A,"NotFoundError",{enumerable:!0,get:function(){return f.NotFoundError}}),Object.defineProperty(A,"MethodNotAllowedError",{enumerable:!0,get:function(){return f.MethodNotAllowedError}}),Object.defineProperty(A,"RateLimitError",{enumerable:!0,get:function(){return f.RateLimitError}}),Object.defineProperty(A,"InternalServerError",{enumerable:!0,get:function(){return f.InternalServerError}}),Object.defineProperty(A,"SynapseErrorCode",{enumerable:!0,get:function(){return f.SynapseErrorCode}});var g=vB();Object.defineProperty(A,"ErrorType",{enumerable:!0,get:function(){return g.ErrorType}});var p=tu();Object.defineProperty(A,"ErrorUtils",{enumerable:!0,get:function(){return p.ErrorUtils}}),t(bB(),A);var w=$n();Object.defineProperty(A,"SYNAPSE_MESSAGE_TYPES",{enumerable:!0,get:function(){return w.SYNAPSE_MESSAGE_TYPES}}),t(QB(),A),t(FB(),A)})(Nt)),Nt}var P=UB();function mu(A){var e,t,r="";if(typeof A=="string"||typeof A=="number")r+=A;else if(typeof A=="object")if(Array.isArray(A)){var n=A.length;for(e=0;e<n;e++)A[e]&&(t=mu(A[e]))&&(r&&(r+=" "),r+=t)}else for(t in A)A[t]&&(r&&(r+=" "),r+=t);return r}function wu(){for(var A,e,t=0,r="",n=arguments.length;t<n;t++)(A=arguments[t])&&(e=mu(A))&&(r&&(r+=" "),r+=e);return r}const xB=(A,e)=>{const t=new Array(A.length+e.length);for(let r=0;r<A.length;r++)t[r]=A[r];for(let r=0;r<e.length;r++)t[A.length+r]=e[r];return t},SB=(A,e)=>({classGroupId:A,validator:e}),Cu=(A=new Map,e=null,t)=>({nextPart:A,validators:e,classGroupId:t}),qn="-",yu=[],_B="arbitrary..",IB=A=>{const e=NB(A),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=A;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return TB(o);const s=o.split(qn),a=s[0]===""&&s.length>1?1:0;return Eu(s,a,e)},getConflictingClassGroupIds:(o,s)=>{if(s){const a=r[o],l=t[o];return a?l?xB(l,a):a:l||yu}return t[o]||yu}}},Eu=(A,e,t)=>{if(A.length-e===0)return t.classGroupId;const n=A[e],i=t.nextPart.get(n);if(i){const l=Eu(A,e+1,i);if(l)return l}const o=t.validators;if(o===null)return;const s=e===0?A.join(qn):A.slice(e).join(qn),a=o.length;for(let l=0;l<a;l++){const d=o[l];if(d.validator(s))return d.classGroupId}},TB=A=>A.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=A.slice(1,-1),t=e.indexOf(":"),r=e.slice(0,t);return r?_B+r:void 0})(),NB=A=>{const{theme:e,classGroups:t}=A;return kB(t,e)},kB=(A,e)=>{const t=Cu();for(const r in A){const n=A[r];as(n,t,r,e)}return t},as=(A,e,t,r)=>{const n=A.length;for(let i=0;i<n;i++){const o=A[i];HB(o,e,t,r)}},HB=(A,e,t,r)=>{if(typeof A=="string"){LB(A,e,t);return}if(typeof A=="function"){MB(A,e,t,r);return}OB(A,e,t,r)},LB=(A,e,t)=>{const r=A===""?e:vu(e,A);r.classGroupId=t},MB=(A,e,t,r)=>{if(RB(A)){as(A(r),e,t,r);return}e.validators===null&&(e.validators=[]),e.validators.push(SB(t,A))},OB=(A,e,t,r)=>{const n=Object.entries(A),i=n.length;for(let o=0;o<i;o++){const[s,a]=n[o];as(a,vu(e,s),t,r)}},vu=(A,e)=>{let t=A;const r=e.split(qn),n=r.length;for(let i=0;i<n;i++){const o=r[i];let s=t.nextPart.get(o);s||(s=Cu(),t.nextPart.set(o,s)),t=s}return t},RB=A=>"isThemeGetter"in A&&A.isThemeGetter===!0,DB=A=>{if(A<1)return{get:()=>{},set:()=>{}};let e=0,t=Object.create(null),r=Object.create(null);const n=(i,o)=>{t[i]=o,e++,e>A&&(e=0,r=t,t=Object.create(null))};return{get(i){let o=t[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return n(i,o),o},set(i,o){i in t?t[i]=o:n(i,o)}}},ls="!",bu=":",PB=[],Qu=(A,e,t,r,n)=>({modifiers:A,hasImportantModifier:e,baseClassName:t,maybePostfixModifierPosition:r,isExternal:n}),KB=A=>{const{prefix:e,experimentalParseClassName:t}=A;let r=n=>{const i=[];let o=0,s=0,a=0,l;const d=n.length;for(let p=0;p<d;p++){const w=n[p];if(o===0&&s===0){if(w===bu){i.push(n.slice(a,p)),a=p+1;continue}if(w==="/"){l=p;continue}}w==="["?o++:w==="]"?o--:w==="("?s++:w===")"&&s--}const u=i.length===0?n:n.slice(a);let h=u,f=!1;u.endsWith(ls)?(h=u.slice(0,-1),f=!0):u.startsWith(ls)&&(h=u.slice(1),f=!0);const g=l&&l>a?l-a:void 0;return Qu(i,f,h,g)};if(e){const n=e+bu,i=r;r=o=>o.startsWith(n)?i(o.slice(n.length)):Qu(PB,!1,o,void 0,!0)}if(t){const n=r;r=i=>t({className:i,parseClassName:n})}return r},VB=A=>{const e=new Map;return A.orderSensitiveModifiers.forEach((t,r)=>{e.set(t,1e6+r)}),t=>{const r=[];let n=[];for(let i=0;i<t.length;i++){const o=t[i],s=o[0]==="[",a=e.has(o);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(o)):n.push(o)}return n.length>0&&(n.sort(),r.push(...n)),r}},GB=A=>({cache:DB(A.cacheSize),parseClassName:KB(A),sortModifiers:VB(A),...IB(A)}),zB=/\s+/,WB=(A,e)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i}=e,o=[],s=A.trim().split(zB);let a="";for(let l=s.length-1;l>=0;l-=1){const d=s[l],{isExternal:u,modifiers:h,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:p}=t(d);if(u){a=d+(a.length>0?" "+a:a);continue}let w=!!p,m=r(w?g.substring(0,p):g);if(!m){if(!w){a=d+(a.length>0?" "+a:a);continue}if(m=r(g),!m){a=d+(a.length>0?" "+a:a);continue}w=!1}const C=h.length===0?"":h.length===1?h[0]:i(h).join(":"),b=f?C+ls:C,_=b+m;if(o.indexOf(_)>-1)continue;o.push(_);const x=n(m,w);for(let y=0;y<x.length;++y){const F=x[y];o.push(b+F)}a=d+(a.length>0?" "+a:a)}return a},XB=(...A)=>{let e=0,t,r,n="";for(;e<A.length;)(t=A[e++])&&(r=Fu(t))&&(n&&(n+=" "),n+=r);return n},Fu=A=>{if(typeof A=="string")return A;let e,t="";for(let r=0;r<A.length;r++)A[r]&&(e=Fu(A[r]))&&(t&&(t+=" "),t+=e);return t},YB=(A,...e)=>{let t,r,n,i;const o=a=>{const l=e.reduce((d,u)=>u(d),A());return t=GB(l),r=t.cache.get,n=t.cache.set,i=s,s(a)},s=a=>{const l=r(a);if(l)return l;const d=WB(a,t);return n(a,d),d};return i=o,(...a)=>i(XB(...a))},jB=[],XA=A=>{const e=t=>t[A]||jB;return e.isThemeGetter=!0,e},Uu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,JB=/^\d+\/\d+$/,$B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qB=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ZB=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Am=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,em=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zt=A=>JB.test(A),hA=A=>!!A&&!Number.isNaN(Number(A)),pt=A=>!!A&&Number.isInteger(Number(A)),cs=A=>A.endsWith("%")&&hA(A.slice(0,-1)),rt=A=>$B.test(A),tm=()=>!0,rm=A=>qB.test(A)&&!ZB.test(A),Su=()=>!1,nm=A=>Am.test(A),im=A=>em.test(A),om=A=>!$(A)&&!q(A),sm=A=>Ar(A,ku,Su),$=A=>Uu.test(A),Mt=A=>Ar(A,Hu,rm),us=A=>Ar(A,dm,hA),_u=A=>Ar(A,Tu,Su),am=A=>Ar(A,Nu,im),Zn=A=>Ar(A,Lu,nm),q=A=>xu.test(A),Zr=A=>er(A,Hu),lm=A=>er(A,fm),Iu=A=>er(A,Tu),cm=A=>er(A,ku),um=A=>er(A,Nu),Ai=A=>er(A,Lu,!0),Ar=(A,e,t)=>{const r=Uu.exec(A);return r?r[1]?e(r[1]):t(r[2]):!1},er=(A,e,t=!1)=>{const r=xu.exec(A);return r?r[1]?e(r[1]):t:!1},Tu=A=>A==="position"||A==="percentage",Nu=A=>A==="image"||A==="url",ku=A=>A==="length"||A==="size"||A==="bg-size",Hu=A=>A==="length",dm=A=>A==="number",fm=A=>A==="family-name",Lu=A=>A==="shadow",hm=YB(()=>{const A=XA("color"),e=XA("font"),t=XA("text"),r=XA("font-weight"),n=XA("tracking"),i=XA("leading"),o=XA("breakpoint"),s=XA("container"),a=XA("spacing"),l=XA("radius"),d=XA("shadow"),u=XA("inset-shadow"),h=XA("text-shadow"),f=XA("drop-shadow"),g=XA("blur"),p=XA("perspective"),w=XA("aspect"),m=XA("ease"),C=XA("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[..._(),q,$],y=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],Q=()=>[q,$,a],E=()=>[Zt,"full","auto",...Q()],I=()=>[pt,"none","subgrid",q,$],k=()=>["auto",{span:["full",pt,q,$]},pt,q,$],S=()=>[pt,"auto",q,$],L=()=>["auto","min","max","fr",q,$],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...Q()],z=()=>[Zt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Q()],D=()=>[A,q,$],cA=()=>[..._(),Iu,_u,{position:[q,$]}],v=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eA=()=>["auto","cover","contain",cm,sm,{size:[q,$]}],rA=()=>[cs,Zr,Mt],B=()=>["","none","full",l,q,$],J=()=>["",hA,Zr,Mt],AA=()=>["solid","dashed","dotted","double"],tA=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],nA=()=>[hA,cs,Iu,_u],DA=()=>["","none",g,q,$],OA=()=>["none",hA,q,$],UA=()=>["none",hA,q,$],EA=()=>[hA,q,$],re=()=>[Zt,"full",...Q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rt],breakpoint:[rt],color:[tm],container:[rt],"drop-shadow":[rt],ease:["in","out","in-out"],font:[om],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rt],shadow:[rt],spacing:["px",hA],text:[rt],"text-shadow":[rt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zt,$,q,w]}],container:["container"],columns:[{columns:[hA,$,q,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[pt,"auto",q,$]}],basis:[{basis:[Zt,"full","auto",s,...Q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[hA,Zt,"auto","initial","none",$]}],grow:[{grow:["",hA,q,$]}],shrink:[{shrink:["",hA,q,$]}],order:[{order:[pt,"first","last","none",q,$]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:Q()}],"gap-x":[{"gap-x":Q()}],"gap-y":[{"gap-y":Q()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:Q()}],px:[{px:Q()}],py:[{py:Q()}],ps:[{ps:Q()}],pe:[{pe:Q()}],pt:[{pt:Q()}],pr:[{pr:Q()}],pb:[{pb:Q()}],pl:[{pl:Q()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":Q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Q()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[s,"screen",...z()]}],"min-w":[{"min-w":[s,"screen","none",...z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",t,Zr,Mt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,us]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cs,$]}],"font-family":[{font:[lm,$,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,q,$]}],"line-clamp":[{"line-clamp":[hA,"none",q,us]}],leading:[{leading:[i,...Q()]}],"list-image":[{"list-image":["none",q,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...AA(),"wavy"]}],"text-decoration-thickness":[{decoration:[hA,"from-font","auto",q,Mt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[hA,"auto",q,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:cA()}],"bg-repeat":[{bg:v()}],"bg-size":[{bg:eA()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pt,q,$],radial:["",q,$],conic:[pt,q,$]},um,am]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:rA()}],"gradient-via-pos":[{via:rA()}],"gradient-to-pos":[{to:rA()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...AA(),"hidden","none"]}],"divide-style":[{divide:[...AA(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...AA(),"none","hidden"]}],"outline-offset":[{"outline-offset":[hA,q,$]}],"outline-w":[{outline:["",hA,Zr,Mt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",d,Ai,Zn]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",u,Ai,Zn]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[hA,Mt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,Ai,Zn]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[hA,q,$]}],"mix-blend":[{"mix-blend":[...tA(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":tA()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[hA]}],"mask-image-linear-from-pos":[{"mask-linear-from":nA()}],"mask-image-linear-to-pos":[{"mask-linear-to":nA()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":nA()}],"mask-image-t-to-pos":[{"mask-t-to":nA()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":nA()}],"mask-image-r-to-pos":[{"mask-r-to":nA()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":nA()}],"mask-image-b-to-pos":[{"mask-b-to":nA()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":nA()}],"mask-image-l-to-pos":[{"mask-l-to":nA()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":nA()}],"mask-image-x-to-pos":[{"mask-x-to":nA()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":nA()}],"mask-image-y-to-pos":[{"mask-y-to":nA()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[q,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":nA()}],"mask-image-radial-to-pos":[{"mask-radial-to":nA()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[hA]}],"mask-image-conic-from-pos":[{"mask-conic-from":nA()}],"mask-image-conic-to-pos":[{"mask-conic-to":nA()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:cA()}],"mask-repeat":[{mask:v()}],"mask-size":[{mask:eA()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,$]}],filter:[{filter:["","none",q,$]}],blur:[{blur:DA()}],brightness:[{brightness:[hA,q,$]}],contrast:[{contrast:[hA,q,$]}],"drop-shadow":[{"drop-shadow":["","none",f,Ai,Zn]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",hA,q,$]}],"hue-rotate":[{"hue-rotate":[hA,q,$]}],invert:[{invert:["",hA,q,$]}],saturate:[{saturate:[hA,q,$]}],sepia:[{sepia:["",hA,q,$]}],"backdrop-filter":[{"backdrop-filter":["","none",q,$]}],"backdrop-blur":[{"backdrop-blur":DA()}],"backdrop-brightness":[{"backdrop-brightness":[hA,q,$]}],"backdrop-contrast":[{"backdrop-contrast":[hA,q,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",hA,q,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[hA,q,$]}],"backdrop-invert":[{"backdrop-invert":["",hA,q,$]}],"backdrop-opacity":[{"backdrop-opacity":[hA,q,$]}],"backdrop-saturate":[{"backdrop-saturate":[hA,q,$]}],"backdrop-sepia":[{"backdrop-sepia":["",hA,q,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Q()}],"border-spacing-x":[{"border-spacing-x":Q()}],"border-spacing-y":[{"border-spacing-y":Q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[hA,"initial",q,$]}],ease:[{ease:["linear","initial",m,q,$]}],delay:[{delay:[hA,q,$]}],animate:[{animate:["none",C,q,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,q,$]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:OA()}],"rotate-x":[{"rotate-x":OA()}],"rotate-y":[{"rotate-y":OA()}],"rotate-z":[{"rotate-z":OA()}],scale:[{scale:UA()}],"scale-x":[{"scale-x":UA()}],"scale-y":[{"scale-y":UA()}],"scale-z":[{"scale-z":UA()}],"scale-3d":["scale-3d"],skew:[{skew:EA()}],"skew-x":[{"skew-x":EA()}],"skew-y":[{"skew-y":EA()}],transform:[{transform:[q,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Q()}],"scroll-mx":[{"scroll-mx":Q()}],"scroll-my":[{"scroll-my":Q()}],"scroll-ms":[{"scroll-ms":Q()}],"scroll-me":[{"scroll-me":Q()}],"scroll-mt":[{"scroll-mt":Q()}],"scroll-mr":[{"scroll-mr":Q()}],"scroll-mb":[{"scroll-mb":Q()}],"scroll-ml":[{"scroll-ml":Q()}],"scroll-p":[{"scroll-p":Q()}],"scroll-px":[{"scroll-px":Q()}],"scroll-py":[{"scroll-py":Q()}],"scroll-ps":[{"scroll-ps":Q()}],"scroll-pe":[{"scroll-pe":Q()}],"scroll-pt":[{"scroll-pt":Q()}],"scroll-pr":[{"scroll-pr":Q()}],"scroll-pb":[{"scroll-pb":Q()}],"scroll-pl":[{"scroll-pl":Q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,$]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[hA,Zr,Mt,us]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function K(...A){return hm(wu(A))}function tr(A){if(!A&&A!==0)return"";const e=A instanceof Date?A:new Date(typeof A=="number"?A:Number(A)||A);return Number.isNaN(e.getTime())?"":e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const gm=A=>{switch(A){case P.SYNAPSE_COMPONENTS.DOCTOR_CARD:case P.SYNAPSE_COMPONENTS.CARD:return!0;default:return!1}},pm=A=>new Promise(e=>setTimeout(e,A)),Mu=oA(({className:A,children:e,...t},r)=>c(Uc,{ref:r,className:K("relative overflow-hidden",A),...t,children:[c(sB,{className:"h-full w-full rounded-[inherit] overscroll-contain",children:e}),c(Ou,{}),c(aB,{})]}));Mu.displayName=Uc.displayName;const Ou=oA(({className:A,orientation:e="vertical",...t},r)=>c(jo,{ref:r,orientation:e,className:K("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",A),...t,children:c(yc,{className:"relative flex-1 rounded-full bg-border"})}));Ou.displayName=jo.displayName;var Bm=Symbol.for("react.lazy"),ei=Wo[" use ".trim().toString()];function mm(A){return typeof A=="object"&&A!==null&&"then"in A}function Ru(A){return A!=null&&typeof A=="object"&&"$$typeof"in A&&A.$$typeof===Bm&&"_payload"in A&&mm(A._payload)}function Du(A){const e=Cm(A),t=oA((r,n)=>{let{children:i,...o}=r;Ru(i)&&typeof ei=="function"&&(i=ei(i._payload));const s=Be.toArray(i),a=s.find(Em);if(a){const l=a.props.children,d=s.map(u=>u===a?Be.count(l)>1?Be.only(null):me(l)?l.props.children:null:u);return c(e,{...o,ref:n,children:me(l)?Tt(l,void 0,d):null})}return c(e,{...o,ref:n,children:i})});return t.displayName=`${A}.Slot`,t}var wm=Du("Slot");function Cm(A){const e=oA((t,r)=>{let{children:n,...i}=t;if(Ru(n)&&typeof ei=="function"&&(n=ei(n._payload)),me(n)){const o=bm(n),s=vm(i,n.props);return n.type!==QA&&(s.ref=r?Xo(r,o):o),Tt(n,s)}return Be.count(n)>1?Be.only(null):null});return e.displayName=`${A}.SlotClone`,e}var ym=Symbol("radix.slottable");function Em(A){return me(A)&&typeof A.type=="function"&&"__radixId"in A.type&&A.type.__radixId===ym}function vm(A,e){const t={...e};for(const r in e){const n=A[r],i=e[r];/^on[A-Z]/.test(r)?n&&i?t[r]=(...s)=>{const a=i(...s);return n(...s),a}:n&&(t[r]=n):r==="style"?t[r]={...n,...i}:r==="className"&&(t[r]=[n,i].filter(Boolean).join(" "))}return{...A,...t}}function bm(A){let e=Object.getOwnPropertyDescriptor(A.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?A.ref:(e=Object.getOwnPropertyDescriptor(A,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?A.props.ref:A.props.ref||A.ref)}const Pu=A=>typeof A=="boolean"?`${A}`:A===0?"0":A,Ku=wu,Qm=((A,e)=>t=>{var r;if(e?.variants==null)return Ku(A,t?.class,t?.className);const{variants:n,defaultVariants:i}=e,o=Object.keys(n).map(l=>{const d=t?.[l],u=i?.[l];if(d===null)return null;const h=Pu(d)||Pu(u);return n[l][h]}),s=t&&Object.entries(t).reduce((l,d)=>{let[u,h]=d;return h===void 0||(l[u]=h),l},{}),a=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:u,className:h,...f}=d;return Object.entries(f).every(g=>{let[p,w]=g;return Array.isArray(w)?w.includes({...i,...s}[p]):{...i,...s}[p]===w})?[...l,u,h]:l},[]);return Ku(A,o,a,t?.class,t?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),uA=oA(({className:A,variant:e,size:t,asChild:r=!1,...n},i)=>c(r?wm:"button",{className:K(Qm({variant:e,size:t,className:A})),ref:i,...n}));uA.displayName="Button";const Fm=A=>A.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Um=A=>A.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),Vu=A=>{const e=Um(A);return e.charAt(0).toUpperCase()+e.slice(1)},Gu=(...A)=>A.filter((e,t,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===t).join(" ").trim(),xm=A=>{for(const e in A)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var Sm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const _m=oA(({color:A="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:n="",children:i,iconNode:o,...s},a)=>pe("svg",{ref:a,...Sm,width:e,height:e,stroke:A,strokeWidth:r?Number(t)*24/Number(e):t,className:Gu("lucide",n),...!i&&!xm(s)&&{"aria-hidden":"true"},...s},[...o.map(([l,d])=>pe(l,d)),...Array.isArray(i)?i:[i]]));const wA=(A,e)=>{const t=oA(({className:r,...n},i)=>pe(_m,{ref:i,iconNode:e,className:Gu(`lucide-${Fm(Vu(A))}`,`lucide-${A}`,r),...n}));return t.displayName=Vu(A),t};const Im=wA("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const zu=wA("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);const Tm=wA("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const Nm=wA("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const ds=wA("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const rr=wA("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Wu=wA("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const Xu=wA("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const km=wA("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Hm=wA("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);const Lm=wA("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const Mm=wA("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const Om=wA("euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);const Rm=wA("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const Dm=wA("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Pm=wA("indian-rupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]]);const Km=wA("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const Vm=wA("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);const ti=wA("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const Gm=wA("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);const zm=wA("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const Yu=wA("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const Wm=wA("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);const fs=wA("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const Xm=wA("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const Ym=wA("phone-off",[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]);const ju=wA("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const jm=wA("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);const Ju=wA("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const ri=wA("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);const ni=wA("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const Jm=wA("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);const $m=wA("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const An=wA("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const qm=wA("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),$u=A=>{let e;const t=new Set,r=(l,d)=>{const u=typeof l=="function"?l(e):l;if(!Object.is(u,e)){const h=e;e=d??(typeof u!="object"||u===null)?u:Object.assign({},e,u),t.forEach(f=>f(e,h))}},n=()=>e,s={setState:r,getState:n,getInitialState:()=>a,subscribe:l=>(t.add(l),()=>t.delete(l))},a=e=A(r,n,s);return s},Zm=(A=>A?$u(A):$u),A0=A=>A;function e0(A,e=A0){const t=_r.useSyncExternalStore(A.subscribe,_r.useCallback(()=>e(A.getState()),[A,e]),_r.useCallback(()=>e(A.getInitialState()),[A,e]));return _r.useDebugValue(t),t}const qu=A=>{const e=Zm(A),t=r=>e0(e,r);return Object.assign(t,e),t},t0=(A=>A?qu(A):qu);function Zu(A,e){let t;try{t=A()}catch{return}return{getItem:n=>{var i;const o=a=>a===null?null:JSON.parse(a,void 0),s=(i=t.getItem(n))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(n,i)=>t.setItem(n,JSON.stringify(i,void 0)),removeItem:n=>t.removeItem(n)}}const hs=A=>e=>{try{const t=A(e);return t instanceof Promise?t:{then(r){return hs(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return hs(r)(t)}}}},r0=(A,e)=>(t,r,n)=>{let i={storage:Zu(()=>localStorage),partialize:p=>p,version:0,merge:(p,w)=>({...w,...p}),...e},o=!1;const s=new Set,a=new Set;let l=i.storage;if(!l)return A((...p)=>{t(...p)},r,n);const d=()=>{const p=i.partialize({...r()});return l.setItem(i.name,{state:p,version:i.version})},u=n.setState;n.setState=(p,w)=>(u(p,w),d());const h=A((...p)=>(t(...p),d()),r,n);n.getInitialState=()=>h;let f;const g=()=>{var p,w;if(!l)return;o=!1,s.forEach(C=>{var b;return C((b=r())!=null?b:h)});const m=((w=i.onRehydrateStorage)==null?void 0:w.call(i,(p=r())!=null?p:h))||void 0;return hs(l.getItem.bind(l))(i.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==i.version){if(i.migrate){const b=i.migrate(C.state,C.version);return b instanceof Promise?b.then(_=>[!0,_]):[!0,b]}}else return[!1,C.state];return[!1,void 0]}).then(C=>{var b;const[_,x]=C;if(f=i.merge(x,(b=r())!=null?b:h),t(f,!0),_)return d()}).then(()=>{m?.(f,void 0),f=r(),o=!0,a.forEach(C=>C(f))}).catch(C=>{m?.(void 0,C)})};return n.persist={setOptions:p=>{i={...i,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l?.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:p=>(s.add(p),()=>{s.delete(p)}),onFinishHydration:p=>(a.add(p),()=>{a.delete(p)})},i.skipHydration||g(),f||h},Fe={USER:"user",ASSISTANT:"assistant"};var NA=(A=>(A.IDLE="idle",A.LISTENING="listening",A.ERROR="error",A.PROCESSING="processing",A.TRANSCRIBING="transcribing",A))(NA||{}),$A=(A=>(A.CONNECTED="connected",A.NOT_CONNECTED="not_connected",A.CONNECTING="connecting",A))($A||{});let Bt="";const n0=A=>{Bt=`med-assist-store-${A}`},Ad={sessionId:"",sessionToken:"",isStreaming:!1,recordingStatus:NA.IDLE,isWaitingForResponse:!1,error:null,isTimeoutError:!1,startNewConnection:!1,showRetryButton:!1,chats:{},inlineText:null,isRefreshingSession:!1,ConnectionStatus:$A.CONNECTING,streamingTimeoutId:null,responseTimeoutId:null,lastStreamingActivity:null,progressMessage:null,fileUploadPerSession:0,elicitationState:{},toastMessage:null},CA=t0()(r0((A,e)=>({sessionId:"",setSessionId:t=>A({sessionId:t}),sessionToken:"",setSessionToken:t=>A({sessionToken:t}),initialMessage:null,setInitialMessage:t=>A({initialMessage:t}),agentId:"",setAgentId:t=>A({agentId:t}),userId:"",setUserId:t=>A({userId:t}),context:null,setContext:t=>A({context:t}),connectionStatus:$A.CONNECTING,setConnectionStatus:t=>A({connectionStatus:t}),isStreaming:!1,setIsStreaming:t=>A({isStreaming:t}),isWaitingForResponse:!1,setIsWaitingForResponse:t=>A({isWaitingForResponse:t}),progressMessage:null,setProgressMessage:t=>A({progressMessage:t}),recordingStatus:NA.IDLE,setRecordingStatus:t=>A({recordingStatus:t}),startNewConnection:!1,setStartNewConnection:t=>A({startNewConnection:t}),fileUploadPerSession:0,setFileUploadPerSession:t=>A({fileUploadPerSession:t}),elicitationState:{},setElicitationState:t=>A({elicitationState:t}),upsertElicitationState:(t,r)=>{const n=e().elicitationState;A({elicitationState:{...n,[t]:r}})},toastMessage:null,setToastMessage:t=>A({toastMessage:t}),inlineText:null,setInlineText:t=>A({inlineText:t}),isBotIconAnimating:!1,setIsBotIconAnimating:t=>A({isBotIconAnimating:t}),isMobile:!1,setIsMobile:t=>A({isMobile:t}),displayMode:"widget",setDisplayMode:t=>A({displayMode:t}),toggleDisplayMode:()=>A({displayMode:e().displayMode==="full"?"widget":"full"}),initialDisplayMode:"widget",setInitialDisplayMode:t=>A({initialDisplayMode:t}),chats:{},addMessageToSession:(t,r)=>{A(n=>({chats:{...n.chats,[t]:[...n.chats[t]||[],r]}}))},updateMessageInSession:(t,r,n)=>A(i=>({chats:{...i.chats,[t]:(i.chats[t]||[]).map(o=>o.id===r?{...o,...n}:o)}})),getMessagesForSession:t=>e().chats[t]||[],clearMessagesForSession:t=>A(r=>({chats:{...r.chats,[t]:[]}})),clearAllChats:()=>A({chats:{}}),error:null,setError:t=>A({error:t}),clearError:()=>A({error:null,isTimeoutError:!1,showRetryButton:!1,startNewConnection:!1}),showRetryButton:!1,setShowRetryButton:t=>A({showRetryButton:t}),isTimeoutError:!1,setTimeoutError:t=>A({isTimeoutError:t}),clearSession:async()=>{A(Ad),await sessionStorage.removeItem(Bt||`med-assist-store-${e().agentId}`)},streamingTimeoutId:null,setStreamingTimeoutId:t=>A({streamingTimeoutId:t}),clearStreamingTimeout:()=>{const t=e();t.streamingTimeoutId&&(clearTimeout(t.streamingTimeoutId),A({streamingTimeoutId:null}))},responseTimeoutId:null,setResponseTimeoutId:t=>A({responseTimeoutId:t}),clearResponseTimeout:()=>{const t=e();t.responseTimeoutId&&(clearTimeout(t.responseTimeoutId),A({responseTimeoutId:null}))},lastStreamingActivity:null,setLastStreamingActivity:t=>A({lastStreamingActivity:t})}),{name:"med-assist-store",storage:Zu(()=>({getItem:()=>Bt?sessionStorage.getItem(Bt):null,setItem:(A,e)=>{Bt&&sessionStorage.setItem(Bt,e)},removeItem:()=>{Bt&&sessionStorage.removeItem(Bt)}})),partialize:A=>({agentId:A.agentId,userId:A.userId,context:A.context,chats:A.chats,sessionId:A.sessionId,sessionToken:A.sessionToken,initialMessage:A.initialMessage,connectionStatus:A.connectionStatus,elicitationState:A.elicitationState})})),i0=A=>{const e=`med-assist-store-${A}`;let t=null;try{const r=sessionStorage.getItem(e);if(r){const n=JSON.parse(r);n?.state&&(t=n.state)}}catch{}CA.setState(Ad),t&&CA.setState(t)},gs=qe(null),o0=({children:A})=>{const[e,t]=G(null);return c(gs.Provider,{value:{synapse:e,setSynapse:t},children:A})},s0=()=>{const A=At(gs);if(!A)throw new Error("useSynapse must be used within a SynapseProvider");return A.synapse},a0=()=>{const A=At(gs);if(!A)throw new Error("useSynapseSetter must be used within a SynapseProvider");return A.setSynapse},l0=()=>{const[A,e]=G(P.VOICE_AGENT_STATE.IDLE),[t,r]=G(!1),n=s0(),{setError:i}=CA();j(()=>{if(!n)return;const d=n.voice,u=f=>{e(f)},h=()=>{i({title:"Voice connection failed. Please try again."})};return d.on(P.VOICE_AGENT_EVENTS.STATE_CHANGED,u),d.on(P.VOICE_AGENT_EVENTS.ERROR,h),()=>{d.off(P.VOICE_AGENT_EVENTS.STATE_CHANGED,u),d.off(P.VOICE_AGENT_EVENTS.ERROR,h)}},[n,i]);const o=mA(async()=>{if(!n){i({title:"Voice connection failed. Please try again."});return}await n.voice.connect()},[n,i]),s=mA(()=>{n?.voice.disconnect(),t&&r(!1)},[n]),a=mA(()=>{n?.voice.reset(),t&&r(!1)},[n]),l=mA(()=>{r(d=>!d),n?.voice.toggleMute()},[n]);return{state:A,isMuted:t,connect:o,disconnect:s,reset:a,toggleMute:l}},nt=oA(({className:A,...e},t)=>c("div",{ref:t,className:K("rounded-xl bg-elicitationBg text-card-foreground shadow",A),...e}));nt.displayName="Card";const ps=oA(({className:A,...e},t)=>c("div",{ref:t,className:K("flex flex-col space-y-1.5 p-6",A),...e}));ps.displayName="CardHeader";const ed=oA(({className:A,...e},t)=>c("div",{ref:t,className:K("font-semibold leading-none tracking-tight",A),...e}));ed.displayName="CardTitle";const c0=oA(({className:A,...e},t)=>c("div",{ref:t,className:K("text-sm text-muted-foreground",A),...e}));c0.displayName="CardDescription";const ii=oA(({className:A,...e},t)=>c("div",{ref:t,className:K("p-6 pt-0",A),...e}));ii.displayName="CardContent";const td=oA(({className:A,...e},t)=>c("div",{ref:t,className:K("flex items-center p-6 pt-0",A),...e}));td.displayName="CardFooter";function u0(A,e=[]){let t=[];function r(i,o){const s=qe(o);s.displayName=i+"Context";const a=t.length;t=[...t,o];const l=u=>{const{scope:h,children:f,...g}=u,p=h?.[A]?.[a]||s,w=yA(()=>g,Object.values(g));return c(p.Provider,{value:w,children:f})};l.displayName=i+"Provider";function d(u,h){const f=h?.[A]?.[a]||s,g=At(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[l,d]}const n=()=>{const i=t.map(o=>qe(o));return function(s){const a=s?.[A]||i;return yA(()=>({[`__scope${A}`]:{...s,[A]:a}}),[s,a])}};return n.scopeName=A,[r,d0(n,...e)]}function d0(...A){const e=A[0];if(A.length===1)return e;const t=()=>{const r=A.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const u=a(i)[`__scope${l}`];return{...s,...u}},{});return yA(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var f0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bs=f0.reduce((A,e)=>{const t=Du(`Primitive.${e}`),r=oA((n,i)=>{const{asChild:o,...s}=n,a=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c(a,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...A,[e]:r}},{}),ms={exports:{}},ws={};const h0=lB(Wo);var rd;function g0(){if(rd)return ws;rd=1;var A=h0;function e(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var t=typeof Object.is=="function"?Object.is:e,r=A.useState,n=A.useEffect,i=A.useLayoutEffect,o=A.useDebugValue;function s(u,h){var f=h(),g=r({inst:{value:f,getSnapshot:h}}),p=g[0].inst,w=g[1];return i(function(){p.value=f,p.getSnapshot=h,a(p)&&w({inst:p})},[u,f,h]),n(function(){return a(p)&&w({inst:p}),u(function(){a(p)&&w({inst:p})})},[u]),o(f),f}function a(u){var h=u.getSnapshot;u=u.value;try{var f=h();return!t(u,f)}catch{return!0}}function l(u,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return ws.useSyncExternalStore=A.useSyncExternalStore!==void 0?A.useSyncExternalStore:d,ws}var nd;function p0(){return nd||(nd=1,ms.exports=g0()),ms.exports}var B0=p0();function m0(){return B0.useSyncExternalStore(w0,()=>!0,()=>!1)}function w0(){return()=>{}}var Cs="Avatar",[C0]=u0(Cs),[y0,id]=C0(Cs),od=oA((A,e)=>{const{__scopeAvatar:t,...r}=A,[n,i]=G("idle");return c(y0,{scope:t,imageLoadingStatus:n,onImageLoadingStatusChange:i,children:c(Bs.span,{...r,ref:e})})});od.displayName=Cs;var sd="AvatarImage",ad=oA((A,e)=>{const{__scopeAvatar:t,src:r,onLoadingStatusChange:n=()=>{},...i}=A,o=id(sd,t),s=E0(r,i),a=gt(l=>{n(l),o.onImageLoadingStatusChange(l)});return ht(()=>{s!=="idle"&&a(s)},[s,a]),s==="loaded"?c(Bs.img,{...i,ref:e,src:r}):null});ad.displayName=sd;var ld="AvatarFallback",cd=oA((A,e)=>{const{__scopeAvatar:t,delayMs:r,...n}=A,i=id(ld,t),[o,s]=G(r===void 0);return j(()=>{if(r!==void 0){const a=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(a)}},[r]),o&&i.imageLoadingStatus!=="loaded"?c(Bs.span,{...n,ref:e}):null});cd.displayName=ld;function ud(A,e){return A?e?(A.src!==e&&(A.src=e),A.complete&&A.naturalWidth>0?"loaded":"loading"):"error":"idle"}function E0(A,{referrerPolicy:e,crossOrigin:t}){const r=m0(),n=Z(null),i=r?(n.current||(n.current=new window.Image),n.current):null,[o,s]=G(()=>ud(i,A));return ht(()=>{s(ud(i,A))},[i,A]),ht(()=>{const a=u=>()=>{s(u)};if(!i)return;const l=a("loaded"),d=a("error");return i.addEventListener("load",l),i.addEventListener("error",d),e&&(i.referrerPolicy=e),typeof t=="string"&&(i.crossOrigin=t),()=>{i.removeEventListener("load",l),i.removeEventListener("error",d)}},[i,t,e]),o}var dd=od,fd=ad,hd=cd;const ys=oA(({className:A,...e},t)=>c(dd,{ref:t,className:K("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",A),...e}));ys.displayName=dd.displayName;const gd=oA(({className:A,...e},t)=>c(fd,{ref:t,className:K("aspect-square h-full w-full",A),...e}));gd.displayName=fd.displayName;const Es=oA(({className:A,...e},t)=>c(hd,{ref:t,className:K("flex h-full w-full items-center justify-center rounded-full bg-muted",A),...e}));Es.displayName=hd.displayName;const pd=qe(!1);function v0({enabled:A,children:e}){return c(pd.Provider,{value:A,children:e})}function b0(){return At(pd)}const Bd="(max-width: 768px), (pointer: coarse)",md=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;function Q0(){if(typeof window>"u")return!1;const A=window.matchMedia?.(Bd)?.matches??!1,e=md.test(navigator?.userAgent??"");return A||e}function wd(){const[A,e]=G(Q0);return j(()=>{if(typeof window>"u"||!window.matchMedia)return;const t=window.matchMedia(Bd),r=md.test(navigator?.userAgent??""),n=()=>e(t.matches||r);return n(),t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]),A}function F0({onClose:A,showCloseButton:e=!0,title:t,titleImg:r,tagline:n,iconUrl:i,startNewConversation:o,voiceAgentState:s="idle",headerTinted:a=!1,onToggleDisplayMode:l}){const d=wd(),h=b0()&&!d,f=CA(E=>E.displayMode)==="full",g=CA(E=>E.initialDisplayMode)==="full",w=(f?!1:a)?"text-primary-foreground":"text-foreground",m=CA(E=>E.connectionStatus),[C,b]=G(!1),_=Z(null),x=yA(()=>s==="connected"||s==="connecting"||s==="listening"||s==="speaking"||s==="thinking",[s]),y=mA(()=>{C||(b(!0),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{_.current=null,b(!1)},6e3),o())},[C,o]);j(()=>{m===P.ConnectionStatus.CONNECTED&&(b(!1),_.current&&clearTimeout(_.current))},[m]);const Q=(()=>{switch(m){case P.ConnectionStatus.CONNECTED:return{dotColor:"bg-green-500",text:n||"Online",textColor:"text-green-600"};case P.ConnectionStatus.CONNECTING:return{dotColor:"bg-amber-500",text:"Connecting",textColor:"text-amber-600"};case P.ConnectionStatus.NOT_CONNECTED:return{dotColor:"bg-red-500",text:"Not Connected",textColor:"text-red-600"};default:return{dotColor:"bg-text-tertiary",text:"Not Connected",textColor:"text-text-secondary"}}})();return c("div",{className:"px-6 py-3",children:c("div",{className:"flex items-center justify-between",children:[c("div",{className:"flex items-center gap-3",children:[c("div",{className:"relative flex-shrink-0",children:[c(ys,{className:"w-12 h-12 bg-gradient-to-br from-primary to-primary flex-shrink-0 shadow-md ring-0",children:c(Es,{className:"text-primary-foreground font-bold text-lg bg-transparent",children:i?c("img",{src:i,alt:"Bot Icon",className:"w-12 h-12 rounded-full object-cover"}):c("span",{className:"text-primary-foreground font-bold text-lg bg-transparent",children:"MC"})})}),c("div",{className:K("absolute bottom-0 right-0 w-3.5 h-3.5 rounded-full border-2 border-white shadow-sm",Q.dotColor,m===P.ConnectionStatus.CONNECTING&&"animate-pulse")})]}),c("div",{className:"flex flex-col",children:[r?c("img",{src:r,alt:"",className:"h-6 object-contain"}):c("p",{className:K("text-lg font-semibold synapse-header-title",w),children:t||"Health Assist"}),c("div",{className:"flex items-center gap-1.5",children:c("span",{className:"text-xs font-medium",style:{color:"var(--header-tagline)"},children:Q.text})})]})]}),c("div",{className:K("flex items-center",!h&&"gap-2"),children:[!x&&c(uA,{type:"button",variant:"ghost",size:"icon",title:"Start New Chat",onClick:y,disabled:C,className:K("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none",w),children:c(Yu,{className:"w-5 h-5"})}),h&&c(uA,{onClick:l,type:"button",variant:"ghost",size:"icon",title:f?"Exit fullscreen":"Enter fullscreen",className:K("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",w),children:f?c(Xm,{className:"w-8 h-8"}):c(zm,{className:"w-8 h-8"})}),(e||!g)&&c(uA,{onClick:A,type:"button",variant:"ghost",size:"icon",title:"Close",className:K("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",w),children:c(An,{className:"w-8 h-8"})})]})]})})}const vs=5,U0=10*1024*1024,oi={width:384,height:600},si=20,x0=150;function S0({defaultPosition:A,enabled:e=!0,onDragStart:t,onDragEnd:r}={}){const n=mA(()=>typeof window>"u"?{x:0,y:0}:{x:window.innerWidth-oi.width-si,y:window.innerHeight-oi.height-si},[]),[i,o]=G(()=>A??n()),[s,a]=G(!1),l=Z({x:0,y:0}),d=Z(null),u=Z(!1);j(()=>{e||(u.current=!1)},[e]),ke(()=>{!e||u.current||typeof window>"u"||(o(A||n()),u.current=!0)},[e,A,n]),j(()=>{if(!e||typeof window>"u")return;let p=null;const w=()=>{o(C=>{const b=Math.max(0,window.innerWidth-oi.width-si),_=Math.max(0,window.innerHeight-oi.height-si),x=Math.max(0,Math.min(C.x,b)),y=Math.max(0,Math.min(C.y,_));return x===C.x&&y===C.y?C:{x,y}})},m=()=>{p!==null&&clearTimeout(p),p=setTimeout(w,x0)};return window.addEventListener("resize",m),()=>{window.removeEventListener("resize",m),p!==null&&clearTimeout(p)}},[e]);const h=mA(p=>{if(!e)return;if(!p.target.closest(".synapse-chat-widget-header")){a(!1);return}p.preventDefault(),a(!0);const m=d.current;if(m){const C=m.getBoundingClientRect();l.current={x:p.clientX-C.left,y:p.clientY-C.top}}else l.current={x:p.clientX-i.x,y:p.clientY-i.y};t?.()},[e,i.x,i.y,t]),f=mA(p=>{if(!e||!s)return;const w=p.clientX-l.current.x,m=p.clientY-l.current.y,C=window.innerWidth-(d.current?.offsetWidth||0),b=window.innerHeight-(d.current?.offsetHeight||0),_=Math.max(0,Math.min(w,C)),x=Math.max(0,Math.min(m,b));o({x:_,y:x})},[s,e]),g=mA(()=>{!e||!s||(a(!1),r?.())},[s,r]);return j(()=>{if(!e)return;const p=d.current;if(p)return p.addEventListener("mousedown",h),()=>{p.removeEventListener("mousedown",h)}},[e,h]),j(()=>{if(s)return document.addEventListener("mousemove",f),document.addEventListener("mouseup",g),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g),document.body.style.cursor="",document.body.style.userSelect=""}},[s,f,g]),{position:i,isDragging:s,elementRef:d,setPosition:o}}const bs="#6B5CE0",ai={background:"#F0F0F0",backgroundImage:void 0,primary:bs,textColor:"black"},_0="rgba(0, 0, 0, 0.4)",I0="24px";function T0(A){if(A==="dark")return"white";if(A==="light")return"black"}function N0(A){const e=A?.primary??A?.primaryColor??ai.primary,t=A?.textColor??T0(A?.mode);return{background:A?.background??ai.background,backgroundImage:A?.backgroundImage??ai.backgroundImage,primary:e,primaryColor:e,textColor:t??ai.textColor,mode:A?.mode,headerTinted:A?.headerTinted,secondaryColor:A?.secondaryColor,tertiaryColor:A?.tertiaryColor}}function k0(A){A=A.replace("#","");const e=parseInt(A.substring(0,2),16)/255,t=parseInt(A.substring(2,4),16)/255,r=parseInt(A.substring(4,6),16)/255,n=Math.max(e,t,r),i=Math.min(e,t,r);let o=0,s=0;const a=(n+i)/2;if(n!==i){const d=n-i;switch(s=a>.5?d/(2-n-i):d/(n+i),n){case e:o=((t-r)/d+(t<r?6:0))/6;break;case t:o=((r-e)/d+2)/6;break;case r:o=((e-t)/d+4)/6;break}}o=Math.round(o*360),s=Math.round(s*100);const l=Math.round(a*100);return`${o} ${s}% ${l}%`}function H0(A){const e=A.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(!e)throw new Error("Invalid RGB format");const t=parseInt(e[1],10)/255,r=parseInt(e[2],10)/255,n=parseInt(e[3],10)/255,i=Math.max(t,r,n),o=Math.min(t,r,n);let s=0,a=0;const l=(i+o)/2;if(i!==o){const u=i-o;switch(a=l>.5?u/(2-i-o):u/(i+o),i){case t:s=((r-n)/u+(r<n?6:0))/6;break;case r:s=((n-t)/u+2)/6;break;case n:s=((t-r)/u+4)/6;break}}s=Math.round(s*360),a=Math.round(a*100);const d=Math.round(l*100);return`${s} ${a}% ${d}%`}function L0(A){const e=A.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);if(!e)throw new Error("Invalid HSL format");return`${e[1]} ${e[2]}% ${e[3]}%`}function Qs(A){if(!A||typeof A!="string")throw new Error("Color must be a non-empty string");const e=A.trim();if(e.startsWith("#"))return k0(e);if(e.startsWith("rgb"))return H0(e);if(e.startsWith("hsl"))return L0(e);if(/^\d+\s+\d+%\s+\d+%$/.test(e))return e;throw new Error(`Unsupported color format: ${A}`)}function Cd(A){const e=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);return e?parseInt(e[3],10)/100:.5}function Fs(A){return Cd(A)>.5?"0 0% 9%":"0 0% 98%"}function M0(A){const e=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!e)return"0 0% 96%";const t=e[1],r=Math.max(0,parseInt(e[2],10)-5);return`${t} ${r}% 96%`}function O0(A){const e=A.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!e)return{50:"262 83% 98%",100:"262 83% 96%",200:"262 83% 92%",300:"262 83% 85%",400:"262 83% 75%",500:"262 83% 58%",600:"262 83% 50%",700:"262 83% 40%",800:"262 83% 30%",900:"262 83% 20%"};const t=parseInt(e[1],10),r=parseInt(e[2],10),n=parseInt(e[3],10);return{50:`${t} ${Math.max(0,r-20)}% ${Math.min(98,n+40)}%`,100:`${t} ${Math.max(0,r-15)}% ${Math.min(96,n+35)}%`,200:`${t} ${Math.max(0,r-10)}% ${Math.min(92,n+30)}%`,300:`${t} ${Math.max(0,r-5)}% ${Math.min(85,n+20)}%`,400:`${t} ${r}% ${Math.min(75,n+10)}%`,500:`${t} ${r}% ${n}%`,600:`${t} ${Math.min(100,r+5)}% ${Math.max(50,n-10)}%`,700:`${t} ${Math.min(100,r+10)}% ${Math.max(40,n-20)}%`,800:`${t} ${Math.min(100,r+15)}% ${Math.max(30,n-30)}%`,900:`${t} ${Math.min(100,r+20)}% ${Math.max(20,n-40)}%`}}function yd(A,e){const t=e.primary??bs,r=e.textColor??"black",n=!!e.backgroundImage,i=e.mode==="dark"||r==="white",o=e.headerTinted??!1,s=(f,g)=>{const p=A instanceof ShadowRoot?A.host:A;p instanceof HTMLElement&&p.style.setProperty(f,g)};let a;try{a=Qs(t)}catch{a=Qs(bs)}s("--primary",a),s("--primary-foreground",Fs(a)),s("--ring",a),s("--border-primary",a);const l=O0(a);for(const[f,g]of Object.entries(l))s(`--primary-${f}`,g);const d=Fs(a);if(s("--color-on-primary",d),n)s("--background","0 0% 0% / 0"),s("--widget-bg-overlay","transparent");else{const f=i?"#191919":"#F0F0F0";try{s("--background",Qs(f))}catch{s("--background",i?"0 0% 10%":"0 0% 94.1%")}s("--widget-bg-overlay",`hsl(${a} / ${o?.05:.1})`)}if(i?s("--bot-message-bg","var(--black-600)"):s("--bot-message-bg","var(--white-600)"),i?s("--card","0 0% 0% / 0.6"):s("--card","0 0% 100% / 0.6"),s("--bot-message-border",M0(i?"0 0% 100%":"0 0% 9%")),i?(s("--foreground","0 0% 100%"),s("--card-foreground","0 0% 100%"),s("--popover-foreground","0 0% 100%"),s("--muted-foreground","0 0% 70%"),s("--normal-text-color","var(--white-1000)")):(s("--foreground","0 0% 0%"),s("--card-foreground","0 0% 0%"),s("--popover-foreground","0 0% 0%"),s("--muted-foreground","0 0% 30%"),s("--normal-text-color","var(--black-1000)")),n?(s("--header-bg","transparent"),s("--header-stroke",i?"var(--white-200)":"var(--black-200)")):o?(s("--header-bg",`hsl(${a})`),s("--header-stroke",`hsl(${a} / 0.3)`)):(s("--header-bg",i?"var(--black-700)":"var(--white-700)"),s("--header-stroke",`hsl(${a} / 0.3)`)),n?(s("--footer-bg","transparent"),s("--footer-stroke",i?"var(--white-200)":"var(--black-200)")):(s("--footer-bg",i?"var(--black-700)":"var(--white-700)"),s("--footer-stroke",`hsl(${a} / 0.3)`)),o&&!n){const f=Cd(d)>.5;s("--header-tagline",f?"var(--white-600)":"var(--black-600)")}else s("--header-tagline",i?"var(--white-600)":"var(--black-600)");s("--elicitation-bg",i?"var(--black-1000)":"var(--white-1000)"),s("--input-box-bg",i?"var(--white-100)":"var(--black-100)");const u=A instanceof ShadowRoot?A.host:A;u instanceof HTMLElement&&(u.setAttribute("data-text-color",r),u.setAttribute("data-header-tinted",String(o))),n?s("--popover",i?"0 0% 0% / 0.5":"0 0% 100% / 0.5"):o?s("--popover",a):s("--popover",i?"0 0% 0% / 0.7":"0 0% 100% / 0.7");const h=i?"white":"black";for(const f of[50,100,200,300,400,500,600,700,800,900,1e3])s(`--popover-${f}`,`var(--${h}-${f})`);s("--secondary",i?"0 0% 15%":"0 0% 96.1%"),s("--surface-secondary",i?"0 0% 15%":"0 0% 96.1%"),s("--secondary-foreground",i?"0 0% 98%":"0 0% 9%"),s("--muted",i?"0 0% 15%":"0 0% 96.1%"),s("--accent",a),s("--accent-foreground",Fs(a)),n?s("--surface",i?"0 0% 0% / 0.6":"0 0% 100% / 0.6"):s("--surface",i?"0 0% 10%":"0 0% 94.1%"),s("--surface-tertiary",i?"0 0% 12%":"0 0% 98%"),s("--border-subtle",i?"0 0% 20%":"0 0% 89.8%"),s("--border-medium",i?"0 0% 30%":"0 0% 80%"),s("--text-primary",i?"0 0% 100%":"0 0% 3.9%"),s("--text-secondary",i?"0 0% 70%":"0 0% 45.1%"),s("--text-tertiary",i?"0 0% 60%":"0 0% 63.9%"),s("--text-muted",i?"0 0% 70%":"0 0% 45.1%"),s("--border",i?"0 0% 20%":"0 0% 89.8%"),s("--input",i?"0 0% 20%":"0 0% 89.8%"),n?(s("--theme-background-image",`url(${e.backgroundImage})`),s("--theme-background-blur",I0),s("--theme-background-overlay",_0),u instanceof HTMLElement&&u.classList.add("theme-with-background")):(s("--theme-background-image","none"),s("--theme-background-blur","0px"),s("--theme-background-overlay","rgba(0, 0, 0, 0)"),u instanceof HTMLElement&&u.classList.remove("theme-with-background"))}const R0=He(()=>Promise.resolve().then(()=>Jv));function Ed({isOpen:A,onClose:e,showCloseButton:t=!0,iconUrl:r,onStartNewSession:n,showStartNewChatButton:i,children:o,fullScreenEmptyState:s,title:a,titleImg:l,tagline:d,sessionId:u,chatComposer:h,environment:f,mode:g,onToggleDisplayMode:p,isAuthComponent:w,activeElicitation:m,voiceAgentState:C,theme:b,hideWatermark:_=!1}){const[x,y]=G(!1),[F,Q]=G(!1),E=Z(null),I=g,k=I==="full",S=Z(null),[L,M]=G("");j(()=>{S.current!==null&&S.current!==I&&M(I==="full"?"Switched to fullscreen mode":I==="widget"?"Switched to widget mode":"Switched to mobile layout"),S.current=I},[I]);const T=yA(()=>N0(b),[b]),{setIsMobile:V}=CA(B=>B),z=!!w,D=async B=>{if(!(!h?.onSend||F)){Q(!0);try{await h.onSend(B)}finally{Q(!1)}}};j(()=>{if(!E.current)return;const B=I==="full"?{...T,headerTinted:!1}:T;yd(E.current,B),I==="full"&&!T.backgroundImage?(E.current.style.setProperty("--background","0 0% 100%"),E.current.style.setProperty("--widget-bg-overlay","transparent")):(E.current.style.removeProperty("--background"),E.current.style.removeProperty("--widget-bg-overlay"),yd(E.current,T))},[T,I]),j(()=>{const B=()=>{const J=window?.innerWidth??0,AA=navigator?.userAgent?.toLowerCase()??"",tA=J<768||/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(AA);y(tA),V(tA)};return B(),window.addEventListener("resize",B),()=>window.removeEventListener("resize",B)},[]),ke(()=>{if(!A||!x||!E.current)return;const B=E.current;let J=null,AA=null,tA=null,nA=window.visualViewport?.offsetTop??0,DA=0;const OA=2,UA=80;if(window.visualViewport){const EA=()=>{if(B&&window.visualViewport){const se=window.visualViewport.height,jA=window.visualViewport.offsetTop;J=requestAnimationFrame(()=>{B.style.transition="none",B.style.top=`${jA}px`,B.style.left="0",B.style.right="0",B.style.bottom="auto",B.style.width="100vw",B.style.height=`${se}px`,B.style.maxHeight=`${se}px`,B.style.minHeight=`${se}px`,AA&&clearTimeout(AA),AA=setTimeout(()=>{B.style.transition=""},100)})}},re=()=>{EA()},RA=()=>{if(!B||!window.visualViewport)return;const se=window.visualViewport.offsetTop,jA=Date.now();Math.abs(se-nA)<OA||jA-DA<UA||(DA=jA,nA=se,J=requestAnimationFrame(()=>{B.style.transition="none",B.style.top=`${se}px`,tA&&clearTimeout(tA),tA=setTimeout(()=>{B.style.transition=""},150)}))};return window.visualViewport.addEventListener("resize",re),window.visualViewport.addEventListener("scroll",RA),EA(),()=>{J&&cancelAnimationFrame(J),AA&&clearTimeout(AA),tA&&clearTimeout(tA),window.visualViewport?.removeEventListener("resize",re),window.visualViewport?.removeEventListener("scroll",RA),B&&(B.style.width="",B.style.height="",B.style.maxHeight="",B.style.minHeight="",B.style.transition="")}}else{const EA=()=>{B&&(B.style.transition="none",B.style.top="0",B.style.left="0",B.style.right="0",B.style.bottom="auto",B.style.width="100vw",B.style.height="100svh",B.style.maxHeight="100svh",setTimeout(()=>{B.style.transition=""},100))};return window.addEventListener("resize",EA),EA(),()=>{window.removeEventListener("resize",EA),B&&(B.style.width="",B.style.height="",B.style.maxHeight="",B.style.transition="")}}},[A,x]),j(()=>{if(A){const B=E.current,J=window.scrollY,AA=document.body.style.cssText,tA=document.documentElement.style.overflow,nA=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${J}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",nA>0&&!x&&(document.body.style.paddingRight=`${nA}px`);let DA=0;const OA=EA=>{DA=EA.touches[0].clientY},UA=EA=>{if(EA.touches.length!==1)return;const re=DA-EA.touches[0].clientY;DA=EA.touches[0].clientY;let RA=EA.target;for(;RA&&RA!==B;){const{overflowY:se}=window.getComputedStyle(RA);if((se==="auto"||se==="scroll")&&RA.scrollHeight>RA.clientHeight){const{scrollTop:jA,scrollHeight:lt,clientHeight:Te}=RA,Gt=jA<=0&&re<0,ct=jA+Te>=lt-1&&re>0;if(!Gt&&!ct)return;break}RA=RA.parentElement}EA.preventDefault()};return B&&(B.addEventListener("touchstart",OA,{passive:!0}),B.addEventListener("touchmove",UA,{passive:!1})),()=>{B&&(B.removeEventListener("touchstart",OA),B.removeEventListener("touchmove",UA)),document.body.style.cssText=AA,document.documentElement.style.overflow=tA,window.scrollTo(0,J)}}},[A,x]);const{position:cA,elementRef:v}=S0({enabled:A&&!x&&!k});j(()=>{E.current&&(v.current=E.current)},[v]);const eA=K("synapse-chat-widget-container","fixed m-0 p-0","box-border",!x&&!k?"transition-all duration-300":"",x?"w-screen h-[100svh]":k?"w-screen h-screen":"w-96 h-[600px]","z-[2147483647]",A?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none scale-95"),rA=K("w-full h-full relative","bg-background","shadow-2xl","flex","overflow-hidden",T.backgroundImage?"theme-with-background":"",x?"rounded-none border-0 flex-col":k?"rounded-none border-0 flex-row":"rounded-3xl flex-col");return c("div",{ref:E,"data-mode":I,className:eA,style:{margin:0,padding:0,border:"none",outline:"none",position:"fixed",zIndex:2147483647,fontSize:"16px",lineHeight:"2.5",userSelect:"auto",...k&&A&&{top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh"},...k&&!A&&{display:"none"},...!x&&!k&&{left:`${cA.x}px`,top:`${cA.y}px`,bottom:"auto",right:"auto"},...x&&{top:0,left:0,right:0,bottom:0,width:"100vw",maxHeight:"100svh",height:"100svh",backgroundColor:T.backgroundImage?"transparent":"hsl(var(--background))"}},children:[c("style",{children:`
1
+ var MedAssistWidget=(function(fu){"use strict";function Jb(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hu={exports:{}},Na={};var Zg;function Zb(){if(Zg)return Na;Zg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var u in s)u!=="key"&&(l[u]=s[u])}else l=s;return s=l.ref,{$$typeof:e,type:i,key:c,ref:s!==void 0?s:null,props:l}}return Na.Fragment=t,Na.jsx=r,Na.jsxs=r,Na}var Wg;function Wb(){return Wg||(Wg=1,hu.exports=Zb()),hu.exports}var g=Wb(),gu={exports:{}},Te={};var $g;function $b(){if($g)return Te;$g=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),C=Symbol.iterator;function w(I){return I===null||typeof I!="object"?null:(I=C&&I[C]||I["@@iterator"],typeof I=="function"?I:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,U={};function Q(I,P,v){this.props=I,this.context=P,this.refs=U,this.updater=v||E}Q.prototype.isReactComponent={},Q.prototype.setState=function(I,P){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,P,"setState")},Q.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function N(){}N.prototype=Q.prototype;function M(I,P,v){this.props=I,this.context=P,this.refs=U,this.updater=v||E}var G=M.prototype=new N;G.constructor=M,b(G,Q.prototype),G.isPureReactComponent=!0;var V=Array.isArray;function F(){}var O={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function _(I,P,v){var te=v.ref;return{$$typeof:e,type:I,key:P,ref:te!==void 0?te:null,props:v}}function q(I,P){return _(I.type,P,I.props)}function $(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function k(I){var P={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(v){return P[v]})}var se=/\/+/g;function le(I,P){return typeof I=="object"&&I!==null&&I.key!=null?k(""+I.key):P.toString(36)}function z(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(F,F):(I.status="pending",I.then(function(P){I.status==="pending"&&(I.status="fulfilled",I.value=P)},function(P){I.status==="pending"&&(I.status="rejected",I.reason=P)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function L(I,P,v,te,oe){var fe=typeof I;(fe==="undefined"||fe==="boolean")&&(I=null);var ge=!1;if(I===null)ge=!0;else switch(fe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(I.$$typeof){case e:case t:ge=!0;break;case m:return ge=I._init,L(ge(I._payload),P,v,te,oe)}}if(ge)return oe=oe(I),ge=te===""?"."+le(I,0):te,V(oe)?(v="",ge!=null&&(v=ge.replace(se,"$&/")+"/"),L(oe,P,v,"",function(We){return We})):oe!=null&&($(oe)&&(oe=q(oe,v+(oe.key==null||I&&I.key===oe.key?"":(""+oe.key).replace(se,"$&/")+"/")+ge)),P.push(oe)),1;ge=0;var Le=te===""?".":te+":";if(V(I))for(var Fe=0;Fe<I.length;Fe++)te=I[Fe],fe=Le+le(te,Fe),ge+=L(te,P,v,fe,oe);else if(Fe=w(I),typeof Fe=="function")for(I=Fe.call(I),Fe=0;!(te=I.next()).done;)te=te.value,fe=Le+le(te,Fe++),ge+=L(te,P,v,fe,oe);else if(fe==="object"){if(typeof I.then=="function")return L(z(I),P,v,te,oe);throw P=String(I),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ge}function J(I,P,v){if(I==null)return I;var te=[],oe=0;return L(I,te,"","",function(fe){return P.call(v,fe,oe++)}),te}function Ae(I){if(I._status===-1){var P=I._result;P=P(),P.then(function(v){(I._status===0||I._status===-1)&&(I._status=1,I._result=v)},function(v){(I._status===0||I._status===-1)&&(I._status=2,I._result=v)}),I._status===-1&&(I._status=0,I._result=P)}if(I._status===1)return I._result.default;throw I._result}var me=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}},T={map:J,forEach:function(I,P,v){J(I,function(){P.apply(this,arguments)},v)},count:function(I){var P=0;return J(I,function(){P++}),P},toArray:function(I){return J(I,function(P){return P})||[]},only:function(I){if(!$(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Te.Activity=B,Te.Children=T,Te.Component=Q,Te.Fragment=r,Te.Profiler=s,Te.PureComponent=M,Te.StrictMode=i,Te.Suspense=f,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Te.__COMPILER_RUNTIME={__proto__:null,c:function(I){return O.H.useMemoCache(I)}},Te.cache=function(I){return function(){return I.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(I,P,v){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var te=b({},I.props),oe=I.key;if(P!=null)for(fe in P.key!==void 0&&(oe=""+P.key),P)!R.call(P,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&P.ref===void 0||(te[fe]=P[fe]);var fe=arguments.length-2;if(fe===1)te.children=v;else if(1<fe){for(var ge=Array(fe),Le=0;Le<fe;Le++)ge[Le]=arguments[Le+2];te.children=ge}return _(I.type,oe,te)},Te.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:l,_context:I},I},Te.createElement=function(I,P,v){var te,oe={},fe=null;if(P!=null)for(te in P.key!==void 0&&(fe=""+P.key),P)R.call(P,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(oe[te]=P[te]);var ge=arguments.length-2;if(ge===1)oe.children=v;else if(1<ge){for(var Le=Array(ge),Fe=0;Fe<ge;Fe++)Le[Fe]=arguments[Fe+2];oe.children=Le}if(I&&I.defaultProps)for(te in ge=I.defaultProps,ge)oe[te]===void 0&&(oe[te]=ge[te]);return _(I,fe,oe)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(I){return{$$typeof:u,render:I}},Te.isValidElement=$,Te.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:Ae}},Te.memo=function(I,P){return{$$typeof:h,type:I,compare:P===void 0?null:P}},Te.startTransition=function(I){var P=O.T,v={};O.T=v;try{var te=I(),oe=O.S;oe!==null&&oe(v,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(F,me)}catch(fe){me(fe)}finally{P!==null&&v.types!==null&&(P.types=v.types),O.T=P}},Te.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Te.use=function(I){return O.H.use(I)},Te.useActionState=function(I,P,v){return O.H.useActionState(I,P,v)},Te.useCallback=function(I,P){return O.H.useCallback(I,P)},Te.useContext=function(I){return O.H.useContext(I)},Te.useDebugValue=function(){},Te.useDeferredValue=function(I,P){return O.H.useDeferredValue(I,P)},Te.useEffect=function(I,P){return O.H.useEffect(I,P)},Te.useEffectEvent=function(I){return O.H.useEffectEvent(I)},Te.useId=function(){return O.H.useId()},Te.useImperativeHandle=function(I,P,v){return O.H.useImperativeHandle(I,P,v)},Te.useInsertionEffect=function(I,P){return O.H.useInsertionEffect(I,P)},Te.useLayoutEffect=function(I,P){return O.H.useLayoutEffect(I,P)},Te.useMemo=function(I,P){return O.H.useMemo(I,P)},Te.useOptimistic=function(I,P){return O.H.useOptimistic(I,P)},Te.useReducer=function(I,P,v){return O.H.useReducer(I,P,v)},Te.useRef=function(I){return O.H.useRef(I)},Te.useState=function(I){return O.H.useState(I)},Te.useSyncExternalStore=function(I,P,v){return O.H.useSyncExternalStore(I,P,v)},Te.useTransition=function(){return O.H.useTransition()},Te.version="19.2.0",Te}var ep;function Ql(){return ep||(ep=1,gu.exports=$b()),gu.exports}var x=Ql();const Ia=du(x),Ap=Jb({__proto__:null,default:Ia},[x]);var pu={exports:{}},_a={},mu={exports:{}},Bu={};var tp;function e1(){return tp||(tp=1,(function(e){function t(L,J){var Ae=L.length;L.push(J);e:for(;0<Ae;){var me=Ae-1>>>1,T=L[me];if(0<s(T,J))L[me]=J,L[Ae]=T,Ae=me;else break e}}function r(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var J=L[0],Ae=L.pop();if(Ae!==J){L[0]=Ae;e:for(var me=0,T=L.length,I=T>>>1;me<I;){var P=2*(me+1)-1,v=L[P],te=P+1,oe=L[te];if(0>s(v,Ae))te<T&&0>s(oe,v)?(L[me]=oe,L[te]=Ae,me=te):(L[me]=v,L[P]=Ae,me=P);else if(te<T&&0>s(oe,Ae))L[me]=oe,L[te]=Ae,me=te;else break e}}return J}function s(L,J){var Ae=L.sortIndex-J.sortIndex;return Ae!==0?Ae:L.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],h=[],m=1,B=null,C=3,w=!1,E=!1,b=!1,U=!1,Q=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function G(L){for(var J=r(h);J!==null;){if(J.callback===null)i(h);else if(J.startTime<=L)i(h),J.sortIndex=J.expirationTime,t(f,J);else break;J=r(h)}}function V(L){if(b=!1,G(L),!E)if(r(f)!==null)E=!0,F||(F=!0,k());else{var J=r(h);J!==null&&z(V,J.startTime-L)}}var F=!1,O=-1,R=5,_=-1;function q(){return U?!0:!(e.unstable_now()-_<R)}function $(){if(U=!1,F){var L=e.unstable_now();_=L;var J=!0;try{e:{E=!1,b&&(b=!1,N(O),O=-1),w=!0;var Ae=C;try{A:{for(G(L),B=r(f);B!==null&&!(B.expirationTime>L&&q());){var me=B.callback;if(typeof me=="function"){B.callback=null,C=B.priorityLevel;var T=me(B.expirationTime<=L);if(L=e.unstable_now(),typeof T=="function"){B.callback=T,G(L),J=!0;break A}B===r(f)&&i(f),G(L)}else i(f);B=r(f)}if(B!==null)J=!0;else{var I=r(h);I!==null&&z(V,I.startTime-L),J=!1}}break e}finally{B=null,C=Ae,w=!1}J=void 0}}finally{J?k():F=!1}}}var k;if(typeof M=="function")k=function(){M($)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,le=se.port2;se.port1.onmessage=$,k=function(){le.postMessage(null)}}else k=function(){Q($,0)};function z(L,J){O=Q(function(){L(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L||(R=0<L?Math.floor(1e3/L):5)},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_next=function(L){switch(C){case 1:case 2:case 3:var J=3;break;default:J=C}var Ae=C;C=J;try{return L()}finally{C=Ae}},e.unstable_requestPaint=function(){U=!0},e.unstable_runWithPriority=function(L,J){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Ae=C;C=L;try{return J()}finally{C=Ae}},e.unstable_scheduleCallback=function(L,J,Ae){var me=e.unstable_now();switch(typeof Ae=="object"&&Ae!==null?(Ae=Ae.delay,Ae=typeof Ae=="number"&&0<Ae?me+Ae:me):Ae=me,L){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=Ae+T,L={id:m++,callback:J,priorityLevel:L,startTime:Ae,expirationTime:T,sortIndex:-1},Ae>me?(L.sortIndex=Ae,t(h,L),r(f)===null&&L===r(h)&&(b?(N(O),O=-1):b=!0,z(V,Ae-me))):(L.sortIndex=T,t(f,L),E||w||(E=!0,F||(F=!0,k()))),L},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(L){var J=C;return function(){var Ae=C;C=J;try{return L.apply(this,arguments)}finally{C=Ae}}}})(Bu)),Bu}var np;function A1(){return np||(np=1,mu.exports=e1()),mu.exports}var wu={exports:{}},rt={};var rp;function t1(){if(rp)return rt;rp=1;var e=Ql();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(f,h,m){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:B==null?null:""+B,children:f,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,rt.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,m)},rt.flushSync=function(f){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=h,i.p=m,i.d.f()}},rt.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},rt.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},rt.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin),C=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:B,integrity:C,fetchPriority:w}):m==="script"&&i.d.X(f,{crossOrigin:B,integrity:C,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rt.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=u(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},rt.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin);i.d.L(f,m,{crossOrigin:B,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},rt.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=u(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},rt.requestFormReset=function(f){i.d.r(f)},rt.unstable_batchedUpdates=function(f,h){return f(h)},rt.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},rt.useFormStatus=function(){return c.H.useHostTransitionStatus()},rt.version="19.2.0",rt}var ip;function n1(){if(ip)return wu.exports;ip=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch{}}return e(),wu.exports=t1(),wu.exports}var ap;function r1(){if(ap)return _a;ap=1;var e=A1(),t=Ql(),r=n1();function i(A){var n="https://react.dev/errors/"+A;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+A+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function l(A){var n=A,a=A;if(A.alternate)for(;n.return;)n=n.return;else{A=n;do n=A,(n.flags&4098)!==0&&(a=n.return),A=n.return;while(A)}return n.tag===3?a:null}function c(A){if(A.tag===13){var n=A.memoizedState;if(n===null&&(A=A.alternate,A!==null&&(n=A.memoizedState)),n!==null)return n.dehydrated}return null}function u(A){if(A.tag===31){var n=A.memoizedState;if(n===null&&(A=A.alternate,A!==null&&(n=A.memoizedState)),n!==null)return n.dehydrated}return null}function f(A){if(l(A)!==A)throw Error(i(188))}function h(A){var n=A.alternate;if(!n){if(n=l(A),n===null)throw Error(i(188));return n!==A?null:A}for(var a=A,o=n;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){a=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return f(d),A;if(p===o)return f(d),n;p=p.sibling}throw Error(i(188))}if(a.return!==o.return)a=d,o=p;else{for(var y=!1,S=d.child;S;){if(S===a){y=!0,a=d,o=p;break}if(S===o){y=!0,o=d,a=p;break}S=S.sibling}if(!y){for(S=p.child;S;){if(S===a){y=!0,a=p,o=d;break}if(S===o){y=!0,o=p,a=d;break}S=S.sibling}if(!y)throw Error(i(189))}}if(a.alternate!==o)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?A:n}function m(A){var n=A.tag;if(n===5||n===26||n===27||n===6)return A;for(A=A.child;A!==null;){if(n=m(A),n!==null)return n;A=A.sibling}return null}var B=Object.assign,C=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),M=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function k(A){return A===null||typeof A!="object"?null:(A=$&&A[$]||A["@@iterator"],typeof A=="function"?A:null)}var se=Symbol.for("react.client.reference");function le(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===se?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case b:return"Fragment";case Q:return"Profiler";case U:return"StrictMode";case V:return"Suspense";case F:return"SuspenseList";case _:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case E:return"Portal";case M:return A.displayName||"Context";case N:return(A._context.displayName||"Context")+".Consumer";case G:var n=A.render;return A=A.displayName,A||(A=n.displayName||n.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case O:return n=A.displayName||null,n!==null?n:le(A.type)||"Memo";case R:n=A._payload,A=A._init;try{return le(A(n))}catch{}}return null}var z=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae={pending:!1,data:null,method:null,action:null},me=[],T=-1;function I(A){return{current:A}}function P(A){0>T||(A.current=me[T],me[T]=null,T--)}function v(A,n){T++,me[T]=A.current,A.current=n}var te=I(null),oe=I(null),fe=I(null),ge=I(null);function Le(A,n){switch(v(fe,n),v(oe,A),v(te,null),n.nodeType){case 9:case 11:A=(A=n.documentElement)&&(A=A.namespaceURI)?wb(A):0;break;default:if(A=n.tagName,n=n.namespaceURI)n=wb(n),A=Cb(n,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}P(te),v(te,A)}function Fe(){P(te),P(oe),P(fe)}function We(A){A.memoizedState!==null&&v(ge,A);var n=te.current,a=Cb(n,A.type);n!==a&&(v(oe,A),v(te,a))}function je(A){oe.current===A&&(P(te),P(oe)),ge.current===A&&(P(ge),vl._currentValue=Ae)}var FA,mA;function EA(A){if(FA===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);FA=n&&n[1]||"",mA=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+FA+A+mA}var bA=!1;function Ut(A,n){if(!A||bA)return"";bA=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(ee){var Z=ee}Reflect.construct(A,[],ae)}else{try{ae.call()}catch(ee){Z=ee}A.call(ae.prototype)}}else{try{throw Error()}catch(ee){Z=ee}(ae=A())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(ee){if(ee&&Z&&typeof ee.stack=="string")return[ee.stack,Z.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),y=p[0],S=p[1];if(y&&S){var H=y.split(`
4
+ `),X=S.split(`
5
+ `);for(d=o=0;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;for(;d<X.length&&!X[d].includes("DetermineComponentFrameRoot");)d++;if(o===H.length||d===X.length)for(o=H.length-1,d=X.length-1;1<=o&&0<=d&&H[o]!==X[d];)d--;for(;1<=o&&0<=d;o--,d--)if(H[o]!==X[d]){if(o!==1||d!==1)do if(o--,d--,0>d||H[o]!==X[d]){var ne=`
6
+ `+H[o].replace(" at new "," at ");return A.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",A.displayName)),ne}while(1<=o&&0<=d);break}}}finally{bA=!1,Error.prepareStackTrace=a}return(a=A?A.displayName||A.name:"")?EA(a):""}function mt(A,n){switch(A.tag){case 26:case 27:case 5:return EA(A.type);case 16:return EA("Lazy");case 13:return A.child!==n&&n!==null?EA("Suspense Fallback"):EA("Suspense");case 19:return EA("SuspenseList");case 0:case 15:return Ut(A.type,!1);case 11:return Ut(A.type.render,!1);case 1:return Ut(A.type,!0);case 31:return EA("Activity");default:return""}}function Cn(A){try{var n="",a=null;do n+=mt(A,a),a=A,A=A.return;while(A);return n}catch(o){return`
7
+ Error generating stack: `+o.message+`
8
+ `+o.stack}}var Ft=Object.prototype.hasOwnProperty,ct=e.unstable_scheduleCallback,ln=e.unstable_cancelCallback,Ai=e.unstable_shouldYield,wr=e.unstable_requestPaint,XA=e.unstable_now,Yi=e.unstable_getCurrentPriorityLevel,re=e.unstable_ImmediatePriority,j=e.unstable_UserBlockingPriority,W=e.unstable_NormalPriority,ce=e.unstable_LowPriority,pe=e.unstable_IdlePriority,Se=e.log,Ne=e.unstable_setDisableYieldValue,$e=null,Pe=null;function fA(A){if(typeof Se=="function"&&Ne(A),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode($e,A)}catch{}}var De=Math.clz32?Math.clz32:TA,Oe=Math.log,Qe=Math.LN2;function TA(A){return A>>>=0,A===0?32:31-(Oe(A)/Qe|0)|0}var Bt=256,ut=262144,Hn=4194304;function on(A){var n=A&42;if(n!==0)return n;switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return A&261888;case 262144:case 524288:case 1048576:case 2097152:return A&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return A&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return A}}function OA(A,n,a){var o=A.pendingLanes;if(o===0)return 0;var d=0,p=A.suspendedLanes,y=A.pingedLanes;A=A.warmLanes;var S=o&134217727;return S!==0?(o=S&~p,o!==0?d=on(o):(y&=S,y!==0?d=on(y):a||(a=S&~A,a!==0&&(d=on(a))))):(S=o&~p,S!==0?d=on(S):y!==0?d=on(y):a||(a=o&~A,a!==0&&(d=on(a)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function GA(A,n){return(A.pendingLanes&~(A.suspendedLanes&~A.pingedLanes)&n)===0}function ke(A,n){switch(A){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Tt(){var A=Hn;return Hn<<=1,(Hn&62914560)===0&&(Hn=4194304),A}function Mn(A){for(var n=[],a=0;31>a;a++)n.push(A);return n}function Nt(A,n){A.pendingLanes|=n,n!==268435456&&(A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0)}function Cr(A,n,a,o,d,p){var y=A.pendingLanes;A.pendingLanes=a,A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0,A.expiredLanes&=a,A.entangledLanes&=a,A.errorRecoveryDisabledLanes&=a,A.shellSuspendCounter=0;var S=A.entanglements,H=A.expirationTimes,X=A.hiddenUpdates;for(a=y&~a;0<a;){var ne=31-De(a),ae=1<<ne;S[ne]=0,H[ne]=-1;var Z=X[ne];if(Z!==null)for(X[ne]=null,ne=0;ne<Z.length;ne++){var ee=Z[ne];ee!==null&&(ee.lane&=-536870913)}a&=~ae}o!==0&&Rs(A,o,0),p!==0&&d===0&&A.tag!==0&&(A.suspendedLanes|=p&~(y&~n))}function Rs(A,n,a){A.pendingLanes|=n,A.suspendedLanes&=~n;var o=31-De(n);A.entangledLanes|=n,A.entanglements[o]=A.entanglements[o]|1073741824|a&261930}function Zo(A,n){var a=A.entangledLanes|=n;for(A=A.entanglements;a;){var o=31-De(a),d=1<<o;d&n|A[o]&n&&(A[o]|=n),a&=~d}}function ti(A,n){var a=n&-n;return a=(a&42)!==0?1:RA(a),(a&(A.suspendedLanes|n))!==0?0:a}function RA(A){switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:A=128;break;case 268435456:A=134217728;break;default:A=0}return A}function lt(A){return A&=-A,2<A?8<A?(A&134217727)!==0?32:268435456:8:2}function ni(){var A=J.p;return A!==0?A:(A=window.event,A===void 0?32:Vb(A.type))}function Wo(A,n){var a=J.p;try{return J.p=A,n()}finally{J.p=a}}var yn=Math.random().toString(36).slice(2),NA="__reactFiber$"+yn,Ke="__reactProps$"+yn,nA="__reactContainer$"+yn,On="__reactEvents$"+yn,$o="__reactListeners$"+yn,iy="__reactHandles$"+yn,ay="__reactResources$"+yn,Ls="__reactMarker$"+yn;function Kd(A){delete A[NA],delete A[Ke],delete A[On],delete A[$o],delete A[iy]}function Xi(A){var n=A[NA];if(n)return n;for(var a=A.parentNode;a;){if(n=a[nA]||a[NA]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(A=Qb(A);A!==null;){if(a=A[NA])return a;A=Qb(A)}return n}A=a,a=A.parentNode}return null}function qi(A){if(A=A[NA]||A[nA]){var n=A.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return A}return null}function Ds(A){var n=A.tag;if(n===5||n===26||n===27||n===6)return A.stateNode;throw Error(i(33))}function Ji(A){var n=A[ay];return n||(n=A[ay]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function qA(A){A[Ls]=!0}var sy=new Set,ly={};function ri(A,n){Zi(A,n),Zi(A+"Capture",n)}function Zi(A,n){for(ly[A]=n,A=0;A<n.length;A++)sy.add(n[A])}var EM=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oy={},cy={};function vM(A){return Ft.call(cy,A)?!0:Ft.call(oy,A)?!1:EM.test(A)?cy[A]=!0:(oy[A]=!0,!1)}function ec(A,n,a){if(vM(n))if(a===null)A.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":A.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){A.removeAttribute(n);return}}A.setAttribute(n,""+a)}}function Ac(A,n,a){if(a===null)A.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(n);return}A.setAttribute(n,""+a)}}function Rn(A,n,a,o){if(o===null)A.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(a);return}A.setAttributeNS(n,a,""+o)}}function Yt(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function uy(A){var n=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function bM(A,n,a){var o=Object.getOwnPropertyDescriptor(A.constructor.prototype,n);if(!A.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(A,n,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(A,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){A._valueTracker=null,delete A[n]}}}}function Vd(A){if(!A._valueTracker){var n=uy(A)?"checked":"value";A._valueTracker=bM(A,n,""+A[n])}}function fy(A){if(!A)return!1;var n=A._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return A&&(o=uy(A)?A.checked?"true":"false":A.value),A=o,A!==a?(n.setValue(A),!0):!1}function tc(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var xM=/[\n"\\]/g;function Xt(A){return A.replace(xM,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Gd(A,n,a,o,d,p,y,S){A.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?A.type=y:A.removeAttribute("type"),n!=null?y==="number"?(n===0&&A.value===""||A.value!=n)&&(A.value=""+Yt(n)):A.value!==""+Yt(n)&&(A.value=""+Yt(n)):y!=="submit"&&y!=="reset"||A.removeAttribute("value"),n!=null?zd(A,y,Yt(n)):a!=null?zd(A,y,Yt(a)):o!=null&&A.removeAttribute("value"),d==null&&p!=null&&(A.defaultChecked=!!p),d!=null&&(A.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?A.name=""+Yt(S):A.removeAttribute("name")}function dy(A,n,a,o,d,p,y,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(A.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Vd(A);return}a=a!=null?""+Yt(a):"",n=n!=null?""+Yt(n):a,S||n===A.value||(A.value=n),A.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,A.checked=S?A.checked:!!o,A.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(A.name=y),Vd(A)}function zd(A,n,a){n==="number"&&tc(A.ownerDocument)===A||A.defaultValue===""+a||(A.defaultValue=""+a)}function Wi(A,n,a,o){if(A=A.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<A.length;a++)d=n.hasOwnProperty("$"+A[a].value),A[a].selected!==d&&(A[a].selected=d),d&&o&&(A[a].defaultSelected=!0)}else{for(a=""+Yt(a),n=null,d=0;d<A.length;d++){if(A[d].value===a){A[d].selected=!0,o&&(A[d].defaultSelected=!0);return}n!==null||A[d].disabled||(n=A[d])}n!==null&&(n.selected=!0)}}function hy(A,n,a){if(n!=null&&(n=""+Yt(n),n!==A.value&&(A.value=n),a==null)){A.defaultValue!==n&&(A.defaultValue=n);return}A.defaultValue=a!=null?""+Yt(a):""}function gy(A,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(i(92));if(z(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=Yt(n),A.defaultValue=a,o=A.textContent,o===a&&o!==""&&o!==null&&(A.value=o),Vd(A)}function $i(A,n){if(n){var a=A.firstChild;if(a&&a===A.lastChild&&a.nodeType===3){a.nodeValue=n;return}}A.textContent=n}var SM=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function py(A,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?A.setProperty(n,""):n==="float"?A.cssFloat="":A[n]="":o?A.setProperty(n,a):typeof a!="number"||a===0||SM.has(n)?n==="float"?A.cssFloat=a:A[n]=(""+a).trim():A[n]=a+"px"}function my(A,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(A=A.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?A.setProperty(o,""):o==="float"?A.cssFloat="":A[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&a[d]!==o&&py(A,d,o)}else for(var p in n)n.hasOwnProperty(p)&&py(A,p,n[p])}function Pd(A){if(A.indexOf("-")===-1)return!1;switch(A){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var QM=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),UM=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nc(A){return UM.test(""+A)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":A}function Ln(){}var Yd=null;function Xd(A){return A=A.target||A.srcElement||window,A.correspondingUseElement&&(A=A.correspondingUseElement),A.nodeType===3?A.parentNode:A}var ea=null,Aa=null;function By(A){var n=qi(A);if(n&&(A=n.stateNode)){var a=A[Ke]||null;e:switch(A=n.stateNode,n.type){case"input":if(Gd(A,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=A;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Xt(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==A&&o.form===A.form){var d=o[Ke]||null;if(!d)throw Error(i(90));Gd(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===A.form&&fy(o)}break e;case"textarea":hy(A,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Wi(A,!!a.multiple,n,!1)}}}var qd=!1;function wy(A,n,a){if(qd)return A(n,a);qd=!0;try{var o=A(n);return o}finally{if(qd=!1,(ea!==null||Aa!==null)&&(Gc(),ea&&(n=ea,A=Aa,Aa=ea=null,By(n),A)))for(n=0;n<A.length;n++)By(A[n])}}function ks(A,n){var a=A.stateNode;if(a===null)return null;var o=a[Ke]||null;if(o===null)return null;a=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(A=A.type,o=!(A==="button"||A==="input"||A==="select"||A==="textarea")),A=!o;break e;default:A=!1}if(A)return null;if(a&&typeof a!="function")throw Error(i(231,n,typeof a));return a}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jd=!1;if(Dn)try{var js={};Object.defineProperty(js,"passive",{get:function(){Jd=!0}}),window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{Jd=!1}var yr=null,Zd=null,rc=null;function Cy(){if(rc)return rc;var A,n=Zd,a=n.length,o,d="value"in yr?yr.value:yr.textContent,p=d.length;for(A=0;A<a&&n[A]===d[A];A++);var y=a-A;for(o=1;o<=y&&n[a-o]===d[p-o];o++);return rc=d.slice(A,1<o?1-o:void 0)}function ic(A){var n=A.keyCode;return"charCode"in A?(A=A.charCode,A===0&&n===13&&(A=13)):A=n,A===10&&(A=13),32<=A||A===13?A:0}function ac(){return!0}function yy(){return!1}function wt(A){function n(a,o,d,p,y){this._reactName=a,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var S in A)A.hasOwnProperty(S)&&(a=A[S],this[S]=a?a(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ac:yy,this.isPropagationStopped=yy,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ac)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ac)},persist:function(){},isPersistent:ac}),n}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(A){return A.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sc=wt(ii),Ks=B({},ii,{view:0,detail:0}),FM=wt(Ks),Wd,$d,Vs,lc=B({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ah,button:0,buttons:0,relatedTarget:function(A){return A.relatedTarget===void 0?A.fromElement===A.srcElement?A.toElement:A.fromElement:A.relatedTarget},movementX:function(A){return"movementX"in A?A.movementX:(A!==Vs&&(Vs&&A.type==="mousemove"?(Wd=A.screenX-Vs.screenX,$d=A.screenY-Vs.screenY):$d=Wd=0,Vs=A),Wd)},movementY:function(A){return"movementY"in A?A.movementY:$d}}),Ey=wt(lc),TM=B({},lc,{dataTransfer:0}),NM=wt(TM),IM=B({},Ks,{relatedTarget:0}),eh=wt(IM),_M=B({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),HM=wt(_M),MM=B({},ii,{clipboardData:function(A){return"clipboardData"in A?A.clipboardData:window.clipboardData}}),OM=wt(MM),RM=B({},ii,{data:0}),vy=wt(RM),LM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DM={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jM(A){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(A):(A=kM[A])?!!n[A]:!1}function Ah(){return jM}var KM=B({},Ks,{key:function(A){if(A.key){var n=LM[A.key]||A.key;if(n!=="Unidentified")return n}return A.type==="keypress"?(A=ic(A),A===13?"Enter":String.fromCharCode(A)):A.type==="keydown"||A.type==="keyup"?DM[A.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ah,charCode:function(A){return A.type==="keypress"?ic(A):0},keyCode:function(A){return A.type==="keydown"||A.type==="keyup"?A.keyCode:0},which:function(A){return A.type==="keypress"?ic(A):A.type==="keydown"||A.type==="keyup"?A.keyCode:0}}),VM=wt(KM),GM=B({},lc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),by=wt(GM),zM=B({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ah}),PM=wt(zM),YM=B({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),XM=wt(YM),qM=B({},lc,{deltaX:function(A){return"deltaX"in A?A.deltaX:"wheelDeltaX"in A?-A.wheelDeltaX:0},deltaY:function(A){return"deltaY"in A?A.deltaY:"wheelDeltaY"in A?-A.wheelDeltaY:"wheelDelta"in A?-A.wheelDelta:0},deltaZ:0,deltaMode:0}),JM=wt(qM),ZM=B({},ii,{newState:0,oldState:0}),WM=wt(ZM),$M=[9,13,27,32],th=Dn&&"CompositionEvent"in window,Gs=null;Dn&&"documentMode"in document&&(Gs=document.documentMode);var eO=Dn&&"TextEvent"in window&&!Gs,xy=Dn&&(!th||Gs&&8<Gs&&11>=Gs),Sy=" ",Qy=!1;function Uy(A,n){switch(A){case"keyup":return $M.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fy(A){return A=A.detail,typeof A=="object"&&"data"in A?A.data:null}var ta=!1;function AO(A,n){switch(A){case"compositionend":return Fy(n);case"keypress":return n.which!==32?null:(Qy=!0,Sy);case"textInput":return A=n.data,A===Sy&&Qy?null:A;default:return null}}function tO(A,n){if(ta)return A==="compositionend"||!th&&Uy(A,n)?(A=Cy(),rc=Zd=yr=null,ta=!1,A):null;switch(A){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return xy&&n.locale!=="ko"?null:n.data;default:return null}}var nO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ty(A){var n=A&&A.nodeName&&A.nodeName.toLowerCase();return n==="input"?!!nO[A.type]:n==="textarea"}function Ny(A,n,a,o){ea?Aa?Aa.push(o):Aa=[o]:ea=o,n=Zc(n,"onChange"),0<n.length&&(a=new sc("onChange","change",null,a,o),A.push({event:a,listeners:n}))}var zs=null,Ps=null;function rO(A){db(A,0)}function oc(A){var n=Ds(A);if(fy(n))return A}function Iy(A,n){if(A==="change")return n}var _y=!1;if(Dn){var nh;if(Dn){var rh="oninput"in document;if(!rh){var Hy=document.createElement("div");Hy.setAttribute("oninput","return;"),rh=typeof Hy.oninput=="function"}nh=rh}else nh=!1;_y=nh&&(!document.documentMode||9<document.documentMode)}function My(){zs&&(zs.detachEvent("onpropertychange",Oy),Ps=zs=null)}function Oy(A){if(A.propertyName==="value"&&oc(Ps)){var n=[];Ny(n,Ps,A,Xd(A)),wy(rO,n)}}function iO(A,n,a){A==="focusin"?(My(),zs=n,Ps=a,zs.attachEvent("onpropertychange",Oy)):A==="focusout"&&My()}function aO(A){if(A==="selectionchange"||A==="keyup"||A==="keydown")return oc(Ps)}function sO(A,n){if(A==="click")return oc(n)}function lO(A,n){if(A==="input"||A==="change")return oc(n)}function oO(A,n){return A===n&&(A!==0||1/A===1/n)||A!==A&&n!==n}var It=typeof Object.is=="function"?Object.is:oO;function Ys(A,n){if(It(A,n))return!0;if(typeof A!="object"||A===null||typeof n!="object"||n===null)return!1;var a=Object.keys(A),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var d=a[o];if(!Ft.call(n,d)||!It(A[d],n[d]))return!1}return!0}function Ry(A){for(;A&&A.firstChild;)A=A.firstChild;return A}function Ly(A,n){var a=Ry(A);A=0;for(var o;a;){if(a.nodeType===3){if(o=A+a.textContent.length,A<=n&&o>=n)return{node:a,offset:n-A};A=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ry(a)}}function Dy(A,n){return A&&n?A===n?!0:A&&A.nodeType===3?!1:n&&n.nodeType===3?Dy(A,n.parentNode):"contains"in A?A.contains(n):A.compareDocumentPosition?!!(A.compareDocumentPosition(n)&16):!1:!1}function ky(A){A=A!=null&&A.ownerDocument!=null&&A.ownerDocument.defaultView!=null?A.ownerDocument.defaultView:window;for(var n=tc(A.document);n instanceof A.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)A=n.contentWindow;else break;n=tc(A.document)}return n}function ih(A){var n=A&&A.nodeName&&A.nodeName.toLowerCase();return n&&(n==="input"&&(A.type==="text"||A.type==="search"||A.type==="tel"||A.type==="url"||A.type==="password")||n==="textarea"||A.contentEditable==="true")}var cO=Dn&&"documentMode"in document&&11>=document.documentMode,na=null,ah=null,Xs=null,sh=!1;function jy(A,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;sh||na==null||na!==tc(o)||(o=na,"selectionStart"in o&&ih(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xs&&Ys(Xs,o)||(Xs=o,o=Zc(ah,"onSelect"),0<o.length&&(n=new sc("onSelect","select",null,n,a),A.push({event:n,listeners:o}),n.target=na)))}function ai(A,n){var a={};return a[A.toLowerCase()]=n.toLowerCase(),a["Webkit"+A]="webkit"+n,a["Moz"+A]="moz"+n,a}var ra={animationend:ai("Animation","AnimationEnd"),animationiteration:ai("Animation","AnimationIteration"),animationstart:ai("Animation","AnimationStart"),transitionrun:ai("Transition","TransitionRun"),transitionstart:ai("Transition","TransitionStart"),transitioncancel:ai("Transition","TransitionCancel"),transitionend:ai("Transition","TransitionEnd")},lh={},Ky={};Dn&&(Ky=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function si(A){if(lh[A])return lh[A];if(!ra[A])return A;var n=ra[A],a;for(a in n)if(n.hasOwnProperty(a)&&a in Ky)return lh[A]=n[a];return A}var Vy=si("animationend"),Gy=si("animationiteration"),zy=si("animationstart"),uO=si("transitionrun"),fO=si("transitionstart"),dO=si("transitioncancel"),Py=si("transitionend"),Yy=new Map,oh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");oh.push("scrollEnd");function cn(A,n){Yy.set(A,n),ri(n,[A])}var cc=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}},qt=[],ia=0,ch=0;function uc(){for(var A=ia,n=ch=ia=0;n<A;){var a=qt[n];qt[n++]=null;var o=qt[n];qt[n++]=null;var d=qt[n];qt[n++]=null;var p=qt[n];if(qt[n++]=null,o!==null&&d!==null){var y=o.pending;y===null?d.next=d:(d.next=y.next,y.next=d),o.pending=d}p!==0&&Xy(a,d,p)}}function fc(A,n,a,o){qt[ia++]=A,qt[ia++]=n,qt[ia++]=a,qt[ia++]=o,ch|=o,A.lanes|=o,A=A.alternate,A!==null&&(A.lanes|=o)}function uh(A,n,a,o){return fc(A,n,a,o),dc(A)}function li(A,n){return fc(A,null,null,n),dc(A)}function Xy(A,n,a){A.lanes|=a;var o=A.alternate;o!==null&&(o.lanes|=a);for(var d=!1,p=A.return;p!==null;)p.childLanes|=a,o=p.alternate,o!==null&&(o.childLanes|=a),p.tag===22&&(A=p.stateNode,A===null||A._visibility&1||(d=!0)),A=p,p=p.return;return A.tag===3?(p=A.stateNode,d&&n!==null&&(d=31-De(a),A=p.hiddenUpdates,o=A[d],o===null?A[d]=[n]:o.push(n),n.lane=a|536870912),p):null}function dc(A){if(50<pl)throw pl=0,Cg=null,Error(i(185));for(var n=A.return;n!==null;)A=n,n=A.return;return A.tag===3?A.stateNode:null}var aa={};function hO(A,n,a,o){this.tag=A,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(A,n,a,o){return new hO(A,n,a,o)}function fh(A){return A=A.prototype,!(!A||!A.isReactComponent)}function kn(A,n){var a=A.alternate;return a===null?(a=_t(A.tag,n,A.key,A.mode),a.elementType=A.elementType,a.type=A.type,a.stateNode=A.stateNode,a.alternate=A,A.alternate=a):(a.pendingProps=n,a.type=A.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=A.flags&65011712,a.childLanes=A.childLanes,a.lanes=A.lanes,a.child=A.child,a.memoizedProps=A.memoizedProps,a.memoizedState=A.memoizedState,a.updateQueue=A.updateQueue,n=A.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=A.sibling,a.index=A.index,a.ref=A.ref,a.refCleanup=A.refCleanup,a}function qy(A,n){A.flags&=65011714;var a=A.alternate;return a===null?(A.childLanes=0,A.lanes=n,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=a.childLanes,A.lanes=a.lanes,A.child=a.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=a.memoizedProps,A.memoizedState=a.memoizedState,A.updateQueue=a.updateQueue,A.type=a.type,n=a.dependencies,A.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),A}function hc(A,n,a,o,d,p){var y=0;if(o=A,typeof A=="function")fh(A)&&(y=1);else if(typeof A=="string")y=wR(A,a,te.current)?26:A==="html"||A==="head"||A==="body"?27:5;else e:switch(A){case _:return A=_t(31,a,n,d),A.elementType=_,A.lanes=p,A;case b:return oi(a.children,d,p,n);case U:y=8,d|=24;break;case Q:return A=_t(12,a,n,d|2),A.elementType=Q,A.lanes=p,A;case V:return A=_t(13,a,n,d),A.elementType=V,A.lanes=p,A;case F:return A=_t(19,a,n,d),A.elementType=F,A.lanes=p,A;default:if(typeof A=="object"&&A!==null)switch(A.$$typeof){case M:y=10;break e;case N:y=9;break e;case G:y=11;break e;case O:y=14;break e;case R:y=16,o=null;break e}y=29,a=Error(i(130,A===null?"null":typeof A,"")),o=null}return n=_t(y,a,n,d),n.elementType=A,n.type=o,n.lanes=p,n}function oi(A,n,a,o){return A=_t(7,A,o,n),A.lanes=a,A}function dh(A,n,a){return A=_t(6,A,null,n),A.lanes=a,A}function Jy(A){var n=_t(18,null,null,0);return n.stateNode=A,n}function hh(A,n,a){return n=_t(4,A.children!==null?A.children:[],A.key,n),n.lanes=a,n.stateNode={containerInfo:A.containerInfo,pendingChildren:null,implementation:A.implementation},n}var Zy=new WeakMap;function Jt(A,n){if(typeof A=="object"&&A!==null){var a=Zy.get(A);return a!==void 0?a:(n={value:A,source:n,stack:Cn(n)},Zy.set(A,n),n)}return{value:A,source:n,stack:Cn(n)}}var sa=[],la=0,gc=null,qs=0,Zt=[],Wt=0,Er=null,En=1,vn="";function jn(A,n){sa[la++]=qs,sa[la++]=gc,gc=A,qs=n}function Wy(A,n,a){Zt[Wt++]=En,Zt[Wt++]=vn,Zt[Wt++]=Er,Er=A;var o=En;A=vn;var d=32-De(o)-1;o&=~(1<<d),a+=1;var p=32-De(n)+d;if(30<p){var y=d-d%5;p=(o&(1<<y)-1).toString(32),o>>=y,d-=y,En=1<<32-De(n)+d|a<<d|o,vn=p+A}else En=1<<p|a<<d|o,vn=A}function gh(A){A.return!==null&&(jn(A,1),Wy(A,1,0))}function ph(A){for(;A===gc;)gc=sa[--la],sa[la]=null,qs=sa[--la],sa[la]=null;for(;A===Er;)Er=Zt[--Wt],Zt[Wt]=null,vn=Zt[--Wt],Zt[Wt]=null,En=Zt[--Wt],Zt[Wt]=null}function $y(A,n){Zt[Wt++]=En,Zt[Wt++]=vn,Zt[Wt++]=Er,En=n.id,vn=n.overflow,Er=A}var et=null,wA=null,Je=!1,vr=null,$t=!1,mh=Error(i(519));function br(A){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Js(Jt(n,A)),mh}function eE(A){var n=A.stateNode,a=A.type,o=A.memoizedProps;switch(n[NA]=A,n[Ke]=o,a){case"dialog":Ge("cancel",n),Ge("close",n);break;case"iframe":case"object":case"embed":Ge("load",n);break;case"video":case"audio":for(a=0;a<Bl.length;a++)Ge(Bl[a],n);break;case"source":Ge("error",n);break;case"img":case"image":case"link":Ge("error",n),Ge("load",n);break;case"details":Ge("toggle",n);break;case"input":Ge("invalid",n),dy(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ge("invalid",n);break;case"textarea":Ge("invalid",n),gy(n,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||mb(n.textContent,a)?(o.popover!=null&&(Ge("beforetoggle",n),Ge("toggle",n)),o.onScroll!=null&&Ge("scroll",n),o.onScrollEnd!=null&&Ge("scrollend",n),o.onClick!=null&&(n.onclick=Ln),n=!0):n=!1,n||br(A,!0)}function AE(A){for(et=A.return;et;)switch(et.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:et=et.return}}function oa(A){if(A!==et)return!1;if(!Je)return AE(A),Je=!0,!1;var n=A.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=A.type,a=!(a!=="form"&&a!=="button")||Mg(A.type,A.memoizedProps)),a=!a),a&&wA&&br(A),AE(A),n===13){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));wA=Sb(A)}else if(n===31){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));wA=Sb(A)}else n===27?(n=wA,Lr(A.type)?(A=kg,kg=null,wA=A):wA=n):wA=et?An(A.stateNode.nextSibling):null;return!0}function ci(){wA=et=null,Je=!1}function Bh(){var A=vr;return A!==null&&(vt===null?vt=A:vt.push.apply(vt,A),vr=null),A}function Js(A){vr===null?vr=[A]:vr.push(A)}var wh=I(null),ui=null,Kn=null;function xr(A,n,a){v(wh,n._currentValue),n._currentValue=a}function Vn(A){A._currentValue=wh.current,P(wh)}function Ch(A,n,a){for(;A!==null;){var o=A.alternate;if((A.childLanes&n)!==n?(A.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),A===a)break;A=A.return}}function yh(A,n,a,o){var d=A.child;for(d!==null&&(d.return=A);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=d;for(var H=0;H<n.length;H++)if(S.context===n[H]){p.lanes|=a,S=p.alternate,S!==null&&(S.lanes|=a),Ch(p.return,a,A),o||(y=null);break e}p=S.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(i(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),Ch(y,a,A),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===A){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function ca(A,n,a,o){A=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var S=d.type;It(d.pendingProps.value,y.value)||(A!==null?A.push(S):A=[S])}}else if(d===ge.current){if(y=d.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(A!==null?A.push(vl):A=[vl])}d=d.return}A!==null&&yh(n,A,a,o),n.flags|=262144}function pc(A){for(A=A.firstContext;A!==null;){if(!It(A.context._currentValue,A.memoizedValue))return!0;A=A.next}return!1}function fi(A){ui=A,Kn=null,A=A.dependencies,A!==null&&(A.firstContext=null)}function At(A){return tE(ui,A)}function mc(A,n){return ui===null&&fi(A),tE(A,n)}function tE(A,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Kn===null){if(A===null)throw Error(i(308));Kn=n,A.dependencies={lanes:0,firstContext:n},A.flags|=524288}else Kn=Kn.next=n;return a}var gO=typeof AbortController<"u"?AbortController:function(){var A=[],n=this.signal={aborted:!1,addEventListener:function(a,o){A.push(o)}};this.abort=function(){n.aborted=!0,A.forEach(function(a){return a()})}},pO=e.unstable_scheduleCallback,mO=e.unstable_NormalPriority,LA={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eh(){return{controller:new gO,data:new Map,refCount:0}}function Zs(A){A.refCount--,A.refCount===0&&pO(mO,function(){A.controller.abort()})}var Ws=null,vh=0,ua=0,fa=null;function BO(A,n){if(Ws===null){var a=Ws=[];vh=0,ua=Sg(),fa={status:"pending",value:void 0,then:function(o){a.push(o)}}}return vh++,n.then(nE,nE),n}function nE(){if(--vh===0&&Ws!==null){fa!==null&&(fa.status="fulfilled");var A=Ws;Ws=null,ua=0,fa=null;for(var n=0;n<A.length;n++)(0,A[n])()}}function wO(A,n){var a=[],o={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return A.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<a.length;d++)(0,a[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),o}var rE=L.S;L.S=function(A,n){jv=XA(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&BO(A,n),rE!==null&&rE(A,n)};var di=I(null);function bh(){var A=di.current;return A!==null?A:dA.pooledCache}function Bc(A,n){n===null?v(di,di.current):v(di,n.pool)}function iE(){var A=bh();return A===null?null:{parent:LA._currentValue,pool:A}}var da=Error(i(460)),xh=Error(i(474)),wc=Error(i(542)),Cc={then:function(){}};function aE(A){return A=A.status,A==="fulfilled"||A==="rejected"}function sE(A,n,a){switch(a=A[a],a===void 0?A.push(n):a!==n&&(n.then(Ln,Ln),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw A=n.reason,oE(A),A;default:if(typeof n.status=="string")n.then(Ln,Ln);else{if(A=dA,A!==null&&100<A.shellSuspendCounter)throw Error(i(482));A=n,A.status="pending",A.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw A=n.reason,oE(A),A}throw gi=n,da}}function hi(A){try{var n=A._init;return n(A._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(gi=a,da):a}}var gi=null;function lE(){if(gi===null)throw Error(i(459));var A=gi;return gi=null,A}function oE(A){if(A===da||A===wc)throw Error(i(483))}var ha=null,$s=0;function yc(A){var n=$s;return $s+=1,ha===null&&(ha=[]),sE(ha,A,n)}function el(A,n){n=n.props.ref,A.ref=n!==void 0?n:null}function Ec(A,n){throw n.$$typeof===C?Error(i(525)):(A=Object.prototype.toString.call(n),Error(i(31,A==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":A)))}function cE(A){function n(K,D){if(A){var Y=K.deletions;Y===null?(K.deletions=[D],K.flags|=16):Y.push(D)}}function a(K,D){if(!A)return null;for(;D!==null;)n(K,D),D=D.sibling;return null}function o(K){for(var D=new Map;K!==null;)K.key!==null?D.set(K.key,K):D.set(K.index,K),K=K.sibling;return D}function d(K,D){return K=kn(K,D),K.index=0,K.sibling=null,K}function p(K,D,Y){return K.index=Y,A?(Y=K.alternate,Y!==null?(Y=Y.index,Y<D?(K.flags|=67108866,D):Y):(K.flags|=67108866,D)):(K.flags|=1048576,D)}function y(K){return A&&K.alternate===null&&(K.flags|=67108866),K}function S(K,D,Y,ie){return D===null||D.tag!==6?(D=dh(Y,K.mode,ie),D.return=K,D):(D=d(D,Y),D.return=K,D)}function H(K,D,Y,ie){var be=Y.type;return be===b?ne(K,D,Y.props.children,ie,Y.key):D!==null&&(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===R&&hi(be)===D.type)?(D=d(D,Y.props),el(D,Y),D.return=K,D):(D=hc(Y.type,Y.key,Y.props,null,K.mode,ie),el(D,Y),D.return=K,D)}function X(K,D,Y,ie){return D===null||D.tag!==4||D.stateNode.containerInfo!==Y.containerInfo||D.stateNode.implementation!==Y.implementation?(D=hh(Y,K.mode,ie),D.return=K,D):(D=d(D,Y.children||[]),D.return=K,D)}function ne(K,D,Y,ie,be){return D===null||D.tag!==7?(D=oi(Y,K.mode,ie,be),D.return=K,D):(D=d(D,Y),D.return=K,D)}function ae(K,D,Y){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=dh(""+D,K.mode,Y),D.return=K,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return Y=hc(D.type,D.key,D.props,null,K.mode,Y),el(Y,D),Y.return=K,Y;case E:return D=hh(D,K.mode,Y),D.return=K,D;case R:return D=hi(D),ae(K,D,Y)}if(z(D)||k(D))return D=oi(D,K.mode,Y,null),D.return=K,D;if(typeof D.then=="function")return ae(K,yc(D),Y);if(D.$$typeof===M)return ae(K,mc(K,D),Y);Ec(K,D)}return null}function Z(K,D,Y,ie){var be=D!==null?D.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return be!==null?null:S(K,D,""+Y,ie);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:return Y.key===be?H(K,D,Y,ie):null;case E:return Y.key===be?X(K,D,Y,ie):null;case R:return Y=hi(Y),Z(K,D,Y,ie)}if(z(Y)||k(Y))return be!==null?null:ne(K,D,Y,ie,null);if(typeof Y.then=="function")return Z(K,D,yc(Y),ie);if(Y.$$typeof===M)return Z(K,D,mc(K,Y),ie);Ec(K,Y)}return null}function ee(K,D,Y,ie,be){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return K=K.get(Y)||null,S(D,K,""+ie,be);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return K=K.get(ie.key===null?Y:ie.key)||null,H(D,K,ie,be);case E:return K=K.get(ie.key===null?Y:ie.key)||null,X(D,K,ie,be);case R:return ie=hi(ie),ee(K,D,Y,ie,be)}if(z(ie)||k(ie))return K=K.get(Y)||null,ne(D,K,ie,be,null);if(typeof ie.then=="function")return ee(K,D,Y,yc(ie),be);if(ie.$$typeof===M)return ee(K,D,Y,mc(D,ie),be);Ec(D,ie)}return null}function Ce(K,D,Y,ie){for(var be=null,eA=null,ve=D,Me=D=0,Xe=null;ve!==null&&Me<Y.length;Me++){ve.index>Me?(Xe=ve,ve=null):Xe=ve.sibling;var AA=Z(K,ve,Y[Me],ie);if(AA===null){ve===null&&(ve=Xe);break}A&&ve&&AA.alternate===null&&n(K,ve),D=p(AA,D,Me),eA===null?be=AA:eA.sibling=AA,eA=AA,ve=Xe}if(Me===Y.length)return a(K,ve),Je&&jn(K,Me),be;if(ve===null){for(;Me<Y.length;Me++)ve=ae(K,Y[Me],ie),ve!==null&&(D=p(ve,D,Me),eA===null?be=ve:eA.sibling=ve,eA=ve);return Je&&jn(K,Me),be}for(ve=o(ve);Me<Y.length;Me++)Xe=ee(ve,K,Me,Y[Me],ie),Xe!==null&&(A&&Xe.alternate!==null&&ve.delete(Xe.key===null?Me:Xe.key),D=p(Xe,D,Me),eA===null?be=Xe:eA.sibling=Xe,eA=Xe);return A&&ve.forEach(function(Vr){return n(K,Vr)}),Je&&jn(K,Me),be}function xe(K,D,Y,ie){if(Y==null)throw Error(i(151));for(var be=null,eA=null,ve=D,Me=D=0,Xe=null,AA=Y.next();ve!==null&&!AA.done;Me++,AA=Y.next()){ve.index>Me?(Xe=ve,ve=null):Xe=ve.sibling;var Vr=Z(K,ve,AA.value,ie);if(Vr===null){ve===null&&(ve=Xe);break}A&&ve&&Vr.alternate===null&&n(K,ve),D=p(Vr,D,Me),eA===null?be=Vr:eA.sibling=Vr,eA=Vr,ve=Xe}if(AA.done)return a(K,ve),Je&&jn(K,Me),be;if(ve===null){for(;!AA.done;Me++,AA=Y.next())AA=ae(K,AA.value,ie),AA!==null&&(D=p(AA,D,Me),eA===null?be=AA:eA.sibling=AA,eA=AA);return Je&&jn(K,Me),be}for(ve=o(ve);!AA.done;Me++,AA=Y.next())AA=ee(ve,K,Me,AA.value,ie),AA!==null&&(A&&AA.alternate!==null&&ve.delete(AA.key===null?Me:AA.key),D=p(AA,D,Me),eA===null?be=AA:eA.sibling=AA,eA=AA);return A&&ve.forEach(function(TR){return n(K,TR)}),Je&&jn(K,Me),be}function uA(K,D,Y,ie){if(typeof Y=="object"&&Y!==null&&Y.type===b&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:e:{for(var be=Y.key;D!==null;){if(D.key===be){if(be=Y.type,be===b){if(D.tag===7){a(K,D.sibling),ie=d(D,Y.props.children),ie.return=K,K=ie;break e}}else if(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===R&&hi(be)===D.type){a(K,D.sibling),ie=d(D,Y.props),el(ie,Y),ie.return=K,K=ie;break e}a(K,D);break}else n(K,D);D=D.sibling}Y.type===b?(ie=oi(Y.props.children,K.mode,ie,Y.key),ie.return=K,K=ie):(ie=hc(Y.type,Y.key,Y.props,null,K.mode,ie),el(ie,Y),ie.return=K,K=ie)}return y(K);case E:e:{for(be=Y.key;D!==null;){if(D.key===be)if(D.tag===4&&D.stateNode.containerInfo===Y.containerInfo&&D.stateNode.implementation===Y.implementation){a(K,D.sibling),ie=d(D,Y.children||[]),ie.return=K,K=ie;break e}else{a(K,D);break}else n(K,D);D=D.sibling}ie=hh(Y,K.mode,ie),ie.return=K,K=ie}return y(K);case R:return Y=hi(Y),uA(K,D,Y,ie)}if(z(Y))return Ce(K,D,Y,ie);if(k(Y)){if(be=k(Y),typeof be!="function")throw Error(i(150));return Y=be.call(Y),xe(K,D,Y,ie)}if(typeof Y.then=="function")return uA(K,D,yc(Y),ie);if(Y.$$typeof===M)return uA(K,D,mc(K,Y),ie);Ec(K,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,D!==null&&D.tag===6?(a(K,D.sibling),ie=d(D,Y),ie.return=K,K=ie):(a(K,D),ie=dh(Y,K.mode,ie),ie.return=K,K=ie),y(K)):a(K,D)}return function(K,D,Y,ie){try{$s=0;var be=uA(K,D,Y,ie);return ha=null,be}catch(ve){if(ve===da||ve===wc)throw ve;var eA=_t(29,ve,null,K.mode);return eA.lanes=ie,eA.return=K,eA}finally{}}}var pi=cE(!0),uE=cE(!1),Sr=!1;function Sh(A){A.updateQueue={baseState:A.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qh(A,n){A=A.updateQueue,n.updateQueue===A&&(n.updateQueue={baseState:A.baseState,firstBaseUpdate:A.firstBaseUpdate,lastBaseUpdate:A.lastBaseUpdate,shared:A.shared,callbacks:null})}function Qr(A){return{lane:A,tag:0,payload:null,callback:null,next:null}}function Ur(A,n,a){var o=A.updateQueue;if(o===null)return null;if(o=o.shared,(rA&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=dc(A),Xy(A,null,a),n}return fc(A,o,n,a),dc(A)}function Al(A,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=A.pendingLanes,a|=o,n.lanes=a,Zo(A,a)}}function Uh(A,n){var a=A.updateQueue,o=A.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=n:p=p.next=n}else d=p=n;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},A.updateQueue=a;return}A=a.lastBaseUpdate,A===null?a.firstBaseUpdate=n:A.next=n,a.lastBaseUpdate=n}var Fh=!1;function tl(){if(Fh){var A=fa;if(A!==null)throw A}}function nl(A,n,a,o){Fh=!1;var d=A.updateQueue;Sr=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var H=S,X=H.next;H.next=null,y===null?p=X:y.next=X,y=H;var ne=A.alternate;ne!==null&&(ne=ne.updateQueue,S=ne.lastBaseUpdate,S!==y&&(S===null?ne.firstBaseUpdate=X:S.next=X,ne.lastBaseUpdate=H))}if(p!==null){var ae=d.baseState;y=0,ne=X=H=null,S=p;do{var Z=S.lane&-536870913,ee=Z!==S.lane;if(ee?(Ye&Z)===Z:(o&Z)===Z){Z!==0&&Z===ua&&(Fh=!0),ne!==null&&(ne=ne.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Ce=A,xe=S;Z=n;var uA=a;switch(xe.tag){case 1:if(Ce=xe.payload,typeof Ce=="function"){ae=Ce.call(uA,ae,Z);break e}ae=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=xe.payload,Z=typeof Ce=="function"?Ce.call(uA,ae,Z):Ce,Z==null)break e;ae=B({},ae,Z);break e;case 2:Sr=!0}}Z=S.callback,Z!==null&&(A.flags|=64,ee&&(A.flags|=8192),ee=d.callbacks,ee===null?d.callbacks=[Z]:ee.push(Z))}else ee={lane:Z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},ne===null?(X=ne=ee,H=ae):ne=ne.next=ee,y|=Z;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;ee=S,S=ee.next,ee.next=null,d.lastBaseUpdate=ee,d.shared.pending=null}}while(!0);ne===null&&(H=ae),d.baseState=H,d.firstBaseUpdate=X,d.lastBaseUpdate=ne,p===null&&(d.shared.lanes=0),_r|=y,A.lanes=y,A.memoizedState=ae}}function fE(A,n){if(typeof A!="function")throw Error(i(191,A));A.call(n)}function dE(A,n){var a=A.callbacks;if(a!==null)for(A.callbacks=null,A=0;A<a.length;A++)fE(a[A],n)}var ga=I(null),vc=I(0);function hE(A,n){A=Wn,v(vc,A),v(ga,n),Wn=A|n.baseLanes}function Th(){v(vc,Wn),v(ga,ga.current)}function Nh(){Wn=vc.current,P(ga),P(vc)}var Ht=I(null),en=null;function Fr(A){var n=A.alternate;v(IA,IA.current&1),v(Ht,A),en===null&&(n===null||ga.current!==null||n.memoizedState!==null)&&(en=A)}function Ih(A){v(IA,IA.current),v(Ht,A),en===null&&(en=A)}function gE(A){A.tag===22?(v(IA,IA.current),v(Ht,A),en===null&&(en=A)):Tr()}function Tr(){v(IA,IA.current),v(Ht,Ht.current)}function Mt(A){P(Ht),en===A&&(en=null),P(IA)}var IA=I(0);function bc(A){for(var n=A;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Lg(a)||Dg(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===A)break;for(;n.sibling===null;){if(n.return===null||n.return===A)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Gn=0,Ie=null,oA=null,DA=null,xc=!1,pa=!1,mi=!1,Sc=0,rl=0,ma=null,CO=0;function xA(){throw Error(i(321))}function _h(A,n){if(n===null)return!1;for(var a=0;a<n.length&&a<A.length;a++)if(!It(A[a],n[a]))return!1;return!0}function Hh(A,n,a,o,d,p){return Gn=p,Ie=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=A===null||A.memoizedState===null?WE:qh,mi=!1,p=a(o,d),mi=!1,pa&&(p=mE(n,a,o,d)),pE(A),p}function pE(A){L.H=sl;var n=oA!==null&&oA.next!==null;if(Gn=0,DA=oA=Ie=null,xc=!1,rl=0,ma=null,n)throw Error(i(300));A===null||kA||(A=A.dependencies,A!==null&&pc(A)&&(kA=!0))}function mE(A,n,a,o){Ie=A;var d=0;do{if(pa&&(ma=null),rl=0,pa=!1,25<=d)throw Error(i(301));if(d+=1,DA=oA=null,A.updateQueue!=null){var p=A.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}L.H=$E,p=n(a,o)}while(pa);return p}function yO(){var A=L.H,n=A.useState()[0];return n=typeof n.then=="function"?il(n):n,A=A.useState()[0],(oA!==null?oA.memoizedState:null)!==A&&(Ie.flags|=1024),n}function Mh(){var A=Sc!==0;return Sc=0,A}function Oh(A,n,a){n.updateQueue=A.updateQueue,n.flags&=-2053,A.lanes&=~a}function Rh(A){if(xc){for(A=A.memoizedState;A!==null;){var n=A.queue;n!==null&&(n.pending=null),A=A.next}xc=!1}Gn=0,DA=oA=Ie=null,pa=!1,rl=Sc=0,ma=null}function ft(){var A={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return DA===null?Ie.memoizedState=DA=A:DA=DA.next=A,DA}function _A(){if(oA===null){var A=Ie.alternate;A=A!==null?A.memoizedState:null}else A=oA.next;var n=DA===null?Ie.memoizedState:DA.next;if(n!==null)DA=n,oA=A;else{if(A===null)throw Ie.alternate===null?Error(i(467)):Error(i(310));oA=A,A={memoizedState:oA.memoizedState,baseState:oA.baseState,baseQueue:oA.baseQueue,queue:oA.queue,next:null},DA===null?Ie.memoizedState=DA=A:DA=DA.next=A}return DA}function Qc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function il(A){var n=rl;return rl+=1,ma===null&&(ma=[]),A=sE(ma,A,n),n=Ie,(DA===null?n.memoizedState:DA.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?WE:qh),A}function Uc(A){if(A!==null&&typeof A=="object"){if(typeof A.then=="function")return il(A);if(A.$$typeof===M)return At(A)}throw Error(i(438,String(A)))}function Lh(A){var n=null,a=Ie.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=Ie.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Qc(),Ie.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(A),o=0;o<A;o++)a[o]=q;return n.index++,a}function zn(A,n){return typeof n=="function"?n(A):n}function Fc(A){var n=_A();return Dh(n,oA,A)}function Dh(A,n,a){var o=A.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var d=A.baseQueue,p=o.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}n.baseQueue=d=p,o.pending=null}if(p=A.baseState,d===null)A.memoizedState=p;else{n=d.next;var S=y=null,H=null,X=n,ne=!1;do{var ae=X.lane&-536870913;if(ae!==X.lane?(Ye&ae)===ae:(Gn&ae)===ae){var Z=X.revertLane;if(Z===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ae===ua&&(ne=!0);else if((Gn&Z)===Z){X=X.next,Z===ua&&(ne=!0);continue}else ae={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},H===null?(S=H=ae,y=p):H=H.next=ae,Ie.lanes|=Z,_r|=Z;ae=X.action,mi&&a(p,ae),p=X.hasEagerState?X.eagerState:a(p,ae)}else Z={lane:ae,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},H===null?(S=H=Z,y=p):H=H.next=Z,Ie.lanes|=ae,_r|=ae;X=X.next}while(X!==null&&X!==n);if(H===null?y=p:H.next=S,!It(p,A.memoizedState)&&(kA=!0,ne&&(a=fa,a!==null)))throw a;A.memoizedState=p,A.baseState=y,A.baseQueue=H,o.lastRenderedState=p}return d===null&&(o.lanes=0),[A.memoizedState,o.dispatch]}function kh(A){var n=_A(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=A;var o=a.dispatch,d=a.pending,p=n.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=A(p,y.action),y=y.next;while(y!==d);It(p,n.memoizedState)||(kA=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,o]}function BE(A,n,a){var o=Ie,d=_A(),p=Je;if(p){if(a===void 0)throw Error(i(407));a=a()}else a=n();var y=!It((oA||d).memoizedState,a);if(y&&(d.memoizedState=a,kA=!0),d=d.queue,Vh(yE.bind(null,o,d,A),[A]),d.getSnapshot!==n||y||DA!==null&&DA.memoizedState.tag&1){if(o.flags|=2048,Ba(9,{destroy:void 0},CE.bind(null,o,d,a,n),null),dA===null)throw Error(i(349));p||(Gn&127)!==0||wE(o,n,a)}return a}function wE(A,n,a){A.flags|=16384,A={getSnapshot:n,value:a},n=Ie.updateQueue,n===null?(n=Qc(),Ie.updateQueue=n,n.stores=[A]):(a=n.stores,a===null?n.stores=[A]:a.push(A))}function CE(A,n,a,o){n.value=a,n.getSnapshot=o,EE(n)&&vE(A)}function yE(A,n,a){return a(function(){EE(n)&&vE(A)})}function EE(A){var n=A.getSnapshot;A=A.value;try{var a=n();return!It(A,a)}catch{return!0}}function vE(A){var n=li(A,2);n!==null&&bt(n,A,2)}function jh(A){var n=ft();if(typeof A=="function"){var a=A;if(A=a(),mi){fA(!0);try{a()}finally{fA(!1)}}}return n.memoizedState=n.baseState=A,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:A},n}function bE(A,n,a,o){return A.baseState=a,Dh(A,oA,typeof o=="function"?o:zn)}function EO(A,n,a,o,d){if(Ic(A))throw Error(i(485));if(A=n.action,A!==null){var p={payload:d,action:A,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};L.T!==null?a(!0):p.isTransition=!1,o(p),a=n.pending,a===null?(p.next=n.pending=p,xE(n,p)):(p.next=a.next,n.pending=a.next=p)}}function xE(A,n){var a=n.action,o=n.payload,d=A.state;if(n.isTransition){var p=L.T,y={};L.T=y;try{var S=a(d,o),H=L.S;H!==null&&H(y,S),SE(A,n,S)}catch(X){Kh(A,n,X)}finally{p!==null&&y.types!==null&&(p.types=y.types),L.T=p}}else try{p=a(d,o),SE(A,n,p)}catch(X){Kh(A,n,X)}}function SE(A,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){QE(A,n,o)},function(o){return Kh(A,n,o)}):QE(A,n,a)}function QE(A,n,a){n.status="fulfilled",n.value=a,UE(n),A.state=a,n=A.pending,n!==null&&(a=n.next,a===n?A.pending=null:(a=a.next,n.next=a,xE(A,a)))}function Kh(A,n,a){var o=A.pending;if(A.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,UE(n),n=n.next;while(n!==o)}A.action=null}function UE(A){A=A.listeners;for(var n=0;n<A.length;n++)(0,A[n])()}function FE(A,n){return n}function TE(A,n){if(Je){var a=dA.formState;if(a!==null){e:{var o=Ie;if(Je){if(wA){A:{for(var d=wA,p=$t;d.nodeType!==8;){if(!p){d=null;break A}if(d=An(d.nextSibling),d===null){d=null;break A}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){wA=An(d.nextSibling),o=d.data==="F!";break e}}br(o)}o=!1}o&&(n=a[0])}}return a=ft(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:FE,lastRenderedState:n},a.queue=o,a=qE.bind(null,Ie,o),o.dispatch=a,o=jh(!1),p=Xh.bind(null,Ie,!1,o.queue),o=ft(),d={state:n,dispatch:null,action:A,pending:null},o.queue=d,a=EO.bind(null,Ie,d,p,a),d.dispatch=a,o.memoizedState=A,[n,a,!1]}function NE(A){var n=_A();return IE(n,oA,A)}function IE(A,n,a){if(n=Dh(A,n,FE)[0],A=Fc(zn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=il(n)}catch(y){throw y===da?wc:y}else o=n;n=_A();var d=n.queue,p=d.dispatch;return a!==n.memoizedState&&(Ie.flags|=2048,Ba(9,{destroy:void 0},vO.bind(null,d,a),null)),[o,p,A]}function vO(A,n){A.action=n}function _E(A){var n=_A(),a=oA;if(a!==null)return IE(n,a,A);_A(),n=n.memoizedState,a=_A();var o=a.queue.dispatch;return a.memoizedState=A,[n,o,!1]}function Ba(A,n,a,o){return A={tag:A,create:a,deps:o,inst:n,next:null},n=Ie.updateQueue,n===null&&(n=Qc(),Ie.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=A.next=A:(o=a.next,a.next=A,A.next=o,n.lastEffect=A),A}function HE(){return _A().memoizedState}function Tc(A,n,a,o){var d=ft();Ie.flags|=A,d.memoizedState=Ba(1|n,{destroy:void 0},a,o===void 0?null:o)}function Nc(A,n,a,o){var d=_A();o=o===void 0?null:o;var p=d.memoizedState.inst;oA!==null&&o!==null&&_h(o,oA.memoizedState.deps)?d.memoizedState=Ba(n,p,a,o):(Ie.flags|=A,d.memoizedState=Ba(1|n,p,a,o))}function ME(A,n){Tc(8390656,8,A,n)}function Vh(A,n){Nc(2048,8,A,n)}function bO(A){Ie.flags|=4;var n=Ie.updateQueue;if(n===null)n=Qc(),Ie.updateQueue=n,n.events=[A];else{var a=n.events;a===null?n.events=[A]:a.push(A)}}function OE(A){var n=_A().memoizedState;return bO({ref:n,nextImpl:A}),function(){if((rA&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function RE(A,n){return Nc(4,2,A,n)}function LE(A,n){return Nc(4,4,A,n)}function DE(A,n){if(typeof n=="function"){A=A();var a=n(A);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return A=A(),n.current=A,function(){n.current=null}}function kE(A,n,a){a=a!=null?a.concat([A]):null,Nc(4,4,DE.bind(null,n,A),a)}function Gh(){}function jE(A,n){var a=_A();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&_h(n,o[1])?o[0]:(a.memoizedState=[A,n],A)}function KE(A,n){var a=_A();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&_h(n,o[1]))return o[0];if(o=A(),mi){fA(!0);try{A()}finally{fA(!1)}}return a.memoizedState=[o,n],o}function zh(A,n,a){return a===void 0||(Gn&1073741824)!==0&&(Ye&261930)===0?A.memoizedState=n:(A.memoizedState=a,A=Vv(),Ie.lanes|=A,_r|=A,a)}function VE(A,n,a,o){return It(a,n)?a:ga.current!==null?(A=zh(A,a,o),It(A,n)||(kA=!0),A):(Gn&42)===0||(Gn&1073741824)!==0&&(Ye&261930)===0?(kA=!0,A.memoizedState=a):(A=Vv(),Ie.lanes|=A,_r|=A,n)}function GE(A,n,a,o,d){var p=J.p;J.p=p!==0&&8>p?p:8;var y=L.T,S={};L.T=S,Xh(A,!1,n,a);try{var H=d(),X=L.S;if(X!==null&&X(S,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var ne=wO(H,o);al(A,n,ne,Lt())}else al(A,n,o,Lt())}catch(ae){al(A,n,{then:function(){},status:"rejected",reason:ae},Lt())}finally{J.p=p,y!==null&&S.types!==null&&(y.types=S.types),L.T=y}}function xO(){}function Ph(A,n,a,o){if(A.tag!==5)throw Error(i(476));var d=zE(A).queue;GE(A,d,n,Ae,a===null?xO:function(){return PE(A),a(o)})}function zE(A){var n=A.memoizedState;if(n!==null)return n;n={memoizedState:Ae,baseState:Ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:Ae},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:a},next:null},A.memoizedState=n,A=A.alternate,A!==null&&(A.memoizedState=n),n}function PE(A){var n=zE(A);n.next===null&&(n=A.alternate.memoizedState),al(A,n.next.queue,{},Lt())}function Yh(){return At(vl)}function YE(){return _A().memoizedState}function XE(){return _A().memoizedState}function SO(A){for(var n=A.return;n!==null;){switch(n.tag){case 24:case 3:var a=Lt();A=Qr(a);var o=Ur(n,A,a);o!==null&&(bt(o,n,a),Al(o,n,a)),n={cache:Eh()},A.payload=n;return}n=n.return}}function QO(A,n,a){var o=Lt();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ic(A)?JE(n,a):(a=uh(A,n,a,o),a!==null&&(bt(a,A,o),ZE(a,n,o)))}function qE(A,n,a){var o=Lt();al(A,n,a,o)}function al(A,n,a,o){var d={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ic(A))JE(n,d);else{var p=A.alternate;if(A.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var y=n.lastRenderedState,S=p(y,a);if(d.hasEagerState=!0,d.eagerState=S,It(S,y))return fc(A,n,d,0),dA===null&&uc(),!1}catch{}finally{}if(a=uh(A,n,d,o),a!==null)return bt(a,A,o),ZE(a,n,o),!0}return!1}function Xh(A,n,a,o){if(o={lane:2,revertLane:Sg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ic(A)){if(n)throw Error(i(479))}else n=uh(A,a,o,2),n!==null&&bt(n,A,2)}function Ic(A){var n=A.alternate;return A===Ie||n!==null&&n===Ie}function JE(A,n){pa=xc=!0;var a=A.pending;a===null?n.next=n:(n.next=a.next,a.next=n),A.pending=n}function ZE(A,n,a){if((a&4194048)!==0){var o=n.lanes;o&=A.pendingLanes,a|=o,n.lanes=a,Zo(A,a)}}var sl={readContext:At,use:Uc,useCallback:xA,useContext:xA,useEffect:xA,useImperativeHandle:xA,useLayoutEffect:xA,useInsertionEffect:xA,useMemo:xA,useReducer:xA,useRef:xA,useState:xA,useDebugValue:xA,useDeferredValue:xA,useTransition:xA,useSyncExternalStore:xA,useId:xA,useHostTransitionStatus:xA,useFormState:xA,useActionState:xA,useOptimistic:xA,useMemoCache:xA,useCacheRefresh:xA};sl.useEffectEvent=xA;var WE={readContext:At,use:Uc,useCallback:function(A,n){return ft().memoizedState=[A,n===void 0?null:n],A},useContext:At,useEffect:ME,useImperativeHandle:function(A,n,a){a=a!=null?a.concat([A]):null,Tc(4194308,4,DE.bind(null,n,A),a)},useLayoutEffect:function(A,n){return Tc(4194308,4,A,n)},useInsertionEffect:function(A,n){Tc(4,2,A,n)},useMemo:function(A,n){var a=ft();n=n===void 0?null:n;var o=A();if(mi){fA(!0);try{A()}finally{fA(!1)}}return a.memoizedState=[o,n],o},useReducer:function(A,n,a){var o=ft();if(a!==void 0){var d=a(n);if(mi){fA(!0);try{a(n)}finally{fA(!1)}}}else d=n;return o.memoizedState=o.baseState=d,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A,lastRenderedState:d},o.queue=A,A=A.dispatch=QO.bind(null,Ie,A),[o.memoizedState,A]},useRef:function(A){var n=ft();return A={current:A},n.memoizedState=A},useState:function(A){A=jh(A);var n=A.queue,a=qE.bind(null,Ie,n);return n.dispatch=a,[A.memoizedState,a]},useDebugValue:Gh,useDeferredValue:function(A,n){var a=ft();return zh(a,A,n)},useTransition:function(){var A=jh(!1);return A=GE.bind(null,Ie,A.queue,!0,!1),ft().memoizedState=A,[!1,A]},useSyncExternalStore:function(A,n,a){var o=Ie,d=ft();if(Je){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),dA===null)throw Error(i(349));(Ye&127)!==0||wE(o,n,a)}d.memoizedState=a;var p={value:a,getSnapshot:n};return d.queue=p,ME(yE.bind(null,o,p,A),[A]),o.flags|=2048,Ba(9,{destroy:void 0},CE.bind(null,o,p,a,n),null),a},useId:function(){var A=ft(),n=dA.identifierPrefix;if(Je){var a=vn,o=En;a=(o&~(1<<32-De(o)-1)).toString(32)+a,n="_"+n+"R_"+a,a=Sc++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=CO++,n="_"+n+"r_"+a.toString(32)+"_";return A.memoizedState=n},useHostTransitionStatus:Yh,useFormState:TE,useActionState:TE,useOptimistic:function(A){var n=ft();n.memoizedState=n.baseState=A;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Xh.bind(null,Ie,!0,a),a.dispatch=n,[A,n]},useMemoCache:Lh,useCacheRefresh:function(){return ft().memoizedState=SO.bind(null,Ie)},useEffectEvent:function(A){var n=ft(),a={impl:A};return n.memoizedState=a,function(){if((rA&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},qh={readContext:At,use:Uc,useCallback:jE,useContext:At,useEffect:Vh,useImperativeHandle:kE,useInsertionEffect:RE,useLayoutEffect:LE,useMemo:KE,useReducer:Fc,useRef:HE,useState:function(){return Fc(zn)},useDebugValue:Gh,useDeferredValue:function(A,n){var a=_A();return VE(a,oA.memoizedState,A,n)},useTransition:function(){var A=Fc(zn)[0],n=_A().memoizedState;return[typeof A=="boolean"?A:il(A),n]},useSyncExternalStore:BE,useId:YE,useHostTransitionStatus:Yh,useFormState:NE,useActionState:NE,useOptimistic:function(A,n){var a=_A();return bE(a,oA,A,n)},useMemoCache:Lh,useCacheRefresh:XE};qh.useEffectEvent=OE;var $E={readContext:At,use:Uc,useCallback:jE,useContext:At,useEffect:Vh,useImperativeHandle:kE,useInsertionEffect:RE,useLayoutEffect:LE,useMemo:KE,useReducer:kh,useRef:HE,useState:function(){return kh(zn)},useDebugValue:Gh,useDeferredValue:function(A,n){var a=_A();return oA===null?zh(a,A,n):VE(a,oA.memoizedState,A,n)},useTransition:function(){var A=kh(zn)[0],n=_A().memoizedState;return[typeof A=="boolean"?A:il(A),n]},useSyncExternalStore:BE,useId:YE,useHostTransitionStatus:Yh,useFormState:_E,useActionState:_E,useOptimistic:function(A,n){var a=_A();return oA!==null?bE(a,oA,A,n):(a.baseState=A,[A,a.queue.dispatch])},useMemoCache:Lh,useCacheRefresh:XE};$E.useEffectEvent=OE;function Jh(A,n,a,o){n=A.memoizedState,a=a(o,n),a=a==null?n:B({},n,a),A.memoizedState=a,A.lanes===0&&(A.updateQueue.baseState=a)}var Zh={enqueueSetState:function(A,n,a){A=A._reactInternals;var o=Lt(),d=Qr(o);d.payload=n,a!=null&&(d.callback=a),n=Ur(A,d,o),n!==null&&(bt(n,A,o),Al(n,A,o))},enqueueReplaceState:function(A,n,a){A=A._reactInternals;var o=Lt(),d=Qr(o);d.tag=1,d.payload=n,a!=null&&(d.callback=a),n=Ur(A,d,o),n!==null&&(bt(n,A,o),Al(n,A,o))},enqueueForceUpdate:function(A,n){A=A._reactInternals;var a=Lt(),o=Qr(a);o.tag=2,n!=null&&(o.callback=n),n=Ur(A,o,a),n!==null&&(bt(n,A,a),Al(n,A,a))}};function ev(A,n,a,o,d,p,y){return A=A.stateNode,typeof A.shouldComponentUpdate=="function"?A.shouldComponentUpdate(o,p,y):n.prototype&&n.prototype.isPureReactComponent?!Ys(a,o)||!Ys(d,p):!0}function Av(A,n,a,o){A=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==A&&Zh.enqueueReplaceState(n,n.state,null)}function Bi(A,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(A=A.defaultProps){a===n&&(a=B({},a));for(var d in A)a[d]===void 0&&(a[d]=A[d])}return a}function tv(A){cc(A)}function nv(A){}function rv(A){cc(A)}function _c(A,n){try{var a=A.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function iv(A,n,a){try{var o=A.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Wh(A,n,a){return a=Qr(a),a.tag=3,a.payload={element:null},a.callback=function(){_c(A,n)},a}function av(A){return A=Qr(A),A.tag=3,A}function sv(A,n,a,o){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;A.payload=function(){return d(p)},A.callback=function(){iv(n,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(A.callback=function(){iv(n,a,o),typeof d!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function UO(A,n,a,o,d){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&ca(n,a,d,!0),a=Ht.current,a!==null){switch(a.tag){case 31:case 13:return en===null?zc():a.alternate===null&&SA===0&&(SA=3),a.flags&=-257,a.flags|=65536,a.lanes=d,o===Cc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),vg(A,o,d)),!1;case 22:return a.flags|=65536,o===Cc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),vg(A,o,d)),!1}throw Error(i(435,a.tag))}return vg(A,o,d),zc(),!1}if(Je)return n=Ht.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==mh&&(A=Error(i(422),{cause:o}),Js(Jt(A,a)))):(o!==mh&&(n=Error(i(423),{cause:o}),Js(Jt(n,a))),A=A.current.alternate,A.flags|=65536,d&=-d,A.lanes|=d,o=Jt(o,a),d=Wh(A.stateNode,o,d),Uh(A,d),SA!==4&&(SA=2)),!1;var p=Error(i(520),{cause:o});if(p=Jt(p,a),gl===null?gl=[p]:gl.push(p),SA!==4&&(SA=2),n===null)return!0;o=Jt(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,A=d&-d,a.lanes|=A,A=Wh(a.stateNode,o,A),Uh(a,A),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Hr===null||!Hr.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=av(d),sv(d,A,a,o),Uh(a,d),!1}a=a.return}while(a!==null);return!1}var $h=Error(i(461)),kA=!1;function tt(A,n,a,o){n.child=A===null?uE(n,null,a,o):pi(n,A.child,a,o)}function lv(A,n,a,o,d){a=a.render;var p=n.ref;if("ref"in o){var y={};for(var S in o)S!=="ref"&&(y[S]=o[S])}else y=o;return fi(n),o=Hh(A,n,a,y,p,d),S=Mh(),A!==null&&!kA?(Oh(A,n,d),Pn(A,n,d)):(Je&&S&&gh(n),n.flags|=1,tt(A,n,o,d),n.child)}function ov(A,n,a,o,d){if(A===null){var p=a.type;return typeof p=="function"&&!fh(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,cv(A,n,p,o,d)):(A=hc(a.type,null,o,n,n.mode,d),A.ref=n.ref,A.return=n,n.child=A)}if(p=A.child,!sg(A,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:Ys,a(y,o)&&A.ref===n.ref)return Pn(A,n,d)}return n.flags|=1,A=kn(p,o),A.ref=n.ref,A.return=n,n.child=A}function cv(A,n,a,o,d){if(A!==null){var p=A.memoizedProps;if(Ys(p,o)&&A.ref===n.ref)if(kA=!1,n.pendingProps=o=p,sg(A,d))(A.flags&131072)!==0&&(kA=!0);else return n.lanes=A.lanes,Pn(A,n,d)}return eg(A,n,a,o,d)}function uv(A,n,a,o){var d=o.children,p=A!==null?A.memoizedState:null;if(A===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,A!==null){for(o=n.child=A.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~p}else o=0,n.child=null;return fv(A,n,p,a,o)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},A!==null&&Bc(n,p!==null?p.cachePool:null),p!==null?hE(n,p):Th(),gE(n);else return o=n.lanes=536870912,fv(A,n,p!==null?p.baseLanes|a:a,a,o)}else p!==null?(Bc(n,p.cachePool),hE(n,p),Tr(),n.memoizedState=null):(A!==null&&Bc(n,null),Th(),Tr());return tt(A,n,d,a),n.child}function ll(A,n){return A!==null&&A.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function fv(A,n,a,o,d){var p=bh();return p=p===null?null:{parent:LA._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},A!==null&&Bc(n,null),Th(),gE(n),A!==null&&ca(A,n,o,!0),n.childLanes=d,null}function Hc(A,n){return n=Oc({mode:n.mode,children:n.children},A.mode),n.ref=A.ref,A.child=n,n.return=A,n}function dv(A,n,a){return pi(n,A.child,null,a),A=Hc(n,n.pendingProps),A.flags|=2,Mt(n),n.memoizedState=null,A}function FO(A,n,a){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,A===null){if(Je){if(o.mode==="hidden")return A=Hc(n,o),n.lanes=536870912,ll(null,A);if(Ih(n),(A=wA)?(A=xb(A,$t),A=A!==null&&A.data==="&"?A:null,A!==null&&(n.memoizedState={dehydrated:A,treeContext:Er!==null?{id:En,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},a=Jy(A),a.return=n,n.child=a,et=n,wA=null)):A=null,A===null)throw br(n);return n.lanes=536870912,null}return Hc(n,o)}var p=A.memoizedState;if(p!==null){var y=p.dehydrated;if(Ih(n),d)if(n.flags&256)n.flags&=-257,n=dv(A,n,a);else if(n.memoizedState!==null)n.child=A.child,n.flags|=128,n=null;else throw Error(i(558));else if(kA||ca(A,n,a,!1),d=(a&A.childLanes)!==0,kA||d){if(o=dA,o!==null&&(y=ti(o,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,li(A,y),bt(o,A,y),$h;zc(),n=dv(A,n,a)}else A=p.treeContext,wA=An(y.nextSibling),et=n,Je=!0,vr=null,$t=!1,A!==null&&$y(n,A),n=Hc(n,o),n.flags|=4096;return n}return A=kn(A.child,{mode:o.mode,children:o.children}),A.ref=n.ref,n.child=A,A.return=n,A}function Mc(A,n){var a=n.ref;if(a===null)A!==null&&A.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(A===null||A.ref!==a)&&(n.flags|=4194816)}}function eg(A,n,a,o,d){return fi(n),a=Hh(A,n,a,o,void 0,d),o=Mh(),A!==null&&!kA?(Oh(A,n,d),Pn(A,n,d)):(Je&&o&&gh(n),n.flags|=1,tt(A,n,a,d),n.child)}function hv(A,n,a,o,d,p){return fi(n),n.updateQueue=null,a=mE(n,o,a,d),pE(A),o=Mh(),A!==null&&!kA?(Oh(A,n,p),Pn(A,n,p)):(Je&&o&&gh(n),n.flags|=1,tt(A,n,a,p),n.child)}function gv(A,n,a,o,d){if(fi(n),n.stateNode===null){var p=aa,y=a.contextType;typeof y=="object"&&y!==null&&(p=At(y)),p=new a(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Zh,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},Sh(n),y=a.contextType,p.context=typeof y=="object"&&y!==null?At(y):aa,p.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Jh(n,a,y,o),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&Zh.enqueueReplaceState(p,p.state,null),nl(n,o,p,d),tl(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(A===null){p=n.stateNode;var S=n.memoizedProps,H=Bi(a,S);p.props=H;var X=p.context,ne=a.contextType;y=aa,typeof ne=="object"&&ne!==null&&(y=At(ne));var ae=a.getDerivedStateFromProps;ne=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,ne||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||X!==y)&&Av(n,p,o,y),Sr=!1;var Z=n.memoizedState;p.state=Z,nl(n,o,p,d),tl(),X=n.memoizedState,S||Z!==X||Sr?(typeof ae=="function"&&(Jh(n,a,ae,o),X=n.memoizedState),(H=Sr||ev(n,a,H,o,Z,X,y))?(ne||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=X),p.props=o,p.state=X,p.context=y,o=H):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,Qh(A,n),y=n.memoizedProps,ne=Bi(a,y),p.props=ne,ae=n.pendingProps,Z=p.context,X=a.contextType,H=aa,typeof X=="object"&&X!==null&&(H=At(X)),S=a.getDerivedStateFromProps,(X=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==ae||Z!==H)&&Av(n,p,o,H),Sr=!1,Z=n.memoizedState,p.state=Z,nl(n,o,p,d),tl();var ee=n.memoizedState;y!==ae||Z!==ee||Sr||A!==null&&A.dependencies!==null&&pc(A.dependencies)?(typeof S=="function"&&(Jh(n,a,S,o),ee=n.memoizedState),(ne=Sr||ev(n,a,ne,o,Z,ee,H)||A!==null&&A.dependencies!==null&&pc(A.dependencies))?(X||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,ee,H),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,ee,H)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=ee),p.props=o,p.state=ee,p.context=H,o=ne):(typeof p.componentDidUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=1024),o=!1)}return p=o,Mc(A,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,A!==null&&o?(n.child=pi(n,A.child,null,d),n.child=pi(n,null,a,d)):tt(A,n,a,d),n.memoizedState=p.state,A=n.child):A=Pn(A,n,d),A}function pv(A,n,a,o){return ci(),n.flags|=256,tt(A,n,a,o),n.child}var Ag={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tg(A){return{baseLanes:A,cachePool:iE()}}function ng(A,n,a){return A=A!==null?A.childLanes&~a:0,n&&(A|=Rt),A}function mv(A,n,a){var o=n.pendingProps,d=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=A!==null&&A.memoizedState===null?!1:(IA.current&2)!==0),y&&(d=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,A===null){if(Je){if(d?Fr(n):Tr(),(A=wA)?(A=xb(A,$t),A=A!==null&&A.data!=="&"?A:null,A!==null&&(n.memoizedState={dehydrated:A,treeContext:Er!==null?{id:En,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},a=Jy(A),a.return=n,n.child=a,et=n,wA=null)):A=null,A===null)throw br(n);return Dg(A)?n.lanes=32:n.lanes=536870912,null}var S=o.children;return o=o.fallback,d?(Tr(),d=n.mode,S=Oc({mode:"hidden",children:S},d),o=oi(o,d,a,null),S.return=n,o.return=n,S.sibling=o,n.child=S,o=n.child,o.memoizedState=tg(a),o.childLanes=ng(A,y,a),n.memoizedState=Ag,ll(null,o)):(Fr(n),rg(n,S))}var H=A.memoizedState;if(H!==null&&(S=H.dehydrated,S!==null)){if(p)n.flags&256?(Fr(n),n.flags&=-257,n=ig(A,n,a)):n.memoizedState!==null?(Tr(),n.child=A.child,n.flags|=128,n=null):(Tr(),S=o.fallback,d=n.mode,o=Oc({mode:"visible",children:o.children},d),S=oi(S,d,a,null),S.flags|=2,o.return=n,S.return=n,o.sibling=S,n.child=o,pi(n,A.child,null,a),o=n.child,o.memoizedState=tg(a),o.childLanes=ng(A,y,a),n.memoizedState=Ag,n=ll(null,o));else if(Fr(n),Dg(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var X=y.dgst;y=X,o=Error(i(419)),o.stack="",o.digest=y,Js({value:o,source:null,stack:null}),n=ig(A,n,a)}else if(kA||ca(A,n,a,!1),y=(a&A.childLanes)!==0,kA||y){if(y=dA,y!==null&&(o=ti(y,a),o!==0&&o!==H.retryLane))throw H.retryLane=o,li(A,o),bt(y,A,o),$h;Lg(S)||zc(),n=ig(A,n,a)}else Lg(S)?(n.flags|=192,n.child=A.child,n=null):(A=H.treeContext,wA=An(S.nextSibling),et=n,Je=!0,vr=null,$t=!1,A!==null&&$y(n,A),n=rg(n,o.children),n.flags|=4096);return n}return d?(Tr(),S=o.fallback,d=n.mode,H=A.child,X=H.sibling,o=kn(H,{mode:"hidden",children:o.children}),o.subtreeFlags=H.subtreeFlags&65011712,X!==null?S=kn(X,S):(S=oi(S,d,a,null),S.flags|=2),S.return=n,o.return=n,o.sibling=S,n.child=o,ll(null,o),o=n.child,S=A.child.memoizedState,S===null?S=tg(a):(d=S.cachePool,d!==null?(H=LA._currentValue,d=d.parent!==H?{parent:H,pool:H}:d):d=iE(),S={baseLanes:S.baseLanes|a,cachePool:d}),o.memoizedState=S,o.childLanes=ng(A,y,a),n.memoizedState=Ag,ll(A.child,o)):(Fr(n),a=A.child,A=a.sibling,a=kn(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,A!==null&&(y=n.deletions,y===null?(n.deletions=[A],n.flags|=16):y.push(A)),n.child=a,n.memoizedState=null,a)}function rg(A,n){return n=Oc({mode:"visible",children:n},A.mode),n.return=A,A.child=n}function Oc(A,n){return A=_t(22,A,null,n),A.lanes=0,A}function ig(A,n,a){return pi(n,A.child,null,a),A=rg(n,n.pendingProps.children),A.flags|=2,n.memoizedState=null,A}function Bv(A,n,a){A.lanes|=n;var o=A.alternate;o!==null&&(o.lanes|=n),Ch(A.return,n,a)}function ag(A,n,a,o,d,p){var y=A.memoizedState;y===null?A.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function wv(A,n,a){var o=n.pendingProps,d=o.revealOrder,p=o.tail;o=o.children;var y=IA.current,S=(y&2)!==0;if(S?(y=y&1|2,n.flags|=128):y&=1,v(IA,y),tt(A,n,o,a),o=Je?qs:0,!S&&A!==null&&(A.flags&128)!==0)e:for(A=n.child;A!==null;){if(A.tag===13)A.memoizedState!==null&&Bv(A,a,n);else if(A.tag===19)Bv(A,a,n);else if(A.child!==null){A.child.return=A,A=A.child;continue}if(A===n)break e;for(;A.sibling===null;){if(A.return===null||A.return===n)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}switch(d){case"forwards":for(a=n.child,d=null;a!==null;)A=a.alternate,A!==null&&bc(A)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),ag(n,!1,d,a,p,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(A=d.alternate,A!==null&&bc(A)===null){n.child=d;break}A=d.sibling,d.sibling=a,a=d,d=A}ag(n,!0,a,null,p,o);break;case"together":ag(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function Pn(A,n,a){if(A!==null&&(n.dependencies=A.dependencies),_r|=n.lanes,(a&n.childLanes)===0)if(A!==null){if(ca(A,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(A!==null&&n.child!==A.child)throw Error(i(153));if(n.child!==null){for(A=n.child,a=kn(A,A.pendingProps),n.child=a,a.return=n;A.sibling!==null;)A=A.sibling,a=a.sibling=kn(A,A.pendingProps),a.return=n;a.sibling=null}return n.child}function sg(A,n){return(A.lanes&n)!==0?!0:(A=A.dependencies,!!(A!==null&&pc(A)))}function TO(A,n,a){switch(n.tag){case 3:Le(n,n.stateNode.containerInfo),xr(n,LA,A.memoizedState.cache),ci();break;case 27:case 5:We(n);break;case 4:Le(n,n.stateNode.containerInfo);break;case 10:xr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ih(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Fr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?mv(A,n,a):(Fr(n),A=Pn(A,n,a),A!==null?A.sibling:null);Fr(n);break;case 19:var d=(A.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(ca(A,n,a,!1),o=(a&n.childLanes)!==0),d){if(o)return wv(A,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),v(IA,IA.current),o)break;return null;case 22:return n.lanes=0,uv(A,n,a,n.pendingProps);case 24:xr(n,LA,A.memoizedState.cache)}return Pn(A,n,a)}function Cv(A,n,a){if(A!==null)if(A.memoizedProps!==n.pendingProps)kA=!0;else{if(!sg(A,a)&&(n.flags&128)===0)return kA=!1,TO(A,n,a);kA=(A.flags&131072)!==0}else kA=!1,Je&&(n.flags&1048576)!==0&&Wy(n,qs,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(A=hi(n.elementType),n.type=A,typeof A=="function")fh(A)?(o=Bi(A,o),n.tag=1,n=gv(null,n,A,o,a)):(n.tag=0,n=eg(null,n,A,o,a));else{if(A!=null){var d=A.$$typeof;if(d===G){n.tag=11,n=lv(null,n,A,o,a);break e}else if(d===O){n.tag=14,n=ov(null,n,A,o,a);break e}}throw n=le(A)||A,Error(i(306,n,""))}}return n;case 0:return eg(A,n,n.type,n.pendingProps,a);case 1:return o=n.type,d=Bi(o,n.pendingProps),gv(A,n,o,d,a);case 3:e:{if(Le(n,n.stateNode.containerInfo),A===null)throw Error(i(387));o=n.pendingProps;var p=n.memoizedState;d=p.element,Qh(A,n),nl(n,o,null,a);var y=n.memoizedState;if(o=y.cache,xr(n,LA,o),o!==p.cache&&yh(n,[LA],a,!0),tl(),o=y.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=pv(A,n,o,a);break e}else if(o!==d){d=Jt(Error(i(424)),n),Js(d),n=pv(A,n,o,a);break e}else{switch(A=n.stateNode.containerInfo,A.nodeType){case 9:A=A.body;break;default:A=A.nodeName==="HTML"?A.ownerDocument.body:A}for(wA=An(A.firstChild),et=n,Je=!0,vr=null,$t=!0,a=uE(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ci(),o===d){n=Pn(A,n,a);break e}tt(A,n,o,a)}n=n.child}return n;case 26:return Mc(A,n),A===null?(a=Nb(n.type,null,n.pendingProps,null))?n.memoizedState=a:Je||(a=n.type,A=n.pendingProps,o=Wc(fe.current).createElement(a),o[NA]=n,o[Ke]=A,nt(o,a,A),qA(o),n.stateNode=o):n.memoizedState=Nb(n.type,A.memoizedProps,n.pendingProps,A.memoizedState),null;case 27:return We(n),A===null&&Je&&(o=n.stateNode=Ub(n.type,n.pendingProps,fe.current),et=n,$t=!0,d=wA,Lr(n.type)?(kg=d,wA=An(o.firstChild)):wA=d),tt(A,n,n.pendingProps.children,a),Mc(A,n),A===null&&(n.flags|=4194304),n.child;case 5:return A===null&&Je&&((d=o=wA)&&(o=aR(o,n.type,n.pendingProps,$t),o!==null?(n.stateNode=o,et=n,wA=An(o.firstChild),$t=!1,d=!0):d=!1),d||br(n)),We(n),d=n.type,p=n.pendingProps,y=A!==null?A.memoizedProps:null,o=p.children,Mg(d,p)?o=null:y!==null&&Mg(d,y)&&(n.flags|=32),n.memoizedState!==null&&(d=Hh(A,n,yO,null,null,a),vl._currentValue=d),Mc(A,n),tt(A,n,o,a),n.child;case 6:return A===null&&Je&&((A=a=wA)&&(a=sR(a,n.pendingProps,$t),a!==null?(n.stateNode=a,et=n,wA=null,A=!0):A=!1),A||br(n)),null;case 13:return mv(A,n,a);case 4:return Le(n,n.stateNode.containerInfo),o=n.pendingProps,A===null?n.child=pi(n,null,o,a):tt(A,n,o,a),n.child;case 11:return lv(A,n,n.type,n.pendingProps,a);case 7:return tt(A,n,n.pendingProps,a),n.child;case 8:return tt(A,n,n.pendingProps.children,a),n.child;case 12:return tt(A,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,xr(n,n.type,o.value),tt(A,n,o.children,a),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,fi(n),d=At(d),o=o(d),n.flags|=1,tt(A,n,o,a),n.child;case 14:return ov(A,n,n.type,n.pendingProps,a);case 15:return cv(A,n,n.type,n.pendingProps,a);case 19:return wv(A,n,a);case 31:return FO(A,n,a);case 22:return uv(A,n,a,n.pendingProps);case 24:return fi(n),o=At(LA),A===null?(d=bh(),d===null&&(d=dA,p=Eh(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),n.memoizedState={parent:o,cache:d},Sh(n),xr(n,LA,d)):((A.lanes&a)!==0&&(Qh(A,n),nl(n,null,null,a),tl()),d=A.memoizedState,p=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),xr(n,LA,o)):(o=p.cache,xr(n,LA,o),o!==d.cache&&yh(n,[LA],a,!0))),tt(A,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Yn(A){A.flags|=4}function lg(A,n,a,o,d){if((n=(A.mode&32)!==0)&&(n=!1),n){if(A.flags|=16777216,(d&335544128)===d)if(A.stateNode.complete)A.flags|=8192;else if(Yv())A.flags|=8192;else throw gi=Cc,xh}else A.flags&=-16777217}function yv(A,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)A.flags&=-16777217;else if(A.flags|=16777216,!Ob(n))if(Yv())A.flags|=8192;else throw gi=Cc,xh}function Rc(A,n){n!==null&&(A.flags|=4),A.flags&16384&&(n=A.tag!==22?Tt():536870912,A.lanes|=n,Ea|=n)}function ol(A,n){if(!Je)switch(A.tailMode){case"hidden":n=A.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?A.tail=null:a.sibling=null;break;case"collapsed":a=A.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||A.tail===null?A.tail=null:A.tail.sibling=null:o.sibling=null}}function CA(A){var n=A.alternate!==null&&A.alternate.child===A.child,a=0,o=0;if(n)for(var d=A.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=A,d=d.sibling;else for(d=A.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=A,d=d.sibling;return A.subtreeFlags|=o,A.childLanes=a,n}function NO(A,n,a){var o=n.pendingProps;switch(ph(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return CA(n),null;case 1:return CA(n),null;case 3:return a=n.stateNode,o=null,A!==null&&(o=A.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Vn(LA),Fe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(A===null||A.child===null)&&(oa(n)?Yn(n):A===null||A.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Bh())),CA(n),null;case 26:var d=n.type,p=n.memoizedState;return A===null?(Yn(n),p!==null?(CA(n),yv(n,p)):(CA(n),lg(n,d,null,o,a))):p?p!==A.memoizedState?(Yn(n),CA(n),yv(n,p)):(CA(n),n.flags&=-16777217):(A=A.memoizedProps,A!==o&&Yn(n),CA(n),lg(n,d,A,o,a)),null;case 27:if(je(n),a=fe.current,d=n.type,A!==null&&n.stateNode!=null)A.memoizedProps!==o&&Yn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return CA(n),null}A=te.current,oa(n)?eE(n):(A=Ub(d,o,a),n.stateNode=A,Yn(n))}return CA(n),null;case 5:if(je(n),d=n.type,A!==null&&n.stateNode!=null)A.memoizedProps!==o&&Yn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return CA(n),null}if(p=te.current,oa(n))eE(n);else{var y=Wc(fe.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?y.createElement(d,{is:o.is}):y.createElement(d)}}p[NA]=n,p[Ke]=o;e:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break e;for(;y.sibling===null;){if(y.return===null||y.return===n)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=p;e:switch(nt(p,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Yn(n)}}return CA(n),lg(n,n.type,A===null?null:A.memoizedProps,n.pendingProps,a),null;case 6:if(A&&n.stateNode!=null)A.memoizedProps!==o&&Yn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(i(166));if(A=fe.current,oa(n)){if(A=n.stateNode,a=n.memoizedProps,o=null,d=et,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}A[NA]=n,A=!!(A.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||mb(A.nodeValue,a)),A||br(n,!0)}else A=Wc(A).createTextNode(o),A[NA]=n,n.stateNode=A}return CA(n),null;case 31:if(a=n.memoizedState,A===null||A.memoizedState!==null){if(o=oa(n),a!==null){if(A===null){if(!o)throw Error(i(318));if(A=n.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(557));A[NA]=n}else ci(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;CA(n),A=!1}else a=Bh(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=a),A=!0;if(!A)return n.flags&256?(Mt(n),n):(Mt(n),null);if((n.flags&128)!==0)throw Error(i(558))}return CA(n),null;case 13:if(o=n.memoizedState,A===null||A.memoizedState!==null&&A.memoizedState.dehydrated!==null){if(d=oa(n),o!==null&&o.dehydrated!==null){if(A===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[NA]=n}else ci(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;CA(n),d=!1}else d=Bh(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(Mt(n),n):(Mt(n),null)}return Mt(n),(n.flags&128)!==0?(n.lanes=a,n):(a=o!==null,A=A!==null&&A.memoizedState!==null,a&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)),a!==A&&a&&(n.child.flags|=8192),Rc(n,n.updateQueue),CA(n),null);case 4:return Fe(),A===null&&Tg(n.stateNode.containerInfo),CA(n),null;case 10:return Vn(n.type),CA(n),null;case 19:if(P(IA),o=n.memoizedState,o===null)return CA(n),null;if(d=(n.flags&128)!==0,p=o.rendering,p===null)if(d)ol(o,!1);else{if(SA!==0||A!==null&&(A.flags&128)!==0)for(A=n.child;A!==null;){if(p=bc(A),p!==null){for(n.flags|=128,ol(o,!1),A=p.updateQueue,n.updateQueue=A,Rc(n,A),n.subtreeFlags=0,A=a,a=n.child;a!==null;)qy(a,A),a=a.sibling;return v(IA,IA.current&1|2),Je&&jn(n,o.treeForkCount),n.child}A=A.sibling}o.tail!==null&&XA()>Kc&&(n.flags|=128,d=!0,ol(o,!1),n.lanes=4194304)}else{if(!d)if(A=bc(p),A!==null){if(n.flags|=128,d=!0,A=A.updateQueue,n.updateQueue=A,Rc(n,A),ol(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!Je)return CA(n),null}else 2*XA()-o.renderingStartTime>Kc&&a!==536870912&&(n.flags|=128,d=!0,ol(o,!1),n.lanes=4194304);o.isBackwards?(p.sibling=n.child,n.child=p):(A=o.last,A!==null?A.sibling=p:n.child=p,o.last=p)}return o.tail!==null?(A=o.tail,o.rendering=A,o.tail=A.sibling,o.renderingStartTime=XA(),A.sibling=null,a=IA.current,v(IA,d?a&1|2:a&1),Je&&jn(n,o.treeForkCount),A):(CA(n),null);case 22:case 23:return Mt(n),Nh(),o=n.memoizedState!==null,A!==null?A.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(CA(n),n.subtreeFlags&6&&(n.flags|=8192)):CA(n),a=n.updateQueue,a!==null&&Rc(n,a.retryQueue),a=null,A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(a=A.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),A!==null&&P(di),null;case 24:return a=null,A!==null&&(a=A.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Vn(LA),CA(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function IO(A,n){switch(ph(n),n.tag){case 1:return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 3:return Vn(LA),Fe(),A=n.flags,(A&65536)!==0&&(A&128)===0?(n.flags=A&-65537|128,n):null;case 26:case 27:case 5:return je(n),null;case 31:if(n.memoizedState!==null){if(Mt(n),n.alternate===null)throw Error(i(340));ci()}return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 13:if(Mt(n),A=n.memoizedState,A!==null&&A.dehydrated!==null){if(n.alternate===null)throw Error(i(340));ci()}return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 19:return P(IA),null;case 4:return Fe(),null;case 10:return Vn(n.type),null;case 22:case 23:return Mt(n),Nh(),A!==null&&P(di),A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 24:return Vn(LA),null;case 25:return null;default:return null}}function Ev(A,n){switch(ph(n),n.tag){case 3:Vn(LA),Fe();break;case 26:case 27:case 5:je(n);break;case 4:Fe();break;case 31:n.memoizedState!==null&&Mt(n);break;case 13:Mt(n);break;case 19:P(IA);break;case 10:Vn(n.type);break;case 22:case 23:Mt(n),Nh(),A!==null&&P(di);break;case 24:Vn(LA)}}function cl(A,n){try{var a=n.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var d=o.next;a=d;do{if((a.tag&A)===A){o=void 0;var p=a.create,y=a.inst;o=p(),y.destroy=o}a=a.next}while(a!==d)}}catch(S){sA(n,n.return,S)}}function Nr(A,n,a){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&A)===A){var y=o.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,d=n;var H=a,X=S;try{X()}catch(ne){sA(d,H,ne)}}}o=o.next}while(o!==p)}}catch(ne){sA(n,n.return,ne)}}function vv(A){var n=A.updateQueue;if(n!==null){var a=A.stateNode;try{dE(n,a)}catch(o){sA(A,A.return,o)}}}function bv(A,n,a){a.props=Bi(A.type,A.memoizedProps),a.state=A.memoizedState;try{a.componentWillUnmount()}catch(o){sA(A,n,o)}}function ul(A,n){try{var a=A.ref;if(a!==null){switch(A.tag){case 26:case 27:case 5:var o=A.stateNode;break;case 30:o=A.stateNode;break;default:o=A.stateNode}typeof a=="function"?A.refCleanup=a(o):a.current=o}}catch(d){sA(A,n,d)}}function bn(A,n){var a=A.ref,o=A.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(d){sA(A,n,d)}finally{A.refCleanup=null,A=A.alternate,A!=null&&(A.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){sA(A,n,d)}else a.current=null}function xv(A){var n=A.type,a=A.memoizedProps,o=A.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(d){sA(A,A.return,d)}}function og(A,n,a){try{var o=A.stateNode;eR(o,A.type,a,n),o[Ke]=n}catch(d){sA(A,A.return,d)}}function Sv(A){return A.tag===5||A.tag===3||A.tag===26||A.tag===27&&Lr(A.type)||A.tag===4}function cg(A){e:for(;;){for(;A.sibling===null;){if(A.return===null||Sv(A.return))return null;A=A.return}for(A.sibling.return=A.return,A=A.sibling;A.tag!==5&&A.tag!==6&&A.tag!==18;){if(A.tag===27&&Lr(A.type)||A.flags&2||A.child===null||A.tag===4)continue e;A.child.return=A,A=A.child}if(!(A.flags&2))return A.stateNode}}function ug(A,n,a){var o=A.tag;if(o===5||o===6)A=A.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(A,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(A),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Ln));else if(o!==4&&(o===27&&Lr(A.type)&&(a=A.stateNode,n=null),A=A.child,A!==null))for(ug(A,n,a),A=A.sibling;A!==null;)ug(A,n,a),A=A.sibling}function Lc(A,n,a){var o=A.tag;if(o===5||o===6)A=A.stateNode,n?a.insertBefore(A,n):a.appendChild(A);else if(o!==4&&(o===27&&Lr(A.type)&&(a=A.stateNode),A=A.child,A!==null))for(Lc(A,n,a),A=A.sibling;A!==null;)Lc(A,n,a),A=A.sibling}function Qv(A){var n=A.stateNode,a=A.memoizedProps;try{for(var o=A.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);nt(n,o,a),n[NA]=A,n[Ke]=a}catch(p){sA(A,A.return,p)}}var Xn=!1,jA=!1,fg=!1,Uv=typeof WeakSet=="function"?WeakSet:Set,JA=null;function _O(A,n){if(A=A.containerInfo,_g=iu,A=ky(A),ih(A)){if("selectionStart"in A)var a={start:A.selectionStart,end:A.selectionEnd};else{a=(a=A.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;var y=0,S=-1,H=-1,X=0,ne=0,ae=A,Z=null;e:for(;;){for(var ee;ae!==a||d!==0&&ae.nodeType!==3||(S=y+d),ae!==p||o!==0&&ae.nodeType!==3||(H=y+o),ae.nodeType===3&&(y+=ae.nodeValue.length),(ee=ae.firstChild)!==null;)Z=ae,ae=ee;for(;;){if(ae===A)break e;if(Z===a&&++X===d&&(S=y),Z===p&&++ne===o&&(H=y),(ee=ae.nextSibling)!==null)break;ae=Z,Z=ae.parentNode}ae=ee}a=S===-1||H===-1?null:{start:S,end:H}}else a=null}a=a||{start:0,end:0}}else a=null;for(Hg={focusedElem:A,selectionRange:a},iu=!1,JA=n;JA!==null;)if(n=JA,A=n.child,(n.subtreeFlags&1028)!==0&&A!==null)A.return=n,JA=A;else for(;JA!==null;){switch(n=JA,p=n.alternate,A=n.flags,n.tag){case 0:if((A&4)!==0&&(A=n.updateQueue,A=A!==null?A.events:null,A!==null))for(a=0;a<A.length;a++)d=A[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((A&1024)!==0&&p!==null){A=void 0,a=n,d=p.memoizedProps,p=p.memoizedState,o=a.stateNode;try{var Ce=Bi(a.type,d);A=o.getSnapshotBeforeUpdate(Ce,p),o.__reactInternalSnapshotBeforeUpdate=A}catch(xe){sA(a,a.return,xe)}}break;case 3:if((A&1024)!==0){if(A=n.stateNode.containerInfo,a=A.nodeType,a===9)Rg(A);else if(a===1)switch(A.nodeName){case"HEAD":case"HTML":case"BODY":Rg(A);break;default:A.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((A&1024)!==0)throw Error(i(163))}if(A=n.sibling,A!==null){A.return=n.return,JA=A;break}JA=n.return}}function Fv(A,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Jn(A,a),o&4&&cl(5,a);break;case 1:if(Jn(A,a),o&4)if(A=a.stateNode,n===null)try{A.componentDidMount()}catch(y){sA(a,a.return,y)}else{var d=Bi(a.type,n.memoizedProps);n=n.memoizedState;try{A.componentDidUpdate(d,n,A.__reactInternalSnapshotBeforeUpdate)}catch(y){sA(a,a.return,y)}}o&64&&vv(a),o&512&&ul(a,a.return);break;case 3:if(Jn(A,a),o&64&&(A=a.updateQueue,A!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{dE(A,n)}catch(y){sA(a,a.return,y)}}break;case 27:n===null&&o&4&&Qv(a);case 26:case 5:Jn(A,a),n===null&&o&4&&xv(a),o&512&&ul(a,a.return);break;case 12:Jn(A,a);break;case 31:Jn(A,a),o&4&&Iv(A,a);break;case 13:Jn(A,a),o&4&&_v(A,a),o&64&&(A=a.memoizedState,A!==null&&(A=A.dehydrated,A!==null&&(a=KO.bind(null,a),lR(A,a))));break;case 22:if(o=a.memoizedState!==null||Xn,!o){n=n!==null&&n.memoizedState!==null||jA,d=Xn;var p=jA;Xn=o,(jA=n)&&!p?Zn(A,a,(a.subtreeFlags&8772)!==0):Jn(A,a),Xn=d,jA=p}break;case 30:break;default:Jn(A,a)}}function Tv(A){var n=A.alternate;n!==null&&(A.alternate=null,Tv(n)),A.child=null,A.deletions=null,A.sibling=null,A.tag===5&&(n=A.stateNode,n!==null&&Kd(n)),A.stateNode=null,A.return=null,A.dependencies=null,A.memoizedProps=null,A.memoizedState=null,A.pendingProps=null,A.stateNode=null,A.updateQueue=null}var vA=null,Ct=!1;function qn(A,n,a){for(a=a.child;a!==null;)Nv(A,n,a),a=a.sibling}function Nv(A,n,a){if(Pe&&typeof Pe.onCommitFiberUnmount=="function")try{Pe.onCommitFiberUnmount($e,a)}catch{}switch(a.tag){case 26:jA||bn(a,n),qn(A,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:jA||bn(a,n);var o=vA,d=Ct;Lr(a.type)&&(vA=a.stateNode,Ct=!1),qn(A,n,a),Cl(a.stateNode),vA=o,Ct=d;break;case 5:jA||bn(a,n);case 6:if(o=vA,d=Ct,vA=null,qn(A,n,a),vA=o,Ct=d,vA!==null)if(Ct)try{(vA.nodeType===9?vA.body:vA.nodeName==="HTML"?vA.ownerDocument.body:vA).removeChild(a.stateNode)}catch(p){sA(a,n,p)}else try{vA.removeChild(a.stateNode)}catch(p){sA(a,n,p)}break;case 18:vA!==null&&(Ct?(A=vA,vb(A.nodeType===9?A.body:A.nodeName==="HTML"?A.ownerDocument.body:A,a.stateNode),Ta(A)):vb(vA,a.stateNode));break;case 4:o=vA,d=Ct,vA=a.stateNode.containerInfo,Ct=!0,qn(A,n,a),vA=o,Ct=d;break;case 0:case 11:case 14:case 15:Nr(2,a,n),jA||Nr(4,a,n),qn(A,n,a);break;case 1:jA||(bn(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&bv(a,n,o)),qn(A,n,a);break;case 21:qn(A,n,a);break;case 22:jA=(o=jA)||a.memoizedState!==null,qn(A,n,a),jA=o;break;default:qn(A,n,a)}}function Iv(A,n){if(n.memoizedState===null&&(A=n.alternate,A!==null&&(A=A.memoizedState,A!==null))){A=A.dehydrated;try{Ta(A)}catch(a){sA(n,n.return,a)}}}function _v(A,n){if(n.memoizedState===null&&(A=n.alternate,A!==null&&(A=A.memoizedState,A!==null&&(A=A.dehydrated,A!==null))))try{Ta(A)}catch(a){sA(n,n.return,a)}}function HO(A){switch(A.tag){case 31:case 13:case 19:var n=A.stateNode;return n===null&&(n=A.stateNode=new Uv),n;case 22:return A=A.stateNode,n=A._retryCache,n===null&&(n=A._retryCache=new Uv),n;default:throw Error(i(435,A.tag))}}function Dc(A,n){var a=HO(A);n.forEach(function(o){if(!a.has(o)){a.add(o);var d=VO.bind(null,A,o);o.then(d,d)}})}function yt(A,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var d=a[o],p=A,y=n,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Lr(S.type)){vA=S.stateNode,Ct=!1;break e}break;case 5:vA=S.stateNode,Ct=!1;break e;case 3:case 4:vA=S.stateNode.containerInfo,Ct=!0;break e}S=S.return}if(vA===null)throw Error(i(160));Nv(p,y,d),vA=null,Ct=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Hv(n,A),n=n.sibling}var un=null;function Hv(A,n){var a=A.alternate,o=A.flags;switch(A.tag){case 0:case 11:case 14:case 15:yt(n,A),Et(A),o&4&&(Nr(3,A,A.return),cl(3,A),Nr(5,A,A.return));break;case 1:yt(n,A),Et(A),o&512&&(jA||a===null||bn(a,a.return)),o&64&&Xn&&(A=A.updateQueue,A!==null&&(o=A.callbacks,o!==null&&(a=A.shared.hiddenCallbacks,A.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var d=un;if(yt(n,A),Et(A),o&512&&(jA||a===null||bn(a,a.return)),o&4){var p=a!==null?a.memoizedState:null;if(o=A.memoizedState,a===null)if(o===null)if(A.stateNode===null){e:{o=A.type,a=A.memoizedProps,d=d.ownerDocument||d;A:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Ls]||p[NA]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),nt(p,o,a),p[NA]=A,qA(p),o=p;break e;case"link":var y=Hb("link","href",d).get(o+(a.href||""));if(y){for(var S=0;S<y.length;S++)if(p=y[S],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(S,1);break A}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;case"meta":if(y=Hb("meta","content",d).get(o+(a.content||""))){for(S=0;S<y.length;S++)if(p=y[S],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(S,1);break A}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;default:throw Error(i(468,o))}p[NA]=A,qA(p),o=p}A.stateNode=o}else Mb(d,A.type,A.stateNode);else A.stateNode=_b(d,o,A.memoizedProps);else p!==o?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,o===null?Mb(d,A.type,A.stateNode):_b(d,o,A.memoizedProps)):o===null&&A.stateNode!==null&&og(A,A.memoizedProps,a.memoizedProps)}break;case 27:yt(n,A),Et(A),o&512&&(jA||a===null||bn(a,a.return)),a!==null&&o&4&&og(A,A.memoizedProps,a.memoizedProps);break;case 5:if(yt(n,A),Et(A),o&512&&(jA||a===null||bn(a,a.return)),A.flags&32){d=A.stateNode;try{$i(d,"")}catch(Ce){sA(A,A.return,Ce)}}o&4&&A.stateNode!=null&&(d=A.memoizedProps,og(A,d,a!==null?a.memoizedProps:d)),o&1024&&(fg=!0);break;case 6:if(yt(n,A),Et(A),o&4){if(A.stateNode===null)throw Error(i(162));o=A.memoizedProps,a=A.stateNode;try{a.nodeValue=o}catch(Ce){sA(A,A.return,Ce)}}break;case 3:if(Au=null,d=un,un=$c(n.containerInfo),yt(n,A),un=d,Et(A),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Ta(n.containerInfo)}catch(Ce){sA(A,A.return,Ce)}fg&&(fg=!1,Mv(A));break;case 4:o=un,un=$c(A.stateNode.containerInfo),yt(n,A),Et(A),un=o;break;case 12:yt(n,A),Et(A);break;case 31:yt(n,A),Et(A),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Dc(A,o)));break;case 13:yt(n,A),Et(A),A.child.flags&8192&&A.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(jc=XA()),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Dc(A,o)));break;case 22:d=A.memoizedState!==null;var H=a!==null&&a.memoizedState!==null,X=Xn,ne=jA;if(Xn=X||d,jA=ne||H,yt(n,A),jA=ne,Xn=X,Et(A),o&8192)e:for(n=A.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(a===null||H||Xn||jA||wi(A)),a=null,n=A;;){if(n.tag===5||n.tag===26){if(a===null){H=a=n;try{if(p=H.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=H.stateNode;var ae=H.memoizedProps.style,Z=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;S.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Ce){sA(H,H.return,Ce)}}}else if(n.tag===6){if(a===null){H=n;try{H.stateNode.nodeValue=d?"":H.memoizedProps}catch(Ce){sA(H,H.return,Ce)}}}else if(n.tag===18){if(a===null){H=n;try{var ee=H.stateNode;d?bb(ee,!0):bb(H.stateNode,!1)}catch(Ce){sA(H,H.return,Ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===A)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===A)break e;for(;n.sibling===null;){if(n.return===null||n.return===A)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=A.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Dc(A,a))));break;case 19:yt(n,A),Et(A),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Dc(A,o)));break;case 30:break;case 21:break;default:yt(n,A),Et(A)}}function Et(A){var n=A.flags;if(n&2){try{for(var a,o=A.return;o!==null;){if(Sv(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var d=a.stateNode,p=cg(A);Lc(A,p,d);break;case 5:var y=a.stateNode;a.flags&32&&($i(y,""),a.flags&=-33);var S=cg(A);Lc(A,S,y);break;case 3:case 4:var H=a.stateNode.containerInfo,X=cg(A);ug(A,X,H);break;default:throw Error(i(161))}}catch(ne){sA(A,A.return,ne)}A.flags&=-3}n&4096&&(A.flags&=-4097)}function Mv(A){if(A.subtreeFlags&1024)for(A=A.child;A!==null;){var n=A;Mv(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),A=A.sibling}}function Jn(A,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Fv(A,n.alternate,n),n=n.sibling}function wi(A){for(A=A.child;A!==null;){var n=A;switch(n.tag){case 0:case 11:case 14:case 15:Nr(4,n,n.return),wi(n);break;case 1:bn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&bv(n,n.return,a),wi(n);break;case 27:Cl(n.stateNode);case 26:case 5:bn(n,n.return),wi(n);break;case 22:n.memoizedState===null&&wi(n);break;case 30:wi(n);break;default:wi(n)}A=A.sibling}}function Zn(A,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=A,p=n,y=p.flags;switch(p.tag){case 0:case 11:case 15:Zn(d,p,a),cl(4,p);break;case 1:if(Zn(d,p,a),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(X){sA(o,o.return,X)}if(o=p,d=o.updateQueue,d!==null){var S=o.stateNode;try{var H=d.shared.hiddenCallbacks;if(H!==null)for(d.shared.hiddenCallbacks=null,d=0;d<H.length;d++)fE(H[d],S)}catch(X){sA(o,o.return,X)}}a&&y&64&&vv(p),ul(p,p.return);break;case 27:Qv(p);case 26:case 5:Zn(d,p,a),a&&o===null&&y&4&&xv(p),ul(p,p.return);break;case 12:Zn(d,p,a);break;case 31:Zn(d,p,a),a&&y&4&&Iv(d,p);break;case 13:Zn(d,p,a),a&&y&4&&_v(d,p);break;case 22:p.memoizedState===null&&Zn(d,p,a),ul(p,p.return);break;case 30:break;default:Zn(d,p,a)}n=n.sibling}}function dg(A,n){var a=null;A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(a=A.memoizedState.cachePool.pool),A=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(A=n.memoizedState.cachePool.pool),A!==a&&(A!=null&&A.refCount++,a!=null&&Zs(a))}function hg(A,n){A=null,n.alternate!==null&&(A=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==A&&(n.refCount++,A!=null&&Zs(A))}function fn(A,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ov(A,n,a,o),n=n.sibling}function Ov(A,n,a,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:fn(A,n,a,o),d&2048&&cl(9,n);break;case 1:fn(A,n,a,o);break;case 3:fn(A,n,a,o),d&2048&&(A=null,n.alternate!==null&&(A=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==A&&(n.refCount++,A!=null&&Zs(A)));break;case 12:if(d&2048){fn(A,n,a,o),A=n.stateNode;try{var p=n.memoizedProps,y=p.id,S=p.onPostCommit;typeof S=="function"&&S(y,n.alternate===null?"mount":"update",A.passiveEffectDuration,-0)}catch(H){sA(n,n.return,H)}}else fn(A,n,a,o);break;case 31:fn(A,n,a,o);break;case 13:fn(A,n,a,o);break;case 23:break;case 22:p=n.stateNode,y=n.alternate,n.memoizedState!==null?p._visibility&2?fn(A,n,a,o):fl(A,n):p._visibility&2?fn(A,n,a,o):(p._visibility|=2,wa(A,n,a,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&dg(y,n);break;case 24:fn(A,n,a,o),d&2048&&hg(n.alternate,n);break;default:fn(A,n,a,o)}}function wa(A,n,a,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=A,y=n,S=a,H=o,X=y.flags;switch(y.tag){case 0:case 11:case 15:wa(p,y,S,H,d),cl(8,y);break;case 23:break;case 22:var ne=y.stateNode;y.memoizedState!==null?ne._visibility&2?wa(p,y,S,H,d):fl(p,y):(ne._visibility|=2,wa(p,y,S,H,d)),d&&X&2048&&dg(y.alternate,y);break;case 24:wa(p,y,S,H,d),d&&X&2048&&hg(y.alternate,y);break;default:wa(p,y,S,H,d)}n=n.sibling}}function fl(A,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=A,o=n,d=o.flags;switch(o.tag){case 22:fl(a,o),d&2048&&dg(o.alternate,o);break;case 24:fl(a,o),d&2048&&hg(o.alternate,o);break;default:fl(a,o)}n=n.sibling}}var dl=8192;function Ca(A,n,a){if(A.subtreeFlags&dl)for(A=A.child;A!==null;)Rv(A,n,a),A=A.sibling}function Rv(A,n,a){switch(A.tag){case 26:Ca(A,n,a),A.flags&dl&&A.memoizedState!==null&&CR(a,un,A.memoizedState,A.memoizedProps);break;case 5:Ca(A,n,a);break;case 3:case 4:var o=un;un=$c(A.stateNode.containerInfo),Ca(A,n,a),un=o;break;case 22:A.memoizedState===null&&(o=A.alternate,o!==null&&o.memoizedState!==null?(o=dl,dl=16777216,Ca(A,n,a),dl=o):Ca(A,n,a));break;default:Ca(A,n,a)}}function Lv(A){var n=A.alternate;if(n!==null&&(A=n.child,A!==null)){n.child=null;do n=A.sibling,A.sibling=null,A=n;while(A!==null)}}function hl(A){var n=A.deletions;if((A.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];JA=o,kv(o,A)}Lv(A)}if(A.subtreeFlags&10256)for(A=A.child;A!==null;)Dv(A),A=A.sibling}function Dv(A){switch(A.tag){case 0:case 11:case 15:hl(A),A.flags&2048&&Nr(9,A,A.return);break;case 3:hl(A);break;case 12:hl(A);break;case 22:var n=A.stateNode;A.memoizedState!==null&&n._visibility&2&&(A.return===null||A.return.tag!==13)?(n._visibility&=-3,kc(A)):hl(A);break;default:hl(A)}}function kc(A){var n=A.deletions;if((A.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];JA=o,kv(o,A)}Lv(A)}for(A=A.child;A!==null;){switch(n=A,n.tag){case 0:case 11:case 15:Nr(8,n,n.return),kc(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,kc(n));break;default:kc(n)}A=A.sibling}}function kv(A,n){for(;JA!==null;){var a=JA;switch(a.tag){case 0:case 11:case 15:Nr(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Zs(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,JA=o;else e:for(a=A;JA!==null;){o=JA;var d=o.sibling,p=o.return;if(Tv(o),o===a){JA=null;break e}if(d!==null){d.return=p,JA=d;break e}JA=p}}}var MO={getCacheForType:function(A){var n=At(LA),a=n.data.get(A);return a===void 0&&(a=A(),n.data.set(A,a)),a},cacheSignal:function(){return At(LA).controller.signal}},OO=typeof WeakMap=="function"?WeakMap:Map,rA=0,dA=null,Ve=null,Ye=0,aA=0,Ot=null,Ir=!1,ya=!1,gg=!1,Wn=0,SA=0,_r=0,Ci=0,pg=0,Rt=0,Ea=0,gl=null,vt=null,mg=!1,jc=0,jv=0,Kc=1/0,Vc=null,Hr=null,zA=0,Mr=null,va=null,$n=0,Bg=0,wg=null,Kv=null,pl=0,Cg=null;function Lt(){return(rA&2)!==0&&Ye!==0?Ye&-Ye:L.T!==null?Sg():ni()}function Vv(){if(Rt===0)if((Ye&536870912)===0||Je){var A=ut;ut<<=1,(ut&3932160)===0&&(ut=262144),Rt=A}else Rt=536870912;return A=Ht.current,A!==null&&(A.flags|=32),Rt}function bt(A,n,a){(A===dA&&(aA===2||aA===9)||A.cancelPendingCommit!==null)&&(ba(A,0),Or(A,Ye,Rt,!1)),Nt(A,a),((rA&2)===0||A!==dA)&&(A===dA&&((rA&2)===0&&(Ci|=a),SA===4&&Or(A,Ye,Rt,!1)),xn(A))}function Gv(A,n,a){if((rA&6)!==0)throw Error(i(327));var o=!a&&(n&127)===0&&(n&A.expiredLanes)===0||GA(A,n),d=o?DO(A,n):Eg(A,n,!0),p=o;do{if(d===0){ya&&!o&&Or(A,n,0,!1);break}else{if(a=A.current.alternate,p&&!RO(a)){d=Eg(A,n,!1),p=!1;continue}if(d===2){if(p=n,A.errorRecoveryDisabledLanes&p)var y=0;else y=A.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;e:{var S=A;d=gl;var H=S.current.memoizedState.isDehydrated;if(H&&(ba(S,y).flags|=256),y=Eg(S,y,!1),y!==2){if(gg&&!H){S.errorRecoveryDisabledLanes|=p,Ci|=p,d=4;break e}p=vt,vt=d,p!==null&&(vt===null?vt=p:vt.push.apply(vt,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){ba(A,0),Or(A,n,0,!0);break}e:{switch(o=A,p=d,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Or(o,n,Rt,!Ir);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(d=jc+300-XA(),10<d)){if(Or(o,n,Rt,!Ir),OA(o,0,!0)!==0)break e;$n=n,o.timeoutHandle=yb(zv.bind(null,o,a,vt,Vc,mg,n,Rt,Ci,Ea,Ir,p,"Throttled",-0,0),d);break e}zv(o,a,vt,Vc,mg,n,Rt,Ci,Ea,Ir,p,null,-0,0)}}break}while(!0);xn(A)}function zv(A,n,a,o,d,p,y,S,H,X,ne,ae,Z,ee){if(A.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},Rv(n,p,ae);var Ce=(p&62914560)===p?jc-XA():(p&4194048)===p?jv-XA():0;if(Ce=yR(ae,Ce),Ce!==null){$n=p,A.cancelPendingCommit=Ce($v.bind(null,A,n,p,a,o,d,y,S,H,ne,ae,null,Z,ee)),Or(A,p,y,!X);return}}$v(A,n,p,a,o,d,y,S,H)}function RO(A){for(var n=A;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var d=a[o],p=d.getSnapshot;d=d.value;try{if(!It(p(),d))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===A)break;for(;n.sibling===null;){if(n.return===null||n.return===A)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Or(A,n,a,o){n&=~pg,n&=~Ci,A.suspendedLanes|=n,A.pingedLanes&=~n,o&&(A.warmLanes|=n),o=A.expirationTimes;for(var d=n;0<d;){var p=31-De(d),y=1<<p;o[p]=-1,d&=~y}a!==0&&Rs(A,a,n)}function Gc(){return(rA&6)===0?(ml(0),!1):!0}function yg(){if(Ve!==null){if(aA===0)var A=Ve.return;else A=Ve,Kn=ui=null,Rh(A),ha=null,$s=0,A=Ve;for(;A!==null;)Ev(A.alternate,A),A=A.return;Ve=null}}function ba(A,n){var a=A.timeoutHandle;a!==-1&&(A.timeoutHandle=-1,nR(a)),a=A.cancelPendingCommit,a!==null&&(A.cancelPendingCommit=null,a()),$n=0,yg(),dA=A,Ve=a=kn(A.current,null),Ye=n,aA=0,Ot=null,Ir=!1,ya=GA(A,n),gg=!1,Ea=Rt=pg=Ci=_r=SA=0,vt=gl=null,mg=!1,(n&8)!==0&&(n|=n&32);var o=A.entangledLanes;if(o!==0)for(A=A.entanglements,o&=n;0<o;){var d=31-De(o),p=1<<d;n|=A[d],o&=~p}return Wn=n,uc(),a}function Pv(A,n){Ie=null,L.H=sl,n===da||n===wc?(n=lE(),aA=3):n===xh?(n=lE(),aA=4):aA=n===$h?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Ot=n,Ve===null&&(SA=1,_c(A,Jt(n,A.current)))}function Yv(){var A=Ht.current;return A===null?!0:(Ye&4194048)===Ye?en===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?A===en:!1}function Xv(){var A=L.H;return L.H=sl,A===null?sl:A}function qv(){var A=L.A;return L.A=MO,A}function zc(){SA=4,Ir||(Ye&4194048)!==Ye&&Ht.current!==null||(ya=!0),(_r&134217727)===0&&(Ci&134217727)===0||dA===null||Or(dA,Ye,Rt,!1)}function Eg(A,n,a){var o=rA;rA|=2;var d=Xv(),p=qv();(dA!==A||Ye!==n)&&(Vc=null,ba(A,n)),n=!1;var y=SA;e:do try{if(aA!==0&&Ve!==null){var S=Ve,H=Ot;switch(aA){case 8:yg(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(n=!0);var X=aA;if(aA=0,Ot=null,xa(A,S,H,X),a&&ya){y=0;break e}break;default:X=aA,aA=0,Ot=null,xa(A,S,H,X)}}LO(),y=SA;break}catch(ne){Pv(A,ne)}while(!0);return n&&A.shellSuspendCounter++,Kn=ui=null,rA=o,L.H=d,L.A=p,Ve===null&&(dA=null,Ye=0,uc()),y}function LO(){for(;Ve!==null;)Jv(Ve)}function DO(A,n){var a=rA;rA|=2;var o=Xv(),d=qv();dA!==A||Ye!==n?(Vc=null,Kc=XA()+500,ba(A,n)):ya=GA(A,n);e:do try{if(aA!==0&&Ve!==null){n=Ve;var p=Ot;A:switch(aA){case 1:aA=0,Ot=null,xa(A,n,p,1);break;case 2:case 9:if(aE(p)){aA=0,Ot=null,Zv(n);break}n=function(){aA!==2&&aA!==9||dA!==A||(aA=7),xn(A)},p.then(n,n);break e;case 3:aA=7;break e;case 4:aA=5;break e;case 7:aE(p)?(aA=0,Ot=null,Zv(n)):(aA=0,Ot=null,xa(A,n,p,7));break;case 5:var y=null;switch(Ve.tag){case 26:y=Ve.memoizedState;case 5:case 27:var S=Ve;if(y?Ob(y):S.stateNode.complete){aA=0,Ot=null;var H=S.sibling;if(H!==null)Ve=H;else{var X=S.return;X!==null?(Ve=X,Pc(X)):Ve=null}break A}}aA=0,Ot=null,xa(A,n,p,5);break;case 6:aA=0,Ot=null,xa(A,n,p,6);break;case 8:yg(),SA=6;break e;default:throw Error(i(462))}}kO();break}catch(ne){Pv(A,ne)}while(!0);return Kn=ui=null,L.H=o,L.A=d,rA=a,Ve!==null?0:(dA=null,Ye=0,uc(),SA)}function kO(){for(;Ve!==null&&!Ai();)Jv(Ve)}function Jv(A){var n=Cv(A.alternate,A,Wn);A.memoizedProps=A.pendingProps,n===null?Pc(A):Ve=n}function Zv(A){var n=A,a=n.alternate;switch(n.tag){case 15:case 0:n=hv(a,n,n.pendingProps,n.type,void 0,Ye);break;case 11:n=hv(a,n,n.pendingProps,n.type.render,n.ref,Ye);break;case 5:Rh(n);default:Ev(a,n),n=Ve=qy(n,Wn),n=Cv(a,n,Wn)}A.memoizedProps=A.pendingProps,n===null?Pc(A):Ve=n}function xa(A,n,a,o){Kn=ui=null,Rh(n),ha=null,$s=0;var d=n.return;try{if(UO(A,d,n,a,Ye)){SA=1,_c(A,Jt(a,A.current)),Ve=null;return}}catch(p){if(d!==null)throw Ve=d,p;SA=1,_c(A,Jt(a,A.current)),Ve=null;return}n.flags&32768?(Je||o===1?A=!0:ya||(Ye&536870912)!==0?A=!1:(Ir=A=!0,(o===2||o===9||o===3||o===6)&&(o=Ht.current,o!==null&&o.tag===13&&(o.flags|=16384))),Wv(n,A)):Pc(n)}function Pc(A){var n=A;do{if((n.flags&32768)!==0){Wv(n,Ir);return}A=n.return;var a=NO(n.alternate,n,Wn);if(a!==null){Ve=a;return}if(n=n.sibling,n!==null){Ve=n;return}Ve=n=A}while(n!==null);SA===0&&(SA=5)}function Wv(A,n){do{var a=IO(A.alternate,A);if(a!==null){a.flags&=32767,Ve=a;return}if(a=A.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(A=A.sibling,A!==null)){Ve=A;return}Ve=A=a}while(A!==null);SA=6,Ve=null}function $v(A,n,a,o,d,p,y,S,H){A.cancelPendingCommit=null;do Yc();while(zA!==0);if((rA&6)!==0)throw Error(i(327));if(n!==null){if(n===A.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=ch,Cr(A,a,p,y,S,H),A===dA&&(Ve=dA=null,Ye=0),va=n,Mr=A,$n=a,Bg=p,wg=d,Kv=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(A.callbackNode=null,A.callbackPriority=0,GO(W,function(){return rb(),null})):(A.callbackNode=null,A.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=L.T,L.T=null,d=J.p,J.p=2,y=rA,rA|=4;try{_O(A,n)}finally{rA=y,J.p=d,L.T=o}}zA=1,eb(),Ab(),tb()}}function eb(){if(zA===1){zA=0;var A=Mr,n=va,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=L.T,L.T=null;var o=J.p;J.p=2;var d=rA;rA|=4;try{Hv(n,A);var p=Hg,y=ky(A.containerInfo),S=p.focusedElem,H=p.selectionRange;if(y!==S&&S&&S.ownerDocument&&Dy(S.ownerDocument.documentElement,S)){if(H!==null&&ih(S)){var X=H.start,ne=H.end;if(ne===void 0&&(ne=X),"selectionStart"in S)S.selectionStart=X,S.selectionEnd=Math.min(ne,S.value.length);else{var ae=S.ownerDocument||document,Z=ae&&ae.defaultView||window;if(Z.getSelection){var ee=Z.getSelection(),Ce=S.textContent.length,xe=Math.min(H.start,Ce),uA=H.end===void 0?xe:Math.min(H.end,Ce);!ee.extend&&xe>uA&&(y=uA,uA=xe,xe=y);var K=Ly(S,xe),D=Ly(S,uA);if(K&&D&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==D.node||ee.focusOffset!==D.offset)){var Y=ae.createRange();Y.setStart(K.node,K.offset),ee.removeAllRanges(),xe>uA?(ee.addRange(Y),ee.extend(D.node,D.offset)):(Y.setEnd(D.node,D.offset),ee.addRange(Y))}}}}for(ae=[],ee=S;ee=ee.parentNode;)ee.nodeType===1&&ae.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<ae.length;S++){var ie=ae[S];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}iu=!!_g,Hg=_g=null}finally{rA=d,J.p=o,L.T=a}}A.current=n,zA=2}}function Ab(){if(zA===2){zA=0;var A=Mr,n=va,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=L.T,L.T=null;var o=J.p;J.p=2;var d=rA;rA|=4;try{Fv(A,n.alternate,n)}finally{rA=d,J.p=o,L.T=a}}zA=3}}function tb(){if(zA===4||zA===3){zA=0,wr();var A=Mr,n=va,a=$n,o=Kv;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?zA=5:(zA=0,va=Mr=null,nb(A,A.pendingLanes));var d=A.pendingLanes;if(d===0&&(Hr=null),lt(a),n=n.stateNode,Pe&&typeof Pe.onCommitFiberRoot=="function")try{Pe.onCommitFiberRoot($e,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=L.T,d=J.p,J.p=2,L.T=null;try{for(var p=A.onRecoverableError,y=0;y<o.length;y++){var S=o[y];p(S.value,{componentStack:S.stack})}}finally{L.T=n,J.p=d}}($n&3)!==0&&Yc(),xn(A),d=A.pendingLanes,(a&261930)!==0&&(d&42)!==0?A===Cg?pl++:(pl=0,Cg=A):pl=0,ml(0)}}function nb(A,n){(A.pooledCacheLanes&=n)===0&&(n=A.pooledCache,n!=null&&(A.pooledCache=null,Zs(n)))}function Yc(){return eb(),Ab(),tb(),rb()}function rb(){if(zA!==5)return!1;var A=Mr,n=Bg;Bg=0;var a=lt($n),o=L.T,d=J.p;try{J.p=32>a?32:a,L.T=null,a=wg,wg=null;var p=Mr,y=$n;if(zA=0,va=Mr=null,$n=0,(rA&6)!==0)throw Error(i(331));var S=rA;if(rA|=4,Dv(p.current),Ov(p,p.current,y,a),rA=S,ml(0),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot($e,p)}catch{}return!0}finally{J.p=d,L.T=o,nb(A,n)}}function ib(A,n,a){n=Jt(a,n),n=Wh(A.stateNode,n,2),A=Ur(A,n,2),A!==null&&(Nt(A,2),xn(A))}function sA(A,n,a){if(A.tag===3)ib(A,A,a);else for(;n!==null;){if(n.tag===3){ib(n,A,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Hr===null||!Hr.has(o))){A=Jt(a,A),a=av(2),o=Ur(n,a,2),o!==null&&(sv(a,o,n,A),Nt(o,2),xn(o));break}}n=n.return}}function vg(A,n,a){var o=A.pingCache;if(o===null){o=A.pingCache=new OO;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(a)||(gg=!0,d.add(a),A=jO.bind(null,A,n,a),n.then(A,A))}function jO(A,n,a){var o=A.pingCache;o!==null&&o.delete(n),A.pingedLanes|=A.suspendedLanes&a,A.warmLanes&=~a,dA===A&&(Ye&a)===a&&(SA===4||SA===3&&(Ye&62914560)===Ye&&300>XA()-jc?(rA&2)===0&&ba(A,0):pg|=a,Ea===Ye&&(Ea=0)),xn(A)}function ab(A,n){n===0&&(n=Tt()),A=li(A,n),A!==null&&(Nt(A,n),xn(A))}function KO(A){var n=A.memoizedState,a=0;n!==null&&(a=n.retryLane),ab(A,a)}function VO(A,n){var a=0;switch(A.tag){case 31:case 13:var o=A.stateNode,d=A.memoizedState;d!==null&&(a=d.retryLane);break;case 19:o=A.stateNode;break;case 22:o=A.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(n),ab(A,a)}function GO(A,n){return ct(A,n)}var Xc=null,Sa=null,bg=!1,qc=!1,xg=!1,Rr=0;function xn(A){A!==Sa&&A.next===null&&(Sa===null?Xc=Sa=A:Sa=Sa.next=A),qc=!0,bg||(bg=!0,PO())}function ml(A,n){if(!xg&&qc){xg=!0;do for(var a=!1,o=Xc;o!==null;){if(A!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var y=o.suspendedLanes,S=o.pingedLanes;p=(1<<31-De(42|A)+1)-1,p&=d&~(y&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,cb(o,p))}else p=Ye,p=OA(o,o===dA?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||GA(o,p)||(a=!0,cb(o,p));o=o.next}while(a);xg=!1}}function zO(){sb()}function sb(){qc=bg=!1;var A=0;Rr!==0&&tR()&&(A=Rr);for(var n=XA(),a=null,o=Xc;o!==null;){var d=o.next,p=lb(o,n);p===0?(o.next=null,a===null?Xc=d:a.next=d,d===null&&(Sa=a)):(a=o,(A!==0||(p&3)!==0)&&(qc=!0)),o=d}zA!==0&&zA!==5||ml(A),Rr!==0&&(Rr=0)}function lb(A,n){for(var a=A.suspendedLanes,o=A.pingedLanes,d=A.expirationTimes,p=A.pendingLanes&-62914561;0<p;){var y=31-De(p),S=1<<y,H=d[y];H===-1?((S&a)===0||(S&o)!==0)&&(d[y]=ke(S,n)):H<=n&&(A.expiredLanes|=S),p&=~S}if(n=dA,a=Ye,a=OA(A,A===n?a:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),o=A.callbackNode,a===0||A===n&&(aA===2||aA===9)||A.cancelPendingCommit!==null)return o!==null&&o!==null&&ln(o),A.callbackNode=null,A.callbackPriority=0;if((a&3)===0||GA(A,a)){if(n=a&-a,n===A.callbackPriority)return n;switch(o!==null&&ln(o),lt(a)){case 2:case 8:a=j;break;case 32:a=W;break;case 268435456:a=pe;break;default:a=W}return o=ob.bind(null,A),a=ct(a,o),A.callbackPriority=n,A.callbackNode=a,n}return o!==null&&o!==null&&ln(o),A.callbackPriority=2,A.callbackNode=null,2}function ob(A,n){if(zA!==0&&zA!==5)return A.callbackNode=null,A.callbackPriority=0,null;var a=A.callbackNode;if(Yc()&&A.callbackNode!==a)return null;var o=Ye;return o=OA(A,A===dA?o:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),o===0?null:(Gv(A,o,n),lb(A,XA()),A.callbackNode!=null&&A.callbackNode===a?ob.bind(null,A):null)}function cb(A,n){if(Yc())return null;Gv(A,n,!0)}function PO(){rR(function(){(rA&6)!==0?ct(re,zO):sb()})}function Sg(){if(Rr===0){var A=ua;A===0&&(A=Bt,Bt<<=1,(Bt&261888)===0&&(Bt=256)),Rr=A}return Rr}function ub(A){return A==null||typeof A=="symbol"||typeof A=="boolean"?null:typeof A=="function"?A:nc(""+A)}function fb(A,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,A.id&&a.setAttribute("form",A.id),n.parentNode.insertBefore(a,n),A=new FormData(A),a.parentNode.removeChild(a),A}function YO(A,n,a,o,d){if(n==="submit"&&a&&a.stateNode===d){var p=ub((d[Ke]||null).action),y=o.submitter;y&&(n=(n=y[Ke]||null)?ub(n.formAction):y.getAttribute("formAction"),n!==null&&(p=n,y=null));var S=new sc("action","action",null,o,d);A.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Rr!==0){var H=y?fb(d,y):new FormData(d);Ph(a,{pending:!0,data:H,method:d.method,action:p},null,H)}}else typeof p=="function"&&(S.preventDefault(),H=y?fb(d,y):new FormData(d),Ph(a,{pending:!0,data:H,method:d.method,action:p},p,H))},currentTarget:d}]})}}for(var Qg=0;Qg<oh.length;Qg++){var Ug=oh[Qg],XO=Ug.toLowerCase(),qO=Ug[0].toUpperCase()+Ug.slice(1);cn(XO,"on"+qO)}cn(Vy,"onAnimationEnd"),cn(Gy,"onAnimationIteration"),cn(zy,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(uO,"onTransitionRun"),cn(fO,"onTransitionStart"),cn(dO,"onTransitionCancel"),cn(Py,"onTransitionEnd"),Zi("onMouseEnter",["mouseout","mouseover"]),Zi("onMouseLeave",["mouseout","mouseover"]),Zi("onPointerEnter",["pointerout","pointerover"]),Zi("onPointerLeave",["pointerout","pointerover"]),ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ri("onBeforeInput",["compositionend","keypress","textInput","paste"]),ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),JO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function db(A,n){n=(n&4)!==0;for(var a=0;a<A.length;a++){var o=A[a],d=o.event;o=o.listeners;e:{var p=void 0;if(n)for(var y=o.length-1;0<=y;y--){var S=o[y],H=S.instance,X=S.currentTarget;if(S=S.listener,H!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=X;try{p(d)}catch(ne){cc(ne)}d.currentTarget=null,p=H}else for(y=0;y<o.length;y++){if(S=o[y],H=S.instance,X=S.currentTarget,S=S.listener,H!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=X;try{p(d)}catch(ne){cc(ne)}d.currentTarget=null,p=H}}}}function Ge(A,n){var a=n[On];a===void 0&&(a=n[On]=new Set);var o=A+"__bubble";a.has(o)||(hb(n,A,2,!1),a.add(o))}function Fg(A,n,a){var o=0;n&&(o|=4),hb(a,A,o,n)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Tg(A){if(!A[Jc]){A[Jc]=!0,sy.forEach(function(a){a!=="selectionchange"&&(JO.has(a)||Fg(a,!1,A),Fg(a,!0,A))});var n=A.nodeType===9?A:A.ownerDocument;n===null||n[Jc]||(n[Jc]=!0,Fg("selectionchange",!1,n))}}function hb(A,n,a,o){switch(Vb(n)){case 2:var d=bR;break;case 8:d=xR;break;default:d=zg}a=d.bind(null,n,a,A),d=void 0,!Jd||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?A.addEventListener(n,a,{capture:!0,passive:d}):A.addEventListener(n,a,!0):d!==void 0?A.addEventListener(n,a,{passive:d}):A.addEventListener(n,a,!1)}function Ng(A,n,a,o,d){var p=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var S=o.stateNode.containerInfo;if(S===d)break;if(y===4)for(y=o.return;y!==null;){var H=y.tag;if((H===3||H===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;S!==null;){if(y=Xi(S),y===null)return;if(H=y.tag,H===5||H===6||H===26||H===27){o=p=y;continue e}S=S.parentNode}}o=o.return}wy(function(){var X=p,ne=Xd(a),ae=[];e:{var Z=Yy.get(A);if(Z!==void 0){var ee=sc,Ce=A;switch(A){case"keypress":if(ic(a)===0)break e;case"keydown":case"keyup":ee=VM;break;case"focusin":Ce="focus",ee=eh;break;case"focusout":Ce="blur",ee=eh;break;case"beforeblur":case"afterblur":ee=eh;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=Ey;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=NM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=PM;break;case Vy:case Gy:case zy:ee=HM;break;case Py:ee=XM;break;case"scroll":case"scrollend":ee=FM;break;case"wheel":ee=JM;break;case"copy":case"cut":case"paste":ee=OM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=by;break;case"toggle":case"beforetoggle":ee=WM}var xe=(n&4)!==0,uA=!xe&&(A==="scroll"||A==="scrollend"),K=xe?Z!==null?Z+"Capture":null:Z;xe=[];for(var D=X,Y;D!==null;){var ie=D;if(Y=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||Y===null||K===null||(ie=ks(D,K),ie!=null&&xe.push(wl(D,ie,Y))),uA)break;D=D.return}0<xe.length&&(Z=new ee(Z,Ce,null,a,ne),ae.push({event:Z,listeners:xe}))}}if((n&7)===0){e:{if(Z=A==="mouseover"||A==="pointerover",ee=A==="mouseout"||A==="pointerout",Z&&a!==Yd&&(Ce=a.relatedTarget||a.fromElement)&&(Xi(Ce)||Ce[nA]))break e;if((ee||Z)&&(Z=ne.window===ne?ne:(Z=ne.ownerDocument)?Z.defaultView||Z.parentWindow:window,ee?(Ce=a.relatedTarget||a.toElement,ee=X,Ce=Ce?Xi(Ce):null,Ce!==null&&(uA=l(Ce),xe=Ce.tag,Ce!==uA||xe!==5&&xe!==27&&xe!==6)&&(Ce=null)):(ee=null,Ce=X),ee!==Ce)){if(xe=Ey,ie="onMouseLeave",K="onMouseEnter",D="mouse",(A==="pointerout"||A==="pointerover")&&(xe=by,ie="onPointerLeave",K="onPointerEnter",D="pointer"),uA=ee==null?Z:Ds(ee),Y=Ce==null?Z:Ds(Ce),Z=new xe(ie,D+"leave",ee,a,ne),Z.target=uA,Z.relatedTarget=Y,ie=null,Xi(ne)===X&&(xe=new xe(K,D+"enter",Ce,a,ne),xe.target=Y,xe.relatedTarget=uA,ie=xe),uA=ie,ee&&Ce)A:{for(xe=ZO,K=ee,D=Ce,Y=0,ie=K;ie;ie=xe(ie))Y++;ie=0;for(var be=D;be;be=xe(be))ie++;for(;0<Y-ie;)K=xe(K),Y--;for(;0<ie-Y;)D=xe(D),ie--;for(;Y--;){if(K===D||D!==null&&K===D.alternate){xe=K;break A}K=xe(K),D=xe(D)}xe=null}else xe=null;ee!==null&&gb(ae,Z,ee,xe,!1),Ce!==null&&uA!==null&&gb(ae,uA,Ce,xe,!0)}}e:{if(Z=X?Ds(X):window,ee=Z.nodeName&&Z.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Z.type==="file")var eA=Iy;else if(Ty(Z))if(_y)eA=lO;else{eA=aO;var ve=iO}else ee=Z.nodeName,!ee||ee.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?X&&Pd(X.elementType)&&(eA=Iy):eA=sO;if(eA&&(eA=eA(A,X))){Ny(ae,eA,a,ne);break e}ve&&ve(A,Z,X),A==="focusout"&&X&&Z.type==="number"&&X.memoizedProps.value!=null&&zd(Z,"number",Z.value)}switch(ve=X?Ds(X):window,A){case"focusin":(Ty(ve)||ve.contentEditable==="true")&&(na=ve,ah=X,Xs=null);break;case"focusout":Xs=ah=na=null;break;case"mousedown":sh=!0;break;case"contextmenu":case"mouseup":case"dragend":sh=!1,jy(ae,a,ne);break;case"selectionchange":if(cO)break;case"keydown":case"keyup":jy(ae,a,ne)}var Me;if(th)e:{switch(A){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else ta?Uy(A,a)&&(Xe="onCompositionEnd"):A==="keydown"&&a.keyCode===229&&(Xe="onCompositionStart");Xe&&(xy&&a.locale!=="ko"&&(ta||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&ta&&(Me=Cy()):(yr=ne,Zd="value"in yr?yr.value:yr.textContent,ta=!0)),ve=Zc(X,Xe),0<ve.length&&(Xe=new vy(Xe,A,null,a,ne),ae.push({event:Xe,listeners:ve}),Me?Xe.data=Me:(Me=Fy(a),Me!==null&&(Xe.data=Me)))),(Me=eO?AO(A,a):tO(A,a))&&(Xe=Zc(X,"onBeforeInput"),0<Xe.length&&(ve=new vy("onBeforeInput","beforeinput",null,a,ne),ae.push({event:ve,listeners:Xe}),ve.data=Me)),YO(ae,A,X,a,ne)}db(ae,n)})}function wl(A,n,a){return{instance:A,listener:n,currentTarget:a}}function Zc(A,n){for(var a=n+"Capture",o=[];A!==null;){var d=A,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=ks(A,a),d!=null&&o.unshift(wl(A,d,p)),d=ks(A,n),d!=null&&o.push(wl(A,d,p))),A.tag===3)return o;A=A.return}return[]}function ZO(A){if(A===null)return null;do A=A.return;while(A&&A.tag!==5&&A.tag!==27);return A||null}function gb(A,n,a,o,d){for(var p=n._reactName,y=[];a!==null&&a!==o;){var S=a,H=S.alternate,X=S.stateNode;if(S=S.tag,H!==null&&H===o)break;S!==5&&S!==26&&S!==27||X===null||(H=X,d?(X=ks(a,p),X!=null&&y.unshift(wl(a,X,H))):d||(X=ks(a,p),X!=null&&y.push(wl(a,X,H)))),a=a.return}y.length!==0&&A.push({event:n,listeners:y})}var WO=/\r\n?/g,$O=/\u0000|\uFFFD/g;function pb(A){return(typeof A=="string"?A:""+A).replace(WO,`
9
+ `).replace($O,"")}function mb(A,n){return n=pb(n),pb(A)===n}function cA(A,n,a,o,d,p){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||$i(A,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&$i(A,""+o);break;case"className":Ac(A,"class",o);break;case"tabIndex":Ac(A,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Ac(A,a,o);break;case"style":my(A,o,p);break;case"data":if(n!=="object"){Ac(A,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){A.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){A.removeAttribute(a);break}o=nc(""+o),A.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){A.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(n!=="input"&&cA(A,n,"name",d.name,d,null),cA(A,n,"formEncType",d.formEncType,d,null),cA(A,n,"formMethod",d.formMethod,d,null),cA(A,n,"formTarget",d.formTarget,d,null)):(cA(A,n,"encType",d.encType,d,null),cA(A,n,"method",d.method,d,null),cA(A,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){A.removeAttribute(a);break}o=nc(""+o),A.setAttribute(a,o);break;case"onClick":o!=null&&(A.onclick=Ln);break;case"onScroll":o!=null&&Ge("scroll",A);break;case"onScrollEnd":o!=null&&Ge("scrollend",A);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));A.innerHTML=a}}break;case"multiple":A.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":A.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){A.removeAttribute("xlink:href");break}a=nc(""+o),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,""+o):A.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,""):A.removeAttribute(a);break;case"capture":case"download":o===!0?A.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,o):A.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?A.setAttribute(a,o):A.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?A.removeAttribute(a):A.setAttribute(a,o);break;case"popover":Ge("beforetoggle",A),Ge("toggle",A),ec(A,"popover",o);break;case"xlinkActuate":Rn(A,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Rn(A,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Rn(A,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Rn(A,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Rn(A,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Rn(A,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Rn(A,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Rn(A,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Rn(A,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ec(A,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=QM.get(a)||a,ec(A,a,o))}}function Ig(A,n,a,o,d,p){switch(a){case"style":my(A,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));A.innerHTML=a}}break;case"children":typeof o=="string"?$i(A,o):(typeof o=="number"||typeof o=="bigint")&&$i(A,""+o);break;case"onScroll":o!=null&&Ge("scroll",A);break;case"onScrollEnd":o!=null&&Ge("scrollend",A);break;case"onClick":o!=null&&(A.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ly.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),n=a.slice(2,d?a.length-7:void 0),p=A[Ke]||null,p=p!=null?p[a]:null,typeof p=="function"&&A.removeEventListener(n,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(a in A?A[a]=null:A.hasAttribute(a)&&A.removeAttribute(a)),A.addEventListener(n,o,d);break e}a in A?A[a]=o:o===!0?A.setAttribute(a,""):ec(A,a,o)}}}function nt(A,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",A),Ge("load",A);var o=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:cA(A,n,p,y,a,null)}}d&&cA(A,n,"srcSet",a.srcSet,a,null),o&&cA(A,n,"src",a.src,a,null);return;case"input":Ge("invalid",A);var S=p=y=d=null,H=null,X=null;for(o in a)if(a.hasOwnProperty(o)){var ne=a[o];if(ne!=null)switch(o){case"name":d=ne;break;case"type":y=ne;break;case"checked":H=ne;break;case"defaultChecked":X=ne;break;case"value":p=ne;break;case"defaultValue":S=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,n));break;default:cA(A,n,o,ne,a,null)}}dy(A,p,S,H,X,y,d,!1);return;case"select":Ge("invalid",A),o=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(S=a[d],S!=null))switch(d){case"value":p=S;break;case"defaultValue":y=S;break;case"multiple":o=S;default:cA(A,n,d,S,a,null)}n=p,a=y,A.multiple=!!o,n!=null?Wi(A,!!o,n,!1):a!=null&&Wi(A,!!o,a,!0);return;case"textarea":Ge("invalid",A),p=d=o=null;for(y in a)if(a.hasOwnProperty(y)&&(S=a[y],S!=null))switch(y){case"value":o=S;break;case"defaultValue":d=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:cA(A,n,y,S,a,null)}gy(A,o,d,p);return;case"option":for(H in a)if(a.hasOwnProperty(H)&&(o=a[H],o!=null))switch(H){case"selected":A.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:cA(A,n,H,o,a,null)}return;case"dialog":Ge("beforetoggle",A),Ge("toggle",A),Ge("cancel",A),Ge("close",A);break;case"iframe":case"object":Ge("load",A);break;case"video":case"audio":for(o=0;o<Bl.length;o++)Ge(Bl[o],A);break;case"image":Ge("error",A),Ge("load",A);break;case"details":Ge("toggle",A);break;case"embed":case"source":case"link":Ge("error",A),Ge("load",A);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in a)if(a.hasOwnProperty(X)&&(o=a[X],o!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:cA(A,n,X,o,a,null)}return;default:if(Pd(n)){for(ne in a)a.hasOwnProperty(ne)&&(o=a[ne],o!==void 0&&Ig(A,n,ne,o,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(o=a[S],o!=null&&cA(A,n,S,o,a,null))}function eR(A,n,a,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,S=null,H=null,X=null,ne=null;for(ee in a){var ae=a[ee];if(a.hasOwnProperty(ee)&&ae!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":H=ae;default:o.hasOwnProperty(ee)||cA(A,n,ee,null,o,ae)}}for(var Z in o){var ee=o[Z];if(ae=a[Z],o.hasOwnProperty(Z)&&(ee!=null||ae!=null))switch(Z){case"type":p=ee;break;case"name":d=ee;break;case"checked":X=ee;break;case"defaultChecked":ne=ee;break;case"value":y=ee;break;case"defaultValue":S=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,n));break;default:ee!==ae&&cA(A,n,Z,ee,o,ae)}}Gd(A,y,S,H,X,ne,p,d);return;case"select":ee=y=S=Z=null;for(p in a)if(H=a[p],a.hasOwnProperty(p)&&H!=null)switch(p){case"value":break;case"multiple":ee=H;default:o.hasOwnProperty(p)||cA(A,n,p,null,o,H)}for(d in o)if(p=o[d],H=a[d],o.hasOwnProperty(d)&&(p!=null||H!=null))switch(d){case"value":Z=p;break;case"defaultValue":S=p;break;case"multiple":y=p;default:p!==H&&cA(A,n,d,p,o,H)}n=S,a=y,o=ee,Z!=null?Wi(A,!!a,Z,!1):!!o!=!!a&&(n!=null?Wi(A,!!a,n,!0):Wi(A,!!a,a?[]:"",!1));return;case"textarea":ee=Z=null;for(S in a)if(d=a[S],a.hasOwnProperty(S)&&d!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:cA(A,n,S,null,o,d)}for(y in o)if(d=o[y],p=a[y],o.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":Z=d;break;case"defaultValue":ee=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==p&&cA(A,n,y,d,o,p)}hy(A,Z,ee);return;case"option":for(var Ce in a)if(Z=a[Ce],a.hasOwnProperty(Ce)&&Z!=null&&!o.hasOwnProperty(Ce))switch(Ce){case"selected":A.selected=!1;break;default:cA(A,n,Ce,null,o,Z)}for(H in o)if(Z=o[H],ee=a[H],o.hasOwnProperty(H)&&Z!==ee&&(Z!=null||ee!=null))switch(H){case"selected":A.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:cA(A,n,H,Z,o,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in a)Z=a[xe],a.hasOwnProperty(xe)&&Z!=null&&!o.hasOwnProperty(xe)&&cA(A,n,xe,null,o,Z);for(X in o)if(Z=o[X],ee=a[X],o.hasOwnProperty(X)&&Z!==ee&&(Z!=null||ee!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,n));break;default:cA(A,n,X,Z,o,ee)}return;default:if(Pd(n)){for(var uA in a)Z=a[uA],a.hasOwnProperty(uA)&&Z!==void 0&&!o.hasOwnProperty(uA)&&Ig(A,n,uA,void 0,o,Z);for(ne in o)Z=o[ne],ee=a[ne],!o.hasOwnProperty(ne)||Z===ee||Z===void 0&&ee===void 0||Ig(A,n,ne,Z,o,ee);return}}for(var K in a)Z=a[K],a.hasOwnProperty(K)&&Z!=null&&!o.hasOwnProperty(K)&&cA(A,n,K,null,o,Z);for(ae in o)Z=o[ae],ee=a[ae],!o.hasOwnProperty(ae)||Z===ee||Z==null&&ee==null||cA(A,n,ae,Z,o,ee)}function Bb(A){switch(A){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function AR(){if(typeof performance.getEntriesByType=="function"){for(var A=0,n=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var d=a[o],p=d.transferSize,y=d.initiatorType,S=d.duration;if(p&&S&&Bb(y)){for(y=0,S=d.responseEnd,o+=1;o<a.length;o++){var H=a[o],X=H.startTime;if(X>S)break;var ne=H.transferSize,ae=H.initiatorType;ne&&Bb(ae)&&(H=H.responseEnd,y+=ne*(H<S?1:(S-X)/(H-X)))}if(--o,n+=8*(p+y)/(d.duration/1e3),A++,10<A)break}}if(0<A)return n/A/1e6}return navigator.connection&&(A=navigator.connection.downlink,typeof A=="number")?A:5}var _g=null,Hg=null;function Wc(A){return A.nodeType===9?A:A.ownerDocument}function wb(A){switch(A){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Cb(A,n){if(A===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return A===1&&n==="foreignObject"?0:A}function Mg(A,n){return A==="textarea"||A==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Og=null;function tR(){var A=window.event;return A&&A.type==="popstate"?A===Og?!1:(Og=A,!0):(Og=null,!1)}var yb=typeof setTimeout=="function"?setTimeout:void 0,nR=typeof clearTimeout=="function"?clearTimeout:void 0,Eb=typeof Promise=="function"?Promise:void 0,rR=typeof queueMicrotask=="function"?queueMicrotask:typeof Eb<"u"?function(A){return Eb.resolve(null).then(A).catch(iR)}:yb;function iR(A){setTimeout(function(){throw A})}function Lr(A){return A==="head"}function vb(A,n){var a=n,o=0;do{var d=a.nextSibling;if(A.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(o===0){A.removeChild(d),Ta(n);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Cl(A.ownerDocument.documentElement);else if(a==="head"){a=A.ownerDocument.head,Cl(a);for(var p=a.firstChild;p;){var y=p.nextSibling,S=p.nodeName;p[Ls]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&Cl(A.ownerDocument.body);a=d}while(a);Ta(n)}function bb(A,n){var a=A;A=0;do{var o=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(A===0)break;A--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||A++;a=o}while(a)}function Rg(A){var n=A.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Rg(a),Kd(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}A.removeChild(a)}}function aR(A,n,a,o){for(;A.nodeType===1;){var d=a;if(A.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(A.nodeName!=="INPUT"||A.type!=="hidden"))break}else if(o){if(!A[Ls])switch(n){case"meta":if(!A.hasAttribute("itemprop"))break;return A;case"link":if(p=A.getAttribute("rel"),p==="stylesheet"&&A.hasAttribute("data-precedence"))break;if(p!==d.rel||A.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||A.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||A.getAttribute("title")!==(d.title==null?null:d.title))break;return A;case"style":if(A.hasAttribute("data-precedence"))break;return A;case"script":if(p=A.getAttribute("src"),(p!==(d.src==null?null:d.src)||A.getAttribute("type")!==(d.type==null?null:d.type)||A.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&A.hasAttribute("async")&&!A.hasAttribute("itemprop"))break;return A;default:return A}}else if(n==="input"&&A.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&A.getAttribute("name")===p)return A}else return A;if(A=An(A.nextSibling),A===null)break}return null}function sR(A,n,a){if(n==="")return null;for(;A.nodeType!==3;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!a||(A=An(A.nextSibling),A===null))return null;return A}function xb(A,n){for(;A.nodeType!==8;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!n||(A=An(A.nextSibling),A===null))return null;return A}function Lg(A){return A.data==="$?"||A.data==="$~"}function Dg(A){return A.data==="$!"||A.data==="$?"&&A.ownerDocument.readyState!=="loading"}function lR(A,n){var a=A.ownerDocument;if(A.data==="$~")A._reactRetry=n;else if(A.data!=="$?"||a.readyState!=="loading")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),A._reactRetry=o}}function An(A){for(;A!=null;A=A.nextSibling){var n=A.nodeType;if(n===1||n===3)break;if(n===8){if(n=A.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return A}var kg=null;function Sb(A){A=A.nextSibling;for(var n=0;A;){if(A.nodeType===8){var a=A.data;if(a==="/$"||a==="/&"){if(n===0)return An(A.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}A=A.nextSibling}return null}function Qb(A){A=A.previousSibling;for(var n=0;A;){if(A.nodeType===8){var a=A.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return A;n--}else a!=="/$"&&a!=="/&"||n++}A=A.previousSibling}return null}function Ub(A,n,a){switch(n=Wc(a),A){case"html":if(A=n.documentElement,!A)throw Error(i(452));return A;case"head":if(A=n.head,!A)throw Error(i(453));return A;case"body":if(A=n.body,!A)throw Error(i(454));return A;default:throw Error(i(451))}}function Cl(A){for(var n=A.attributes;n.length;)A.removeAttributeNode(n[0]);Kd(A)}var tn=new Map,Fb=new Set;function $c(A){return typeof A.getRootNode=="function"?A.getRootNode():A.nodeType===9?A:A.ownerDocument}var er=J.d;J.d={f:oR,r:cR,D:uR,C:fR,L:dR,m:hR,X:pR,S:gR,M:mR};function oR(){var A=er.f(),n=Gc();return A||n}function cR(A){var n=qi(A);n!==null&&n.tag===5&&n.type==="form"?PE(n):er.r(A)}var Qa=typeof document>"u"?null:document;function Tb(A,n,a){var o=Qa;if(o&&typeof n=="string"&&n){var d=Xt(n);d='link[rel="'+A+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),Fb.has(d)||(Fb.add(d),A={rel:A,crossOrigin:a,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),nt(n,"link",A),qA(n),o.head.appendChild(n)))}}function uR(A){er.D(A),Tb("dns-prefetch",A,null)}function fR(A,n){er.C(A,n),Tb("preconnect",A,n)}function dR(A,n,a){er.L(A,n,a);var o=Qa;if(o&&A&&n){var d='link[rel="preload"][as="'+Xt(n)+'"]';n==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Xt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Xt(a.imageSizes)+'"]')):d+='[href="'+Xt(A)+'"]';var p=d;switch(n){case"style":p=Ua(A);break;case"script":p=Fa(A)}tn.has(p)||(A=B({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:A,as:n},a),tn.set(p,A),o.querySelector(d)!==null||n==="style"&&o.querySelector(yl(p))||n==="script"&&o.querySelector(El(p))||(n=o.createElement("link"),nt(n,"link",A),qA(n),o.head.appendChild(n)))}}function hR(A,n){er.m(A,n);var a=Qa;if(a&&A){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+Xt(o)+'"][href="'+Xt(A)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Fa(A)}if(!tn.has(p)&&(A=B({rel:"modulepreload",href:A},n),tn.set(p,A),a.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(El(p)))return}o=a.createElement("link"),nt(o,"link",A),qA(o),a.head.appendChild(o)}}}function gR(A,n,a){er.S(A,n,a);var o=Qa;if(o&&A){var d=Ji(o).hoistableStyles,p=Ua(A);n=n||"default";var y=d.get(p);if(!y){var S={loading:0,preload:null};if(y=o.querySelector(yl(p)))S.loading=5;else{A=B({rel:"stylesheet",href:A,"data-precedence":n},a),(a=tn.get(p))&&jg(A,a);var H=y=o.createElement("link");qA(H),nt(H,"link",A),H._p=new Promise(function(X,ne){H.onload=X,H.onerror=ne}),H.addEventListener("load",function(){S.loading|=1}),H.addEventListener("error",function(){S.loading|=2}),S.loading|=4,eu(y,n,o)}y={type:"stylesheet",instance:y,count:1,state:S},d.set(p,y)}}}function pR(A,n){er.X(A,n);var a=Qa;if(a&&A){var o=Ji(a).hoistableScripts,d=Fa(A),p=o.get(d);p||(p=a.querySelector(El(d)),p||(A=B({src:A,async:!0},n),(n=tn.get(d))&&Kg(A,n),p=a.createElement("script"),qA(p),nt(p,"link",A),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function mR(A,n){er.M(A,n);var a=Qa;if(a&&A){var o=Ji(a).hoistableScripts,d=Fa(A),p=o.get(d);p||(p=a.querySelector(El(d)),p||(A=B({src:A,async:!0,type:"module"},n),(n=tn.get(d))&&Kg(A,n),p=a.createElement("script"),qA(p),nt(p,"link",A),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function Nb(A,n,a,o){var d=(d=fe.current)?$c(d):null;if(!d)throw Error(i(446));switch(A){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ua(a.href),a=Ji(d).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){A=Ua(a.href);var p=Ji(d).hoistableStyles,y=p.get(A);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(A,y),(p=d.querySelector(yl(A)))&&!p._p&&(y.instance=p,y.state.loading=5),tn.has(A)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},tn.set(A,a),p||BR(d,A,a,y.state))),n&&o===null)throw Error(i(528,""));return y}if(n&&o!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Fa(a),a=Ji(d).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,A))}}function Ua(A){return'href="'+Xt(A)+'"'}function yl(A){return'link[rel="stylesheet"]['+A+"]"}function Ib(A){return B({},A,{"data-precedence":A.precedence,precedence:null})}function BR(A,n,a,o){A.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=A.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),nt(n,"link",a),qA(n),A.head.appendChild(n))}function Fa(A){return'[src="'+Xt(A)+'"]'}function El(A){return"script[async]"+A}function _b(A,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=A.querySelector('style[data-href~="'+Xt(a.href)+'"]');if(o)return n.instance=o,qA(o),o;var d=B({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(A.ownerDocument||A).createElement("style"),qA(o),nt(o,"style",d),eu(o,a.precedence,A),n.instance=o;case"stylesheet":d=Ua(a.href);var p=A.querySelector(yl(d));if(p)return n.state.loading|=4,n.instance=p,qA(p),p;o=Ib(a),(d=tn.get(d))&&jg(o,d),p=(A.ownerDocument||A).createElement("link"),qA(p);var y=p;return y._p=new Promise(function(S,H){y.onload=S,y.onerror=H}),nt(p,"link",o),n.state.loading|=4,eu(p,a.precedence,A),n.instance=p;case"script":return p=Fa(a.src),(d=A.querySelector(El(p)))?(n.instance=d,qA(d),d):(o=a,(d=tn.get(p))&&(o=B({},a),Kg(o,d)),A=A.ownerDocument||A,d=A.createElement("script"),qA(d),nt(d,"link",o),A.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,eu(o,a.precedence,A));return n.instance}function eu(A,n,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,y=0;y<o.length;y++){var S=o[y];if(S.dataset.precedence===n)p=S;else if(p!==d)break}p?p.parentNode.insertBefore(A,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(A,n.firstChild))}function jg(A,n){A.crossOrigin==null&&(A.crossOrigin=n.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=n.referrerPolicy),A.title==null&&(A.title=n.title)}function Kg(A,n){A.crossOrigin==null&&(A.crossOrigin=n.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=n.referrerPolicy),A.integrity==null&&(A.integrity=n.integrity)}var Au=null;function Hb(A,n,a){if(Au===null){var o=new Map,d=Au=new Map;d.set(a,o)}else d=Au,o=d.get(a),o||(o=new Map,d.set(a,o));if(o.has(A))return o;for(o.set(A,null),a=a.getElementsByTagName(A),d=0;d<a.length;d++){var p=a[d];if(!(p[Ls]||p[NA]||A==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(n)||"";y=A+y;var S=o.get(y);S?S.push(p):o.set(y,[p])}}return o}function Mb(A,n,a){A=A.ownerDocument||A,A.head.insertBefore(a,n==="title"?A.querySelector("head > title"):null)}function wR(A,n,a){if(a===1||n.itemProp!=null)return!1;switch(A){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return A=n.disabled,typeof n.precedence=="string"&&A==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Ob(A){return!(A.type==="stylesheet"&&(A.state.loading&3)===0)}function CR(A,n,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Ua(o.href),p=n.querySelector(yl(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(A.count++,A=tu.bind(A),n.then(A,A)),a.state.loading|=4,a.instance=p,qA(p);return}p=n.ownerDocument||n,o=Ib(o),(d=tn.get(d))&&jg(o,d),p=p.createElement("link"),qA(p);var y=p;y._p=new Promise(function(S,H){y.onload=S,y.onerror=H}),nt(p,"link",o),a.instance=p}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(A.count++,a=tu.bind(A),n.addEventListener("load",a),n.addEventListener("error",a))}}var Vg=0;function yR(A,n){return A.stylesheets&&A.count===0&&ru(A,A.stylesheets),0<A.count||0<A.imgCount?function(a){var o=setTimeout(function(){if(A.stylesheets&&ru(A,A.stylesheets),A.unsuspend){var p=A.unsuspend;A.unsuspend=null,p()}},6e4+n);0<A.imgBytes&&Vg===0&&(Vg=62500*AR());var d=setTimeout(function(){if(A.waitingForImages=!1,A.count===0&&(A.stylesheets&&ru(A,A.stylesheets),A.unsuspend)){var p=A.unsuspend;A.unsuspend=null,p()}},(A.imgBytes>Vg?50:800)+n);return A.unsuspend=a,function(){A.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var A=this.unsuspend;this.unsuspend=null,A()}}}var nu=null;function ru(A,n){A.stylesheets=null,A.unsuspend!==null&&(A.count++,nu=new Map,n.forEach(ER,A),nu=null,tu.call(A))}function ER(A,n){if(!(n.state.loading&4)){var a=nu.get(A);if(a)var o=a.get(null);else{a=new Map,nu.set(A,a);for(var d=A.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}d=n.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||o,p===o&&a.set(null,d),a.set(y,d),this.count++,o=tu.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(A=A.nodeType===9?A.head:A,A.insertBefore(d,A.firstChild)),n.state.loading|=4}}var vl={$$typeof:M,Provider:null,Consumer:null,_currentValue:Ae,_currentValue2:Ae,_threadCount:0};function vR(A,n,a,o,d,p,y,S,H){this.tag=1,this.containerInfo=A,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mn(0),this.hiddenUpdates=Mn(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function Rb(A,n,a,o,d,p,y,S,H,X,ne,ae){return A=new vR(A,n,a,y,H,X,ne,ae,S),n=1,p===!0&&(n|=24),p=_t(3,null,null,n),A.current=p,p.stateNode=A,n=Eh(),n.refCount++,A.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:a,cache:n},Sh(p),A}function Lb(A){return A?(A=aa,A):aa}function Db(A,n,a,o,d,p){d=Lb(d),o.context===null?o.context=d:o.pendingContext=d,o=Qr(n),o.payload={element:a},p=p===void 0?null:p,p!==null&&(o.callback=p),a=Ur(A,o,n),a!==null&&(bt(a,A,n),Al(a,A,n))}function kb(A,n){if(A=A.memoizedState,A!==null&&A.dehydrated!==null){var a=A.retryLane;A.retryLane=a!==0&&a<n?a:n}}function Gg(A,n){kb(A,n),(A=A.alternate)&&kb(A,n)}function jb(A){if(A.tag===13||A.tag===31){var n=li(A,67108864);n!==null&&bt(n,A,67108864),Gg(A,67108864)}}function Kb(A){if(A.tag===13||A.tag===31){var n=Lt();n=RA(n);var a=li(A,n);a!==null&&bt(a,A,n),Gg(A,n)}}var iu=!0;function bR(A,n,a,o){var d=L.T;L.T=null;var p=J.p;try{J.p=2,zg(A,n,a,o)}finally{J.p=p,L.T=d}}function xR(A,n,a,o){var d=L.T;L.T=null;var p=J.p;try{J.p=8,zg(A,n,a,o)}finally{J.p=p,L.T=d}}function zg(A,n,a,o){if(iu){var d=Pg(o);if(d===null)Ng(A,n,o,au,a),Gb(A,o);else if(QR(d,A,n,a,o))o.stopPropagation();else if(Gb(A,o),n&4&&-1<SR.indexOf(A)){for(;d!==null;){var p=qi(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=on(p.pendingLanes);if(y!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var H=1<<31-De(y);S.entanglements[1]|=H,y&=~H}xn(p),(rA&6)===0&&(Kc=XA()+500,ml(0))}}break;case 31:case 13:S=li(p,2),S!==null&&bt(S,p,2),Gc(),Gg(p,2)}if(p=Pg(o),p===null&&Ng(A,n,o,au,a),p===d)break;d=p}d!==null&&o.stopPropagation()}else Ng(A,n,o,null,a)}}function Pg(A){return A=Xd(A),Yg(A)}var au=null;function Yg(A){if(au=null,A=Xi(A),A!==null){var n=l(A);if(n===null)A=null;else{var a=n.tag;if(a===13){if(A=c(n),A!==null)return A;A=null}else if(a===31){if(A=u(n),A!==null)return A;A=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;A=null}else n!==A&&(A=null)}}return au=A,null}function Vb(A){switch(A){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Yi()){case re:return 2;case j:return 8;case W:case ce:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Xg=!1,Dr=null,kr=null,jr=null,bl=new Map,xl=new Map,Kr=[],SR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gb(A,n){switch(A){case"focusin":case"focusout":Dr=null;break;case"dragenter":case"dragleave":kr=null;break;case"mouseover":case"mouseout":jr=null;break;case"pointerover":case"pointerout":bl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(n.pointerId)}}function Sl(A,n,a,o,d,p){return A===null||A.nativeEvent!==p?(A={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},n!==null&&(n=qi(n),n!==null&&jb(n)),A):(A.eventSystemFlags|=o,n=A.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),A)}function QR(A,n,a,o,d){switch(n){case"focusin":return Dr=Sl(Dr,A,n,a,o,d),!0;case"dragenter":return kr=Sl(kr,A,n,a,o,d),!0;case"mouseover":return jr=Sl(jr,A,n,a,o,d),!0;case"pointerover":var p=d.pointerId;return bl.set(p,Sl(bl.get(p)||null,A,n,a,o,d)),!0;case"gotpointercapture":return p=d.pointerId,xl.set(p,Sl(xl.get(p)||null,A,n,a,o,d)),!0}return!1}function zb(A){var n=Xi(A.target);if(n!==null){var a=l(n);if(a!==null){if(n=a.tag,n===13){if(n=c(a),n!==null){A.blockedOn=n,Wo(A.priority,function(){Kb(a)});return}}else if(n===31){if(n=u(a),n!==null){A.blockedOn=n,Wo(A.priority,function(){Kb(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){A.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}A.blockedOn=null}function su(A){if(A.blockedOn!==null)return!1;for(var n=A.targetContainers;0<n.length;){var a=Pg(A.nativeEvent);if(a===null){a=A.nativeEvent;var o=new a.constructor(a.type,a);Yd=o,a.target.dispatchEvent(o),Yd=null}else return n=qi(a),n!==null&&jb(n),A.blockedOn=a,!1;n.shift()}return!0}function Pb(A,n,a){su(A)&&a.delete(n)}function UR(){Xg=!1,Dr!==null&&su(Dr)&&(Dr=null),kr!==null&&su(kr)&&(kr=null),jr!==null&&su(jr)&&(jr=null),bl.forEach(Pb),xl.forEach(Pb)}function lu(A,n){A.blockedOn===n&&(A.blockedOn=null,Xg||(Xg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,UR)))}var ou=null;function Yb(A){ou!==A&&(ou=A,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ou===A&&(ou=null);for(var n=0;n<A.length;n+=3){var a=A[n],o=A[n+1],d=A[n+2];if(typeof o!="function"){if(Yg(o||a)===null)continue;break}var p=qi(a);p!==null&&(A.splice(n,3),n-=3,Ph(p,{pending:!0,data:d,method:a.method,action:o},o,d))}}))}function Ta(A){function n(H){return lu(H,A)}Dr!==null&&lu(Dr,A),kr!==null&&lu(kr,A),jr!==null&&lu(jr,A),bl.forEach(n),xl.forEach(n);for(var a=0;a<Kr.length;a++){var o=Kr[a];o.blockedOn===A&&(o.blockedOn=null)}for(;0<Kr.length&&(a=Kr[0],a.blockedOn===null);)zb(a),a.blockedOn===null&&Kr.shift();if(a=(A.ownerDocument||A).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var d=a[o],p=a[o+1],y=d[Ke]||null;if(typeof p=="function")y||Yb(a);else if(y){var S=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[Ke]||null)S=y.formAction;else if(Yg(d)!==null)continue}else S=y.action;typeof S=="function"?a[o+1]=S:(a.splice(o,3),o-=3),Yb(a)}}}function Xb(){function A(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",A),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",A),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function qg(A){this._internalRoot=A}cu.prototype.render=qg.prototype.render=function(A){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,o=Lt();Db(a,o,A,n,null,null)},cu.prototype.unmount=qg.prototype.unmount=function(){var A=this._internalRoot;if(A!==null){this._internalRoot=null;var n=A.containerInfo;Db(A.current,2,null,A,null,null),Gc(),n[nA]=null}};function cu(A){this._internalRoot=A}cu.prototype.unstable_scheduleHydration=function(A){if(A){var n=ni();A={blockedOn:null,target:A,priority:n};for(var a=0;a<Kr.length&&n!==0&&n<Kr[a].priority;a++);Kr.splice(a,0,A),a===0&&zb(A)}};var qb=t.version;if(qb!=="19.2.0")throw Error(i(527,qb,"19.2.0"));J.findDOMNode=function(A){var n=A._reactInternals;if(n===void 0)throw typeof A.render=="function"?Error(i(188)):(A=Object.keys(A).join(","),Error(i(268,A)));return A=h(n),A=A!==null?m(A):null,A=A===null?null:A.stateNode,A};var FR={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uu.isDisabled&&uu.supportsFiber)try{$e=uu.inject(FR),Pe=uu}catch{}}return _a.createRoot=function(A,n){if(!s(A))throw Error(i(299));var a=!1,o="",d=tv,p=nv,y=rv;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=Rb(A,1,!1,null,null,a,o,null,d,p,y,Xb),A[nA]=n.current,Tg(A),new qg(n)},_a.hydrateRoot=function(A,n,a){if(!s(A))throw Error(i(299));var o=!1,d="",p=tv,y=nv,S=rv,H=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(H=a.formState)),n=Rb(A,1,!0,n,a??null,o,d,H,p,y,S,Xb),n.context=Lb(null),a=n.current,o=Lt(),o=RA(o),d=Qr(o),d.callback=null,Ur(a,d,o),a=o,n.current.lanes=a,Nt(n,a),xn(n),A[nA]=n.current,Tg(A),new cu(n)},_a.version="19.2.0",_a}var sp;function i1(){if(sp)return pu.exports;sp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch{}}return e(),pu.exports=r1(),pu.exports}var a1=i1();function lp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Cu(...e){return t=>{let r=!1;const i=e.map(s=>{const l=lp(s,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():lp(e[s],null)}}}}function Sn(...e){return x.useCallback(Cu(...e),e)}function s1(e){const t=l1(e),r=x.forwardRef((i,s)=>{const{children:l,...c}=i,u=x.Children.toArray(l),f=u.find(c1);if(f){const h=f.props.children,m=u.map(B=>B===f?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${e}.Slot`,r}function l1(e){const t=x.forwardRef((r,i)=>{const{children:s,...l}=r;if(x.isValidElement(s)){const c=f1(s),u=u1(l,s.props);return s.type!==x.Fragment&&(u.ref=i?Cu(i,c):c),x.cloneElement(s,u)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var o1=Symbol("radix.slottable");function c1(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===o1}function u1(e,t){const r={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}function f1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var d1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ar=d1.reduce((e,t)=>{const r=s1(`Primitive.${t}`),i=x.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),tr=globalThis?.document?x.useLayoutEffect:()=>{};function h1(e,t){return x.useReducer((r,i)=>t[r][i]??r,e)}var yi=e=>{const{present:t,children:r}=e,i=g1(t),s=typeof r=="function"?r({present:i.isPresent}):x.Children.only(r),l=Sn(i.ref,p1(s));return typeof r=="function"||i.isPresent?x.cloneElement(s,{ref:l}):null};yi.displayName="Presence";function g1(e){const[t,r]=x.useState(),i=x.useRef(null),s=x.useRef(e),l=x.useRef("none"),c=e?"mounted":"unmounted",[u,f]=h1(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const h=Ul(i.current);l.current=u==="mounted"?h:"none"},[u]),tr(()=>{const h=i.current,m=s.current;if(m!==e){const C=l.current,w=Ul(h);e?f("MOUNT"):w==="none"||h?.display==="none"?f("UNMOUNT"):f(m&&C!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),tr(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,B=w=>{const b=Ul(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&b&&(f("ANIMATION_END"),!s.current)){const U=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=U)})}},C=w=>{w.target===t&&(l.current=Ul(i.current))};return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",B),t.addEventListener("animationend",B),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",B),t.removeEventListener("animationend",B)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:x.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Ul(e){return e?.animationName||"none"}function p1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function op(e,t=[]){let r=[];function i(l,c){const u=x.createContext(c),f=r.length;r=[...r,c];const h=B=>{const{scope:C,children:w,...E}=B,b=C?.[e]?.[f]||u,U=x.useMemo(()=>E,Object.values(E));return g.jsx(b.Provider,{value:U,children:w})};h.displayName=l+"Provider";function m(B,C){const w=C?.[e]?.[f]||u,E=x.useContext(w);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>x.createContext(c));return function(u){const f=u?.[e]||l;return x.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return s.scopeName=e,[i,m1(s,...t)]}function m1(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function nr(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>t.current?.(...r),[])}var B1=x.createContext(void 0);function w1(e){const t=x.useContext(B1);return e||t||"ltr"}function C1(e,[t,r]){return Math.min(r,Math.max(t,e))}function Qn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function y1(e,t){return x.useReducer((r,i)=>t[r][i]??r,e)}var yu="ScrollArea",[cp]=op(yu),[E1,Dt]=cp(yu),up=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:l=600,...c}=e,[u,f]=x.useState(null),[h,m]=x.useState(null),[B,C]=x.useState(null),[w,E]=x.useState(null),[b,U]=x.useState(null),[Q,N]=x.useState(0),[M,G]=x.useState(0),[V,F]=x.useState(!1),[O,R]=x.useState(!1),_=Sn(t,$=>f($)),q=w1(s);return g.jsx(E1,{scope:r,type:i,dir:q,scrollHideDelay:l,scrollArea:u,viewport:h,onViewportChange:m,content:B,onContentChange:C,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:V,onScrollbarXEnabledChange:F,scrollbarY:b,onScrollbarYChange:U,scrollbarYEnabled:O,onScrollbarYEnabledChange:R,onCornerWidthChange:N,onCornerHeightChange:G,children:g.jsx(Ar.div,{dir:q,...c,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":Q+"px","--radix-scroll-area-corner-height":M+"px",...e.style}})})});up.displayName=yu;var fp="ScrollAreaViewport",dp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:i,nonce:s,...l}=e,c=Dt(fp,r),u=x.useRef(null),f=Sn(t,u,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),g.jsx(Ar.div,{"data-radix-scroll-area-viewport":"",...l,ref:f,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});dp.displayName=fp;var dn="ScrollAreaScrollbar",Eu=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Dt(dn,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=s,u=e.orientation==="horizontal";return x.useEffect(()=>(u?l(!0):c(!0),()=>{u?l(!1):c(!1)}),[u,l,c]),s.type==="hover"?g.jsx(v1,{...i,ref:t,forceMount:r}):s.type==="scroll"?g.jsx(b1,{...i,ref:t,forceMount:r}):s.type==="auto"?g.jsx(hp,{...i,ref:t,forceMount:r}):s.type==="always"?g.jsx(vu,{...i,ref:t}):null});Eu.displayName=dn;var v1=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Dt(dn,e.__scopeScrollArea),[l,c]=x.useState(!1);return x.useEffect(()=>{const u=s.scrollArea;let f=0;if(u){const h=()=>{window.clearTimeout(f),c(!0)},m=()=>{f=window.setTimeout(()=>c(!1),s.scrollHideDelay)};return u.addEventListener("pointerenter",h),u.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),u.removeEventListener("pointerenter",h),u.removeEventListener("pointerleave",m)}}},[s.scrollArea,s.scrollHideDelay]),g.jsx(yi,{present:r||l,children:g.jsx(hp,{"data-state":l?"visible":"hidden",...i,ref:t})})}),b1=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Dt(dn,e.__scopeScrollArea),l=e.orientation==="horizontal",c=Il(()=>f("SCROLL_END"),100),[u,f]=y1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(u==="idle"){const h=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(h)}},[u,s.scrollHideDelay,f]),x.useEffect(()=>{const h=s.viewport,m=l?"scrollLeft":"scrollTop";if(h){let B=h[m];const C=()=>{const w=h[m];B!==w&&(f("SCROLL"),c()),B=w};return h.addEventListener("scroll",C),()=>h.removeEventListener("scroll",C)}},[s.viewport,l,f,c]),g.jsx(yi,{present:r||u!=="hidden",children:g.jsx(vu,{"data-state":u==="hidden"?"hidden":"visible",...i,ref:t,onPointerEnter:Qn(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:Qn(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),hp=x.forwardRef((e,t)=>{const r=Dt(dn,e.__scopeScrollArea),{forceMount:i,...s}=e,[l,c]=x.useState(!1),u=e.orientation==="horizontal",f=Il(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(u?h:m)}},10);return Ei(r.viewport,f),Ei(r.content,f),g.jsx(yi,{present:i||l,children:g.jsx(vu,{"data-state":l?"visible":"hidden",...s,ref:t})})}),vu=x.forwardRef((e,t)=>{const{orientation:r="vertical",...i}=e,s=Dt(dn,e.__scopeScrollArea),l=x.useRef(null),c=x.useRef(0),[u,f]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=wp(u.viewport,u.content),m={...i,sizes:u,onSizesChange:f,hasThumb:h>0&&h<1,onThumbChange:C=>l.current=C,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:C=>c.current=C};function B(C,w){return T1(C,c.current,u,w)}return r==="horizontal"?g.jsx(x1,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const C=s.viewport.scrollLeft,w=Cp(C,u,s.dir);l.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:C=>{s.viewport&&(s.viewport.scrollLeft=C)},onDragScroll:C=>{s.viewport&&(s.viewport.scrollLeft=B(C,s.dir))}}):r==="vertical"?g.jsx(S1,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const C=s.viewport.scrollTop,w=Cp(C,u);l.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:C=>{s.viewport&&(s.viewport.scrollTop=C)},onDragScroll:C=>{s.viewport&&(s.viewport.scrollTop=B(C))}}):null}),x1=x.forwardRef((e,t)=>{const{sizes:r,onSizesChange:i,...s}=e,l=Dt(dn,e.__scopeScrollArea),[c,u]=x.useState(),f=x.useRef(null),h=Sn(t,f,l.onScrollbarXChange);return x.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(pp,{"data-orientation":"horizontal",...s,ref:h,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Nl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,B)=>{if(l.viewport){const C=l.viewport.scrollLeft+m.deltaX;e.onWheelScroll(C),Ep(C,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Tl(c.paddingLeft),paddingEnd:Tl(c.paddingRight)}})}})}),S1=x.forwardRef((e,t)=>{const{sizes:r,onSizesChange:i,...s}=e,l=Dt(dn,e.__scopeScrollArea),[c,u]=x.useState(),f=x.useRef(null),h=Sn(t,f,l.onScrollbarYChange);return x.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(pp,{"data-orientation":"vertical",...s,ref:h,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Nl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,B)=>{if(l.viewport){const C=l.viewport.scrollTop+m.deltaY;e.onWheelScroll(C),Ep(C,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Tl(c.paddingTop),paddingEnd:Tl(c.paddingBottom)}})}})}),[Q1,gp]=cp(dn),pp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:m,onResize:B,...C}=e,w=Dt(dn,r),[E,b]=x.useState(null),U=Sn(t,_=>b(_)),Q=x.useRef(null),N=x.useRef(""),M=w.viewport,G=i.content-i.viewport,V=nr(m),F=nr(f),O=Il(B,10);function R(_){if(Q.current){const q=_.clientX-Q.current.left,$=_.clientY-Q.current.top;h({x:q,y:$})}}return x.useEffect(()=>{const _=q=>{const $=q.target;E?.contains($)&&V(q,G)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[M,E,G,V]),x.useEffect(F,[i,F]),Ei(E,O),Ei(w.content,O),g.jsx(Q1,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:nr(l),onThumbPointerUp:nr(c),onThumbPositionChange:F,onThumbPointerDown:nr(u),children:g.jsx(Ar.div,{...C,ref:U,style:{position:"absolute",...C.style},onPointerDown:Qn(e.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),Q.current=E.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),R(_))}),onPointerMove:Qn(e.onPointerMove,R),onPointerUp:Qn(e.onPointerUp,_=>{const q=_.target;q.hasPointerCapture(_.pointerId)&&q.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=N.current,w.viewport&&(w.viewport.style.scrollBehavior=""),Q.current=null})})})}),Fl="ScrollAreaThumb",mp=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=gp(Fl,e.__scopeScrollArea);return g.jsx(yi,{present:r||s.hasThumb,children:g.jsx(U1,{ref:t,...i})})}),U1=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:i,...s}=e,l=Dt(Fl,r),c=gp(Fl,r),{onThumbPositionChange:u}=c,f=Sn(t,B=>c.onThumbChange(B)),h=x.useRef(void 0),m=Il(()=>{h.current&&(h.current(),h.current=void 0)},100);return x.useEffect(()=>{const B=l.viewport;if(B){const C=()=>{if(m(),!h.current){const w=N1(B,u);h.current=w,u()}};return u(),B.addEventListener("scroll",C),()=>B.removeEventListener("scroll",C)}},[l.viewport,m,u]),g.jsx(Ar.div,{"data-state":c.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:Qn(e.onPointerDownCapture,B=>{const w=B.target.getBoundingClientRect(),E=B.clientX-w.left,b=B.clientY-w.top;c.onThumbPointerDown({x:E,y:b})}),onPointerUp:Qn(e.onPointerUp,c.onThumbPointerUp)})});mp.displayName=Fl;var bu="ScrollAreaCorner",Bp=x.forwardRef((e,t)=>{const r=Dt(bu,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(F1,{...e,ref:t}):null});Bp.displayName=bu;var F1=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,...i}=e,s=Dt(bu,r),[l,c]=x.useState(0),[u,f]=x.useState(0),h=!!(l&&u);return Ei(s.scrollbarX,()=>{const m=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(m),f(m)}),Ei(s.scrollbarY,()=>{const m=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(m),c(m)}),h?g.jsx(Ar.div,{...i,ref:t,style:{width:l,height:u,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Tl(e){return e?parseInt(e,10):0}function wp(e,t){const r=e/t;return isNaN(r)?0:r}function Nl(e){const t=wp(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*t;return Math.max(i,18)}function T1(e,t,r,i="ltr"){const s=Nl(r),l=s/2,c=t||l,u=s-c,f=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-u,m=r.content-r.viewport,B=i==="ltr"?[0,m]:[m*-1,0];return yp([f,h],B)(e)}function Cp(e,t,r="ltr"){const i=Nl(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-s,c=t.content-t.viewport,u=l-i,f=r==="ltr"?[0,c]:[c*-1,0],h=C1(e,f);return yp([0,c],[0,u])(h)}function yp(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(r-e[0])}}function Ep(e,t){return e>0&&e<t}var N1=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function s(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,u=r.top!==l.top;(c||u)&&t(),r=l,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Il(e,t){const r=nr(e),i=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),x.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function Ei(e,t){const r=nr(t);tr(()=>{let i=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(i),s.unobserve(e)}}},[e,r])}var vp=up,I1=dp,_1=Bp,Gr={},Ha={},xu={},Ma={},Oa={},Ra={},bp;function Su(){if(bp)return Ra;bp=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.EventEmitter=void 0;let e=class{eventListeners=new Map;on(r,i){const s=this.eventListeners.get(r)||new Set;s.add(i),this.eventListeners.set(r,s)}off(r,i){const s=this.eventListeners.get(r);s&&(s.delete(i),s.size===0&&this.eventListeners.delete(r))}emit(r,...i){const s=this.eventListeners.get(r);s&&s.forEach(l=>l(...i))}removeAllListeners(){this.eventListeners.clear()}};return Ra.EventEmitter=e,Ra}var zr={},xp;function La(){return xp||(xp=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.DisconnectionReason=zr.ConnectionStatus=void 0,zr.ConnectionStatus={CONNECTING:"connecting",CONNECTED:"connected",NOT_CONNECTED:"not_connected"},zr.DisconnectionReason={CLIENT_CLOSED:"client_closed",SERVER_CLOSED:"server_closed",CONNECTION_ERROR:"connection_error",AUTHENTICATION_ERROR:"authentication_error",MAX_RECONNECT_ATTEMPTS:"max_reconnect_attempts",TIMEOUT:"timeout",NETWORK_ERROR:"network_error"}),zr}var Sp;function Qu(){if(Sp)return Oa;Sp=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.BaseConnection=void 0;const e=Su(),t=La();let r=class{status=t.ConnectionStatus.CONNECTING;queue=[];eventEmitter=new e.EventEmitter;disconnectionDetails=null;onErrorCallback=null;onDisconnectCallback=null;onMessageCallback=null;onOpenCallback=null;onStatusChangeCallback=null;getStatus(){return this.status}onOpen(s){this.onOpenCallback=s}onMessage(s){if(this.onMessageCallback=s,this.queue.length>0){const l=[...this.queue];this.queue.length=0,queueMicrotask(()=>{l.forEach(c=>{this.onMessageCallback?.(c)})})}}onDisconnect(s){this.onDisconnectCallback=s;const l=this.disconnectionDetails;l&&queueMicrotask(()=>{this.onDisconnectCallback?.(l)})}onError(s){this.onErrorCallback=s}on(s,l){this.eventEmitter.on(s,l)}off(s,l){this.eventEmitter.off(s,l)}emit(s,...l){this.eventEmitter.emit(s,...l)}onStatusChange(s){this.onStatusChangeCallback=s,queueMicrotask(()=>{s(this.status)})}disconnect(s){this.disconnectionDetails||(this.disconnectionDetails=s,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.onDisconnectCallback?.(s))}handleMessage(s){this.onMessageCallback?this.onMessageCallback(s):this.queue.push(s)}updateStatus(s){this.status!==s&&(this.status=s,this.onStatusChangeCallback?.(s))}};return Oa.BaseConnection=r,Oa}var Uu={},Qp;function kt(){return Qp||(Qp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=e.ConfigurationError=e.StoreError=e.MessageError=e.SessionError=e.FileError=e.AuthenticationError=e.RecordingError=e.ConnectionError=e.InternalServerError=e.RateLimitError=e.MethodNotAllowedError=e.NotFoundError=e.PermissionDeniedError=e.UnauthorizedError=e.BadRequestError=e.APIConnectionTimeoutError=e.APIUserAbortError=e.APIError=e.SynapseError=e.SynapseErrorCode=void 0,e.normalizeError=V,e.SynapseErrorCode={API:"API_ERROR",CONNECTION:"CONNECTION_ERROR",RECORDING:"RECORDING_ERROR",FILE:"FILE_ERROR",SESSION:"SESSION_ERROR",MESSAGE:"MESSAGE_ERROR",STORE:"STORE_ERROR",CONFIGURATION:"CONFIGURATION_ERROR",VALIDATION:"VALIDATION_ERROR",AUTH:"AUTH_ERROR",UNKNOWN:"UNKNOWN_ERROR"};class t extends Error{code;timestamp;cause;context;hint;displayMessage;constructor(O,R=e.SynapseErrorCode.UNKNOWN,_={}){super(O),this.name="SynapseError",this.code=R,this.timestamp=new Date,this.cause=_.cause,this.context=_.context,this.hint=_.hint,this.displayMessage=_.displayMessage||_?.hint||O,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}e.SynapseError=t;class r extends t{status;error;headers;constructor(O,R,_,q){const $=r.makeMessage(R,_,O);super($,e.SynapseErrorCode.API,{cause:_,context:{status:R,hasBody:!!_},hint:R&&R>=500?"Retry the request or contact support if the issue persists.":void 0,displayMessage:O||"Something went wrong"}),this.name="APIError",this.status=R,this.error=_,this.headers=q}static makeMessage(O,R,_){const q=R instanceof Error?R.message:_;return O&&q?`HTTP ${O}: ${q}`:O?`${O} status code (no body)`:q||"(no status code or body)"}static generate(O,R,_,q){if(!O)return new i({message:_});const $=R?.error,k=$&&typeof $=="object"&&!Array.isArray($)?$:void 0;switch(O){case 400:return new l(_||"Bad Request",O,k,q);case 401:return new c(_||"Unauthorized",O,k,q);case 403:return new u(_||"Permission Denied",O,k,q);case 404:return new f(_||"Not Found",O,k,q);case 405:return new h(_||"Method Not Allowed",O,k,q);case 429:return new m(_||"Rate Limit Exceeded",O,k,q);case 500:return new B(_||"Internal Server Error",O,k,q);default:return new r(_||"API Error",O,k,q)}}}e.APIError=r;class i extends r{constructor({message:O}={}){super(O||"Request was aborted.",void 0,void 0,void 0),this.name="APIUserAbortError"}}e.APIUserAbortError=i;class s extends r{constructor({message:O}={}){super(O||"Request timed out.",void 0,void 0,void 0),this.name="APIConnectionTimeoutError"}}e.APIConnectionTimeoutError=s;class l extends r{constructor(O,R,_,q){super(O,R,_,q),this.name="BadRequestError"}}e.BadRequestError=l;class c extends r{constructor(O,R,_,q){super(O,R,_,q),this.name="UnauthorizedError"}}e.UnauthorizedError=c;class u extends r{constructor(O,R,_,q){super(O,R,_,q),this.name="PermissionDeniedError"}}e.PermissionDeniedError=u;class f extends r{constructor(O,R,_,q){super(O,R,_,q),this.name="NotFoundError"}}e.NotFoundError=f;class h extends r{constructor(O,R,_,q){super(O,R,_,q),this.name="MethodNotAllowedError"}}e.MethodNotAllowedError=h;class m extends r{constructor(O,R,_,q){super(O,R,_,q),this.name="RateLimitError"}}e.RateLimitError=m;class B extends r{constructor(O,R,_,q){super(O,R,_,q),this.name="InternalServerError"}}e.InternalServerError=B;class C extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.CONNECTION,R),this.name="ConnectionError"}}e.ConnectionError=C;class w extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.RECORDING,R),this.name="RecordingError"}}e.RecordingError=w;class E extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.AUTH,R),this.name="AuthenticationError"}}e.AuthenticationError=E;class b extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.FILE,R),this.name="FileError"}}e.FileError=b;class U extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.SESSION,R),this.name="SessionError"}}e.SessionError=U;class Q extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.MESSAGE,R),this.name="MessageError"}}e.MessageError=Q;class N extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.STORE,R),this.name="StoreError"}}e.StoreError=N;class M extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.CONFIGURATION,R),this.name="ConfigurationError"}}e.ConfigurationError=M;class G extends t{constructor(O,R={}){super(O,e.SynapseErrorCode.VALIDATION,R),this.name="ValidationError"}}e.ValidationError=G;function V(F,O,R,_={}){if(F instanceof O)return F;const q={..._,context:{...F instanceof t?F.context:void 0,..._.context},hint:_.hint??(F instanceof t?F.hint:void 0),cause:_.cause??F};if(F instanceof t)return new O(F.message,q);const $=F instanceof Error&&F.message?F.message:R;return new O($,q)}})(Uu)),Uu}var Up;function Fp(){if(Up)return Ma;Up=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.WebSocketConnection=void 0;const e=Qu(),t=La(),r=kt();class i extends e.BaseConnection{conversationId;socket=null;config;authenticated=!1;constructor(l){super(),this.config={...l,reconnect:l.reconnect||!0,reconnectAttempts:l.reconnectAttempts||3,reconnectDelay:l.reconnectDelay||1e3},this.conversationId=l.auth.sessionId,this.connect()}connect(){try{if(this.socket&&this.socket.readyState===WebSocket.OPEN||this.authenticated)return;this.updateStatus(t.ConnectionStatus.CONNECTING);const l=this.buildConnectionUrl();this.socket=new WebSocket(l),this.socket.onopen=this.handleOpen.bind(this),this.socket.onmessage=this.handleSocketMessage.bind(this),this.socket.onerror=this.handleError.bind(this),this.socket.onclose=this.handleClose.bind(this)}catch(l){const c=(0,r.normalizeError)(l,r.ConnectionError,"Failed to establish WebSocket connection",{context:{stage:"connect"}});this.onErrorCallback?.(c),this.disconnect({code:1001,reason:t.DisconnectionReason.CONNECTION_ERROR,message:c.message,timestamp:new Date})}}buildConnectionUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`/reloaded/ws/med-assist/session/${this.config.auth.sessionId}/`,l.toString()}handleOpen(){this.authenticated||this.socket?.readyState!==WebSocket.OPEN||this.onOpenCallback?.()}handleSocketMessage(l){try{const c=JSON.parse(l.data);this.handleMessage(c)}catch(c){const u=(0,r.normalizeError)(c,r.MessageError,"Failed to parse incoming WebSocket message",{context:{stage:"handleSocketMessage"}});this.onErrorCallback?.(u)}}handleError(l){}handleClose(l){const c=l.wasClean,u=l.code,f=l.reason;let h,m;this.authenticated=!1,!this.isConnected()&&(u===1e3?(h=t.DisconnectionReason.CLIENT_CLOSED,m="Connection closed normally"):u===1001||u===1006?(h=t.DisconnectionReason.NETWORK_ERROR,m=l.reason||"Network connection lost"):u===4001||u===1008?l.reason==="timeout"||l.reason==="Authentication timeout"?(h=t.DisconnectionReason.TIMEOUT,m="Connection timed out"):(h=t.DisconnectionReason.AUTHENTICATION_ERROR,m=l.reason||"Authentication failed"):c?(h=t.DisconnectionReason.SERVER_CLOSED,m=f||"Server closed connection"):(h=t.DisconnectionReason.CONNECTION_ERROR,m=f||"Connection closed unexpectedly"),this.disconnect({reason:h,message:m,code:u,timestamp:new Date}))}sendMessage(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN)throw new r.ConnectionError("Cannot send message: connection not open",{context:{stage:"sendMessage",readyState:this.socket?.readyState},hint:"Ensure the WebSocket is open before sending messages."});try{this.socket.send(JSON.stringify(l))}catch(c){const u=(0,r.normalizeError)(c,r.ConnectionError,"Failed to send WebSocket message",{context:{stage:"sendMessage"}});throw this.onErrorCallback?.(u),u}}close(){this.authenticated=!1,this.socket&&(this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.socket.close(1e3,"Client closed connection"),this.socket=null)}isConnected(){return this.socket?.readyState===WebSocket.OPEN}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED),this.authenticated=!0}}return Ma.WebSocketConnection=i,Ma}var Da={},Tp;function Np(){if(Tp)return Da;Tp=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.SSEConnection=void 0;const e=Qu(),t=La(),r=kt();class i extends e.BaseConnection{conversationId;config;connected=!1;activeStreamController=null;constructor(l){super(),this.config=l,this.conversationId=l.auth.sessionId,this.connect()}connect(){this.updateStatus(t.ConnectionStatus.CONNECTING),this.connected=!0,setTimeout(()=>{this.onOpenCallback?.()},0)}onOpen(l){this.onOpenCallback=l,this.connected&&setTimeout(()=>l(),0)}buildChatUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`${l.pathname.replace(/\/$/,"")}/med-assist/session/${this.config.auth.sessionId}/chat`,l.toString()}sendMessage(l){if(!this.connected){const u=new r.ConnectionError("SSE connection is not open",{context:{stage:"sendMessage"}});this.onErrorCallback?.(u);return}this.activeStreamController?.abort();const c=new AbortController;this.activeStreamController=c,this.streamChat(l,c)}async streamChat(l,c){const u=this.buildChatUrl();try{const f=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","sess-token":this.config.auth.sessionToken,"x-agent-id":this.config.agentId},body:JSON.stringify(l),signal:c.signal});if(!f.ok||!f.body)throw new r.ConnectionError(`SSE chat request failed with status ${f.status}`,{context:{stage:"streamChat",status:f.status}});const h=f.body.getReader(),m=new TextDecoder;let B="";for(;;){const{done:C,value:w}=await h.read();if(C)break;B+=m.decode(w,{stream:!0}),B=this.extractJsonObjects(B)}B.trim().length>0&&this.extractJsonObjects(B)}catch(f){if(c.signal.aborted)return;const h=(0,r.normalizeError)(f,r.ConnectionError,"SSE chat stream failed",{context:{stage:"streamChat"}});this.onErrorCallback?.(h)}finally{this.activeStreamController===c&&(this.activeStreamController=null)}}extractJsonObjects(l){let c=0;for(;c<l.length;){const u=l.indexOf("{",c);if(u===-1)return"";const f=this.findObjectEnd(l,u);if(f===-1)return l.slice(u);const h=l.slice(u,f+1);try{const m=JSON.parse(h);this.handleMessage(m)}catch(m){const B=(0,r.normalizeError)(m,r.MessageError,"Failed to parse incoming SSE object",{context:{stage:"extractJsonObjects",objStr:h}});this.onErrorCallback?.(B)}c=f+1}return""}findObjectEnd(l,c){let u=0,f=!1,h=!1;for(let m=c;m<l.length;m++){const B=l[m];if(f){h?h=!1:B==="\\"?h=!0:B==='"'&&(f=!1);continue}if(B==='"')f=!0;else if(B==="{")u++;else if(B==="}"&&(u--,u===0))return m}return-1}close(){this.connected=!1,this.activeStreamController?.abort(),this.activeStreamController=null,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED)}isConnected(){return this.connected}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED)}}return Da.SSEConnection=i,Da}var Ip;function _p(){return Ip||(Ip=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionFactory=e.ConnectionType=void 0;const t=Fp(),r=Np(),i=kt();e.ConnectionType={SOCKET:"socket",SSE:"sse"};class s{static async createConnection(c,u){switch(c){case e.ConnectionType.SOCKET:return new t.WebSocketConnection(u);case e.ConnectionType.SSE:return new r.SSEConnection(u);default:throw new i.ConnectionError(`Unsupported connection type: ${c}`,{context:{type:c}})}}}e.ConnectionFactory=s})(xu)),xu}var ka={},Hp;function H1(){if(Hp)return ka;Hp=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.getConfig=void 0;const e={WEBSOCKET_URL:"wss://matrix-ws.eka.care/reloaded",BASE_API_URL:"https://matrix.eka.care/reloaded"},t={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care/reloaded",BASE_API_URL:"https://matrix.dev.eka.care/reloaded"},r={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care",BASE_API_URL:"https://matrix.dev.eka.care"},i=(s="production")=>s==="development"?t:s==="production"?e:s==="staging"?r:e;return ka.getConfig=i,ka}var ja={},Ka={},Mp;function Op(){if(Mp)return Ka;Mp=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.HttpClient=void 0;const e=kt();let t=class{baseUrl;headers;timeout;maxRetries;constructor(i){this.baseUrl=i.baseUrl.replace(/\/$/,""),this.timeout=i.timeout||3e4,this.maxRetries=i.maxRetries||3,this.headers={"Content-Type":"application/json",...i.headers},i.authorization&&(this.headers.Authorization=i.authorization)}async request(i,s,l){const c=l?.retries??this.maxRetries;let u;for(let f=0;f<=c;f++)try{const h=this.buildUrl(s,l?.params),m=await fetch(h,{method:i,headers:{...this.headers,...l?.headers},body:l?.body?JSON.stringify(l.body):void 0,signal:AbortSignal.timeout(this.timeout)});return m.ok||await this.handleError(m),m.json()}catch(h){if(u=h,f===c||!(h instanceof TypeError&&h.message==="Failed to fetch"||h instanceof DOMException&&h.name==="AbortError"||h instanceof SyntaxError))break;const B=Math.pow(2,f)*100;await new Promise(C=>setTimeout(C,B))}throw u?u instanceof TypeError&&u.message==="Failed to fetch"?new e.APIError("Network error: Unable to connect to the server. Please check your internet connection.",0,{type:"NETWORK_ERROR",originalError:u.message}):u instanceof DOMException&&u.name==="AbortError"?new e.APIConnectionTimeoutError({message:`Request timed out after ${this.timeout}ms`}):u instanceof SyntaxError?new e.APIError("Invalid response format from server",502,{type:"PARSE_ERROR",originalError:u.message}):u instanceof e.APIError?u:new e.APIError(`Request failed: ${u.message||"Unknown error"}`,500,{type:"UNKNOWN_ERROR",originalError:u}):new e.APIError("Unknown error occurred",500,{type:"UNKNOWN_ERROR"})}async get(i,s,l){return this.request("GET",i,{params:s,...l})}async post(i,s,l){return this.request("POST",i,{body:s,...l})}async put(i,s,l){return this.request("PUT",i,{body:s,...l})}async delete(i,s){return this.request("DELETE",i,{...s})}async patch(i,s,l){return this.request("PATCH",i,{body:s,...l})}buildUrl(i,s){let l=`${this.baseUrl}${i}`;if(s){const c=new URLSearchParams(s).toString();l+=`?${c}`}return l}async handleError(i){let s,l;try{l=await i.json();const c=l,u=c?.error;s=c?.message||c?.msg||u?.msg||u?.message||i.statusText}catch{s=i.statusText}throw e.APIError.generate(i.status,l,s,i.headers)}};return Ka.HttpClient=t,Ka}var Va={},Ga={},Rp;function _l(){if(Rp)return Ga;Rp=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.BaseResource=void 0;let e=class{client;constructor(r){this.client=r}async get(r,i,s){return this.client.get(r,i,s)}async post(r,i,s){return this.client.post(r,i,s)}async put(r,i,s){return this.client.put(r,i,s)}async delete(r,i){return this.client.delete(r,i)}async patch(r,i,s){return this.client.patch(r,i,s)}buildPath(r,i){let s=r;for(const[l,c]of Object.entries(i))s=s.replace(`:${l}`,encodeURIComponent(c));return s}};return Ga.BaseResource=e,Ga}var Lp;function Dp(){if(Lp)return Va;Lp=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.Session=void 0;const e=_l();let t=class extends e.BaseResource{basePath="/med-assist/session";async create(i,s){return this.post(this.basePath,i,s?{headers:{"x-auth-token":s}}:void 0)}async retrieve(i){return this.get(`${this.basePath}/${i}`)}async refresh(i,s){return this.get(`${this.basePath}/${i}/refresh`,void 0,{headers:{"x-sess-token":s}})}async feedback(i,s,l,c){return this.put(`${this.basePath}/${i}/messages/${s}/feedback`,{feedback:l,feedback_reason:c})}async callTool(i,s,l,c,u){return this.post(`${this.basePath}/${i}/messages/${l}/tools/${s}`,{tool_params:u},{headers:{"x-sess-token":c}})}};return Va.Session=t,Va}var za={},kp;function M1(){if(kp)return za;kp=1,Object.defineProperty(za,"__esModule",{value:!0}),za.Config=void 0;const e=_l();let t=class extends e.BaseResource{basePath="/med-assist/agent-config";async retrieve(i){return this.get(`${this.basePath}/${i}`)}};return za.Config=t,za}var Pa={},jp;function O1(){if(jp)return Pa;jp=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.VoiceResource=void 0;const e=_l();let t=class Jg extends e.BaseResource{static ICE_SERVERS_PATH="/med-assist/voice/ice-servers";static OFFER_PATH="/med-assist/voice/offer";async getIceServers(i,s){return this.get(Jg.ICE_SERVERS_PATH,{session_id:i,token:s})}async sendOffer(i){return this.post(Jg.OFFER_PATH,i)}};return Pa.VoiceResource=t,Pa}var Kp;function Vp(){if(Kp)return ja;Kp=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.ResourceManager=void 0;const e=Op(),t=Dp(),r=kt(),i=M1(),s=O1();class l{resourceConfig;httpClient;session;config;voiceResource;constructor(u){this.resourceConfig=u,this.httpClient=new e.HttpClient({baseUrl:this.resourceConfig.serverUrl,headers:{"X-agent-id":this.resourceConfig.agentId,"ngrok-skip-browser-warning":"69420",...this.resourceConfig.authorization&&{Authorization:this.resourceConfig.authorization}}}),this.config=new i.Config(this.httpClient),this.session=new t.Session(this.httpClient),this.voiceResource=new s.VoiceResource(this.httpClient)}async createSession(u,f){try{const{profile:h,intent:m,user_location:B,referer:C,...w}=f||{},E={...u&&{user_id:u},...h&&{user_context:h},...(m||Object.keys(w).length>0)&&{session_context:{...m&&{intent:m},...B&&{user_location:B},...w}},...C&&{referer:C}},b=await this.session.create(E,this.resourceConfig.authToken);if(!b?.session_id||!b?.session_token)throw new r.APIError("Failed to start session.",500,void 0,void 0);return b}catch(h){throw h instanceof r.APIError?h:new r.APIError("Failed to start session.",500,void 0,void 0)}}async getAgentConfig(){this.config||(this.config=new i.Config(this.httpClient));try{return await this.config.retrieve(this.resourceConfig.agentId)}catch{throw new r.APIError("Failed to get agent config.",500,void 0,void 0)}}async validateSession(u){try{const f=await this.session.retrieve(u);return f.msg&&f.msg==="Session Active"?{expired:!1,active:!0}:{expired:!0,active:!1}}catch(f){if(f instanceof r.APIError)switch(f.status){case 401:return{expired:!0,active:!1};default:throw f}throw f}}async refreshSession(u,f){return await this.session.refresh(u,f)}async sendFeedback(u,f,h,m){return await this.session.feedback(u,f,h,m)}async callTool(u,f,h,m,B){return await this.session.callTool(u,f,h,m,B)}async getVoiceIceServers(u,f){return await this.voiceResource.getIceServers(u,f)}async sendVoiceOffer(u){return await this.voiceResource.sendOffer(u)}}return ja.ResourceManager=l,ja}var Ya={},Fu={},Gp;function Tu(){return Gp||(Gp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MULTI_SELECT_ADDITIONAL_OPTION=e.SOCKET_EVENTS=e.SOCKET_CONTENT_TYPES=void 0,e.IsValidSocketMesssage=t,e.SOCKET_CONTENT_TYPES={TEXT:"text",AUDIO:"audio",FILE:"file",TOOL_CALL:"tool",TIPS:"tips",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},e.SOCKET_EVENTS={PING:"ping",PONG:"pong",CHAT:"chat",STREAM:"stream",AUTH:"auth",END_OF_STREAM:"eos",SYNC:"sync",ERROR:"err",CONNECTION_ESTABLISHED:"conn"},e.MULTI_SELECT_ADDITIONAL_OPTION={NOTA:"none_of_the_above",AOTA:"all_of_the_above"};function t(r){return[e.SOCKET_EVENTS.PING,e.SOCKET_EVENTS.PONG,e.SOCKET_EVENTS.ERROR,e.SOCKET_EVENTS.SYNC,e.SOCKET_EVENTS.CONNECTION_ESTABLISHED,e.SOCKET_EVENTS.CHAT,e.SOCKET_EVENTS.STREAM,e.SOCKET_EVENTS.END_OF_STREAM].includes(r.ev)}})(Fu)),Fu}var Nu={},zp;function R1(){return zp||(zp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Filemanager=e.MAX_FILE_SIZE=void 0;const t=kt();e.MAX_FILE_SIZE=3145728;class r{pendingFiles=[];pendingMessage="";pendingFormats=[];setFilesForUpload(s,l){this.pendingFiles.length>0&&this.clearPendingFilesState();const c=s.filter(u=>this.validateFile(u));if(c.length===0)throw new t.FileError("File not supported",{context:{stage:"setFilesForUpload"}});this.pendingFiles=c,l&&l.trim()&&(this.pendingMessage=l),this.pendingFormats=c.map(u=>u.type)}getPendingFileState(){return{files:this.pendingFiles,message:this.pendingMessage||"",formats:this.pendingFormats||[]}}async uploadFilesToPresignedUrl(s){let l=[];const c=s.filter(u=>u.url&&u.url.trim());try{if(c.length===0)throw new t.FileError("No valid presigned URLs provided",{context:{stage:"uploadFilesToPresignedUrl"}});if(!this.pendingFiles.length)throw new t.FileError("No files to upload",{context:{stage:"uploadFilesToPresignedUrl"}});for(let u=0;u<c.length;u++){const f=c[u].url,h=await fetch(f,{method:"PUT",body:this.pendingFiles[u],headers:{"Content-Type":this.pendingFiles[u].type,"x-ms-blob-type":"BlockBlob"}});if(!h.ok)throw new t.FileError(`Failed to upload ${this.pendingFiles[u].name} to URL ${u+1}: ${h.status} ${h.statusText}`,{context:{stage:"uploadFilesToPresignedUrl"}});l.push(c[u].id)}return l}catch(u){if(l.length>0)return l;throw(0,t.normalizeError)(u,t.FileError,"Failed to upload files to presigned URL",{context:{stage:"uploadFilesToPresignedUrl"}})}}blobToFile(s,l){return new File([s],l,{type:s.type})}validateFile(s){return["application/pdf","image/jpeg","image/png","image/jpg"].includes(s.type)&&s.size<e.MAX_FILE_SIZE}clearPendingFilesState(){this.pendingFiles=[],this.pendingMessage="",this.pendingFormats=[]}}e.Filemanager=r})(Nu)),Nu}var nn={},Pp;function Hl(){if(Pp)return nn;Pp=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.SYNAPSE_REALTIME_RESERVED_EVENTS=nn.SYNAPSE_REALTIME_ERROR_CODES=nn.SYNAPSE_REALTIME_EVENTS=nn.SYNAPSE_MESSAGE_TYPES=void 0;const e=Tu();return nn.SYNAPSE_MESSAGE_TYPES=e.SOCKET_CONTENT_TYPES,nn.SYNAPSE_REALTIME_EVENTS={CONNECTED:"connected",DISCONNECTED:"disconnected",PROGRESS_MESSAGE:"progress_message",MESSAGE_CHUNK:"message_chunk",TIPS_MESSAGE:"tips_message",END_OF_STREAM:"end_of_stream",ERROR:"error",TOOL_CALL:"tool_call",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},nn.SYNAPSE_REALTIME_ERROR_CODES={SESSION_INACTIVE:"session_not_found",SESSION_EXPIRED:"session_expired",INVALID_EVENT:"invalid_event",INVALID_CONTENT_TYPE:"invalid_content",PARSING_ERROR:"parsing",FILE_UPLOAD_INPROGRESS:"file_upload_inprogress",TIMEOUT:"timeout",SERVER_ERROR:"server_error",SESSION_TOKEN_MISMATCH:"session_token_mismatch",PROMPT_FETCH_ERROR:"prompt_fetch_error",INVALID_FILE_REQUEST:"invalid_file_request"},nn.SYNAPSE_REALTIME_RESERVED_EVENTS={SESSION_EXPIRED:"session_expired"},nn}var Xa={},Yp;function L1(){if(Yp)return Xa;Yp=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.AudioManager=void 0;const e=kt();class t{mediaRecorder=null;mediaStream=null;recordingStartTime=0;autoPauseTimer=null;config;onAudioData=null;onAudioError=null;suppressCallbacks=!1;constructor(i={}){this.config={mimeType:"audio/webm;codecs=opus",audioBitsPerSecond:128e3,maxRecordingDuration:9e5,autoPauseEnabled:!0,...i}}async checkCurrentPermissionState(){if(!navigator.permissions||!navigator.permissions.query)return"prompt";try{const i=await navigator.permissions.query({name:"microphone"});if(i.state==="denied")throw new e.RecordingError("Microphone permission denied",{context:{permissionState:i.state},hint:"Ensure the browser has microphone access enabled for this site."});return i.state}catch(i){if(i instanceof Error&&i.name==="NotSupportedError")return"prompt"}return"prompt"}async start(i,s){try{if(!navigator.mediaDevices)throw new e.RecordingError("Media devices API is not available. This usually means the page is not served over HTTPS or there are browser restrictions.",{context:{feature:"mediaDevices"},hint:"Serve the app over HTTPS and verify browser/device microphone support.",displayMessage:"Microphone access is unavailable."});if(!window.MediaRecorder)throw new e.RecordingError("MediaRecorder is not supported in this browser",{context:{feature:"MediaRecorder"},hint:"Use a browser that supports the MediaRecorder API.",displayMessage:"Microphone access is unavailable."});const l=["audio/mp3","audio/ogg;codecs=opus","audio/mp4","audio/ogg","audio/wav"].filter(c=>MediaRecorder.isTypeSupported(c));if(l.length===0)throw new e.RecordingError("No supported audio formats found in this browser",{context:{requestedTypes:l},hint:"Verify codec support or adjust the requested MIME types.",displayMessage:"Microphone access is unavailable."});if(this.config.mimeType=l[0],await this.checkCurrentPermissionState(),this.onAudioData=i,this.onAudioError=s??null,this.suppressCallbacks=!1,this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!1,noiseSuppression:!1,autoGainControl:!1,sampleRate:44100,channelCount:1}}),this.mediaRecorder=new MediaRecorder(this.mediaStream,{mimeType:this.config.mimeType,audioBitsPerSecond:this.config.audioBitsPerSecond}),this.mediaRecorder.state!=="inactive")throw new e.RecordingError("MediaRecorder is in an invalid state for start()",{context:{recorderState:this.mediaRecorder.state},displayMessage:"Failed to start recording"});this.setupMediaRecorderEvents(),this.mediaRecorder.start(),this.recordingStartTime=Date.now(),this.config.autoPauseEnabled&&this.setupAutoPauseTimer()}catch(l){throw l instanceof Error&&l.name==="NotAllowedError"?new e.RecordingError("Microphone permission denied",{context:{permissionState:"denied"},hint:"Ensure the browser or device has microphone access enabled for this site/app."}):this.toRecordingError(l,"Failed to start audio recording",{stage:"start"})}}async processAudioChunk(i){try{const s=await this.blobToBase64(i),l=Date.now();if(!this.onAudioData)return;const c={audio:s,format:this.config.mimeType,duration:this.recordingStartTime>0?l-this.recordingStartTime:0,timestamp:this.recordingStartTime>0?this.recordingStartTime:l};this.onAudioData(c)}catch(s){this.handleError(s,{stage:"process_audio_chunk"})}}toRecordingError(i,s,l){if(i instanceof e.RecordingError)return i;if(i instanceof e.SynapseError)return new e.RecordingError(i.message,{cause:i,context:{...i.context,...l},hint:i.hint});const c=i instanceof Error&&i.message?i.message:s;return new e.RecordingError(c,{cause:i,context:l})}handleError(i,s){const l=this.toRecordingError(i,"Unexpected recording error",s);if(this.onAudioError)try{this.onAudioError(l)}catch{}}setupAutoPauseTimer(){this.autoPauseTimer&&clearTimeout(this.autoPauseTimer),this.autoPauseTimer=setTimeout(()=>{this.stop()},this.config.maxRecordingDuration)}setupMediaRecorderEvents(){this.mediaRecorder&&(this.mediaRecorder.ondataavailable=i=>{this.suppressCallbacks||i.data.size<=0||this.processAudioChunk(i.data).catch(s=>this.handleError(s,{stage:"media_recorder_ondataavailable",hasData:i.data.size>0}))},this.mediaRecorder.onstop=async()=>{this.recordingStartTime=0},this.mediaRecorder.onerror=i=>{this.handleError(i.error instanceof Error?i.error:new Error("MediaRecorder encountered an unknown error"),{stage:"media_recorder_onerror"})},this.mediaRecorder.onstart=()=>{})}blobToBase64(i){return new Promise((s,l)=>{const c=new FileReader;c.onload=()=>{if(typeof c.result=="string"){const u=c.result.split(",")[1];s(u)}else l(new e.RecordingError("Failed to convert blob to base64",{context:{stage:"blob_to_base64"}}))},c.onerror=()=>l(new e.RecordingError("FileReader error while converting audio chunk to base64",{cause:c.error??void 0,context:{stage:"blob_to_base64"}})),c.readAsDataURL(i)})}stop(){if(this.mediaRecorder)try{this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to stop audio recording",{stage:"stop"})}}cancel(){if(this.mediaRecorder)try{this.suppressCallbacks=!0,this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.ondataavailable=null,this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to cancel audio recording",{stage:"cancel"})}}destroy(){try{this.cancel(),this.mediaRecorder&&(this.mediaRecorder=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to destroy audio resources",{stage:"destroy"})}}}return Xa.AudioManager=t,Xa}var Xp;function qp(){if(Xp)return Ya;Xp=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.MessageManager=void 0;const e=Tu(),t=R1(),r=Hl(),i=L1(),s=kt();let l=class{connection=null;callbacks=null;fileManager=null;audioManager=null;outgoingBuffer=null;constructor(u){this.callbacks=u||null}setConnection(u){this.connection=u}handleFileUploadProcess({files:u,message:f,urls:h,tool_declined:m,tool_result:B}){this.fileManager||(this.fileManager=new t.Filemanager);let C;if(u&&u.length>0)this.fileManager.setFilesForUpload(u,f),C={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{extensions:this.fileManager.getPendingFileState().formats,...m&&{tool_declined:m},...B&&{tool_result:B}}};else if(h&&h.length>0){const w=this.fileManager.getPendingFileState().message;C={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{urls:h,...w&&{text:w},...m&&{tool_declined:m},...B&&{tool_result:B}}},this.fileManager?.clearPendingFilesState()}return C}sendSocketMessage({message:u,files:f,audio:h,urls:m,tool_declined:B,tool_id:C,tool_result:w,initial_prompts:E}){if(!this.connection?.isConnected()){this.outgoingBuffer={...u!==void 0&&{message:u},...f&&{files:f},...h&&{audio:h},...m&&{urls:m},...B&&{tool_declined:B},...C&&{tool_id:C},...w&&{tool_result:w},...E&&{initial_prompts:E}};return}const b=this.connection;let U;if(f&&f.length>0||m&&m.length>0){if(f&&f.length>3){const Q=new s.MessageError("Maximum 3 files are allowed to be sent at a time",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}U=this.handleFileUploadProcess({files:f,message:u,urls:m,tool_declined:B,tool_result:w})}else u?U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:u,...B&&{tool_declined:B},...C&&{tool_id:C},...E&&{initial_prompts:E},...w&&{tool_result:w}}}:h&&h?.audio&&h?.format?U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.AUDIO,_id:Date.now().toString(),ts:Date.now(),data:{audio:h?.audio,format:h?.format,...B&&{tool_declined:B},...w&&{tool_result:w}}}:w&&(U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:"",tool_result:w}});if(!U){const Q=new s.MessageError("No message to send",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}b.sendMessage(U)}handleIncomingSocketChatMessage(u){const f=this.assertConnection("handleIncomingSocketChatMessage");switch(u.ct){case e.SOCKET_CONTENT_TYPES.FILE:{u?.data?.urls&&u.data.urls?.length>0&&this.fileManager?.uploadFilesToPresignedUrl(u.data.urls).then(h=>{this.sendSocketMessage({urls:h})}).catch(h=>{const m=this.toFileError(h,"Failed to upload files to presigned URL",{stage:"handleIncomingSocketChatMessage",urls:u.data?.urls?.length});this.emitError(m)});break}case e.SOCKET_CONTENT_TYPES.TEXT:if(u.data.text&&u.data.text.trim()===""&&u._id){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,h)}break;case e.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const h={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,h)}break;case e.SOCKET_CONTENT_TYPES.AUDIO_TRANSCRIPT:if(u?.data?.text){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,h)}break}}handleIncomingSocketStreamMessage(u){const f=this.assertConnection("handleIncomingSocketStreamMessage");switch(u.ct){case e.SOCKET_CONTENT_TYPES.TEXT:if(u?.data?.progress_msg){const C={data:{text:u.data.progress_msg},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,C);return}if(u?.data?.text){const C={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,C)}break;case e.SOCKET_CONTENT_TYPES.TIPS:if(u?.data?.tips){const C={data:{tips:u.data.tips},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TIPS_MESSAGE,C);return}break;case e.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const C={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,C);return}break;case e.SOCKET_CONTENT_TYPES.TOOL_START:const h={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_START,h);break;case e.SOCKET_CONTENT_TYPES.TOOL_END:const m={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_END,m);break;default:const B=new s.MessageError(`Unsupported content type ${u?.ct}`,{context:{stage:"handleIncomingSocketStreamMessage",contentType:u.ct}});throw this.emitError(B),B}}handleDisconnect(u){this.connection?.emit?.(r.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,u)}handleIncomingSocketEndOfStreamMessage(u){this.assertConnection("handleIncomingSocketEndOfStreamMessage").emit(r.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM)}handleIncomingSocketErrorMessage(u){const f=this.assertConnection("handleIncomingSocketErrorMessage");switch(u?.data?.code){case r.SYNAPSE_REALTIME_ERROR_CODES.SESSION_EXPIRED:f.emit(r.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED);break;default:const h=new s.MessageError(u?.data?.msg||"Socket error received",{context:{stage:"handleIncomingSocketErrorMessage",errorCode:u?.data?.code},hint:u?.data?.msg,cause:u,displayMessage:u?.data?.msg});f.emit(r.SYNAPSE_REALTIME_EVENTS.ERROR,u)}}sendSocketAuthMessage(u){const f=this.assertConnection("sendSocketAuthMessage"),h={ev:e.SOCKET_EVENTS.AUTH,_id:Date.now().toString(),ts:Date.now(),data:{token:u}};f.sendMessage(h)}sendSocketPingMessage(){const u=this.assertConnection("sendSocketPingMessage"),f={ev:e.SOCKET_EVENTS.PING,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}async startRecording({onChunks:u,onError:f}){if(!u){const h=new s.RecordingError("onChunks is required",{context:{stage:"startRecording"},hint:"onChunks is required"});throw this.emitError(h),h}this.audioManager||(this.audioManager=new i.AudioManager);try{await this.audioManager.start(u,h=>{const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});f?.(m),this.emitError(m)})}catch(h){const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});throw f?.(m),this.emitError(m),m}}endRecordingWithSocket(){if(!this.audioManager){const u=new s.RecordingError("Audio manager not set. Call startRecording() first.",{context:{stage:"stopRecording"}});throw this.emitError(u),u}try{this.audioManager.stop()}catch(u){const f=this.toRecordingError(u,"Failed to stop audio recording",{stage:"stopRecording"});throw this.emitError(f),f}}sendSocketPongMessage(){const u=this.assertConnection("sendSocketPongMessage"),f={ev:e.SOCKET_EVENTS.PONG,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}handleConnectionEstablished(){this.connection?.handleConnected(),this.connection?.emit(r.SYNAPSE_REALTIME_EVENTS.CONNECTED),this.flushOutgoingBuffer()}flushOutgoingBuffer(){if(!this.connection?.isConnected()||!this.outgoingBuffer)return;const u=this.outgoingBuffer;this.outgoingBuffer=null,this.sendSocketMessage(u)}cleanupMessageServerState(){this.outgoingBuffer=null,this.connection=null,this.fileManager&&(this.fileManager.clearPendingFilesState(),this.fileManager=null),this.audioManager&&(this.audioManager.destroy(),this.audioManager=null)}emitError(u){this.callbacks?.onError?.(u)}toFileError(u,f,h,m){return(0,s.normalizeError)(u,s.FileError,f,{context:h,hint:m})}toRecordingError(u,f,h,m){return(0,s.normalizeError)(u,s.RecordingError,f,{context:h,hint:m})}assertConnection(u){if(!this.connection){const f=new s.ConnectionError("Connection not set. Please ensure the connection is established before calling this method.",{context:{stage:u}});throw this.emitError(f),f}return this.connection}};return Ya.MessageManager=l,Ya}var qa={},Jp;function Zp(){if(Jp)return qa;Jp=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.ErrorUtils=void 0;const e=kt();class t{static isAPIError(i){return i instanceof e.APIError}static isNetworkError(i){return i instanceof e.APIError&&(i.status===0||i.status===void 0)}static isTimeoutError(i){return i instanceof e.APIConnectionTimeoutError}static isAuthError(i){return i instanceof e.UnauthorizedError||i instanceof e.PermissionDeniedError}static isClientError(i){return i instanceof e.APIError&&i.status!==void 0&&i.status>=400&&i.status<500}static isServerError(i){return i instanceof e.APIError&&i.status!==void 0&&i.status>=500}static getUserFriendlyMessage(i){return t.isNetworkError(i)?"Unable to connect to the server. Please check your internet connection.":t.isTimeoutError(i)?"Request timed out. Please try again.":t.isAuthError(i)?"Authentication failed. Please log in again.":t.isServerError(i)?"Server error occurred. Please try again later.":t.isAPIError(i)||i instanceof Error?i.message:"An unexpected error occurred."}static getErrorDetails(i){return t.isAPIError(i)?{type:i.name,message:i.message,code:i.code,status:i.status,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof e.SynapseError?{type:i.name,message:i.message,code:i.code,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof Error?{type:i.name,message:i.message,stack:i.stack}:{type:"Unknown",message:String(i)}}}return qa.ErrorUtils=t,qa}var Ja={},Za={},Wp;function D1(){if(Wp)return Za;Wp=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.VoiceAudioAnalyser=void 0;const e=256;let t=class{audioCtx=null;animFrame=null;start(i,s,l){const c=new AudioContext;this.audioCtx=c;const u=c.createAnalyser();u.fftSize=e,c.createMediaStreamSource(i).connect(u);const f=new Uint8Array(u.frequencyBinCount),h=()=>{if(!this.audioCtx)return;u.getByteFrequencyData(f);const m=f.reduce((B,C)=>B+C,0)/f.length;l(m>s),this.animFrame=requestAnimationFrame(h)};h()}stop(){this.animFrame!==null&&(cancelAnimationFrame(this.animFrame),this.animFrame=null),this.audioCtx&&(this.audioCtx.close().catch(()=>{}),this.audioCtx=null)}};return Za.VoiceAudioAnalyser=t,Za}var Pr={},$p;function em(){return $p||($p=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.VOICE_AGENT_EVENTS=Pr.VOICE_AGENT_STATE=void 0,Pr.VOICE_AGENT_STATE={IDLE:"idle",CONNECTING:"connecting",CONNECTED:"connected",LISTENING:"listening",THINKING:"thinking",SPEAKING:"speaking",MUTED:"muted",DISCONNECTING:"disconnecting",ERROR:"error"},Pr.VOICE_AGENT_EVENTS={STATE_CHANGED:"voice:state_changed",ERROR:"voice:error"}),Pr}var Am;function k1(){if(Am)return Ja;Am=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.VoiceAgent=void 0;const e=Su(),t=D1(),r=kt(),i=em(),s=3e3,l=8,c=3600*1e3,u=600;function f(m,B){return new Promise(C=>{if(m.iceGatheringState==="complete"){C();return}const w=setTimeout(C,B);m.onicegatheringstatechange=()=>{m.iceGatheringState==="complete"&&(clearTimeout(w),C())}})}let h=class{config;resourceManager;getCredentials;emitter=new e.EventEmitter;remoteAnalyser=new t.VoiceAudioAnalyser;localAnalyser=new t.VoiceAudioAnalyser;pc=null;pcId=null;dataChannel=null;localStream=null;remoteAudio=null;_state=i.VOICE_AGENT_STATE.IDLE;_isMuted=!1;manuallyDisconnected=!1;_hasConnectionFailureNotified=!1;_userSpeaking=!1;_silenceTimer=null;_cachedIceServers=null;_iceServersCachedAt=0;constructor(B,C,w){this.config=B,this.resourceManager=C,this.getCredentials=w}get state(){return this._state}get isMuted(){return this._isMuted}on(B,C){this.emitter.on(B,C)}off(B,C){this.emitter.off(B,C)}async connect(){const B=await this.getCredentials();this.setState(i.VOICE_AGENT_STATE.CONNECTING),this._hasConnectionFailureNotified=!1;try{if(!navigator.mediaDevices?.getUserMedia)throw new Error("Microphone access is not available. Please ensure you are using a secure (HTTPS) connection.");const C=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3},video:!1});this.localStream=C;const w=await this.fetchIceServers(B),E=new RTCPeerConnection({iceServers:w,iceTransportPolicy:"all"});this.pc=E,this.dataChannel=E.createDataChannel("pipecat-events",{ordered:!0}),this.dataChannel.onopen=()=>{},this.dataChannel.onclose=()=>this.handleConnectionFailure(new Error("Data channel closed"),"Voice connection failed"),this.dataChannel.onerror=()=>this.handleConnectionFailure(new Error("Data channel error"),"Voice connection failed"),C.getAudioTracks().forEach(M=>E.addTrack(M,C)),E.ontrack=M=>this.handleRemoteTrack(M),E.onconnectionstatechange=()=>{E.connectionState==="connected"?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(C)):(E.connectionState==="failed"||E.connectionState==="closed")&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))},E.oniceconnectionstatechange=()=>{(E.iceConnectionState==="connected"||E.iceConnectionState==="completed")&&this._state===i.VOICE_AGENT_STATE.CONNECTING?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(C)):E.iceConnectionState==="failed"&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))};const b=await E.createOffer();await E.setLocalDescription(b);const U=this.config.iceGatheringTimeoutMs??s;await f(E,U);const Q=M=>({sdp:E.localDescription.sdp,type:E.localDescription.type,pc_id:this.pcId,request_data:{session_id:M.sessionId,token:M.sessionToken}});let N;try{N=await this.resourceManager.sendVoiceOffer(Q(B))}catch(M){if(M instanceof r.APIError&&M.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const G=await this.getCredentials();N=await this.resourceManager.sendVoiceOffer(Q(G))}else throw M}if(!N)throw new Error("No answer received from voice offer");if(this.pcId=N.pc_id,E.signalingState==="closed")return;await E.setRemoteDescription(new RTCSessionDescription({sdp:N.sdp,type:N.type}))}catch(C){this.handleConnectionFailure(C)}}disconnect(){this.manuallyDisconnected=!0,this.setState(i.VOICE_AGENT_STATE.DISCONNECTING),this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE)}toggleMute(){if(!this.localStream)return;const B=this.localStream.getAudioTracks()[0];if(!B)return;const C=B.enabled;this.localStream.getAudioTracks().forEach(w=>{w.enabled=!C}),this._isMuted=C,this.clearSilenceTimer(),this._userSpeaking=!1,this.setState(C?i.VOICE_AGENT_STATE.MUTED:i.VOICE_AGENT_STATE.LISTENING)}reset(){this.setState(i.VOICE_AGENT_STATE.IDLE)}destroy(){this.releaseResources(),this.emitter.removeAllListeners(),this._state=i.VOICE_AGENT_STATE.IDLE}async fetchIceServers(B){if(this.config.iceServers)return this.config.iceServers;const C=Date.now();if(this._cachedIceServers&&C-this._iceServersCachedAt<c)return this._cachedIceServers;let w;try{w=await this.resourceManager.getVoiceIceServers(B.sessionId,B.sessionToken)}catch(E){if(E instanceof r.APIError&&E.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const b=await this.getCredentials();w=await this.resourceManager.getVoiceIceServers(b.sessionId,b.sessionToken)}else throw E}if(!Array.isArray(w?.ice_servers)||w.ice_servers.length===0)throw new Error("ICE servers response is empty");return this._cachedIceServers=w.ice_servers,this._iceServersCachedAt=Date.now(),this._cachedIceServers}setState(B){this._state=B,this.emitter.emit(i.VOICE_AGENT_EVENTS.STATE_CHANGED,B)}clearSilenceTimer(){this._silenceTimer!==null&&(clearTimeout(this._silenceTimer),this._silenceTimer=null)}handleConnectionFailure(B,C="Voice connection failed"){if(this._hasConnectionFailureNotified||this._state===i.VOICE_AGENT_STATE.DISCONNECTING||this.manuallyDisconnected)return;this._hasConnectionFailureNotified=!0,this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.ERROR);const w={message:C,cause:B};this.emitter.emit(i.VOICE_AGENT_EVENTS.ERROR,w)}releaseResources(){this.remoteAnalyser.stop(),this.localAnalyser.stop(),this.clearSilenceTimer(),this._userSpeaking=!1,this.localStream&&(this.localStream.getTracks().forEach(B=>B.stop()),this.localStream=null),this.dataChannel&&(this.dataChannel.close(),this.dataChannel=null),this.pc&&(this.pc.onconnectionstatechange=null,this.pc.oniceconnectionstatechange=null,this.pc.ontrack=null,this.pc.onicecandidate=null,this.pc.ondatachannel=null,this.pc.close(),this.pc=null),this.pcId=null,this._isMuted=!1,this.remoteAudio&&(this.remoteAudio.srcObject=null)}startLocalAudioAnalysis(B){const C=this.config.speakingThreshold??l;this.localAnalyser.start(B,C,w=>{this._state!==i.VOICE_AGENT_STATE.LISTENING&&this._state!==i.VOICE_AGENT_STATE.THINKING||(w?(this._userSpeaking=!0,this.clearSilenceTimer(),this._state===i.VOICE_AGENT_STATE.THINKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)):this._userSpeaking&&this._silenceTimer===null&&(this._silenceTimer=setTimeout(()=>{this._silenceTimer=null,this._userSpeaking&&this._state===i.VOICE_AGENT_STATE.LISTENING&&(this._userSpeaking=!1,this.setState(i.VOICE_AGENT_STATE.THINKING))},u)))})}handleRemoteTrack(B){this.remoteAudio||(this.remoteAudio=new Audio,this.remoteAudio.autoplay=!0);const C=B.streams[0];this.remoteAudio.srcObject=C;const w=this.config.speakingThreshold??l;this.remoteAnalyser.start(C,w,E=>{E?(this.clearSilenceTimer(),this._userSpeaking=!1,this._state!==i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.SPEAKING)):this._state===i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)})}};return Ja.VoiceAgent=h,Ja}var tm;function j1(){if(tm)return Ha;tm=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.SynapseSDK=void 0;const e=_p(),t=La(),r=H1(),i=Vp(),s=qp(),l=Hl(),c=Su(),u=Zp(),f=kt(),h=Tu(),m=k1();class B{connection=null;messageManager;resourceManager;sessionConfig=null;config;connectionType;isRefreshingSession=!1;connectionAttempts=0;sdkEventEmitter=new c.EventEmitter;_voice=null;constructor(w){this.config={...w,environment:w.environment||"production"},this.connectionType=w.connectionType||e.ConnectionType.SSE;const E=(0,r.getConfig)(this.config?.environment).BASE_API_URL;this.resourceManager=new i.ResourceManager({agentId:this.config.agentId,serverUrl:this.config.serverUrl||E,...this.config.auth&&{authorization:this.config.auth},...this.config.authToken&&{authToken:this.config.authToken}}),this.messageManager=new s.MessageManager(this.config?.callbacks)}async startSession(w){try{const E=await this.manageSession(w);return await this.initializeConnection(E),this.setupEventHandlers(),E}catch(E){const b=u.ErrorUtils.getUserFriendlyMessage(E),U=u.ErrorUtils.getErrorDetails(E);if(E instanceof f.APIError&&(E.status===404||E.status===403))throw E;const Q=this.toSessionError(E,b||"Failed to start session",{stage:"startSession",details:U},"Check network connectivity or recheck credentials before retrying.");throw this.emitError(Q),Q}}async sendMessage({message:w,files:E,audio:b,tool_declined:U,tool_id:Q,initial_prompts:N,tool_result:M}){switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:this.messageManager.sendSocketMessage({message:w,files:E,audio:b,...U&&{tool_declined:U},...Q&&{tool_id:Q},...N?.length&&{initial_prompts:N},...M&&Object.keys(M)?.length&&{tool_result:M}});break;default:const G=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendChatMessage",connectionType:this.connectionType}});throw this.emitError(G),G}}async sendFeedback(w,E,b){if(!this.connection){const U=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(U),U}if(!this.sessionConfig?.session_id){const U=new f.SessionError("Session ID not found",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(U),U}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:await this.resourceManager.sendFeedback(this.sessionConfig.session_id,w,E,b);break}}on(w,E){this.sdkEventEmitter.on(w,E)}off(w,E){this.sdkEventEmitter.off(w,E)}getSessionConfig(){if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"getSessionConfig"},hint:"Ensure the session API returns both identifiers."});return this.sessionConfig}async callTool(w,E,b){if(!this.connection){const U=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(U),U}if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const U=new f.SessionError("Session ID not found",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(U),U}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:try{const Q=await this.resourceManager.callTool(this.sessionConfig.session_id,w,E,this.sessionConfig.session_token,b);if(Q.error)throw new f.APIError(Q.error.msg,500,Q.error);let N={data:{...Q.data},messageId:Q._id,timestamp:Q.ts};this.connection.emit(l.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,N)}catch(Q){if(Q instanceof f.APIError&&Q?.status===401)return await this.handleSessionExpiry(),await this.callTool(w,E,b);throw Q}break;default:const U=new f.ConnectionError("Unsupported connection type",{context:{stage:"callTool",connectionType:this.connectionType}});throw this.emitError(U),U}}async startRecording({onChunks:w,onError:E}){switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:try{await this.messageManager.startRecording({onChunks:w,onError:E})}catch(U){throw U}break;default:const b=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendAudio",connectionType:this.connectionType}});throw this.emitError(b),b}}endRecording(){switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:this.messageManager.endRecordingWithSocket();break;default:const w=new f.ConnectionError("Unsupported connection type",{context:{stage:"endRecording",connectionType:this.connectionType}});throw this.emitError(w),w}}async getAgentConfig(){return this.resourceManager.getAgentConfig()}isConnected(){return this.connection?.isConnected()??!1}get voice(){return this._voice||(this._voice=new m.VoiceAgent(this.buildVoiceConfig(),this.resourceManager,async()=>{const w=await this.resourceManager.createSession();return{sessionId:w.session_id,sessionToken:w.session_token}})),this._voice}endSession(){this._voice?.destroy(),this._voice=null,this.closeConnection(),this.cleanup()}buildVoiceConfig(){return{offerUrl:`${this.config.serverUrl||(0,r.getConfig)(this.config.environment).BASE_API_URL}/med-assist/voice/offer`,handleRefresh:async()=>{await this.handleSessionExpiry()}}}toClientError(w){return w instanceof f.APIError?{message:w.error?.msg||w.message,error:w.error,code:w.code,status:w.status,context:w.context}:w instanceof f.SynapseError?{message:w.displayMessage||w.message,code:w.code,context:w.context}:w instanceof Error?{message:w.message}:{message:"An unexpected error occurred"}}emitError(w){this.config.callbacks?.onError?.(this.toClientError(w))}toSessionError(w,E,b,U){return(0,f.normalizeError)(w,f.SessionError,E,{context:b,hint:U})}async initializeConnection(w){if(this.closeConnection(),!w.session_id||!w.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"initializeConnection"},hint:"Ensure the session API returns both identifiers."});this.sessionConfig=w;const E=(0,r.getConfig)(this.config?.environment),b=this.connectionType===e.ConnectionType.SOCKET,U=b?E.WEBSOCKET_URL:E.BASE_API_URL,Q=this.config.serverUrl?b?`wss://${this.config.serverUrl.split("://")[1]}`:this.config.serverUrl:null;this.connection=await e.ConnectionFactory.createConnection(this.connectionType,{serverUrl:Q||U,auth:{sessionId:w.session_id,sessionToken:w.session_token},agentId:this.config.agentId,userId:this.config.userId,overrides:this.config.overrides}),this.connectionAttempts++,this.messageManager.setConnection(this.connection);const N=this.connection.emit.bind(this.connection);this.connection.emit=(M,...G)=>{N(M,...G),this.sdkEventEmitter.emit(M,...G)}}async manageSession(w){try{if(!w?.session_id)return this.createNewSession();const E=await this.resourceManager.validateSession(w.session_id);if(E.active)return w;if(E.expired)return this.refreshSession(w.session_id,w.session_token);throw new f.APIError("Failed to create session",500,void 0,void 0)}catch(E){if(E instanceof f.APIError){if(E.status===404||E.status===403)throw E}else if(E instanceof f.NotFoundError&&E.status===404)throw E;throw this.toSessionError(E,"Failed to resolve session",{stage:"resolveSession"})}}async refreshSession(w,E){try{return await this.resourceManager.refreshSession(w,E)}catch(b){throw b instanceof f.APIError&&this.emitError(b),this.toSessionError(b,"Failed to refresh session",{stage:"refreshSession",sessionId:w})}}async createNewSession(){return await this.resourceManager.createSession(this.config.userId,this.config.context)}setupEventHandlers(){if(this.connection){switch(this.connectionType){case e.ConnectionType.SOCKET:this.connection.onOpen(()=>{this.onSocketConnectionOpen()}),this.connection.onMessage(w=>{this.onIncomingSocketMessage(w)}),this.connection.onError(w=>{this.onSocketConnectionError(w)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;case e.ConnectionType.SSE:this.connection.onOpen(()=>{this.messageManager.handleConnectionEstablished()}),this.connection.onMessage(w=>{this.onIncomingSocketMessage(w)}),this.connection.onError(w=>{this.onSocketConnectionError(w)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;default:throw new f.ConnectionError("Unsupported connection type",{context:{stage:"setupEventHandlers",connectionType:this.connectionType},hint:"Use ConnectionType.SOCKET or provide a custom handler."})}this.connection.onDisconnect(async w=>{if(w.reason!==t.DisconnectionReason.CLIENT_CLOSED)if(this.connectionAttempts<3&&this.sessionConfig?.session_id&&this.sessionConfig.session_token)try{await this.startSession({session_id:this.sessionConfig.session_id,session_token:this.sessionConfig.session_token})}catch{this.messageManager.handleDisconnect(w)}else this.messageManager.handleDisconnect(w)})}}onSocketConnectionError(w){this.connection?.emit(l.SYNAPSE_REALTIME_EVENTS.ERROR,w);const E=this.toConnectionError(w,"WebSocket connection error",{stage:"onSocketConnectionError"},"Verify network connectivity or attempt to reconnect.");this.emitError(E)}onSocketConnectionOpen(){if(!this.sessionConfig?.session_token){const w=new f.SessionError("Session token not set. Call startSession() first.",{context:{stage:"onSocketConnectionOpen"},hint:"Ensure startSession() completes successfully before socket opens."});throw this.emitError(w),w}this.messageManager.sendSocketAuthMessage(this.sessionConfig.session_token)}onIncomingSocketMessage(w){switch(w.ev){case h.SOCKET_EVENTS.CHAT:this.messageManager.handleIncomingSocketChatMessage(w);break;case h.SOCKET_EVENTS.CONNECTION_ESTABLISHED:this.messageManager.handleConnectionEstablished();break;case h.SOCKET_EVENTS.STREAM:this.messageManager.handleIncomingSocketStreamMessage(w);break;case h.SOCKET_EVENTS.END_OF_STREAM:this.messageManager.handleIncomingSocketEndOfStreamMessage(w);break;case h.SOCKET_EVENTS.PING:this.messageManager.sendSocketPongMessage();break;case h.SOCKET_EVENTS.PONG:this.messageManager.sendSocketPingMessage();break;case h.SOCKET_EVENTS.SYNC:break;case h.SOCKET_EVENTS.ERROR:this.messageManager.handleIncomingSocketErrorMessage(w);break;default:const E=new f.MessageError("Unsupported message type",{context:{stage:"onIncomingSocketMessage",event:w.ev??"unknown"},hint:"Ensure the server is sending supported socket events."});this.emitError(E);return}}async handleSessionExpiry(){if(!this.isRefreshingSession)try{if(this.closeConnection(),!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const E=new f.SessionError("Session ID or token not found",{context:{stage:"handleSessionExpiry"}});throw this.emitError(E),E}this.isRefreshingSession=!0;const w=await this.refreshSession(this.sessionConfig.session_id,this.sessionConfig.session_token);if(!w.session_id||!w.session_token)throw new f.SessionError("Session refresh failed",{context:{stage:"handleSessionExpiry"}});this.sessionConfig.session_id=w.session_id,this.sessionConfig.session_token=w.session_token,await this.initializeConnection(w),this.setupEventHandlers(),this.config.callbacks?.onSessionRefreshed?.(w)}catch(w){const E=this.toSessionError(w,"Session expired",{stage:"handleSessionExpiry"});this.emitError(E)}finally{this.isRefreshingSession=!1}}toConnectionError(w,E,b,U){return(0,f.normalizeError)(w,f.ConnectionError,E,{context:b,hint:U})}closeConnection(){this.connection&&(this.connection.close(),this.connection=null)}cleanup(){this.connectionAttempts=0,this.sdkEventEmitter?.removeAllListeners?.(),this.messageManager?.cleanupMessageServerState?.()}}return Ha.SynapseSDK=B,Ha}var Iu={},nm;function K1(){return nm||(nm=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var Wa={},rm;function V1(){return rm||(rm=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.USER_FEEDBACK=void 0,Wa.USER_FEEDBACK={LIKE:"LIKE",DISLIKE:"DISLIKE",NONE:"NONE"}),Wa}var $a={},im;function G1(){if(im)return $a;im=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.ToolCall=void 0;const e=_l();let t=class extends e.BaseResource{basePath="/med-assist/api-call-tool";async callTool(i,s,l){return this.post(`${this.basePath}?session_id=${i}&tool_name=${s}`,{tool_params:l})}};return $a.ToolCall=t,$a}var rn={},am;function z1(){if(am)return rn;am=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.SYNAPSE_EICITATION_STATUS=rn.SYNAPSE_TOOL_CALLBACK_NAME=rn.SYNAPSE_COMPONENTS=rn.SYNAPSE_TOOL_NAME=void 0;var e;(function(s){s.MOBILE_VERIFICATION="mobile_verification",s.AVAILABILITY_DATES="availability_dates",s.AVAILABILITY_SLOTS="availability_slots",s.DOCTOR_AVAILABILITY="doctor_availability",s.DOCTOR_DETAILS="doctor_details",s.GET_LOCATION="get_location"})(e||(rn.SYNAPSE_TOOL_NAME=e={}));var t;(function(s){s.MOBILE="mobile_number",s.OTP="otp",s.EMAIL="email_address",s.PILL="pills",s.MULTI="multi",s.DOCTOR_CARD="doctor_card",s.CARD="card",s.MEDIA_CARD="media_card"})(t||(rn.SYNAPSE_COMPONENTS=t={}));var r;(function(s){s.DOCTOR_AVAILABILITY="get_doctor_availability",s.AVAILABILITY_DATES="get_available_dates",s.AVAILABILITY_SLOTS="get_available_slots",s.MOBILE_VERIFICATION="verify_mobile_number",s.DOCTOR_DETAILS="get_doctor_details"})(r||(rn.SYNAPSE_TOOL_CALLBACK_NAME=r={}));var i;return(function(s){s.PROGRESS="progress",s.SUCCESS="success",s.FAILURE="failure"})(i||(rn.SYNAPSE_EICITATION_STATUS=i={})),rn}var _u={},sm;function P1(){return sm||(sm=1,Object.defineProperty(_u,"__esModule",{value:!0})),_u}var es={},lm;function Y1(){return lm||(lm=1,Object.defineProperty(es,"__esModule",{value:!0}),es.ErrorType=void 0,es.ErrorType={NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",API_ERROR:"API_ERROR",RATE_LIMIT_ERROR:"RATE_LIMIT_ERROR",SERVER_ERROR:"SERVER_ERROR",PARSE_ERROR:"PARSE_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR"}),es}var Hu={},om;function X1(){return om||(om=1,Object.defineProperty(Hu,"__esModule",{value:!0})),Hu}var As={},cm;function q1(){if(cm)return As;cm=1,Object.defineProperty(As,"__esModule",{value:!0}),As.SYNAPSE_CONVERSATION=void 0;var e;return(function(t){t.TEXT="text",t.FILE="file",t.AUDIO="audio",t.VOICE="voice"})(e||(As.SYNAPSE_CONVERSATION=e={})),As}var Yr={},um;function J1(){return um||(um=1,(function(e){var t=Yr&&Yr.__createBinding||(Object.create?(function(i,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(i,c,u)}):(function(i,s,l,c){c===void 0&&(c=l),i[c]=s[l]})),r=Yr&&Yr.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),r(em(),e)})(Yr)),Yr}var fm;function Z1(){return fm||(fm=1,(function(e){var t=Gr&&Gr.__createBinding||(Object.create?(function(Q,N,M,G){G===void 0&&(G=M);var V=Object.getOwnPropertyDescriptor(N,M);(!V||("get"in V?!N.__esModule:V.writable||V.configurable))&&(V={enumerable:!0,get:function(){return N[M]}}),Object.defineProperty(Q,G,V)}):(function(Q,N,M,G){G===void 0&&(G=M),Q[G]=N[M]})),r=Gr&&Gr.__exportStar||function(Q,N){for(var M in Q)M!=="default"&&!Object.prototype.hasOwnProperty.call(N,M)&&t(N,Q,M)};Object.defineProperty(e,"__esModule",{value:!0}),e.SYNAPSE_MESSAGE_TYPES=e.ErrorUtils=e.ErrorType=e.SynapseErrorCode=e.InternalServerError=e.RateLimitError=e.MethodNotAllowedError=e.NotFoundError=e.PermissionDeniedError=e.UnauthorizedError=e.BadRequestError=e.APIConnectionTimeoutError=e.APIUserAbortError=e.APIError=e.SynapseError=e.HttpClient=e.MessageManager=e.ToolCall=e.Session=e.ResourceManager=e.ConnectionType=e.ConnectionFactory=e.SSEConnection=e.WebSocketConnection=e.BaseConnection=e.SynapseSDK=void 0;var i=j1();Object.defineProperty(e,"SynapseSDK",{enumerable:!0,get:function(){return i.SynapseSDK}});var s=Qu();Object.defineProperty(e,"BaseConnection",{enumerable:!0,get:function(){return s.BaseConnection}});var l=Fp();Object.defineProperty(e,"WebSocketConnection",{enumerable:!0,get:function(){return l.WebSocketConnection}});var c=Np();Object.defineProperty(e,"SSEConnection",{enumerable:!0,get:function(){return c.SSEConnection}});var u=_p();Object.defineProperty(e,"ConnectionFactory",{enumerable:!0,get:function(){return u.ConnectionFactory}}),Object.defineProperty(e,"ConnectionType",{enumerable:!0,get:function(){return u.ConnectionType}}),r(La(),e);var f=Vp();Object.defineProperty(e,"ResourceManager",{enumerable:!0,get:function(){return f.ResourceManager}}),r(K1(),e);var h=Dp();Object.defineProperty(e,"Session",{enumerable:!0,get:function(){return h.Session}}),r(V1(),e);var m=G1();Object.defineProperty(e,"ToolCall",{enumerable:!0,get:function(){return m.ToolCall}}),r(z1(),e);var B=qp();Object.defineProperty(e,"MessageManager",{enumerable:!0,get:function(){return B.MessageManager}}),r(Hl(),e),r(P1(),e);var C=Op();Object.defineProperty(e,"HttpClient",{enumerable:!0,get:function(){return C.HttpClient}});var w=kt();Object.defineProperty(e,"SynapseError",{enumerable:!0,get:function(){return w.SynapseError}}),Object.defineProperty(e,"APIError",{enumerable:!0,get:function(){return w.APIError}}),Object.defineProperty(e,"APIUserAbortError",{enumerable:!0,get:function(){return w.APIUserAbortError}}),Object.defineProperty(e,"APIConnectionTimeoutError",{enumerable:!0,get:function(){return w.APIConnectionTimeoutError}}),Object.defineProperty(e,"BadRequestError",{enumerable:!0,get:function(){return w.BadRequestError}}),Object.defineProperty(e,"UnauthorizedError",{enumerable:!0,get:function(){return w.UnauthorizedError}}),Object.defineProperty(e,"PermissionDeniedError",{enumerable:!0,get:function(){return w.PermissionDeniedError}}),Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return w.NotFoundError}}),Object.defineProperty(e,"MethodNotAllowedError",{enumerable:!0,get:function(){return w.MethodNotAllowedError}}),Object.defineProperty(e,"RateLimitError",{enumerable:!0,get:function(){return w.RateLimitError}}),Object.defineProperty(e,"InternalServerError",{enumerable:!0,get:function(){return w.InternalServerError}}),Object.defineProperty(e,"SynapseErrorCode",{enumerable:!0,get:function(){return w.SynapseErrorCode}});var E=Y1();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return E.ErrorType}});var b=Zp();Object.defineProperty(e,"ErrorUtils",{enumerable:!0,get:function(){return b.ErrorUtils}}),r(X1(),e);var U=Hl();Object.defineProperty(e,"SYNAPSE_MESSAGE_TYPES",{enumerable:!0,get:function(){return U.SYNAPSE_MESSAGE_TYPES}}),r(q1(),e),r(J1(),e)})(Gr)),Gr}var de=Z1();function dm(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=dm(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function hm(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=dm(e))&&(i&&(i+=" "),i+=t);return i}const W1=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},$1=(e,t)=>({classGroupId:e,validator:t}),gm=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ml="-",pm=[],ex="arbitrary..",Ax=e=>{const t=nx(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return tx(c);const u=c.split(Ml),f=u[0]===""&&u.length>1?1:0;return mm(u,f,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const f=i[c],h=r[c];return f?h?W1(h,f):f:h||pm}return r[c]||pm}}},mm=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],l=r.nextPart.get(s);if(l){const h=mm(e,t+1,l);if(h)return h}const c=r.validators;if(c===null)return;const u=t===0?e.join(Ml):e.slice(t).join(Ml),f=c.length;for(let h=0;h<f;h++){const m=c[h];if(m.validator(u))return m.classGroupId}},tx=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?ex+i:void 0})(),nx=e=>{const{theme:t,classGroups:r}=e;return rx(r,t)},rx=(e,t)=>{const r=gm();for(const i in e){const s=e[i];Mu(s,r,i,t)}return r},Mu=(e,t,r,i)=>{const s=e.length;for(let l=0;l<s;l++){const c=e[l];ix(c,t,r,i)}},ix=(e,t,r,i)=>{if(typeof e=="string"){ax(e,t,r);return}if(typeof e=="function"){sx(e,t,r,i);return}lx(e,t,r,i)},ax=(e,t,r)=>{const i=e===""?t:Bm(t,e);i.classGroupId=r},sx=(e,t,r,i)=>{if(ox(e)){Mu(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push($1(r,e))},lx=(e,t,r,i)=>{const s=Object.entries(e),l=s.length;for(let c=0;c<l;c++){const[u,f]=s[c];Mu(f,Bm(t,u),r,i)}},Bm=(e,t)=>{let r=e;const i=t.split(Ml),s=i.length;for(let l=0;l<s;l++){const c=i[l];let u=r.nextPart.get(c);u||(u=gm(),r.nextPart.set(c,u)),r=u}return r},ox=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,cx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const s=(l,c)=>{r[l]=c,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(l){let c=r[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in r?r[l]=c:s(l,c)}}},Ou="!",wm=":",ux=[],Cm=(e,t,r,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:s}),fx=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=s=>{const l=[];let c=0,u=0,f=0,h;const m=s.length;for(let b=0;b<m;b++){const U=s[b];if(c===0&&u===0){if(U===wm){l.push(s.slice(f,b)),f=b+1;continue}if(U==="/"){h=b;continue}}U==="["?c++:U==="]"?c--:U==="("?u++:U===")"&&u--}const B=l.length===0?s:s.slice(f);let C=B,w=!1;B.endsWith(Ou)?(C=B.slice(0,-1),w=!0):B.startsWith(Ou)&&(C=B.slice(1),w=!0);const E=h&&h>f?h-f:void 0;return Cm(l,w,C,E)};if(t){const s=t+wm,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):Cm(ux,!1,c,void 0,!0)}if(r){const s=i;i=l=>r({className:l,parseClassName:s})}return i},dx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let s=[];for(let l=0;l<r.length;l++){const c=r[l],u=c[0]==="[",f=t.has(c);u||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},hx=e=>({cache:cx(e.cacheSize),parseClassName:fx(e),sortModifiers:dx(e),...Ax(e)}),gx=/\s+/,px=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],u=e.trim().split(gx);let f="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:B,modifiers:C,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:b}=r(m);if(B){f=m+(f.length>0?" "+f:f);continue}let U=!!b,Q=i(U?E.substring(0,b):E);if(!Q){if(!U){f=m+(f.length>0?" "+f:f);continue}if(Q=i(E),!Q){f=m+(f.length>0?" "+f:f);continue}U=!1}const N=C.length===0?"":C.length===1?C[0]:l(C).join(":"),M=w?N+Ou:N,G=M+Q;if(c.indexOf(G)>-1)continue;c.push(G);const V=s(Q,U);for(let F=0;F<V.length;++F){const O=V[F];c.push(M+O)}f=m+(f.length>0?" "+f:f)}return f},mx=(...e)=>{let t=0,r,i,s="";for(;t<e.length;)(r=e[t++])&&(i=ym(r))&&(s&&(s+=" "),s+=i);return s},ym=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=ym(e[i]))&&(r&&(r+=" "),r+=t);return r},Bx=(e,...t)=>{let r,i,s,l;const c=f=>{const h=t.reduce((m,B)=>B(m),e());return r=hx(h),i=r.cache.get,s=r.cache.set,l=u,u(f)},u=f=>{const h=i(f);if(h)return h;const m=px(f,r);return s(f,m),m};return l=c,(...f)=>l(mx(...f))},wx=[],KA=e=>{const t=r=>r[e]||wx;return t.isThemeGetter=!0,t},Em=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cx=/^\d+\/\d+$/,yx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vi=e=>Cx.test(e),Re=e=>!!e&&!Number.isNaN(Number(e)),rr=e=>!!e&&Number.isInteger(Number(e)),Ru=e=>e.endsWith("%")&&Re(e.slice(0,-1)),Un=e=>yx.test(e),Sx=()=>!0,Qx=e=>Ex.test(e)&&!vx.test(e),bm=()=>!1,Ux=e=>bx.test(e),Fx=e=>xx.test(e),Tx=e=>!ye(e)&&!Ee(e),Nx=e=>bi(e,Fm,bm),ye=e=>Em.test(e),Xr=e=>bi(e,Tm,Qx),Lu=e=>bi(e,Ox,Re),xm=e=>bi(e,Qm,bm),Ix=e=>bi(e,Um,Fx),Ol=e=>bi(e,Nm,Ux),Ee=e=>vm.test(e),ts=e=>xi(e,Tm),_x=e=>xi(e,Rx),Sm=e=>xi(e,Qm),Hx=e=>xi(e,Fm),Mx=e=>xi(e,Um),Rl=e=>xi(e,Nm,!0),bi=(e,t,r)=>{const i=Em.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},xi=(e,t,r=!1)=>{const i=vm.exec(e);return i?i[1]?t(i[1]):r:!1},Qm=e=>e==="position"||e==="percentage",Um=e=>e==="image"||e==="url",Fm=e=>e==="length"||e==="size"||e==="bg-size",Tm=e=>e==="length",Ox=e=>e==="number",Rx=e=>e==="family-name",Nm=e=>e==="shadow",Lx=Bx(()=>{const e=KA("color"),t=KA("font"),r=KA("text"),i=KA("font-weight"),s=KA("tracking"),l=KA("leading"),c=KA("breakpoint"),u=KA("container"),f=KA("spacing"),h=KA("radius"),m=KA("shadow"),B=KA("inset-shadow"),C=KA("text-shadow"),w=KA("drop-shadow"),E=KA("blur"),b=KA("perspective"),U=KA("aspect"),Q=KA("ease"),N=KA("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...G(),Ee,ye],F=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],R=()=>[Ee,ye,f],_=()=>[vi,"full","auto",...R()],q=()=>[rr,"none","subgrid",Ee,ye],$=()=>["auto",{span:["full",rr,Ee,ye]},rr,Ee,ye],k=()=>[rr,"auto",Ee,ye],se=()=>["auto","min","max","fr",Ee,ye],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...R()],J=()=>[vi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],Ae=()=>[e,Ee,ye],me=()=>[...G(),Sm,xm,{position:[Ee,ye]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",Hx,Nx,{size:[Ee,ye]}],P=()=>[Ru,ts,Xr],v=()=>["","none","full",h,Ee,ye],te=()=>["",Re,ts,Xr],oe=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[Re,Ru,Sm,xm],Le=()=>["","none",E,Ee,ye],Fe=()=>["none",Re,Ee,ye],We=()=>["none",Re,Ee,ye],je=()=>[Re,Ee,ye],FA=()=>[vi,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Un],breakpoint:[Un],color:[Sx],container:[Un],"drop-shadow":[Un],ease:["in","out","in-out"],font:[Tx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Un],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Un],shadow:[Un],spacing:["px",Re],text:[Un],"text-shadow":[Un],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vi,ye,Ee,U]}],container:["container"],columns:[{columns:[Re,ye,Ee,u]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[rr,"auto",Ee,ye]}],basis:[{basis:[vi,"full","auto",u,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,vi,"auto","initial","none",ye]}],grow:[{grow:["",Re,Ee,ye]}],shrink:[{shrink:["",Re,Ee,ye]}],order:[{order:[rr,"first","last","none",Ee,ye]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",r,ts,Xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ee,Lu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ru,ye]}],"font-family":[{font:[_x,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Ee,ye]}],"line-clamp":[{"line-clamp":[Re,"none",Ee,Lu]}],leading:[{leading:[l,...R()]}],"list-image":[{"list-image":["none",Ee,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Ae()}],"text-color":[{text:Ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",Ee,Xr]}],"text-decoration-color":[{decoration:Ae()}],"underline-offset":[{"underline-offset":[Re,"auto",Ee,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rr,Ee,ye],radial:["",Ee,ye],conic:[rr,Ee,ye]},Mx,Ix]}],"bg-color":[{bg:Ae()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:Ae()}],"gradient-via":[{via:Ae()}],"gradient-to":[{to:Ae()}],rounded:[{rounded:v()}],"rounded-s":[{"rounded-s":v()}],"rounded-e":[{"rounded-e":v()}],"rounded-t":[{"rounded-t":v()}],"rounded-r":[{"rounded-r":v()}],"rounded-b":[{"rounded-b":v()}],"rounded-l":[{"rounded-l":v()}],"rounded-ss":[{"rounded-ss":v()}],"rounded-se":[{"rounded-se":v()}],"rounded-ee":[{"rounded-ee":v()}],"rounded-es":[{"rounded-es":v()}],"rounded-tl":[{"rounded-tl":v()}],"rounded-tr":[{"rounded-tr":v()}],"rounded-br":[{"rounded-br":v()}],"rounded-bl":[{"rounded-bl":v()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:Ae()}],"border-color-x":[{"border-x":Ae()}],"border-color-y":[{"border-y":Ae()}],"border-color-s":[{"border-s":Ae()}],"border-color-e":[{"border-e":Ae()}],"border-color-t":[{"border-t":Ae()}],"border-color-r":[{"border-r":Ae()}],"border-color-b":[{"border-b":Ae()}],"border-color-l":[{"border-l":Ae()}],"divide-color":[{divide:Ae()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,Ee,ye]}],"outline-w":[{outline:["",Re,ts,Xr]}],"outline-color":[{outline:Ae()}],shadow:[{shadow:["","none",m,Rl,Ol]}],"shadow-color":[{shadow:Ae()}],"inset-shadow":[{"inset-shadow":["none",B,Rl,Ol]}],"inset-shadow-color":[{"inset-shadow":Ae()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Ae()}],"ring-offset-w":[{"ring-offset":[Re,Xr]}],"ring-offset-color":[{"ring-offset":Ae()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":Ae()}],"text-shadow":[{"text-shadow":["none",C,Rl,Ol]}],"text-shadow-color":[{"text-shadow":Ae()}],opacity:[{opacity:[Re,Ee,ye]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":Ae()}],"mask-image-linear-to-color":[{"mask-linear-to":Ae()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":Ae()}],"mask-image-t-to-color":[{"mask-t-to":Ae()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":Ae()}],"mask-image-r-to-color":[{"mask-r-to":Ae()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":Ae()}],"mask-image-b-to-color":[{"mask-b-to":Ae()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":Ae()}],"mask-image-l-to-color":[{"mask-l-to":Ae()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":Ae()}],"mask-image-x-to-color":[{"mask-x-to":Ae()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":Ae()}],"mask-image-y-to-color":[{"mask-y-to":Ae()}],"mask-image-radial":[{"mask-radial":[Ee,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":Ae()}],"mask-image-radial-to-color":[{"mask-radial-to":Ae()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":Ae()}],"mask-image-conic-to-color":[{"mask-conic-to":Ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,ye]}],filter:[{filter:["","none",Ee,ye]}],blur:[{blur:Le()}],brightness:[{brightness:[Re,Ee,ye]}],contrast:[{contrast:[Re,Ee,ye]}],"drop-shadow":[{"drop-shadow":["","none",w,Rl,Ol]}],"drop-shadow-color":[{"drop-shadow":Ae()}],grayscale:[{grayscale:["",Re,Ee,ye]}],"hue-rotate":[{"hue-rotate":[Re,Ee,ye]}],invert:[{invert:["",Re,Ee,ye]}],saturate:[{saturate:[Re,Ee,ye]}],sepia:[{sepia:["",Re,Ee,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,ye]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[Re,Ee,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Re,Ee,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,Ee,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,Ee,ye]}],"backdrop-invert":[{"backdrop-invert":["",Re,Ee,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Re,Ee,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Re,Ee,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,Ee,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",Ee,ye]}],ease:[{ease:["linear","initial",Q,Ee,ye]}],delay:[{delay:[Re,Ee,ye]}],animate:[{animate:["none",N,Ee,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Ee,ye]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[Ee,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:FA()}],"translate-x":[{"translate-x":FA()}],"translate-y":[{"translate-y":FA()}],"translate-z":[{"translate-z":FA()}],"translate-none":["translate-none"],accent:[{accent:Ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Ae()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee,ye]}],fill:[{fill:["none",...Ae()]}],"stroke-w":[{stroke:[Re,ts,Xr,Lu]}],stroke:[{stroke:["none",...Ae()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function he(...e){return Lx(hm(e))}function Si(e){if(!e&&e!==0)return"";const t=e instanceof Date?e:new Date(typeof e=="number"?e:Number(e)||e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Dx=e=>{switch(e){case de.SYNAPSE_COMPONENTS.DOCTOR_CARD:case de.SYNAPSE_COMPONENTS.CARD:return!0;default:return!1}},kx=e=>new Promise(t=>setTimeout(t,e)),Im=x.forwardRef(({className:e,children:t,...r},i)=>g.jsxs(vp,{ref:i,className:he("relative overflow-hidden",e),...r,children:[g.jsx(I1,{className:"h-full w-full rounded-[inherit] overscroll-contain",children:t}),g.jsx(_m,{}),g.jsx(_1,{})]}));Im.displayName=vp.displayName;const _m=x.forwardRef(({className:e,orientation:t="vertical",...r},i)=>g.jsx(Eu,{ref:i,orientation:t,className:he("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:g.jsx(mp,{className:"relative flex-1 rounded-full bg-border"})}));_m.displayName=Eu.displayName;var jx=Symbol.for("react.lazy"),Ll=Ap[" use ".trim().toString()];function Kx(e){return typeof e=="object"&&e!==null&&"then"in e}function Hm(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===jx&&"_payload"in e&&Kx(e._payload)}function Mm(e){const t=Gx(e),r=x.forwardRef((i,s)=>{let{children:l,...c}=i;Hm(l)&&typeof Ll=="function"&&(l=Ll(l._payload));const u=x.Children.toArray(l),f=u.find(Px);if(f){const h=f.props.children,m=u.map(B=>B===f?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${e}.Slot`,r}var Vx=Mm("Slot");function Gx(e){const t=x.forwardRef((r,i)=>{let{children:s,...l}=r;if(Hm(s)&&typeof Ll=="function"&&(s=Ll(s._payload)),x.isValidElement(s)){const c=Xx(s),u=Yx(l,s.props);return s.type!==x.Fragment&&(u.ref=i?Cu(i,c):c),x.cloneElement(s,u)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zx=Symbol("radix.slottable");function Px(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zx}function Yx(e,t){const r={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}function Xx(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Om=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rm=hm,qx=((e,t)=>r=>{var i;if(t?.variants==null)return Rm(e,r?.class,r?.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(h=>{const m=r?.[h],B=l?.[h];if(m===null)return null;const C=Om(m)||Om(B);return s[h][C]}),u=r&&Object.entries(r).reduce((h,m)=>{let[B,C]=m;return C===void 0||(h[B]=C),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:B,className:C,...w}=m;return Object.entries(w).every(E=>{let[b,U]=E;return Array.isArray(U)?U.includes({...l,...u}[b]):{...l,...u}[b]===U})?[...h,B,C]:h},[]);return Rm(e,c,f,r?.class,r?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),_e=x.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...s},l)=>{const c=i?Vx:"button";return g.jsx(c,{className:he(qx({variant:t,size:r,className:e})),ref:l,...s})});_e.displayName="Button";const Jx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Lm=e=>{const t=Zx(e);return t.charAt(0).toUpperCase()+t.slice(1)},Dm=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),Wx=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var $x={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const eS=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},f)=>x.createElement("svg",{ref:f,...$x,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:Dm("lucide",s),...!l&&!Wx(u)&&{"aria-hidden":"true"},...u},[...c.map(([h,m])=>x.createElement(h,m)),...Array.isArray(l)?l:[l]]));const qe=(e,t)=>{const r=x.forwardRef(({className:i,...s},l)=>x.createElement(eS,{ref:l,iconNode:t,className:Dm(`lucide-${Jx(Lm(e))}`,`lucide-${e}`,i),...s}));return r.displayName=Lm(e),r};const AS=qe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const km=qe("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);const tS=qe("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const nS=qe("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const Du=qe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Qi=qe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const jm=qe("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const Km=qe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const rS=qe("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const iS=qe("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);const aS=qe("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const sS=qe("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const lS=qe("euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);const oS=qe("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const cS=qe("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const uS=qe("indian-rupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]]);const fS=qe("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const dS=qe("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);const Dl=qe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const hS=qe("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);const gS=qe("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const Vm=qe("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const pS=qe("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);const ku=qe("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const mS=qe("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const BS=qe("phone-off",[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]);const Gm=qe("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const wS=qe("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);const zm=qe("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const kl=qe("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);const jl=qe("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const CS=qe("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);const yS=qe("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const ns=qe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const ES=qe("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),Pm=e=>{let t;const r=new Set,i=(h,m)=>{const B=typeof h=="function"?h(t):h;if(!Object.is(B,t)){const C=t;t=m??(typeof B!="object"||B===null)?B:Object.assign({},t,B),r.forEach(w=>w(t,C))}},s=()=>t,u={setState:i,getState:s,getInitialState:()=>f,subscribe:h=>(r.add(h),()=>r.delete(h))},f=t=e(i,s,u);return u},vS=(e=>e?Pm(e):Pm),bS=e=>e;function xS(e,t=bS){const r=Ia.useSyncExternalStore(e.subscribe,Ia.useCallback(()=>t(e.getState()),[e,t]),Ia.useCallback(()=>t(e.getInitialState()),[e,t]));return Ia.useDebugValue(r),r}const Ym=e=>{const t=vS(e),r=i=>xS(t,i);return Object.assign(r,t),r},SS=(e=>e?Ym(e):Ym);function Xm(e,t){let r;try{r=e()}catch{return}return{getItem:s=>{var l;const c=f=>f===null?null:JSON.parse(f,void 0),u=(l=r.getItem(s))!=null?l:null;return u instanceof Promise?u.then(c):c(u)},setItem:(s,l)=>r.setItem(s,JSON.stringify(l,void 0)),removeItem:s=>r.removeItem(s)}}const ju=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(i){return ju(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return ju(i)(r)}}}},QS=(e,t)=>(r,i,s)=>{let l={storage:Xm(()=>localStorage),partialize:b=>b,version:0,merge:(b,U)=>({...U,...b}),...t},c=!1;const u=new Set,f=new Set;let h=l.storage;if(!h)return e((...b)=>{r(...b)},i,s);const m=()=>{const b=l.partialize({...i()});return h.setItem(l.name,{state:b,version:l.version})},B=s.setState;s.setState=(b,U)=>(B(b,U),m());const C=e((...b)=>(r(...b),m()),i,s);s.getInitialState=()=>C;let w;const E=()=>{var b,U;if(!h)return;c=!1,u.forEach(N=>{var M;return N((M=i())!=null?M:C)});const Q=((U=l.onRehydrateStorage)==null?void 0:U.call(l,(b=i())!=null?b:C))||void 0;return ju(h.getItem.bind(h))(l.name).then(N=>{if(N)if(typeof N.version=="number"&&N.version!==l.version){if(l.migrate){const M=l.migrate(N.state,N.version);return M instanceof Promise?M.then(G=>[!0,G]):[!0,M]}}else return[!1,N.state];return[!1,void 0]}).then(N=>{var M;const[G,V]=N;if(w=l.merge(V,(M=i())!=null?M:C),r(w,!0),G)return m()}).then(()=>{Q?.(w,void 0),w=i(),c=!0,f.forEach(N=>N(w))}).catch(N=>{Q?.(void 0,N)})};return s.persist={setOptions:b=>{l={...l,...b},b.storage&&(h=b.storage)},clearStorage:()=>{h?.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>E(),hasHydrated:()=>c,onHydrate:b=>(u.add(b),()=>{u.delete(b)}),onFinishHydration:b=>(f.add(b),()=>{f.delete(b)})},l.skipHydration||E(),w||C},jt={USER:"user",ASSISTANT:"assistant"};var BA=(e=>(e.IDLE="idle",e.LISTENING="listening",e.ERROR="error",e.PROCESSING="processing",e.TRANSCRIBING="transcribing",e))(BA||{}),PA=(e=>(e.CONNECTED="connected",e.NOT_CONNECTED="not_connected",e.CONNECTING="connecting",e))(PA||{});let ir="";const US=e=>{ir=`med-assist-store-${e}`},qm={sessionId:"",sessionToken:"",isStreaming:!1,recordingStatus:BA.IDLE,isWaitingForResponse:!1,error:null,isTimeoutError:!1,startNewConnection:!1,showRetryButton:!1,chats:{},inlineText:null,isRefreshingSession:!1,ConnectionStatus:PA.CONNECTING,streamingTimeoutId:null,responseTimeoutId:null,lastStreamingActivity:null,progressMessage:null,fileUploadPerSession:0,elicitationState:{},toastMessage:null},Ze=SS()(QS((e,t)=>({sessionId:"",setSessionId:r=>e({sessionId:r}),sessionToken:"",setSessionToken:r=>e({sessionToken:r}),initialMessage:null,setInitialMessage:r=>e({initialMessage:r}),agentId:"",setAgentId:r=>e({agentId:r}),userId:"",setUserId:r=>e({userId:r}),context:null,setContext:r=>e({context:r}),connectionStatus:PA.CONNECTING,setConnectionStatus:r=>e({connectionStatus:r}),isStreaming:!1,setIsStreaming:r=>e({isStreaming:r}),isWaitingForResponse:!1,setIsWaitingForResponse:r=>e({isWaitingForResponse:r}),progressMessage:null,setProgressMessage:r=>e({progressMessage:r}),recordingStatus:BA.IDLE,setRecordingStatus:r=>e({recordingStatus:r}),startNewConnection:!1,setStartNewConnection:r=>e({startNewConnection:r}),fileUploadPerSession:0,setFileUploadPerSession:r=>e({fileUploadPerSession:r}),elicitationState:{},setElicitationState:r=>e({elicitationState:r}),upsertElicitationState:(r,i)=>{const s=t().elicitationState;e({elicitationState:{...s,[r]:i}})},toastMessage:null,setToastMessage:r=>e({toastMessage:r}),inlineText:null,setInlineText:r=>e({inlineText:r}),isBotIconAnimating:!1,setIsBotIconAnimating:r=>e({isBotIconAnimating:r}),isMobile:!1,setIsMobile:r=>e({isMobile:r}),displayMode:"widget",setDisplayMode:r=>e({displayMode:r}),toggleDisplayMode:()=>e({displayMode:t().displayMode==="full"?"widget":"full"}),initialDisplayMode:"widget",setInitialDisplayMode:r=>e({initialDisplayMode:r}),chats:{},addMessageToSession:(r,i)=>{e(s=>({chats:{...s.chats,[r]:[...s.chats[r]||[],i]}}))},updateMessageInSession:(r,i,s)=>e(l=>({chats:{...l.chats,[r]:(l.chats[r]||[]).map(c=>c.id===i?{...c,...s}:c)}})),getMessagesForSession:r=>t().chats[r]||[],clearMessagesForSession:r=>e(i=>({chats:{...i.chats,[r]:[]}})),clearAllChats:()=>e({chats:{}}),error:null,setError:r=>e({error:r}),clearError:()=>e({error:null,isTimeoutError:!1,showRetryButton:!1,startNewConnection:!1}),showRetryButton:!1,setShowRetryButton:r=>e({showRetryButton:r}),isTimeoutError:!1,setTimeoutError:r=>e({isTimeoutError:r}),clearSession:async()=>{e(qm),await sessionStorage.removeItem(ir||`med-assist-store-${t().agentId}`)},streamingTimeoutId:null,setStreamingTimeoutId:r=>e({streamingTimeoutId:r}),clearStreamingTimeout:()=>{const r=t();r.streamingTimeoutId&&(clearTimeout(r.streamingTimeoutId),e({streamingTimeoutId:null}))},responseTimeoutId:null,setResponseTimeoutId:r=>e({responseTimeoutId:r}),clearResponseTimeout:()=>{const r=t();r.responseTimeoutId&&(clearTimeout(r.responseTimeoutId),e({responseTimeoutId:null}))},lastStreamingActivity:null,setLastStreamingActivity:r=>e({lastStreamingActivity:r})}),{name:"med-assist-store",storage:Xm(()=>({getItem:()=>ir?sessionStorage.getItem(ir):null,setItem:(e,t)=>{ir&&sessionStorage.setItem(ir,t)},removeItem:()=>{ir&&sessionStorage.removeItem(ir)}})),partialize:e=>({agentId:e.agentId,userId:e.userId,context:e.context,chats:e.chats,sessionId:e.sessionId,sessionToken:e.sessionToken,initialMessage:e.initialMessage,connectionStatus:e.connectionStatus,elicitationState:e.elicitationState})})),FS=e=>{const t=`med-assist-store-${e}`;let r=null;try{const i=sessionStorage.getItem(t);if(i){const s=JSON.parse(i);s?.state&&(r=s.state)}}catch{}Ze.setState(qm),r&&Ze.setState(r)},Ku=x.createContext(null),TS=({children:e})=>{const[t,r]=x.useState(null);return g.jsx(Ku.Provider,{value:{synapse:t,setSynapse:r},children:e})},NS=()=>{const e=x.useContext(Ku);if(!e)throw new Error("useSynapse must be used within a SynapseProvider");return e.synapse},IS=()=>{const e=x.useContext(Ku);if(!e)throw new Error("useSynapseSetter must be used within a SynapseProvider");return e.setSynapse},_S=()=>{const[e,t]=x.useState(de.VOICE_AGENT_STATE.IDLE),[r,i]=x.useState(!1),s=NS(),{setError:l}=Ze();x.useEffect(()=>{if(!s)return;const m=s.voice,B=w=>{t(w)},C=()=>{l({title:"Voice connection failed. Please try again."})};return m.on(de.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.on(de.VOICE_AGENT_EVENTS.ERROR,C),()=>{m.off(de.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.off(de.VOICE_AGENT_EVENTS.ERROR,C)}},[s,l]);const c=x.useCallback(async()=>{if(!s){l({title:"Voice connection failed. Please try again."});return}await s.voice.connect()},[s,l]),u=x.useCallback(()=>{s?.voice.disconnect(),r&&i(!1)},[s]),f=x.useCallback(()=>{s?.voice.reset(),r&&i(!1)},[s]),h=x.useCallback(()=>{i(m=>!m),s?.voice.toggleMute()},[s]);return{state:e,isMuted:r,connect:c,disconnect:u,reset:f,toggleMute:h}},Fn=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("rounded-xl bg-elicitationBg text-card-foreground shadow",e),...t}));Fn.displayName="Card";const Vu=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("flex flex-col space-y-1.5 p-6",e),...t}));Vu.displayName="CardHeader";const Jm=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("font-semibold leading-none tracking-tight",e),...t}));Jm.displayName="CardTitle";const HS=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("text-sm text-muted-foreground",e),...t}));HS.displayName="CardDescription";const Kl=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("p-6 pt-0",e),...t}));Kl.displayName="CardContent";const Zm=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("flex items-center p-6 pt-0",e),...t}));Zm.displayName="CardFooter";function MS(e,t=[]){let r=[];function i(l,c){const u=x.createContext(c);u.displayName=l+"Context";const f=r.length;r=[...r,c];const h=B=>{const{scope:C,children:w,...E}=B,b=C?.[e]?.[f]||u,U=x.useMemo(()=>E,Object.values(E));return g.jsx(b.Provider,{value:U,children:w})};h.displayName=l+"Provider";function m(B,C){const w=C?.[e]?.[f]||u,E=x.useContext(w);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>x.createContext(c));return function(u){const f=u?.[e]||l;return x.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return s.scopeName=e,[i,OS(s,...t)]}function OS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var RS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gu=RS.reduce((e,t)=>{const r=Mm(`Primitive.${t}`),i=x.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),zu={exports:{}},Pu={};var Wm;function LS(){if(Wm)return Pu;Wm=1;var e=Ql();function t(B,C){return B===C&&(B!==0||1/B===1/C)||B!==B&&C!==C}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function u(B,C){var w=C(),E=i({inst:{value:w,getSnapshot:C}}),b=E[0].inst,U=E[1];return l(function(){b.value=w,b.getSnapshot=C,f(b)&&U({inst:b})},[B,w,C]),s(function(){return f(b)&&U({inst:b}),B(function(){f(b)&&U({inst:b})})},[B]),c(w),w}function f(B){var C=B.getSnapshot;B=B.value;try{var w=C();return!r(B,w)}catch{return!0}}function h(B,C){return C()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return Pu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Pu}var $m;function DS(){return $m||($m=1,zu.exports=LS()),zu.exports}var kS=DS();function jS(){return kS.useSyncExternalStore(KS,()=>!0,()=>!1)}function KS(){return()=>{}}var Yu="Avatar",[VS]=MS(Yu),[GS,e0]=VS(Yu),A0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,...i}=e,[s,l]=x.useState("idle");return g.jsx(GS,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:g.jsx(Gu.span,{...i,ref:t})})});A0.displayName=Yu;var t0="AvatarImage",n0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...l}=e,c=e0(t0,r),u=zS(i,l),f=nr(h=>{s(h),c.onImageLoadingStatusChange(h)});return tr(()=>{u!=="idle"&&f(u)},[u,f]),u==="loaded"?g.jsx(Gu.img,{...l,ref:t,src:i}):null});n0.displayName=t0;var r0="AvatarFallback",i0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:i,...s}=e,l=e0(r0,r),[c,u]=x.useState(i===void 0);return x.useEffect(()=>{if(i!==void 0){const f=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(f)}},[i]),c&&l.imageLoadingStatus!=="loaded"?g.jsx(Gu.span,{...s,ref:t}):null});i0.displayName=r0;function a0(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function zS(e,{referrerPolicy:t,crossOrigin:r}){const i=jS(),s=x.useRef(null),l=i?(s.current||(s.current=new window.Image),s.current):null,[c,u]=x.useState(()=>a0(l,e));return tr(()=>{u(a0(l,e))},[l,e]),tr(()=>{const f=B=>()=>{u(B)};if(!l)return;const h=f("loaded"),m=f("error");return l.addEventListener("load",h),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof r=="string"&&(l.crossOrigin=r),()=>{l.removeEventListener("load",h),l.removeEventListener("error",m)}},[l,r,t]),c}var s0=A0,l0=n0,o0=i0;const Xu=x.forwardRef(({className:e,...t},r)=>g.jsx(s0,{ref:r,className:he("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Xu.displayName=s0.displayName;const c0=x.forwardRef(({className:e,...t},r)=>g.jsx(l0,{ref:r,className:he("aspect-square h-full w-full",e),...t}));c0.displayName=l0.displayName;const qu=x.forwardRef(({className:e,...t},r)=>g.jsx(o0,{ref:r,className:he("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));qu.displayName=o0.displayName;const u0=x.createContext(!1);function PS({enabled:e,children:t}){return g.jsx(u0.Provider,{value:e,children:t})}function YS(){return x.useContext(u0)}const f0="(max-width: 768px), (pointer: coarse)",d0=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;function XS(){if(typeof window>"u")return!1;const e=window.matchMedia?.(f0)?.matches??!1,t=d0.test(navigator?.userAgent??"");return e||t}function h0(){const[e,t]=x.useState(XS);return x.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(f0),i=d0.test(navigator?.userAgent??""),s=()=>t(r.matches||i);return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),e}function qS({onClose:e,showCloseButton:t=!0,title:r,titleImg:i,tagline:s,iconUrl:l,startNewConversation:c,voiceAgentState:u="idle",headerTinted:f=!1,onToggleDisplayMode:h}){const m=h0(),C=YS()&&!m,w=Ze(_=>_.displayMode)==="full",E=Ze(_=>_.initialDisplayMode)==="full",U=(w?!1:f)?"text-primary-foreground":"text-foreground",Q=Ze(_=>_.connectionStatus),[N,M]=x.useState(!1),G=x.useRef(null),V=x.useMemo(()=>u==="connected"||u==="connecting"||u==="listening"||u==="speaking"||u==="thinking",[u]),F=x.useCallback(()=>{N||(M(!0),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{G.current=null,M(!1)},6e3),c())},[N,c]);x.useEffect(()=>{Q===de.ConnectionStatus.CONNECTED&&(M(!1),G.current&&clearTimeout(G.current))},[Q]);const R=(()=>{switch(Q){case de.ConnectionStatus.CONNECTED:return{dotColor:"bg-green-500",text:s||"Online",textColor:"text-green-600"};case de.ConnectionStatus.CONNECTING:return{dotColor:"bg-amber-500",text:"Connecting",textColor:"text-amber-600"};case de.ConnectionStatus.NOT_CONNECTED:return{dotColor:"bg-red-500",text:"Not Connected",textColor:"text-red-600"};default:return{dotColor:"bg-text-tertiary",text:"Not Connected",textColor:"text-text-secondary"}}})();return g.jsx("div",{className:"px-6 py-3",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"relative flex-shrink-0",children:[g.jsx(Xu,{className:"w-12 h-12 bg-gradient-to-br from-primary to-primary flex-shrink-0 shadow-md ring-0",children:g.jsx(qu,{className:"text-primary-foreground font-bold text-lg bg-transparent",children:l?g.jsx("img",{src:l,alt:"Bot Icon",className:"w-12 h-12 rounded-full object-cover"}):g.jsx("span",{className:"text-primary-foreground font-bold text-lg bg-transparent",children:"MC"})})}),g.jsx("div",{className:he("absolute bottom-0 right-0 w-3.5 h-3.5 rounded-full border-2 border-white shadow-sm",R.dotColor,Q===de.ConnectionStatus.CONNECTING&&"animate-pulse")})]}),g.jsxs("div",{className:"flex flex-col",children:[i?g.jsx("img",{src:i,alt:"",className:"h-6 object-contain"}):g.jsx("p",{className:he("text-lg font-semibold synapse-header-title",U),children:r||"Health Assist"}),g.jsx("div",{className:"flex items-center gap-1.5",children:g.jsx("span",{className:"text-xs font-medium",style:{color:"var(--header-tagline)"},children:R.text})})]})]}),g.jsxs("div",{className:he("flex items-center",!C&&"gap-2"),children:[!V&&g.jsx(_e,{type:"button",variant:"ghost",size:"icon",title:"Start New Chat",onClick:F,disabled:N,className:he("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none",U),children:g.jsx(Vm,{className:"w-5 h-5"})}),C&&g.jsx(_e,{onClick:h,type:"button",variant:"ghost",size:"icon",title:w?"Exit fullscreen":"Enter fullscreen",className:he("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",U),children:w?g.jsx(mS,{className:"w-8 h-8"}):g.jsx(gS,{className:"w-8 h-8"})}),(t||!E)&&g.jsx(_e,{onClick:e,type:"button",variant:"ghost",size:"icon",title:"Close",className:he("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",U),children:g.jsx(ns,{className:"w-8 h-8"})})]})]})})}const Ju=5,JS=10*1024*1024,Vl={width:384,height:600},Gl=20,ZS=150;function WS({defaultPosition:e,enabled:t=!0,onDragStart:r,onDragEnd:i}={}){const s=x.useCallback(()=>typeof window>"u"?{x:0,y:0}:{x:window.innerWidth-Vl.width-Gl,y:window.innerHeight-Vl.height-Gl},[]),[l,c]=x.useState(()=>e??s()),[u,f]=x.useState(!1),h=x.useRef({x:0,y:0}),m=x.useRef(null),B=x.useRef(!1);x.useEffect(()=>{t||(B.current=!1)},[t]),x.useLayoutEffect(()=>{!t||B.current||typeof window>"u"||(c(e||s()),B.current=!0)},[t,e,s]),x.useEffect(()=>{if(!t||typeof window>"u")return;let b=null;const U=()=>{c(N=>{const M=Math.max(0,window.innerWidth-Vl.width-Gl),G=Math.max(0,window.innerHeight-Vl.height-Gl),V=Math.max(0,Math.min(N.x,M)),F=Math.max(0,Math.min(N.y,G));return V===N.x&&F===N.y?N:{x:V,y:F}})},Q=()=>{b!==null&&clearTimeout(b),b=setTimeout(U,ZS)};return window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q),b!==null&&clearTimeout(b)}},[t]);const C=x.useCallback(b=>{if(!t)return;if(!b.target.closest(".synapse-chat-widget-header")){f(!1);return}b.preventDefault(),f(!0);const Q=m.current;if(Q){const N=Q.getBoundingClientRect();h.current={x:b.clientX-N.left,y:b.clientY-N.top}}else h.current={x:b.clientX-l.x,y:b.clientY-l.y};r?.()},[t,l.x,l.y,r]),w=x.useCallback(b=>{if(!t||!u)return;const U=b.clientX-h.current.x,Q=b.clientY-h.current.y,N=window.innerWidth-(m.current?.offsetWidth||0),M=window.innerHeight-(m.current?.offsetHeight||0),G=Math.max(0,Math.min(U,N)),V=Math.max(0,Math.min(Q,M));c({x:G,y:V})},[u,t]),E=x.useCallback(()=>{!t||!u||(f(!1),i?.())},[u,i]);return x.useEffect(()=>{if(!t)return;const b=m.current;if(b)return b.addEventListener("mousedown",C),()=>{b.removeEventListener("mousedown",C)}},[t,C]),x.useEffect(()=>{if(u)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E),document.body.style.cursor="",document.body.style.userSelect=""}},[u,w,E]),{position:l,isDragging:u,elementRef:m,setPosition:c}}const Zu="#6B5CE0",zl={background:"#F0F0F0",backgroundImage:void 0,primary:Zu,textColor:"black"},$S="rgba(0, 0, 0, 0.4)",eQ="24px";function AQ(e){if(e==="dark")return"white";if(e==="light")return"black"}function tQ(e){const t=e?.primary??e?.primaryColor??zl.primary,r=e?.textColor??AQ(e?.mode);return{background:e?.background??zl.background,backgroundImage:e?.backgroundImage??zl.backgroundImage,primary:t,primaryColor:t,textColor:r??zl.textColor,mode:e?.mode,headerTinted:e?.headerTinted,secondaryColor:e?.secondaryColor,tertiaryColor:e?.tertiaryColor}}function nQ(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16)/255,r=parseInt(e.substring(2,4),16)/255,i=parseInt(e.substring(4,6),16)/255,s=Math.max(t,r,i),l=Math.min(t,r,i);let c=0,u=0;const f=(s+l)/2;if(s!==l){const m=s-l;switch(u=f>.5?m/(2-s-l):m/(s+l),s){case t:c=((r-i)/m+(r<i?6:0))/6;break;case r:c=((i-t)/m+2)/6;break;case i:c=((t-r)/m+4)/6;break}}c=Math.round(c*360),u=Math.round(u*100);const h=Math.round(f*100);return`${c} ${u}% ${h}%`}function rQ(e){const t=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(!t)throw new Error("Invalid RGB format");const r=parseInt(t[1],10)/255,i=parseInt(t[2],10)/255,s=parseInt(t[3],10)/255,l=Math.max(r,i,s),c=Math.min(r,i,s);let u=0,f=0;const h=(l+c)/2;if(l!==c){const B=l-c;switch(f=h>.5?B/(2-l-c):B/(l+c),l){case r:u=((i-s)/B+(i<s?6:0))/6;break;case i:u=((s-r)/B+2)/6;break;case s:u=((r-i)/B+4)/6;break}}u=Math.round(u*360),f=Math.round(f*100);const m=Math.round(h*100);return`${u} ${f}% ${m}%`}function iQ(e){const t=e.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);if(!t)throw new Error("Invalid HSL format");return`${t[1]} ${t[2]}% ${t[3]}%`}function Wu(e){if(!e||typeof e!="string")throw new Error("Color must be a non-empty string");const t=e.trim();if(t.startsWith("#"))return nQ(t);if(t.startsWith("rgb"))return rQ(t);if(t.startsWith("hsl"))return iQ(t);if(/^\d+\s+\d+%\s+\d+%$/.test(t))return t;throw new Error(`Unsupported color format: ${e}`)}function g0(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);return t?parseInt(t[3],10)/100:.5}function $u(e){return g0(e)>.5?"0 0% 9%":"0 0% 98%"}function aQ(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return"0 0% 96%";const r=t[1],i=Math.max(0,parseInt(t[2],10)-5);return`${r} ${i}% 96%`}function sQ(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return{50:"262 83% 98%",100:"262 83% 96%",200:"262 83% 92%",300:"262 83% 85%",400:"262 83% 75%",500:"262 83% 58%",600:"262 83% 50%",700:"262 83% 40%",800:"262 83% 30%",900:"262 83% 20%"};const r=parseInt(t[1],10),i=parseInt(t[2],10),s=parseInt(t[3],10);return{50:`${r} ${Math.max(0,i-20)}% ${Math.min(98,s+40)}%`,100:`${r} ${Math.max(0,i-15)}% ${Math.min(96,s+35)}%`,200:`${r} ${Math.max(0,i-10)}% ${Math.min(92,s+30)}%`,300:`${r} ${Math.max(0,i-5)}% ${Math.min(85,s+20)}%`,400:`${r} ${i}% ${Math.min(75,s+10)}%`,500:`${r} ${i}% ${s}%`,600:`${r} ${Math.min(100,i+5)}% ${Math.max(50,s-10)}%`,700:`${r} ${Math.min(100,i+10)}% ${Math.max(40,s-20)}%`,800:`${r} ${Math.min(100,i+15)}% ${Math.max(30,s-30)}%`,900:`${r} ${Math.min(100,i+20)}% ${Math.max(20,s-40)}%`}}function p0(e,t){const r=t.primary??Zu,i=t.textColor??"black",s=!!t.backgroundImage,l=t.mode==="dark"||i==="white",c=t.headerTinted??!1,u=(w,E)=>{const b=e instanceof ShadowRoot?e.host:e;b instanceof HTMLElement&&b.style.setProperty(w,E)};let f;try{f=Wu(r)}catch{f=Wu(Zu)}u("--primary",f),u("--primary-foreground",$u(f)),u("--ring",f),u("--border-primary",f);const h=sQ(f);for(const[w,E]of Object.entries(h))u(`--primary-${w}`,E);const m=$u(f);if(u("--color-on-primary",m),s)u("--background","0 0% 0% / 0"),u("--widget-bg-overlay","transparent");else{const w=l?"#191919":"#F0F0F0";try{u("--background",Wu(w))}catch{u("--background",l?"0 0% 10%":"0 0% 94.1%")}u("--widget-bg-overlay",`hsl(${f} / ${c?.05:.1})`)}if(l?u("--bot-message-bg","var(--black-600)"):u("--bot-message-bg","var(--white-600)"),l?u("--card","0 0% 0% / 0.6"):u("--card","0 0% 100% / 0.6"),u("--bot-message-border",aQ(l?"0 0% 100%":"0 0% 9%")),l?(u("--foreground","0 0% 100%"),u("--card-foreground","0 0% 100%"),u("--popover-foreground","0 0% 100%"),u("--muted-foreground","0 0% 70%"),u("--normal-text-color","var(--white-1000)")):(u("--foreground","0 0% 0%"),u("--card-foreground","0 0% 0%"),u("--popover-foreground","0 0% 0%"),u("--muted-foreground","0 0% 30%"),u("--normal-text-color","var(--black-1000)")),s?(u("--header-bg","transparent"),u("--header-stroke",l?"var(--white-200)":"var(--black-200)")):c?(u("--header-bg",`hsl(${f})`),u("--header-stroke",`hsl(${f} / 0.3)`)):(u("--header-bg",l?"var(--black-700)":"var(--white-700)"),u("--header-stroke",`hsl(${f} / 0.3)`)),s?(u("--footer-bg","transparent"),u("--footer-stroke",l?"var(--white-200)":"var(--black-200)")):(u("--footer-bg",l?"var(--black-700)":"var(--white-700)"),u("--footer-stroke",`hsl(${f} / 0.3)`)),c&&!s){const w=g0(m)>.5;u("--header-tagline",w?"var(--white-600)":"var(--black-600)")}else u("--header-tagline",l?"var(--white-600)":"var(--black-600)");u("--elicitation-bg",l?"var(--black-1000)":"var(--white-1000)"),u("--input-box-bg",l?"var(--white-100)":"var(--black-100)");const B=e instanceof ShadowRoot?e.host:e;B instanceof HTMLElement&&(B.setAttribute("data-text-color",i),B.setAttribute("data-header-tinted",String(c))),s?u("--popover",l?"0 0% 0% / 0.5":"0 0% 100% / 0.5"):c?u("--popover",f):u("--popover",l?"0 0% 0% / 0.7":"0 0% 100% / 0.7");const C=l?"white":"black";for(const w of[50,100,200,300,400,500,600,700,800,900,1e3])u(`--popover-${w}`,`var(--${C}-${w})`);u("--secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--surface-secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--secondary-foreground",l?"0 0% 98%":"0 0% 9%"),u("--muted",l?"0 0% 15%":"0 0% 96.1%"),u("--accent",f),u("--accent-foreground",$u(f)),s?u("--surface",l?"0 0% 0% / 0.6":"0 0% 100% / 0.6"):u("--surface",l?"0 0% 10%":"0 0% 94.1%"),u("--surface-tertiary",l?"0 0% 12%":"0 0% 98%"),u("--border-subtle",l?"0 0% 20%":"0 0% 89.8%"),u("--border-medium",l?"0 0% 30%":"0 0% 80%"),u("--text-primary",l?"0 0% 100%":"0 0% 3.9%"),u("--text-secondary",l?"0 0% 70%":"0 0% 45.1%"),u("--text-tertiary",l?"0 0% 60%":"0 0% 63.9%"),u("--text-muted",l?"0 0% 70%":"0 0% 45.1%"),u("--border",l?"0 0% 20%":"0 0% 89.8%"),u("--input",l?"0 0% 20%":"0 0% 89.8%"),s?(u("--theme-background-image",`url(${t.backgroundImage})`),u("--theme-background-blur",eQ),u("--theme-background-overlay",$S),B instanceof HTMLElement&&B.classList.add("theme-with-background")):(u("--theme-background-image","none"),u("--theme-background-blur","0px"),u("--theme-background-overlay","rgba(0, 0, 0, 0)"),B instanceof HTMLElement&&B.classList.remove("theme-with-background"))}const lQ=x.lazy(()=>Promise.resolve().then(()=>w4));function m0({isOpen:e,onClose:t,showCloseButton:r=!0,iconUrl:i,onStartNewSession:s,showStartNewChatButton:l,children:c,fullScreenEmptyState:u,title:f,titleImg:h,tagline:m,sessionId:B,chatComposer:C,environment:w,mode:E,onToggleDisplayMode:b,isAuthComponent:U,activeElicitation:Q,voiceAgentState:N,theme:M,hideWatermark:G=!1}){const[V,F]=x.useState(!1),[O,R]=x.useState(!1),_=x.useRef(null),q=E,$=q==="full",k=x.useRef(null),[se,le]=x.useState("");x.useEffect(()=>{k.current!==null&&k.current!==q&&le(q==="full"?"Switched to fullscreen mode":q==="widget"?"Switched to widget mode":"Switched to mobile layout"),k.current=q},[q]);const z=x.useMemo(()=>tQ(M),[M]),{setIsMobile:L}=Ze(v=>v),J=!!U,Ae=async v=>{if(!(!C?.onSend||O)){R(!0);try{await C.onSend(v)}finally{R(!1)}}};x.useEffect(()=>{if(!_.current)return;const v=q==="full"?{...z,headerTinted:!1}:z;p0(_.current,v),q==="full"&&!z.backgroundImage?(_.current.style.setProperty("--background","0 0% 100%"),_.current.style.setProperty("--widget-bg-overlay","transparent")):(_.current.style.removeProperty("--background"),_.current.style.removeProperty("--widget-bg-overlay"),p0(_.current,z))},[z,q]),x.useEffect(()=>{const v=()=>{const te=window?.innerWidth??0,oe=navigator?.userAgent?.toLowerCase()??"",fe=te<768||/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(oe);F(fe),L(fe)};return v(),window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[]),x.useLayoutEffect(()=>{if(!e||!V||!_.current)return;const v=_.current;let te=null,oe=null,fe=null,ge=window.visualViewport?.offsetTop??0,Le=0;const Fe=2,We=80;if(window.visualViewport){const je=()=>{if(v&&window.visualViewport){const EA=window.visualViewport.height,bA=window.visualViewport.offsetTop;te=requestAnimationFrame(()=>{v.style.transition="none",v.style.top=`${bA}px`,v.style.left="0",v.style.right="0",v.style.bottom="auto",v.style.width="100vw",v.style.height=`${EA}px`,v.style.maxHeight=`${EA}px`,v.style.minHeight=`${EA}px`,oe&&clearTimeout(oe),oe=setTimeout(()=>{v.style.transition=""},100)})}},FA=()=>{je()},mA=()=>{if(!v||!window.visualViewport)return;const EA=window.visualViewport.offsetTop,bA=Date.now();Math.abs(EA-ge)<Fe||bA-Le<We||(Le=bA,ge=EA,te=requestAnimationFrame(()=>{v.style.transition="none",v.style.top=`${EA}px`,fe&&clearTimeout(fe),fe=setTimeout(()=>{v.style.transition=""},150)}))};return window.visualViewport.addEventListener("resize",FA),window.visualViewport.addEventListener("scroll",mA),je(),()=>{te&&cancelAnimationFrame(te),oe&&clearTimeout(oe),fe&&clearTimeout(fe),window.visualViewport?.removeEventListener("resize",FA),window.visualViewport?.removeEventListener("scroll",mA),v&&(v.style.width="",v.style.height="",v.style.maxHeight="",v.style.minHeight="",v.style.transition="")}}else{const je=()=>{v&&(v.style.transition="none",v.style.top="0",v.style.left="0",v.style.right="0",v.style.bottom="auto",v.style.width="100vw",v.style.height="100svh",v.style.maxHeight="100svh",setTimeout(()=>{v.style.transition=""},100))};return window.addEventListener("resize",je),je(),()=>{window.removeEventListener("resize",je),v&&(v.style.width="",v.style.height="",v.style.maxHeight="",v.style.transition="")}}},[e,V]),x.useEffect(()=>{if(e){const v=_.current,te=window.scrollY,oe=document.body.style.cssText,fe=document.documentElement.style.overflow,ge=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${te}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",ge>0&&!V&&(document.body.style.paddingRight=`${ge}px`);let Le=0;const Fe=je=>{Le=je.touches[0].clientY},We=je=>{if(je.touches.length!==1)return;const FA=Le-je.touches[0].clientY;Le=je.touches[0].clientY;let mA=je.target;for(;mA&&mA!==v;){const{overflowY:EA}=window.getComputedStyle(mA);if((EA==="auto"||EA==="scroll")&&mA.scrollHeight>mA.clientHeight){const{scrollTop:bA,scrollHeight:Ut,clientHeight:mt}=mA,Cn=bA<=0&&FA<0,Ft=bA+mt>=Ut-1&&FA>0;if(!Cn&&!Ft)return;break}mA=mA.parentElement}je.preventDefault()};return v&&(v.addEventListener("touchstart",Fe,{passive:!0}),v.addEventListener("touchmove",We,{passive:!1})),()=>{v&&(v.removeEventListener("touchstart",Fe),v.removeEventListener("touchmove",We)),document.body.style.cssText=oe,document.documentElement.style.overflow=fe,window.scrollTo(0,te)}}},[e,V]);const{position:me,elementRef:T}=WS({enabled:e&&!V&&!$});x.useEffect(()=>{_.current&&(T.current=_.current)},[T]);const I=he("synapse-chat-widget-container","fixed m-0 p-0","box-border",!V&&!$?"transition-all duration-300":"",V?"w-screen h-[100svh]":$?"w-screen h-screen":"w-96 h-[600px]","z-[2147483647]",e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none scale-95"),P=he("w-full h-full relative","bg-background","shadow-2xl","flex","overflow-hidden",z.backgroundImage?"theme-with-background":"",V?"rounded-none border-0 flex-col":$?"rounded-none border-0 flex-row":"rounded-3xl flex-col");return g.jsxs("div",{ref:_,"data-mode":q,className:I,style:{margin:0,padding:0,border:"none",outline:"none",position:"fixed",zIndex:2147483647,fontSize:"16px",lineHeight:"2.5",userSelect:"auto",...$&&e&&{top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh"},...$&&!e&&{display:"none"},...!V&&!$&&{left:`${me.x}px`,top:`${me.y}px`,bottom:"auto",right:"auto"},...V&&{top:0,left:0,right:0,bottom:0,width:"100vw",maxHeight:"100svh",height:"100svh",backgroundColor:z.backgroundImage?"transparent":"hsl(var(--background))"}},children:[g.jsx("style",{children:`
2
10
  /* Isolate widget from host website styles */
3
11
  .synapse-chat-widget-container,
4
12
  .synapse-chat-widget-container *,
@@ -35,8 +43,8 @@ var MedAssistWidget=(function(wo){"use strict";var Qr,lA,Bl,dt,ml,wl,Cl,Co,On,Fr
35
43
  .synapse-chat-widget-container [data-radix-scroll-area-viewport] {
36
44
  overscroll-behavior: contain;
37
45
  }
38
- `}),c(nt,{className:rA,"data-text-color":T.textColor,style:x?void 0:{border:"1.5px solid hsl(var(--primary) / 0.5)"},children:[c("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:L}),!T.backgroundImage&&c("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundColor:"var(--widget-bg-overlay)"}}),T.backgroundImage&&c("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${T.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",transform:"scale(1.1)"}}),T.backgroundImage&&c("div",{className:"absolute inset-0 -z-10",style:{backgroundColor:T.textColor==="white"?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.4)"}}),c("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 h-full",children:[c("div",{className:"flex-shrink-0 sticky top-0 z-50 synapse-chat-widget-header",style:{...k?{background:"transparent"}:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--header-bg), var(--header-bg))"},borderBottom:"0.5px solid var(--header-stroke)",...!x&&!k&&{cursor:A?"grab":"default"}},children:c(F0,{onClose:e,showCloseButton:t,title:a,titleImg:l,tagline:d,iconUrl:r,startNewConversation:n,voiceAgentState:C,headerTinted:k?!1:T.headerTinted,onToggleDisplayMode:p})}),(()=>{const B=k&&!!s,J=h&&C===P.VOICE_AGENT_STATE.IDLE?c(ue,{fallback:null,children:c(R0,{value:h.value,onChange:h.onChange,onSend:z?D:h.onSend,onFileChange:h.onFileChange,onRemoveFile:h.onRemoveFile,onRecording:h.onRecording,isRecording:h.isRecording,hasAttachment:h.hasAttachment,attachmentFiles:h.attachmentFiles,isDisabled:h.isDisabled||z&&F,isMobile:x,placeholder:h.placeholder,recordingStatus:h.recordingStatus,theme:T,onStartNewChat:n,showStartNewChatButton:i,isVoiceAgentActive:h.isVoiceAgentActive,handleVoiceMode:h.handleVoiceMode,allowed:h.allowed,isAuthComponent:w,activeElicitationState:m,isFullScreen:k&&!B})}):null,AA=c(QA,{children:[u&&f==="development"&&c("div",{className:"px-6 flex justify-center items-center",children:c("p",{className:"text-[8px] text-text-secondary font-mono opacity-50",children:["Session ID: ",u]})}),!_&&c("div",{className:"px-6 py-1 flex justify-center items-center gap-1 text-foreground opacity-50",children:[c("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Powered by"}),c("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Eka Care"})]})]}),tA=s&&k?s({composer:B?J:null,composerFooter:B?AA:null}):null;return c(QA,{children:[c("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col relative",children:tA??o}),h&&!B&&c("div",{className:K("flex-shrink-0 sticky bottom-0 z-50"),style:{},children:[c("div",{className:K(k&&"max-w-2xl mx-auto w-full"),children:J}),AA]})]})})()]})]})]})}function D0({state:A}){switch(A){case"speaking":return c(G0,{});case"thinking":return c(V0,{});case"listening":return c(K0,{});default:return c(P0,{})}}function P0(){return c("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[c("defs",{children:[c("clipPath",{id:"voi-c",children:c("circle",{cx:"120",cy:"120",r:"112"})}),c("filter",{id:"voi-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.009",numOctaves:"3",seed:"3",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009",dur:"30s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"18"})]}),c("filter",{id:"voi-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.006",numOctaves:"3",seed:"9",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006",dur:"25s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),c("filter",{id:"voi-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.006 0.011",numOctaves:"3",seed:"15",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011",dur:"35s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"14",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),c("filter",{id:"voi-gl",children:c("feGaussianBlur",{stdDeviation:"14"})})]}),c("g",{clipPath:"url(#voi-c)",children:[c("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.06"}),c("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:[c("ellipse",{cx:"130",cy:"125",rx:"95",ry:"95",fill:"currentColor",opacity:"0.12",children:c("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"12s",repeatCount:"indefinite"})}),c("ellipse",{cx:"108",cy:"112",rx:"85",ry:"85",fill:"currentColor",opacity:"0.1",children:c("animate",{attributeName:"opacity",values:"0.07;0.13;0.07",dur:"10s",repeatCount:"indefinite"})})]}),c("g",{filter:"url(#voi-f1)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.22",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"40s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"85;78;85",dur:"12s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"65;72;65",dur:"12s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voi-f2)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"132",cy:"140",rx:"60",ry:"80",fill:"currentColor",opacity:"0.18",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"35s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"60;68;60",dur:"10s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"80;72;80",dur:"10s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voi-f3)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"105",cy:"130",rx:"50",ry:"40",fill:"currentColor",opacity:"0.2",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"30s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"50;44;50",dur:"9s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"40;48;40",dur:"9s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:c("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.1",children:[c("animate",{attributeName:"r",values:"28;34;28",dur:"8s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"8s",repeatCount:"indefinite"})]})})]}),c("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.06",strokeWidth:"0.6"})]})}function K0(){return c("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[c("defs",{children:[c("clipPath",{id:"vol-c",children:c("circle",{cx:"120",cy:"120",r:"112"})}),c("filter",{id:"vol-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"4",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01",dur:"15s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"22",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"6"})]}),c("filter",{id:"vol-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"10",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007",dur:"12s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"18",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),c("filter",{id:"vol-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"16",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012",dur:"18s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),c("filter",{id:"vol-gl",children:c("feGaussianBlur",{stdDeviation:"5"})})]}),c("g",{clipPath:"url(#vol-c)",children:[c("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.07"}),c("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"120",rx:"95",ry:"70",fill:"currentColor",opacity:"0.3",children:[c("animate",{attributeName:"rx",values:"95;60;100;55;95",dur:"3.5s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"70;100;58;95;70",dur:"3.5s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"120",rx:"55",ry:"85",fill:"currentColor",opacity:"0.26",children:[c("animate",{attributeName:"rx",values:"55;88;48;82;55",dur:"4s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"85;50;90;55;85",dur:"4s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vol-f3)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"120",rx:"65",ry:"42",fill:"currentColor",opacity:"0.28",children:[c("animate",{attributeName:"rx",values:"65;38;70;35;65",dur:"3s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"42;72;38;68;42",dur:"3s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"120",rx:"40",ry:"72",fill:"currentColor",opacity:"0.2",children:[c("animate",{attributeName:"rx",values:"40;70;35;65;40",dur:"3.5s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"72;40;78;42;72",dur:"3.5s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"120",rx:"78",ry:"55",fill:"currentColor",opacity:"0.2",children:[c("animate",{attributeName:"rx",values:"78;48;82;45;78",dur:"4.5s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"55;80;50;78;55",dur:"4.5s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vol-gl)",style:{mixBlendMode:"multiply"},children:c("circle",{cx:"120",cy:"120",r:"30",fill:"currentColor",opacity:"0.14",children:[c("animate",{attributeName:"r",values:"30;45;22;42;30",dur:"3.5s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.14;0.24;0.1;0.22;0.14",dur:"3.5s",repeatCount:"indefinite"})]})})]}),c("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.07",strokeWidth:"0.6"})]})}function V0(){return c("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[c("defs",{children:[c("clipPath",{id:"voth-c",children:c("circle",{cx:"120",cy:"120",r:"112"})}),c("filter",{id:"voth-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"6",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01",dur:"10s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"15"})]}),c("filter",{id:"voth-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"12",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007",dur:"8s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"24",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"14"})]}),c("filter",{id:"voth-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"18",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012",dur:"12s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"13"})]}),c("filter",{id:"voth-gl",children:c("feGaussianBlur",{stdDeviation:"10"})})]}),c("g",{clipPath:"url(#voth-c)",children:[c("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),c("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:[c("circle",{cx:"120",cy:"120",r:"60",fill:"currentColor",opacity:"0.15",children:[c("animate",{attributeName:"r",values:"60;90;60",dur:"1.8s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.18;0.08;0.18",dur:"1.8s",repeatCount:"indefinite"})]}),c("circle",{cx:"120",cy:"120",r:"45",fill:"currentColor",opacity:"0.12",children:[c("animate",{attributeName:"r",values:"45;75;45",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"}),c("animate",{attributeName:"opacity",values:"0.15;0.06;0.15",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"})]})]}),c("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.35",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"14s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"85;70;90;75;85",dur:"2.4s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"65;80;60;78;65",dur:"2.4s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"132",cy:"138",rx:"60",ry:"82",fill:"currentColor",opacity:"0.3",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"12s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"60;78;55;72;60",dur:"2.4s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"82;65;85;68;82",dur:"2.4s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voth-f3)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"108",cy:"132",rx:"52",ry:"38",fill:"currentColor",opacity:"0.32",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"10s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"52;40;55;42;52",dur:"2s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"38;52;35;50;38",dur:"2s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"95",rx:"90",ry:"22",fill:"currentColor",opacity:"0.24",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"11s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"22;38;22",dur:"1.8s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"140",cy:"98",rx:"38",ry:"28",fill:"currentColor",opacity:"0.25",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"7s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"38;28;42;30;38",dur:"2s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"28;40;25;38;28",dur:"2s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:c("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.2",children:[c("animate",{attributeName:"r",values:"28;42;30;38;28",dur:"2s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.15;0.28;0.18;0.25;0.15",dur:"2s",repeatCount:"indefinite"})]})})]}),c("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function G0(){return c("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[c("defs",{children:[c("clipPath",{id:"vot-c",children:c("circle",{cx:"120",cy:"120",r:"112"})}),c("filter",{id:"vot-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.012",numOctaves:"4",seed:"5",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012",dur:"7s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"35",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"8"})]}),c("filter",{id:"vot-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.011 0.008",numOctaves:"4",seed:"11",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008",dur:"6s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"30",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),c("filter",{id:"vot-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[c("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.014",numOctaves:"4",seed:"17",result:"n",children:c("animate",{attributeName:"baseFrequency",values:"0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014",dur:"8s",repeatCount:"indefinite"})}),c("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),c("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),c("filter",{id:"vot-gl",children:c("feGaussianBlur",{stdDeviation:"7"})})]}),c("g",{clipPath:"url(#vot-c)",children:[c("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),c("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"108",cy:"98",rx:"100",ry:"80",fill:"currentColor",opacity:"0.38",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"8s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"100;72;105;78;92;100",dur:"3.2s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"80;100;72;95;82;80",dur:"3.2s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.38;0.24;0.4;0.26;0.36;0.38",dur:"3.2s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"135",cy:"138",rx:"85",ry:"100",fill:"currentColor",opacity:"0.34",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"6s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"85;105;70;98;80;85",dur:"2.8s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"100;72;95;68;92;100",dur:"2.8s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.34;0.22;0.36;0.24;0.32;0.34",dur:"2.8s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"102",cy:"132",rx:"75",ry:"60",fill:"currentColor",opacity:"0.36",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"5s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"75;52;78;55;70;75",dur:"2.4s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"60;80;55;76;62;60",dur:"2.4s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.36;0.24;0.38;0.26;0.34;0.36",dur:"2.4s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"100",rx:"100",ry:"32",fill:"currentColor",opacity:"0.28",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"32;52;28;48;35;32",dur:"2.6s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"100;80;105;85;95;100",dur:"2.6s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"120",cy:"120",rx:"32",ry:"100",fill:"currentColor",opacity:"0.22",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"5s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"32;55;28;50;35;32",dur:"3s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"100;75;105;80;95;100",dur:"3s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:c("ellipse",{cx:"138",cy:"96",rx:"55",ry:"45",fill:"currentColor",opacity:"0.3",children:[c("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4.5s",repeatCount:"indefinite"}),c("animate",{attributeName:"rx",values:"55;38;58;40;50;55",dur:"2.2s",repeatCount:"indefinite"}),c("animate",{attributeName:"ry",values:"45;62;42;58;48;45",dur:"2.2s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.3;0.2;0.32;0.22;0.28;0.3",dur:"2.2s",repeatCount:"indefinite"})]})}),c("g",{filter:"url(#vot-gl)",style:{mixBlendMode:"multiply"},children:c("circle",{cx:"120",cy:"118",r:"40",fill:"currentColor",opacity:"0.18",children:[c("animate",{attributeName:"r",values:"38;55;35;50;40;38",dur:"2.8s",repeatCount:"indefinite"}),c("animate",{attributeName:"opacity",values:"0.15;0.3;0.18;0.26;0.16;0.15",dur:"2.8s",repeatCount:"indefinite"})]})})]}),c("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function z0({state:A,isMuted:e,onEndCall:t,onClose:r,onToggleMute:n,agentName:i="Health Assist",textColor:o="white"}){const[s,a]=G(!1);if(A===P.VOICE_AGENT_STATE.ERROR)return c("div",{className:"flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8",children:[c("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:c(Ym,{className:"w-7 h-7 text-destructive"})}),c("div",{className:"text-center",children:[c("p",{className:"text-base font-semibold text-foreground",children:"Call Disconnected"}),c("p",{className:"text-sm text-muted-foreground mt-1",children:"Something went wrong. Please try again."})]}),c(uA,{onClick:r,variant:"outline",className:"mt-2",children:"Close"})]});const l=()=>{if(e)return"You are muted";switch(A){case P.VOICE_AGENT_STATE.CONNECTING:return`Please wait while we are
39
- connecting to an AI agent...`;case P.VOICE_AGENT_STATE.SPEAKING:return`${i} is speaking...`;case P.VOICE_AGENT_STATE.LISTENING:return"You are speaking...";case P.VOICE_AGENT_STATE.THINKING:return"One moment please...";case P.VOICE_AGENT_STATE.MUTED:return"You are muted";case P.VOICE_AGENT_STATE.DISCONNECTING:return"Ending session...";default:return"Go ahead, I'm listening..."}},d=A===P.VOICE_AGENT_STATE.SPEAKING||A===P.VOICE_AGENT_STATE.CONNECTING||A===P.VOICE_AGENT_STATE.DISCONNECTING;return c("div",{className:"flex-1 flex flex-col bg-surface relative",children:[c("style",{children:W0}),c("div",{className:"py-2.5 text-center bg-primary/15",children:c("span",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-primary",children:"Voice Mode Active"})}),c("div",{className:"flex-1 flex flex-col items-center justify-center gap-5",children:[c("div",{className:"w-[200px] h-[200px] text-primary",children:c(D0,{state:A})}),c("p",{className:"text-base text-center px-8 whitespace-pre-line leading-6 text-muted-foreground",children:l()})]}),c("div",{children:[c("div",{className:"border-t border-primary/15"}),c("div",{className:"py-5 bg-surface flex justify-center items-center gap-6",children:[c("button",{type:"button",onClick:n,disabled:d,className:"voice-mic-btn","aria-label":e?"Unmute":"Mute",style:{opacity:d?.5:1,cursor:d?"not-allowed":"pointer",background:d?"hsl(var(--primary) / 0.4)":e?o==="black"?"hsl(var(--black-700))":"hsl(var(--white-700))":"hsl(var(--primary))"},children:e?c(Wm,{className:`w-6 h-6 ${o==="black"?"text-white":"text-black"}`}):c(fs,{className:"w-6 h-6 text-white"})}),c("button",{type:"button",onClick:()=>a(!0),disabled:A===P.VOICE_AGENT_STATE.DISCONNECTING,className:"voice-end-btn","aria-label":"Exit voice mode",children:c(An,{className:"w-5 h-5 text-white"})})]})]}),s&&c("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black/40",children:c("div",{className:"bg-background rounded-2xl shadow-xl mx-6 p-6 w-full max-w-[280px] flex flex-col items-center gap-3",children:[c("p",{className:"text-base font-semibold text-foreground text-center",children:"Exit voice mode?"}),c("p",{className:"text-sm text-muted-foreground text-center leading-5",children:"This will close your voice session. You can continue your chat."}),c("div",{className:"flex flex-col w-full gap-2 mt-2",children:[c(uA,{onClick:()=>{a(!1),t?.()},className:"w-full bg-red-500 hover:bg-red-600 text-white",children:"Exit and Go Back to Chat"}),c(uA,{variant:"outline",onClick:()=>a(!1),className:"w-full",children:"Keep talking"})]})]})})]})}const W0=`
46
+ `}),g.jsxs(Fn,{className:P,"data-text-color":z.textColor,style:V?void 0:{border:"1.5px solid hsl(var(--primary) / 0.5)"},children:[g.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:se}),!z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundColor:"var(--widget-bg-overlay)"}}),z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${z.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",transform:"scale(1.1)"}}),z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundColor:z.textColor==="white"?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.4)"}}),g.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 h-full",children:[g.jsx("div",{className:"flex-shrink-0 sticky top-0 z-50 synapse-chat-widget-header",style:{...$?{background:"transparent"}:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--header-bg), var(--header-bg))"},borderBottom:"0.5px solid var(--header-stroke)",...!V&&!$&&{cursor:e?"grab":"default"}},children:g.jsx(qS,{onClose:t,showCloseButton:r,title:f,titleImg:h,tagline:m,iconUrl:i,startNewConversation:s,voiceAgentState:N,headerTinted:$?!1:z.headerTinted,onToggleDisplayMode:b})}),(()=>{const v=$&&!!u,te=C&&N===de.VOICE_AGENT_STATE.IDLE?g.jsx(x.Suspense,{fallback:null,children:g.jsx(lQ,{value:C.value,onChange:C.onChange,onSend:J?Ae:C.onSend,onFileChange:C.onFileChange,onRemoveFile:C.onRemoveFile,onRecording:C.onRecording,isRecording:C.isRecording,hasAttachment:C.hasAttachment,attachmentFiles:C.attachmentFiles,isDisabled:C.isDisabled||J&&O,isMobile:V,placeholder:C.placeholder,recordingStatus:C.recordingStatus,theme:z,onStartNewChat:s,showStartNewChatButton:l,isVoiceAgentActive:C.isVoiceAgentActive,handleVoiceMode:C.handleVoiceMode,allowed:C.allowed,isAuthComponent:U,activeElicitationState:Q,isFullScreen:$&&!v})}):null,oe=g.jsxs(g.Fragment,{children:[B&&w==="development"&&g.jsx("div",{className:"px-6 flex justify-center items-center",children:g.jsxs("p",{className:"text-[8px] text-text-secondary font-mono opacity-50",children:["Session ID: ",B]})}),!G&&g.jsxs("div",{className:"px-6 py-1 flex justify-center items-center gap-1 text-foreground opacity-50",children:[g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Powered by"}),g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Eka Care"})]})]}),fe=u&&$?u({composer:v?te:null,composerFooter:v?oe:null}):null;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col relative",children:fe??c}),C&&!v&&g.jsxs("div",{className:he("flex-shrink-0 sticky bottom-0 z-50"),style:{},children:[g.jsx("div",{className:he($&&"max-w-2xl mx-auto w-full"),children:te}),oe]})]})})()]})]})]})}function oQ({state:e}){switch(e){case"speaking":return g.jsx(dQ,{});case"thinking":return g.jsx(fQ,{});case"listening":return g.jsx(uQ,{});default:return g.jsx(cQ,{})}}function cQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voi-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voi-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.009",numOctaves:"3",seed:"3",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009",dur:"30s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"18"})]}),g.jsxs("filter",{id:"voi-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.006",numOctaves:"3",seed:"9",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006",dur:"25s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsxs("filter",{id:"voi-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.006 0.011",numOctaves:"3",seed:"15",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011",dur:"35s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"14",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsx("filter",{id:"voi-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"14"})})]}),g.jsxs("g",{clipPath:"url(#voi-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.06"}),g.jsxs("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:[g.jsx("ellipse",{cx:"130",cy:"125",rx:"95",ry:"95",fill:"currentColor",opacity:"0.12",children:g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"12s",repeatCount:"indefinite"})}),g.jsx("ellipse",{cx:"108",cy:"112",rx:"85",ry:"85",fill:"currentColor",opacity:"0.1",children:g.jsx("animate",{attributeName:"opacity",values:"0.07;0.13;0.07",dur:"10s",repeatCount:"indefinite"})})]}),g.jsx("g",{filter:"url(#voi-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"40s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;78;85",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;72;65",dur:"12s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"140",rx:"60",ry:"80",fill:"currentColor",opacity:"0.18",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"35s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;68;60",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;72;80",dur:"10s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"105",cy:"130",rx:"50",ry:"40",fill:"currentColor",opacity:"0.2",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"30s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"50;44;50",dur:"9s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"40;48;40",dur:"9s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.1",children:[g.jsx("animate",{attributeName:"r",values:"28;34;28",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.06",strokeWidth:"0.6"})]})}function uQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vol-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vol-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"4",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01",dur:"15s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"22",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"6"})]}),g.jsxs("filter",{id:"vol-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"10",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"18",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsxs("filter",{id:"vol-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"16",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012",dur:"18s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsx("filter",{id:"vol-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"5"})})]}),g.jsxs("g",{clipPath:"url(#vol-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.07"}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"95",ry:"70",fill:"currentColor",opacity:"0.3",children:[g.jsx("animate",{attributeName:"rx",values:"95;60;100;55;95",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"70;100;58;95;70",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"55",ry:"85",fill:"currentColor",opacity:"0.26",children:[g.jsx("animate",{attributeName:"rx",values:"55;88;48;82;55",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"85;50;90;55;85",dur:"4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"65",ry:"42",fill:"currentColor",opacity:"0.28",children:[g.jsx("animate",{attributeName:"rx",values:"65;38;70;35;65",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"42;72;38;68;42",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"40",ry:"72",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"40;70;35;65;40",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"72;40;78;42;72",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"78",ry:"55",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"78;48;82;45;78",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"55;80;50;78;55",dur:"4.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"120",r:"30",fill:"currentColor",opacity:"0.14",children:[g.jsx("animate",{attributeName:"r",values:"30;45;22;42;30",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.14;0.24;0.1;0.22;0.14",dur:"3.5s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.07",strokeWidth:"0.6"})]})}function fQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voth-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voth-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"6",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01",dur:"10s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"15"})]}),g.jsxs("filter",{id:"voth-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"12",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"24",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"14"})]}),g.jsxs("filter",{id:"voth-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"18",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"13"})]}),g.jsx("filter",{id:"voth-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"10"})})]}),g.jsxs("g",{clipPath:"url(#voth-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsxs("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:[g.jsxs("circle",{cx:"120",cy:"120",r:"60",fill:"currentColor",opacity:"0.15",children:[g.jsx("animate",{attributeName:"r",values:"60;90;60",dur:"1.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.18;0.08;0.18",dur:"1.8s",repeatCount:"indefinite"})]}),g.jsxs("circle",{cx:"120",cy:"120",r:"45",fill:"currentColor",opacity:"0.12",children:[g.jsx("animate",{attributeName:"r",values:"45;75;45",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.06;0.15",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"})]})]}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.35",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"14s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;70;90;75;85",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;80;60;78;65",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"138",rx:"60",ry:"82",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;78;55;72;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"82;65;85;68;82",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"132",rx:"52",ry:"38",fill:"currentColor",opacity:"0.32",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"52;40;55;42;52",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"38;52;35;50;38",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"95",rx:"90",ry:"22",fill:"currentColor",opacity:"0.24",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"11s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"22;38;22",dur:"1.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"140",cy:"98",rx:"38",ry:"28",fill:"currentColor",opacity:"0.25",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"7s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"38;28;42;30;38",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"28;40;25;38;28",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"r",values:"28;42;30;38;28",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.28;0.18;0.25;0.15",dur:"2s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function dQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vot-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vot-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.012",numOctaves:"4",seed:"5",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012",dur:"7s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"35",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"8"})]}),g.jsxs("filter",{id:"vot-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.011 0.008",numOctaves:"4",seed:"11",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008",dur:"6s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"30",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsxs("filter",{id:"vot-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.014",numOctaves:"4",seed:"17",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsx("filter",{id:"vot-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"7"})})]}),g.jsxs("g",{clipPath:"url(#vot-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"98",rx:"100",ry:"80",fill:"currentColor",opacity:"0.38",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;72;105;78;92;100",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;100;72;95;82;80",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.38;0.24;0.4;0.26;0.36;0.38",dur:"3.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"135",cy:"138",rx:"85",ry:"100",fill:"currentColor",opacity:"0.34",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;105;70;98;80;85",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;72;95;68;92;100",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.34;0.22;0.36;0.24;0.32;0.34",dur:"2.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"102",cy:"132",rx:"75",ry:"60",fill:"currentColor",opacity:"0.36",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"75;52;78;55;70;75",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"60;80;55;76;62;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.36;0.24;0.38;0.26;0.34;0.36",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"100",rx:"100",ry:"32",fill:"currentColor",opacity:"0.28",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"32;52;28;48;35;32",dur:"2.6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;80;105;85;95;100",dur:"2.6s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"32",ry:"100",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"32;55;28;50;35;32",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;75;105;80;95;100",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"138",cy:"96",rx:"55",ry:"45",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"55;38;58;40;50;55",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"45;62;42;58;48;45",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.3;0.2;0.32;0.22;0.28;0.3",dur:"2.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"40",fill:"currentColor",opacity:"0.18",children:[g.jsx("animate",{attributeName:"r",values:"38;55;35;50;40;38",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.3;0.18;0.26;0.16;0.15",dur:"2.8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function hQ({state:e,isMuted:t,onEndCall:r,onClose:i,onToggleMute:s,agentName:l="Health Assist",textColor:c="white"}){const[u,f]=x.useState(!1);if(e===de.VOICE_AGENT_STATE.ERROR)return g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:g.jsx(BS,{className:"w-7 h-7 text-destructive"})}),g.jsxs("div",{className:"text-center",children:[g.jsx("p",{className:"text-base font-semibold text-foreground",children:"Call Disconnected"}),g.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Something went wrong. Please try again."})]}),g.jsx(_e,{onClick:i,variant:"outline",className:"mt-2",children:"Close"})]});const h=()=>{if(t)return"You are muted";switch(e){case de.VOICE_AGENT_STATE.CONNECTING:return`Please wait while we are
47
+ connecting to an AI agent...`;case de.VOICE_AGENT_STATE.SPEAKING:return`${l} is speaking...`;case de.VOICE_AGENT_STATE.LISTENING:return"You are speaking...";case de.VOICE_AGENT_STATE.THINKING:return"One moment please...";case de.VOICE_AGENT_STATE.MUTED:return"You are muted";case de.VOICE_AGENT_STATE.DISCONNECTING:return"Ending session...";default:return"Go ahead, I'm listening..."}},m=e===de.VOICE_AGENT_STATE.SPEAKING||e===de.VOICE_AGENT_STATE.CONNECTING||e===de.VOICE_AGENT_STATE.DISCONNECTING;return g.jsxs("div",{className:"flex-1 flex flex-col bg-surface relative",children:[g.jsx("style",{children:gQ}),g.jsx("div",{className:"py-2.5 text-center bg-primary/15",children:g.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-primary",children:"Voice Mode Active"})}),g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-5",children:[g.jsx("div",{className:"w-[200px] h-[200px] text-primary",children:g.jsx(oQ,{state:e})}),g.jsx("p",{className:"text-base text-center px-8 whitespace-pre-line leading-6 text-muted-foreground",children:h()})]}),g.jsxs("div",{children:[g.jsx("div",{className:"border-t border-primary/15"}),g.jsxs("div",{className:"py-5 bg-surface flex justify-center items-center gap-6",children:[g.jsx("button",{type:"button",onClick:s,disabled:m,className:"voice-mic-btn","aria-label":t?"Unmute":"Mute",style:{opacity:m?.5:1,cursor:m?"not-allowed":"pointer",background:m?"hsl(var(--primary) / 0.4)":t?c==="black"?"hsl(var(--black-700))":"hsl(var(--white-700))":"hsl(var(--primary))"},children:t?g.jsx(pS,{className:`w-6 h-6 ${c==="black"?"text-white":"text-black"}`}):g.jsx(ku,{className:"w-6 h-6 text-white"})}),g.jsx("button",{type:"button",onClick:()=>f(!0),disabled:e===de.VOICE_AGENT_STATE.DISCONNECTING,className:"voice-end-btn","aria-label":"Exit voice mode",children:g.jsx(ns,{className:"w-5 h-5 text-white"})})]})]}),u&&g.jsx("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black/40",children:g.jsxs("div",{className:"bg-background rounded-2xl shadow-xl mx-6 p-6 w-full max-w-[280px] flex flex-col items-center gap-3",children:[g.jsx("p",{className:"text-base font-semibold text-foreground text-center",children:"Exit voice mode?"}),g.jsx("p",{className:"text-sm text-muted-foreground text-center leading-5",children:"This will close your voice session. You can continue your chat."}),g.jsxs("div",{className:"flex flex-col w-full gap-2 mt-2",children:[g.jsx(_e,{onClick:()=>{f(!1),r?.()},className:"w-full bg-red-500 hover:bg-red-600 text-white",children:"Exit and Go Back to Chat"}),g.jsx(_e,{variant:"outline",onClick:()=>f(!1),className:"w-full",children:"Keep talking"})]})]})})]})}const gQ=`
40
48
  .voice-mic-btn {
41
49
  width: 56px;
42
50
  height: 56px;
@@ -76,23 +84,23 @@ connecting to an AI agent...`;case P.VOICE_AGENT_STATE.SPEAKING:return`${i} is s
76
84
  }
77
85
  .voice-end-btn:active { transform: scale(0.95); }
78
86
  .voice-end-btn:disabled { opacity: 0.5; cursor: not-allowed; }
79
- `;function X0({title:A,description:e,suggestions:t,onSendMessage:r,disabled:n,composer:i,composerFooter:o,connectionBanner:s}){const a=l=>{const d=l.label||l.value||"";d&&r({message:l.value||d,messageId:Date.now().toString()})};return c("div",{className:"flex-1 flex flex-col items-stretch justify-center px-4 py-6 gap-6 w-full max-w-2xl mx-auto overflow-y-auto",children:[c("div",{className:"flex flex-col px-3 gap-2 items-start",children:[c("h2",{className:"text-text-primary",style:{fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:36,lineHeight:"40px",fontWeight:500,letterSpacing:"-0.025em",margin:0},children:["Hi, this is ",A,"!"]}),e&&c("p",{className:"text-text-primary",style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:400,margin:0,maxWidth:420},children:e})]}),t&&t.length>0&&c("div",{className:"content-center px-3 flex flex-wrap gap-4 items-center",children:t.map((l,d)=>{const u=l.label||l.value||"";return u?c("button",{type:"button",onClick:()=>a(l),disabled:n,className:K("inline-flex items-center bg-white border border-primary text-primary","rounded-lg overflow-clip whitespace-nowrap transition-colors shrink-0","supports-[hover:hover]:hover:bg-primary supports-[hover:hover]:hover:text-primary-foreground",n?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:500,padding:"8px 12px",WebkitTapHighlightColor:"transparent",outline:"none"},children:u},`${u}-${d}`):null})}),s,i&&c("div",{children:[i,o]})]})}function Y0(A,e){const t={};return(A[A.length-1]===""?[...A,""]:A).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const j0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$0={};function vd(A,e){return($0.jsx?J0:j0).test(A)}const q0=/[ \t\n\f\r]/g;function Z0(A){return typeof A=="object"?A.type==="text"?bd(A.value):!1:bd(A)}function bd(A){return A.replace(q0,"")===""}class en{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}}en.prototype.normal={},en.prototype.property={},en.prototype.space=void 0;function Qd(A,e){const t={},r={};for(const n of A)Object.assign(t,n.property),Object.assign(r,n.normal);return new en(t,r,e)}function Us(A){return A.toLowerCase()}class de{constructor(e,t){this.attribute=t,this.property=e}}de.prototype.attribute="",de.prototype.booleanish=!1,de.prototype.boolean=!1,de.prototype.commaOrSpaceSeparated=!1,de.prototype.commaSeparated=!1,de.prototype.defined=!1,de.prototype.mustUseProperty=!1,de.prototype.number=!1,de.prototype.overloadedBoolean=!1,de.prototype.property="",de.prototype.spaceSeparated=!1,de.prototype.space=void 0;let Aw=0;const dA=Ot(),zA=Ot(),xs=Ot(),R=Ot(),SA=Ot(),nr=Ot(),we=Ot();function Ot(){return 2**++Aw}const Ss=Object.freeze(Object.defineProperty({__proto__:null,boolean:dA,booleanish:zA,commaOrSpaceSeparated:we,commaSeparated:nr,number:R,overloadedBoolean:xs,spaceSeparated:SA},Symbol.toStringTag,{value:"Module"})),_s=Object.keys(Ss);class Is extends de{constructor(e,t,r,n){let i=-1;if(super(e,t),Fd(this,"space",n),typeof r=="number")for(;++i<_s.length;){const o=_s[i];Fd(this,_s[i],(r&Ss[o])===Ss[o])}}}Is.prototype.defined=!0;function Fd(A,e,t){t&&(A[e]=t)}function ir(A){const e={},t={};for(const[r,n]of Object.entries(A.properties)){const i=new Is(r,A.transform(A.attributes||{},r),n,A.space);A.mustUseProperty&&A.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),e[r]=i,t[Us(r)]=r,t[Us(i.attribute)]=r}return new en(e,t,A.space)}const Ud=ir({properties:{ariaActiveDescendant:null,ariaAtomic:zA,ariaAutoComplete:null,ariaBusy:zA,ariaChecked:zA,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:SA,ariaCurrent:null,ariaDescribedBy:SA,ariaDetails:null,ariaDisabled:zA,ariaDropEffect:SA,ariaErrorMessage:null,ariaExpanded:zA,ariaFlowTo:SA,ariaGrabbed:zA,ariaHasPopup:null,ariaHidden:zA,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:SA,ariaLevel:R,ariaLive:null,ariaModal:zA,ariaMultiLine:zA,ariaMultiSelectable:zA,ariaOrientation:null,ariaOwns:SA,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:zA,ariaReadOnly:zA,ariaRelevant:null,ariaRequired:zA,ariaRoleDescription:SA,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:zA,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(A,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function xd(A,e){return e in A?A[e]:e}function Sd(A,e){return xd(A,e.toLowerCase())}const ew=ir({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nr,acceptCharset:SA,accessKey:SA,action:null,allow:null,allowFullScreen:dA,allowPaymentRequest:dA,allowUserMedia:dA,alt:null,as:null,async:dA,autoCapitalize:null,autoComplete:SA,autoFocus:dA,autoPlay:dA,blocking:SA,capture:null,charSet:null,checked:dA,cite:null,className:SA,cols:R,colSpan:null,content:null,contentEditable:zA,controls:dA,controlsList:SA,coords:R|nr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:dA,defer:dA,dir:null,dirName:null,disabled:dA,download:xs,draggable:zA,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:dA,formTarget:null,headers:SA,height:R,hidden:xs,high:R,href:null,hrefLang:null,htmlFor:SA,httpEquiv:SA,id:null,imageSizes:null,imageSrcSet:null,inert:dA,inputMode:null,integrity:null,is:null,isMap:dA,itemId:null,itemProp:SA,itemRef:SA,itemScope:dA,itemType:SA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:dA,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:dA,muted:dA,name:null,nonce:null,noModule:dA,noValidate:dA,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:dA,optimum:R,pattern:null,ping:SA,placeholder:null,playsInline:dA,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:dA,referrerPolicy:null,rel:SA,required:dA,reversed:dA,rows:R,rowSpan:R,sandbox:SA,scope:null,scoped:dA,seamless:dA,selected:dA,shadowRootClonable:dA,shadowRootDelegatesFocus:dA,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:zA,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:dA,useMap:null,value:zA,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:SA,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:dA,declare:dA,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:dA,noHref:dA,noShade:dA,noWrap:dA,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:zA,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:dA,disableRemotePlayback:dA,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:Sd}),tw=ir({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"},properties:{about:we,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:SA,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:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:dA,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,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:nr,g2:nr,glyphName:nr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:we,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,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:R,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:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:SA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:we,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:we,rev:we,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:we,requiredFeatures:we,requiredFonts:we,requiredFormats:we,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:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:we,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:we,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:we,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xd}),_d=ir({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(A,e){return"xlink:"+e.slice(5).toLowerCase()}}),Id=ir({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Sd}),Td=ir({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(A,e){return"xml:"+e.slice(3).toLowerCase()}}),rw={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"},nw=/[A-Z]/g,Nd=/-[a-z]/g,iw=/^data[-\w.:]+$/i;function ow(A,e){const t=Us(e);let r=e,n=de;if(t in A.normal)return A.property[A.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&iw.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(Nd,aw);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!Nd.test(i)){let o=i.replace(nw,sw);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}n=Is}return new n(r,e)}function sw(A){return"-"+A.toLowerCase()}function aw(A){return A.charAt(1).toUpperCase()}const lw=Qd([Ud,ew,_d,Id,Td],"html"),Ts=Qd([Ud,tw,_d,Id,Td],"svg");function cw(A){return A.join(" ").trim()}var or={},Ns,kd;function uw(){if(kd)return Ns;kd=1;var A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,a=`
80
- `,l="/",d="*",u="",h="comment",f="declaration";function g(w,m){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];m=m||{};var C=1,b=1;function _(M){var T=M.match(e);T&&(C+=T.length);var V=M.lastIndexOf(a);b=~V?M.length-V:b+M.length}function x(){var M={line:C,column:b};return function(T){return T.position=new y(M),E(),T}}function y(M){this.start=M,this.end={line:C,column:b},this.source=m.source}y.prototype.content=w;function F(M){var T=new Error(m.source+":"+C+":"+b+": "+M);if(T.reason=M,T.filename=m.source,T.line=C,T.column=b,T.source=w,!m.silent)throw T}function Q(M){var T=M.exec(w);if(T){var V=T[0];return _(V),w=w.slice(V.length),T}}function E(){Q(t)}function I(M){var T;for(M=M||[];T=k();)T!==!1&&M.push(T);return M}function k(){var M=x();if(!(l!=w.charAt(0)||d!=w.charAt(1))){for(var T=2;u!=w.charAt(T)&&(d!=w.charAt(T)||l!=w.charAt(T+1));)++T;if(T+=2,u===w.charAt(T-1))return F("End of comment missing");var V=w.slice(2,T-2);return b+=2,_(V),w=w.slice(T),b+=2,M({type:h,comment:V})}}function S(){var M=x(),T=Q(r);if(T){if(k(),!Q(n))return F("property missing ':'");var V=Q(i),z=M({type:f,property:p(T[0].replace(A,u)),value:V?p(V[0].replace(A,u)):u});return Q(o),z}}function L(){var M=[];I(M);for(var T;T=S();)T!==!1&&(M.push(T),I(M));return M}return E(),L()}function p(w){return w?w.replace(s,u):u}return Ns=g,Ns}var Hd;function dw(){if(Hd)return or;Hd=1;var A=or&&or.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(or,"__esModule",{value:!0}),or.default=t;const e=A(uw());function t(r,n){let i=null;if(!r||typeof r!="string")return i;const o=(0,e.default)(r),s=typeof n=="function";return o.forEach(a=>{if(a.type!=="declaration")return;const{property:l,value:d}=a;s?n(l,d,a):d&&(i=i||{},i[l]=d)}),i}return or}var tn={},Ld;function fw(){if(Ld)return tn;Ld=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.camelCase=void 0;var A=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,i=function(l){return!l||t.test(l)||A.test(l)},o=function(l,d){return d.toUpperCase()},s=function(l,d){return"".concat(d,"-")},a=function(l,d){return d===void 0&&(d={}),i(l)?l:(l=l.toLowerCase(),d.reactCompat?l=l.replace(n,s):l=l.replace(r,s),l.replace(e,o))};return tn.camelCase=a,tn}var rn,Md;function hw(){if(Md)return rn;Md=1;var A=rn&&rn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},e=A(dw()),t=fw();function r(n,i){var o={};return!n||typeof n!="string"||(0,e.default)(n,function(s,a){s&&a&&(o[(0,t.camelCase)(s,i)]=a)}),o}return r.default=r,rn=r,rn}var gw=hw();const pw=xc(gw),Od=Rd("end"),ks=Rd("start");function Rd(A){return e;function e(t){const r=t&&t.position&&t.position[A]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Bw(A){const e=ks(A),t=Od(A);if(e&&t)return{start:e,end:t}}function nn(A){return!A||typeof A!="object"?"":"position"in A||"type"in A?Dd(A.position):"start"in A||"end"in A?Dd(A):"line"in A||"column"in A?Hs(A):""}function Hs(A){return Pd(A&&A.line)+":"+Pd(A&&A.column)}function Dd(A){return Hs(A&&A.start)+"-"+Hs(A&&A.end)}function Pd(A){return A&&typeof A=="number"?A:1}class ne extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let n="",i={},o=!1;if(t&&("line"in t&&"column"in t?i={place:t}:"start"in t&&"end"in t?i={place:t}:"type"in t?i={ancestors:[t],place:t.position}:i={...t}),typeof e=="string"?n=e:!i.cause&&e&&(o=!0,n=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const s=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=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=s?s.line:void 0,this.name=nn(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=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ne.prototype.file="",ne.prototype.name="",ne.prototype.reason="",ne.prototype.message="",ne.prototype.stack="",ne.prototype.column=void 0,ne.prototype.line=void 0,ne.prototype.ancestors=void 0,ne.prototype.cause=void 0,ne.prototype.fatal=void 0,ne.prototype.place=void 0,ne.prototype.ruleId=void 0,ne.prototype.source=void 0;const Ls={}.hasOwnProperty,mw=new Map,ww=/[A-Z]/g,Cw=new Set(["table","tbody","thead","tfoot","tr"]),yw=new Set(["td","th"]),Kd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ew(A,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=_w(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Sw(t,e.jsx,e.jsxs)}const n={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ts:lw,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},i=Vd(n,A,void 0);return i&&typeof i!="string"?i:n.create(A,n.Fragment,{children:i||void 0},void 0)}function Vd(A,e,t){if(e.type==="element")return vw(A,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return bw(A,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Fw(A,e,t);if(e.type==="mdxjsEsm")return Qw(A,e);if(e.type==="root")return Uw(A,e,t);if(e.type==="text")return xw(A,e)}function vw(A,e,t){const r=A.schema;let n=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=Ts,A.schema=n),A.ancestors.push(e);const i=zd(A,e.tagName,!1),o=Iw(A,e);let s=Os(A,e);return Cw.has(e.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!Z0(a):!0})),Gd(A,o,i,e),Ms(o,s),A.ancestors.pop(),A.schema=r,A.create(e,i,o,t)}function bw(A,e){if(e.data&&e.data.estree&&A.evaluater){const r=e.data.estree.body[0];return A.evaluater.evaluateExpression(r.expression)}on(A,e.position)}function Qw(A,e){if(e.data&&e.data.estree&&A.evaluater)return A.evaluater.evaluateProgram(e.data.estree);on(A,e.position)}function Fw(A,e,t){const r=A.schema;let n=r;e.name==="svg"&&r.space==="html"&&(n=Ts,A.schema=n),A.ancestors.push(e);const i=e.name===null?A.Fragment:zd(A,e.name,!0),o=Tw(A,e),s=Os(A,e);return Gd(A,o,i,e),Ms(o,s),A.ancestors.pop(),A.schema=r,A.create(e,i,o,t)}function Uw(A,e,t){const r={};return Ms(r,Os(A,e)),A.create(e,A.Fragment,r,t)}function xw(A,e){return e.value}function Gd(A,e,t,r){typeof t!="string"&&t!==A.Fragment&&A.passNode&&(e.node=r)}function Ms(A,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(A.children=t)}}function Sw(A,e,t){return r;function r(n,i,o,s){const l=Array.isArray(o.children)?t:e;return s?l(i,o,s):l(i,o)}}function _w(A,e){return t;function t(r,n,i,o){const s=Array.isArray(i.children),a=ks(r);return e(n,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:A,lineNumber:a?a.line:void 0},void 0)}}function Iw(A,e){const t={};let r,n;for(n in e.properties)if(n!=="children"&&Ls.call(e.properties,n)){const i=Nw(A,n,e.properties[n]);if(i){const[o,s]=i;A.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&yw.has(e.tagName)?r=s:t[o]=s}}if(r){const i=t.style||(t.style={});i[A.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Tw(A,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&A.evaluater){const s=r.data.estree.body[0].expression.properties[0];Object.assign(t,A.evaluater.evaluateExpression(s.argument))}else on(A,e.position);else{const n=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&A.evaluater){const s=r.value.data.estree.body[0];i=A.evaluater.evaluateExpression(s.expression)}else on(A,e.position);else i=r.value===null?!0:r.value;t[n]=i}return t}function Os(A,e){const t=[];let r=-1;const n=A.passKeys?new Map:mw;for(;++r<e.children.length;){const i=e.children[r];let o;if(A.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const l=n.get(a)||0;o=a+"-"+l,n.set(a,l+1)}}const s=Vd(A,i,o);s!==void 0&&t.push(s)}return t}function Nw(A,e,t){const r=ow(A.schema,e);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Y0(t):cw(t)),r.property==="style"){let n=typeof t=="object"?t:kw(A,String(t));return A.stylePropertyNameCase==="css"&&(n=Hw(n)),["style",n]}return[A.elementAttributeNameCase==="react"&&r.space?rw[r.property]||r.property:r.attribute,t]}}function kw(A,e){try{return pw(e,{reactCompat:!0})}catch(t){if(A.ignoreInvalidStyle)return{};const r=t,n=new ne("Cannot parse `style` attribute",{ancestors:A.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=A.filePath||void 0,n.url=Kd+"#cannot-parse-style-attribute",n}}function zd(A,e,t){let r;if(!t)r={type:"Literal",value:e};else if(e.includes(".")){const n=e.split(".");let i=-1,o;for(;++i<n.length;){const s=vd(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=vd(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const n=r.value;return Ls.call(A.components,n)?A.components[n]:n}if(A.evaluater)return A.evaluater.evaluateExpression(r);on(A)}function on(A,e){const t=new ne("Cannot handle MDX estrees without `createEvaluater`",{ancestors:A.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=A.filePath||void 0,t.url=Kd+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Hw(A){const e={};let t;for(t in A)Ls.call(A,t)&&(e[Lw(t)]=A[t]);return e}function Lw(A){let e=A.replace(ww,Mw);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function Mw(A){return"-"+A.toLowerCase()}const Rs={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"]},Ow={};function Rw(A,e){const t=Ow,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,n=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Wd(A,r,n)}function Wd(A,e,t){if(Dw(A)){if("value"in A)return A.type==="html"&&!t?"":A.value;if(e&&"alt"in A&&A.alt)return A.alt;if("children"in A)return Xd(A.children,e,t)}return Array.isArray(A)?Xd(A,e,t):""}function Xd(A,e,t){const r=[];let n=-1;for(;++n<A.length;)r[n]=Wd(A[n],e,t);return r.join("")}function Dw(A){return!!(A&&typeof A=="object")}const Yd=document.createElement("i");function Ds(A){const e="&"+A+";";Yd.innerHTML=e;const t=Yd.textContent;return t.charCodeAt(t.length-1)===59&&A!=="semi"||t===e?!1:t}function Ve(A,e,t,r){const n=A.length;let i=0,o;if(e<0?e=-e>n?0:n+e:e=e>n?n:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),A.splice(...o);else for(t&&A.splice(e,t);i<r.length;)o=r.slice(i,i+1e4),o.unshift(e,0),A.splice(...o),i+=1e4,e+=1e4}function Ue(A,e){return A.length>0?(Ve(A,A.length,0,e),A):e}const jd={}.hasOwnProperty;function Pw(A){const e={};let t=-1;for(;++t<A.length;)Kw(e,A[t]);return e}function Kw(A,e){let t;for(t in e){const n=(jd.call(A,t)?A[t]:void 0)||(A[t]={}),i=e[t];let o;if(i)for(o in i){jd.call(n,o)||(n[o]=[]);const s=i[o];Vw(n[o],Array.isArray(s)?s:s?[s]:[])}}}function Vw(A,e){let t=-1;const r=[];for(;++t<e.length;)(e[t].add==="after"?A:r).push(e[t]);Ve(A,0,0,r)}function Jd(A,e){const t=Number.parseInt(A,e);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function sr(A){return A.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ge=mt(/[A-Za-z]/),Ce=mt(/[\dA-Za-z]/),Gw=mt(/[#-'*+\--9=?A-Z^-~]/);function Ps(A){return A!==null&&(A<32||A===127)}const Ks=mt(/\d/),zw=mt(/[\dA-Fa-f]/),Ww=mt(/[!-/:-@[-`{-~]/);function iA(A){return A!==null&&A<-2}function fe(A){return A!==null&&(A<0||A===32)}function vA(A){return A===-2||A===-1||A===32}const Xw=mt(new RegExp("\\p{P}|\\p{S}","u")),Yw=mt(/\s/);function mt(A){return e;function e(t){return t!==null&&t>-1&&A.test(String.fromCharCode(t))}}function ar(A){const e=[];let t=-1,r=0,n=0;for(;++t<A.length;){const i=A.charCodeAt(t);let o="";if(i===37&&Ce(A.charCodeAt(t+1))&&Ce(A.charCodeAt(t+2)))n=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=A.charCodeAt(t+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),n=1):o="�"}else o=String.fromCharCode(i);o&&(e.push(A.slice(r,t),encodeURIComponent(o)),r=t+n+1,o=""),n&&(t+=n,n=0)}return e.join("")+A.slice(r)}function _A(A,e,t,r){const n=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(a){return vA(a)?(A.enter(t),s(a)):e(a)}function s(a){return vA(a)&&i++<n?(A.consume(a),s):(A.exit(t),e(a))}}const jw={tokenize:Jw};function Jw(A){const e=A.attempt(this.parser.constructs.contentInitial,r,n);let t;return e;function r(s){if(s===null){A.consume(s);return}return A.enter("lineEnding"),A.consume(s),A.exit("lineEnding"),_A(A,e,"linePrefix")}function n(s){return A.enter("paragraph"),i(s)}function i(s){const a=A.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,o(s)}function o(s){if(s===null){A.exit("chunkText"),A.exit("paragraph"),A.consume(s);return}return iA(s)?(A.consume(s),A.exit("chunkText"),i):(A.consume(s),o)}}const $w={tokenize:qw},$d={tokenize:Zw};function qw(A){const e=this,t=[];let r=0,n,i,o;return s;function s(b){if(r<t.length){const _=t[r];return e.containerState=_[1],A.attempt(_[0].continuation,a,l)(b)}return l(b)}function a(b){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,n&&C();const _=e.events.length;let x=_,y;for(;x--;)if(e.events[x][0]==="exit"&&e.events[x][1].type==="chunkFlow"){y=e.events[x][1].end;break}m(r);let F=_;for(;F<e.events.length;)e.events[F][1].end={...y},F++;return Ve(e.events,x+1,0,e.events.slice(_)),e.events.length=F,l(b)}return s(b)}function l(b){if(r===t.length){if(!n)return h(b);if(n.currentConstruct&&n.currentConstruct.concrete)return g(b);e.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return e.containerState={},A.check($d,d,u)(b)}function d(b){return n&&C(),m(r),h(b)}function u(b){return e.parser.lazy[e.now().line]=r!==t.length,o=e.now().offset,g(b)}function h(b){return e.containerState={},A.attempt($d,f,g)(b)}function f(b){return r++,t.push([e.currentConstruct,e.containerState]),h(b)}function g(b){if(b===null){n&&C(),m(0),A.consume(b);return}return n=n||e.parser.flow(e.now()),A.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:i}),p(b)}function p(b){if(b===null){w(A.exit("chunkFlow"),!0),m(0),A.consume(b);return}return iA(b)?(A.consume(b),w(A.exit("chunkFlow")),r=0,e.interrupt=void 0,s):(A.consume(b),p)}function w(b,_){const x=e.sliceStream(b);if(_&&x.push(null),b.previous=i,i&&(i.next=b),i=b,n.defineSkip(b.start),n.write(x),e.parser.lazy[b.start.line]){let y=n.events.length;for(;y--;)if(n.events[y][1].start.offset<o&&(!n.events[y][1].end||n.events[y][1].end.offset>o))return;const F=e.events.length;let Q=F,E,I;for(;Q--;)if(e.events[Q][0]==="exit"&&e.events[Q][1].type==="chunkFlow"){if(E){I=e.events[Q][1].end;break}E=!0}for(m(r),y=F;y<e.events.length;)e.events[y][1].end={...I},y++;Ve(e.events,Q+1,0,e.events.slice(F)),e.events.length=y}}function m(b){let _=t.length;for(;_-- >b;){const x=t[_];e.containerState=x[1],x[0].exit.call(e,A)}t.length=b}function C(){n.write([null]),i=void 0,n=void 0,e.containerState._closeFlow=void 0}}function Zw(A,e,t){return _A(A,A.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qd(A){if(A===null||fe(A)||Yw(A))return 1;if(Xw(A))return 2}function Vs(A,e,t){const r=[];let n=-1;for(;++n<A.length;){const i=A[n].resolveAll;i&&!r.includes(i)&&(e=i(e,t),r.push(i))}return e}const Gs={name:"attention",resolveAll:AC,tokenize:eC};function AC(A,e){let t=-1,r,n,i,o,s,a,l,d;for(;++t<A.length;)if(A[t][0]==="enter"&&A[t][1].type==="attentionSequence"&&A[t][1]._close){for(r=t;r--;)if(A[r][0]==="exit"&&A[r][1].type==="attentionSequence"&&A[r][1]._open&&e.sliceSerialize(A[r][1]).charCodeAt(0)===e.sliceSerialize(A[t][1]).charCodeAt(0)){if((A[r][1]._close||A[t][1]._open)&&(A[t][1].end.offset-A[t][1].start.offset)%3&&!((A[r][1].end.offset-A[r][1].start.offset+A[t][1].end.offset-A[t][1].start.offset)%3))continue;a=A[r][1].end.offset-A[r][1].start.offset>1&&A[t][1].end.offset-A[t][1].start.offset>1?2:1;const u={...A[r][1].end},h={...A[t][1].start};Zd(u,-a),Zd(h,a),o={type:a>1?"strongSequence":"emphasisSequence",start:u,end:{...A[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...A[t][1].start},end:h},i={type:a>1?"strongText":"emphasisText",start:{...A[r][1].end},end:{...A[t][1].start}},n={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},A[r][1].end={...o.start},A[t][1].start={...s.end},l=[],A[r][1].end.offset-A[r][1].start.offset&&(l=Ue(l,[["enter",A[r][1],e],["exit",A[r][1],e]])),l=Ue(l,[["enter",n,e],["enter",o,e],["exit",o,e],["enter",i,e]]),l=Ue(l,Vs(e.parser.constructs.insideSpan.null,A.slice(r+1,t),e)),l=Ue(l,[["exit",i,e],["enter",s,e],["exit",s,e],["exit",n,e]]),A[t][1].end.offset-A[t][1].start.offset?(d=2,l=Ue(l,[["enter",A[t][1],e],["exit",A[t][1],e]])):d=0,Ve(A,r-1,t-r+3,l),t=r+l.length-d-2;break}}for(t=-1;++t<A.length;)A[t][1].type==="attentionSequence"&&(A[t][1].type="data");return A}function eC(A,e){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,n=qd(r);let i;return o;function o(a){return i=a,A.enter("attentionSequence"),s(a)}function s(a){if(a===i)return A.consume(a),s;const l=A.exit("attentionSequence"),d=qd(a),u=!d||d===2&&n||t.includes(a),h=!n||n===2&&d||t.includes(r);return l._open=!!(i===42?u:u&&(n||!h)),l._close=!!(i===42?h:h&&(d||!u)),e(a)}}function Zd(A,e){A.column+=e,A.offset+=e,A._bufferIndex+=e}const tC={name:"autolink",tokenize:rC};function rC(A,e,t){let r=0;return n;function n(f){return A.enter("autolink"),A.enter("autolinkMarker"),A.consume(f),A.exit("autolinkMarker"),A.enter("autolinkProtocol"),i}function i(f){return Ge(f)?(A.consume(f),o):f===64?t(f):l(f)}function o(f){return f===43||f===45||f===46||Ce(f)?(r=1,s(f)):l(f)}function s(f){return f===58?(A.consume(f),r=0,a):(f===43||f===45||f===46||Ce(f))&&r++<32?(A.consume(f),s):(r=0,l(f))}function a(f){return f===62?(A.exit("autolinkProtocol"),A.enter("autolinkMarker"),A.consume(f),A.exit("autolinkMarker"),A.exit("autolink"),e):f===null||f===32||f===60||Ps(f)?t(f):(A.consume(f),a)}function l(f){return f===64?(A.consume(f),d):Gw(f)?(A.consume(f),l):t(f)}function d(f){return Ce(f)?u(f):t(f)}function u(f){return f===46?(A.consume(f),r=0,d):f===62?(A.exit("autolinkProtocol").type="autolinkEmail",A.enter("autolinkMarker"),A.consume(f),A.exit("autolinkMarker"),A.exit("autolink"),e):h(f)}function h(f){if((f===45||Ce(f))&&r++<63){const g=f===45?h:u;return A.consume(f),g}return t(f)}}const li={partial:!0,tokenize:nC};function nC(A,e,t){return r;function r(i){return vA(i)?_A(A,n,"linePrefix")(i):n(i)}function n(i){return i===null||iA(i)?e(i):t(i)}}const Af={continuation:{tokenize:oC},exit:sC,name:"blockQuote",tokenize:iC};function iC(A,e,t){const r=this;return n;function n(o){if(o===62){const s=r.containerState;return s.open||(A.enter("blockQuote",{_container:!0}),s.open=!0),A.enter("blockQuotePrefix"),A.enter("blockQuoteMarker"),A.consume(o),A.exit("blockQuoteMarker"),i}return t(o)}function i(o){return vA(o)?(A.enter("blockQuotePrefixWhitespace"),A.consume(o),A.exit("blockQuotePrefixWhitespace"),A.exit("blockQuotePrefix"),e):(A.exit("blockQuotePrefix"),e(o))}}function oC(A,e,t){const r=this;return n;function n(o){return vA(o)?_A(A,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return A.attempt(Af,e,t)(o)}}function sC(A){A.exit("blockQuote")}const ef={name:"characterEscape",tokenize:aC};function aC(A,e,t){return r;function r(i){return A.enter("characterEscape"),A.enter("escapeMarker"),A.consume(i),A.exit("escapeMarker"),n}function n(i){return Ww(i)?(A.enter("characterEscapeValue"),A.consume(i),A.exit("characterEscapeValue"),A.exit("characterEscape"),e):t(i)}}const tf={name:"characterReference",tokenize:lC};function lC(A,e,t){const r=this;let n=0,i,o;return s;function s(u){return A.enter("characterReference"),A.enter("characterReferenceMarker"),A.consume(u),A.exit("characterReferenceMarker"),a}function a(u){return u===35?(A.enter("characterReferenceMarkerNumeric"),A.consume(u),A.exit("characterReferenceMarkerNumeric"),l):(A.enter("characterReferenceValue"),i=31,o=Ce,d(u))}function l(u){return u===88||u===120?(A.enter("characterReferenceMarkerHexadecimal"),A.consume(u),A.exit("characterReferenceMarkerHexadecimal"),A.enter("characterReferenceValue"),i=6,o=zw,d):(A.enter("characterReferenceValue"),i=7,o=Ks,d(u))}function d(u){if(u===59&&n){const h=A.exit("characterReferenceValue");return o===Ce&&!Ds(r.sliceSerialize(h))?t(u):(A.enter("characterReferenceMarker"),A.consume(u),A.exit("characterReferenceMarker"),A.exit("characterReference"),e)}return o(u)&&n++<i?(A.consume(u),d):t(u)}}const rf={partial:!0,tokenize:uC},nf={concrete:!0,name:"codeFenced",tokenize:cC};function cC(A,e,t){const r=this,n={partial:!0,tokenize:x};let i=0,o=0,s;return a;function a(y){return l(y)}function l(y){const F=r.events[r.events.length-1];return i=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,s=y,A.enter("codeFenced"),A.enter("codeFencedFence"),A.enter("codeFencedFenceSequence"),d(y)}function d(y){return y===s?(o++,A.consume(y),d):o<3?t(y):(A.exit("codeFencedFenceSequence"),vA(y)?_A(A,u,"whitespace")(y):u(y))}function u(y){return y===null||iA(y)?(A.exit("codeFencedFence"),r.interrupt?e(y):A.check(rf,p,_)(y)):(A.enter("codeFencedFenceInfo"),A.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||iA(y)?(A.exit("chunkString"),A.exit("codeFencedFenceInfo"),u(y)):vA(y)?(A.exit("chunkString"),A.exit("codeFencedFenceInfo"),_A(A,f,"whitespace")(y)):y===96&&y===s?t(y):(A.consume(y),h)}function f(y){return y===null||iA(y)?u(y):(A.enter("codeFencedFenceMeta"),A.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||iA(y)?(A.exit("chunkString"),A.exit("codeFencedFenceMeta"),u(y)):y===96&&y===s?t(y):(A.consume(y),g)}function p(y){return A.attempt(n,_,w)(y)}function w(y){return A.enter("lineEnding"),A.consume(y),A.exit("lineEnding"),m}function m(y){return i>0&&vA(y)?_A(A,C,"linePrefix",i+1)(y):C(y)}function C(y){return y===null||iA(y)?A.check(rf,p,_)(y):(A.enter("codeFlowValue"),b(y))}function b(y){return y===null||iA(y)?(A.exit("codeFlowValue"),C(y)):(A.consume(y),b)}function _(y){return A.exit("codeFenced"),e(y)}function x(y,F,Q){let E=0;return I;function I(T){return y.enter("lineEnding"),y.consume(T),y.exit("lineEnding"),k}function k(T){return y.enter("codeFencedFence"),vA(T)?_A(y,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):S(T)}function S(T){return T===s?(y.enter("codeFencedFenceSequence"),L(T)):Q(T)}function L(T){return T===s?(E++,y.consume(T),L):E>=o?(y.exit("codeFencedFenceSequence"),vA(T)?_A(y,M,"whitespace")(T):M(T)):Q(T)}function M(T){return T===null||iA(T)?(y.exit("codeFencedFence"),F(T)):Q(T)}}}function uC(A,e,t){const r=this;return n;function n(o){return o===null?t(o):(A.enter("lineEnding"),A.consume(o),A.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const zs={name:"codeIndented",tokenize:fC},dC={partial:!0,tokenize:hC};function fC(A,e,t){const r=this;return n;function n(l){return A.enter("codeIndented"),_A(A,i,"linePrefix",5)(l)}function i(l){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(l):t(l)}function o(l){return l===null?a(l):iA(l)?A.attempt(dC,o,a)(l):(A.enter("codeFlowValue"),s(l))}function s(l){return l===null||iA(l)?(A.exit("codeFlowValue"),o(l)):(A.consume(l),s)}function a(l){return A.exit("codeIndented"),e(l)}}function hC(A,e,t){const r=this;return n;function n(o){return r.parser.lazy[r.now().line]?t(o):iA(o)?(A.enter("lineEnding"),A.consume(o),A.exit("lineEnding"),n):_A(A,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(o):iA(o)?n(o):t(o)}}const gC={name:"codeText",previous:BC,resolve:pC,tokenize:mC};function pC(A){let e=A.length-4,t=3,r,n;if((A[t][1].type==="lineEnding"||A[t][1].type==="space")&&(A[e][1].type==="lineEnding"||A[e][1].type==="space")){for(r=t;++r<e;)if(A[r][1].type==="codeTextData"){A[t][1].type="codeTextPadding",A[e][1].type="codeTextPadding",t+=2,e-=2;break}}for(r=t-1,e++;++r<=e;)n===void 0?r!==e&&A[r][1].type!=="lineEnding"&&(n=r):(r===e||A[r][1].type==="lineEnding")&&(A[n][1].type="codeTextData",r!==n+2&&(A[n][1].end=A[r-1][1].end,A.splice(n+2,r-n-2),e-=r-n-2,r=n+2),n=void 0);return A}function BC(A){return A!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mC(A,e,t){let r=0,n,i;return o;function o(u){return A.enter("codeText"),A.enter("codeTextSequence"),s(u)}function s(u){return u===96?(A.consume(u),r++,s):(A.exit("codeTextSequence"),a(u))}function a(u){return u===null?t(u):u===32?(A.enter("space"),A.consume(u),A.exit("space"),a):u===96?(i=A.enter("codeTextSequence"),n=0,d(u)):iA(u)?(A.enter("lineEnding"),A.consume(u),A.exit("lineEnding"),a):(A.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||iA(u)?(A.exit("codeTextData"),a(u)):(A.consume(u),l)}function d(u){return u===96?(A.consume(u),n++,d):n===r?(A.exit("codeTextSequence"),A.exit("codeText"),e(u)):(i.type="codeTextData",l(u))}}class wC{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const n=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&sn(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),sn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),sn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);sn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);sn(this.left,t.reverse())}}}function sn(A,e){let t=0;if(e.length<1e4)A.push(...e);else for(;t<e.length;)A.push(...e.slice(t,t+1e4)),t+=1e4}function of(A){const e={};let t=-1,r,n,i,o,s,a,l;const d=new wC(A);for(;++t<d.length;){for(;t in e;)t=e[t];if(r=d.get(t),t&&r[1].type==="chunkFlow"&&d.get(t-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,CC(d,t)),t=e[t],l=!0);else if(r[1]._container){for(i=t,n=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(n&&(d.get(n)[1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;n&&(r[1].end={...d.get(n)[1].start},s=d.slice(n,t),s.unshift(r),d.splice(n,t-n+1,s))}}return Ve(A,0,Number.POSITIVE_INFINITY,d.slice(0)),!l}function CC(A,e){const t=A.get(e)[1],r=A.get(e)[2];let n=e-1;const i=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,a=[],l={};let d,u,h=-1,f=t,g=0,p=0;const w=[p];for(;f;){for(;A.get(++n)[1]!==f;);i.push(n),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),u&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=f,f=f.next}for(f=t;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(p=h+1,w.push(p),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):w.pop(),h=w.length;h--;){const m=s.slice(w[h],w[h+1]),C=i.pop();a.push([C,C+m.length-1]),A.splice(C,2,m)}for(a.reverse(),h=-1;++h<a.length;)l[g+a[h][0]]=g+a[h][1],g+=a[h][1]-a[h][0]-1;return l}const yC={resolve:vC,tokenize:bC},EC={partial:!0,tokenize:QC};function vC(A){return of(A),A}function bC(A,e){let t;return r;function r(s){return A.enter("content"),t=A.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?i(s):iA(s)?A.check(EC,o,i)(s):(A.consume(s),n)}function i(s){return A.exit("chunkContent"),A.exit("content"),e(s)}function o(s){return A.consume(s),A.exit("chunkContent"),t.next=A.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,n}}function QC(A,e,t){const r=this;return n;function n(o){return A.exit("chunkContent"),A.enter("lineEnding"),A.consume(o),A.exit("lineEnding"),_A(A,i,"linePrefix")}function i(o){if(o===null||iA(o))return t(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(o):A.interrupt(r.parser.constructs.flow,t,e)(o)}}function sf(A,e,t,r,n,i,o,s,a){const l=a||Number.POSITIVE_INFINITY;let d=0;return u;function u(m){return m===60?(A.enter(r),A.enter(n),A.enter(i),A.consume(m),A.exit(i),h):m===null||m===32||m===41||Ps(m)?t(m):(A.enter(r),A.enter(o),A.enter(s),A.enter("chunkString",{contentType:"string"}),p(m))}function h(m){return m===62?(A.enter(i),A.consume(m),A.exit(i),A.exit(n),A.exit(r),e):(A.enter(s),A.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===62?(A.exit("chunkString"),A.exit(s),h(m)):m===null||m===60||iA(m)?t(m):(A.consume(m),m===92?g:f)}function g(m){return m===60||m===62||m===92?(A.consume(m),f):f(m)}function p(m){return!d&&(m===null||m===41||fe(m))?(A.exit("chunkString"),A.exit(s),A.exit(o),A.exit(r),e(m)):d<l&&m===40?(A.consume(m),d++,p):m===41?(A.consume(m),d--,p):m===null||m===32||m===40||Ps(m)?t(m):(A.consume(m),m===92?w:p)}function w(m){return m===40||m===41||m===92?(A.consume(m),p):p(m)}}function af(A,e,t,r,n,i){const o=this;let s=0,a;return l;function l(f){return A.enter(r),A.enter(n),A.consume(f),A.exit(n),A.enter(i),d}function d(f){return s>999||f===null||f===91||f===93&&!a||f===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?t(f):f===93?(A.exit(i),A.enter(n),A.consume(f),A.exit(n),A.exit(r),e):iA(f)?(A.enter("lineEnding"),A.consume(f),A.exit("lineEnding"),d):(A.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===null||f===91||f===93||iA(f)||s++>999?(A.exit("chunkString"),d(f)):(A.consume(f),a||(a=!vA(f)),f===92?h:u)}function h(f){return f===91||f===92||f===93?(A.consume(f),s++,u):u(f)}}function lf(A,e,t,r,n,i){let o;return s;function s(h){return h===34||h===39||h===40?(A.enter(r),A.enter(n),A.consume(h),A.exit(n),o=h===40?41:h,a):t(h)}function a(h){return h===o?(A.enter(n),A.consume(h),A.exit(n),A.exit(r),e):(A.enter(i),l(h))}function l(h){return h===o?(A.exit(i),a(o)):h===null?t(h):iA(h)?(A.enter("lineEnding"),A.consume(h),A.exit("lineEnding"),_A(A,l,"linePrefix")):(A.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||iA(h)?(A.exit("chunkString"),l(h)):(A.consume(h),h===92?u:d)}function u(h){return h===o||h===92?(A.consume(h),d):d(h)}}function an(A,e){let t;return r;function r(n){return iA(n)?(A.enter("lineEnding"),A.consume(n),A.exit("lineEnding"),t=!0,r):vA(n)?_A(A,r,t?"linePrefix":"lineSuffix")(n):e(n)}}const FC={name:"definition",tokenize:xC},UC={partial:!0,tokenize:SC};function xC(A,e,t){const r=this;let n;return i;function i(f){return A.enter("definition"),o(f)}function o(f){return af.call(r,A,s,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return n=sr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(A.enter("definitionMarker"),A.consume(f),A.exit("definitionMarker"),a):t(f)}function a(f){return fe(f)?an(A,l)(f):l(f)}function l(f){return sf(A,d,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return A.attempt(UC,u,u)(f)}function u(f){return vA(f)?_A(A,h,"whitespace")(f):h(f)}function h(f){return f===null||iA(f)?(A.exit("definition"),r.parser.defined.push(n),e(f)):t(f)}}function SC(A,e,t){return r;function r(s){return fe(s)?an(A,n)(s):t(s)}function n(s){return lf(A,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return vA(s)?_A(A,o,"whitespace")(s):o(s)}function o(s){return s===null||iA(s)?e(s):t(s)}}const _C={name:"hardBreakEscape",tokenize:IC};function IC(A,e,t){return r;function r(i){return A.enter("hardBreakEscape"),A.consume(i),n}function n(i){return iA(i)?(A.exit("hardBreakEscape"),e(i)):t(i)}}const TC={name:"headingAtx",resolve:NC,tokenize:kC};function NC(A,e){let t=A.length-2,r=3,n,i;return A[r][1].type==="whitespace"&&(r+=2),t-2>r&&A[t][1].type==="whitespace"&&(t-=2),A[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&A[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(n={type:"atxHeadingText",start:A[r][1].start,end:A[t][1].end},i={type:"chunkText",start:A[r][1].start,end:A[t][1].end,contentType:"text"},Ve(A,r,t-r+1,[["enter",n,e],["enter",i,e],["exit",i,e],["exit",n,e]])),A}function kC(A,e,t){let r=0;return n;function n(d){return A.enter("atxHeading"),i(d)}function i(d){return A.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(A.consume(d),o):d===null||fe(d)?(A.exit("atxHeadingSequence"),s(d)):t(d)}function s(d){return d===35?(A.enter("atxHeadingSequence"),a(d)):d===null||iA(d)?(A.exit("atxHeading"),e(d)):vA(d)?_A(A,s,"whitespace")(d):(A.enter("atxHeadingText"),l(d))}function a(d){return d===35?(A.consume(d),a):(A.exit("atxHeadingSequence"),s(d))}function l(d){return d===null||d===35||fe(d)?(A.exit("atxHeadingText"),s(d)):(A.consume(d),l)}}const HC=["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"],cf=["pre","script","style","textarea"],LC={concrete:!0,name:"htmlFlow",resolveTo:RC,tokenize:DC},MC={partial:!0,tokenize:KC},OC={partial:!0,tokenize:PC};function RC(A){let e=A.length;for(;e--&&!(A[e][0]==="enter"&&A[e][1].type==="htmlFlow"););return e>1&&A[e-2][1].type==="linePrefix"&&(A[e][1].start=A[e-2][1].start,A[e+1][1].start=A[e-2][1].start,A.splice(e-2,2)),A}function DC(A,e,t){const r=this;let n,i,o,s,a;return l;function l(B){return d(B)}function d(B){return A.enter("htmlFlow"),A.enter("htmlFlowData"),A.consume(B),u}function u(B){return B===33?(A.consume(B),h):B===47?(A.consume(B),i=!0,p):B===63?(A.consume(B),n=3,r.interrupt?e:v):Ge(B)?(A.consume(B),o=String.fromCharCode(B),w):t(B)}function h(B){return B===45?(A.consume(B),n=2,f):B===91?(A.consume(B),n=5,s=0,g):Ge(B)?(A.consume(B),n=4,r.interrupt?e:v):t(B)}function f(B){return B===45?(A.consume(B),r.interrupt?e:v):t(B)}function g(B){const J="CDATA[";return B===J.charCodeAt(s++)?(A.consume(B),s===J.length?r.interrupt?e:S:g):t(B)}function p(B){return Ge(B)?(A.consume(B),o=String.fromCharCode(B),w):t(B)}function w(B){if(B===null||B===47||B===62||fe(B)){const J=B===47,AA=o.toLowerCase();return!J&&!i&&cf.includes(AA)?(n=1,r.interrupt?e(B):S(B)):HC.includes(o.toLowerCase())?(n=6,J?(A.consume(B),m):r.interrupt?e(B):S(B)):(n=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(B):i?C(B):b(B))}return B===45||Ce(B)?(A.consume(B),o+=String.fromCharCode(B),w):t(B)}function m(B){return B===62?(A.consume(B),r.interrupt?e:S):t(B)}function C(B){return vA(B)?(A.consume(B),C):I(B)}function b(B){return B===47?(A.consume(B),I):B===58||B===95||Ge(B)?(A.consume(B),_):vA(B)?(A.consume(B),b):I(B)}function _(B){return B===45||B===46||B===58||B===95||Ce(B)?(A.consume(B),_):x(B)}function x(B){return B===61?(A.consume(B),y):vA(B)?(A.consume(B),x):b(B)}function y(B){return B===null||B===60||B===61||B===62||B===96?t(B):B===34||B===39?(A.consume(B),a=B,F):vA(B)?(A.consume(B),y):Q(B)}function F(B){return B===a?(A.consume(B),a=null,E):B===null||iA(B)?t(B):(A.consume(B),F)}function Q(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||fe(B)?x(B):(A.consume(B),Q)}function E(B){return B===47||B===62||vA(B)?b(B):t(B)}function I(B){return B===62?(A.consume(B),k):t(B)}function k(B){return B===null||iA(B)?S(B):vA(B)?(A.consume(B),k):t(B)}function S(B){return B===45&&n===2?(A.consume(B),V):B===60&&n===1?(A.consume(B),z):B===62&&n===4?(A.consume(B),eA):B===63&&n===3?(A.consume(B),v):B===93&&n===5?(A.consume(B),cA):iA(B)&&(n===6||n===7)?(A.exit("htmlFlowData"),A.check(MC,rA,L)(B)):B===null||iA(B)?(A.exit("htmlFlowData"),L(B)):(A.consume(B),S)}function L(B){return A.check(OC,M,rA)(B)}function M(B){return A.enter("lineEnding"),A.consume(B),A.exit("lineEnding"),T}function T(B){return B===null||iA(B)?L(B):(A.enter("htmlFlowData"),S(B))}function V(B){return B===45?(A.consume(B),v):S(B)}function z(B){return B===47?(A.consume(B),o="",D):S(B)}function D(B){if(B===62){const J=o.toLowerCase();return cf.includes(J)?(A.consume(B),eA):S(B)}return Ge(B)&&o.length<8?(A.consume(B),o+=String.fromCharCode(B),D):S(B)}function cA(B){return B===93?(A.consume(B),v):S(B)}function v(B){return B===62?(A.consume(B),eA):B===45&&n===2?(A.consume(B),v):S(B)}function eA(B){return B===null||iA(B)?(A.exit("htmlFlowData"),rA(B)):(A.consume(B),eA)}function rA(B){return A.exit("htmlFlow"),e(B)}}function PC(A,e,t){const r=this;return n;function n(o){return iA(o)?(A.enter("lineEnding"),A.consume(o),A.exit("lineEnding"),i):t(o)}function i(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function KC(A,e,t){return r;function r(n){return A.enter("lineEnding"),A.consume(n),A.exit("lineEnding"),A.attempt(li,e,t)}}const VC={name:"htmlText",tokenize:GC};function GC(A,e,t){const r=this;let n,i,o;return s;function s(v){return A.enter("htmlText"),A.enter("htmlTextData"),A.consume(v),a}function a(v){return v===33?(A.consume(v),l):v===47?(A.consume(v),x):v===63?(A.consume(v),b):Ge(v)?(A.consume(v),Q):t(v)}function l(v){return v===45?(A.consume(v),d):v===91?(A.consume(v),i=0,g):Ge(v)?(A.consume(v),C):t(v)}function d(v){return v===45?(A.consume(v),f):t(v)}function u(v){return v===null?t(v):v===45?(A.consume(v),h):iA(v)?(o=u,z(v)):(A.consume(v),u)}function h(v){return v===45?(A.consume(v),f):u(v)}function f(v){return v===62?V(v):v===45?h(v):u(v)}function g(v){const eA="CDATA[";return v===eA.charCodeAt(i++)?(A.consume(v),i===eA.length?p:g):t(v)}function p(v){return v===null?t(v):v===93?(A.consume(v),w):iA(v)?(o=p,z(v)):(A.consume(v),p)}function w(v){return v===93?(A.consume(v),m):p(v)}function m(v){return v===62?V(v):v===93?(A.consume(v),m):p(v)}function C(v){return v===null||v===62?V(v):iA(v)?(o=C,z(v)):(A.consume(v),C)}function b(v){return v===null?t(v):v===63?(A.consume(v),_):iA(v)?(o=b,z(v)):(A.consume(v),b)}function _(v){return v===62?V(v):b(v)}function x(v){return Ge(v)?(A.consume(v),y):t(v)}function y(v){return v===45||Ce(v)?(A.consume(v),y):F(v)}function F(v){return iA(v)?(o=F,z(v)):vA(v)?(A.consume(v),F):V(v)}function Q(v){return v===45||Ce(v)?(A.consume(v),Q):v===47||v===62||fe(v)?E(v):t(v)}function E(v){return v===47?(A.consume(v),V):v===58||v===95||Ge(v)?(A.consume(v),I):iA(v)?(o=E,z(v)):vA(v)?(A.consume(v),E):V(v)}function I(v){return v===45||v===46||v===58||v===95||Ce(v)?(A.consume(v),I):k(v)}function k(v){return v===61?(A.consume(v),S):iA(v)?(o=k,z(v)):vA(v)?(A.consume(v),k):E(v)}function S(v){return v===null||v===60||v===61||v===62||v===96?t(v):v===34||v===39?(A.consume(v),n=v,L):iA(v)?(o=S,z(v)):vA(v)?(A.consume(v),S):(A.consume(v),M)}function L(v){return v===n?(A.consume(v),n=void 0,T):v===null?t(v):iA(v)?(o=L,z(v)):(A.consume(v),L)}function M(v){return v===null||v===34||v===39||v===60||v===61||v===96?t(v):v===47||v===62||fe(v)?E(v):(A.consume(v),M)}function T(v){return v===47||v===62||fe(v)?E(v):t(v)}function V(v){return v===62?(A.consume(v),A.exit("htmlTextData"),A.exit("htmlText"),e):t(v)}function z(v){return A.exit("htmlTextData"),A.enter("lineEnding"),A.consume(v),A.exit("lineEnding"),D}function D(v){return vA(v)?_A(A,cA,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):cA(v)}function cA(v){return A.enter("htmlTextData"),o(v)}}const Ws={name:"labelEnd",resolveAll:YC,resolveTo:jC,tokenize:JC},zC={tokenize:$C},WC={tokenize:qC},XC={tokenize:ZC};function YC(A){let e=-1;const t=[];for(;++e<A.length;){const r=A[e][1];if(t.push(A[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const n=r.type==="labelImage"?4:2;r.type="data",e+=n}}return A.length!==t.length&&Ve(A,0,A.length,t),A}function jC(A,e){let t=A.length,r=0,n,i,o,s;for(;t--;)if(n=A[t][1],i){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;A[t][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(A[t][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(i=t,n.type!=="labelLink")){r=2;break}}else n.type==="labelEnd"&&(o=t);const a={type:A[i][1].type==="labelLink"?"link":"image",start:{...A[i][1].start},end:{...A[A.length-1][1].end}},l={type:"label",start:{...A[i][1].start},end:{...A[o][1].end}},d={type:"labelText",start:{...A[i+r+2][1].end},end:{...A[o-2][1].start}};return s=[["enter",a,e],["enter",l,e]],s=Ue(s,A.slice(i+1,i+r+3)),s=Ue(s,[["enter",d,e]]),s=Ue(s,Vs(e.parser.constructs.insideSpan.null,A.slice(i+r+4,o-3),e)),s=Ue(s,[["exit",d,e],A[o-2],A[o-1],["exit",l,e]]),s=Ue(s,A.slice(o+1)),s=Ue(s,[["exit",a,e]]),Ve(A,i,A.length,s),A}function JC(A,e,t){const r=this;let n=r.events.length,i,o;for(;n--;)if((r.events[n][1].type==="labelImage"||r.events[n][1].type==="labelLink")&&!r.events[n][1]._balanced){i=r.events[n][1];break}return s;function s(h){return i?i._inactive?u(h):(o=r.parser.defined.includes(sr(r.sliceSerialize({start:i.end,end:r.now()}))),A.enter("labelEnd"),A.enter("labelMarker"),A.consume(h),A.exit("labelMarker"),A.exit("labelEnd"),a):t(h)}function a(h){return h===40?A.attempt(zC,d,o?d:u)(h):h===91?A.attempt(WC,d,o?l:u)(h):o?d(h):u(h)}function l(h){return A.attempt(XC,d,u)(h)}function d(h){return e(h)}function u(h){return i._balanced=!0,t(h)}}function $C(A,e,t){return r;function r(u){return A.enter("resource"),A.enter("resourceMarker"),A.consume(u),A.exit("resourceMarker"),n}function n(u){return fe(u)?an(A,i)(u):i(u)}function i(u){return u===41?d(u):sf(A,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return fe(u)?an(A,a)(u):d(u)}function s(u){return t(u)}function a(u){return u===34||u===39||u===40?lf(A,l,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function l(u){return fe(u)?an(A,d)(u):d(u)}function d(u){return u===41?(A.enter("resourceMarker"),A.consume(u),A.exit("resourceMarker"),A.exit("resource"),e):t(u)}}function qC(A,e,t){const r=this;return n;function n(s){return af.call(r,A,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(sr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(s):t(s)}function o(s){return t(s)}}function ZC(A,e,t){return r;function r(i){return A.enter("reference"),A.enter("referenceMarker"),A.consume(i),A.exit("referenceMarker"),n}function n(i){return i===93?(A.enter("referenceMarker"),A.consume(i),A.exit("referenceMarker"),A.exit("reference"),e):t(i)}}const Ay={name:"labelStartImage",resolveAll:Ws.resolveAll,tokenize:ey};function ey(A,e,t){const r=this;return n;function n(s){return A.enter("labelImage"),A.enter("labelImageMarker"),A.consume(s),A.exit("labelImageMarker"),i}function i(s){return s===91?(A.enter("labelMarker"),A.consume(s),A.exit("labelMarker"),A.exit("labelImage"),o):t(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):e(s)}}const ty={name:"labelStartLink",resolveAll:Ws.resolveAll,tokenize:ry};function ry(A,e,t){const r=this;return n;function n(o){return A.enter("labelLink"),A.enter("labelMarker"),A.consume(o),A.exit("labelMarker"),A.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):e(o)}}const Xs={name:"lineEnding",tokenize:ny};function ny(A,e){return t;function t(r){return A.enter("lineEnding"),A.consume(r),A.exit("lineEnding"),_A(A,e,"linePrefix")}}const ci={name:"thematicBreak",tokenize:iy};function iy(A,e,t){let r=0,n;return i;function i(l){return A.enter("thematicBreak"),o(l)}function o(l){return n=l,s(l)}function s(l){return l===n?(A.enter("thematicBreakSequence"),a(l)):r>=3&&(l===null||iA(l))?(A.exit("thematicBreak"),e(l)):t(l)}function a(l){return l===n?(A.consume(l),r++,a):(A.exit("thematicBreakSequence"),vA(l)?_A(A,s,"whitespace")(l):s(l))}}const he={continuation:{tokenize:ly},exit:uy,name:"list",tokenize:ay},oy={partial:!0,tokenize:dy},sy={partial:!0,tokenize:cy};function ay(A,e,t){const r=this,n=r.events[r.events.length-1];let i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=0;return s;function s(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ks(f)){if(r.containerState.type||(r.containerState.type=g,A.enter(g,{_container:!0})),g==="listUnordered")return A.enter("listItemPrefix"),f===42||f===45?A.check(ci,t,l)(f):l(f);if(!r.interrupt||f===49)return A.enter("listItemPrefix"),A.enter("listItemValue"),a(f)}return t(f)}function a(f){return Ks(f)&&++o<10?(A.consume(f),a):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(A.exit("listItemValue"),l(f)):t(f)}function l(f){return A.enter("listItemMarker"),A.consume(f),A.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,A.check(li,r.interrupt?t:d,A.attempt(oy,h,u))}function d(f){return r.containerState.initialBlankLine=!0,i++,h(f)}function u(f){return vA(f)?(A.enter("listItemPrefixWhitespace"),A.consume(f),A.exit("listItemPrefixWhitespace"),h):t(f)}function h(f){return r.containerState.size=i+r.sliceSerialize(A.exit("listItemPrefix"),!0).length,e(f)}}function ly(A,e,t){const r=this;return r.containerState._closeFlow=void 0,A.check(li,n,i);function n(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_A(A,e,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!vA(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,A.attempt(sy,e,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,_A(A,A.attempt(he,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function cy(A,e,t){const r=this;return _A(A,n,"listItemIndent",r.containerState.size+1);function n(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(i):t(i)}}function uy(A){A.exit(this.containerState.type)}function dy(A,e,t){const r=this;return _A(A,n,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(i){const o=r.events[r.events.length-1];return!vA(i)&&o&&o[1].type==="listItemPrefixWhitespace"?e(i):t(i)}}const uf={name:"setextUnderline",resolveTo:fy,tokenize:hy};function fy(A,e){let t=A.length,r,n,i;for(;t--;)if(A[t][0]==="enter"){if(A[t][1].type==="content"){r=t;break}A[t][1].type==="paragraph"&&(n=t)}else A[t][1].type==="content"&&A.splice(t,1),!i&&A[t][1].type==="definition"&&(i=t);const o={type:"setextHeading",start:{...A[r][1].start},end:{...A[A.length-1][1].end}};return A[n][1].type="setextHeadingText",i?(A.splice(n,0,["enter",o,e]),A.splice(i+1,0,["exit",A[r][1],e]),A[r][1].end={...A[i][1].end}):A[r][1]=o,A.push(["exit",o,e]),A}function hy(A,e,t){const r=this;let n;return i;function i(l){let d=r.events.length,u;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){u=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(A.enter("setextHeadingLine"),n=l,o(l)):t(l)}function o(l){return A.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===n?(A.consume(l),s):(A.exit("setextHeadingLineSequence"),vA(l)?_A(A,a,"lineSuffix")(l):a(l))}function a(l){return l===null||iA(l)?(A.exit("setextHeadingLine"),e(l)):t(l)}}const gy={tokenize:py};function py(A){const e=this,t=A.attempt(li,r,A.attempt(this.parser.constructs.flowInitial,n,_A(A,A.attempt(this.parser.constructs.flow,n,A.attempt(yC,n)),"linePrefix")));return t;function r(i){if(i===null){A.consume(i);return}return A.enter("lineEndingBlank"),A.consume(i),A.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function n(i){if(i===null){A.consume(i);return}return A.enter("lineEnding"),A.consume(i),A.exit("lineEnding"),e.currentConstruct=void 0,t}}const By={resolveAll:ff()},my=df("string"),wy=df("text");function df(A){return{resolveAll:ff(A==="text"?Cy:void 0),tokenize:e};function e(t){const r=this,n=this.parser.constructs[A],i=t.attempt(n,o,s);return o;function o(d){return l(d)?i(d):s(d)}function s(d){if(d===null){t.consume(d);return}return t.enter("data"),t.consume(d),a}function a(d){return l(d)?(t.exit("data"),i(d)):(t.consume(d),a)}function l(d){if(d===null)return!0;const u=n[d];let h=-1;if(u)for(;++h<u.length;){const f=u[h];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function ff(A){return e;function e(t,r){let n=-1,i;for(;++n<=t.length;)i===void 0?t[n]&&t[n][1].type==="data"&&(i=n,n++):(!t[n]||t[n][1].type!=="data")&&(n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),n=i+2),i=void 0);return A?A(t,r):t}}function Cy(A,e){let t=0;for(;++t<=A.length;)if((t===A.length||A[t][1].type==="lineEnding")&&A[t-1][1].type==="data"){const r=A[t-1][1],n=e.sliceStream(r);let i=n.length,o=-1,s=0,a;for(;i--;){const l=n[i];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)a=!0,s++;else if(l!==-1){i++;break}}if(e._contentTypeTextTrailing&&t===A.length&&(s=0),s){const l={type:t===A.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,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):(A.splice(t,0,["enter",l,e],["exit",l,e]),t+=2)}t++}return A}const yy=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:FC},disable:{null:[]},document:{42:he,43:he,45:he,48:he,49:he,50:he,51:he,52:he,53:he,54:he,55:he,56:he,57:he,62:Af},flow:{35:TC,42:ci,45:[uf,ci],60:LC,61:uf,95:ci,96:nf,126:nf},flowInitial:{[-2]:zs,[-1]:zs,32:zs},insideSpan:{null:[Gs,By]},string:{38:tf,92:ef},text:{[-5]:Xs,[-4]:Xs,[-3]:Xs,33:Ay,38:tf,42:Gs,60:[tC,VC],91:ty,92:[_C,ef],93:Ws,95:Gs,96:gC}},Symbol.toStringTag,{value:"Module"}));function Ey(A,e,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const n={},i=[];let o=[],s=[];const a={attempt:F(x),check:F(y),consume:C,enter:b,exit:_,interrupt:F(y,{interrupt:!0})},l={code:null,containerState:{},defineSkip:p,events:[],now:g,parser:A,previous:null,sliceSerialize:h,sliceStream:f,write:u};let d=e.tokenize.call(l,a);return e.resolveAll&&i.push(e),l;function u(k){return o=Ue(o,k),w(),o[o.length-1]!==null?[]:(Q(e,0),l.events=Vs(i,l.events,l),l.events)}function h(k,S){return by(f(k),S)}function f(k){return vy(o,k)}function g(){const{_bufferIndex:k,_index:S,line:L,column:M,offset:T}=r;return{_bufferIndex:k,_index:S,line:L,column:M,offset:T}}function p(k){n[k.line]=k.column,I()}function w(){let k;for(;r._index<o.length;){const S=o[r._index];if(typeof S=="string")for(k=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===k&&r._bufferIndex<S.length;)m(S.charCodeAt(r._bufferIndex));else m(S)}}function m(k){d=d(k)}function C(k){iA(k)?(r.line++,r.column=1,r.offset+=k===-3?2:1,I()):k!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=k}function b(k,S){const L=S||{};return L.type=k,L.start=g(),l.events.push(["enter",L,l]),s.push(L),L}function _(k){const S=s.pop();return S.end=g(),l.events.push(["exit",S,l]),S}function x(k,S){Q(k,S.from)}function y(k,S){S.restore()}function F(k,S){return L;function L(M,T,V){let z,D,cA,v;return Array.isArray(M)?rA(M):"tokenize"in M?rA([M]):eA(M);function eA(tA){return nA;function nA(DA){const OA=DA!==null&&tA[DA],UA=DA!==null&&tA.null,EA=[...Array.isArray(OA)?OA:OA?[OA]:[],...Array.isArray(UA)?UA:UA?[UA]:[]];return rA(EA)(DA)}}function rA(tA){return z=tA,D=0,tA.length===0?V:B(tA[D])}function B(tA){return nA;function nA(DA){return v=E(),cA=tA,tA.partial||(l.currentConstruct=tA),tA.name&&l.parser.constructs.disable.null.includes(tA.name)?AA():tA.tokenize.call(S?Object.assign(Object.create(l),S):l,a,J,AA)(DA)}}function J(tA){return k(cA,v),T}function AA(tA){return v.restore(),++D<z.length?B(z[D]):V}}}function Q(k,S){k.resolveAll&&!i.includes(k)&&i.push(k),k.resolve&&Ve(l.events,S,l.events.length-S,k.resolve(l.events.slice(S),l)),k.resolveTo&&(l.events=k.resolveTo(l.events,l))}function E(){const k=g(),S=l.previous,L=l.currentConstruct,M=l.events.length,T=Array.from(s);return{from:M,restore:V};function V(){r=k,l.previous=S,l.currentConstruct=L,l.events.length=M,s=T,I()}}function I(){r.line in n&&r.column<2&&(r.column=n[r.line],r.offset+=n[r.line]-1)}}function vy(A,e){const t=e.start._index,r=e.start._bufferIndex,n=e.end._index,i=e.end._bufferIndex;let o;if(t===n)o=[A[t].slice(r,i)];else{if(o=A.slice(t,n),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(A[n].slice(0,i))}return o}function by(A,e){let t=-1;const r=[];let n;for(;++t<A.length;){const i=A[t];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
81
- `;break}case-3:{o=`\r
82
- `;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&n)continue;o=" ";break}default:o=String.fromCharCode(i)}n=i===-2,r.push(o)}return r.join("")}function Qy(A){const r={constructs:Pw([yy,...(A||{}).extensions||[]]),content:n(jw),defined:[],document:n($w),flow:n(gy),lazy:{},string:n(my),text:n(wy)};return r;function n(i){return o;function o(s){return Ey(r,i,s)}}}function Fy(A){for(;!of(A););return A}const hf=/[\0\t\n\r]/g;function Uy(){let A=1,e="",t=!0,r;return n;function n(i,o,s){const a=[];let l,d,u,h,f;for(i=e+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,e="",t&&(i.charCodeAt(0)===65279&&u++,t=void 0);u<i.length;){if(hf.lastIndex=u,l=hf.exec(i),h=l&&l.index!==void 0?l.index:i.length,f=i.charCodeAt(h),!l){e=i.slice(u);break}if(f===10&&u===h&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),u<h&&(a.push(i.slice(u,h)),A+=h-u),f){case 0:{a.push(65533),A++;break}case 9:{for(d=Math.ceil(A/4)*4,a.push(-2);A++<d;)a.push(-1);break}case 10:{a.push(-4),A=1;break}default:r=!0,A=1}u=h+1}return s&&(r&&a.push(-5),e&&a.push(e),a.push(null)),a}}const xy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sy(A){return A.replace(xy,_y)}function _y(A,e,t){if(e)return e;if(t.charCodeAt(0)===35){const n=t.charCodeAt(1),i=n===120||n===88;return Jd(t.slice(i?2:1),i?16:10)}return Ds(t)||A}const gf={}.hasOwnProperty;function Iy(A,e,t){return typeof e!="string"&&(t=e,e=void 0),Ty(t)(Fy(Qy(t).document().write(Uy()(A,e,!0))))}function Ty(A){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ct),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(jA),blockQuote:i(UA),characterEscape:E,characterReference:E,codeFenced:i(EA),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(EA,o),codeText:i(re,o),codeTextData:E,data:E,codeFlowValue:E,definition:i(RA),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(se),hardBreakEscape:i(lt),hardBreakTrailing:i(lt),htmlFlow:i(Te,o),htmlFlowData:E,htmlText:i(Te,o),htmlTextData:E,image:i(Gt),label:o,link:i(ct),listItem:i(zt),listItemValue:h,listOrdered:i(De,u),listUnordered:i(De),paragraph:i(Hn),reference:B,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(jA),strong:i(vr),thematicBreak:i(go)},exit:{atxHeading:a(),atxHeadingSequence:x,autolink:a(),autolinkEmail:OA,autolinkProtocol:DA,blockQuote:a(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:AA,characterReferenceMarkerNumeric:AA,characterReferenceValue:tA,characterReference:nA,codeFenced:a(w),codeFencedFence:p,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:I,codeIndented:a(m),codeText:a(T),codeTextData:I,data:I,definition:a(),definitionDestinationString:_,definitionLabelString:C,definitionTitleString:b,emphasis:a(),hardBreakEscape:a(S),hardBreakTrailing:a(S),htmlFlow:a(L),htmlFlowData:I,htmlText:a(M),htmlTextData:I,image:a(z),label:cA,labelText:D,lineEnding:k,link:a(V),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:J,resourceDestinationString:v,resourceTitleString:eA,resource:rA,setextHeading:a(Q),setextHeadingLineSequence:F,setextHeadingText:y,strong:a(),thematicBreak:a()}};pf(e,(A||{}).mdastExtensions||[]);const t={};return r;function r(H){let U={type:"root",children:[]};const N={stack:[U],tokenStack:[],config:e,enter:s,exit:l,buffer:o,resume:d,data:t},O=[];let X=-1;for(;++X<H.length;)if(H[X][1].type==="listOrdered"||H[X][1].type==="listUnordered")if(H[X][0]==="enter")O.push(X);else{const sA=O.pop();X=n(H,sA,X)}for(X=-1;++X<H.length;){const sA=e[H[X][0]];gf.call(sA,H[X][1].type)&&sA[H[X][1].type].call(Object.assign({sliceSerialize:H[X][2].sliceSerialize},N),H[X][1])}if(N.tokenStack.length>0){const sA=N.tokenStack[N.tokenStack.length-1];(sA[1]||Bf).call(N,void 0,sA[0])}for(U.position={start:wt(H.length>0?H[0][1].start:{line:1,column:1,offset:0}),end:wt(H.length>0?H[H.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X<e.transforms.length;)U=e.transforms[X](U)||U;return U}function n(H,U,N){let O=U-1,X=-1,sA=!1,fA,TA,PA,ZA;for(;++O<=N;){const HA=H[O];switch(HA[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{HA[0]==="enter"?X++:X--,ZA=void 0;break}case"lineEndingBlank":{HA[0]==="enter"&&(fA&&!ZA&&!X&&!PA&&(PA=O),ZA=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ZA=void 0}if(!X&&HA[0]==="enter"&&HA[1].type==="listItemPrefix"||X===-1&&HA[0]==="exit"&&(HA[1].type==="listUnordered"||HA[1].type==="listOrdered")){if(fA){let gA=O;for(TA=void 0;gA--;){const aA=H[gA];if(aA[1].type==="lineEnding"||aA[1].type==="lineEndingBlank"){if(aA[0]==="exit")continue;TA&&(H[TA][1].type="lineEndingBlank",sA=!0),aA[1].type="lineEnding",TA=gA}else if(!(aA[1].type==="linePrefix"||aA[1].type==="blockQuotePrefix"||aA[1].type==="blockQuotePrefixWhitespace"||aA[1].type==="blockQuoteMarker"||aA[1].type==="listItemIndent"))break}PA&&(!TA||PA<TA)&&(fA._spread=!0),fA.end=Object.assign({},TA?H[TA][1].start:HA[1].end),H.splice(TA||O,0,["exit",fA,HA[2]]),O++,N++}if(HA[1].type==="listItemPrefix"){const gA={type:"listItem",_spread:!1,start:Object.assign({},HA[1].start),end:void 0};fA=gA,H.splice(O,0,["enter",gA,HA[2]]),O++,N++,PA=void 0,ZA=!0}}}return H[U][1]._spread=sA,N}function i(H,U){return N;function N(O){s.call(this,H(O),O),U&&U.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(H,U,N){this.stack[this.stack.length-1].children.push(H),this.stack.push(H),this.tokenStack.push([U,N||void 0]),H.position={start:wt(U.start),end:void 0}}function a(H){return U;function U(N){H&&H.call(this,N),l.call(this,N)}}function l(H,U){const N=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==H.type&&(U?U.call(this,H,O[0]):(O[1]||Bf).call(this,H,O[0]));else throw new Error("Cannot close `"+H.type+"` ("+nn({start:H.start,end:H.end})+"): it’s not open");N.position.end=wt(H.end)}function d(){return Rw(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function h(H){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(H),10),this.data.expectingFirstListItemValue=void 0}}function f(){const H=this.resume(),U=this.stack[this.stack.length-1];U.lang=H}function g(){const H=this.resume(),U=this.stack[this.stack.length-1];U.meta=H}function p(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const H=this.resume(),U=this.stack[this.stack.length-1];U.value=H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const H=this.resume(),U=this.stack[this.stack.length-1];U.value=H.replace(/(\r?\n|\r)$/g,"")}function C(H){const U=this.resume(),N=this.stack[this.stack.length-1];N.label=U,N.identifier=sr(this.sliceSerialize(H)).toLowerCase()}function b(){const H=this.resume(),U=this.stack[this.stack.length-1];U.title=H}function _(){const H=this.resume(),U=this.stack[this.stack.length-1];U.url=H}function x(H){const U=this.stack[this.stack.length-1];if(!U.depth){const N=this.sliceSerialize(H).length;U.depth=N}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function F(H){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(H).codePointAt(0)===61?1:2}function Q(){this.data.setextHeadingSlurpLineEnding=void 0}function E(H){const N=this.stack[this.stack.length-1].children;let O=N[N.length-1];(!O||O.type!=="text")&&(O=ho(),O.position={start:wt(H.start),end:void 0},N.push(O)),this.stack.push(O)}function I(H){const U=this.stack.pop();U.value+=this.sliceSerialize(H),U.position.end=wt(H.end)}function k(H){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const N=U.children[U.children.length-1];N.position.end=wt(H.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(U.type)&&(E.call(this,H),I.call(this,H))}function S(){this.data.atHardBreak=!0}function L(){const H=this.resume(),U=this.stack[this.stack.length-1];U.value=H}function M(){const H=this.resume(),U=this.stack[this.stack.length-1];U.value=H}function T(){const H=this.resume(),U=this.stack[this.stack.length-1];U.value=H}function V(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=U,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function z(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=U,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function D(H){const U=this.sliceSerialize(H),N=this.stack[this.stack.length-2];N.label=Sy(U),N.identifier=sr(U).toLowerCase()}function cA(){const H=this.stack[this.stack.length-1],U=this.resume(),N=this.stack[this.stack.length-1];if(this.data.inReference=!0,N.type==="link"){const O=H.children;N.children=O}else N.alt=U}function v(){const H=this.resume(),U=this.stack[this.stack.length-1];U.url=H}function eA(){const H=this.resume(),U=this.stack[this.stack.length-1];U.title=H}function rA(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function J(H){const U=this.resume(),N=this.stack[this.stack.length-1];N.label=U,N.identifier=sr(this.sliceSerialize(H)).toLowerCase(),this.data.referenceType="full"}function AA(H){this.data.characterReferenceType=H.type}function tA(H){const U=this.sliceSerialize(H),N=this.data.characterReferenceType;let O;N?(O=Jd(U,N==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=Ds(U);const X=this.stack[this.stack.length-1];X.value+=O}function nA(H){const U=this.stack.pop();U.position.end=wt(H.end)}function DA(H){I.call(this,H);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(H)}function OA(H){I.call(this,H);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(H)}function UA(){return{type:"blockquote",children:[]}}function EA(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function RA(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function jA(){return{type:"heading",depth:0,children:[]}}function lt(){return{type:"break"}}function Te(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function De(H){return{type:"list",ordered:H.type==="listOrdered",start:null,spread:H._spread,children:[]}}function zt(H){return{type:"listItem",spread:H._spread,checked:null,children:[]}}function Hn(){return{type:"paragraph",children:[]}}function vr(){return{type:"strong",children:[]}}function ho(){return{type:"text",value:""}}function go(){return{type:"thematicBreak"}}}function wt(A){return{line:A.line,column:A.column,offset:A.offset}}function pf(A,e){let t=-1;for(;++t<e.length;){const r=e[t];Array.isArray(r)?pf(A,r):Ny(A,r)}}function Ny(A,e){let t;for(t in e)if(gf.call(e,t))switch(t){case"canContainEols":{const r=e[t];r&&A[t].push(...r);break}case"transforms":{const r=e[t];r&&A[t].push(...r);break}case"enter":case"exit":{const r=e[t];r&&Object.assign(A[t],r);break}}}function Bf(A,e){throw A?new Error("Cannot close `"+A.type+"` ("+nn({start:A.start,end:A.end})+"): a different token (`"+e.type+"`, "+nn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+nn({start:e.start,end:e.end})+") is still open")}function ky(A){const e=this;e.parser=t;function t(r){return Iy(r,{...e.data("settings"),...A,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function Hy(A,e){const t={type:"element",tagName:"blockquote",properties:{},children:A.wrap(A.all(e),!0)};return A.patch(e,t),A.applyData(e,t)}function Ly(A,e){const t={type:"element",tagName:"br",properties:{},children:[]};return A.patch(e,t),[A.applyData(e,t),{type:"text",value:`
83
- `}]}function My(A,e){const t=e.value?e.value+`
84
- `:"",r={},n=e.lang?e.lang.split(/\s+/):[];n.length>0&&(r.className=["language-"+n[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return e.meta&&(i.data={meta:e.meta}),A.patch(e,i),i=A.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},A.patch(e,i),i}function Oy(A,e){const t={type:"element",tagName:"del",properties:{},children:A.all(e)};return A.patch(e,t),A.applyData(e,t)}function Ry(A,e){const t={type:"element",tagName:"em",properties:{},children:A.all(e)};return A.patch(e,t),A.applyData(e,t)}function Dy(A,e){const t=typeof A.options.clobberPrefix=="string"?A.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),n=ar(r.toLowerCase()),i=A.footnoteOrder.indexOf(r);let o,s=A.footnoteCounts.get(r);s===void 0?(s=0,A.footnoteOrder.push(r),o=A.footnoteOrder.length):o=i+1,s+=1,A.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+n,id:t+"fnref-"+n+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};A.patch(e,a);const l={type:"element",tagName:"sup",properties:{},children:[a]};return A.patch(e,l),A.applyData(e,l)}function Py(A,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:A.all(e)};return A.patch(e,t),A.applyData(e,t)}function Ky(A,e){if(A.options.allowDangerousHtml){const t={type:"raw",value:e.value};return A.patch(e,t),A.applyData(e,t)}}function mf(A,e){const t=e.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const n=A.all(e),i=n[0];i&&i.type==="text"?i.value="["+i.value:n.unshift({type:"text",value:"["});const o=n[n.length-1];return o&&o.type==="text"?o.value+=r:n.push({type:"text",value:r}),n}function Vy(A,e){const t=String(e.identifier).toUpperCase(),r=A.definitionById.get(t);if(!r)return mf(A,e);const n={src:ar(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(n.title=r.title);const i={type:"element",tagName:"img",properties:n,children:[]};return A.patch(e,i),A.applyData(e,i)}function Gy(A,e){const t={src:ar(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const r={type:"element",tagName:"img",properties:t,children:[]};return A.patch(e,r),A.applyData(e,r)}function zy(A,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};A.patch(e,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return A.patch(e,r),A.applyData(e,r)}function Wy(A,e){const t=String(e.identifier).toUpperCase(),r=A.definitionById.get(t);if(!r)return mf(A,e);const n={href:ar(r.url||"")};r.title!==null&&r.title!==void 0&&(n.title=r.title);const i={type:"element",tagName:"a",properties:n,children:A.all(e)};return A.patch(e,i),A.applyData(e,i)}function Xy(A,e){const t={href:ar(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const r={type:"element",tagName:"a",properties:t,children:A.all(e)};return A.patch(e,r),A.applyData(e,r)}function Yy(A,e,t){const r=A.all(e),n=t?jy(t):wf(e),i={},o=[];if(typeof e.checked=="boolean"){const d=r[0];let u;d&&d.type==="element"&&d.tagName==="p"?u=d:(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:e.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(n||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
85
- `}),d.type==="element"&&d.tagName==="p"&&!n?o.push(...d.children):o.push(d)}const a=r[r.length-1];a&&(n||a.type!=="element"||a.tagName!=="p")&&o.push({type:"text",value:`
86
- `});const l={type:"element",tagName:"li",properties:i,children:o};return A.patch(e,l),A.applyData(e,l)}function jy(A){let e=!1;if(A.type==="list"){e=A.spread||!1;const t=A.children;let r=-1;for(;!e&&++r<t.length;)e=wf(t[r])}return e}function wf(A){const e=A.spread;return e??A.children.length>1}function Jy(A,e){const t={},r=A.all(e);let n=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++n<r.length;){const o=r[n];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const i={type:"element",tagName:e.ordered?"ol":"ul",properties:t,children:A.wrap(r,!0)};return A.patch(e,i),A.applyData(e,i)}function $y(A,e){const t={type:"element",tagName:"p",properties:{},children:A.all(e)};return A.patch(e,t),A.applyData(e,t)}function qy(A,e){const t={type:"root",children:A.wrap(A.all(e))};return A.patch(e,t),A.applyData(e,t)}function Zy(A,e){const t={type:"element",tagName:"strong",properties:{},children:A.all(e)};return A.patch(e,t),A.applyData(e,t)}function AE(A,e){const t=A.all(e),r=t.shift(),n=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:A.wrap([r],!0)};A.patch(e.children[0],o),n.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:A.wrap(t,!0)},s=ks(e.children[1]),a=Od(e.children[e.children.length-1]);s&&a&&(o.position={start:s,end:a}),n.push(o)}const i={type:"element",tagName:"table",properties:{},children:A.wrap(n,!0)};return A.patch(e,i),A.applyData(e,i)}function eE(A,e,t){const r=t?t.children:void 0,i=(r?r.indexOf(e):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,s=o?o.length:e.children.length;let a=-1;const l=[];for(;++a<s;){const u=e.children[a],h={},f=o?o[a]:void 0;f&&(h.align=f);let g={type:"element",tagName:i,properties:h,children:[]};u&&(g.children=A.all(u),A.patch(u,g),g=A.applyData(u,g)),l.push(g)}const d={type:"element",tagName:"tr",properties:{},children:A.wrap(l,!0)};return A.patch(e,d),A.applyData(e,d)}function tE(A,e){const t={type:"element",tagName:"td",properties:{},children:A.all(e)};return A.patch(e,t),A.applyData(e,t)}const Cf=9,yf=32;function rE(A){const e=String(A),t=/\r?\n|\r/g;let r=t.exec(e),n=0;const i=[];for(;r;)i.push(Ef(e.slice(n,r.index),n>0,!0),r[0]),n=r.index+r[0].length,r=t.exec(e);return i.push(Ef(e.slice(n),n>0,!1)),i.join("")}function Ef(A,e,t){let r=0,n=A.length;if(e){let i=A.codePointAt(r);for(;i===Cf||i===yf;)r++,i=A.codePointAt(r)}if(t){let i=A.codePointAt(n-1);for(;i===Cf||i===yf;)n--,i=A.codePointAt(n-1)}return n>r?A.slice(r,n):""}function nE(A,e){const t={type:"text",value:rE(String(e.value))};return A.patch(e,t),A.applyData(e,t)}function iE(A,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return A.patch(e,t),A.applyData(e,t)}const oE={blockquote:Hy,break:Ly,code:My,delete:Oy,emphasis:Ry,footnoteReference:Dy,heading:Py,html:Ky,imageReference:Vy,image:Gy,inlineCode:zy,linkReference:Wy,link:Xy,listItem:Yy,list:Jy,paragraph:$y,root:qy,strong:Zy,table:AE,tableCell:tE,tableRow:eE,text:nE,thematicBreak:iE,toml:ui,yaml:ui,definition:ui,footnoteDefinition:ui};function ui(){}const vf=-1,di=0,ln=1,fi=2,Ys=3,js=4,Js=5,$s=6,bf=7,Qf=8,Ff=typeof self=="object"?self:globalThis,sE=(A,e)=>{const t=(n,i)=>(A.set(i,n),n),r=n=>{if(A.has(n))return A.get(n);const[i,o]=e[n];switch(i){case di:case vf:return t(o,n);case ln:{const s=t([],n);for(const a of o)s.push(r(a));return s}case fi:{const s=t({},n);for(const[a,l]of o)s[r(a)]=r(l);return s}case Ys:return t(new Date(o),n);case js:{const{source:s,flags:a}=o;return t(new RegExp(s,a),n)}case Js:{const s=t(new Map,n);for(const[a,l]of o)s.set(r(a),r(l));return s}case $s:{const s=t(new Set,n);for(const a of o)s.add(r(a));return s}case bf:{const{name:s,message:a}=o;return t(new Ff[s](a),n)}case Qf:return t(BigInt(o),n);case"BigInt":return t(Object(BigInt(o)),n);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return t(new DataView(s),o)}}return t(new Ff[i](o),n)};return r},Uf=A=>sE(new Map,A)(0),lr="",{toString:aE}={},{keys:lE}=Object,cn=A=>{const e=typeof A;if(e!=="object"||!A)return[di,e];const t=aE.call(A).slice(8,-1);switch(t){case"Array":return[ln,lr];case"Object":return[fi,lr];case"Date":return[Ys,lr];case"RegExp":return[js,lr];case"Map":return[Js,lr];case"Set":return[$s,lr];case"DataView":return[ln,t]}return t.includes("Array")?[ln,t]:t.includes("Error")?[bf,t]:[fi,t]},hi=([A,e])=>A===di&&(e==="function"||e==="symbol"),cE=(A,e,t,r)=>{const n=(o,s)=>{const a=r.push(o)-1;return t.set(s,a),a},i=o=>{if(t.has(o))return t.get(o);let[s,a]=cn(o);switch(s){case di:{let d=o;switch(a){case"bigint":s=Qf,d=o.toString();break;case"function":case"symbol":if(A)throw new TypeError("unable to serialize "+a);d=null;break;case"undefined":return n([vf],o)}return n([s,d],o)}case ln:{if(a){let h=o;return a==="DataView"?h=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(h=new Uint8Array(o)),n([a,[...h]],o)}const d=[],u=n([s,d],o);for(const h of o)d.push(i(h));return u}case fi:{if(a)switch(a){case"BigInt":return n([a,o.toString()],o);case"Boolean":case"Number":case"String":return n([a,o.valueOf()],o)}if(e&&"toJSON"in o)return i(o.toJSON());const d=[],u=n([s,d],o);for(const h of lE(o))(A||!hi(cn(o[h])))&&d.push([i(h),i(o[h])]);return u}case Ys:return n([s,o.toISOString()],o);case js:{const{source:d,flags:u}=o;return n([s,{source:d,flags:u}],o)}case Js:{const d=[],u=n([s,d],o);for(const[h,f]of o)(A||!(hi(cn(h))||hi(cn(f))))&&d.push([i(h),i(f)]);return u}case $s:{const d=[],u=n([s,d],o);for(const h of o)(A||!hi(cn(h)))&&d.push(i(h));return u}}const{message:l}=o;return n([s,{name:a,message:l}],o)};return i},xf=(A,{json:e,lossy:t}={})=>{const r=[];return cE(!(e||t),!!e,new Map,r)(A),r},gi=typeof structuredClone=="function"?(A,e)=>e&&("json"in e||"lossy"in e)?Uf(xf(A,e)):structuredClone(A):(A,e)=>Uf(xf(A,e));function uE(A,e){const t=[{type:"text",value:"↩"}];return e>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),t}function dE(A,e){return"Back to reference "+(A+1)+(e>1?"-"+e:"")}function fE(A){const e=typeof A.options.clobberPrefix=="string"?A.options.clobberPrefix:"user-content-",t=A.options.footnoteBackContent||uE,r=A.options.footnoteBackLabel||dE,n=A.options.footnoteLabel||"Footnotes",i=A.options.footnoteLabelTagName||"h2",o=A.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<A.footnoteOrder.length;){const l=A.footnoteById.get(A.footnoteOrder[a]);if(!l)continue;const d=A.all(l),u=String(l.identifier).toUpperCase(),h=ar(u.toLowerCase());let f=0;const g=[],p=A.footnoteCounts.get(u);for(;p!==void 0&&++f<=p;){g.length>0&&g.push({type:"text",value:" "});let C=typeof t=="string"?t:t(a,f);typeof C=="string"&&(C={type:"text",value:C}),g.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+h+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,f),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...g)}else d.push(...g);const m={type:"element",tagName:"li",properties:{id:e+"fn-"+h},children:A.wrap(d,!0)};A.patch(l,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...gi(o),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
87
- `},{type:"element",tagName:"ol",properties:{},children:A.wrap(s,!0)},{type:"text",value:`
88
- `}]}}const Sf=(function(A){if(A==null)return BE;if(typeof A=="function")return pi(A);if(typeof A=="object")return Array.isArray(A)?hE(A):gE(A);if(typeof A=="string")return pE(A);throw new Error("Expected function, string, or object as test")});function hE(A){const e=[];let t=-1;for(;++t<A.length;)e[t]=Sf(A[t]);return pi(r);function r(...n){let i=-1;for(;++i<e.length;)if(e[i].apply(this,n))return!0;return!1}}function gE(A){const e=A;return pi(t);function t(r){const n=r;let i;for(i in A)if(n[i]!==e[i])return!1;return!0}}function pE(A){return pi(e);function e(t){return t&&t.type===A}}function pi(A){return e;function e(t,r,n){return!!(mE(t)&&A.call(this,t,typeof r=="number"?r:void 0,n||void 0))}}function BE(){return!0}function mE(A){return A!==null&&typeof A=="object"&&"type"in A}function JS(A){return A}const _f=[],wE=!0,If=!1,CE="skip";function yE(A,e,t,r){let n;typeof e=="function"&&typeof t!="function"?(r=t,t=e):n=e;const i=Sf(n),o=r?-1:1;s(A,void 0,[])();function s(a,l,d){const u=a&&typeof a=="object"?a:{};if(typeof u.type=="string"){const f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(a.type+(f?"<"+f+">":""))+")"})}return h;function h(){let f=_f,g,p,w;if((!e||i(a,l,d[d.length-1]||void 0))&&(f=EE(t(a,d)),f[0]===If))return f;if("children"in a&&a.children){const m=a;if(m.children&&f[0]!==CE)for(p=(r?m.children.length:-1)+o,w=d.concat(m);p>-1&&p<m.children.length;){const C=m.children[p];if(g=s(C,p,w)(),g[0]===If)return g;p=typeof g[1]=="number"?g[1]:p+o}}return f}}}function EE(A){return Array.isArray(A)?A:typeof A=="number"?[wE,A]:A==null?_f:[A]}function Tf(A,e,t,r){let n,i,o;typeof e=="function"&&typeof t!="function"?(i=void 0,o=e,n=t):(i=e,o=t,n=r),yE(A,i,s,n);function s(a,l){const d=l[l.length-1],u=d?d.children.indexOf(a):void 0;return o(a,u,d)}}const qs={}.hasOwnProperty,vE={};function bE(A,e){const t=e||vE,r=new Map,n=new Map,i=new Map,o={...oE,...t.handlers},s={all:l,applyData:FE,definitionById:r,footnoteById:n,footnoteCounts:i,footnoteOrder:[],handlers:o,one:a,options:t,patch:QE,wrap:xE};return Tf(A,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const u=d.type==="definition"?r:n,h=String(d.identifier).toUpperCase();u.has(h)||u.set(h,d)}}),s;function a(d,u){const h=d.type,f=s.handlers[h];if(qs.call(s.handlers,h)&&f)return f(s,d,u);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in d){const{children:p,...w}=d,m=gi(w);return m.children=s.all(d),m}return gi(d)}return(s.options.unknownHandler||UE)(s,d,u)}function l(d){const u=[];if("children"in d){const h=d.children;let f=-1;for(;++f<h.length;){const g=s.one(h[f],d);if(g){if(f&&h[f-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Nf(g.value)),!Array.isArray(g)&&g.type==="element")){const p=g.children[0];p&&p.type==="text"&&(p.value=Nf(p.value))}Array.isArray(g)?u.push(...g):u.push(g)}}}return u}}function QE(A,e){A.position&&(e.position=Bw(A))}function FE(A,e){let t=e;if(A&&A.data){const r=A.data.hName,n=A.data.hChildren,i=A.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&i&&Object.assign(t.properties,gi(i)),"children"in t&&t.children&&n!==null&&n!==void 0&&(t.children=n)}return t}function UE(A,e){const t=e.data||{},r="value"in e&&!(qs.call(t,"hProperties")||qs.call(t,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:A.all(e)};return A.patch(e,r),A.applyData(e,r)}function xE(A,e){const t=[];let r=-1;for(e&&t.push({type:"text",value:`
89
- `});++r<A.length;)r&&t.push({type:"text",value:`
90
- `}),t.push(A[r]);return e&&A.length>0&&t.push({type:"text",value:`
91
- `}),t}function Nf(A){let e=0,t=A.charCodeAt(e);for(;t===9||t===32;)e++,t=A.charCodeAt(e);return A.slice(e)}function kf(A,e){const t=bE(A,e),r=t.one(A,void 0),n=fE(t),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return n&&i.children.push({type:"text",value:`
92
- `},n),i}function SE(A,e){return A&&"run"in A?async function(t,r){const n=kf(t,{file:r,...e});await A.run(n,r)}:function(t,r){return kf(t,{file:r,...A||e})}}function Hf(A){if(A)throw A}var Zs,Lf;function _E(){if(Lf)return Zs;Lf=1;var A=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=function(l){return typeof Array.isArray=="function"?Array.isArray(l):e.call(l)==="[object Array]"},i=function(l){if(!l||e.call(l)!=="[object Object]")return!1;var d=A.call(l,"constructor"),u=l.constructor&&l.constructor.prototype&&A.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!u)return!1;var h;for(h in l);return typeof h>"u"||A.call(l,h)},o=function(l,d){t&&d.name==="__proto__"?t(l,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):l[d.name]=d.newValue},s=function(l,d){if(d==="__proto__")if(A.call(l,d)){if(r)return r(l,d).value}else return;return l[d]};return Zs=function a(){var l,d,u,h,f,g,p=arguments[0],w=1,m=arguments.length,C=!1;for(typeof p=="boolean"&&(C=p,p=arguments[1]||{},w=2),(p==null||typeof p!="object"&&typeof p!="function")&&(p={});w<m;++w)if(l=arguments[w],l!=null)for(d in l)u=s(p,d),h=s(l,d),p!==h&&(C&&h&&(i(h)||(f=n(h)))?(f?(f=!1,g=u&&n(u)?u:[]):g=u&&i(u)?u:{},o(p,{name:d,newValue:a(C,g,h)})):typeof h<"u"&&o(p,{name:d,newValue:h}));return p},Zs}var IE=_E();const Aa=xc(IE);function ea(A){if(typeof A!="object"||A===null)return!1;const e=Object.getPrototypeOf(A);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in A)&&!(Symbol.iterator in A)}function TE(){const A=[],e={run:t,use:r};return e;function t(...n){let i=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...n);function s(a,...l){const d=A[++i];let u=-1;if(a){o(a);return}for(;++u<n.length;)(l[u]===null||l[u]===void 0)&&(l[u]=n[u]);n=l,d?NE(d,s)(...l):o(null,...l)}}function r(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return A.push(n),e}}function NE(A,e){let t;return r;function r(...o){const s=A.length>o.length;let a;s&&o.push(n);try{a=A.apply(this,o)}catch(l){const d=l;if(s&&t)throw d;return n(d)}s||(a&&a.then&&typeof a.then=="function"?a.then(i,n):a instanceof Error?n(a):i(a))}function n(o,...s){t||(t=!0,e(o,...s))}function i(o){n(null,o)}}const ze={basename:kE,dirname:HE,extname:LE,join:ME,sep:"/"};function kE(A,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');un(A);let t=0,r=-1,n=A.length,i;if(e===void 0||e.length===0||e.length>A.length){for(;n--;)if(A.codePointAt(n)===47){if(i){t=n+1;break}}else r<0&&(i=!0,r=n+1);return r<0?"":A.slice(t,r)}if(e===A)return"";let o=-1,s=e.length-1;for(;n--;)if(A.codePointAt(n)===47){if(i){t=n+1;break}}else o<0&&(i=!0,o=n+1),s>-1&&(A.codePointAt(n)===e.codePointAt(s--)?s<0&&(r=n):(s=-1,r=o));return t===r?r=o:r<0&&(r=A.length),A.slice(t,r)}function HE(A){if(un(A),A.length===0)return".";let e=-1,t=A.length,r;for(;--t;)if(A.codePointAt(t)===47){if(r){e=t;break}}else r||(r=!0);return e<0?A.codePointAt(0)===47?"/":".":e===1&&A.codePointAt(0)===47?"//":A.slice(0,e)}function LE(A){un(A);let e=A.length,t=-1,r=0,n=-1,i=0,o;for(;e--;){const s=A.codePointAt(e);if(s===47){if(o){r=e+1;break}continue}t<0&&(o=!0,t=e+1),s===46?n<0?n=e:i!==1&&(i=1):n>-1&&(i=-1)}return n<0||t<0||i===0||i===1&&n===t-1&&n===r+1?"":A.slice(n,t)}function ME(...A){let e=-1,t;for(;++e<A.length;)un(A[e]),A[e]&&(t=t===void 0?A[e]:t+"/"+A[e]);return t===void 0?".":OE(t)}function OE(A){un(A);const e=A.codePointAt(0)===47;let t=RE(A,!e);return t.length===0&&!e&&(t="."),t.length>0&&A.codePointAt(A.length-1)===47&&(t+="/"),e?"/"+t:t}function RE(A,e){let t="",r=0,n=-1,i=0,o=-1,s,a;for(;++o<=A.length;){if(o<A.length)s=A.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(n===o-1||i===1))if(n!==o-1&&i===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),n=o,i=0;continue}}else if(t.length>0){t="",r=0,n=o,i=0;continue}}e&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+A.slice(n+1,o):t=A.slice(n+1,o),r=o-n-1;n=o,i=0}else s===46&&i>-1?i++:i=-1}return t}function un(A){if(typeof A!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(A))}const DE={cwd:PE};function PE(){return"/"}function ta(A){return!!(A!==null&&typeof A=="object"&&"href"in A&&A.href&&"protocol"in A&&A.protocol&&A.auth===void 0)}function KE(A){if(typeof A=="string")A=new URL(A);else if(!ta(A)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+A+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(A.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return VE(A)}function VE(A){if(A.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=A.pathname;let t=-1;for(;++t<e.length;)if(e.codePointAt(t)===37&&e.codePointAt(t+1)===50){const r=e.codePointAt(t+2);if(r===70||r===102){const n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(e)}const ra=["history","path","basename","stem","extname","dirname"];class Mf{constructor(e){let t;e?ta(e)?t={path:e}:typeof e=="string"||GE(e)?t={value:e}:t=e:t={},this.cwd="cwd"in t?"":DE.cwd(),this.data={},this.history=[],this.messages=[];let r=-1;for(;++r<ra.length;){const i=ra[r];i in t&&t[i]!==void 0&&t[i]!==null&&(this[i]=i==="history"?[...t[i]]:t[i])}let n;for(n in t)ra.includes(n)||(this[n]=t[n])}get basename(){return typeof this.path=="string"?ze.basename(this.path):void 0}set basename(e){ia(e,"basename"),na(e,"basename"),this.path=ze.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?ze.dirname(this.path):void 0}set dirname(e){Of(this.basename,"dirname"),this.path=ze.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?ze.extname(this.path):void 0}set extname(e){if(na(e,"extname"),Of(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ze.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ta(e)&&(e=KE(e)),ia(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?ze.basename(this.path,this.extname):void 0}set stem(e){ia(e,"stem"),na(e,"stem"),this.path=ze.join(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new ne(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function na(A,e){if(A&&A.includes(ze.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+ze.sep+"`")}function ia(A,e){if(!A)throw new Error("`"+e+"` cannot be empty")}function Of(A,e){if(!A)throw new Error("Setting `"+e+"` requires `path` to be set too")}function GE(A){return!!(A&&typeof A=="object"&&"byteLength"in A&&"byteOffset"in A)}const zE=(function(A){const r=this.constructor.prototype,n=r[A],i=function(){return n.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),WE={}.hasOwnProperty;class oa extends zE{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=TE()}copy(){const e=new oa;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(Aa(!0,{},this.namespace)),e}data(e,t){return typeof e=="string"?arguments.length===2?(la("data",this.frozen),this.namespace[e]=t,this):WE.call(this.namespace,e)&&this.namespace[e]||void 0:e?(la("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const n=t.call(e,...r);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Bi(e),r=this.parser||this.Parser;return sa("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),sa("process",this.parser||this.Parser),aa("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(i,o){const s=Bi(e),a=r.parse(s);r.run(a,s,function(d,u,h){if(d||!u||!h)return l(d);const f=u,g=r.stringify(f,h);jE(g)?h.value=g:h.result=g,l(d,h)});function l(d,u){d||!u?o(d):i?i(u):t(void 0,u)}}}processSync(e){let t=!1,r;return this.freeze(),sa("processSync",this.parser||this.Parser),aa("processSync",this.compiler||this.Compiler),this.process(e,n),Df("processSync","process",t),r;function n(i,o){t=!0,Hf(i),r=o}}run(e,t,r){Rf(e),this.freeze();const n=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const a=Bi(t);n.run(e,a,l);function l(d,u,h){const f=u||e;d?s(d):o?o(f):r(void 0,f,h)}}}runSync(e,t){let r=!1,n;return this.run(e,t,i),Df("runSync","run",r),n;function i(o,s){Hf(o),n=s,r=!0}}stringify(e,t){this.freeze();const r=Bi(t),n=this.compiler||this.Compiler;return aa("stringify",n),Rf(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(la("use",this.frozen),e!=null)if(typeof e=="function")a(e,t);else if(typeof e=="object")Array.isArray(e)?s(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function i(l){if(typeof l=="function")a(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[d,...u]=l;a(d,u)}else o(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function o(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");s(l.plugins),l.settings&&(n.settings=Aa(!0,n.settings,l.settings))}function s(l){let d=-1;if(l!=null)if(Array.isArray(l))for(;++d<l.length;){const u=l[d];i(u)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function a(l,d){let u=-1,h=-1;for(;++u<r.length;)if(r[u][0]===l){h=u;break}if(h===-1)r.push([l,...d]);else if(d.length>0){let[f,...g]=d;const p=r[h][1];ea(p)&&ea(f)&&(f=Aa(!0,p,f)),r[h]=[l,f,...g]}}}}const XE=new oa().freeze();function sa(A,e){if(typeof e!="function")throw new TypeError("Cannot `"+A+"` without `parser`")}function aa(A,e){if(typeof e!="function")throw new TypeError("Cannot `"+A+"` without `compiler`")}function la(A,e){if(e)throw new Error("Cannot call `"+A+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rf(A){if(!ea(A)||typeof A.type!="string")throw new TypeError("Expected node, got `"+A+"`")}function Df(A,e,t){if(!t)throw new Error("`"+A+"` finished async. Use `"+e+"` instead")}function Bi(A){return YE(A)?A:new Mf(A)}function YE(A){return!!(A&&typeof A=="object"&&"message"in A&&"messages"in A)}function jE(A){return typeof A=="string"||JE(A)}function JE(A){return!!(A&&typeof A=="object"&&"byteLength"in A&&"byteOffset"in A)}const Pf=[],Kf={allowDangerousHtml:!0},$E=/^(https?|ircs?|mailto|xmpp)$/i,qE=[{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:"className",id:"remove-classname"},{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 dn(A){const e=ZE(A),t=Av(A);return ev(e.runSync(e.parse(t),t),A)}function ZE(A){const e=A.rehypePlugins||Pf,t=A.remarkPlugins||Pf,r=A.remarkRehypeOptions?{...A.remarkRehypeOptions,...Kf}:Kf;return XE().use(ky).use(t).use(SE,r).use(e)}function Av(A){const e=A.children||"",t=new Mf;return typeof e=="string"&&(t.value=e),t}function ev(A,e){const t=e.allowedElements,r=e.allowElement,n=e.components,i=e.disallowedElements,o=e.skipHtml,s=e.unwrapDisallowed,a=e.urlTransform||tv;for(const d of qE);return Tf(A,l),Ew(A,{Fragment:QA,components:n,ignoreInvalidStyle:!0,jsx:c,jsxs:c,passKeys:!0,passNode:!0});function l(d,u,h){if(d.type==="raw"&&h&&typeof u=="number")return o?h.children.splice(u,1):h.children[u]={type:"text",value:d.value},u;if(d.type==="element"){let f;for(f in Rs)if(Object.hasOwn(Rs,f)&&Object.hasOwn(d.properties,f)){const g=d.properties[f],p=Rs[f];(p===null||p.includes(d.tagName))&&(d.properties[f]=a(String(g||""),f,d))}}if(d.type==="element"){let f=t?!t.includes(d.tagName):i?i.includes(d.tagName):!1;if(!f&&r&&typeof u=="number"&&(f=!r(d,u,h)),f&&h&&typeof u=="number")return s&&d.children?h.children.splice(u,1,...d.children):h.children.splice(u,1),u}}}function tv(A){const e=A.indexOf(":"),t=A.indexOf("?"),r=A.indexOf("#"),n=A.indexOf("/");return e===-1||n!==-1&&e>n||t!==-1&&e>t||r!==-1&&e>r||$E.test(A.slice(0,e))?A:""}function Vf({file:A,onRemove:e,isPreview:t=!0,className:r=""}){const[n,i]=G(!1),[o,s]=G(""),a=A?.type?.startsWith("image/")??!1,l=A?.type==="application/pdf";j(()=>{if(a){const h=URL.createObjectURL(A);return s(h),()=>URL.revokeObjectURL(h)}},[A,a]),j(()=>{i(!1)},[A]);const d=()=>a?"text-green-600":"text-text-secondary",u=h=>{if(h===0)return"0 B";const f=1024,g=["B","KB","MB","GB"],p=Math.floor(Math.log(h)/Math.log(f));return`${(h/Math.pow(f,p)).toFixed(1)} ${g[p]}`.toLowerCase()};return!a||n?c("div",{className:`relative group inline-flex flex-shrink-0 bg-white border border-neutral-300 rounded-lg flex items-center gap-3 px-3 py-2.5 max-w-full ${t?"hover:bg-neutral-50":""} ${r}`,children:[c("div",{className:`flex-shrink-0 ${d()}`,children:c(Dm,{className:"h-5 w-5"})}),c("div",{className:"flex-1 min-w-0 max-w-[200px]",children:[A?.name&&c("div",{className:"text-sm font-medium text-[var(--color-foreground)] truncate",children:A.name}),A?.size&&c("div",{className:"text-xs text-[var(--color-muted-foreground)]",children:u(A.size)})]}),t&&e&&c("button",{onClick:e,"aria-label":`Remove ${A.name}`,className:"flex-shrink-0 flex items-center justify-center w-5 h-5 text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)] transition-colors",children:c(An,{className:"h-4 w-4"})})]}):c("div",{className:`relative group flex-shrink-0 ${r}`,children:[c("div",{className:`w-20 h-20 bg-white border border-neutral-300 rounded-lg flex items-center justify-center overflow-hidden ${t?"hover:bg-neutral-100 cursor-pointer":""}`,children:o&&c("img",{src:o,alt:A.name,className:"w-full h-full object-cover",onError:()=>i(!0)})}),t&&e&&c("button",{onClick:e,"aria-label":`Remove ${A.name}`,className:"absolute top-0 right-0 bg-[var(--color-muted)] text-black rounded-full w-5 h-5 flex items-center justify-center hover:bg-[var(--color-muted-foreground)] transition-colors z-10 transform translate-x-1 -translate-y-1",children:c(An,{className:"h-3 w-3 text-black"})})]})}function ca({files:A,onRemoveFile:e,isPreview:t=!0,className:r=""}){if(A.length===0)return null;const n=A.filter(o=>o.type?.startsWith("image/")),i=A.filter(o=>!o.type?.startsWith("image/"));return c("div",{className:`flex flex-wrap justify-end gap-2 max-w-full ${r}`,children:[i.map(o=>{const s=A.indexOf(o);return c(Vf,{file:o,onRemove:e?()=>e(s):void 0,isPreview:t},`${o.name}-${o.size}-${s}`)}),n.length>0&&c("div",{className:"flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide",children:n.map(o=>{const s=A.indexOf(o);return c(Vf,{file:o,onRemove:e?()=>e(s):void 0,isPreview:t},`${o.name}-${o.size}-${s}`)})})]})}const rv=He(()=>Promise.resolve().then(()=>uv).then(A=>({default:A.Pills}))),nv=He(()=>Promise.resolve().then(()=>ab).then(A=>({default:A.MultiSelectGroup}))),iv=He(()=>Promise.resolve().then(()=>ub).then(A=>({default:A.FocusCarousel}))),ov=He(()=>Promise.resolve().then(()=>hb).then(A=>({default:A.DoctorCard}))),sv=He(()=>Promise.resolve().then(()=>Bb).then(A=>({default:A.CardList}))),av=He(()=>Promise.resolve().then(()=>Eb).then(A=>({default:A.MediaCard})));function Ae({className:A}){return c("div",{className:K("relative overflow-hidden bg-surface-secondary","before:absolute before:inset-0","before:-translate-x-full before:animate-[shimmer_1.4s_infinite]","before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",A)})}function cr({variant:A}){return A==="pill"?c("div",{className:"flex flex-wrap gap-2 mt-3","aria-busy":!0,"aria-label":"Loading options",children:[c(mi,{}),c(Ae,{className:"h-8 w-20 rounded-full"}),c(Ae,{className:"h-8 w-24 rounded-full"}),c(Ae,{className:"h-8 w-16 rounded-full"})]}):A==="media"?c("div",{className:"mt-3 w-56 rounded-xl border border-border-subtle bg-surface p-3","aria-busy":!0,"aria-label":"Loading media",children:[c(mi,{}),c(Ae,{className:"h-24 w-full rounded-lg"}),c("div",{className:"mt-3 space-y-2",children:[c(Ae,{className:"h-3 w-3/4 rounded"}),c(Ae,{className:"h-3 w-1/2 rounded"})]})]}):A==="input"?c("div",{className:"mt-3 w-full rounded-xl border border-primary/30 bg-elicitationBg p-4","aria-busy":!0,"aria-label":"Loading input",children:[c(mi,{}),c(Ae,{className:"h-3 w-32 rounded mb-3"}),c("div",{className:"space-y-2",children:[c(Ae,{className:"h-9 w-full rounded-lg"}),c(Ae,{className:"h-9 w-full rounded-lg"}),c(Ae,{className:"h-9 w-full rounded-lg"})]}),c(Ae,{className:"mt-4 h-9 w-full rounded-lg"})]}):c("div",{className:"mt-3 w-72 rounded-xl border border-border-subtle bg-surface p-4","aria-busy":!0,"aria-label":"Loading card",children:[c(mi,{}),c("div",{className:"flex items-center gap-3",children:[c(Ae,{className:"h-10 w-10 rounded-full"}),c("div",{className:"flex-1 space-y-2",children:[c(Ae,{className:"h-3 w-3/4 rounded"}),c(Ae,{className:"h-3 w-1/2 rounded"})]})]}),c("div",{className:"mt-4 space-y-2",children:[c(Ae,{className:"h-3 w-full rounded"}),c(Ae,{className:"h-3 w-5/6 rounded"})]}),c(Ae,{className:"mt-4 h-9 w-28 rounded-lg"})]})}function mi(){return c("style",{children:"@keyframes shimmer { 100% { transform: translateX(100%); } }"})}function lv({messageId:A,tool_key:e,entry:t,onSendMessage:r,disabled:n}){const[i,o]=G([]),[s,a]=G({}),[l,d]=G(!1),[u,h]=G(5),f=t.component,g=t.disabled,p=yA(()=>t.ui_input,[t.ui_input]);j(()=>{f===P.SYNAPSE_COMPONENTS.DOCTOR_CARD&&p?.doctor_details&&a(p.doctor_details)},[f,p?.doctor_details]);const w=async E=>{d(!0),await r({message:E.value,messageId:A,toolCalled:!0,selectedComponent:E,tool_key:e})},m=async(E,I,k)=>{await r({toolCalled:!0,selectedComponent:E,selected_id:E.doctor_id,message:I,tool_key:e,messageId:A,...k&&{tool_result:k}})},C=async()=>{await r({message:"show more"})},b=async()=>{i.length!==0&&await r({message:i.join(", "),messageId:A,toolCalled:!0,tool_key:e})},_=()=>{const E=f===P.SYNAPSE_COMPONENTS.MULTI&&p?.options;return E?Array.isArray(E)?E.map((I,k)=>({id:`option-${k}`,label:I.label,value:I.value})):Object.keys(E).map((I,k)=>({id:`option-${k}`,label:I,value:I})):[]},x=yA(()=>{if(f===P.SYNAPSE_COMPONENTS.DOCTOR_CARD)return p?.doctors?.filter(I=>!!I&&!!I.doctor_id)},[f,p?.doctors]);if(!f)return null;const y=f===P.SYNAPSE_COMPONENTS.PILL?p?.options:void 0,F=f===P.SYNAPSE_COMPONENTS.CARD?p?.cards:void 0,Q=f===P.SYNAPSE_COMPONENTS.MEDIA_CARD?p?.media_card:void 0;return c("div",{className:"flex justify-end",children:[y&&c(ue,{fallback:c(cr,{variant:"pill"}),children:c("div",{className:`flex ${y.length>3?"flex-col":"flex-wrap"} gap-2 mt-3`,children:[y.slice(0,u).map((E,I)=>c(rv,{disabled:g||n||l,text:E?.label||"",onClick:()=>w(E),className:"cursor-pointer"},I)),y.length>u&&c("button",{type:"button",disabled:g||n||l,onClick:()=>h(E=>E+5),className:K("inline-flex items-center gap-1.5 self-start rounded-lg border border-dashed border-primary","bg-elicitationBg px-3 py-2 text-xs font-semibold text-primary","transition-colors cursor-pointer","disabled:opacity-50 disabled:cursor-not-allowed"),children:[c(rr,{className:"w-3.5 h-3.5"}),"Show ",Math.min(5,y.length-u)," more"]})]})}),f===P.SYNAPSE_COMPONENTS.MULTI&&p?.options&&c(ue,{fallback:c(cr,{variant:"input"}),children:c("div",{className:"mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4",children:[c("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Select multiple options:"}),c(nv,{options:_(),selectedValues:i,onSelectionChange:o,disabled:g||n}),c(uA,{onClick:b,disabled:i.length===0||g||n,className:K("w-full rounded-lg px-4 py-2 text-sm font-medium transition-all","bg-primary hover:bg-primary/90 text-primary-foreground","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-primary/50 disabled:text-primary-foreground","shadow-sm hover:shadow-md active:scale-[0.98] "),children:"Confirm"})]})}),x&&x.length>0?c(ue,{fallback:c(cr,{variant:"card"}),children:c(iv,{count:x.length>1?x.length+1:x.length,renderItem:(E,I)=>{if(x.length>1&&E===x.length)return c("button",{type:"button",onClick:C,disabled:n||g,className:K("max-w-md w-full h-full flex flex-col items-center justify-center gap-2 px-4","rounded-xl border-2 border-dashed border-black-200 dark:border-white-200 bg-primary/[10%]","transition-colors disabled:opacity-60 disabled:cursor-not-allowed"),children:[c("span",{className:K("flex items-center justify-center","w-10 h-10 rounded-full bg-elicitationBg shadow-sm"),children:c(qm,{className:"w-4 h-4 text-primary"})}),c("span",{className:"text-primary font-semibold text-sm",children:"Show more"})]});const k=x[E];return c(ue,{fallback:c(cr,{variant:"card"}),children:c(ov,{doctor:k,doctorDetails:s?.[k.doctor_id],disabled:n,onSelect:m,isActive:I})},k.doctor_id)}})}):null,F&&c(ue,{fallback:c(cr,{variant:"card"}),children:c(sv,{cards:F,onSelect:async E=>{await r({...E,toolCalled:!0,tool_key:e,messageId:A})},orientation:t.orientation,disabled:g||n})}),Q&&c(ue,{fallback:c(cr,{variant:"media"}),children:c("div",{className:"mt-3",children:c(av,{card:Q})})})]})}function cv({id:A,role:e,content:t,files:r,isLastMessage:n,progressMessage:i,toolKeys:o,userHint:s,elicitationState:a,toolCallStatus:l,onSendMessage:d,onToggleFeedback:u,disabled:h,onClearElicitationState:f,isAuthComponent:g,isFullScreen:p}){const w=e==="user",[m,C]=G(P.USER_FEEDBACK.NONE),b=CA(y=>y.isStreaming),_=y=>{C(y),u(y)},x=!!(t?.trim()||r&&r.length>0||l||i||s);return c(QA,{children:[x&&c("div",{className:K("flex",w?"justify-end":"justify-start"),children:c("div",{className:K("flex gap-3",w?"flex-row-reverse":"flex-row",w?"max-w-[60%]":p?"w-full":"max-w-xs"),children:c("div",{className:"flex flex-col",children:[c(nt,{className:K("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap",w?"bg-primary text-primary-foreground shadow-sm":K("text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200"),p&&!w&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:[l&&!w&&c("div",{className:"text-xs text-muted-foreground mb-2 pb-2 border-b border-border-subtle",children:l}),!l&&i&&!w&&n&&c("p",{className:"text-sm font-medium text-muted-foreground pb-2",children:i}),t&&c("div",{className:K("markdown-content",p&&!w?"text-base leading-6":"text-sm"),children:c(dn,{children:`${t} ${!w&&b&&n?"...":""}`})}),r&&r.length>0&&c("div",{className:"mt-2",children:c(ca,{files:r,isPreview:!1,className:""})}),i&&!w&&n&&c("p",{className:"text-sm font-medium text-muted-foreground",children:i})]}),!s&&!w&&!b&&n&&t&&m===P.USER_FEEDBACK.NONE&&c("div",{className:"flex items-center gap-2 self-start mt-1",children:c("div",{className:"flex items-center gap-1",children:[c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>_(P.USER_FEEDBACK.LIKE),children:c(ri,{className:"h-3 w-3"})}),c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>_(P.USER_FEEDBACK.DISLIKE),children:c(ni,{className:"h-3 w-3"})})]})}),!s&&!w&&!b&&n&&m===P.USER_FEEDBACK.LIKE&&c("div",{className:"flex items-center gap-2 self-start mt-1",children:c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:c(ri,{className:"h-3 w-3"})})}),!s&&!w&&!b&&n&&m===P.USER_FEEDBACK.DISLIKE&&c("div",{className:"flex items-center gap-2 self-start mt-1",children:c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:c(ni,{className:"h-3 w-3"})})}),g&&n&&o?.length?c("div",{className:"flex items-center gap-2 self-start mt-1",children:c(uA,{variant:"link",size:"sm",className:"h-6 px-0 text-[12px] font-medium text-primary border-b border-dashed border-primary rounded-none bg-transparent no-underline hover:no-underline hover:bg-transparent active:bg-transparent focus-visible:bg-transparent rounded-none",onClick:()=>{const y=o[o.length-1];y&&a[y].active&&f(y,"Cancel OTP Verification")},children:"Cancel OTP Verification"})}):null]})})}),o?.map(y=>{const F=a[y];return F?c(lv,{messageId:A,tool_key:y,entry:F,onSendMessage:d,disabled:h||F.disabled},y):null}),s&&!w&&c("div",{className:"flex justify-start",children:c("div",{className:K("flex gap-3 flex-row",p?"w-full":"max-w-xs"),children:c("div",{className:"flex flex-col",children:[c(nt,{className:K("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",p&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:c("div",{className:K("markdown-content",p?"text-base leading-6":"text-sm"),children:c(dn,{children:s})})}),!b&&n&&m===P.USER_FEEDBACK.NONE&&c("div",{className:"flex items-center gap-2 self-start mt-1",children:c("div",{className:"flex items-center gap-1",children:[c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>_(P.USER_FEEDBACK.LIKE),children:c(ri,{className:"h-3 w-3"})}),c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>_(P.USER_FEEDBACK.DISLIKE),children:c(ni,{className:"h-3 w-3"})})]})}),!b&&n&&m===P.USER_FEEDBACK.LIKE&&c("div",{className:"flex items-center gap-2 self-start mt-1",children:c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:c(ri,{className:"h-3 w-3"})})}),!b&&n&&m===P.USER_FEEDBACK.DISLIKE&&c("div",{className:"flex items-center gap-2 self-start mt-1",children:c(uA,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:c(ni,{className:"h-3 w-3"})})})]})})})]})}function Gf({text:A,maxWidth:e="200px",className:t="",icon:r,onClick:n,disabled:i=!1}){const[o,s]=G(!1),a=Z(null),l=Z(null);return j(()=>{const d=()=>{if(a.current&&l.current){const u=a.current.offsetWidth,h=l.current.scrollWidth;s(h>u)}};return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[A,e]),A?c("div",{ref:a,onClick:i?void 0:n,className:K("inline-flex items-center gap-2 rounded-lg border border-primary bg-elicitationBg px-3 py-2 shadow-sm text-xs text-primary cursor-pointer",t,i?"opacity-50 cursor-not-allowed":""),style:{maxWidth:e,WebkitTapHighlightColor:"transparent",outline:"none"},title:A,children:[r&&c("span",{className:"text-primary",children:r}),c("div",{className:"pill-marquee-wrapper",children:c("span",{ref:l,className:K("block whitespace-normal",o?"pill-marquee":""),children:A})})]}):null}const uv=Object.freeze(Object.defineProperty({__proto__:null,Pills:Gf},Symbol.toStringTag,{value:"Module"}));function dv({text:A,suggestions:e,onSendMessage:t,disabled:r,isFullScreen:n}){if(!A&&!e?.length)return null;const i=o=>{const s=o.value||o.label||"";s&&t({message:s})};return c(QA,{children:[A&&c("div",{className:"flex justify-start",children:c("div",{className:K("flex gap-3 flex-row",n?"w-full":"max-w-xs"),children:c(nt,{className:K("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",n&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none text-black-900"),children:c("div",{className:K("markdown-content",n?"text-base leading-6":"text-sm"),children:c(dn,{children:A})})})})}),e&&e.length>0&&c("div",{className:"flex justify-end",children:c("div",{className:K("flex gap-2 mt-3",e.length>3?"flex-col":"flex-wrap"),children:e.map((o,s)=>c(Gf,{text:o.label||"",onClick:()=>i(o),disabled:r,className:"cursor-pointer"},s))})})]})}function fv({messages:A,onSendMessage:e,onToggleFeedback:t,onClearElicitationState:r,isAuthComponent:n,isFullScreen:i,initialMessage:o,disabled:s}){const a=CA(f=>f.isWaitingForResponse),l=CA(f=>f.connectionStatus),d=CA(f=>f.elicitationState),u=l===$A.CONNECTED,h=CA(f=>f.progressMessage);return A.length===0&&!h?c(dv,{text:o?.text,suggestions:o?.suggestions,onSendMessage:e,disabled:s,isFullScreen:i}):c(QA,{children:[(A&&A.length>0||h)&&c(QA,{children:A.map((f,g)=>c("div",{className:"animate-slideUp scroll-mt-[16px] min-w-0 overflow-hidden","data-role":f.role,"data-message-id":f.id,id:g===A.length-1?"last-message":void 0,children:c(cv,{id:f.id,role:f.role,content:f.content,files:f.files||[],toolKeys:f.tool_keys,userHint:f.userHint,elicitationState:d,timestamp:f.timestamp,onSendMessage:e,isLastMessage:g===A.length-1,progressMessage:h,toolCallStatus:f.toolCallStatus,disabled:!u,onToggleFeedback:p=>t(p,f.id),onClearElicitationState:r,isAuthComponent:n,isFullScreen:i})},f.id))}),a&&c(hv,{})]})}function hv(){return c("div",{className:"animate-slideUp",children:c("div",{className:"flex justify-start",children:c("div",{className:"flex gap-3",children:c(nt,{className:"px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm",children:c("div",{className:"flex items-center gap-1.5","aria-label":"Bot is typing",children:[0,1,2].map(A=>c("span",{className:"w-2 h-2 rounded-full bg-foreground animate-pulse",style:{animationDelay:`${A*150}ms`}},A))})})})})})}function zf(){const[A,e]=G(typeof navigator<"u"?navigator.onLine:!0);return j(()=>{const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t),window.addEventListener("offline",r),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}},[]),{isOnline:A}}const gv=A=>A?A.split(" ").map(e=>e[0]).slice(0,2).join("").toUpperCase():"DR",pv=A=>{const e=new Date(A),t=e.toLocaleDateString(void 0,{weekday:"short"}),r=e.toLocaleDateString(void 0,{day:"2-digit"});return{weekday:t,dayNum:r}},Bv=(A=[],e=[])=>{if(!A.length)return e;if(!e.length)return A;const t=A.map(r=>({...r}));for(const r of e){const n=r.date?t.findIndex(i=>i.date===r.date):-1;if(n===-1)t.push({...r});else{const i=t[n];t[n]={...i,...r,slots:r.slots??i.slots}}}return t},mv=(A=[],e=[])=>{if(!A.length)return e;if(!e.length)return A;const t=A.map(r=>({...r}));for(const r of e){const n=r.doctor_id?t.findIndex(i=>i.doctor_id===r.doctor_id):-1;if(n===-1)t.push({...r});else{const i=t[n];t[n]={...i,...r,availability:Bv(i.availability,r.availability)}}}return t},Wf=A=>!!A&&Array.isArray(A.doctors),wv=(A,e,t)=>A?e?t!==P.SYNAPSE_COMPONENTS.DOCTOR_CARD?e:!Wf(A)||!Wf(e)?A:{...e,doctors:mv(A.doctors,e.doctors),doctor_details:{...A.doctor_details||{},...e.doctor_details||{}}}:A:e,Ct=A=>{const e=A;return e?.message?e.error?.msg||e.message:A instanceof Error?A.message:"An unexpected error occurred"},Cv=({environment:A,connectionType:e,baseUrl:t,context:r,auth:n,authToken:i})=>{const[o,s]=G([]),a=Z([]),[l,d]=G(!1),u=Z(0),[h,f]=G(!1),[g,p]=G([]),w=Z(null),m=a0(),C=Z(null),{isOnline:b}=zf(),_=Z(!1),x=CA(U=>U.agentId),y=CA(U=>U.sessionId),F=CA(U=>U.sessionToken),Q=CA(U=>U.isStreaming),E=CA(U=>U.isWaitingForResponse),I=CA(U=>U.initialMessage),k=CA(U=>U.userId),S=CA(U=>U.fileUploadPerSession),{setSessionId:L,setSessionToken:M,setError:T,setConnectionStatus:V,setShowRetryButton:z,setStartNewConnection:D,setIsStreaming:cA,setIsWaitingForResponse:v,setProgressMessage:eA,setRecordingStatus:rA,clearSession:B,addMessageToSession:J,getMessagesForSession:AA,updateMessageInSession:tA,setUserId:nA,setFileUploadPerSession:DA,setToastMessage:OA,upsertElicitationState:UA}=CA.getState();j(()=>{b?h?RA()&&(V($A.CONNECTED),jA()):V($A.CONNECTING):V($A.NOT_CONNECTED)},[b,h]),j(()=>{y&&(s(U=>[...U,...AA(y)||[]]),p([]))},[y]),j(()=>{if(f(!1),!x)return;const U=new P.SynapseSDK({agentId:x,environment:A,...e&&{connectionType:e},userId:k,callbacks:{onError:N=>{switch(N.code){case P.SynapseErrorCode.SESSION:{const O=N.context;O?.stage==="handleSessionExpiry"||O?.stage==="refreshSession"?b?(T({title:"Internet connection Failed!",description:Ct(N)}),z(!0)):(T({title:"Your session has ended.",description:"Please start a new Chat."}),z(!0)):(V($A.NOT_CONNECTED),T({title:"Something went wrong!",description:Ct(N)}),z(!0));break}case P.SynapseErrorCode.RECORDING:T({title:"Recording failed",description:Ct(N)});break;case P.SynapseErrorCode.CONNECTION:RA()||(V($A.NOT_CONNECTED),u.current<2?(u.current=u.current+1,EA(y,F)):(z(!0),T({title:"Trying to connect...",description:Ct(N)})));break;default:T({title:"Something went wrong",description:Ct(N)}),z(!0);break}},onSessionRefreshed:N=>{N?.session_id&&N?.session_token&&(L(N.session_id),M(N.session_token))}},...t&&{serverUrl:t},...r&&{context:r},...n&&{auth:n},...i&&{authToken:i}});return w.current=U,m(U),f(!0),()=>{f(!1),w.current?.endSession(),w.current=null,m(null),C.current&&(clearTimeout(C.current),C.current=null)}},[x,A,n,i]),j(()=>{a.current=o},[o]),j(()=>{const U=a.current[a.current.length-1];!U?.role||!y||(U?.role===Fe.USER&&!U.isStored?J(y,{...U,isStored:!0}):!Q&&!U.isStored&&(s(N=>{const O=[...N];return O[O.length-1]={...U,isStored:!0},O}),J(y,{...U,isStored:!0})))},[o,Q]),j(()=>{const U=o[o.length-1];return()=>{U&&!U?.isStored&&y&&J(y,{...U,isStored:!0})}},[]),j(()=>(C.current&&(clearTimeout(C.current),C.current=null),E&&!Q?C.current=setTimeout(()=>{v(!1),C.current=null},3e4):Q&&C.current&&(clearTimeout(C.current),C.current=null),()=>{C.current&&(clearTimeout(C.current),C.current=null)}),[E,Q,v]);const EA=async(U,N,O=!1)=>{try{const X=await w.current?.startSession({session_id:U||"",session_token:N||""});X?.session_id&&X?.session_token&&(L(X.session_id),M(X.session_token)),X?.user_id&&nA(X.user_id)}catch(X){const sA=X,fA=sA.context?.stage==="handleSessionExpiry"||sA.context?.stage==="refreshSession"||sA.status===404,TA=sA.status===403;fA?(T(null),V($A.NOT_CONNECTED),D(!0)):TA&&!O?(B(),jA(),await EA(void 0,void 0,!0)):(T({title:"Connection Lost!",description:Ct(X)}),z(!0))}},re=async(U=!1)=>{try{if(!w.current){T({title:"SDK not initialized",description:"Please ensure agentId is configured"}),d(!1);return}if(d(!0),U){V($A.CONNECTING),s([]),await B(),await w?.current?.endSession(),jA(),await EA(),lt();return}const{sessionId:N,sessionToken:O}=CA.getState();await EA(N,O),lt()}catch{}finally{d(!1)}},RA=()=>w.current?.isConnected()??!1,se=()=>{w.current?.endSession()},jA=()=>{u.current=0,z(!1),D(!1),T(null)},lt=()=>{w.current?.on(P.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,U=>{const N=U;if(N.data?.text&&N.messageId){Q||(v(!1),cA(!0)),RA()&&V($A.CONNECTED),jA();const O=N.data.text,X=N.messageId,sA=_.current;_.current=!1,s(fA=>{const TA=fA[fA.length-1];if(TA&&TA.id===X&&TA.role===Fe.ASSISTANT){const PA=[...fA],ZA=sA&&TA.content.length>0&&!/\s$/.test(TA.content)&&!/^\s/.test(O)?`
87
+ `;function pQ({title:e,description:t,suggestions:r,onSendMessage:i,disabled:s,composer:l,composerFooter:c,connectionBanner:u}){const f=h=>{const m=h.label||h.value||"";m&&i({message:h.value||m,messageId:Date.now().toString()})};return g.jsxs("div",{className:"flex-1 flex flex-col items-stretch justify-center px-4 py-6 gap-6 w-full max-w-2xl mx-auto overflow-y-auto",children:[g.jsxs("div",{className:"flex flex-col px-3 gap-2 items-start",children:[g.jsxs("h2",{className:"text-text-primary",style:{fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:36,lineHeight:"40px",fontWeight:500,letterSpacing:"-0.025em",margin:0},children:["Hi, this is ",e,"!"]}),t&&g.jsx("p",{className:"text-text-primary",style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:400,margin:0,maxWidth:420},children:t})]}),r&&r.length>0&&g.jsx("div",{className:"content-center px-3 flex flex-wrap gap-4 items-center",children:r.map((h,m)=>{const B=h.label||h.value||"";return B?g.jsx("button",{type:"button",onClick:()=>f(h),disabled:s,className:he("inline-flex items-center bg-white border border-primary text-primary","rounded-lg overflow-clip whitespace-nowrap transition-colors shrink-0","supports-[hover:hover]:hover:bg-primary supports-[hover:hover]:hover:text-primary-foreground",s?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:500,padding:"8px 12px",WebkitTapHighlightColor:"transparent",outline:"none"},children:B},`${B}-${m}`):null})}),u,l&&g.jsxs("div",{children:[l,c]})]})}function mQ(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const BQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,CQ={};function B0(e,t){return(CQ.jsx?wQ:BQ).test(e)}const yQ=/[ \t\n\f\r]/g;function EQ(e){return typeof e=="object"?e.type==="text"?w0(e.value):!1:w0(e)}function w0(e){return e.replace(yQ,"")===""}class rs{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}rs.prototype.normal={},rs.prototype.property={},rs.prototype.space=void 0;function C0(e,t){const r={},i={};for(const s of e)Object.assign(r,s.property),Object.assign(i,s.normal);return new rs(r,i,t)}function ef(e){return e.toLowerCase()}class dt{constructor(t,r){this.attribute=r,this.property=t}}dt.prototype.attribute="",dt.prototype.booleanish=!1,dt.prototype.boolean=!1,dt.prototype.commaOrSpaceSeparated=!1,dt.prototype.commaSeparated=!1,dt.prototype.defined=!1,dt.prototype.mustUseProperty=!1,dt.prototype.number=!1,dt.prototype.overloadedBoolean=!1,dt.prototype.property="",dt.prototype.spaceSeparated=!1,dt.prototype.space=void 0;let vQ=0;const He=qr(),HA=qr(),Af=qr(),ue=qr(),hA=qr(),Ui=qr(),xt=qr();function qr(){return 2**++vQ}const tf=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:HA,commaOrSpaceSeparated:xt,commaSeparated:Ui,number:ue,overloadedBoolean:Af,spaceSeparated:hA},Symbol.toStringTag,{value:"Module"})),nf=Object.keys(tf);class rf extends dt{constructor(t,r,i,s){let l=-1;if(super(t,r),y0(this,"space",s),typeof i=="number")for(;++l<nf.length;){const c=nf[l];y0(this,nf[l],(i&tf[c])===tf[c])}}}rf.prototype.defined=!0;function y0(e,t,r){r&&(e[t]=r)}function Fi(e){const t={},r={};for(const[i,s]of Object.entries(e.properties)){const l=new rf(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,r[ef(i)]=i,r[ef(l.attribute)]=i}return new rs(t,r,e.space)}const E0=Fi({properties:{ariaActiveDescendant:null,ariaAtomic:HA,ariaAutoComplete:null,ariaBusy:HA,ariaChecked:HA,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:hA,ariaCurrent:null,ariaDescribedBy:hA,ariaDetails:null,ariaDisabled:HA,ariaDropEffect:hA,ariaErrorMessage:null,ariaExpanded:HA,ariaFlowTo:hA,ariaGrabbed:HA,ariaHasPopup:null,ariaHidden:HA,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hA,ariaLevel:ue,ariaLive:null,ariaModal:HA,ariaMultiLine:HA,ariaMultiSelectable:HA,ariaOrientation:null,ariaOwns:hA,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:HA,ariaReadOnly:HA,ariaRelevant:null,ariaRequired:HA,ariaRoleDescription:hA,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:HA,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function v0(e,t){return t in e?e[t]:t}function b0(e,t){return v0(e,t.toLowerCase())}const bQ=Fi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:hA,accessKey:hA,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:hA,autoFocus:He,autoPlay:He,blocking:hA,capture:null,charSet:null,checked:He,cite:null,className:hA,cols:ue,colSpan:null,content:null,contentEditable:HA,controls:He,controlsList:hA,coords:ue|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:Af,draggable:HA,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:hA,height:ue,hidden:Af,high:ue,href:null,hrefLang:null,htmlFor:hA,httpEquiv:hA,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:hA,itemRef:hA,itemScope:He,itemType:hA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,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:He,optimum:ue,pattern:null,ping:hA,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:hA,required:He,reversed:He,rows:ue,rowSpan:ue,sandbox:hA,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:HA,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:HA,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hA,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:HA,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:He,disableRemotePlayback:He,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:b0}),xQ=Fi({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"},properties:{about:xt,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:hA,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:xt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xt,rev:xt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xt,requiredFeatures:xt,requiredFonts:xt,requiredFormats:xt,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:xt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xt,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:v0}),x0=Fi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),S0=Fi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:b0}),Q0=Fi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),SQ={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"},QQ=/[A-Z]/g,U0=/-[a-z]/g,UQ=/^data[-\w.:]+$/i;function FQ(e,t){const r=ef(t);let i=t,s=dt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&UQ.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(U0,NQ);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!U0.test(l)){let c=l.replace(QQ,TQ);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=rf}return new s(i,t)}function TQ(e){return"-"+e.toLowerCase()}function NQ(e){return e.charAt(1).toUpperCase()}const IQ=C0([E0,bQ,x0,S0,Q0],"html"),af=C0([E0,xQ,x0,S0,Q0],"svg");function _Q(e){return e.join(" ").trim()}var Ti={},sf,F0;function HQ(){if(F0)return sf;F0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,f=`
88
+ `,h="/",m="*",B="",C="comment",w="declaration";function E(U,Q){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];Q=Q||{};var N=1,M=1;function G(le){var z=le.match(t);z&&(N+=z.length);var L=le.lastIndexOf(f);M=~L?le.length-L:M+le.length}function V(){var le={line:N,column:M};return function(z){return z.position=new F(le),_(),z}}function F(le){this.start=le,this.end={line:N,column:M},this.source=Q.source}F.prototype.content=U;function O(le){var z=new Error(Q.source+":"+N+":"+M+": "+le);if(z.reason=le,z.filename=Q.source,z.line=N,z.column=M,z.source=U,!Q.silent)throw z}function R(le){var z=le.exec(U);if(z){var L=z[0];return G(L),U=U.slice(L.length),z}}function _(){R(r)}function q(le){var z;for(le=le||[];z=$();)z!==!1&&le.push(z);return le}function $(){var le=V();if(!(h!=U.charAt(0)||m!=U.charAt(1))){for(var z=2;B!=U.charAt(z)&&(m!=U.charAt(z)||h!=U.charAt(z+1));)++z;if(z+=2,B===U.charAt(z-1))return O("End of comment missing");var L=U.slice(2,z-2);return M+=2,G(L),U=U.slice(z),M+=2,le({type:C,comment:L})}}function k(){var le=V(),z=R(i);if(z){if($(),!R(s))return O("property missing ':'");var L=R(l),J=le({type:w,property:b(z[0].replace(e,B)),value:L?b(L[0].replace(e,B)):B});return R(c),J}}function se(){var le=[];q(le);for(var z;z=k();)z!==!1&&(le.push(z),q(le));return le}return _(),se()}function b(U){return U?U.replace(u,B):B}return sf=E,sf}var T0;function MQ(){if(T0)return Ti;T0=1;var e=Ti&&Ti.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=r;const t=e(HQ());function r(i,s){let l=null;if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;u?s(h,m,f):m&&(l=l||{},l[h]=m)}),l}return Ti}var is={},N0;function OQ(){if(N0)return is;N0=1,Object.defineProperty(is,"__esModule",{value:!0}),is.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},u=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,u):h=h.replace(i,u),h.replace(t,c))};return is.camelCase=f,is}var as,I0;function RQ(){if(I0)return as;I0=1;var e=as&&as.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(MQ()),r=OQ();function i(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(u,f){u&&f&&(c[(0,r.camelCase)(u,l)]=f)}),c}return i.default=i,as=i,as}var LQ=RQ();const DQ=du(LQ),_0=H0("end"),lf=H0("start");function H0(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function kQ(e){const t=lf(e),r=_0(e);if(t&&r)return{start:t,end:r}}function ss(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?M0(e.position):"start"in e||"end"in e?M0(e):"line"in e||"column"in e?of(e):""}function of(e){return O0(e&&e.line)+":"+O0(e&&e.column)}function M0(e){return of(e&&e.start)+"-"+of(e&&e.end)}function O0(e){return e&&typeof e=="number"?e:1}class it extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",l={},c=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?l.ruleId=i:(l.source=i.slice(0,f),l.ruleId=i.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=ss(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="",it.prototype.name="",it.prototype.reason="",it.prototype.message="",it.prototype.stack="",it.prototype.column=void 0,it.prototype.line=void 0,it.prototype.ancestors=void 0,it.prototype.cause=void 0,it.prototype.fatal=void 0,it.prototype.place=void 0,it.prototype.ruleId=void 0,it.prototype.source=void 0;const cf={}.hasOwnProperty,jQ=new Map,KQ=/[A-Z]/g,VQ=new Set(["table","tbody","thead","tfoot","tr"]),GQ=new Set(["td","th"]),R0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zQ(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=$Q(r,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");i=WQ(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?af:IQ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=L0(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function L0(e,t,r){if(t.type==="element")return PQ(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return YQ(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return qQ(e,t,r);if(t.type==="mdxjsEsm")return XQ(e,t);if(t.type==="root")return JQ(e,t,r);if(t.type==="text")return ZQ(e,t)}function PQ(e,t,r){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=af,e.schema=s),e.ancestors.push(t);const l=k0(e,t.tagName,!1),c=eU(e,t);let u=ff(e,t);return VQ.has(t.tagName)&&(u=u.filter(function(f){return typeof f=="string"?!EQ(f):!0})),D0(e,c,l,t),uf(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,r)}function YQ(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return e.evaluater.evaluateExpression(i.expression)}ls(e,t.position)}function XQ(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ls(e,t.position)}function qQ(e,t,r){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=af,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:k0(e,t.name,!0),c=AU(e,t),u=ff(e,t);return D0(e,c,l,t),uf(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,r)}function JQ(e,t,r){const i={};return uf(i,ff(e,t)),e.create(t,e.Fragment,i,r)}function ZQ(e,t){return t.value}function D0(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function uf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function WQ(e,t,r){return i;function i(s,l,c,u){const h=Array.isArray(c.children)?r:t;return u?h(l,c,u):h(l,c)}}function $Q(e,t){return r;function r(i,s,l,c){const u=Array.isArray(l.children),f=lf(i);return t(s,l,c,u,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function eU(e,t){const r={};let i,s;for(s in t.properties)if(s!=="children"&&cf.call(t.properties,s)){const l=tU(e,s,t.properties[s]);if(l){const[c,u]=l;e.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&GQ.has(t.tagName)?i=u:r[c]=u}}if(i){const l=r.style||(r.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function AU(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const u=i.data.estree.body[0].expression.properties[0];Object.assign(r,e.evaluater.evaluateExpression(u.argument))}else ls(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];l=e.evaluater.evaluateExpression(u.expression)}else ls(e,t.position);else l=i.value===null?!0:i.value;r[s]=l}return r}function ff(e,t){const r=[];let i=-1;const s=e.passKeys?new Map:jQ;for(;++i<t.children.length;){const l=t.children[i];let c;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const u=L0(e,l,c);u!==void 0&&r.push(u)}return r}function tU(e,t,r){const i=FQ(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?mQ(r):_Q(r)),i.property==="style"){let s=typeof r=="object"?r:nU(e,String(r));return e.stylePropertyNameCase==="css"&&(s=rU(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?SQ[i.property]||i.property:i.attribute,r]}}function nU(e,t){try{return DQ(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,s=new it("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=R0+"#cannot-parse-style-attribute",s}}function k0(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,c;for(;++l<s.length;){const u=B0(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=B0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return cf.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);ls(e)}function ls(e,t){const r=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=R0+"#cannot-handle-mdx-estrees-without-createevaluater",r}function rU(e){const t={};let r;for(r in e)cf.call(e,r)&&(t[iU(r)]=e[r]);return t}function iU(e){let t=e.replace(KQ,aU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function aU(e){return"-"+e.toLowerCase()}const df={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"]},sU={};function lU(e,t){const r=sU,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return j0(e,i,s)}function j0(e,t,r){if(oU(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return K0(e.children,t,r)}return Array.isArray(e)?K0(e,t,r):""}function K0(e,t,r){const i=[];let s=-1;for(;++s<e.length;)i[s]=j0(e[s],t,r);return i.join("")}function oU(e){return!!(e&&typeof e=="object")}const V0=document.createElement("i");function hf(e){const t="&"+e+";";V0.innerHTML=t;const r=V0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function hn(e,t,r,i){const s=e.length;let l=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),e.splice(...c),l+=1e4,t+=1e4}function Kt(e,t){return e.length>0?(hn(e,e.length,0,t),e):t}const G0={}.hasOwnProperty;function cU(e){const t={};let r=-1;for(;++r<e.length;)uU(t,e[r]);return t}function uU(e,t){let r;for(r in t){const s=(G0.call(e,r)?e[r]:void 0)||(e[r]={}),l=t[r];let c;if(l)for(c in l){G0.call(s,c)||(s[c]=[]);const u=l[c];fU(s[c],Array.isArray(u)?u:u?[u]:[])}}}function fU(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);hn(e,0,0,i)}function z0(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ni(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const gn=ar(/[A-Za-z]/),St=ar(/[\dA-Za-z]/),dU=ar(/[#-'*+\--9=?A-Z^-~]/);function gf(e){return e!==null&&(e<32||e===127)}const pf=ar(/\d/),hU=ar(/[\dA-Fa-f]/),gU=ar(/[!-/:-@[-`{-~]/);function Ue(e){return e!==null&&e<-2}function ht(e){return e!==null&&(e<0||e===32)}function tA(e){return e===-2||e===-1||e===32}const pU=ar(new RegExp("\\p{P}|\\p{S}","u")),mU=ar(/\s/);function ar(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Ii(e){const t=[];let r=-1,i=0,s=0;for(;++r<e.length;){const l=e.charCodeAt(r);let c="";if(l===37&&St(e.charCodeAt(r+1))&&St(e.charCodeAt(r+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(r+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+s+1,c=""),s&&(r+=s,s=0)}return t.join("")+e.slice(i)}function gA(e,t,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(f){return tA(f)?(e.enter(r),u(f)):t(f)}function u(f){return tA(f)&&l++<s?(e.consume(f),u):(e.exit(r),t(f))}}const BU={tokenize:wU};function wU(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let r;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),gA(e,t,"linePrefix")}function s(u){return e.enter("paragraph"),l(u)}function l(u){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,c(u)}function c(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ue(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),c)}}const CU={tokenize:yU},P0={tokenize:EU};function yU(e){const t=this,r=[];let i=0,s,l,c;return u;function u(M){if(i<r.length){const G=r[i];return t.containerState=G[1],e.attempt(G[0].continuation,f,h)(M)}return h(M)}function f(M){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&N();const G=t.events.length;let V=G,F;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){F=t.events[V][1].end;break}Q(i);let O=G;for(;O<t.events.length;)t.events[O][1].end={...F},O++;return hn(t.events,V+1,0,t.events.slice(G)),t.events.length=O,h(M)}return u(M)}function h(M){if(i===r.length){if(!s)return C(M);if(s.currentConstruct&&s.currentConstruct.concrete)return E(M);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(P0,m,B)(M)}function m(M){return s&&N(),Q(i),C(M)}function B(M){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,E(M)}function C(M){return t.containerState={},e.attempt(P0,w,E)(M)}function w(M){return i++,r.push([t.currentConstruct,t.containerState]),C(M)}function E(M){if(M===null){s&&N(),Q(0),e.consume(M);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),b(M)}function b(M){if(M===null){U(e.exit("chunkFlow"),!0),Q(0),e.consume(M);return}return Ue(M)?(e.consume(M),U(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(M),b)}function U(M,G){const V=t.sliceStream(M);if(G&&V.push(null),M.previous=l,l&&(l.next=M),l=M,s.defineSkip(M.start),s.write(V),t.parser.lazy[M.start.line]){let F=s.events.length;for(;F--;)if(s.events[F][1].start.offset<c&&(!s.events[F][1].end||s.events[F][1].end.offset>c))return;const O=t.events.length;let R=O,_,q;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(_){q=t.events[R][1].end;break}_=!0}for(Q(i),F=O;F<t.events.length;)t.events[F][1].end={...q},F++;hn(t.events,R+1,0,t.events.slice(O)),t.events.length=F}}function Q(M){let G=r.length;for(;G-- >M;){const V=r[G];t.containerState=V[1],V[0].exit.call(t,e)}r.length=M}function N(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function EU(e,t,r){return gA(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Y0(e){if(e===null||ht(e)||mU(e))return 1;if(pU(e))return 2}function mf(e,t,r){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,r),i.push(l))}return t}const Bf={name:"attention",resolveAll:vU,tokenize:bU};function vU(e,t){let r=-1,i,s,l,c,u,f,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const B={...e[i][1].end},C={...e[r][1].start};X0(B,-f),X0(C,f),c={type:f>1?"strongSequence":"emphasisSequence",start:B,end:{...e[i][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:C},l={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[i][1].end={...c.start},e[r][1].start={...u.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Kt(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=Kt(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=Kt(h,mf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),h=Kt(h,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Kt(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,hn(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function bU(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Y0(i);let l;return c;function c(f){return l=f,e.enter("attentionSequence"),u(f)}function u(f){if(f===l)return e.consume(f),u;const h=e.exit("attentionSequence"),m=Y0(f),B=!m||m===2&&s||r.includes(f),C=!s||s===2&&m||r.includes(i);return h._open=!!(l===42?B:B&&(s||!C)),h._close=!!(l===42?C:C&&(m||!B)),t(f)}}function X0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xU={name:"autolink",tokenize:SU};function SU(e,t,r){let i=0;return s;function s(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(w){return gn(w)?(e.consume(w),c):w===64?r(w):h(w)}function c(w){return w===43||w===45||w===46||St(w)?(i=1,u(w)):h(w)}function u(w){return w===58?(e.consume(w),i=0,f):(w===43||w===45||w===46||St(w))&&i++<32?(e.consume(w),u):(i=0,h(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||gf(w)?r(w):(e.consume(w),f)}function h(w){return w===64?(e.consume(w),m):dU(w)?(e.consume(w),h):r(w)}function m(w){return St(w)?B(w):r(w)}function B(w){return w===46?(e.consume(w),i=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):C(w)}function C(w){if((w===45||St(w))&&i++<63){const E=w===45?C:B;return e.consume(w),E}return r(w)}}const Pl={partial:!0,tokenize:QU};function QU(e,t,r){return i;function i(l){return tA(l)?gA(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Ue(l)?t(l):r(l)}}const q0={continuation:{tokenize:FU},exit:TU,name:"blockQuote",tokenize:UU};function UU(e,t,r){const i=this;return s;function s(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return r(c)}function l(c){return tA(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function FU(e,t,r){const i=this;return s;function s(c){return tA(c)?gA(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return e.attempt(q0,t,r)(c)}}function TU(e){e.exit("blockQuote")}const J0={name:"characterEscape",tokenize:NU};function NU(e,t,r){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return gU(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(l)}}const Z0={name:"characterReference",tokenize:IU};function IU(e,t,r){const i=this;let s=0,l,c;return u;function u(B){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(B),e.exit("characterReferenceMarker"),f}function f(B){return B===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(B),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,c=St,m(B))}function h(B){return B===88||B===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(B),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=hU,m):(e.enter("characterReferenceValue"),l=7,c=pf,m(B))}function m(B){if(B===59&&s){const C=e.exit("characterReferenceValue");return c===St&&!hf(i.sliceSerialize(C))?r(B):(e.enter("characterReferenceMarker"),e.consume(B),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(B)&&s++<l?(e.consume(B),m):r(B)}}const W0={partial:!0,tokenize:HU},$0={concrete:!0,name:"codeFenced",tokenize:_U};function _U(e,t,r){const i=this,s={partial:!0,tokenize:V};let l=0,c=0,u;return f;function f(F){return h(F)}function h(F){const O=i.events[i.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,u=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(F)}function m(F){return F===u?(c++,e.consume(F),m):c<3?r(F):(e.exit("codeFencedFenceSequence"),tA(F)?gA(e,B,"whitespace")(F):B(F))}function B(F){return F===null||Ue(F)?(e.exit("codeFencedFence"),i.interrupt?t(F):e.check(W0,b,G)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C(F))}function C(F){return F===null||Ue(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(F)):tA(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),gA(e,w,"whitespace")(F)):F===96&&F===u?r(F):(e.consume(F),C)}function w(F){return F===null||Ue(F)?B(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(F))}function E(F){return F===null||Ue(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),B(F)):F===96&&F===u?r(F):(e.consume(F),E)}function b(F){return e.attempt(s,G,U)(F)}function U(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),Q}function Q(F){return l>0&&tA(F)?gA(e,N,"linePrefix",l+1)(F):N(F)}function N(F){return F===null||Ue(F)?e.check(W0,b,G)(F):(e.enter("codeFlowValue"),M(F))}function M(F){return F===null||Ue(F)?(e.exit("codeFlowValue"),N(F)):(e.consume(F),M)}function G(F){return e.exit("codeFenced"),t(F)}function V(F,O,R){let _=0;return q;function q(z){return F.enter("lineEnding"),F.consume(z),F.exit("lineEnding"),$}function $(z){return F.enter("codeFencedFence"),tA(z)?gA(F,k,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):k(z)}function k(z){return z===u?(F.enter("codeFencedFenceSequence"),se(z)):R(z)}function se(z){return z===u?(_++,F.consume(z),se):_>=c?(F.exit("codeFencedFenceSequence"),tA(z)?gA(F,le,"whitespace")(z):le(z)):R(z)}function le(z){return z===null||Ue(z)?(F.exit("codeFencedFence"),O(z)):R(z)}}}function HU(e,t,r){const i=this;return s;function s(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const wf={name:"codeIndented",tokenize:OU},MU={partial:!0,tokenize:RU};function OU(e,t,r){const i=this;return s;function s(h){return e.enter("codeIndented"),gA(e,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?f(h):Ue(h)?e.attempt(MU,c,f)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||Ue(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),u)}function f(h){return e.exit("codeIndented"),t(h)}}function RU(e,t,r){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?r(c):Ue(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):gA(e,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):Ue(c)?s(c):r(c)}}const LU={name:"codeText",previous:kU,resolve:DU,tokenize:jU};function DU(e){let t=e.length-4,r=3,i,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function kU(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function jU(e,t,r){let i=0,s,l;return c;function c(B){return e.enter("codeText"),e.enter("codeTextSequence"),u(B)}function u(B){return B===96?(e.consume(B),i++,u):(e.exit("codeTextSequence"),f(B))}function f(B){return B===null?r(B):B===32?(e.enter("space"),e.consume(B),e.exit("space"),f):B===96?(l=e.enter("codeTextSequence"),s=0,m(B)):Ue(B)?(e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(B))}function h(B){return B===null||B===32||B===96||Ue(B)?(e.exit("codeTextData"),f(B)):(e.consume(B),h)}function m(B){return B===96?(e.consume(B),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(B)):(l.type="codeTextData",h(B))}}class KU{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,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const s=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&os(this.left,i),l.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),os(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),os(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);os(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);os(this.left,r.reverse())}}}function os(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function eB(e){const t={};let r=-1,i,s,l,c,u,f,h;const m=new KU(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,VU(m,r)),r=t[r],h=!0);else if(i[1]._container){for(l=r,s=void 0;l--;)if(c=m.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},u=m.slice(s,r),u.unshift(i),m.splice(s,r-s+1,u))}}return hn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function VU(e,t){const r=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,f=[],h={};let m,B,C=-1,w=r,E=0,b=0;const U=[b];for(;w;){for(;e.get(++s)[1]!==w;);l.push(s),w._tokenizer||(m=i.sliceStream(w),w.next||m.push(null),B&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),B=w,w=w.next}for(w=r;++C<u.length;)u[C][0]==="exit"&&u[C-1][0]==="enter"&&u[C][1].type===u[C-1][1].type&&u[C][1].start.line!==u[C][1].end.line&&(b=C+1,U.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):U.pop(),C=U.length;C--;){const Q=u.slice(U[C],U[C+1]),N=l.pop();f.push([N,N+Q.length-1]),e.splice(N,2,Q)}for(f.reverse(),C=-1;++C<f.length;)h[E+f[C][0]]=E+f[C][1],E+=f[C][1]-f[C][0]-1;return h}const GU={resolve:PU,tokenize:YU},zU={partial:!0,tokenize:XU};function PU(e){return eB(e),e}function YU(e,t){let r;return i;function i(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?l(u):Ue(u)?e.check(zU,c,l)(u):(e.consume(u),s)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function c(u){return e.consume(u),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function XU(e,t,r){const i=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),gA(e,l,"linePrefix")}function l(c){if(c===null||Ue(c))return r(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function AB(e,t,r,i,s,l,c,u,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return B;function B(Q){return Q===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(Q),e.exit(l),C):Q===null||Q===32||Q===41||gf(Q)?r(Q):(e.enter(i),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(Q))}function C(Q){return Q===62?(e.enter(l),e.consume(Q),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),w(Q))}function w(Q){return Q===62?(e.exit("chunkString"),e.exit(u),C(Q)):Q===null||Q===60||Ue(Q)?r(Q):(e.consume(Q),Q===92?E:w)}function E(Q){return Q===60||Q===62||Q===92?(e.consume(Q),w):w(Q)}function b(Q){return!m&&(Q===null||Q===41||ht(Q))?(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(i),t(Q)):m<h&&Q===40?(e.consume(Q),m++,b):Q===41?(e.consume(Q),m--,b):Q===null||Q===32||Q===40||gf(Q)?r(Q):(e.consume(Q),Q===92?U:b)}function U(Q){return Q===40||Q===41||Q===92?(e.consume(Q),b):b(Q)}}function tB(e,t,r,i,s,l){const c=this;let u=0,f;return h;function h(w){return e.enter(i),e.enter(s),e.consume(w),e.exit(s),e.enter(l),m}function m(w){return u>999||w===null||w===91||w===93&&!f||w===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(l),e.enter(s),e.consume(w),e.exit(s),e.exit(i),t):Ue(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),B(w))}function B(w){return w===null||w===91||w===93||Ue(w)||u++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!tA(w)),w===92?C:B)}function C(w){return w===91||w===92||w===93?(e.consume(w),u++,B):B(w)}}function nB(e,t,r,i,s,l){let c;return u;function u(C){return C===34||C===39||C===40?(e.enter(i),e.enter(s),e.consume(C),e.exit(s),c=C===40?41:C,f):r(C)}function f(C){return C===c?(e.enter(s),e.consume(C),e.exit(s),e.exit(i),t):(e.enter(l),h(C))}function h(C){return C===c?(e.exit(l),f(c)):C===null?r(C):Ue(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),gA(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===c||C===null||Ue(C)?(e.exit("chunkString"),h(C)):(e.consume(C),C===92?B:m)}function B(C){return C===c||C===92?(e.consume(C),m):m(C)}}function cs(e,t){let r;return i;function i(s){return Ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,i):tA(s)?gA(e,i,r?"linePrefix":"lineSuffix")(s):t(s)}}const qU={name:"definition",tokenize:ZU},JU={partial:!0,tokenize:WU};function ZU(e,t,r){const i=this;let s;return l;function l(w){return e.enter("definition"),c(w)}function c(w){return tB.call(i,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function u(w){return s=Ni(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return ht(w)?cs(e,h)(w):h(w)}function h(w){return AB(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(JU,B,B)(w)}function B(w){return tA(w)?gA(e,C,"whitespace")(w):C(w)}function C(w){return w===null||Ue(w)?(e.exit("definition"),i.parser.defined.push(s),t(w)):r(w)}}function WU(e,t,r){return i;function i(u){return ht(u)?cs(e,s)(u):r(u)}function s(u){return nB(e,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return tA(u)?gA(e,c,"whitespace")(u):c(u)}function c(u){return u===null||Ue(u)?t(u):r(u)}}const $U={name:"hardBreakEscape",tokenize:eF};function eF(e,t,r){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Ue(l)?(e.exit("hardBreakEscape"),t(l)):r(l)}}const AF={name:"headingAtx",resolve:tF,tokenize:nF};function tF(e,t){let r=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},l={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},hn(e,i,r-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function nF(e,t,r){let i=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||ht(m)?(e.exit("atxHeadingSequence"),u(m)):r(m)}function u(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Ue(m)?(e.exit("atxHeading"),t(m)):tA(m)?gA(e,u,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),u(m))}function h(m){return m===null||m===35||ht(m)?(e.exit("atxHeadingText"),u(m)):(e.consume(m),h)}}const rF=["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"],rB=["pre","script","style","textarea"],iF={concrete:!0,name:"htmlFlow",resolveTo:lF,tokenize:oF},aF={partial:!0,tokenize:uF},sF={partial:!0,tokenize:cF};function lF(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}function oF(e,t,r){const i=this;let s,l,c,u,f;return h;function h(v){return m(v)}function m(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),B}function B(v){return v===33?(e.consume(v),C):v===47?(e.consume(v),l=!0,b):v===63?(e.consume(v),s=3,i.interrupt?t:T):gn(v)?(e.consume(v),c=String.fromCharCode(v),U):r(v)}function C(v){return v===45?(e.consume(v),s=2,w):v===91?(e.consume(v),s=5,u=0,E):gn(v)?(e.consume(v),s=4,i.interrupt?t:T):r(v)}function w(v){return v===45?(e.consume(v),i.interrupt?t:T):r(v)}function E(v){const te="CDATA[";return v===te.charCodeAt(u++)?(e.consume(v),u===te.length?i.interrupt?t:k:E):r(v)}function b(v){return gn(v)?(e.consume(v),c=String.fromCharCode(v),U):r(v)}function U(v){if(v===null||v===47||v===62||ht(v)){const te=v===47,oe=c.toLowerCase();return!te&&!l&&rB.includes(oe)?(s=1,i.interrupt?t(v):k(v)):rF.includes(c.toLowerCase())?(s=6,te?(e.consume(v),Q):i.interrupt?t(v):k(v)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(v):l?N(v):M(v))}return v===45||St(v)?(e.consume(v),c+=String.fromCharCode(v),U):r(v)}function Q(v){return v===62?(e.consume(v),i.interrupt?t:k):r(v)}function N(v){return tA(v)?(e.consume(v),N):q(v)}function M(v){return v===47?(e.consume(v),q):v===58||v===95||gn(v)?(e.consume(v),G):tA(v)?(e.consume(v),M):q(v)}function G(v){return v===45||v===46||v===58||v===95||St(v)?(e.consume(v),G):V(v)}function V(v){return v===61?(e.consume(v),F):tA(v)?(e.consume(v),V):M(v)}function F(v){return v===null||v===60||v===61||v===62||v===96?r(v):v===34||v===39?(e.consume(v),f=v,O):tA(v)?(e.consume(v),F):R(v)}function O(v){return v===f?(e.consume(v),f=null,_):v===null||Ue(v)?r(v):(e.consume(v),O)}function R(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||ht(v)?V(v):(e.consume(v),R)}function _(v){return v===47||v===62||tA(v)?M(v):r(v)}function q(v){return v===62?(e.consume(v),$):r(v)}function $(v){return v===null||Ue(v)?k(v):tA(v)?(e.consume(v),$):r(v)}function k(v){return v===45&&s===2?(e.consume(v),L):v===60&&s===1?(e.consume(v),J):v===62&&s===4?(e.consume(v),I):v===63&&s===3?(e.consume(v),T):v===93&&s===5?(e.consume(v),me):Ue(v)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(aF,P,se)(v)):v===null||Ue(v)?(e.exit("htmlFlowData"),se(v)):(e.consume(v),k)}function se(v){return e.check(sF,le,P)(v)}function le(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),z}function z(v){return v===null||Ue(v)?se(v):(e.enter("htmlFlowData"),k(v))}function L(v){return v===45?(e.consume(v),T):k(v)}function J(v){return v===47?(e.consume(v),c="",Ae):k(v)}function Ae(v){if(v===62){const te=c.toLowerCase();return rB.includes(te)?(e.consume(v),I):k(v)}return gn(v)&&c.length<8?(e.consume(v),c+=String.fromCharCode(v),Ae):k(v)}function me(v){return v===93?(e.consume(v),T):k(v)}function T(v){return v===62?(e.consume(v),I):v===45&&s===2?(e.consume(v),T):k(v)}function I(v){return v===null||Ue(v)?(e.exit("htmlFlowData"),P(v)):(e.consume(v),I)}function P(v){return e.exit("htmlFlow"),t(v)}}function cF(e,t,r){const i=this;return s;function s(c){return Ue(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):r(c)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function uF(e,t,r){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Pl,t,r)}}const fF={name:"htmlText",tokenize:dF};function dF(e,t,r){const i=this;let s,l,c;return u;function u(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),h):T===47?(e.consume(T),V):T===63?(e.consume(T),M):gn(T)?(e.consume(T),R):r(T)}function h(T){return T===45?(e.consume(T),m):T===91?(e.consume(T),l=0,E):gn(T)?(e.consume(T),N):r(T)}function m(T){return T===45?(e.consume(T),w):r(T)}function B(T){return T===null?r(T):T===45?(e.consume(T),C):Ue(T)?(c=B,J(T)):(e.consume(T),B)}function C(T){return T===45?(e.consume(T),w):B(T)}function w(T){return T===62?L(T):T===45?C(T):B(T)}function E(T){const I="CDATA[";return T===I.charCodeAt(l++)?(e.consume(T),l===I.length?b:E):r(T)}function b(T){return T===null?r(T):T===93?(e.consume(T),U):Ue(T)?(c=b,J(T)):(e.consume(T),b)}function U(T){return T===93?(e.consume(T),Q):b(T)}function Q(T){return T===62?L(T):T===93?(e.consume(T),Q):b(T)}function N(T){return T===null||T===62?L(T):Ue(T)?(c=N,J(T)):(e.consume(T),N)}function M(T){return T===null?r(T):T===63?(e.consume(T),G):Ue(T)?(c=M,J(T)):(e.consume(T),M)}function G(T){return T===62?L(T):M(T)}function V(T){return gn(T)?(e.consume(T),F):r(T)}function F(T){return T===45||St(T)?(e.consume(T),F):O(T)}function O(T){return Ue(T)?(c=O,J(T)):tA(T)?(e.consume(T),O):L(T)}function R(T){return T===45||St(T)?(e.consume(T),R):T===47||T===62||ht(T)?_(T):r(T)}function _(T){return T===47?(e.consume(T),L):T===58||T===95||gn(T)?(e.consume(T),q):Ue(T)?(c=_,J(T)):tA(T)?(e.consume(T),_):L(T)}function q(T){return T===45||T===46||T===58||T===95||St(T)?(e.consume(T),q):$(T)}function $(T){return T===61?(e.consume(T),k):Ue(T)?(c=$,J(T)):tA(T)?(e.consume(T),$):_(T)}function k(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),s=T,se):Ue(T)?(c=k,J(T)):tA(T)?(e.consume(T),k):(e.consume(T),le)}function se(T){return T===s?(e.consume(T),s=void 0,z):T===null?r(T):Ue(T)?(c=se,J(T)):(e.consume(T),se)}function le(T){return T===null||T===34||T===39||T===60||T===61||T===96?r(T):T===47||T===62||ht(T)?_(T):(e.consume(T),le)}function z(T){return T===47||T===62||ht(T)?_(T):r(T)}function L(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):r(T)}function J(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Ae}function Ae(T){return tA(T)?gA(e,me,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):me(T)}function me(T){return e.enter("htmlTextData"),c(T)}}const Cf={name:"labelEnd",resolveAll:mF,resolveTo:BF,tokenize:wF},hF={tokenize:CF},gF={tokenize:yF},pF={tokenize:EF};function mF(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==r.length&&hn(e,0,e.length,r),e}function BF(e,t){let r=e.length,i=0,s,l,c,u;for(;r--;)if(s=e[r][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=r);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",f,t],["enter",h,t]],u=Kt(u,e.slice(l+1,l+i+3)),u=Kt(u,[["enter",m,t]]),u=Kt(u,mf(t.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),t)),u=Kt(u,[["exit",m,t],e[c-2],e[c-1],["exit",h,t]]),u=Kt(u,e.slice(c+1)),u=Kt(u,[["exit",f,t]]),hn(e,l,e.length,u),e}function wF(e,t,r){const i=this;let s=i.events.length,l,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return u;function u(C){return l?l._inactive?B(C):(c=i.parser.defined.includes(Ni(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),f):r(C)}function f(C){return C===40?e.attempt(hF,m,c?m:B)(C):C===91?e.attempt(gF,m,c?h:B)(C):c?m(C):B(C)}function h(C){return e.attempt(pF,m,B)(C)}function m(C){return t(C)}function B(C){return l._balanced=!0,r(C)}}function CF(e,t,r){return i;function i(B){return e.enter("resource"),e.enter("resourceMarker"),e.consume(B),e.exit("resourceMarker"),s}function s(B){return ht(B)?cs(e,l)(B):l(B)}function l(B){return B===41?m(B):AB(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(B)}function c(B){return ht(B)?cs(e,f)(B):m(B)}function u(B){return r(B)}function f(B){return B===34||B===39||B===40?nB(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(B):m(B)}function h(B){return ht(B)?cs(e,m)(B):m(B)}function m(B){return B===41?(e.enter("resourceMarker"),e.consume(B),e.exit("resourceMarker"),e.exit("resource"),t):r(B)}}function yF(e,t,r){const i=this;return s;function s(u){return tB.call(i,e,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(Ni(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function c(u){return r(u)}}function EF(e,t,r){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):r(l)}}const vF={name:"labelStartImage",resolveAll:Cf.resolveAll,tokenize:bF};function bF(e,t,r){const i=this;return s;function s(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):r(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const xF={name:"labelStartLink",resolveAll:Cf.resolveAll,tokenize:SF};function SF(e,t,r){const i=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const yf={name:"lineEnding",tokenize:QF};function QF(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),gA(e,t,"linePrefix")}}const Yl={name:"thematicBreak",tokenize:UF};function UF(e,t,r){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,u(h)}function u(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Ue(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===s?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),tA(h)?gA(e,u,"whitespace")(h):u(h))}}const gt={continuation:{tokenize:IF},exit:HF,name:"list",tokenize:NF},FF={partial:!0,tokenize:MF},TF={partial:!0,tokenize:_F};function NF(e,t,r){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(w){const E=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:pf(w)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Yl,r,h)(w):h(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return pf(w)&&++c<10?(e.consume(w),f):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),h(w)):r(w)}function h(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(Pl,i.interrupt?r:m,e.attempt(FF,C,B))}function m(w){return i.containerState.initialBlankLine=!0,l++,C(w)}function B(w){return tA(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),C):r(w)}function C(w){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function IF(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Pl,s,l);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,gA(e,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!tA(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(TF,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,gA(e,e.attempt(gt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function _F(e,t,r){const i=this;return gA(e,s,"listItemIndent",i.containerState.size+1);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):r(l)}}function HF(e){e.exit(this.containerState.type)}function MF(e,t,r){const i=this;return gA(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=i.events[i.events.length-1];return!tA(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const iB={name:"setextUnderline",resolveTo:OF,tokenize:RF};function OF(e,t){let r=e.length,i,s,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!l&&e[r][1].type==="definition"&&(l=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",c,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function RF(e,t,r){const i=this;let s;return l;function l(h){let m=i.events.length,B;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){B=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||B)?(e.enter("setextHeadingLine"),s=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),tA(h)?gA(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ue(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const LF={tokenize:DF};function DF(e){const t=this,r=e.attempt(Pl,i,e.attempt(this.parser.constructs.flowInitial,s,gA(e,e.attempt(this.parser.constructs.flow,s,e.attempt(GU,s)),"linePrefix")));return r;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const kF={resolveAll:sB()},jF=aB("string"),KF=aB("text");function aB(e){return{resolveAll:sB(e==="text"?VF:void 0),tokenize:t};function t(r){const i=this,s=this.parser.constructs[e],l=r.attempt(s,c,u);return c;function c(m){return h(m)?l(m):u(m)}function u(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return h(m)?(r.exit("data"),l(m)):(r.consume(m),f)}function h(m){if(m===null)return!0;const B=s[m];let C=-1;if(B)for(;++C<B.length;){const w=B[C];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function sB(e){return t;function t(r,i){let s=-1,l;for(;++s<=r.length;)l===void 0?r[s]&&r[s][1].type==="data"&&(l=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==l+2&&(r[l][1].end=r[s-1][1].end,r.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(r,i):r}}function VF(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],s=t.sliceStream(i);let l=s.length,c=-1,u=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(h===-2)f=!0,u++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const h={type:r===e.length||f||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const GF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:qU},disable:{null:[]},document:{42:gt,43:gt,45:gt,48:gt,49:gt,50:gt,51:gt,52:gt,53:gt,54:gt,55:gt,56:gt,57:gt,62:q0},flow:{35:AF,42:Yl,45:[iB,Yl],60:iF,61:iB,95:Yl,96:$0,126:$0},flowInitial:{[-2]:wf,[-1]:wf,32:wf},insideSpan:{null:[Bf,kF]},string:{38:Z0,92:J0},text:{[-5]:yf,[-4]:yf,[-3]:yf,33:vF,38:Z0,42:Bf,60:[xU,fF],91:xF,92:[$U,J0],93:Cf,95:Bf,96:LU}},Symbol.toStringTag,{value:"Module"}));function zF(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},l=[];let c=[],u=[];const f={attempt:O(V),check:O(F),consume:N,enter:M,exit:G,interrupt:O(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:b,events:[],now:E,parser:e,previous:null,sliceSerialize:C,sliceStream:w,write:B};let m=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function B($){return c=Kt(c,$),U(),c[c.length-1]!==null?[]:(R(t,0),h.events=mf(l,h.events,h),h.events)}function C($,k){return YF(w($),k)}function w($){return PF(c,$)}function E(){const{_bufferIndex:$,_index:k,line:se,column:le,offset:z}=i;return{_bufferIndex:$,_index:k,line:se,column:le,offset:z}}function b($){s[$.line]=$.column,q()}function U(){let $;for(;i._index<c.length;){const k=c[i._index];if(typeof k=="string")for($=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===$&&i._bufferIndex<k.length;)Q(k.charCodeAt(i._bufferIndex));else Q(k)}}function Q($){m=m($)}function N($){Ue($)?(i.line++,i.column=1,i.offset+=$===-3?2:1,q()):$!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=$}function M($,k){const se=k||{};return se.type=$,se.start=E(),h.events.push(["enter",se,h]),u.push(se),se}function G($){const k=u.pop();return k.end=E(),h.events.push(["exit",k,h]),k}function V($,k){R($,k.from)}function F($,k){k.restore()}function O($,k){return se;function se(le,z,L){let J,Ae,me,T;return Array.isArray(le)?P(le):"tokenize"in le?P([le]):I(le);function I(fe){return ge;function ge(Le){const Fe=Le!==null&&fe[Le],We=Le!==null&&fe.null,je=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(We)?We:We?[We]:[]];return P(je)(Le)}}function P(fe){return J=fe,Ae=0,fe.length===0?L:v(fe[Ae])}function v(fe){return ge;function ge(Le){return T=_(),me=fe,fe.partial||(h.currentConstruct=fe),fe.name&&h.parser.constructs.disable.null.includes(fe.name)?oe():fe.tokenize.call(k?Object.assign(Object.create(h),k):h,f,te,oe)(Le)}}function te(fe){return $(me,T),z}function oe(fe){return T.restore(),++Ae<J.length?v(J[Ae]):L}}}function R($,k){$.resolveAll&&!l.includes($)&&l.push($),$.resolve&&hn(h.events,k,h.events.length-k,$.resolve(h.events.slice(k),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function _(){const $=E(),k=h.previous,se=h.currentConstruct,le=h.events.length,z=Array.from(u);return{from:le,restore:L};function L(){i=$,h.previous=k,h.currentConstruct=se,h.events.length=le,u=z,q()}}function q(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function PF(e,t){const r=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let c;if(r===s)c=[e[r].slice(i,l)];else{if(c=e.slice(r,s),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(e[s].slice(0,l))}return c}function YF(e,t){let r=-1;const i=[];let s;for(;++r<e.length;){const l=e[r];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
89
+ `;break}case-3:{c=`\r
90
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function XF(e){const i={constructs:cU([GF,...(e||{}).extensions||[]]),content:s(BU),defined:[],document:s(CU),flow:s(LF),lazy:{},string:s(jF),text:s(KF)};return i;function s(l){return c;function c(u){return zF(i,l,u)}}}function qF(e){for(;!eB(e););return e}const lB=/[\0\t\n\r]/g;function JF(){let e=1,t="",r=!0,i;return s;function s(l,c,u){const f=[];let h,m,B,C,w;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),B=0,t="",r&&(l.charCodeAt(0)===65279&&B++,r=void 0);B<l.length;){if(lB.lastIndex=B,h=lB.exec(l),C=h&&h.index!==void 0?h.index:l.length,w=l.charCodeAt(C),!h){t=l.slice(B);break}if(w===10&&B===C&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),B<C&&(f.push(l.slice(B,C)),e+=C-B),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}B=C+1}return u&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const ZF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WF(e){return e.replace(ZF,$F)}function $F(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),l=s===120||s===88;return z0(r.slice(l?2:1),l?16:10)}return hf(r)||e}const oB={}.hasOwnProperty;function e2(e,t,r){return typeof t!="string"&&(r=t,t=void 0),A2(r)(qF(XF(r).document().write(JF()(e,t,!0))))}function A2(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ft),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(bA),blockQuote:l(We),characterEscape:_,characterReference:_,codeFenced:l(je),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(je,c),codeText:l(FA,c),codeTextData:_,data:_,codeFlowValue:_,definition:l(mA),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(EA),hardBreakEscape:l(Ut),hardBreakTrailing:l(Ut),htmlFlow:l(mt,c),htmlFlowData:_,htmlText:l(mt,c),htmlTextData:_,image:l(Cn),label:c,link:l(Ft),listItem:l(ln),listItemValue:C,listOrdered:l(ct,B),listUnordered:l(ct),paragraph:l(Ai),reference:v,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(bA),strong:l(wr),thematicBreak:l(Yi)},exit:{atxHeading:f(),atxHeadingSequence:V,autolink:f(),autolinkEmail:Fe,autolinkProtocol:Le,blockQuote:f(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:fe,characterReference:ge,codeFenced:f(U),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:E,codeFlowValue:q,codeIndented:f(Q),codeText:f(z),codeTextData:q,data:q,definition:f(),definitionDestinationString:G,definitionLabelString:N,definitionTitleString:M,emphasis:f(),hardBreakEscape:f(k),hardBreakTrailing:f(k),htmlFlow:f(se),htmlFlowData:q,htmlText:f(le),htmlTextData:q,image:f(J),label:me,labelText:Ae,lineEnding:$,link:f(L),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:te,resourceDestinationString:T,resourceTitleString:I,resource:P,setextHeading:f(R),setextHeadingLineSequence:O,setextHeadingText:F,strong:f(),thematicBreak:f()}};cB(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(re){let j={type:"root",children:[]};const W={stack:[j],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:m,data:r},ce=[];let pe=-1;for(;++pe<re.length;)if(re[pe][1].type==="listOrdered"||re[pe][1].type==="listUnordered")if(re[pe][0]==="enter")ce.push(pe);else{const Se=ce.pop();pe=s(re,Se,pe)}for(pe=-1;++pe<re.length;){const Se=t[re[pe][0]];oB.call(Se,re[pe][1].type)&&Se[re[pe][1].type].call(Object.assign({sliceSerialize:re[pe][2].sliceSerialize},W),re[pe][1])}if(W.tokenStack.length>0){const Se=W.tokenStack[W.tokenStack.length-1];(Se[1]||uB).call(W,void 0,Se[0])}for(j.position={start:sr(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:sr(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)j=t.transforms[pe](j)||j;return j}function s(re,j,W){let ce=j-1,pe=-1,Se=!1,Ne,$e,Pe,fA;for(;++ce<=W;){const De=re[ce];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?pe++:pe--,fA=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(Ne&&!fA&&!pe&&!Pe&&(Pe=ce),fA=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fA=void 0}if(!pe&&De[0]==="enter"&&De[1].type==="listItemPrefix"||pe===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(Ne){let Oe=ce;for($e=void 0;Oe--;){const Qe=re[Oe];if(Qe[1].type==="lineEnding"||Qe[1].type==="lineEndingBlank"){if(Qe[0]==="exit")continue;$e&&(re[$e][1].type="lineEndingBlank",Se=!0),Qe[1].type="lineEnding",$e=Oe}else if(!(Qe[1].type==="linePrefix"||Qe[1].type==="blockQuotePrefix"||Qe[1].type==="blockQuotePrefixWhitespace"||Qe[1].type==="blockQuoteMarker"||Qe[1].type==="listItemIndent"))break}Pe&&(!$e||Pe<$e)&&(Ne._spread=!0),Ne.end=Object.assign({},$e?re[$e][1].start:De[1].end),re.splice($e||ce,0,["exit",Ne,De[2]]),ce++,W++}if(De[1].type==="listItemPrefix"){const Oe={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};Ne=Oe,re.splice(ce,0,["enter",Oe,De[2]]),ce++,W++,Pe=void 0,fA=!0}}}return re[j][1]._spread=Se,W}function l(re,j){return W;function W(ce){u.call(this,re(ce),ce),j&&j.call(this,ce)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(re,j,W){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([j,W||void 0]),re.position={start:sr(j.start),end:void 0}}function f(re){return j;function j(W){re&&re.call(this,W),h.call(this,W)}}function h(re,j){const W=this.stack.pop(),ce=this.tokenStack.pop();if(ce)ce[0].type!==re.type&&(j?j.call(this,re,ce[0]):(ce[1]||uB).call(this,re,ce[0]));else throw new Error("Cannot close `"+re.type+"` ("+ss({start:re.start,end:re.end})+"): it’s not open");W.position.end=sr(re.end)}function m(){return lU(this.stack.pop())}function B(){this.data.expectingFirstListItemValue=!0}function C(re){if(this.data.expectingFirstListItemValue){const j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function w(){const re=this.resume(),j=this.stack[this.stack.length-1];j.lang=re}function E(){const re=this.resume(),j=this.stack[this.stack.length-1];j.meta=re}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const re=this.resume(),j=this.stack[this.stack.length-1];j.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Q(){const re=this.resume(),j=this.stack[this.stack.length-1];j.value=re.replace(/(\r?\n|\r)$/g,"")}function N(re){const j=this.resume(),W=this.stack[this.stack.length-1];W.label=j,W.identifier=Ni(this.sliceSerialize(re)).toLowerCase()}function M(){const re=this.resume(),j=this.stack[this.stack.length-1];j.title=re}function G(){const re=this.resume(),j=this.stack[this.stack.length-1];j.url=re}function V(re){const j=this.stack[this.stack.length-1];if(!j.depth){const W=this.sliceSerialize(re).length;j.depth=W}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function O(re){const j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function _(re){const W=this.stack[this.stack.length-1].children;let ce=W[W.length-1];(!ce||ce.type!=="text")&&(ce=XA(),ce.position={start:sr(re.start),end:void 0},W.push(ce)),this.stack.push(ce)}function q(re){const j=this.stack.pop();j.value+=this.sliceSerialize(re),j.position.end=sr(re.end)}function $(re){const j=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=j.children[j.children.length-1];W.position.end=sr(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&(_.call(this,re),q.call(this,re))}function k(){this.data.atHardBreak=!0}function se(){const re=this.resume(),j=this.stack[this.stack.length-1];j.value=re}function le(){const re=this.resume(),j=this.stack[this.stack.length-1];j.value=re}function z(){const re=this.resume(),j=this.stack[this.stack.length-1];j.value=re}function L(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const j=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=j,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function J(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const j=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=j,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function Ae(re){const j=this.sliceSerialize(re),W=this.stack[this.stack.length-2];W.label=WF(j),W.identifier=Ni(j).toLowerCase()}function me(){const re=this.stack[this.stack.length-1],j=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const ce=re.children;W.children=ce}else W.alt=j}function T(){const re=this.resume(),j=this.stack[this.stack.length-1];j.url=re}function I(){const re=this.resume(),j=this.stack[this.stack.length-1];j.title=re}function P(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function te(re){const j=this.resume(),W=this.stack[this.stack.length-1];W.label=j,W.identifier=Ni(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function oe(re){this.data.characterReferenceType=re.type}function fe(re){const j=this.sliceSerialize(re),W=this.data.characterReferenceType;let ce;W?(ce=z0(j,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=hf(j);const pe=this.stack[this.stack.length-1];pe.value+=ce}function ge(re){const j=this.stack.pop();j.position.end=sr(re.end)}function Le(re){q.call(this,re);const j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(re)}function Fe(re){q.call(this,re);const j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(re)}function We(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function FA(){return{type:"inlineCode",value:""}}function mA(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function EA(){return{type:"emphasis",children:[]}}function bA(){return{type:"heading",depth:0,children:[]}}function Ut(){return{type:"break"}}function mt(){return{type:"html",value:""}}function Cn(){return{type:"image",title:null,url:"",alt:null}}function Ft(){return{type:"link",title:null,url:"",children:[]}}function ct(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function ln(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function Ai(){return{type:"paragraph",children:[]}}function wr(){return{type:"strong",children:[]}}function XA(){return{type:"text",value:""}}function Yi(){return{type:"thematicBreak"}}}function sr(e){return{line:e.line,column:e.column,offset:e.offset}}function cB(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?cB(e,i):t2(e,i)}}function t2(e,t){let r;for(r in t)if(oB.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function uB(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ss({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is still open")}function n2(e){const t=this;t.parser=r;function r(i){return e2(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function r2(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function i2(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
91
+ `}]}function a2(e,t){const r=t.value?t.value+`
92
+ `:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function s2(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function l2(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function o2(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=Ii(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let c,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=l+1,u+=1,e.footnoteCounts.set(i,u);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function c2(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function u2(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function fB(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=i:s.push({type:"text",value:i}),s}function f2(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return fB(e,t);const s={src:Ii(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function d2(e,t){const r={src:Ii(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function h2(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function g2(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return fB(e,t);const s={href:Ii(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function p2(e,t){const r={href:Ii(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function m2(e,t,r){const i=e.all(t),s=r?B2(r):dB(t),l={},c=[];if(typeof t.checked=="boolean"){const m=i[0];let B;m&&m.type==="element"&&m.tagName==="p"?B=m:(B={type:"element",tagName:"p",properties:{},children:[]},i.unshift(B)),B.children.length>0&&B.children.unshift({type:"text",value:" "}),B.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const m=i[u];(s||u!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
93
+ `}),m.type==="element"&&m.tagName==="p"&&!s?c.push(...m.children):c.push(m)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&c.push({type:"text",value:`
94
+ `});const h={type:"element",tagName:"li",properties:l,children:c};return e.patch(t,h),e.applyData(t,h)}function B2(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=dB(r[i])}return t}function dB(e){const t=e.spread;return t??e.children.length>1}function w2(e,t){const r={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s<i.length;){const c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function C2(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function y2(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function E2(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function v2(e,t){const r=e.all(t),i=r.shift(),s=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},u=lf(t.children[1]),f=_0(t.children[t.children.length-1]);u&&f&&(c.position={start:u,end:f}),s.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function b2(e,t,r){const i=r?r.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,u=c?c.length:t.children.length;let f=-1;const h=[];for(;++f<u;){const B=t.children[f],C={},w=c?c[f]:void 0;w&&(C.align=w);let E={type:"element",tagName:l,properties:C,children:[]};B&&(E.children=e.all(B),e.patch(B,E),E=e.applyData(B,E)),h.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function x2(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const hB=9,gB=32;function S2(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),s=0;const l=[];for(;i;)l.push(pB(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(t);return l.push(pB(t.slice(s),s>0,!1)),l.join("")}function pB(e,t,r){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===hB||l===gB;)i++,l=e.codePointAt(i)}if(r){let l=e.codePointAt(s-1);for(;l===hB||l===gB;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function Q2(e,t){const r={type:"text",value:S2(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function U2(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const F2={blockquote:r2,break:i2,code:a2,delete:s2,emphasis:l2,footnoteReference:o2,heading:c2,html:u2,imageReference:f2,image:d2,inlineCode:h2,linkReference:g2,link:p2,listItem:m2,list:w2,paragraph:C2,root:y2,strong:E2,table:v2,tableCell:x2,tableRow:b2,text:Q2,thematicBreak:U2,toml:Xl,yaml:Xl,definition:Xl,footnoteDefinition:Xl};function Xl(){}const mB=-1,ql=0,us=1,Jl=2,Ef=3,vf=4,bf=5,xf=6,BB=7,wB=8,CB=typeof self=="object"?self:globalThis,T2=(e,t)=>{const r=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,c]=t[s];switch(l){case ql:case mB:return r(c,s);case us:{const u=r([],s);for(const f of c)u.push(i(f));return u}case Jl:{const u=r({},s);for(const[f,h]of c)u[i(f)]=i(h);return u}case Ef:return r(new Date(c),s);case vf:{const{source:u,flags:f}=c;return r(new RegExp(u,f),s)}case bf:{const u=r(new Map,s);for(const[f,h]of c)u.set(i(f),i(h));return u}case xf:{const u=r(new Set,s);for(const f of c)u.add(i(f));return u}case BB:{const{name:u,message:f}=c;return r(new CB[u](f),s)}case wB:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:u}=new Uint8Array(c);return r(new DataView(u),c)}}return r(new CB[l](c),s)};return i},yB=e=>T2(new Map,e)(0),_i="",{toString:N2}={},{keys:I2}=Object,fs=e=>{const t=typeof e;if(t!=="object"||!e)return[ql,t];const r=N2.call(e).slice(8,-1);switch(r){case"Array":return[us,_i];case"Object":return[Jl,_i];case"Date":return[Ef,_i];case"RegExp":return[vf,_i];case"Map":return[bf,_i];case"Set":return[xf,_i];case"DataView":return[us,r]}return r.includes("Array")?[us,r]:r.includes("Error")?[BB,r]:[Jl,r]},Zl=([e,t])=>e===ql&&(t==="function"||t==="symbol"),_2=(e,t,r,i)=>{const s=(c,u)=>{const f=i.push(c)-1;return r.set(u,f),f},l=c=>{if(r.has(c))return r.get(c);let[u,f]=fs(c);switch(u){case ql:{let m=c;switch(f){case"bigint":u=wB,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([mB],c)}return s([u,m],c)}case us:{if(f){let C=c;return f==="DataView"?C=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(C=new Uint8Array(c)),s([f,[...C]],c)}const m=[],B=s([u,m],c);for(const C of c)m.push(l(C));return B}case Jl:{if(f)switch(f){case"BigInt":return s([f,c.toString()],c);case"Boolean":case"Number":case"String":return s([f,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const m=[],B=s([u,m],c);for(const C of I2(c))(e||!Zl(fs(c[C])))&&m.push([l(C),l(c[C])]);return B}case Ef:return s([u,c.toISOString()],c);case vf:{const{source:m,flags:B}=c;return s([u,{source:m,flags:B}],c)}case bf:{const m=[],B=s([u,m],c);for(const[C,w]of c)(e||!(Zl(fs(C))||Zl(fs(w))))&&m.push([l(C),l(w)]);return B}case xf:{const m=[],B=s([u,m],c);for(const C of c)(e||!Zl(fs(C)))&&m.push(l(C));return B}}const{message:h}=c;return s([u,{name:f,message:h}],c)};return l},EB=(e,{json:t,lossy:r}={})=>{const i=[];return _2(!(t||r),!!t,new Map,i)(e),i},Wl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yB(EB(e,t)):structuredClone(e):(e,t)=>yB(EB(e,t));function H2(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function M2(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function O2(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||H2,i=e.options.footnoteBackLabel||M2,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const m=e.all(h),B=String(h.identifier).toUpperCase(),C=Ii(B.toLowerCase());let w=0;const E=[],b=e.footnoteCounts.get(B);for(;b!==void 0&&++w<=b;){E.length>0&&E.push({type:"text",value:" "});let N=typeof r=="string"?r:r(f,w);typeof N=="string"&&(N={type:"text",value:N}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+C+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,w),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const U=m[m.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const N=U.children[U.children.length-1];N&&N.type==="text"?N.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...E)}else m.push(...E);const Q={type:"element",tagName:"li",properties:{id:t+"fn-"+C},children:e.wrap(m,!0)};e.patch(h,Q),u.push(Q)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Wl(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
95
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
96
+ `}]}}const vB=(function(e){if(e==null)return k2;if(typeof e=="function")return $l(e);if(typeof e=="object")return Array.isArray(e)?R2(e):L2(e);if(typeof e=="string")return D2(e);throw new Error("Expected function, string, or object as test")});function R2(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=vB(e[r]);return $l(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function L2(e){const t=e;return $l(r);function r(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function D2(e){return $l(t);function t(r){return r&&r.type===e}}function $l(e){return t;function t(r,i,s){return!!(j2(r)&&e.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function k2(){return!0}function j2(e){return e!==null&&typeof e=="object"&&"type"in e}function x6(e){return e}const bB=[],K2=!0,xB=!1,V2="skip";function G2(e,t,r,i){let s;typeof t=="function"&&typeof r!="function"?(i=r,r=t):s=t;const l=vB(s),c=i?-1:1;u(e,void 0,[])();function u(f,h,m){const B=f&&typeof f=="object"?f:{};if(typeof B.type=="string"){const w=typeof B.tagName=="string"?B.tagName:typeof B.name=="string"?B.name:void 0;Object.defineProperty(C,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return C;function C(){let w=bB,E,b,U;if((!t||l(f,h,m[m.length-1]||void 0))&&(w=z2(r(f,m)),w[0]===xB))return w;if("children"in f&&f.children){const Q=f;if(Q.children&&w[0]!==V2)for(b=(i?Q.children.length:-1)+c,U=m.concat(Q);b>-1&&b<Q.children.length;){const N=Q.children[b];if(E=u(N,b,U)(),E[0]===xB)return E;b=typeof E[1]=="number"?E[1]:b+c}}return w}}}function z2(e){return Array.isArray(e)?e:typeof e=="number"?[K2,e]:e==null?bB:[e]}function SB(e,t,r,i){let s,l,c;typeof t=="function"&&typeof r!="function"?(l=void 0,c=t,s=r):(l=t,c=r,s=i),G2(e,l,u,s);function u(f,h){const m=h[h.length-1],B=m?m.children.indexOf(f):void 0;return c(f,B,m)}}const Sf={}.hasOwnProperty,P2={};function Y2(e,t){const r=t||P2,i=new Map,s=new Map,l=new Map,c={...F2,...r.handlers},u={all:h,applyData:q2,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:c,one:f,options:r,patch:X2,wrap:Z2};return SB(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const B=m.type==="definition"?i:s,C=String(m.identifier).toUpperCase();B.has(C)||B.set(C,m)}}),u;function f(m,B){const C=m.type,w=u.handlers[C];if(Sf.call(u.handlers,C)&&w)return w(u,m,B);if(u.options.passThrough&&u.options.passThrough.includes(C)){if("children"in m){const{children:b,...U}=m,Q=Wl(U);return Q.children=u.all(m),Q}return Wl(m)}return(u.options.unknownHandler||J2)(u,m,B)}function h(m){const B=[];if("children"in m){const C=m.children;let w=-1;for(;++w<C.length;){const E=u.one(C[w],m);if(E){if(w&&C[w-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=QB(E.value)),!Array.isArray(E)&&E.type==="element")){const b=E.children[0];b&&b.type==="text"&&(b.value=QB(b.value))}Array.isArray(E)?B.push(...E):B.push(E)}}}return B}}function X2(e,t){e.position&&(t.position=kQ(e))}function q2(e,t){let r=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&l&&Object.assign(r.properties,Wl(l)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function J2(e,t){const r=t.data||{},i="value"in t&&!(Sf.call(r,"hProperties")||Sf.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Z2(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
97
+ `});++i<e.length;)i&&r.push({type:"text",value:`
98
+ `}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
99
+ `}),r}function QB(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function UB(e,t){const r=Y2(e,t),i=r.one(e,void 0),s=O2(r),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
100
+ `},s),l}function W2(e,t){return e&&"run"in e?async function(r,i){const s=UB(r,{file:i,...t});await e.run(s,i)}:function(r,i){return UB(r,{file:i,...e||t})}}function FB(e){if(e)throw e}var Qf,TB;function $2(){if(TB)return Qf;TB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),B=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!B)return!1;var C;for(C in h);return typeof C>"u"||e.call(h,C)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},u=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Qf=function f(){var h,m,B,C,w,E,b=arguments[0],U=1,Q=arguments.length,N=!1;for(typeof b=="boolean"&&(N=b,b=arguments[1]||{},U=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});U<Q;++U)if(h=arguments[U],h!=null)for(m in h)B=u(b,m),C=u(h,m),b!==C&&(N&&C&&(l(C)||(w=s(C)))?(w?(w=!1,E=B&&s(B)?B:[]):E=B&&l(B)?B:{},c(b,{name:m,newValue:f(N,E,C)})):typeof C<"u"&&c(b,{name:m,newValue:C}));return b},Qf}var eT=$2();const Uf=du(eT);function Ff(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 AT(){const e=[],t={run:r,use:i};return t;function r(...s){let l=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(f,...h){const m=e[++l];let B=-1;if(f){c(f);return}for(;++B<s.length;)(h[B]===null||h[B]===void 0)&&(h[B]=s[B]);s=h,m?tT(m,u)(...h):c(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function tT(e,t){let r;return i;function i(...c){const u=e.length>c.length;let f;u&&c.push(s);try{f=e.apply(this,c)}catch(h){const m=h;if(u&&r)throw m;return s(m)}u||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(c,...u){r||(r=!0,t(c,...u))}function l(c){s(null,c)}}const pn={basename:nT,dirname:rT,extname:iT,join:aT,sep:"/"};function nT(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ds(e);let r=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){r=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,u=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){r=s+1;break}}else c<0&&(l=!0,c=s+1),u>-1&&(e.codePointAt(s)===t.codePointAt(u--)?u<0&&(i=s):(u=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function rT(e){if(ds(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function iT(e){ds(e);let t=e.length,r=-1,i=0,s=-1,l=0,c;for(;t--;){const u=e.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),u===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||r<0||l===0||l===1&&s===r-1&&s===i+1?"":e.slice(s,r)}function aT(...e){let t=-1,r;for(;++t<e.length;)ds(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":sT(r)}function sT(e){ds(e);const t=e.codePointAt(0)===47;let r=lT(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function lT(e,t){let r="",i=0,s=-1,l=0,c=-1,u,f;for(;++c<=e.length;){if(c<e.length)u=e.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||l===1))if(s!==c-1&&l===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf("/")),s=c,l=0;continue}}else if(r.length>0){r="",i=0,s=c,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(s+1,c):r=e.slice(s+1,c),i=c-s-1;s=c,l=0}else u===46&&l>-1?l++:l=-1}return r}function ds(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const oT={cwd:cT};function cT(){return"/"}function Tf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function uT(e){if(typeof e=="string")e=new URL(e);else if(!Tf(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 fT(e)}function fT(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Nf=["history","path","basename","stem","extname","dirname"];class NB{constructor(t){let r;t?Tf(t)?r={path:t}:typeof t=="string"||dT(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":oT.cwd(),this.data={},this.history=[],this.messages=[];let i=-1;for(;++i<Nf.length;){const l=Nf[i];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let s;for(s in r)Nf.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?pn.basename(this.path):void 0}set basename(t){_f(t,"basename"),If(t,"basename"),this.path=pn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pn.dirname(this.path):void 0}set dirname(t){IB(this.basename,"dirname"),this.path=pn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pn.extname(this.path):void 0}set extname(t){if(If(t,"extname"),IB(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=pn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Tf(t)&&(t=uT(t)),_f(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pn.basename(this.path,this.extname):void 0}set stem(t){_f(t,"stem"),If(t,"stem"),this.path=pn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const s=this.message(t,r,i);throw s.fatal=!0,s}info(t,r,i){const s=this.message(t,r,i);return s.fatal=void 0,s}message(t,r,i){const s=new it(t,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function If(e,t){if(e&&e.includes(pn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pn.sep+"`")}function _f(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function IB(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function dT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hT=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),gT={}.hasOwnProperty;class Hf extends hT{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=AT()}copy(){const t=new Hf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Uf(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Rf("data",this.frozen),this.namespace[t]=r,this):gT.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rf("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[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=eo(t),i=this.parser||this.Parser;return Mf("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),Mf("process",this.parser||this.Parser),Of("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(l,c){const u=eo(t),f=i.parse(u);i.run(f,u,function(m,B,C){if(m||!B||!C)return h(m);const w=B,E=i.stringify(w,C);BT(E)?C.value=E:C.result=E,h(m,C)});function h(m,B){m||!B?c(m):l?l(B):r(void 0,B)}}}processSync(t){let r=!1,i;return this.freeze(),Mf("processSync",this.parser||this.Parser),Of("processSync",this.compiler||this.Compiler),this.process(t,s),HB("processSync","process",r),i;function s(l,c){r=!0,FB(l),i=c}}run(t,r,i){_B(t),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const f=eo(r);s.run(t,f,h);function h(m,B,C){const w=B||t;m?u(m):c?c(w):i(void 0,w,C)}}}runSync(t,r){let i=!1,s;return this.run(t,r,l),HB("runSync","run",i),s;function l(c,u){FB(c),s=u,i=!0}}stringify(t,r){this.freeze();const i=eo(r),s=this.compiler||this.Compiler;return Of("stringify",s),_B(t),s(t,i)}use(t,...r){const i=this.attachers,s=this.namespace;if(Rf("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...B]=h;f(m,B)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))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");u(h.plugins),h.settings&&(s.settings=Uf(!0,s.settings,h.settings))}function u(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const B=h[m];l(B)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let B=-1,C=-1;for(;++B<i.length;)if(i[B][0]===h){C=B;break}if(C===-1)i.push([h,...m]);else if(m.length>0){let[w,...E]=m;const b=i[C][1];Ff(b)&&Ff(w)&&(w=Uf(!0,b,w)),i[C]=[h,w,...E]}}}}const pT=new Hf().freeze();function Mf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Of(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rf(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 _B(e){if(!Ff(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function HB(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function eo(e){return mT(e)?e:new NB(e)}function mT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function BT(e){return typeof e=="string"||wT(e)}function wT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const MB=[],OB={allowDangerousHtml:!0},CT=/^(https?|ircs?|mailto|xmpp)$/i,yT=[{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:"className",id:"remove-classname"},{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 hs(e){const t=ET(e),r=vT(e);return bT(t.runSync(t.parse(r),r),e)}function ET(e){const t=e.rehypePlugins||MB,r=e.remarkPlugins||MB,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...OB}:OB;return pT().use(n2).use(r).use(W2,i).use(t)}function vT(e){const t=e.children||"",r=new NB;return typeof t=="string"&&(r.value=t),r}function bT(e,t){const r=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,f=t.urlTransform||xT;for(const m of yT);return SB(e,h),zQ(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,B,C){if(m.type==="raw"&&C&&typeof B=="number")return c?C.children.splice(B,1):C.children[B]={type:"text",value:m.value},B;if(m.type==="element"){let w;for(w in df)if(Object.hasOwn(df,w)&&Object.hasOwn(m.properties,w)){const E=m.properties[w],b=df[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(E||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):l?l.includes(m.tagName):!1;if(!w&&i&&typeof B=="number"&&(w=!i(m,B,C)),w&&C&&typeof B=="number")return u&&m.children?C.children.splice(B,1,...m.children):C.children.splice(B,1),B}}}function xT(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||i!==-1&&t>i||CT.test(e.slice(0,t))?e:""}function RB({file:e,onRemove:t,isPreview:r=!0,className:i=""}){const[s,l]=x.useState(!1),[c,u]=x.useState(""),f=e?.type?.startsWith("image/")??!1,h=e?.type==="application/pdf";x.useEffect(()=>{if(f){const C=URL.createObjectURL(e);return u(C),()=>URL.revokeObjectURL(C)}},[e,f]),x.useEffect(()=>{l(!1)},[e]);const m=()=>f?"text-green-600":"text-text-secondary",B=C=>{if(C===0)return"0 B";const w=1024,E=["B","KB","MB","GB"],b=Math.floor(Math.log(C)/Math.log(w));return`${(C/Math.pow(w,b)).toFixed(1)} ${E[b]}`.toLowerCase()};return!f||s?g.jsxs("div",{className:`relative group inline-flex flex-shrink-0 bg-white border border-neutral-300 rounded-lg flex items-center gap-3 px-3 py-2.5 max-w-full ${r?"hover:bg-neutral-50":""} ${i}`,children:[g.jsx("div",{className:`flex-shrink-0 ${m()}`,children:g.jsx(cS,{className:"h-5 w-5"})}),g.jsxs("div",{className:"flex-1 min-w-0 max-w-[200px]",children:[e?.name&&g.jsx("div",{className:"text-sm font-medium text-[var(--color-foreground)] truncate",children:e.name}),e?.size&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)]",children:B(e.size)})]}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${e.name}`,className:"flex-shrink-0 flex items-center justify-center w-5 h-5 text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)] transition-colors",children:g.jsx(ns,{className:"h-4 w-4"})})]}):g.jsxs("div",{className:`relative group flex-shrink-0 ${i}`,children:[g.jsx("div",{className:`w-20 h-20 bg-white border border-neutral-300 rounded-lg flex items-center justify-center overflow-hidden ${r?"hover:bg-neutral-100 cursor-pointer":""}`,children:c&&g.jsx("img",{src:c,alt:e.name,className:"w-full h-full object-cover",onError:()=>l(!0)})}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${e.name}`,className:"absolute top-0 right-0 bg-[var(--color-muted)] text-black rounded-full w-5 h-5 flex items-center justify-center hover:bg-[var(--color-muted-foreground)] transition-colors z-10 transform translate-x-1 -translate-y-1",children:g.jsx(ns,{className:"h-3 w-3 text-black"})})]})}function Lf({files:e,onRemoveFile:t,isPreview:r=!0,className:i=""}){if(e.length===0)return null;const s=e.filter(c=>c.type?.startsWith("image/")),l=e.filter(c=>!c.type?.startsWith("image/"));return g.jsxs("div",{className:`flex flex-wrap justify-end gap-2 max-w-full ${i}`,children:[l.map(c=>{const u=e.indexOf(c);return g.jsx(RB,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)}),s.length>0&&g.jsx("div",{className:"flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide",children:s.map(c=>{const u=e.indexOf(c);return g.jsx(RB,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)})})]})}const ST=x.lazy(()=>Promise.resolve().then(()=>HT).then(e=>({default:e.Pills}))),QT=x.lazy(()=>Promise.resolve().then(()=>N4).then(e=>({default:e.MultiSelectGroup}))),UT=x.lazy(()=>Promise.resolve().then(()=>H4).then(e=>({default:e.FocusCarousel}))),FT=x.lazy(()=>Promise.resolve().then(()=>R4).then(e=>({default:e.DoctorCard}))),TT=x.lazy(()=>Promise.resolve().then(()=>k4).then(e=>({default:e.CardList}))),NT=x.lazy(()=>Promise.resolve().then(()=>z4).then(e=>({default:e.MediaCard})));function ZA({className:e}){return g.jsx("div",{className:he("relative overflow-hidden bg-surface-secondary","before:absolute before:inset-0","before:-translate-x-full before:animate-[shimmer_1.4s_infinite]","before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",e)})}function Hi({variant:e}){return e==="pill"?g.jsxs("div",{className:"flex flex-wrap gap-2 mt-3","aria-busy":!0,"aria-label":"Loading options",children:[g.jsx(Ao,{}),g.jsx(ZA,{className:"h-8 w-20 rounded-full"}),g.jsx(ZA,{className:"h-8 w-24 rounded-full"}),g.jsx(ZA,{className:"h-8 w-16 rounded-full"})]}):e==="media"?g.jsxs("div",{className:"mt-3 w-56 rounded-xl border border-border-subtle bg-surface p-3","aria-busy":!0,"aria-label":"Loading media",children:[g.jsx(Ao,{}),g.jsx(ZA,{className:"h-24 w-full rounded-lg"}),g.jsxs("div",{className:"mt-3 space-y-2",children:[g.jsx(ZA,{className:"h-3 w-3/4 rounded"}),g.jsx(ZA,{className:"h-3 w-1/2 rounded"})]})]}):e==="input"?g.jsxs("div",{className:"mt-3 w-full rounded-xl border border-primary/30 bg-elicitationBg p-4","aria-busy":!0,"aria-label":"Loading input",children:[g.jsx(Ao,{}),g.jsx(ZA,{className:"h-3 w-32 rounded mb-3"}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(ZA,{className:"h-9 w-full rounded-lg"}),g.jsx(ZA,{className:"h-9 w-full rounded-lg"}),g.jsx(ZA,{className:"h-9 w-full rounded-lg"})]}),g.jsx(ZA,{className:"mt-4 h-9 w-full rounded-lg"})]}):g.jsxs("div",{className:"mt-3 w-72 rounded-xl border border-border-subtle bg-surface p-4","aria-busy":!0,"aria-label":"Loading card",children:[g.jsx(Ao,{}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(ZA,{className:"h-10 w-10 rounded-full"}),g.jsxs("div",{className:"flex-1 space-y-2",children:[g.jsx(ZA,{className:"h-3 w-3/4 rounded"}),g.jsx(ZA,{className:"h-3 w-1/2 rounded"})]})]}),g.jsxs("div",{className:"mt-4 space-y-2",children:[g.jsx(ZA,{className:"h-3 w-full rounded"}),g.jsx(ZA,{className:"h-3 w-5/6 rounded"})]}),g.jsx(ZA,{className:"mt-4 h-9 w-28 rounded-lg"})]})}function Ao(){return g.jsx("style",{children:"@keyframes shimmer { 100% { transform: translateX(100%); } }"})}function IT({messageId:e,tool_key:t,entry:r,onSendMessage:i,disabled:s}){const[l,c]=x.useState([]),[u,f]=x.useState({}),[h,m]=x.useState(!1),[B,C]=x.useState(5),w=r.component,E=r.disabled,b=x.useMemo(()=>r.ui_input,[r.ui_input]);x.useEffect(()=>{w===de.SYNAPSE_COMPONENTS.DOCTOR_CARD&&b?.doctor_details&&f(b.doctor_details)},[w,b?.doctor_details]);const U=async _=>{m(!0),await i({message:_.value,messageId:e,toolCalled:!0,selectedComponent:_,tool_key:t})},Q=async(_,q,$)=>{await i({toolCalled:!0,selectedComponent:_,selected_id:_.doctor_id,message:q,tool_key:t,messageId:e,...$&&{tool_result:$}})},N=async()=>{await i({message:"show more"})},M=async()=>{l.length!==0&&await i({message:l.join(", "),messageId:e,toolCalled:!0,tool_key:t})},G=()=>{const _=w===de.SYNAPSE_COMPONENTS.MULTI&&b?.options;return _?Array.isArray(_)?_.map((q,$)=>({id:`option-${$}`,label:q.label,value:q.value})):Object.keys(_).map((q,$)=>({id:`option-${$}`,label:q,value:q})):[]},V=x.useMemo(()=>{if(w===de.SYNAPSE_COMPONENTS.DOCTOR_CARD)return b?.doctors?.filter(q=>!!q&&!!q.doctor_id)},[w,b?.doctors]);if(!w)return null;const F=w===de.SYNAPSE_COMPONENTS.PILL?b?.options:void 0,O=w===de.SYNAPSE_COMPONENTS.CARD?b?.cards:void 0,R=w===de.SYNAPSE_COMPONENTS.MEDIA_CARD?b?.media_card:void 0;return g.jsxs("div",{className:"flex justify-end",children:[F&&g.jsx(x.Suspense,{fallback:g.jsx(Hi,{variant:"pill"}),children:g.jsxs("div",{className:`flex ${F.length>3?"flex-col":"flex-wrap"} gap-2 mt-3`,children:[F.slice(0,B).map((_,q)=>g.jsx(ST,{disabled:E||s||h,text:_?.label||"",onClick:()=>U(_),className:"cursor-pointer"},q)),F.length>B&&g.jsxs("button",{type:"button",disabled:E||s||h,onClick:()=>C(_=>_+5),className:he("inline-flex items-center gap-1.5 self-start rounded-lg border border-dashed border-primary","bg-elicitationBg px-3 py-2 text-xs font-semibold text-primary","transition-colors cursor-pointer","disabled:opacity-50 disabled:cursor-not-allowed"),children:[g.jsx(Qi,{className:"w-3.5 h-3.5"}),"Show ",Math.min(5,F.length-B)," more"]})]})}),w===de.SYNAPSE_COMPONENTS.MULTI&&b?.options&&g.jsx(x.Suspense,{fallback:g.jsx(Hi,{variant:"input"}),children:g.jsxs("div",{className:"mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4",children:[g.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Select multiple options:"}),g.jsx(QT,{options:G(),selectedValues:l,onSelectionChange:c,disabled:E||s}),g.jsx(_e,{onClick:M,disabled:l.length===0||E||s,className:he("w-full rounded-lg px-4 py-2 text-sm font-medium transition-all","bg-primary hover:bg-primary/90 text-primary-foreground","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-primary/50 disabled:text-primary-foreground","shadow-sm hover:shadow-md active:scale-[0.98] "),children:"Confirm"})]})}),V&&V.length>0?g.jsx(x.Suspense,{fallback:g.jsx(Hi,{variant:"card"}),children:g.jsx(UT,{count:V.length>1?V.length+1:V.length,renderItem:(_,q)=>{if(V.length>1&&_===V.length)return g.jsxs("button",{type:"button",onClick:N,disabled:s||E,className:he("max-w-md w-full h-full flex flex-col items-center justify-center gap-2 px-4","rounded-xl border-2 border-dashed border-black-200 dark:border-white-200 bg-primary/[10%]","transition-colors disabled:opacity-60 disabled:cursor-not-allowed"),children:[g.jsx("span",{className:he("flex items-center justify-center","w-10 h-10 rounded-full bg-elicitationBg shadow-sm"),children:g.jsx(ES,{className:"w-4 h-4 text-primary"})}),g.jsx("span",{className:"text-primary font-semibold text-sm",children:"Show more"})]});const $=V[_];return g.jsx(x.Suspense,{fallback:g.jsx(Hi,{variant:"card"}),children:g.jsx(FT,{doctor:$,doctorDetails:u?.[$.doctor_id],disabled:s,onSelect:Q,isActive:q})},$.doctor_id)}})}):null,O&&g.jsx(x.Suspense,{fallback:g.jsx(Hi,{variant:"card"}),children:g.jsx(TT,{cards:O,onSelect:async _=>{await i({..._,toolCalled:!0,tool_key:t,messageId:e})},orientation:r.orientation,disabled:E||s})}),R&&g.jsx(x.Suspense,{fallback:g.jsx(Hi,{variant:"media"}),children:g.jsx("div",{className:"mt-3",children:g.jsx(NT,{card:R})})})]})}function _T({id:e,role:t,content:r,files:i,isLastMessage:s,progressMessage:l,toolKeys:c,userHint:u,elicitationState:f,toolCallStatus:h,onSendMessage:m,onToggleFeedback:B,disabled:C,onClearElicitationState:w,isAuthComponent:E,isFullScreen:b}){const U=t==="user",[Q,N]=x.useState(de.USER_FEEDBACK.NONE),M=Ze(F=>F.isStreaming),G=F=>{N(F),B(F)},V=!!(r?.trim()||i&&i.length>0||h||l||u);return g.jsxs(g.Fragment,{children:[V&&g.jsx("div",{className:he("flex",U?"justify-end":"justify-start"),children:g.jsx("div",{className:he("flex gap-3",U?"flex-row-reverse":"flex-row",U?"max-w-[60%]":b?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsxs(Fn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap",U?"bg-primary text-primary-foreground shadow-sm":he("text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200"),b&&!U&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:[h&&!U&&g.jsx("div",{className:"text-xs text-muted-foreground mb-2 pb-2 border-b border-border-subtle",children:h}),!h&&l&&!U&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground pb-2",children:l}),r&&g.jsx("div",{className:he("markdown-content",b&&!U?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:`${r} ${!U&&M&&s?"...":""}`})}),i&&i.length>0&&g.jsx("div",{className:"mt-2",children:g.jsx(Lf,{files:i,isPreview:!1,className:""})}),l&&!U&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:l})]}),!u&&!U&&!M&&s&&r&&Q===de.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.LIKE),children:g.jsx(kl,{className:"h-3 w-3"})}),g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.DISLIKE),children:g.jsx(jl,{className:"h-3 w-3"})})]})}),!u&&!U&&!M&&s&&Q===de.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(kl,{className:"h-3 w-3"})})}),!u&&!U&&!M&&s&&Q===de.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(jl,{className:"h-3 w-3"})})}),E&&s&&c?.length?g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(_e,{variant:"link",size:"sm",className:"h-6 px-0 text-[12px] font-medium text-primary border-b border-dashed border-primary rounded-none bg-transparent no-underline hover:no-underline hover:bg-transparent active:bg-transparent focus-visible:bg-transparent rounded-none",onClick:()=>{const F=c[c.length-1];F&&f[F].active&&w(F,"Cancel OTP Verification")},children:"Cancel OTP Verification"})}):null]})})}),c?.map(F=>{const O=f[F];return O?g.jsx(IT,{messageId:e,tool_key:F,entry:O,onSendMessage:m,disabled:C||O.disabled},F):null}),u&&!U&&g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:he("flex gap-3 flex-row",b?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsx(Fn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",b&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:g.jsx("div",{className:he("markdown-content",b?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:u})})}),!M&&s&&Q===de.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.LIKE),children:g.jsx(kl,{className:"h-3 w-3"})}),g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.DISLIKE),children:g.jsx(jl,{className:"h-3 w-3"})})]})}),!M&&s&&Q===de.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(kl,{className:"h-3 w-3"})})}),!M&&s&&Q===de.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(_e,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(jl,{className:"h-3 w-3"})})})]})})})]})}function LB({text:e,maxWidth:t="200px",className:r="",icon:i,onClick:s,disabled:l=!1}){const[c,u]=x.useState(!1),f=x.useRef(null),h=x.useRef(null);return x.useEffect(()=>{const m=()=>{if(f.current&&h.current){const B=f.current.offsetWidth,C=h.current.scrollWidth;u(C>B)}};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[e,t]),e?g.jsxs("div",{ref:f,onClick:l?void 0:s,className:he("inline-flex items-center gap-2 rounded-lg border border-primary bg-elicitationBg px-3 py-2 shadow-sm text-xs text-primary cursor-pointer",r,l?"opacity-50 cursor-not-allowed":""),style:{maxWidth:t,WebkitTapHighlightColor:"transparent",outline:"none"},title:e,children:[i&&g.jsx("span",{className:"text-primary",children:i}),g.jsx("div",{className:"pill-marquee-wrapper",children:g.jsx("span",{ref:h,className:he("block whitespace-normal",c?"pill-marquee":""),children:e})})]}):null}const HT=Object.freeze(Object.defineProperty({__proto__:null,Pills:LB},Symbol.toStringTag,{value:"Module"}));function MT({text:e,suggestions:t,onSendMessage:r,disabled:i,isFullScreen:s}){if(!e&&!t?.length)return null;const l=c=>{const u=c.value||c.label||"";u&&r({message:u})};return g.jsxs(g.Fragment,{children:[e&&g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:he("flex gap-3 flex-row",s?"w-full":"max-w-xs"),children:g.jsx(Fn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",s&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none text-black-900"),children:g.jsx("div",{className:he("markdown-content",s?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:e})})})})}),t&&t.length>0&&g.jsx("div",{className:"flex justify-end",children:g.jsx("div",{className:he("flex gap-2 mt-3",t.length>3?"flex-col":"flex-wrap"),children:t.map((c,u)=>g.jsx(LB,{text:c.label||"",onClick:()=>l(c),disabled:i,className:"cursor-pointer"},u))})})]})}function OT({messages:e,onSendMessage:t,onToggleFeedback:r,onClearElicitationState:i,isAuthComponent:s,isFullScreen:l,initialMessage:c,disabled:u}){const f=Ze(w=>w.isWaitingForResponse),h=Ze(w=>w.connectionStatus),m=Ze(w=>w.elicitationState),B=h===PA.CONNECTED,C=Ze(w=>w.progressMessage);return e.length===0&&!C?g.jsx(MT,{text:c?.text,suggestions:c?.suggestions,onSendMessage:t,disabled:u,isFullScreen:l}):g.jsxs(g.Fragment,{children:[(e&&e.length>0||C)&&g.jsx(g.Fragment,{children:e.map((w,E)=>g.jsx("div",{className:"animate-slideUp scroll-mt-[16px] min-w-0 overflow-hidden","data-role":w.role,"data-message-id":w.id,id:E===e.length-1?"last-message":void 0,children:g.jsx(_T,{id:w.id,role:w.role,content:w.content,files:w.files||[],toolKeys:w.tool_keys,userHint:w.userHint,elicitationState:m,timestamp:w.timestamp,onSendMessage:t,isLastMessage:E===e.length-1,progressMessage:C,toolCallStatus:w.toolCallStatus,disabled:!B,onToggleFeedback:b=>r(b,w.id),onClearElicitationState:i,isAuthComponent:s,isFullScreen:l})},w.id))}),f&&g.jsx(RT,{})]})}function RT(){return g.jsx("div",{className:"animate-slideUp",children:g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:"flex gap-3",children:g.jsx(Fn,{className:"px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm",children:g.jsx("div",{className:"flex items-center gap-1.5","aria-label":"Bot is typing",children:[0,1,2].map(e=>g.jsx("span",{className:"w-2 h-2 rounded-full bg-foreground animate-pulse",style:{animationDelay:`${e*150}ms`}},e))})})})})})}function DB(){const[e,t]=x.useState(typeof navigator<"u"?navigator.onLine:!0);return x.useEffect(()=>{const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r),window.addEventListener("offline",i),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}},[]),{isOnline:e}}const LT=e=>e?e.split(" ").map(t=>t[0]).slice(0,2).join("").toUpperCase():"DR",DT=e=>{const t=new Date(e),r=t.toLocaleDateString(void 0,{weekday:"short"}),i=t.toLocaleDateString(void 0,{day:"2-digit"});return{weekday:r,dayNum:i}},kT=(e=[],t=[])=>{if(!e.length)return t;if(!t.length)return e;const r=e.map(i=>({...i}));for(const i of t){const s=i.date?r.findIndex(l=>l.date===i.date):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,slots:i.slots??l.slots}}}return r},jT=(e=[],t=[])=>{if(!e.length)return t;if(!t.length)return e;const r=e.map(i=>({...i}));for(const i of t){const s=i.doctor_id?r.findIndex(l=>l.doctor_id===i.doctor_id):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,availability:kT(l.availability,i.availability)}}}return r},kB=e=>!!e&&Array.isArray(e.doctors),KT=(e,t,r)=>e?t?r!==de.SYNAPSE_COMPONENTS.DOCTOR_CARD?t:!kB(e)||!kB(t)?e:{...t,doctors:jT(e.doctors,t.doctors),doctor_details:{...e.doctor_details||{},...t.doctor_details||{}}}:e:t,lr=e=>{const t=e;return t?.message?t.error?.msg||t.message:e instanceof Error?e.message:"An unexpected error occurred"},VT=({environment:e,connectionType:t,baseUrl:r,context:i,auth:s,authToken:l})=>{const[c,u]=x.useState([]),f=x.useRef([]),[h,m]=x.useState(!1),B=x.useRef(0),[C,w]=x.useState(!1),[E,b]=x.useState([]),U=x.useRef(null),Q=IS(),N=x.useRef(null),{isOnline:M}=DB(),G=x.useRef(!1),V=Ze(j=>j.agentId),F=Ze(j=>j.sessionId),O=Ze(j=>j.sessionToken),R=Ze(j=>j.isStreaming),_=Ze(j=>j.isWaitingForResponse),q=Ze(j=>j.initialMessage),$=Ze(j=>j.userId),k=Ze(j=>j.fileUploadPerSession),{setSessionId:se,setSessionToken:le,setError:z,setConnectionStatus:L,setShowRetryButton:J,setStartNewConnection:Ae,setIsStreaming:me,setIsWaitingForResponse:T,setProgressMessage:I,setRecordingStatus:P,clearSession:v,addMessageToSession:te,getMessagesForSession:oe,updateMessageInSession:fe,setUserId:ge,setFileUploadPerSession:Le,setToastMessage:Fe,upsertElicitationState:We}=Ze.getState();x.useEffect(()=>{M?C?mA()&&(L(PA.CONNECTED),bA()):L(PA.CONNECTING):L(PA.NOT_CONNECTED)},[M,C]),x.useEffect(()=>{F&&(u(j=>[...j,...oe(F)||[]]),b([]))},[F]),x.useEffect(()=>{if(w(!1),!V)return;const j=new de.SynapseSDK({agentId:V,environment:e,...t&&{connectionType:t},userId:$,callbacks:{onError:W=>{switch(W.code){case de.SynapseErrorCode.SESSION:{const ce=W.context;ce?.stage==="handleSessionExpiry"||ce?.stage==="refreshSession"?M?(z({title:"Internet connection Failed!",description:lr(W)}),J(!0)):(z({title:"Your session has ended.",description:"Please start a new Chat."}),J(!0)):(L(PA.NOT_CONNECTED),z({title:"Something went wrong!",description:lr(W)}),J(!0));break}case de.SynapseErrorCode.RECORDING:z({title:"Recording failed",description:lr(W)});break;case de.SynapseErrorCode.CONNECTION:mA()||(L(PA.NOT_CONNECTED),B.current<2?(B.current=B.current+1,je(F,O)):(J(!0),z({title:"Trying to connect...",description:lr(W)})));break;default:z({title:"Something went wrong",description:lr(W)}),J(!0);break}},onSessionRefreshed:W=>{W?.session_id&&W?.session_token&&(se(W.session_id),le(W.session_token))}},...r&&{serverUrl:r},...i&&{context:i},...s&&{auth:s},...l&&{authToken:l}});return U.current=j,Q(j),w(!0),()=>{w(!1),U.current?.endSession(),U.current=null,Q(null),N.current&&(clearTimeout(N.current),N.current=null)}},[V,e,s,l]),x.useEffect(()=>{f.current=c},[c]),x.useEffect(()=>{const j=f.current[f.current.length-1];!j?.role||!F||(j?.role===jt.USER&&!j.isStored?te(F,{...j,isStored:!0}):!R&&!j.isStored&&(u(W=>{const ce=[...W];return ce[ce.length-1]={...j,isStored:!0},ce}),te(F,{...j,isStored:!0})))},[c,R]),x.useEffect(()=>{const j=c[c.length-1];return()=>{j&&!j?.isStored&&F&&te(F,{...j,isStored:!0})}},[]),x.useEffect(()=>(N.current&&(clearTimeout(N.current),N.current=null),_&&!R?N.current=setTimeout(()=>{T(!1),N.current=null},3e4):R&&N.current&&(clearTimeout(N.current),N.current=null),()=>{N.current&&(clearTimeout(N.current),N.current=null)}),[_,R,T]);const je=async(j,W,ce=!1)=>{try{const pe=await U.current?.startSession({session_id:j||"",session_token:W||""});pe?.session_id&&pe?.session_token&&(se(pe.session_id),le(pe.session_token)),pe?.user_id&&ge(pe.user_id)}catch(pe){const Se=pe,Ne=Se.context?.stage==="handleSessionExpiry"||Se.context?.stage==="refreshSession"||Se.status===404,$e=Se.status===403;Ne?(z(null),L(PA.NOT_CONNECTED),Ae(!0)):$e&&!ce?(v(),bA(),await je(void 0,void 0,!0)):(z({title:"Connection Lost!",description:lr(pe)}),J(!0))}},FA=async(j=!1)=>{try{if(!U.current){z({title:"SDK not initialized",description:"Please ensure agentId is configured"}),m(!1);return}if(m(!0),j){L(PA.CONNECTING),u([]),await v(),await U?.current?.endSession(),bA(),await je(),Ut();return}const{sessionId:W,sessionToken:ce}=Ze.getState();await je(W,ce),Ut()}catch{}finally{m(!1)}},mA=()=>U.current?.isConnected()??!1,EA=()=>{U.current?.endSession()},bA=()=>{B.current=0,J(!1),Ae(!1),z(null)},Ut=()=>{U.current?.on(de.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,j=>{const W=j;if(W.data?.text&&W.messageId){R||(T(!1),me(!0)),mA()&&L(PA.CONNECTED),bA();const ce=W.data.text,pe=W.messageId,Se=G.current;G.current=!1,u(Ne=>{const $e=Ne[Ne.length-1];if($e&&$e.id===pe&&$e.role===jt.ASSISTANT){const Pe=[...Ne],fA=Se&&$e.content.length>0&&!/\s$/.test($e.content)&&!/^\s/.test(ce)?`
93
101
 
94
- `:"";return PA[PA.length-1]={...TA,content:TA.content+ZA+O},PA}else return[...fA,{id:X,content:O,role:Fe.ASSISTANT,timestamp:tr(Date.now()),isStored:!1}]})}}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM,()=>{_.current=!1,cA(!1),eA(null),v(!1)}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.CONNECTED,()=>{jA(),V($A.CONNECTED)}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,U=>{_.current=!0;const N=U;if(!N?.messageId||!N?.data||!N?.data?.details?.component||!N?.data?.tool_id)return;E&&v(!1);const{messageId:O,data:X}=N,sA=X.tool_id,fA=`${O}::${sA}`,PA=CA.getState().elicitationState[fA],ZA=X.details?.component,HA=N?.data?.details?._meta?.tool_result,gA=X.details?.input,aA=wv(PA?.ui_input,gA,ZA);let JA=N.data.details?._meta?.disp_toast_msg;const ut=X?.details?._meta?.schema?.required||[];switch(X?.details?.status){case P.SYNAPSE_EICITATION_STATUS.PROGRESS:{const ce=N?.data?.details?.input||{},Ee=ut.reduce((Wt,br)=>(ce[br]!==void 0&&(Wt[br]=ce[br]),Wt),{}),BA={...PA?.server_input||{},...Ee},Je=ut.filter(Wt=>!BA[Wt]),Ln=N.data.details?._meta?.mcp_meta_fields||[];UA(fA,{tool_id:sA,active:!0,disabled:!1,ui_input:aA,server_input:BA,messageId:O,required:ut,component:ZA,pattern:N.data.details?._meta?.schema?.properties?.[N.data.details?.component]?.pattern,minLength:N.data.details?._meta?.schema?.properties?.[N.data.details?.component]?.minLength,maxLength:N.data.details?._meta?.schema?.properties?.[N.data.details?.component]?.maxLength,type:N.data.details?._meta?.schema?.properties?.[N.data.details?.component]?.type,disp_toast_msg:N.data.details?._meta?.disp_toast_msg,description:N.data.details?._meta?.schema?.properties?.[N.data.details?.component]?.description,tool_result:HA,orientation:N.data.details?._meta?.orientation,...Ln.length&&{mcp_meta_fields:Ln},...Je?{toolSelectionNames:Je}:{}});break}case P.SYNAPSE_EICITATION_STATUS.SUCCESS:{UA(fA,{...PA||{},tool_id:sA,disabled:!0,active:gm(ZA),messageId:O,component:ZA,ui_input:aA,tool_result:HA,send_to_llm:!0});break}case P.SYNAPSE_EICITATION_STATUS.FAILURE:{UA(fA,{...PA||{},tool_id:sA,active:!1,messageId:O,response_value:{label:X?.details?._meta?.disp_message||"Tool call failed"},tool_result:HA,disabled:!0});break}default:UA(fA,{tool_id:sA,disabled:!1,active:!1,messageId:O,tool_result:HA,ui_input:aA,component:ZA})}JA&&OA(JA);const je=N?.data?.details?._meta?.user_hint;s(ce=>{let BA=ce[ce.length-1]?.id===O?ce.length-1:ce.findIndex?.(Je=>Je.id===O);if(BA==-1){const Je={id:O,content:N.data?.details?.input?.text||"",role:Fe.ASSISTANT,tool_keys:[fA],isResponseFromTool:!0,isStored:!1,...je?{userHint:je}:{}};return[...ce,Je]}else{const Je={...ce[BA],isResponseFromTool:!0,tool_keys:[...new Set([...ce[BA].tool_keys||[],fA])],...je?{userHint:je}:{}};ce[BA]=Je,tA(y,O,Je)}return[...ce]});const po=N?.data?.details?._meta?.disp_message,hl=CA.getState().elicitationState;if((!hl[fA]?.active||hl[fA]?.send_to_llm)&&(po||Object.keys(HA||{}).length))try{Te({message:po||"",tool_result:HA,toolCalled:!0,tool_key:fA})}catch{}}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,U=>{U?.reason!==P.DisconnectionReason.CLIENT_CLOSED&&(u.current<2?(V($A.NOT_CONNECTED),u.current=u.current+1,z(!0),T({title:"Something went wrong!",description:"Please try again."})):(V($A.NOT_CONNECTED),T({title:"Something went wrong!",description:"Please start a new Chat."}),D(!0)))}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.ERROR,U=>{switch(U?.data?.code){case P.SYNAPSE_REALTIME_ERROR_CODES.SESSION_INACTIVE:T({title:"Session not found",description:"Please start a new session"}),D(!0),rA(NA.IDLE);return;case P.SYNAPSE_REALTIME_ERROR_CODES.SESSION_TOKEN_MISMATCH:T({title:"Session not found",description:"Please start a new chat from onError callback"}),D(!0),rA(NA.IDLE);return;case P.SYNAPSE_REALTIME_ERROR_CODES.INVALID_EVENT:return;case P.SYNAPSE_REALTIME_ERROR_CODES.INVALID_CONTENT_TYPE:return;case P.SYNAPSE_REALTIME_ERROR_CODES.PARSING_ERROR:if(u.current<1){u.current++,vr();return}T({title:"Error parsing request",description:"please try again"}),z(!0),rA(NA.IDLE);return;case P.SYNAPSE_REALTIME_ERROR_CODES.TIMEOUT:T({title:"Request timed out",description:"please try again"}),z(!0),rA(NA.IDLE);return;case P.SYNAPSE_REALTIME_ERROR_CODES.PROMPT_FETCH_ERROR:T({title:"Something went wrong",description:"please try again"}),z(!0),rA(NA.IDLE);return;case P.SYNAPSE_REALTIME_ERROR_CODES.INVALID_FILE_REQUEST:T({title:"Something went wrong",description:"please try again"}),z(!0),rA(NA.IDLE);return;case P.SYNAPSE_REALTIME_ERROR_CODES.SERVER_ERROR:T({title:"Something went wrong",description:"please try again"}),z(!0),rA(NA.IDLE);return;default:T({title:"Something went wrong",description:"please try again"}),z(!0),rA(NA.IDLE);return}}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,async U=>{const N=U;N?.data?.text&&(s(O=>[...O,{id:Date.now().toString(),content:N.data.text||"",role:Fe.USER,timestamp:tr(Date.now()),isStored:!0}]),rA(NA.IDLE)),cA(!1),v(!1),eA(null)}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,U=>{_.current=!0;const N=U;N.data?.text&&(v(!1),eA(N.data.text))}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.TOOL_START,U=>{_.current=!0;const N=U;if(N.data?.name&&N.messageId){const O=N.messageId;s(X=>{const sA=X[X.length-1];if(sA&&sA.id===O&&sA.role===Fe.ASSISTANT){const fA=[...X];return fA[fA.length-1]={...sA,toolCallStatus:`Calling tool: ${N.data.name}...`},y&&tA(y,O,{toolCallStatus:`Calling tool: ${N.data.name}...`}),fA}return X})}}),w.current?.on(P.SYNAPSE_REALTIME_EVENTS.TOOL_END,U=>{_.current=!0;const N=U;if(N.data?.name&&N.messageId){const O=N.messageId;s(X=>{const sA=X[X.length-1];if(sA&&sA.id===O&&sA.role===Fe.ASSISTANT){const fA=[...X];return fA[fA.length-1]={...sA,toolCallStatus:"Tool call completed."},y&&tA(y,O,{toolCallStatus:"Tool call completed."}),fA}return X})}})},Te=async({message:U,files:N,audio:O,toolCalled:X,selectedComponent:sA,resend:fA,tool_declined:TA,tool_result:PA,tool_key:ZA})=>{const HA=CA.getState().elicitationState,gA=Object.values(HA).some(aA=>aA.active);if(!(!X&&N&&N.length===0&&U?.trim()===""&&!O?.audio&&!sA&&!gA&&!PA&&!Object.keys(PA||{}).length)){if(N&&N.length>3){T({title:"Maximum 3 files are allowed to be sent at a time",description:"Please try again"});return}if(N&&N.length>0&&N.reduce((aA,JA)=>aA+JA.size,0)>10*1024*1024){T({title:"Total file size limit of 10MB exceeded",description:"Please reduce the size of the files or try again with less files"});return}if(N&&N.length>0&&N.length+S>vs){const aA=vs-S;T({title:`You can only upload up to ${vs} files per session`,description:`${aA<=0?"Maximum file upload limit reached":`You have ${aA} file${aA===1?"":"s"} upload${aA===1?"":"s"} left`}`});return}else N&&N.length&&DA(S+N.length);T(null),z(!1),RA()&&V($A.CONNECTED);try{const aA=o.length==2&&g.length==2?g:null;let JA=null;const ut=o.length-1,je=ut>=0?o[ut]:null,po=je?je?.isResponseFromTool:null,ce=CA.getState().elicitationState,Ee=ZA||null,BA=Ee?ce[Ee]:void 0,Ln=BA?.component===P.SYNAPSE_COMPONENTS.DOCTOR_CARD||BA?.component===P.SYNAPSE_COMPONENTS.CARD?!!BA&&!PA&&!!BA.active:!!BA?.active,Wt=!!(N||[]).length||!!O?.audio||!!TA||!Ln||!X,br=sA?sA.label:void 0,up=BA?.component===P.SYNAPSE_COMPONENTS.PILL&&typeof br=="string"?br:null;if(!Wt&&Ln&&Ee&&BA?.messageId){const ae=BA.toolSelectionNames?.length?BA.toolSelectionNames:BA.required?.filter(KA=>!BA.server_input?.[KA])??[],Ne=ae.reduce((KA,LA)=>{if(sA){const Mn=sA[LA];Mn!==void 0&&(KA[LA]=Mn)}else ae.length===1&&(KA[LA]=U);return KA},{}),mo=BA.mcp_meta_fields?.reduce((KA,LA)=>(ae.includes(LA)?KA[LA]=Ne[LA]:BA.server_input?.[LA]&&(KA[LA]=BA.server_input[LA]),fA&&!KA.is_resend&&(KA.is_resend=fA),KA),{}),AS=Object.keys(BA.server_input||{})?.reduce((KA,LA)=>{const Mn=!Object.keys(mo||{})?.includes(LA),dp=!!BA.server_input?.[LA];return(fA?Mn&&dp:Mn&&BA.required?.includes(LA)&&dp)&&(KA[LA]=BA.server_input?.[LA]),KA},{}),eS=fA?{}:(BA.required||ae).reduce((KA,LA)=>(Object.keys(mo||{}).includes(LA)||(Ne[LA]!==void 0?KA[LA]=Ne[LA]:sA&&sA[LA]!==void 0&&(KA[LA]=sA[LA])),KA),{}),gl={...AS||{},...eS,...Object.keys(mo||{}).length&&{mcp_meta_fields:mo}};if(!Object.keys(gl).length)return;await UA(Ee,{...BA,server_input:{...BA.server_input||{},...gl}});try{await zt(BA.tool_id,BA.messageId,gl),JA=!0}catch(KA){await w.current?.sendMessage({tool_result:{...BA.tool_result,error:`Tool call failed: ${Ct(KA)}`}}),UA(Ee,{...BA,active:!1,disabled:!0,response_value:{label:`Tool call failed: ${Ct(KA)}`}})}}else{const ae=BA?.active,Ne=PA??BA?.tool_result;await w.current?.sendMessage({message:U,files:N,audio:O,...aA&&{initial_prompts:aA},...TA||po&&!X||ae?{tool_id:BA?.tool_id||""}:{},...Ne&&{tool_result:Ne}})}(U||N&&N.length>0||O?.audio)&&(s(ae=>{if(JA)return ae;const Ne=ae.length===0&&I?.text?[{id:"initial-bot-message",content:I.text,role:Fe.ASSISTANT,timestamp:tr(Date.now()),isStored:!1}]:[];return[...ae,...Ne,{id:Date.now().toString(),content:up||U||"",files:N||[],audio:O,role:Fe.USER,timestamp:tr(Date.now()),isStored:!1}]}),JA||v(!0),JA=null);const Zx=CA.getState().elicitationState,Bo=new Set;Ee&&Bo.add(Ee),Ee&&Bo.add(Ee),je?.tool_keys?.forEach(ae=>Bo.add(ae)),Bo.forEach(ae=>{const Ne=Zx[ae];Ne&&UA(ae,{...Ne,...Wt&&{active:!1,disabled:!0},...ae===Ee?{response_value:{...Ne?.response_value||{},label:up||U||""}}:{}})})}catch{}}},Gt=U=>U.type.toLowerCase()&&!["application/pdf","image/jpeg","image/jpg","image/png"].includes(U.type)?(T({title:`File type not supported: ${U.name}`,description:"Only PDF, images (JPG, JPEG, PNG) are allowed."}),!1):U.size>3*1024*1024?(T({title:"File size limit of 3MB exceeded",description:"Please reduce the size of the file or try again with a smaller file"}),!1):!0,ct=async()=>{try{await w.current?.startRecording({onChunks:async U=>{rA(NA.PROCESSING),await Te({audio:U}),rA(NA.TRANSCRIBING)},onError(U){rA(NA.IDLE)}}),rA(NA.LISTENING)}catch(U){throw rA(NA.IDLE),U}},De=()=>{w.current?.endRecording()},zt=async(U,N,O)=>{try{if(!RA())throw new Error("Not connected to the server");await w.current?.callTool(U,N,O)}catch(X){throw X}},Hn=async()=>{jA(),await B(),await re(!0)},vr=async()=>{if(RA()){V($A.CONNECTED);const U=a.current[a.current.length-1];if(U&&U.role===Fe.USER)try{w.current?.sendMessage({message:U.content,files:U.files||[],messageId:U.id,audio:U.audio})}catch{}}else if(V($A.NOT_CONNECTED),u.current<2){u.current++;const{sessionId:U,sessionToken:N}=CA.getState();await EA(U,N)}else u.current===2?(u.current++,z(!0),T({title:"Trying to connect..."})):(T({title:"Something went wrong!",description:"Please start a new chat."}),D(!0))};return{sendMessage:Te,startSession:re,incomingMessages:o,loading:l,endSession:se,isReady:h,startRecording:ct,stopRecording:De,handleRetry:vr,isValidFile:Gt,handleStartNewConnection:Hn,callTool:zt,handleInitialTaskClick:async U=>{if(!I?.suggestions?.length||!U)return;const N=I.suggestions.find(O=>O.value===U);if(!N||!N.response){await Te({message:U});return}s(O=>[...O,{id:Date.now().toString(),content:U,role:Fe.USER,timestamp:tr(Date.now()),isStored:!1}]),v(!0),await pm(1e3),v(!1),s(O=>[...O,{id:Date.now().toString(),content:N.response||"Please try again",role:Fe.ASSISTANT,timestamp:tr(Date.now()),isStored:!1}]),p([{role:"user",text:U},{role:"assistant",text:N.response}])},handleToggleFeedback:async(U,N,O)=>{if(RA())try{await w.current?.sendFeedback(N,U,O)}catch{}},clearElicitationState:async(U,N)=>{const O=CA.getState().elicitationState,X=U?O[U]:void 0;try{await Te({message:N||"User aborted elicitation",tool_declined:!0,tool_result:X?.tool_result,tool_key:U})}catch{}finally{U&&X&&UA(U,{...X,active:!1,disabled:!0})}}}},yv=32,Ev=100,vv=320;function bv(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Qv({messageCount:A,isStreaming:e,isFirstMessage:t,resolvedMode:r}){const n=Z(null),i=Z(null),[o,s]=G(!1),a=Z(null),l=Z(!1),d=Z("auto"),u=Z(!0),h=mA(()=>n.current?.querySelector("[data-radix-scroll-area-viewport]")||null,[]),f=mA(w=>bv()?"auto":w,[]),g=mA(w=>{const m=h();m&&(m.scrollTo({top:m.scrollHeight,behavior:f(w)}),s(!1))},[h,f]),p=mA(w=>{l.current=!0,d.current=w,a.current===null&&(a.current=requestAnimationFrame(()=>{a.current=null,l.current&&(l.current=!1,g(d.current))}))},[g]);return j(()=>()=>{a.current!==null&&(cancelAnimationFrame(a.current),a.current=null),l.current=!1},[]),j(()=>{if(!A)return;p(e||t?"auto":"smooth")},[A,e,t,p]),j(()=>{if(!A||!u.current)return;const w=setTimeout(()=>p("auto"),vv);return()=>clearTimeout(w)},[r,A,p]),j(()=>{let w=!1,m=null,C=null,b=0;const _=()=>{if(w)return;const x=h(),F=i.current?.parentElement;if(!x||!F){requestAnimationFrame(_);return}const Q=()=>{const{scrollTop:k,scrollHeight:S,clientHeight:L}=x;return S-k-L<=yv};u.current=!0;let E=0;const I=()=>{if(E>0){E--;return}u.current=Q()};x.addEventListener("scroll",I,{passive:!0}),C=()=>x.removeEventListener("scroll",I),m=new ResizeObserver(()=>{if(!u.current)return;const k=Date.now();k-b<Ev||(b=k,E++,p("auto"))}),m.observe(F)};return _(),()=>{w=!0,m?.disconnect(),C?.()}},[h,p]),{scrollAreaRef:n,messagesEndRef:i,showScrollButton:o,scrollToBottom:g,scheduleScrollToBottom:p}}function Fv({isOpen:A,agentId:e,config:t}){const{state:r,isMuted:n,connect:i,disconnect:o,reset:s,toggleMute:a}=l0(),l=()=>{r===P.VOICE_AGENT_STATE.IDLE&&i()},d=r!==P.VOICE_AGENT_STATE.IDLE,[u,h]=G(""),[f,g]=G(!1),p=CA(gA=>gA.setDisplayMode),[w,m]=G(t.displayMode==="full"?"full":"widget"),C=()=>m(gA=>gA==="full"?"widget":"full"),_=wd()?"mobile":w,[x,y]=G([]),F=Z(!1),[Q,E]=G(!1),I=Z(null),{setAgentId:k,startNewConnection:S,showRetryButton:L,clearError:M,error:T,connectionStatus:V,recordingStatus:z,isWaitingForResponse:D,isStreaming:cA,setError:v,sessionId:eA,setContext:rA,initialMessage:B,setInitialMessage:J,setInitialDisplayMode:AA}=CA(),tA=CA(gA=>gA.elicitationState),{incomingMessages:nA,loading:DA,sendMessage:OA,startSession:UA,isReady:EA,startRecording:re,stopRecording:RA,handleRetry:se,isValidFile:jA,handleToggleFeedback:lt,clearElicitationState:Te}=Cv({environment:t.environment,connectionType:t.connectionType,baseUrl:t.baseUrl?t.baseUrl:void 0,context:t?.context,...t?.auth&&{auth:t.auth},...t?.authToken&&{authToken:t.authToken}});j(()=>{e&&(I.current!==e&&(n0(e),i0(e),k(e),(t.displayMode==="full"||t.displayMode==="widget")&&(p(t.displayMode),AA(t.displayMode)),t?.context&&Object.keys(t?.context||{}).length&&rA(t.context),(t?.initialMessage?.text||t?.initialMessage?.suggestions?.length)&&J(t.initialMessage),I.current=e),A&&EA&&!F.current&&(F.current=!0,UA(!1)))},[A,EA,e]),j(()=>()=>{o()},[]);const Gt=nA.length>0,ct=nA.length===1,De=yA(()=>{const gA=nA[nA.length-1],aA=gA?.tool_keys?.[gA.tool_keys.length-1];if(!aA)return null;const JA=tA[aA];return JA?.active?{...JA,tool_key:aA}:null},[nA,tA]),zt=yA(()=>{const gA=t?.initialMessage;return!!gA?.text||!!gA?.suggestions?.length},[t?.initialMessage]),Hn=yA(()=>zt&&nA?.length===0,[nA,zt]),vr=yA(()=>De?De.component===P.SYNAPSE_COMPONENTS.MOBILE||De.component===P.SYNAPSE_COMPONENTS.OTP||De.component===P.SYNAPSE_COMPONENTS.EMAIL:!1,[De]),{scrollAreaRef:ho,messagesEndRef:go,showScrollButton:H,scrollToBottom:U}=Qv({messageCount:nA.length,isStreaming:cA,isFirstMessage:ct,resolvedMode:_}),N=V===P.ConnectionStatus.CONNECTED,O=D||cA,X=yA(()=>z===NA.IDLE?null:z===NA.LISTENING?"Listening...":z===NA.PROCESSING?"Processing...":z===NA.TRANSCRIBING?"Transcribing...":null,[z]),sA=X&&z!==NA.IDLE?X:D||cA?"Please wait for the response...":"Type a reply…",fA=async gA=>{if(O)return;const aA=gA?.message??u;(aA.trim()||f||Q||gA?.resend)&&(x.length>0?(await OA({files:x,message:aA.trim()}),y([]),E(!1)):aA.trim()?await OA({...gA,message:aA.trim()}):gA?.resend&&await OA(gA),h(""),g(!1),E(!1))},TA=gA=>{if(gA&&gA.length>0){const aA=gA.filter(JA=>!!jA(JA));if(aA?.length+x.length>3){v({title:"You can only upload up to 3 files at a time",description:"Please remove some files and try again."});return}if(aA?.length>0&&aA.reduce((JA,ut)=>JA+ut.size,0)>10*1024*1024){v({title:`Total file size limit of ${U0} MB exceeded`,description:"Please reduce the size of the files or try again with less files"});return}if(aA?.length>0)gA=aA;else return}y(aA=>(E((aA?.length??0)+(gA?.length??0)>0),[...aA,...gA]))},PA=gA=>{y(aA=>{const JA=aA.filter((ut,je)=>je!==gA);return E(JA.length>0),JA})},ZA=async()=>{if(f)await RA(),g(!1);else{if(O)return;try{await re(),g(!0)}catch{}}},HA={value:u,onChange:h,onSend:fA,onFileChange:TA,onRemoveFile:PA,onRecording:ZA,isRecording:f,hasAttachment:Q,attachmentFiles:x,isDisabled:O,placeholder:sA,recordingStatus:z,allowed:t.allowed,isVoiceAgentActive:d,handleVoiceMode:l};return{inputValue:u,setInputValue:h,isRecording:f,hasAttachment:Q,attachmentFiles:x,showScrollButton:H,displayMode:w,setDisplayMode:m,toggleDisplayMode:C,resolvedMode:_,currentDisplayMode:w,setCurrentDisplayMode:m,scrollAreaRef:ho,messagesEndRef:go,startNewConnection:S,showRetryButton:L,clearError:M,error:T,connectionStatus:V,isStreaming:cA,sessionId:eA,activeElicitation:De,inConversation:Gt,isFirstMessage:ct,isEmptyChat:Hn,isAuthComponent:vr,isConnected:N,isComposerDisabled:O,loading:DA,initialMessage:B,incomingMessages:nA,sendMessage:OA,startSession:UA,handleToggleFeedback:lt,clearElicitationState:Te,handleRetry:se,handleSendMessage:fA,handleFileChange:TA,handleRemoveFile:PA,handleRecording:ZA,scrollToBottom:U,chatComposerProps:HA,voiceAgentState:r,isMuted:n,isVoiceAgentActive:d,connectVoiceAgent:i,disconnectVoiceAgent:o,resetVoiceAgent:s,toggleMute:a,handleVoiceAgentClick:l}}const Uv=He(()=>Promise.resolve().then(()=>Qb)),Xf=He(()=>Promise.resolve().then(()=>Ub).then(A=>({default:A.ConnectionStatus})));function xv({isOpen:A,agentId:e,config:t}){const{toggleDisplayMode:r,resolvedMode:n,scrollAreaRef:i,messagesEndRef:o,showScrollButton:s,startNewConnection:a,showRetryButton:l,clearError:d,error:u,sessionId:h,activeElicitation:f,isAuthComponent:g,isConnected:p,loading:w,inConversation:m,isFirstMessage:C,isEmptyChat:b,incomingMessages:_,sendMessage:x,startSession:y,handleToggleFeedback:F,clearElicitationState:Q,handleRetry:E,scrollToBottom:I,chatComposerProps:k,isComposerDisabled:S,voiceAgentState:L,isMuted:M,isVoiceAgentActive:T,disconnectVoiceAgent:V,resetVoiceAgent:z,toggleMute:D}=Fv({isOpen:A,agentId:e,config:t});return j(()=>{_.length||I("auto")},[_.length,I]),c(v0,{enabled:!!t.resize,children:c(Ed,{isOpen:A,onClose:t.onClose,showCloseButton:t.showCloseButton,title:t.title,showStartNewChatButton:a,titleImg:t.theme?.titleImg,tagline:t.theme?.tagline,iconUrl:t.iconUrl,onStartNewSession:()=>y(!0),sessionId:h,environment:t.environment,mode:n,onToggleDisplayMode:t.resize?r:void 0,theme:t.theme,hideWatermark:t.hideWatermark,isAuthComponent:g,activeElicitation:f,voiceAgentState:L,chatComposer:k,fullScreenEmptyState:b?cA=>c(X0,{title:t.title,description:t?.initialMessage?.text,suggestions:t?.initialMessage?.suggestions,onSendMessage:x,disabled:S,composer:cA.composer,composerFooter:cA.composerFooter,connectionBanner:c(Xf,{onRetry:E,showRetryButton:l,startNewConnection:a,clearError:d,error:u,isConnected:p})}):void 0,children:T?c(z0,{state:L,isMuted:M,onEndCall:V,onClose:z,onToggleMute:D,agentName:t.title,iconUrl:t.iconUrl,textColor:t.theme?.textColor}):c(ue,{fallback:c(Sv,{}),children:c("div",{className:K("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"),children:[c("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden",children:[c(Mu,{ref:i,className:"flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",children:[c("div",{className:"flex-1"}),c("div",{className:K("transition-all duration-300 min-w-0 overflow-x-hidden",m?"pt-4 px-4 space-y-3":"pt-4 px-4 space-y-4",n==="full"&&"max-w-2xl mx-auto w-full"),children:[C&&c("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center mb-2",children:"Just now"}),!C&&c("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center",children:new Date().toLocaleString("en-US",{weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!0})}),c(fv,{messages:_,onSendMessage:x,iconUrl:t.iconUrl,onToggleFeedback:F,onClearElicitationState:Q,isAuthComponent:g,isFullScreen:n==="full",initialMessage:t.initialMessage,disabled:!p||w}),c("div",{ref:o})]})]}),c(ue,{fallback:null,children:c(Uv,{})})]}),s&&c("div",{className:"absolute bottom-[10px] left-1/2 transform -translate-x-1/2 z-10",children:c(uA,{onClick:()=>I("smooth"),size:"icon",className:"h-10 w-10 rounded-full bg-surface/90 backdrop-blur-sm shadow-lg border border-border-subtle hover:bg-surface hover:shadow-xl transition-all duration-200",children:c(rr,{className:"w-5 h-5 text-text-primary"})})}),c(Xf,{className:"mt-2",onRetry:E,showRetryButton:l,startNewConnection:a,clearError:d,error:u,isConnected:p})]})})})})}function Sv(){return c("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse",children:[c("div",{className:"flex-1 p-6 space-y-4",children:[c("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),c("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),c("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"})]}),c("div",{className:"h-24 border-t border-border-subtle bg-surface/80"})]})}function ua(A){if(A instanceof Error)return A;if(typeof A=="string")return new Error(A);try{return new Error(JSON.stringify(A))}catch{return new Error("Unknown error")}}class _v extends ve{state={error:null};static getDerivedStateFromError(e){return{error:ua(e)}}componentDidCatch(e,t){this.setState({componentStack:t?.componentStack})}render(){return this.state.error?c(Nv,{error:this.state.error,componentStack:this.state.componentStack,title:this.props.title,titleImg:this.props.titleImg,iconUrl:this.props.iconUrl,onClose:this.props.onClose,showCloseButton:this.props.showCloseButton,environment:this.props.environment,displayMode:this.props.displayMode,theme:this.props.theme}):this.props.children}}function Iv({error:A}){throw A}function Tv(A){const[e,t]=G(null);return j(()=>{if(typeof window>"u")return;const r=i=>{!i?.error&&!i?.filename&&i?.message==="Script error."||(i?.error?t(ua(i.error)):i?.message&&t(new Error(i.message)))},n=i=>{t(ua(i.reason))};return window.addEventListener("error",r),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",n)}},[]),c(_v,{...A,children:e?c(Iv,{error:e}):A.children})}function Nv({error:A,title:e,titleImg:t,iconUrl:r,onClose:n,showCloseButton:i,environment:o,displayMode:s,theme:a}){const l=()=>{typeof window<"u"&&window.location.reload()},d=e??"Medi Clinic",u=o??"production",h=yA(()=>a?.textColor==="white"?"text-white/60":"text-[var(--color-muted-foreground)]",[a?.textColor]);return c(Ed,{isOpen:!0,onClose:n??(()=>{}),showCloseButton:i??!1,onStartNewSession:l,title:d,titleImg:t,iconUrl:r,environment:u,mode:s??"widget",theme:a,children:c("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:c("div",{className:"flex-1 min-h-0 flex items-center justify-center p-6",children:c("div",{className:"w-full max-w-[320px] text-center",children:[c("div",{className:"mx-auto mb-4 grid place-items-center",children:c("div",{className:"h-16 w-16 rounded-3xl bg-surface backdrop-blur border border-border-subtle grid place-items-center",children:c($m,{className:"h-8 w-8",style:{color:a?.primary??"hsl(var(--primary))"}})})}),c("div",{className:"text-2xl font-semibold text-text-primary",children:"Uh-oh!"}),c("div",{className:["mt-2 text-sm",h].join(" "),children:"Something went wrong. Please try again."}),c("div",{className:["mt-4 rounded-2xl border border-border-subtle/60 bg-surface/60 backdrop-blur px-4 py-3","text-left text-[11px] leading-relaxed font-mono whitespace-pre-wrap break-words",h].join(" "),children:A?.message||String(A)}),c("div",{className:"mt-5 flex items-center justify-center gap-3",children:c(uA,{type:"button",onClick:l,className:"rounded-2xl",style:{backgroundColor:a?.primary??void 0},children:[c(jm,{className:"h-4 w-4 mr-2"}),"Retry"]})})]})})})})}function kv({agentId:A,config:e}){const[t,r]=G(!1);j(()=>{r(!0)},[]);const n=()=>{r(!1),e?.onClose?.()};return c(Tv,{title:e.title??"Medi Clinic",titleImg:e.theme?.titleImg,iconUrl:e.iconUrl??"https://cdn.eka.care/bot-icon.svg",onClose:n,showCloseButton:e.showCloseButton,environment:e.environment??"production",displayMode:e.displayMode,theme:e.theme,children:c(o0,{children:c(xv,{isOpen:t,agentId:A,config:{...e,environment:e.environment??"production",onClose:n,title:e.title??"Medi Clinic",iconUrl:e.iconUrl??"https://cdn.eka.care/bot-icon.svg",theme:e.theme}})})})}const Yf=(A,e,t)=>{const r=t||{},n=Hp(A);return n.render(c(QA,{children:c(kv,{agentId:e,config:r})})),n};typeof window<"u"&&(window.renderMedAssist=Yf);const da=oA(({className:A,...e},t)=>c("textarea",{className:K("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",A),ref:t,...e}));da.displayName="Textarea";const fn=({className:A})=>c("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:c("path",{d:"M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z",fill:"currentColor"})}),fa=oA(({className:A,type:e,...t},r)=>{const n=A&&typeof A=="string"&&A.includes("placeholder:");return c("input",{type:e,className:K("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",!n&&"placeholder:text-muted-foreground",A),ref:r,...t})});fa.displayName="Input";const Hv=()=>c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block"},"aria-hidden":"true",children:[c("g",{clipPath:"url(#circleClip)",children:c("g",{children:[c("path",{d:"M15.9766 0.0234375V5.31055H0.0234375V0.0234375H15.9766Z",fill:"#FF9933",stroke:"#1A1A1A","stroke-width":"0.046875"}),c("path",{d:"M15.9766 5.35779V10.642H0.0234375V5.35779H15.9766Z",fill:"white",stroke:"#1A1A1A","stroke-width":"0.046875"}),c("path",{d:"M0 10.6656H16V16H0V10.6656Z",fill:"#128807"}),c("path",{d:"M8.00101 10.1334C9.17921 10.1334 10.1343 9.17824 10.1343 8.00003C10.1343 6.82182 9.17921 5.8667 8.00101 5.8667C6.8228 5.8667 5.86768 6.82182 5.86768 8.00003C5.86768 9.17824 6.8228 10.1334 8.00101 10.1334Z",fill:"#000088"}),c("path",{d:"M8.00143 9.86663C9.03236 9.86663 9.8681 9.0309 9.8681 7.99997C9.8681 6.96904 9.03236 6.1333 8.00143 6.1333C6.9705 6.1333 6.13477 6.96904 6.13477 7.99997C6.13477 9.0309 6.9705 9.86663 8.00143 9.86663Z",fill:"white"}),c("path",{d:"M8.00126 8.37325C8.20745 8.37325 8.3746 8.20611 8.3746 7.99992C8.3746 7.79373 8.20745 7.62659 8.00126 7.62659C7.79508 7.62659 7.62793 7.79373 7.62793 7.99992C7.62793 8.20611 7.79508 8.37325 8.00126 8.37325Z",fill:"#000088"}),c("path",{d:"M9.84014 8.33936C9.8927 8.34628 9.94093 8.30928 9.94785 8.25671C9.95477 8.20415 9.91776 8.15593 9.8652 8.14901C9.81263 8.14208 9.76441 8.17909 9.75749 8.23165C9.75057 8.28422 9.78757 8.33244 9.84014 8.33936Z",fill:"#000088"}),c("path",{d:"M8.00199 9.86647L8.06599 8.74647L8.00199 8.21313L7.93799 8.74647L8.00199 9.86647Z",fill:"#000088"}),c("path",{d:"M9.69246 8.8036C9.74145 8.82389 9.7976 8.80063 9.81789 8.75165C9.83818 8.70266 9.81492 8.6465 9.76594 8.62622C9.71696 8.60593 9.6608 8.62919 9.64051 8.67817C9.62022 8.72715 9.64348 8.78331 9.69246 8.8036Z",fill:"#000088"}),c("path",{d:"M7.52209 9.80289L7.87379 8.73762L7.95 8.2059L7.75015 8.70449L7.52209 9.80289Z",fill:"#000088"}),c("path",{d:"M9.4251 9.21296C9.46716 9.24524 9.52743 9.2373 9.5597 9.19524C9.59198 9.15318 9.58405 9.09291 9.54198 9.06064C9.49992 9.02836 9.43966 9.0363 9.40738 9.07836C9.3751 9.12042 9.38304 9.18069 9.4251 9.21296Z",fill:"#000088"}),c("path",{d:"M7.06958 9.61654L7.68501 8.67859L7.89625 8.18471L7.57415 8.61459L7.06958 9.61654Z",fill:"#000088"}),c("path",{d:"M9.06041 9.53972C9.09269 9.58179 9.15295 9.58972 9.19502 9.55744C9.23708 9.52517 9.24501 9.4649 9.21274 9.42284C9.18046 9.38078 9.1202 9.37284 9.07814 9.40512C9.03607 9.4374 9.02814 9.49766 9.06041 9.53972Z",fill:"#000088"}),c("path",{d:"M6.68086 9.31981L7.51807 8.5731L7.84994 8.15072L7.42756 8.48259L6.68086 9.31981Z",fill:"#000088"}),c("path",{d:"M8.6284 9.76153C8.64869 9.81052 8.70484 9.83378 8.75383 9.81349C8.80281 9.7932 8.82607 9.73704 8.80578 9.68806C8.78549 9.63907 8.72933 9.61581 8.68035 9.6361C8.63137 9.65639 8.60811 9.71255 8.6284 9.76153Z",fill:"#000088"}),c("path",{d:"M6.38679 8.93324L7.38874 8.42867L7.81862 8.10657L7.32474 8.31781L6.38679 8.93324Z",fill:"#000088"}),c("path",{d:"M8.14737 9.86316C8.15429 9.91573 8.20251 9.95273 8.25508 9.94581C8.30764 9.93889 8.34465 9.89066 8.33773 9.8381C8.33081 9.78553 8.28258 9.74853 8.23002 9.75545C8.17745 9.76237 8.14045 9.81059 8.14737 9.86316Z",fill:"#000088"}),c("path",{d:"M6.19642 8.4829L7.29482 8.25484L7.79342 8.05498L7.2617 8.1312L6.19642 8.4829Z",fill:"#000088"}),c("path",{d:"M7.66381 9.83806C7.65689 9.89063 7.69389 9.93885 7.74646 9.94577C7.79903 9.95269 7.84725 9.91569 7.85417 9.86312C7.86109 9.81056 7.82409 9.76233 7.77152 9.75541C7.71895 9.74849 7.67073 9.7855 7.66381 9.83806Z",fill:"#000088"}),c("path",{d:"M6.13671 7.99991L7.25671 8.06391L7.79004 7.99991L7.25671 7.93591L6.13671 7.99991Z",fill:"#000088"}),c("path",{d:"M7.20092 9.68758C7.18063 9.73656 7.20389 9.79272 7.25287 9.81301C7.30185 9.8333 7.35801 9.81004 7.3783 9.76106C7.39859 9.71207 7.37533 9.65592 7.32635 9.63563C7.27736 9.61534 7.22121 9.6386 7.20092 9.68758Z",fill:"#000088"}),c("path",{d:"M6.20138 7.51684L7.26665 7.86854L7.79838 7.94475L7.29978 7.7449L6.20138 7.51684Z",fill:"#000088"}),c("path",{d:"M6.79363 9.42217C6.76135 9.46423 6.76929 9.5245 6.81135 9.55677C6.85341 9.58905 6.91368 9.58112 6.94595 9.53905C6.97823 9.49699 6.9703 9.43673 6.92823 9.40445C6.88617 9.37217 6.82591 9.38011 6.79363 9.42217Z",fill:"#000088"}),c("path",{d:"M6.39018 7.06677L7.32812 7.6822L7.822 7.89344L7.39212 7.57135L6.39018 7.06677Z",fill:"#000088"}),c("path",{d:"M6.46467 9.05968C6.42261 9.09196 6.41467 9.15222 6.44695 9.19428C6.47923 9.23635 6.53949 9.24428 6.58155 9.21201C6.62362 9.17973 6.63155 9.11947 6.59927 9.0774C6.567 9.03534 6.50673 9.02741 6.46467 9.05968Z",fill:"#000088"}),c("path",{d:"M6.68459 6.68013L7.43129 7.51734L7.85367 7.84921L7.5218 7.42683L6.68459 6.68013Z",fill:"#000088"}),c("path",{d:"M6.24115 8.6251C6.19217 8.64539 6.16891 8.70155 6.1892 8.75053C6.20949 8.79951 6.26564 8.82277 6.31463 8.80248C6.36361 8.7822 6.38687 8.72604 6.36658 8.67705C6.34629 8.62807 6.29014 8.60481 6.24115 8.6251Z",fill:"#000088"}),c("path",{d:"M7.06908 6.38338L7.57365 7.38532L7.89575 7.8152L7.68451 7.32132L7.06908 6.38338Z",fill:"#000088"}),c("path",{d:"M6.14294 8.14786C6.09038 8.15478 6.05338 8.203 6.0603 8.25557C6.06722 8.30813 6.11544 8.34513 6.168 8.33821C6.22057 8.33129 6.25757 8.28307 6.25065 8.2305C6.24373 8.17794 6.19551 8.14094 6.14294 8.14786Z",fill:"#000088"}),c("path",{d:"M7.52345 6.19703L7.75151 7.29543L7.95136 7.79403L7.87515 7.26231L7.52345 6.19703Z",fill:"#000088"}),c("path",{d:"M6.17061 7.66052C6.11804 7.6536 6.06982 7.6906 6.0629 7.74316C6.05598 7.79573 6.09298 7.84395 6.14554 7.85087C6.19811 7.85779 6.24633 7.82079 6.25325 7.76822C6.26017 7.71566 6.22317 7.66744 6.17061 7.66052Z",fill:"#000088"}),c("path",{d:"M8.00875 6.13341L7.94475 7.25341L8.00875 7.78674L8.07275 7.25341L8.00875 6.13341Z",fill:"#000088"}),c("path",{d:"M6.32316 7.19628C6.27418 7.17599 6.21802 7.19925 6.19773 7.24823C6.17744 7.29722 6.2007 7.35337 6.24969 7.37366C6.29867 7.39395 6.35483 7.37069 6.37512 7.32171C6.39541 7.27272 6.37215 7.21657 6.32316 7.19628Z",fill:"#000088"}),c("path",{d:"M8.49354 6.19699L8.14184 7.26226L8.06562 7.79398L8.26548 7.29539L8.49354 6.19699Z",fill:"#000088"}),c("path",{d:"M6.58174 6.78692C6.53967 6.75464 6.47941 6.76257 6.44713 6.80464C6.41486 6.8467 6.42279 6.90696 6.46485 6.93924C6.50692 6.97152 6.56718 6.96358 6.59946 6.92152C6.63173 6.87946 6.6238 6.81919 6.58174 6.78692Z",fill:"#000088"}),c("path",{d:"M8.93726 6.38334L8.32183 7.32129L8.11059 7.81517L8.43268 7.38529L8.93726 6.38334Z",fill:"#000088"}),c("path",{d:"M6.94642 6.46015C6.91415 6.41809 6.85388 6.41016 6.81182 6.44243C6.76976 6.47471 6.76182 6.53497 6.7941 6.57704C6.82637 6.6191 6.88664 6.62703 6.9287 6.59476C6.97076 6.56248 6.9787 6.50222 6.94642 6.46015Z",fill:"#000088"}),c("path",{d:"M9.32598 6.68007L8.48876 7.42678L8.15689 7.84915L8.57927 7.51729L9.32598 6.68007Z",fill:"#000088"}),c("path",{d:"M7.37649 6.23847C7.3562 6.18948 7.30004 6.16622 7.25106 6.18651C7.20207 6.2068 7.17881 6.26296 7.1991 6.31194C7.21939 6.36093 7.27555 6.38419 7.32453 6.3639C7.37352 6.34361 7.39678 6.28745 7.37649 6.23847Z",fill:"#000088"}),c("path",{d:"M9.61809 7.06676L8.61614 7.57133L8.18626 7.89343L8.68014 7.68219L9.61809 7.06676Z",fill:"#000088"}),c("path",{d:"M7.85751 6.13684C7.85059 6.08427 7.80237 6.04727 7.74981 6.05419C7.69724 6.06111 7.66024 6.10934 7.66716 6.1619C7.67408 6.21447 7.7223 6.25147 7.77487 6.24455C7.82743 6.23763 7.86443 6.18941 7.85751 6.13684Z",fill:"#000088"}),c("path",{d:"M9.80846 7.5171L8.71006 7.74516L8.21146 7.94502L8.74319 7.8688L9.80846 7.5171Z",fill:"#000088"}),c("path",{d:"M8.34302 6.16194C8.34994 6.10937 8.31294 6.06115 8.26038 6.05423C8.20781 6.04731 8.15959 6.08431 8.15267 6.13688C8.14575 6.18944 8.18275 6.23767 8.23532 6.24459C8.28788 6.25151 8.3361 6.2145 8.34302 6.16194Z",fill:"#000088"}),c("path",{d:"M9.87013 8.00009L8.75013 7.93609L8.2168 8.00009L8.75013 8.06409L9.87013 8.00009Z",fill:"#000088"}),c("path",{d:"M8.80592 6.31242C8.82621 6.26344 8.80295 6.20728 8.75396 6.18699C8.70498 6.1667 8.64882 6.18996 8.62853 6.23894C8.60824 6.28793 8.63151 6.34408 8.68049 6.36437C8.72947 6.38466 8.78563 6.3614 8.80592 6.31242Z",fill:"#000088"}),c("path",{d:"M9.80545 8.48316L8.74018 8.13146L8.20846 8.05525L8.70705 8.2551L9.80545 8.48316Z",fill:"#000088"}),c("path",{d:"M9.21614 6.57795C9.24841 6.53589 9.24048 6.47562 9.19842 6.44335C9.15635 6.41107 9.09609 6.41901 9.06381 6.46107C9.03154 6.50313 9.03947 6.5634 9.08153 6.59567C9.1236 6.62795 9.18386 6.62001 9.21614 6.57795Z",fill:"#000088"}),c("path",{d:"M9.61959 8.93335L8.68164 8.31792L8.18776 8.10668L8.61764 8.42878L9.61959 8.93335Z",fill:"#000088"}),c("path",{d:"M9.53875 6.94044C9.58081 6.90816 9.58874 6.8479 9.55647 6.80584C9.52419 6.76377 9.46393 6.75584 9.42186 6.78812C9.3798 6.82039 9.37187 6.88066 9.40414 6.92272C9.43642 6.96478 9.49668 6.97272 9.53875 6.94044Z",fill:"#000088"}),c("path",{d:"M9.31883 9.31999L8.57213 8.48278L8.14975 8.15091L8.48162 8.57329L9.31883 9.31999Z",fill:"#000088"}),c("path",{d:"M9.76715 7.37502C9.81613 7.35473 9.83939 7.29858 9.8191 7.24959C9.79881 7.20061 9.74266 7.17735 9.69367 7.19764C9.64469 7.21793 9.62143 7.27408 9.64172 7.32307C9.66201 7.37205 9.71816 7.39531 9.76715 7.37502Z",fill:"#000088"}),c("path",{d:"M8.93922 9.61662L8.43465 8.61468L8.11255 8.1848L8.3238 8.67868L8.93922 9.61662Z",fill:"#000088"}),c("path",{d:"M9.86682 7.85227C9.91939 7.84534 9.95639 7.79712 9.94947 7.74456C9.94255 7.69199 9.89433 7.65499 9.84176 7.66191C9.78919 7.66883 9.75219 7.71705 9.75911 7.76962C9.76603 7.82218 9.81426 7.85919 9.86682 7.85227Z",fill:"#000088"}),c("path",{d:"M8.48631 9.80309L8.25826 8.70469L8.0584 8.20609L8.13462 8.73782L8.48631 9.80309Z",fill:"#000088"})]})}),c("defs",{children:c("clipPath",{id:"circleClip",children:c("circle",{cx:"8",cy:"8",r:"8"})})})]}),Lv="+91";function Mv(A){const e=A.replace(/\D/g,""),t=e.slice(0,5),r=e.slice(5,10);return r?`${t} ${r}`:t}function Ov({value:A,onChange:e,onKeyDown:t,disabled:r,theme:n,isMobile:i,maxLength:o,isMobileValid:s,onSend:a}){return c("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[c("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your mobile number"}),c("div",{className:"flex items-center gap-2 w-full",children:[c("div",{className:K("inline-flex items-center gap-2 rounded-full px-3 shrink-0 py-2 min-h-[56px]",r&&"opacity-60",n?.textColor==="white"?"bg-white-100":"bg-black-100"),style:{fontSize:i?"16px":"14px"},children:[c(Hv,{}),c("span",{className:"text-sm font-medium text-foreground",children:Lv}),c(rr,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})]}),c("div",{className:K("flex items-center gap-1 rounded-full px-2 py-2 flex-1 min-w-0",r&&"opacity-60",n?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[c(fa,{type:"tel",autoComplete:"tel-national",value:Mv(A),onChange:e,onKeyDown:t,placeholder:"88888 88888",className:K("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:i?"16px":"14px"},maxLength:o?o+1:void 0,inputMode:"numeric",autoFocus:!r,disabled:r}),c(uA,{type:"button",size:"icon",onClick:a,disabled:r||!s,variant:"ghost",className:`h-10 w-10 ${s?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:s?"Submit mobile number":"Enter a valid mobile number","aria-label":s?"Submit mobile number":"Enter a valid mobile number",children:c(fn,{className:`w-4 h-4 ${s?"text-primary-foreground":"text-primary"}`})})]})]})]})}const Rv=6,Dv=30,Pv=(A,e)=>A.disabled===e.disabled&&A.isMobile===e.isMobile&&A.validation?.pattern===e.validation?.pattern&&A.validation?.minLength===e.validation?.minLength&&A.validation?.maxLength===e.validation?.maxLength&&A.serverMessage===e.serverMessage&&A.theme?.textColor===e.theme?.textColor;function Kv({disabled:A,isMobile:e,validation:t,onSubmit:r,onResendOtp:n,serverMessage:i}){const o=Z([]),[s,a]=G(0),[l,d]=G(!1),u=Z(!1),h=Z(r),f=Z(n),g=t?.maxLength??Rv,p=yA(()=>new RegExp(t?.pattern??`^\\d{${g}}$`),[t?.pattern,g]);j(()=>{h.current=r},[r]),j(()=>{f.current=n},[n]),j(()=>{if(!i)return;const S=i.toLowerCase();S.includes("otp")&&(S.includes("invalid")||S.includes("incorrect")||S.includes("wrong"))&&(u.current=!1,d(!1))},[i]);const w=mA(()=>o.current.map(S=>S?.value.replace(/\D/g,"").slice(-1)??""),[]),m=mA(()=>{const S=w().join(""),L=S.length===g&&p.test(S);u.current!==L&&(u.current=L,d(L))},[g,p,w]),C=mA(S=>{S<g-1&&o.current[S+1]?.focus()},[g]),b=mA(S=>{S>0&&o.current[S-1]?.focus()},[]),_=yA(()=>Array.from({length:g},(S,L)=>L),[g]),x=mA(S=>{for(let M=0;M<g;M++){const T=o.current[M];T&&(T.value=S[M]??"")}m();const L=Math.min(S.length,g-1);o.current[L]?.focus()},[m,g]),y=mA((S,L)=>{const M=L.target.value.replace(/\D/g,"");if(M.length>1){x(M.slice(0,g));return}const T=M.slice(-1);L.target.value=T,m(),T&&C(S)},[m,x,C,g]),F=mA((S,L)=>{if(L.key==="Backspace"&&!o.current[S]?.value){b(S);return}if(L.key==="Enter"&&!L.shiftKey&&!A){L.preventDefault();const M=w().join("");if(M.length===g&&p.test(M))h.current(M);else{const V=w().findIndex(z=>!z);o.current[V===-1?0:V]?.focus()}}},[A,b,g,p,w]),Q=mA(S=>{S.preventDefault();const L=S.clipboardData.getData("text").replace(/\D/g,"").slice(0,g);L&&x(L)},[x,g]),E=mA(()=>{if(A)return;const S=w().join("");S.length===g&&p.test(S)&&h.current(S)},[A,g,p,w]),I=mA(()=>{if(!(s>0||A)){for(const S of o.current)S&&(S.value="");u.current=!1,d(!1),o.current[0]?.focus(),f.current?.(),a(Dv)}},[A,s]);j(()=>{A||o.current[0]?.focus()},[A]),j(()=>{if(l){s>0&&a(0);return}if(s<=0)return;const S=setTimeout(()=>a(L=>L-1),1e3);return()=>clearTimeout(S)},[l,s]);const k=yA(()=>_.map(S=>c("input",{ref:L=>{o.current[S]=L},type:"text",inputMode:"numeric",maxLength:e&&S===0?g:1,onChange:L=>y(S,L),onKeyDown:L=>F(S,L),onPaste:Q,disabled:A,tabIndex:0,style:{fontSize:e?"16px":"14px",backgroundColor:"var(--input-box-bg)"},className:K("h-10 w-10 rounded-full border text-center text-lg font-semibold text-foreground","border-border shadow-sm outline-none transition-colors","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 focus-visible:border-transparent","disabled:cursor-not-allowed disabled:opacity-50"),autoComplete:S===0?"one-time-code":"off","aria-label":`Digit ${S+1}`},S)),[A,_,y,F,Q,e,g]);return c("div",{className:"px-4 pt-3 pb-2 space-y-3",children:c("div",{className:"flex flex-col gap-3",children:[c("div",{className:"flex items-center justify-between",children:[c("p",{className:"text-xs font-semibold tracking-wide text-foreground uppercase",children:"Please enter the OTP"}),!l&&c("button",{type:"button",onClick:I,disabled:A||s>0,className:K("text-xs font-medium underline underline-offset-2","text-primary hover:opacity-90 disabled:opacity-50 disabled:no-underline disabled:cursor-not-allowed"),children:["Resend OTP",s>0?` (00:${String(s).padStart(2,"0")}s)`:""]})]}),c("div",{className:"flex items-center w-full gap-2 justify-between",children:[c("div",{className:"flex items-center gap-2",children:k}),c(uA,{type:"button",size:"icon",onClick:E,disabled:A,variant:"ghost",className:`h-10 w-10 ${l?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:l?"Submit OTP":"Enter the full OTP to submit","aria-label":l?"Submit OTP":"Enter the full OTP to submit",children:c(fn,{className:`w-4 h-4 ${l?"text-primary-foreground":"text-primary"}`})})]})]})})}const Vv=Ko(Kv,Pv);function Gv({value:A,onChange:e,onKeyDown:t,placeholder:r,disabled:n,theme:i,isMobile:o,isEmailValid:s,onSend:a}){return c("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[c("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your email address"}),c("div",{className:K("flex items-center gap-1 rounded-full px-2 py-2 w-full",n&&"opacity-60",i?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[c(fa,{type:"email",autoComplete:"email",value:A,onChange:e,onKeyDown:t,placeholder:r??"username@example.com",className:K("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:o?"16px":"14px"},autoFocus:!n,disabled:n}),c(uA,{type:"button",size:"icon",onClick:a,disabled:n||!s,variant:"ghost",className:`h-10 w-10 ${s?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:s?"Submit email address":"Enter a valid email address","aria-label":s?"Submit email address":"Enter a valid email address",children:c(fn,{className:`w-4 h-4 ${s?"text-primary-foreground":"text-primary"}`})})]})]})}const jf=10,zv=10,Wv=/^[6-9][0-9]{9}$/,Xv=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Yv({elicitationEntry:A,value:e,onChange:t,isDisabled:r,theme:n,isMobile:i,onSend:o}){const{component:s,pattern:a,minLength:l,maxLength:d,description:u,disp_toast_msg:h,tool_key:f}=A??{},g=yA(()=>s===P.SYNAPSE_COMPONENTS.MOBILE,[s]),p=yA(()=>s===P.SYNAPSE_COMPONENTS.OTP,[s]),w=yA(()=>s===P.SYNAPSE_COMPONENTS.EMAIL,[s]);if(!g&&!p&&!w)return null;const m=h?.trim()??"",C=E=>{const I=E.target.value.replace(/\D/g,""),k=d??jf;t(I.slice(0,k))},b=e.length===(l??zv)&&(a?new RegExp(a).test(e):Wv.test(e)),_=a?new RegExp(a).test(e):Xv.test(e),x=()=>{!_||r||o({toolCalled:!0,tool_key:f})},y=E=>{E.key==="Enter"&&(E.preventDefault(),x())},F=()=>{!b||r||o({toolCalled:!0,tool_key:f})};return c(QA,{children:[g&&c(Ov,{value:e,onChange:C,onSend:F,onKeyDown:E=>{E.key==="Enter"&&(E.preventDefault(),F())},placeholder:u??"Enter your mobile number",disabled:r,isMobileValid:b,theme:n,isMobile:i,maxLength:d??jf}),p&&c(Vv,{disabled:r,isMobile:i,validation:{pattern:a,minLength:l,maxLength:d},onSubmit:E=>{o({message:E,toolCalled:!0,tool_key:f})},onResendOtp:()=>{o({toolCalled:!0,resend:!0,tool_key:f})},serverMessage:m,theme:n}),w&&c(Gv,{value:e,onChange:E=>t(E.target.value),onKeyDown:y,disabled:r,isEmailValid:_,theme:n,isMobile:i,placeholder:u,onSend:x})]})}const Jf=({className:A})=>c("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:A,children:c("path",{d:"M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z",fill:"currentColor"})});function jv({value:A,onChange:e,onSend:t,onFileChange:r,onRemoveFile:n,onRecording:i,isRecording:o,hasAttachment:s,attachmentFiles:a,isDisabled:l,placeholder:d,isMobile:u,recordingStatus:h,theme:f,allowed:g,showStartNewChatButton:p,onStartNewChat:w,isVoiceAgentActive:m,handleVoiceMode:C,isAuthComponent:b,activeElicitationState:_,isFullScreen:x}){const y=Z(null),F=Z(null),Q=A.trim().length>0||s,E=g===void 0||g.includes(P.SYNAPSE_CONVERSATION.AUDIO),I=g===void 0||g.includes(P.SYNAPSE_CONVERSATION.VOICE),k=Q||!E,S=Q,L=g===void 0||g.includes(P.SYNAPSE_CONVERSATION.FILE),M=(l||h!==NA.IDLE)&&!o,T=K("rounded-full transition-all duration-200 ",o?"bg-gradient-to-r from-rose-400 via-primary to-indigo-500 text-white ring-2 ring-white/60 animate-pulse shadow-[0_0_20px_rgba(139,92,246,0.45)]":M?"text-primary/50 cursor-not-allowed shadow-none":"text-foreground hover:bg-primary hover:text-primary-foreground"),V=eA=>{const rA=Array.from(eA.target.files||[]);rA.length>0&&r(rA)},z=()=>{l||(y.current&&(y.current.value=""),y.current?.click())},D=eA=>{eA.key==="Enter"&&!eA.shiftKey&&S&&!l&&(eA.preventDefault(),t())},cA=eA=>{eA.style.height="auto",eA.style.overflow="hidden";const rA=eA.scrollHeight,B=x?20:28,J=120,AA=Math.max(B,Math.min(rA,J));eA.style.height=AA+"px",rA>J?eA.style.overflow="auto":eA.style.overflow="hidden"},v=eA=>{cA(eA.currentTarget)};return j(()=>{F.current&&cA(F.current)},[A]),j(()=>{!l&&!u&&F.current?.focus()},[l]),p&&w?c("div",{className:"px-4 py-2 flex justify-unset",children:c("button",{type:"button",onClick:w,className:K("px-6 py-3 bg-primary text-primary-foreground text-sm font-semibold rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:pointer-events-none w-full",!u&&"hover:bg-primary/90"),children:[c("span",{children:"Start new chat"}),c(Yu,{className:"w-5 h-5","aria-hidden":!0})]})}):c(QA,{children:b?c(Yv,{elicitationEntry:_,value:A,onChange:e,isDisabled:l,theme:f,isMobile:u,onSend:t}):x?c("div",{className:"mx-3 mb-3","data-name":"reply-box",children:c("div",{className:"flex flex-col items-stretch w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:24,padding:8},children:[s&&a.length>0&&c("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:c(ca,{files:a,onRemoveFile:n,isPreview:!0})}),c("input",{ref:y,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:V,disabled:l,title:"Attach file","aria-label":"Attach file"}),c("div",{className:"flex items-center justify-between w-full",style:{padding:"12px 8px"},"data-name":"text-frame",children:c(da,{ref:F,onInput:v,placeholder:d,value:A,onChange:eA=>e(eA.target.value),rows:1,maxLength:1e3,autoFocus:!u,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"20px",maxHeight:"120px",fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:14,lineHeight:"20px",fontWeight:400,padding:0},onKeyPress:D,title:"Enter your message","aria-label":"Enter your message",className:K("flex-1 min-w-0 shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","bg-transparent disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap","text-foreground resize-none placeholder:text-muted-foreground")})}),c("div",{className:"flex items-center justify-between w-full","data-name":"cta-row",children:[c("div",{className:"flex items-start shrink-0","data-name":"input-left-cta",children:L&&h===NA.IDLE&&c(uA,{type:"button",variant:"ghost",size:"icon",onClick:z,disabled:l,className:K("rounded-full transition-all shrink-0 p-2 h-10 w-10",s?"bg-primary text-primary-foreground":"text-foreground",!u&&(s?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:c(ju,{className:"w-6 h-6",strokeWidth:1.5})})}),c("div",{className:"flex gap-2 items-center shrink-0","data-name":"input-right-cta",children:[o?c(uA,{type:"button",variant:"ghost",size:"icon",onClick:i,className:K("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!u&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:c(Ju,{className:"w-4 h-4"})}):E&&c(uA,{type:"button",variant:"ghost",size:"icon",onClick:i,disabled:M,className:K("h-10 w-10 shrink-0 p-2",T),title:"Start recording","aria-label":"Start recording",children:c(fs,{className:"w-6 h-6",strokeWidth:1.5})}),k&&!o?c(uA,{type:"button",size:"icon",onClick:()=>t(),disabled:l||!S,variant:"ghost",className:K("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0 p-2",S?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:S?"Send message":"Type a message to send","aria-label":S?"Send message":"Type a message to send",children:c(fn,{className:"w-4 h-4 text-primary-foreground"})}):E&&I&&!o&&c(uA,{type:"button",variant:"ghost",size:"icon",onClick:C,disabled:l||m,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",title:"Enter voice mode","aria-label":"Enter voice mode",children:c(Jf,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})}):c("div",{className:"px-3 pb-2 pt-1",children:[c("input",{ref:y,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:V,disabled:l,title:"Attach file","aria-label":"Attach file"}),c("div",{className:"flex flex-col w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.3)",borderRadius:20,padding:"4px 8px"},children:[s&&a.length>0&&c("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:c(ca,{files:a,onRemoveFile:n,isPreview:!0})}),c("div",{className:"px-2 pt-1 pb-0",children:c(da,{ref:F,onInput:v,placeholder:d,value:A,onChange:eA=>e(eA.target.value),rows:1,maxLength:1e3,autoFocus:!u,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"28px",maxHeight:"120px",fontSize:"16px",lineHeight:"1.4"},onKeyPress:D,title:"Enter your message","aria-label":"Enter your message",className:K("w-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-base placeholder:text-muted-foreground bg-transparent","disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap text-foreground resize-none")})}),c("div",{className:"flex items-center justify-between px-1",children:[c("div",{className:"flex items-center shrink-0",children:L&&h===NA.IDLE&&c(uA,{type:"button",variant:"ghost",size:"icon",onClick:z,disabled:l,className:K("h-10 w-10 rounded-full transition-all shrink-0",s?"bg-primary text-primary-foreground":"text-foreground",!u&&(s?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:c(ju,{className:"w-5 h-5",strokeWidth:1.5})})}),c("div",{className:"flex items-center gap-2 shrink-0",children:[o?c(uA,{type:"button",variant:"ghost",size:"icon",onClick:i,className:K("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!u&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:c(Ju,{className:"w-4 h-4"})}):k?c(uA,{type:"button",size:"icon",onClick:()=>t(),disabled:l||!S,variant:"ghost",className:K("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0",S?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:S?"Send message":"Type a message to send","aria-label":S?"Send message":"Type a message to send",children:c(fn,{className:"w-4 h-4 text-primary-foreground"})}):E&&c(uA,{type:"button",variant:"ghost",size:"icon",onClick:i,disabled:M,className:K("h-10 w-10 shrink-0",T),title:"Start recording","aria-label":"Start recording",children:c(fs,{className:"w-5 h-5",strokeWidth:1.5})}),E&&I&&!o&&c(uA,{type:"button",variant:"ghost",size:"icon",onClick:C,disabled:l||m,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",title:"Enter voice mode","aria-label":"Enter voice mode",children:c(Jf,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})]})})}const Jv=Object.freeze(Object.defineProperty({__proto__:null,default:jv},Symbol.toStringTag,{value:"Module"}));var $v=Wo[" useInsertionEffect ".trim().toString()]||ht;function qv({prop:A,defaultProp:e,onChange:t=()=>{},caller:r}){const[n,i,o]=Zv({defaultProp:e,onChange:t}),s=A!==void 0,a=s?A:n;{const d=Z(A!==void 0);j(()=>{const u=d.current;if(u!==s){const h=u?"controlled":"uncontrolled",f=s?"controlled":"uncontrolled"}d.current=s},[s,r])}const l=mA(d=>{if(s){const u=Ab(d)?d(A):d;u!==A&&o.current?.(u)}else i(d)},[s,A,i,o]);return[a,l]}function Zv({defaultProp:A,onChange:e}){const[t,r]=G(A),n=Z(t),i=Z(e);return $v(()=>{i.current=e},[e]),j(()=>{n.current!==t&&(i.current?.(t),n.current=t)},[t,n]),[t,r,i]}function Ab(A){return typeof A=="function"}function eb(A){const e=Z({value:A,previous:A});return yA(()=>(e.current.value!==A&&(e.current.previous=e.current.value,e.current.value=A),e.current.previous),[A])}function tb(A){const[e,t]=G(void 0);return ht(()=>{if(A){t({width:A.offsetWidth,height:A.offsetHeight});const r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const i=n[0];let o,s;if("borderBoxSize"in i){const a=i.borderBoxSize,l=Array.isArray(a)?a[0]:a;o=l.inlineSize,s=l.blockSize}else o=A.offsetWidth,s=A.offsetHeight;t({width:o,height:s})});return r.observe(A,{box:"border-box"}),()=>r.unobserve(A)}else t(void 0)},[A]),e}var wi="Checkbox",[rb]=fc(wi),[nb,ha]=rb(wi);function ib(A){const{__scopeCheckbox:e,checked:t,children:r,defaultChecked:n,disabled:i,form:o,name:s,onCheckedChange:a,required:l,value:d="on",internal_do_not_use_render:u}=A,[h,f]=qv({prop:t,defaultProp:n??!1,onChange:a,caller:wi}),[g,p]=G(null),[w,m]=G(null),C=Z(!1),b=g?!!o||!!g.closest("form"):!0,_={checked:h,disabled:i,setChecked:f,control:g,setControl:p,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:C,required:l,defaultChecked:yt(n)?!1:n,isFormControl:b,bubbleInput:w,setBubbleInput:m};return c(nb,{scope:e,..._,children:ob(u)?u(_):r})}var $f="CheckboxTrigger",qf=oA(({__scopeCheckbox:A,onKeyDown:e,onClick:t,...r},n)=>{const{control:i,value:o,disabled:s,checked:a,required:l,setControl:d,setChecked:u,hasConsumerStoppedPropagationRef:h,isFormControl:f,bubbleInput:g}=ha($f,A),p=et(n,d),w=Z(a);return j(()=>{const m=i?.form;if(m){const C=()=>u(w.current);return m.addEventListener("reset",C),()=>m.removeEventListener("reset",C)}},[i,u]),c(ft.button,{type:"button",role:"checkbox","aria-checked":yt(a)?"mixed":a,"aria-required":l,"data-state":rh(a),"data-disabled":s?"":void 0,disabled:s,value:o,...r,ref:p,onKeyDown:tt(e,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:tt(t,m=>{u(C=>yt(C)?!0:!C),g&&f&&(h.current=m.isPropagationStopped(),h.current||m.stopPropagation())})})});qf.displayName=$f;var ga=oA((A,e)=>{const{__scopeCheckbox:t,name:r,checked:n,defaultChecked:i,required:o,disabled:s,value:a,onCheckedChange:l,form:d,...u}=A;return c(ib,{__scopeCheckbox:t,checked:n,defaultChecked:i,disabled:s,required:o,onCheckedChange:l,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:h})=>c(QA,{children:[c(qf,{...u,ref:e,__scopeCheckbox:t}),h&&c(th,{__scopeCheckbox:t})]})})});ga.displayName=wi;var Zf="CheckboxIndicator",Ah=oA((A,e)=>{const{__scopeCheckbox:t,forceMount:r,...n}=A,i=ha(Zf,t);return c($t,{present:r||yt(i.checked)||i.checked===!0,children:c(ft.span,{"data-state":rh(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:e,style:{pointerEvents:"none",...A.style}})})});Ah.displayName=Zf;var eh="CheckboxBubbleInput",th=oA(({__scopeCheckbox:A,...e},t)=>{const{control:r,hasConsumerStoppedPropagationRef:n,checked:i,defaultChecked:o,required:s,disabled:a,name:l,value:d,form:u,bubbleInput:h,setBubbleInput:f}=ha(eh,A),g=et(t,f),p=eb(i),w=tb(r);j(()=>{const C=h;if(!C)return;const b=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(b,"checked").set,y=!n.current;if(p!==i&&x){const F=new Event("click",{bubbles:y});C.indeterminate=yt(i),x.call(C,yt(i)?!1:i),C.dispatchEvent(F)}},[h,p,i,n]);const m=Z(yt(i)?!1:i);return c(ft.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??m.current,required:s,disabled:a,name:l,value:d,form:u,...e,tabIndex:-1,ref:g,style:{...e.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});th.displayName=eh;function ob(A){return typeof A=="function"}function yt(A){return A==="indeterminate"}function rh(A){return yt(A)?"indeterminate":A?"checked":"unchecked"}const pa=oA(({className:A,...e},t)=>c(ga,{ref:t,className:K("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",A),...e,children:c(Ah,{className:K("grid place-content-center text-current"),children:c(ds,{className:"h-4 w-4"})})}));pa.displayName=ga.displayName;function sb({options:A,selectedValues:e,onSelectionChange:t,additionalOption:r,className:n,required:i=!0,maxSelections:o,disabled:s}){const a=r?{id:`extra-${r}`,label:r==="all_of_the_above"?"All of the above":"None of the above",value:r==="all_of_the_above"?"All of the above":"None of the above"}:null,l=p=>a?p.filter(w=>w!==a.value):p,d=p=>a?r==="none_of_the_above"?p?[a.value]:[]:r==="all_of_the_above"?p?[...A.map(w=>w.value),a.value]:l(e):p?[...e,a.value]:l(e):e,u=(p,w)=>{const m=a?l(e):e;return w?o&&m.length>=o?null:[...m,p]:m.filter(C=>C!==p)},h=p=>!(i&&p.length===0&&e.length===1),f=(p,w)=>{const C=a&&p===a.value?d(w):u(p,w);C!==null&&h(C)&&t(C)},g=a?e.filter(p=>p!==a.value).length:e.length;return A.length?c("div",{className:K(n),children:[c("div",{className:"space-y-3",children:[A.map(p=>{const w=s||o&&g>=o&&!e.includes(p.value);let m=e.includes(p.value);return c("div",{className:"flex items-center space-x-3",children:[c(pa,{id:p.id,checked:m,disabled:!!w,onCheckedChange:C=>f(p.value,!!C),className:"mt-0.5 border border-muted-foreground text-primary-foreground"}),c("label",{htmlFor:p.id,className:K("text-sm font-normal leading-4 cursor-pointer",w?"text-muted-foreground cursor-not-allowed":m?"text-primary":"text-secondary-foreground"),children:p.label})]},p.id)}),a&&c(QA,{children:[c("div",{className:"border-t border-border-medium my-3"}),c("div",{className:"flex items-center space-x-3",children:[c(pa,{id:a.id,checked:e.includes(a.value),onCheckedChange:p=>f(a.value,p),className:"mt-0.5 border border-muted-foreground"}),c("label",{htmlFor:a.id,className:"text-sm font-medium leading-none cursor-pointer text-secondary-foreground",children:a.label})]})]})]}),o&&g>=o&&c("p",{className:"text-sm text-blue-600 mt-3",children:o===1?"You can select only 1 option":`Maximum ${o} selections allowed`})]}):null}const ab=Object.freeze(Object.defineProperty({__proto__:null,MultiSelectGroup:sb},Symbol.toStringTag,{value:"Module"})),nh=12,lb=.76,cb=3;function ih({count:A,renderItem:e,className:t}){const[r,n]=G(0),[i,o]=G(0),[s,a]=G(()=>Math.min(cb,A)),l=Z(null),d=Z(0),u=Z(0);if(j(()=>{a(w=>Math.max(w,Math.min(r+2,A)))},[r,A]),ke(()=>{const w=l.current;if(!w)return;o(w.clientWidth);const m=new ResizeObserver(([C])=>o(C.contentRect.width));return m.observe(w),()=>m.disconnect()},[]),A===0)return null;const h=w=>n(Math.max(0,Math.min(A-1,w)));if(A===1)return c("div",{className:t??"mt-3",children:e(0,!0)});const f=i*lb,g=(i-f)/2,p=i>0?g-r*(f+nh):0;return c("div",{ref:l,className:K("mt-3 w-full",t),children:i>0&&c("div",{className:"relative w-full",children:[c("div",{className:"w-full overflow-hidden py-3",onTouchStart:w=>{d.current=w.touches[0].clientX,u.current=w.touches[0].clientY},onTouchEnd:w=>{const m=w.changedTouches[0].clientX-d.current,C=w.changedTouches[0].clientY-u.current;Math.abs(m)>Math.abs(C)&&Math.abs(m)>50&&h(r+(m<0?1:-1))},children:c("div",{className:"flex items-stretch",style:{transform:`translateX(${p}px)`,transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",gap:`${nh}px`},"aria-live":"polite",children:Array.from({length:s},(w,m)=>{const C=m===r;return c("div",{"aria-hidden":!C,style:{flex:`0 0 ${f}px`,position:"relative",opacity:C?1:.6,transform:C?"scale(1.05)":"scale(0.9)",zIndex:C?20:10,transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:12},children:e(m,C)},m)})})}),r>0&&c("button",{type:"button","aria-label":"Previous",onClick:()=>h(r-1),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:c(Wu,{size:18})}),r<A-1&&c("button",{type:"button","aria-label":"Next",onClick:()=>h(r+1),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:c(Xu,{size:18})})]})})}const ub=Object.freeze(Object.defineProperty({__proto__:null,FocusCarousel:ih},Symbol.toStringTag,{value:"Module"}));function db({value:A,onValueChange:e,placeholder:t="Select an option",className:r,triggerClassName:n,contentClassName:i,disabled:o=!1,options:s=[],size:a="default",icon:l}){const[d,u]=G(!1),h=Z(null),f=Z(null),g=s.find(m=>m.value===A);j(()=>{const m=C=>{d&&C.key==="Escape"&&(u(!1),f.current?.focus())};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[d]);const p=m=>{e?.(m),u(!1),f.current?.focus()},w=()=>{o||u(!d)};return c("div",{className:K("relative w-full",r),children:[c("button",{ref:f,type:"button",onClick:w,disabled:o,className:K('border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*="text-"])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 overflow-hidden',a==="default"?"min-h-9":"min-h-8",n),"aria-expanded":d,"aria-haspopup":"listbox",children:[l,c("span",{className:K("flex-1 text-left min-w-0 overflow-hidden break-words line-clamp-2",!g&&"text-muted-foreground"),children:g?g.label:t}),c(rr,{className:K("size-4 opacity-50 pointer-events-none shrink-0 transition-transform duration-200",d&&"rotate-180")})]}),d&&c("div",{ref:h,className:K("bg-surface text-foreground animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 relative z-50 max-h-[136px] min-w-[8rem] w-full overflow-x-hidden overflow-y-auto overscroll-contain rounded-md shadow-md mt-1",i),role:"listbox",children:c("div",{className:"p-1",children:s.length===0?c("div",{className:"px-3 py-2 text-sm text-muted-foreground text-center",children:"No options available"}):s.map(m=>{const C=m.value===A;return c("div",{onClick:()=>p(m.value),className:K("relative flex w-full cursor-pointer items-center gap-1 rounded-sm py-2.5 px-3 text-sm outline-none select-none transition-colors duration-150","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground","active:bg-accent/80",C&&"bg-accent/50 text-foreground",o&&"pointer-events-none opacity-50 cursor-not-allowed"),role:"option","aria-selected":C,tabIndex:o?-1:0,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),o||p(m.value))},children:[c("span",{className:"flex-1 text-left min-w-0 break-words line-clamp-2",children:m.label}),C&&c("span",{className:"absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none",children:c(ds,{className:"size-4 text-foreground"})})]},m.value)})})})]})}function fb({doctor:A,doctorDetails:e,onSelect:t,disabled:r,isActive:n=!0}){const i=yA(()=>{if(e?.hospitals?.[0]?.hospital_id)return e?.hospitals?.[0]?.hospital_id},[e?.hospitals]),[o,s]=G(i),[a,l]=G(!1),[d,u]=G(null),[h,f]=G(null),[g,p]=G(0),[w,m]=G(!1),[C,b]=G(!1),[_,x]=G(!1),[y,F]=G(!1),[Q,E]=G(!1),I=Z(!1),k=Z(null);j(()=>{s(i)},[i]);const S=A.availability??[],L=mA(async()=>{if(!_&&(b(!0),!S.length&&t&&e)){x(!0);try{await t({...A,hospital_id:o})}finally{x(!1)}}},[C,_,t,e,S.length,o]),M=mA(B=>{e&&(s(B),u(null),f(null),p(0),I.current=!1,t?.({...A,hospital_id:B}))},[A,t,e]);j(()=>{n||b(!1)},[n]),j(()=>{if(!C||!S.length||I.current)return;I.current=!0;const B=A.preferred_date||S[0]?.date;B&&(u(AA=>AA??B),S.find(AA=>AA.date===B)?.slots?.length||t?.({...A,hospital_id:o,preferred_date:B}))},[S,C]);const T=yA(()=>S.find(B=>B.date===d)?.slots??[],[S,d]);ke(()=>{const B=k.current;B&&(B.scrollTop=0,F(B.scrollHeight>B.clientHeight+2))},[d,T.length]);const V=mA(()=>{const B=k.current;B&&F(B.scrollTop+B.clientHeight<B.scrollHeight-4)},[]),z=()=>{k.current?.scrollBy({top:120,behavior:"smooth"})},D=yA(()=>{if(!S.length)return[];const B=Math.min(g+3,S.length);return S.slice(g,B).map(J=>{if(J.date)return{...J,...pv(J.date)}})},[S,g]),cA=g>0,v=g<Math.max(0,(S||[]).length-3),eA=mA(async B=>{u(B),f(null);const J=S.find(AA=>AA.date===B);if(!(J?.slots?.length||Array.isArray(J?.slots)&&J?.slots.length===0)){l(!0);try{await t?.({...A,hospital_id:o,preferred_date:B})}catch{}finally{l(!1)}}},[A,o,t,S]),rA=()=>{if(!h||!d||w)return;m(!0);const B=A.cta?.text;t?.({...A,hospital_id:o,preferred_date:d,preferred_slot_time:h},`${B||`I want to book an appointment with Dr. ${e?.name}`} on ${d} at ${h}.`,A.cta?.tool_result)};return e?c(nt,{className:"max-w-md h-full rounded-xl border border-black-200 dark:border-white-200 shadow-none p-0 bg-elicitationBg overflow-hidden",children:[c(ps,{className:"flex flex-row items-center gap-3 bg-primary/[20%] rounded-t-xl p-2 border-b border-border-subtle overflow-hidden",children:[c(ys,{className:"h-12 w-12 ring-2 ring-primary/20 flex-shrink-0",children:[e.profile_pic&&c(gd,{src:e.profile_pic,alt:`${e.name} profile photo`,crossOrigin:"anonymous"}),c(Es,{className:"bg-secondary text-primary",children:gv(e.name)})]}),c("div",{className:"min-w-0",children:[c("h3",{className:"font-bold text-slate-900 leading-tight",style:{fontSize:"0.95rem"},children:[c("span",{children:e.name}),e.profile_link&&c("a",{href:e.profile_link,target:"_blank",rel:"noreferrer","aria-label":"View profile",className:"inline-block align-middle ml-2 text-primary hover:text-primary/70 transition-colors",children:c(Rm,{className:"h-3.5 w-3.5 inline","aria-hidden":!0})})]}),c("p",{className:"mt-0.5 text-xs text-slate-600 line-clamp-1 hover:line-clamp-none hover:whitespace-normal cursor-help",title:`${e.specialty}${e.experience?` • ${e.experience}`:""}`,children:[e.specialty,e.experience&&c(QA,{children:[" • ",e.experience]})]})]})]}),c(ii,{className:"px-3 py-2",children:[c("div",{className:"grid gap-1 pb-2 border-b border-border-subtle",children:[e.timings&&c("div",{className:"flex items-start gap-2 min-w-0",children:[c(km,{className:"h-3.5 w-3.5 text-primary mt-0.5 flex-shrink-0","aria-hidden":!0}),c("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:e.timings})]}),e.languages&&c("div",{className:"flex items-center gap-2 min-w-0",children:[c(Vm,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),c("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:e.languages})]}),e.hospitals?.length>1&&o?c(db,{options:e.hospitals.map(B=>({value:B.hospital_id,label:B.name||""})),placeholder:"Select Hospital",disabled:r,onValueChange:M,value:o,triggerClassName:"h-8 text-xs px-3 rounded-lg border-border text-primary font-medium",icon:c(ti,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0})}):c("div",{className:"flex items-center gap-1.5 min-w-0",children:[c(ti,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),c("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:e.hospitals?.[0]?.name||""})]}),e.info&&c("div",{className:"flex items-start gap-2 min-w-0",children:[c(Km,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),c("div",{className:"min-w-0 flex-1",children:[c("div",{className:K("text-text-secondary text-xs leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words overflow-hidden",!Q&&"line-clamp-1"),children:c(dn,{children:e.info})}),c("button",{type:"button",onClick:()=>E(B=>!B),"aria-expanded":Q,className:"mt-0.5 flex items-center gap-1 text-[11px] font-semibold text-primary hover:text-primary/80 transition-colors",children:[c(Mm,{className:"h-3.5 w-3.5","aria-hidden":!0}),Q?"View less":"View more"]})]})]})]}),C?_?c("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"Loading..."}):S.length>0?c("div",{className:"pt-3",children:[c("div",{className:"flex items-center gap-2",children:[c(uA,{type:"button",variant:"outline",size:"icon",onClick:()=>{p(B=>Math.max(0,B-3)),f(null)},disabled:r||!cA,"aria-label":"Previous 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:c(Wu,{className:"h-4 w-4"})}),c("div",{className:"flex-1 grid grid-cols-3 gap-1 min-w-0",children:D.map((B,J)=>{if(!B||!B.date)return null;const AA=d===B.date,tA=(B?.slots||[]).length>0;return c(uA,{type:"button",variant:"outline",onClick:()=>B.date&&eA(B.date),disabled:r,"aria-current":AA?"date":void 0,className:K("flex flex-col items-center justify-center h-12 rounded-lg border-2 p-2 gap-0.5 min-w-0 transition-all",AA?"border-primary border-2 ring-2 ring-primary/20 bg-primary/[20%] shadow-sm hover:text-accent-foreground":tA?"border-primary/30 bg-elicitationBg hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/40":"border-border bg-elicitationBg opacity-60 hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/30"),children:[c("span",{className:K("text-[10px] tracking-wide w-full text-center font-medium"),children:B.weekday}),c("span",{className:K("text-xs font-bold w-full text-center"),children:B.dayNum})]},`${B.date}-${J}`)})}),c(uA,{type:"button",variant:"outline",size:"icon",onClick:()=>{p(B=>Math.min(Math.max(0,S.length-3),B+3)),f(null)},disabled:r||!v,"aria-label":"Next 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:c(Xu,{className:"h-4 w-4"})})]}),d&&c("div",{className:"mt-2",children:T.length>0?c("div",{className:"relative",children:[c("div",{ref:k,onScroll:V,className:"grid grid-cols-3 gap-2 overflow-y-auto overscroll-contain",style:{maxHeight:"108px"},children:T.map((B,J)=>{if(!B)return null;const AA=h===B;return c(uA,{type:"button",variant:"outline",onClick:()=>f(B),"aria-pressed":AA,disabled:r,className:K("h-9 rounded-lg px-2 text-xs font-medium transition-all",AA?"border-primary bg-primary/20 text-primary shadow-sm hover:bg-primary/10":"border-border bg-elicitationBg text-text-primary hover:bg-primary/10 hover:border-primary/30"),children:c("span",{children:B})},B||`slot-${J}`)})}),y&&c("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-elicitationBg via-elicitationBg to-transparent pointer-events-none flex items-end justify-center pb-1",children:c("button",{type:"button",onClick:z,className:"pointer-events-auto flex items-center gap-1 text-xs font-semibold text-primary hover:text-primary/80 transition-colors",children:[c(rr,{className:"h-3.5 w-3.5","aria-hidden":!0}),"More slots"]})})]}):a?c("p",{className:"text-sm text-text-secondary px-1",children:"Fetching slots..."}):c("p",{className:"text-sm text-text-secondary px-1",children:"No slots available."})}),c(uA,{type:"button",onClick:rA,disabled:!h||r||w,"aria-disabled":!h||w,className:`w-full h-10 gap-2 bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-60 shadow-sm font-semibold ${y?"":" mt-2"}`,children:[A.cta?.title||"Book appointment",c(Im,{className:"h-4 w-4","aria-hidden":!0})]})]}):c("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"No slots available."}):c("div",{className:"pt-3",children:c(uA,{type:"button",variant:"outline",onClick:L,disabled:r||_,className:"w-full h-8 gap-1.5 text-xs border-primary/40 text-primary hover:bg-primary/10 disabled:opacity-60 font-medium rounded-lg",children:[_?"Loading...":"Show available slots",c(rr,{className:"h-3.5 w-3.5","aria-hidden":!0})]})})]})]}):null}const hb=Object.freeze(Object.defineProperty({__proto__:null,DoctorCard:fb},Symbol.toStringTag,{value:"Module"})),gb={voucher:Jm,pharmacy:zu,hospital:zu,map:Gm,location_pin:ti,"location pin":ti,check:ds,calendar:Tm,rupee:Pm,dollar:Hm,euro:Om};function Ci({name:A,className:e,size:t=16}){const r=A?.trim().toLowerCase().replace(/\s+/g,"_");if(!r)return null;const n=gb[r];if(n)return c(n,{className:e,size:t,"aria-hidden":!0})}function oh({card:A,onSelect:e,disabled:t=!1}){const{title:r,tags:n,icon:i,img:o,description:s,banner_text:a,items:l,primary_cta:d,secondary_cta:u}=A,h=g=>{if(!t&&(g.link&&window.open(g.link,"_blank","noopener,noreferrer"),g.text||g.title)){let p=!1;A?.primary_cta?.tool_result&&(p=!0),e?.({message:g.text||g.title,selectedCard:A?.title,selectedComponent:A,selected_id:A.card_id,...p?{tool_result:A.primary_cta?.tool_result}:{}})}},f=!!o;return c(nt,{className:"w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none",children:[c(ps,{className:`flex flex-row items-center justify-between gap-3 p-3 ${f?"bg-primary/[20%]":""}`,children:[c("div",{className:"min-w-0 flex-1 overflow-hidden",children:[r?c(ed,{className:"text-base font-bold leading-tight tracking-tight truncate",children:r}):null,n?c("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:n}):null]}),f?c("div",{className:"shrink-0",children:c("img",{src:o,alt:r??"profile",className:"h-16 w-16 rounded-full object-cover border-2 border-background"})}):i?c("div",{className:"shrink-0 text-muted-foreground",children:c(Ci,{name:i,size:24,className:"text-primary"})}):null]}),c(ii,{className:"flex-1 space-y-3 pt-3 overflow-hidden",children:[s?c("div",{className:"text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words",children:c(dn,{children:s})}):null,a?c("div",{className:"rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate",children:a}):null,l?.length?c("div",{className:"flex flex-col gap-y-1",children:l.map((g,p)=>c("div",{className:"flex items-center gap-1.5 text-xs text-foreground min-w-0",children:[g.icon?c(Ci,{name:g.icon,size:12,className:"shrink-0 text-muted-foreground"}):null,c("span",{className:"truncate",children:g.text})]},p))}):null]}),d?.title||u?.title?c(td,{className:"flex justify-center flex-wrap gap-2 pt-0",children:[d&&c(uA,{type:"button",variant:"default",size:"sm",className:`gap-1.5 truncate ${u?"":"w-full"}`,disabled:t,onClick:()=>h(d),children:[d.icon?c(Ci,{name:d.icon,size:14,className:"shrink-0"}):null,c("span",{className:"truncate",children:d.title})]}),u&&c(uA,{type:"button",variant:"outline",size:"sm",className:"gap-1.5 truncate",disabled:t,onClick:()=>h(u),children:[u.icon?c(Ci,{name:u.icon,size:14,className:"shrink-0"}):null,c("span",{className:"truncate",children:u.title})]})]}):null]})}function pb({cards:A,onSelect:e,disabled:t=!1,className:r,orientation:n="vertical"}){const[i,o]=G(!1),s=Z(!1);if(!A?.length)return c("p",{className:"text-sm text-muted-foreground py-2",children:"No options available."});const a=async l=>{s.current||(s.current=!0,o(!0),await e?.(l))};return n!=="horizontal"?c("div",{className:r??"flex flex-col gap-3 mt-3",children:A.map((l,d)=>c(oh,{card:l,onSelect:a,disabled:t||i},l.card_id||d))}):c(ih,{count:A.length,renderItem:l=>c(oh,{card:A[l],onSelect:a,disabled:t||i})})}const Bb=Object.freeze(Object.defineProperty({__proto__:null,CardList:pb},Symbol.toStringTag,{value:"Module"}));function sh(A){return A.toLowerCase().endsWith(".pdf")}function mb(A){const e=document?.createElement("a");e.href=A,e.download=A.split("/").pop()??"download.pdf",e.target="_blank",e.click(),document?.body?.removeChild(e)}async function wb(A){if(!A.current)return;const e=(await Promise.resolve().then(()=>cp)).default,t=await e(A.current,{useCORS:!0}),r=document.createElement("a");r.href=t.toDataURL("image/png"),r.download="card.png",r.click()}async function Cb(A){if(!A.current)return;const e=(await Promise.resolve().then(()=>cp)).default,t=await e(A.current,{useCORS:!0}),r=document.createElement("a");r.href=t.toDataURL("image/png"),r.download=`screenshot-${Date.now()}.png`,r.click()}function yb({card:A}){const{title:e,description:t,tags_text:r,banner_text:n,action:i,link:o}=A,s=Z(null),a=o&&!sh(o);return c("div",{className:"flex flex-col gap-2",children:[c(nt,{ref:s,className:"overflow-hidden rounded-xl border border-border bg-elicitationBg text-card-foreground shadow-sm",children:c(ii,{className:"p-3 space-y-2",children:[c("div",{className:`flex items-start gap-3 ${a?"justify-between":"justify-center"}`,children:[c("div",{className:`space-y-2 ${a?"min-w-0 flex-1":"flex flex-col items-center"}`,children:[e&&c("span",{className:"inline-block rounded-full px-3 py-1 text-sm font-semibold bg-primary text-primary-foreground",children:e}),t&&c("p",{className:`text-sm text-foreground leading-snug ${a?"":"text-center"}`,children:t}),n&&c("span",{className:"inline-block rounded-full px-3 py-1 text-xs font-semibold bg-green-600 text-white",children:n})]}),a&&c("div",{className:"shrink-0 h-24 w-24 rounded-lg overflow-hidden border border-border",children:c("img",{src:o,alt:e??"media",className:"h-full w-full object-cover"})})]}),r&&c(QA,{children:[c("div",{className:"border-t border-border"}),c("p",{className:"text-xs text-muted-foreground",children:r})]})]})}),i&&c("div",{className:"flex justify-end",children:c(uA,{type:"button",variant:"outline",size:"sm",className:"rounded-md px-5 gap-1.5",onClick:()=>{i==="screenshot"?Cb(s):i==="download"&&(o&&sh(o)?mb(o):wb(s))},children:[i==="screenshot"?c(Nm,{className:"h-4 w-4"}):c(Lm,{className:"h-4 w-4"}),i==="screenshot"?"Screenshot":"Download"]})})]})}const Eb=Object.freeze(Object.defineProperty({__proto__:null,MediaCard:yb},Symbol.toStringTag,{value:"Module"}));function vb({message:A,onDismiss:e}){return c(QA,{children:[c("div",{className:"pointer-events-none absolute inset-0 z-[55] bg-black-600","aria-hidden":!0}),c("div",{className:"pointer-events-none absolute inset-x-3 top-3 z-[60]",role:"presentation",children:c("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"synapse-disp-toast-msg",className:"pointer-events-auto flex w-full flex-row items-center gap-3 rounded-lg border border-border bg-surface p-3 text-left text-foreground opacity-100",onClick:t=>t.stopPropagation(),children:[c("p",{id:"synapse-disp-toast-msg",className:"min-w-0 flex-1 text-sm font-medium whitespace-pre-wrap",children:A}),c("button",{type:"button",onClick:e,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close",children:c(An,{className:"h-4 w-4",strokeWidth:2.5})})]})})]})}function bb(){const A=CA(r=>r.toastMessage),e=CA(r=>r.setToastMessage),t=mA(()=>{e(null)},[e]);return j(()=>{if(!A)return;const r=window.setTimeout(t,3e3);return()=>window.clearTimeout(r)},[A,t]),A?c(vb,{message:A,onDismiss:t}):null}const Qb=Object.freeze(Object.defineProperty({__proto__:null,default:bb},Symbol.toStringTag,{value:"Module"}));function Fb({className:A="",onRetry:e,showRetryButton:t,startNewConnection:r,clearError:n,error:i,isConnected:o}){const{isOnline:s}=zf(),[a,l]=G(!0);return j(()=>{if(!r&&!t&&!!i){l(!0);const h=setTimeout(()=>l(!1),5e3);return()=>clearTimeout(h)}l(!0)},[i,r,t]),r?c("div",{className:K("flex flex-col items-center synapse-chat-widget-footer px-3 pt-3 pb-2 ",A),children:c("p",{className:"text-text-secondary text-sm max-w-sm mx-auto text-center w-250 mx-4 text-balance",children:"The conversation is now closed. Start a new session to continue."})}):t&&i?.title?c("div",{className:K("mx-4 mb-3 p-2 bg-surface border border-[#F7B500] rounded-lg",A),children:c("div",{className:"flex items-center gap-3",children:[c("div",{className:"w-5 h-5 bg-[#F7B500] rounded-full flex items-center justify-center flex-shrink-0",children:c("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),c("div",{className:"flex-1",children:[c("div",{className:"text-text-primary font-semibold text-sm",children:i?.title}),c("div",{className:"text-text-secondary text-xs mt-1",children:i?.description??"Please check your connection and try again"})]}),c("button",{onClick:()=>{n(),e?.()},className:"px-4 py-2 bg-primary text-primary-foreground text-sm font-semibold rounded-lg hover:bg-primary/90 transition-colors flex items-center gap-2 flex-shrink-0",children:[c("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,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"})}),"Retry"]})]})}):o&&s&&!i?.title||!r&&!t&&!a||!o&&!i?.title?null:c("div",{className:K("mx-4 mb-3 p-2 bg-surface border border-border-subtle rounded-lg transition-opacity duration-500",A),children:c("div",{className:"flex items-center gap-3",children:[c("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center flex-shrink-0",children:c("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),c("div",{className:"flex-1",children:[c("div",{className:"text-text-primary font-semibold text-sm",children:s?i?.title:"No internet connection"}),c("div",{className:"text-text-secondary text-xs mt-1",children:s?i?.description??"Please wait while we try to connect":"Please check your internet connection"})]}),!s&&c("div",{className:"flex-shrink-0",children:c("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"})})]})})}const Ub=Object.freeze(Object.defineProperty({__proto__:null,ConnectionStatus:Fb},Symbol.toStringTag,{value:"Module"}));var Ba=function(A,e){return Ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Ba(A,e)};function Oe(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ba(A,e);function t(){this.constructor=A}A.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ma=function(){return ma=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ma.apply(this,arguments)};function le(A,e,t,r){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(d){try{l(r.next(d))}catch(u){o(u)}}function a(d){try{l(r.throw(d))}catch(u){o(u)}}function l(d){d.done?i(d.value):n(d.value).then(s,a)}l((r=r.apply(A,[])).next())})}function ie(A,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(d){return a([l,d])}}function a(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(A,t)}catch(d){l=[6,d],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function $S(A,e,t){if(arguments.length===2)for(var r=0,n=e.length,i;r<n;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return A.concat(i||e)}for(var it=(function(){function A(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),yi=function(A,e){return it.fromClientRect(A,e.getBoundingClientRect())},xb=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new it(0,0,r,n)},Ei=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);(i&64512)===56320?e.push(((n&1023)<<10)+(i&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},VA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},ah="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sb=typeof Uint8Array>"u"?[]:new Uint8Array(256),vi=0;vi<ah.length;vi++)Sb[ah.charCodeAt(vi)]=vi;for(var lh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hn=typeof Uint8Array>"u"?[]:new Uint8Array(256),bi=0;bi<lh.length;bi++)hn[lh.charCodeAt(bi)]=bi;for(var _b=function(A){var e=A.length*.75,t=A.length,r,n=0,i,o,s,a;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)i=hn[A.charCodeAt(r)],o=hn[A.charCodeAt(r+1)],s=hn[A.charCodeAt(r+2)],a=hn[A.charCodeAt(r+3)],d[n++]=i<<2|o>>4,d[n++]=(o&15)<<4|s>>2,d[n++]=(s&3)<<6|a&63;return l},Ib=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},Tb=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Rt=5,wa=11,Ca=2,Nb=wa-Rt,ch=65536>>Rt,kb=1<<Rt,ya=kb-1,Hb=1024>>Rt,Lb=ch+Hb,Mb=Lb,Ob=32,Rb=Mb+Ob,Db=65536>>wa,Pb=1<<Nb,Kb=Pb-1,uh=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Vb=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},Gb=function(A,e){var t=_b(A),r=Array.isArray(t)?Tb(t):new Uint32Array(t),n=Array.isArray(t)?Ib(t):new Uint16Array(t),i=24,o=uh(n,i/2,r[4]/2),s=r[5]===2?uh(n,(i+r[4])/2):Vb(r,Math.ceil((i+r[4])/4));return new zb(r[0],r[1],r[2],r[3],o,s)},zb=(function(){function A(e,t,r,n,i,o){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Rt],t=(t<<Ca)+(e&ya),this.data[t];if(e<=65535)return t=this.index[ch+(e-55296>>Rt)],t=(t<<Ca)+(e&ya),this.data[t];if(e<this.highStart)return t=Rb-Db+(e>>wa),t=this.index[t],t+=e>>Rt&Kb,t=this.index[t],t=(t<<Ca)+(e&ya),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),dh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wb=typeof Uint8Array>"u"?[]:new Uint8Array(256),Qi=0;Qi<dh.length;Qi++)Wb[dh.charCodeAt(Qi)]=Qi;var Xb="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",fh=50,Yb=1,hh=2,gh=3,jb=4,Jb=5,ph=7,Bh=8,mh=9,Et=10,Ea=11,wh=12,va=13,$b=14,gn=15,ba=16,Fi=17,pn=18,qb=19,Ch=20,Qa=21,Bn=22,Fa=23,ur=24,ye=25,mn=26,wn=27,dr=28,Zb=29,Dt=30,AQ=31,Ui=32,xi=33,Ua=34,xa=35,Sa=36,Cn=37,_a=38,Si=39,_i=40,Ia=41,yh=42,eQ=43,tQ=[9001,65288],Eh="!",pA="×",Ii="÷",Ta=Gb(Xb),ot=[Dt,Sa],Na=[Yb,hh,gh,Jb],vh=[Et,Bh],bh=[wn,mn],rQ=Na.concat(vh),Qh=[_a,Si,_i,Ua,xa],nQ=[gn,va],iQ=function(A,e){e===void 0&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(i,o){var s=Ta.get(i);if(s>fh?(n.push(!0),s-=fh):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(o),t.push(ba);if(s===jb||s===Ea){if(o===0)return r.push(o),t.push(Dt);var a=t[o-1];return rQ.indexOf(a)===-1?(r.push(r[o-1]),t.push(a)):(r.push(o),t.push(Dt))}if(r.push(o),s===AQ)return t.push(e==="strict"?Qa:Cn);if(s===yh||s===Zb)return t.push(Dt);if(s===eQ)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(Cn):t.push(Dt);t.push(s)}),[r,t,n]},ka=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var i=t;i<=r.length;){i++;var o=r[i];if(o===e)return!0;if(o!==Et)break}if(n===Et)for(var i=t;i>0;){i--;var s=r[i];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s)for(var a=t;a<=r.length;){a++;var o=r[a];if(o===e)return!0;if(o!==Et)break}if(s!==Et)break}return!1},Fh=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r===Et)t--;else return r}return 0},oQ=function(A,e,t,r,n){if(t[r]===0)return pA;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return pA;var o=i-1,s=i+1,a=e[i],l=o>=0?e[o]:0,d=e[s];if(a===hh&&d===gh)return pA;if(Na.indexOf(a)!==-1)return Eh;if(Na.indexOf(d)!==-1||vh.indexOf(d)!==-1)return pA;if(Fh(i,e)===Bh)return Ii;if(Ta.get(A[i])===Ea||(a===Ui||a===xi)&&Ta.get(A[s])===Ea||a===ph||d===ph||a===mh||[Et,va,gn].indexOf(a)===-1&&d===mh||[Fi,pn,qb,ur,dr].indexOf(d)!==-1||Fh(i,e)===Bn||ka(Fa,Bn,i,e)||ka([Fi,pn],Qa,i,e)||ka(wh,wh,i,e))return pA;if(a===Et)return Ii;if(a===Fa||d===Fa)return pA;if(d===ba||a===ba)return Ii;if([va,gn,Qa].indexOf(d)!==-1||a===$b||l===Sa&&nQ.indexOf(a)!==-1||a===dr&&d===Sa||d===Ch||ot.indexOf(d)!==-1&&a===ye||ot.indexOf(a)!==-1&&d===ye||a===wn&&[Cn,Ui,xi].indexOf(d)!==-1||[Cn,Ui,xi].indexOf(a)!==-1&&d===mn||ot.indexOf(a)!==-1&&bh.indexOf(d)!==-1||bh.indexOf(a)!==-1&&ot.indexOf(d)!==-1||[wn,mn].indexOf(a)!==-1&&(d===ye||[Bn,gn].indexOf(d)!==-1&&e[s+1]===ye)||[Bn,gn].indexOf(a)!==-1&&d===ye||a===ye&&[ye,dr,ur].indexOf(d)!==-1)return pA;if([ye,dr,ur,Fi,pn].indexOf(d)!==-1)for(var u=i;u>=0;){var h=e[u];if(h===ye)return pA;if([dr,ur].indexOf(h)!==-1)u--;else break}if([wn,mn].indexOf(d)!==-1)for(var u=[Fi,pn].indexOf(a)!==-1?o:i;u>=0;){var h=e[u];if(h===ye)return pA;if([dr,ur].indexOf(h)!==-1)u--;else break}if(_a===a&&[_a,Si,Ua,xa].indexOf(d)!==-1||[Si,Ua].indexOf(a)!==-1&&[Si,_i].indexOf(d)!==-1||[_i,xa].indexOf(a)!==-1&&d===_i||Qh.indexOf(a)!==-1&&[Ch,mn].indexOf(d)!==-1||Qh.indexOf(d)!==-1&&a===wn||ot.indexOf(a)!==-1&&ot.indexOf(d)!==-1||a===ur&&ot.indexOf(d)!==-1||ot.concat(ye).indexOf(a)!==-1&&d===Bn&&tQ.indexOf(A[s])===-1||ot.concat(ye).indexOf(d)!==-1&&a===pn)return pA;if(a===Ia&&d===Ia){for(var f=t[i],g=1;f>0&&(f--,e[f]===Ia);)g++;if(g%2!==0)return pA}return a===Ui&&d===xi?pA:Ii},sQ=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=iQ(A,e.lineBreak),r=t[0],n=t[1],i=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(s){return[ye,Dt,yh].indexOf(s)!==-1?Cn:s}));var o=e.wordBreak==="keep-all"?i.map(function(s,a){return s&&A[a]>=19968&&A[a]<=40959}):void 0;return[r,n,o]},aQ=(function(){function A(e,t,r,n){this.codePoints=e,this.required=t===Eh,this.start=r,this.end=n}return A.prototype.slice=function(){return VA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),lQ=function(A,e){var t=Ei(A),r=sQ(t,e),n=r[0],i=r[1],o=r[2],s=t.length,a=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var d=pA;l<s&&(d=oQ(t,i,n,++l,o))===pA;);if(d!==pA||l===s){var u=new aQ(t,d,a,l);return a=l,{value:u,done:!1}}return{done:!0,value:null}}}},cQ=1,uQ=2,yn=4,Uh=8,Ti=10,xh=47,En=92,dQ=9,fQ=32,Ni=34,vn=61,hQ=35,gQ=36,pQ=37,ki=39,Hi=40,bn=41,BQ=95,ge=45,mQ=33,wQ=60,CQ=62,yQ=64,EQ=91,vQ=93,bQ=61,QQ=123,Li=63,FQ=125,Sh=124,UQ=126,xQ=128,_h=65533,Ha=42,Pt=43,SQ=44,_Q=58,IQ=59,Qn=46,TQ=0,NQ=8,kQ=11,HQ=14,LQ=31,MQ=127,We=-1,Ih=48,Th=97,Nh=101,OQ=102,RQ=117,DQ=122,kh=65,Hh=69,Lh=70,PQ=85,KQ=90,oe=function(A){return A>=Ih&&A<=57},VQ=function(A){return A>=55296&&A<=57343},fr=function(A){return oe(A)||A>=kh&&A<=Lh||A>=Th&&A<=OQ},GQ=function(A){return A>=Th&&A<=DQ},zQ=function(A){return A>=kh&&A<=KQ},WQ=function(A){return GQ(A)||zQ(A)},XQ=function(A){return A>=xQ},Mi=function(A){return A===Ti||A===dQ||A===fQ},Oi=function(A){return WQ(A)||XQ(A)||A===BQ},Mh=function(A){return Oi(A)||oe(A)||A===ge},YQ=function(A){return A>=TQ&&A<=NQ||A===kQ||A>=HQ&&A<=LQ||A===MQ},vt=function(A,e){return A!==En?!1:e!==Ti},Ri=function(A,e,t){return A===ge?Oi(e)||vt(e,t):Oi(A)?!0:!!(A===En&&vt(A,e))},La=function(A,e,t){return A===Pt||A===ge?oe(e)?!0:e===Qn&&oe(t):oe(A===Qn?e:A)},jQ=function(A){var e=0,t=1;(A[e]===Pt||A[e]===ge)&&(A[e]===ge&&(t=-1),e++);for(var r=[];oe(A[e]);)r.push(A[e++]);var n=r.length?parseInt(VA.apply(void 0,r),10):0;A[e]===Qn&&e++;for(var i=[];oe(A[e]);)i.push(A[e++]);var o=i.length,s=o?parseInt(VA.apply(void 0,i),10):0;(A[e]===Hh||A[e]===Nh)&&e++;var a=1;(A[e]===Pt||A[e]===ge)&&(A[e]===ge&&(a=-1),e++);for(var l=[];oe(A[e]);)l.push(A[e++]);var d=l.length?parseInt(VA.apply(void 0,l),10):0;return t*(n+s*Math.pow(10,-o))*Math.pow(10,a*d)},JQ={type:2},$Q={type:3},qQ={type:4},ZQ={type:13},A1={type:8},e1={type:21},t1={type:9},r1={type:10},n1={type:11},i1={type:12},o1={type:14},Di={type:23},s1={type:1},a1={type:25},l1={type:24},c1={type:26},u1={type:27},d1={type:28},f1={type:29},h1={type:31},Ma={type:32},Oh=(function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(Ei(e))},A.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Ma;)e.push(t),t=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Ni:return this.consumeStringToken(Ni);case hQ:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Mh(t)||vt(r,n)){var i=Ri(t,r,n)?uQ:cQ,o=this.consumeName();return{type:5,value:o,flags:i}}break;case gQ:if(this.peekCodePoint(0)===vn)return this.consumeCodePoint(),ZQ;break;case ki:return this.consumeStringToken(ki);case Hi:return JQ;case bn:return $Q;case Ha:if(this.peekCodePoint(0)===vn)return this.consumeCodePoint(),o1;break;case Pt:if(La(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case SQ:return qQ;case ge:var s=e,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(La(s,a,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Ri(s,a,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===ge&&l===CQ)return this.consumeCodePoint(),this.consumeCodePoint(),l1;break;case Qn:if(La(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case xh:if(this.peekCodePoint(0)===Ha)for(this.consumeCodePoint();;){var d=this.consumeCodePoint();if(d===Ha&&(d=this.consumeCodePoint(),d===xh))return this.consumeToken();if(d===We)return this.consumeToken()}break;case _Q:return c1;case IQ:return u1;case wQ:if(this.peekCodePoint(0)===mQ&&this.peekCodePoint(1)===ge&&this.peekCodePoint(2)===ge)return this.consumeCodePoint(),this.consumeCodePoint(),a1;break;case yQ:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Ri(u,h,f)){var o=this.consumeName();return{type:7,value:o}}break;case EQ:return d1;case En:if(vt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case vQ:return f1;case bQ:if(this.peekCodePoint(0)===vn)return this.consumeCodePoint(),A1;break;case QQ:return n1;case FQ:return i1;case RQ:case PQ:var g=this.peekCodePoint(0),p=this.peekCodePoint(1);return g===Pt&&(fr(p)||p===Li)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Sh:if(this.peekCodePoint(0)===vn)return this.consumeCodePoint(),t1;if(this.peekCodePoint(0)===Sh)return this.consumeCodePoint(),e1;break;case UQ:if(this.peekCodePoint(0)===vn)return this.consumeCodePoint(),r1;break;case We:return Ma}return Mi(e)?(this.consumeWhiteSpace(),h1):oe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Oi(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:VA(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();fr(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===Li&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(VA.apply(void 0,e.map(function(a){return a===Li?Ih:a})),16),i=parseInt(VA.apply(void 0,e.map(function(a){return a===Li?Lh:a})),16);return{type:30,start:n,end:i}}var o=parseInt(VA.apply(void 0,e),16);if(this.peekCodePoint(0)===ge&&fr(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];fr(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var i=parseInt(VA.apply(void 0,s),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Hi?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Hi?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===We)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===ki||t===Ni){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===bn)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Di)}for(;;){var n=this.consumeCodePoint();if(n===We||n===bn)return{type:22,value:VA.apply(void 0,e)};if(Mi(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===bn?(this.consumeCodePoint(),{type:22,value:VA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Di);if(n===Ni||n===ki||n===Hi||YQ(n))return this.consumeBadUrlRemnants(),Di;if(n===En)if(vt(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Di;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Mi(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===bn||e===We)return;vt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var n=Math.min(t,e);r+=VA.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(e){var t="",r=0;do{var n=this._value[r];if(n===We||n===void 0||n===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===Ti)return this._value.splice(0,r),s1;if(n===En){var i=this._value[r+1];i!==We&&i!==void 0&&(i===Ti?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):vt(n,i)&&(t+=this.consumeStringSlice(r),t+=VA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var e=[],t=yn,r=this.peekCodePoint(0);for((r===Pt||r===ge)&&e.push(this.consumeCodePoint());oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Qn&&oe(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Uh;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Hh||r===Nh)&&((n===Pt||n===ge)&&oe(i)||oe(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Uh;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[jQ(e),t]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(Ri(n,i,o)){var s=this.consumeName();return{type:15,number:t,flags:r,unit:s}}return n===pQ?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(fr(e)){for(var t=VA(e);fr(this.peekCodePoint(0))&&t.length<6;)t+=VA(this.consumeCodePoint());Mi(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||VQ(r)||r>1114111?_h:r}return e===We?_h:e},A.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(Mh(t))e+=VA(t);else if(vt(t,this.peekCodePoint(0)))e+=VA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},A})(),Rh=(function(){function A(e){this._tokens=e}return A.create=function(e){var t=new Oh;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||p1(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Ma:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A})(),Fn=function(A){return A.type===15},hr=function(A){return A.type===17},FA=function(A){return A.type===20},g1=function(A){return A.type===0},Oa=function(A,e){return FA(A)&&A.value===e},Dh=function(A){return A.type!==31},gr=function(A){return A.type!==31&&A.type!==4},Xe=function(A){var e=[],t=[];return A.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},p1=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},bt=function(A){return A.type===17||A.type===15},WA=function(A){return A.type===16||bt(A)},Ph=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},ee={type:17,number:0,flags:yn},Ra={type:16,number:50,flags:yn},Qt={type:16,number:100,flags:yn},Un=function(A,e,t){var r=A[0],n=A[1];return[IA(r,e),IA(typeof n<"u"?n:r,t)]},IA=function(A,e){if(A.type===16)return A.number/100*e;if(Fn(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},Kh="deg",Vh="grad",Gh="rad",zh="turn",Pi={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case Kh:return Math.PI*e.number/180;case Vh:return Math.PI/200*e.number;case Gh:return e.number;case zh:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Wh=function(A){return A.type===15&&(A.unit===Kh||A.unit===Vh||A.unit===Gh||A.unit===zh)},Xh=function(A){var e=A.filter(FA).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ee,ee];case"to top":case"bottom":return xe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ee,Qt];case"to right":case"left":return xe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Qt,Qt];case"to bottom":case"top":return xe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Qt,ee];case"to left":case"right":return xe(270)}return 0},xe=function(A){return Math.PI*A/180},Ft={name:"color",parse:function(A,e){if(e.type===18){var t=B1[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3);return xt(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3),o=e.value.substring(3,4);return xt(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6);return xt(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return xt(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(o,16)/255)}}if(e.type===20){var s=st[e.value.toUpperCase()];if(typeof s<"u")return s}return st.TRANSPARENT}},Ut=function(A){return(255&A)===0},qA=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},xt=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},Yh=function(A,e){if(A.type===17)return A.number;if(A.type===16){var t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},jh=function(A,e){var t=e.filter(gr);if(t.length===3){var r=t.map(Yh),n=r[0],i=r[1],o=r[2];return xt(n,i,o,1)}if(t.length===4){var s=t.map(Yh),n=s[0],i=s[1],o=s[2],a=s[3];return xt(n,i,o,a)}return 0};function Da(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<.16666666666666666?(e-A)*t*6+A:t<.5?e:t<.6666666666666666?(e-A)*6*(.6666666666666666-t)+A:A}var Jh=function(A,e){var t=e.filter(gr),r=t[0],n=t[1],i=t[2],o=t[3],s=(r.type===17?xe(r.number):Pi.parse(A,r))/(Math.PI*2),a=WA(n)?n.number/100:0,l=WA(i)?i.number/100:0,d=typeof o<"u"&&WA(o)?IA(o,1):1;if(a===0)return xt(l*255,l*255,l*255,1);var u=l<=.5?l*(a+1):l+a-l*a,h=l*2-u,f=Da(h,u,s+1/3),g=Da(h,u,s),p=Da(h,u,s-1/3);return xt(f*255,g*255,p*255,d)},B1={hsl:Jh,hsla:Jh,rgb:jh,rgba:jh},xn=function(A,e){return Ft.parse(A,Rh.create(e).parseComponentValue())},st={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},m1={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(FA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},w1={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ki=function(A,e){var t=Ft.parse(A,e[0]),r=e[1];return r&&WA(r)?{color:t,stop:r}:{color:t,stop:null}},$h=function(A,e){var t=A[0],r=A[A.length-1];t.stop===null&&(t.stop=ee),r.stop===null&&(r.stop=Qt);for(var n=[],i=0,o=0;o<A.length;o++){var s=A[o].stop;if(s!==null){var a=IA(s,e);a>i?n.push(a):n.push(i),i=a}else n.push(null)}for(var l=null,o=0;o<n.length;o++){var d=n[o];if(d===null)l===null&&(l=o);else if(l!==null){for(var u=o-l,h=n[l-1],f=(d-h)/(u+1),g=1;g<=u;g++)n[l+g-1]=f*g;l=null}}return A.map(function(p,w){var m=p.color;return{color:m,stop:Math.max(Math.min(1,n[w]/e),0)}})},C1=function(A,e,t){var r=e/2,n=t/2,i=IA(A[0],e)-r,o=n-IA(A[1],t);return(Math.atan2(o,i)+Math.PI*2)%(Math.PI*2)},y1=function(A,e,t){var r=typeof A=="number"?A:C1(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),i=e/2,o=t/2,s=n/2,a=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[n,i-l,i+l,o-a,o+a]},Re=function(A,e){return Math.sqrt(A*A+e*e)},qh=function(A,e,t,r,n){var i=[[0,0],[0,e],[A,0],[A,e]];return i.reduce(function(o,s){var a=s[0],l=s[1],d=Re(t-a,r-l);return(n?d<o.optimumDistance:d>o.optimumDistance)?{optimumCorner:s,optimumDistance:d}:o},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},E1=function(A,e,t,r,n){var i=0,o=0;switch(A.size){case 0:A.shape===0?i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(A.shape===0)i=o=Math.min(Re(e,t),Re(e,t-n),Re(e-r,t),Re(e-r,t-n));else if(A.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),a=qh(r,n,e,t,!0),l=a[0],d=a[1];i=Re(l-e,(d-t)/s),o=s*i}break;case 1:A.shape===0?i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(A.shape===0)i=o=Math.max(Re(e,t),Re(e,t-n),Re(e-r,t),Re(e-r,t-n));else if(A.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r)),u=qh(r,n,e,t,!1),l=u[0],d=u[1];i=Re(l-e,(d-t)/s),o=s*i}break}return Array.isArray(A.size)&&(i=IA(A.size[0],r),o=A.size.length===2?IA(A.size[1],n):i),[i,o]},v1=function(A,e){var t=xe(180),r=[];return Xe(e).forEach(function(n,i){if(i===0){var o=n[0];if(o.type===20&&o.value==="to"){t=Xh(n);return}else if(Wh(o)){t=Pi.parse(A,o);return}}var s=Ki(A,n);r.push(s)}),{angle:t,stops:r,type:1}},Vi=function(A,e){var t=xe(180),r=[];return Xe(e).forEach(function(n,i){if(i===0){var o=n[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){t=Xh(n);return}else if(Wh(o)){t=(Pi.parse(A,o)+xe(270))%xe(360);return}}var s=Ki(A,n);r.push(s)}),{angle:t,stops:r,type:1}},b1=function(A,e){var t=xe(180),r=[],n=1,i=0,o=3,s=[];return Xe(e).forEach(function(a,l){var d=a[0];if(l===0){if(FA(d)&&d.value==="linear"){n=1;return}else if(FA(d)&&d.value==="radial"){n=2;return}}if(d.type===18){if(d.name==="from"){var u=Ft.parse(A,d.values[0]);r.push({stop:ee,color:u})}else if(d.name==="to"){var u=Ft.parse(A,d.values[0]);r.push({stop:Qt,color:u})}else if(d.name==="color-stop"){var h=d.values.filter(gr);if(h.length===2){var u=Ft.parse(A,h[1]),f=h[0];hr(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:u})}}}}),n===1?{angle:(t+xe(180))%xe(360),stops:r,type:n}:{size:o,shape:i,stops:r,position:s,type:n}},Zh="closest-side",Ag="farthest-side",eg="closest-corner",tg="farthest-corner",rg="circle",ng="ellipse",ig="cover",og="contain",Q1=function(A,e){var t=0,r=3,n=[],i=[];return Xe(e).forEach(function(o,s){var a=!0;if(s===0){var l=!1;a=o.reduce(function(u,h){if(l)if(FA(h))switch(h.value){case"center":return i.push(Ra),u;case"top":case"left":return i.push(ee),u;case"right":case"bottom":return i.push(Qt),u}else(WA(h)||bt(h))&&i.push(h);else if(FA(h))switch(h.value){case rg:return t=0,!1;case ng:return t=1,!1;case"at":return l=!0,!1;case Zh:return r=0,!1;case ig:case Ag:return r=1,!1;case og:case eg:return r=2,!1;case tg:return r=3,!1}else if(bt(h)||WA(h))return Array.isArray(r)||(r=[]),r.push(h),!1;return u},a)}if(a){var d=Ki(A,o);n.push(d)}}),{size:r,shape:t,stops:n,position:i,type:2}},Gi=function(A,e){var t=0,r=3,n=[],i=[];return Xe(e).forEach(function(o,s){var a=!0;if(s===0?a=o.reduce(function(d,u){if(FA(u))switch(u.value){case"center":return i.push(Ra),!1;case"top":case"left":return i.push(ee),!1;case"right":case"bottom":return i.push(Qt),!1}else if(WA(u)||bt(u))return i.push(u),!1;return d},a):s===1&&(a=o.reduce(function(d,u){if(FA(u))switch(u.value){case rg:return t=0,!1;case ng:return t=1,!1;case og:case Zh:return r=0,!1;case Ag:return r=1,!1;case eg:return r=2,!1;case ig:case tg:return r=3,!1}else if(bt(u)||WA(u))return Array.isArray(r)||(r=[]),r.push(u),!1;return d},a)),a){var l=Ki(A,o);n.push(l)}}),{size:r,shape:t,stops:n,position:i,type:2}},F1=function(A){return A.type===1},U1=function(A){return A.type===2},Pa={name:"image",parse:function(A,e){if(e.type===22){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){var r=sg[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function x1(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!sg[A.name])}var sg={"linear-gradient":v1,"-moz-linear-gradient":Vi,"-ms-linear-gradient":Vi,"-o-linear-gradient":Vi,"-webkit-linear-gradient":Vi,"radial-gradient":Q1,"-moz-radial-gradient":Gi,"-ms-radial-gradient":Gi,"-o-radial-gradient":Gi,"-webkit-radial-gradient":Gi,"-webkit-gradient":b1},S1={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return gr(r)&&x1(r)}).map(function(r){return Pa.parse(A,r)})}},_1={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(FA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},I1={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Xe(e).map(function(t){return t.filter(WA)}).map(Ph)}},T1={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Xe(e).map(function(t){return t.filter(FA).map(function(r){return r.value}).join(" ")}).map(N1)}},N1=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},pr;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(pr||(pr={}));var k1={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Xe(e).map(function(t){return t.filter(H1)})}},H1=function(A){return FA(A)||WA(A)},zi=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},L1=zi("top"),M1=zi("right"),O1=zi("bottom"),R1=zi("left"),Wi=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Ph(t.filter(WA))}}},D1=Wi("top-left"),P1=Wi("top-right"),K1=Wi("bottom-right"),V1=Wi("bottom-left"),Xi=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},G1=Xi("top"),z1=Xi("right"),W1=Xi("bottom"),X1=Xi("left"),Yi=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Fn(t)?t.number:0}}},Y1=Yi("top"),j1=Yi("right"),J1=Yi("bottom"),$1=Yi("left"),q1={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Z1={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},AF={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(FA).reduce(function(t,r){return t|eF(r.value)},0)}},eF=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},tF={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},rF={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},ji;(function(A){A.NORMAL="normal",A.STRICT="strict"})(ji||(ji={}));var nF={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return ji.STRICT;case"normal":default:return ji.NORMAL}}},iF={name:"line-height",initialValue:"normal",prefix:!1,type:4},ag=function(A,e){return FA(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:WA(A)?IA(A,e):e},oF={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:Pa.parse(A,e)}},sF={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Ka={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ji=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},aF=Ji("top"),lF=Ji("right"),cF=Ji("bottom"),uF=Ji("left"),dF={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(FA).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},fF={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},$i=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},hF=$i("top"),gF=$i("right"),pF=$i("bottom"),BF=$i("left"),mF={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},wF={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},CF={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Oa(e[0],"none")?[]:Xe(e).map(function(t){for(var r={color:st.TRANSPARENT,offsetX:ee,offsetY:ee,blur:ee},n=0,i=0;i<t.length;i++){var o=t[i];bt(o)?(n===0?r.offsetX=o:n===1?r.offsetY=o:r.blur=o,n++):r.color=Ft.parse(A,o)}return r})}},yF={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},EF={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=QF[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},vF=function(A){var e=A.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},bF=function(A){var e=A.filter(function(a){return a.type===17}).map(function(a){return a.number}),t=e[0],r=e[1],n=e[4],i=e[5],o=e[12],s=e[13];return e.length===16?[t,r,n,i,o,s]:null},QF={matrix:vF,matrix3d:bF},lg={type:16,number:50,flags:yn},FF=[lg,lg],UF={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(WA);return t.length!==2?FF:[t[0],t[1]]}},xF={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Sn;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(Sn||(Sn={}));for(var SF={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return Sn.BREAK_ALL;case"keep-all":return Sn.KEEP_ALL;case"normal":default:return Sn.NORMAL}}},_F={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(hr(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},cg={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},IF={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return hr(e)?e.number:1}},TF={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},NF={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(FA).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},kF={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},HF={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},LF={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){if(hr(e))return e.number;if(FA(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},MF={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(FA).map(function(t){return t.value})}},OF={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},YA=function(A,e){return(A&e)!==0},RF={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},DF={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=e.filter(Dh),i=0;i<n.length;i++){var o=n[i],s=n[i+1];if(o.type===20){var a=s&&hr(s)?s.number:1;r.push({counter:o.value,increment:a})}}return r}},PF={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var t=[],r=e.filter(Dh),n=0;n<r.length;n++){var i=r[n],o=r[n+1];if(FA(i)&&i.value!=="none"){var s=o&&hr(o)?o.number:0;t.push({counter:i.value,reset:s})}}return t}},KF={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Fn).map(function(t){return cg.parse(A,t)})}},VF={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var r=[],n=e.filter(g1);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var o=n[i].value,s=n[i+1].value;r.push({open:o,close:s})}return r}},ug=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},GF={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Oa(e[0],"none")?[]:Xe(e).map(function(t){for(var r={color:255,offsetX:ee,offsetY:ee,blur:ee,spread:ee,inset:!1},n=0,i=0;i<t.length;i++){var o=t[i];Oa(o,"inset")?r.inset=!0:bt(o)?(n===0?r.offsetX=o:n===1?r.offsetY=o:n===2?r.blur=o:r.spread=o,n++):r.color=Ft.parse(A,o)}return r})}},zF={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(FA).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},WF={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},XF={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Fn(e)?e.number:0}},YF=(function(){function A(e,t){var r,n;this.animationDuration=Y(e,KF,t.animationDuration),this.backgroundClip=Y(e,m1,t.backgroundClip),this.backgroundColor=Y(e,w1,t.backgroundColor),this.backgroundImage=Y(e,S1,t.backgroundImage),this.backgroundOrigin=Y(e,_1,t.backgroundOrigin),this.backgroundPosition=Y(e,I1,t.backgroundPosition),this.backgroundRepeat=Y(e,T1,t.backgroundRepeat),this.backgroundSize=Y(e,k1,t.backgroundSize),this.borderTopColor=Y(e,L1,t.borderTopColor),this.borderRightColor=Y(e,M1,t.borderRightColor),this.borderBottomColor=Y(e,O1,t.borderBottomColor),this.borderLeftColor=Y(e,R1,t.borderLeftColor),this.borderTopLeftRadius=Y(e,D1,t.borderTopLeftRadius),this.borderTopRightRadius=Y(e,P1,t.borderTopRightRadius),this.borderBottomRightRadius=Y(e,K1,t.borderBottomRightRadius),this.borderBottomLeftRadius=Y(e,V1,t.borderBottomLeftRadius),this.borderTopStyle=Y(e,G1,t.borderTopStyle),this.borderRightStyle=Y(e,z1,t.borderRightStyle),this.borderBottomStyle=Y(e,W1,t.borderBottomStyle),this.borderLeftStyle=Y(e,X1,t.borderLeftStyle),this.borderTopWidth=Y(e,Y1,t.borderTopWidth),this.borderRightWidth=Y(e,j1,t.borderRightWidth),this.borderBottomWidth=Y(e,J1,t.borderBottomWidth),this.borderLeftWidth=Y(e,$1,t.borderLeftWidth),this.boxShadow=Y(e,GF,t.boxShadow),this.color=Y(e,q1,t.color),this.direction=Y(e,Z1,t.direction),this.display=Y(e,AF,t.display),this.float=Y(e,tF,t.cssFloat),this.fontFamily=Y(e,kF,t.fontFamily),this.fontSize=Y(e,HF,t.fontSize),this.fontStyle=Y(e,OF,t.fontStyle),this.fontVariant=Y(e,MF,t.fontVariant),this.fontWeight=Y(e,LF,t.fontWeight),this.letterSpacing=Y(e,rF,t.letterSpacing),this.lineBreak=Y(e,nF,t.lineBreak),this.lineHeight=Y(e,iF,t.lineHeight),this.listStyleImage=Y(e,oF,t.listStyleImage),this.listStylePosition=Y(e,sF,t.listStylePosition),this.listStyleType=Y(e,Ka,t.listStyleType),this.marginTop=Y(e,aF,t.marginTop),this.marginRight=Y(e,lF,t.marginRight),this.marginBottom=Y(e,cF,t.marginBottom),this.marginLeft=Y(e,uF,t.marginLeft),this.opacity=Y(e,IF,t.opacity);var i=Y(e,dF,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Y(e,fF,t.overflowWrap),this.paddingTop=Y(e,hF,t.paddingTop),this.paddingRight=Y(e,gF,t.paddingRight),this.paddingBottom=Y(e,pF,t.paddingBottom),this.paddingLeft=Y(e,BF,t.paddingLeft),this.paintOrder=Y(e,zF,t.paintOrder),this.position=Y(e,wF,t.position),this.textAlign=Y(e,mF,t.textAlign),this.textDecorationColor=Y(e,TF,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=Y(e,NF,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=Y(e,CF,t.textShadow),this.textTransform=Y(e,yF,t.textTransform),this.transform=Y(e,EF,t.transform),this.transformOrigin=Y(e,UF,t.transformOrigin),this.visibility=Y(e,xF,t.visibility),this.webkitTextStrokeColor=Y(e,WF,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Y(e,XF,t.webkitTextStrokeWidth),this.wordBreak=Y(e,SF,t.wordBreak),this.zIndex=Y(e,_F,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Ut(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return YA(this.display,4)||YA(this.display,33554432)||YA(this.display,268435456)||YA(this.display,536870912)||YA(this.display,67108864)||YA(this.display,134217728)},A})(),jF=(function(){function A(e,t){this.content=Y(e,RF,t.content),this.quotes=Y(e,VF,t.quotes)}return A})(),dg=(function(){function A(e,t){this.counterIncrement=Y(e,DF,t.counterIncrement),this.counterReset=Y(e,PF,t.counterReset)}return A})(),Y=function(A,e,t){var r=new Oh,n=t!==null&&typeof t<"u"?t.toString():e.initialValue;r.write(n);var i=new Rh(r.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(A,FA(o)?o.value:e.initialValue);case 0:return e.parse(A,i.parseComponentValue());case 1:return e.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Pi.parse(A,i.parseComponentValue());case"color":return Ft.parse(A,i.parseComponentValue());case"image":return Pa.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return bt(s)?s:ee;case"length-percentage":var a=i.parseComponentValue();return WA(a)?a:ee;case"time":return cg.parse(A,i.parseComponentValue())}break}},JF="data-html2canvas-debug",$F=function(A){var e=A.getAttribute(JF);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Va=function(A,e){var t=$F(A);return t===1||e===t},Ye=(function(){function A(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Va(t,3),this.styles=new YF(e,window.getComputedStyle(t,null)),rl(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=yi(this.context,t),Va(t,4)&&(this.flags|=16)}return A})(),qF="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",fg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_n=typeof Uint8Array>"u"?[]:new Uint8Array(256),qi=0;qi<fg.length;qi++)_n[fg.charCodeAt(qi)]=qi;for(var ZF=function(A){var e=A.length*.75,t=A.length,r,n=0,i,o,s,a;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),d=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)i=_n[A.charCodeAt(r)],o=_n[A.charCodeAt(r+1)],s=_n[A.charCodeAt(r+2)],a=_n[A.charCodeAt(r+3)],d[n++]=i<<2|o>>4,d[n++]=(o&15)<<4|s>>2,d[n++]=(s&3)<<6|a&63;return l},AU=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},eU=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Kt=5,Ga=11,za=2,tU=Ga-Kt,hg=65536>>Kt,rU=1<<Kt,Wa=rU-1,nU=1024>>Kt,iU=hg+nU,oU=iU,sU=32,aU=oU+sU,lU=65536>>Ga,cU=1<<tU,uU=cU-1,gg=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},dU=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},fU=function(A,e){var t=ZF(A),r=Array.isArray(t)?eU(t):new Uint32Array(t),n=Array.isArray(t)?AU(t):new Uint16Array(t),i=24,o=gg(n,i/2,r[4]/2),s=r[5]===2?gg(n,(i+r[4])/2):dU(r,Math.ceil((i+r[4])/4));return new hU(r[0],r[1],r[2],r[3],o,s)},hU=(function(){function A(e,t,r,n,i,o){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Kt],t=(t<<za)+(e&Wa),this.data[t];if(e<=65535)return t=this.index[hg+(e-55296>>Kt)],t=(t<<za)+(e&Wa),this.data[t];if(e<this.highStart)return t=aU-lU+(e>>Ga),t=this.index[t],t+=e>>Kt&uU,t=this.index[t],t=(t<<za)+(e&Wa),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),pg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gU=typeof Uint8Array>"u"?[]:new Uint8Array(256),Zi=0;Zi<pg.length;Zi++)gU[pg.charCodeAt(Zi)]=Zi;var pU=1,Xa=2,Ya=3,Bg=4,mg=5,BU=7,wg=8,ja=9,Ja=10,Cg=11,yg=12,Eg=13,vg=14,$a=15,mU=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);(i&64512)===56320?e.push(((n&1023)<<10)+(i&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},wU=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},CU=fU(qF),Se="×",qa="÷",yU=function(A){return CU.get(A)},EU=function(A,e,t){var r=t-2,n=e[r],i=e[t-1],o=e[t];if(i===Xa&&o===Ya)return Se;if(i===Xa||i===Ya||i===Bg||o===Xa||o===Ya||o===Bg)return qa;if(i===wg&&[wg,ja,Cg,yg].indexOf(o)!==-1||(i===Cg||i===ja)&&(o===ja||o===Ja)||(i===yg||i===Ja)&&o===Ja||o===Eg||o===mg||o===BU||i===pU)return Se;if(i===Eg&&o===vg){for(;n===mg;)n=e[--r];if(n===vg)return Se}if(i===$a&&o===$a){for(var s=0;n===$a;)s++,n=e[--r];if(s%2===0)return Se}return qa},vU=function(A){var e=mU(A),t=e.length,r=0,n=0,i=e.map(yU);return{next:function(){if(r>=t)return{done:!0,value:null};for(var o=Se;r<t&&(o=EU(e,i,++r))===Se;);if(o!==Se||r===t){var s=wU.apply(null,e.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},bU=function(A){for(var e=vU(A),t=[],r;!(r=e.next()).done;)r.value&&t.push(r.value.slice());return t},QU=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(A.body.removeChild(r),i===e)return!0}}return!1},FU=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=e.firstChild,n=Ei(r.data).map(function(a){return VA(a)}),i=0,o={},s=n.every(function(a,l){t.setStart(r,i),t.setEnd(r,i+a.length);var d=t.getBoundingClientRect();i+=a.length;var u=d.x>o.x||d.y>o.y;return o=d,l===0?!0:u});return A.body.removeChild(e),s},UU=function(){return typeof new Image().crossOrigin<"u"},xU=function(){return typeof new XMLHttpRequest().responseType=="string"},SU=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},bg=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},_U=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=e.toDataURL();n.src=i;var o=Za(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Qg(o).then(function(s){r.drawImage(s,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var l=A.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=t+"px",bg(a)?Qg(Za(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),bg(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Za=function(A,e,t,r,n){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(n),o},Qg=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},te={get SUPPORT_RANGE_BOUNDS(){var A=QU(document);return Object.defineProperty(te,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=te.SUPPORT_RANGE_BOUNDS&&FU(document);return Object.defineProperty(te,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=SU(document);return Object.defineProperty(te,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?_U(document):Promise.resolve(!1);return Object.defineProperty(te,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=UU();return Object.defineProperty(te,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=xU();return Object.defineProperty(te,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(te,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(te,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},In=(function(){function A(e,t){this.text=e,this.bounds=t}return A})(),IU=function(A,e,t,r){var n=kU(e,t),i=[],o=0;return n.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(te.SUPPORT_RANGE_BOUNDS){var a=Fg(r,o,s.length).getClientRects();if(a.length>1){var l=Al(s),d=0;l.forEach(function(h){i.push(new In(h,it.fromDOMRectList(A,Fg(r,d+o,h.length).getClientRects()))),d+=h.length})}else i.push(new In(s,it.fromDOMRectList(A,a)))}else{var u=r.splitText(s.length);i.push(new In(s,TU(A,r))),r=u}else te.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));o+=s.length}),i},TU=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var i=yi(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return it.EMPTY},Fg=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},Al=function(A){if(te.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(t){return t.segment})}return bU(A)},NU=function(A,e){if(te.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(r){return r.segment})}return LU(A,e)},kU=function(A,e){return e.letterSpacing!==0?Al(A):NU(A,e)},HU=[32,160,4961,65792,65793,4153,4241],LU=function(A,e){for(var t=lQ(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],n,i=function(){if(n.value){var o=n.value.slice(),s=Ei(o),a="";s.forEach(function(l){HU.indexOf(l)===-1?a+=VA(l):(a.length&&r.push(a),r.push(VA(l)),a="")}),a.length&&r.push(a)}};!(n=t.next()).done;)i();return r},MU=(function(){function A(e,t,r){this.text=OU(t.data,r.textTransform),this.textBounds=IU(e,this.text,r,t)}return A})(),OU=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(RU,DU);case 2:return A.toUpperCase();default:return A}},RU=/(^|\s|:|-|\(|\))([a-z])/g,DU=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Ug=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return e})(Ye),xg=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return e})(Ye),Sg=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this,i=new XMLSerializer,o=yi(t,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e})(Ye),_g=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e})(Ye),el=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return e})(Ye),PU=[{type:15,flags:0,unit:"px",number:3}],KU=[{type:16,flags:0,number:50}],VU=function(A){return A.width>A.height?new it(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new it(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},GU=function(A){var e=A.type===zU?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},Ao="checkbox",eo="radio",zU="password",Ig=707406591,tl=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=GU(r),(n.type===Ao||n.type===eo)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=VU(n.bounds)),n.type){case Ao:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=PU;break;case eo:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=KU;break}return n}return e})(Ye),Tg=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return e})(Ye),Ng=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e})(Ye),kg=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=Lg(t,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?xn(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):st.TRANSPARENT,o=r.contentWindow.document.body?xn(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):st.TRANSPARENT;n.backgroundColor=Ut(i)?Ut(o)?n.styles.backgroundColor:o:i}}catch{}return n}return e})(Ye),WU=["OL","UL","MENU"],to=function(A,e,t,r){for(var n=e.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,Mg(n)&&n.data.trim().length>0)t.textNodes.push(new MU(A,n,t.styles));else if(Br(n))if(Vg(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return to(A,s,t,r)});else{var o=Hg(A,n);o.styles.isVisible()&&(XU(n,o,r)?o.flags|=4:YU(o.styles)&&(o.flags|=2),WU.indexOf(n.tagName)!==-1&&(o.flags|=8),t.elements.push(o),n.shadowRoot?to(A,n.shadowRoot,o,r):!no(n)&&!Og(n)&&!io(n)&&to(A,n,o,r))}},Hg=function(A,e){return il(e)?new Ug(A,e):Rg(e)?new xg(A,e):Og(e)?new Sg(A,e):jU(e)?new _g(A,e):JU(e)?new el(A,e):$U(e)?new tl(A,e):io(e)?new Tg(A,e):no(e)?new Ng(A,e):Pg(e)?new kg(A,e):new Ye(A,e)},Lg=function(A,e){var t=Hg(A,e);return t.flags|=4,to(A,e,t,t),t},XU=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||nl(A)&&t.styles.isTransparent()},YU=function(A){return A.isPositioned()||A.isFloating()},Mg=function(A){return A.nodeType===Node.TEXT_NODE},Br=function(A){return A.nodeType===Node.ELEMENT_NODE},rl=function(A){return Br(A)&&typeof A.style<"u"&&!ro(A)},ro=function(A){return typeof A.className=="object"},jU=function(A){return A.tagName==="LI"},JU=function(A){return A.tagName==="OL"},$U=function(A){return A.tagName==="INPUT"},qU=function(A){return A.tagName==="HTML"},Og=function(A){return A.tagName==="svg"},nl=function(A){return A.tagName==="BODY"},Rg=function(A){return A.tagName==="CANVAS"},Dg=function(A){return A.tagName==="VIDEO"},il=function(A){return A.tagName==="IMG"},Pg=function(A){return A.tagName==="IFRAME"},Kg=function(A){return A.tagName==="STYLE"},ZU=function(A){return A.tagName==="SCRIPT"},no=function(A){return A.tagName==="TEXTAREA"},io=function(A){return A.tagName==="SELECT"},Vg=function(A){return A.tagName==="SLOT"},Gg=function(A){return A.tagName.indexOf("-")>0},Ax=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},A.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},A.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,i=!0;r!==null&&r.forEach(function(s){var a=t.counters[s.counter];a&&s.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=s.increment)});var o=[];return i&&n.forEach(function(s){var a=t.counters[s.counter];o.push(s.counter),a||(a=t.counters[s.counter]=[]),a.push(s.reset)}),o},A})(),zg={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Wg={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ex={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},tx={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},mr=function(A,e,t,r,n,i){return A<e||A>t?Nn(A,n,i.length>0):r.integers.reduce(function(o,s,a){for(;A>=s;)A-=s,o+=r.values[a];return o},"")+i},Xg=function(A,e,t,r){var n="";do t||A--,n=r(A)+n,A/=e;while(A*e>=e);return n},GA=function(A,e,t,r,n){var i=t-e+1;return(A<0?"-":"")+(Xg(Math.abs(A),i,r,function(o){return VA(Math.floor(o%i)+e)})+n)},Vt=function(A,e,t){t===void 0&&(t=". ");var r=e.length;return Xg(Math.abs(A),r,!1,function(n){return e[Math.floor(n%r)]})+t},wr=1,St=2,_t=4,Tn=8,at=function(A,e,t,r,n,i){if(A<-9999||A>9999)return Nn(A,4,n.length>0);var o=Math.abs(A),s=n;if(o===0)return e[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;l===0&&YA(i,wr)&&s!==""?s=e[l]+s:l>1||l===1&&a===0||l===1&&a===1&&YA(i,St)||l===1&&a===1&&YA(i,_t)&&A>100||l===1&&a>1&&YA(i,Tn)?s=e[l]+(a>0?t[a-1]:"")+s:l===1&&a>0&&(s=t[a-1]+s),o=Math.floor(o/10)}return(A<0?r:"")+s},Yg="十百千萬",jg="拾佰仟萬",Jg="マイナス",ol="마이너스",Nn=function(A,e,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=GA(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Vt(A,"〇一二三四五六七八九",n);case 6:return mr(A,1,3999,zg,3,r).toLowerCase();case 7:return mr(A,1,3999,zg,3,r);case 8:return GA(A,945,969,!1,r);case 9:return GA(A,97,122,!1,r);case 10:return GA(A,65,90,!1,r);case 11:return GA(A,1632,1641,!0,r);case 12:case 49:return mr(A,1,9999,Wg,3,r);case 35:return mr(A,1,9999,Wg,3,r).toLowerCase();case 13:return GA(A,2534,2543,!0,r);case 14:case 30:return GA(A,6112,6121,!0,r);case 15:return Vt(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Vt(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return at(A,"零一二三四五六七八九",Yg,"負",n,St|_t|Tn);case 47:return at(A,"零壹貳參肆伍陸柒捌玖",jg,"負",n,wr|St|_t|Tn);case 42:return at(A,"零一二三四五六七八九",Yg,"负",n,St|_t|Tn);case 41:return at(A,"零壹贰叁肆伍陆柒捌玖",jg,"负",n,wr|St|_t|Tn);case 26:return at(A,"〇一二三四五六七八九","十百千万",Jg,n,0);case 25:return at(A,"零壱弐参四伍六七八九","拾百千万",Jg,n,wr|St|_t);case 31:return at(A,"영일이삼사오육칠팔구","십백천만",ol,i,wr|St|_t);case 33:return at(A,"零一二三四五六七八九","十百千萬",ol,i,0);case 32:return at(A,"零壹貳參四五六七八九","拾百千",ol,i,wr|St|_t);case 18:return GA(A,2406,2415,!0,r);case 20:return mr(A,1,19999,tx,3,r);case 21:return GA(A,2790,2799,!0,r);case 22:return GA(A,2662,2671,!0,r);case 22:return mr(A,1,10999,ex,3,r);case 23:return Vt(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Vt(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return GA(A,3302,3311,!0,r);case 28:return Vt(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Vt(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return GA(A,3792,3801,!0,r);case 37:return GA(A,6160,6169,!0,r);case 38:return GA(A,4160,4169,!0,r);case 39:return GA(A,2918,2927,!0,r);case 40:return GA(A,1776,1785,!0,r);case 43:return GA(A,3046,3055,!0,r);case 44:return GA(A,3174,3183,!0,r);case 45:return GA(A,3664,3673,!0,r);case 46:return GA(A,3872,3881,!0,r);case 3:default:return GA(A,48,57,!0,r)}},$g="data-html2canvas-ignore",qg=(function(){function A(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ax,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,t){var r=this,n=rx(e,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=n.contentWindow,a=s.document,l=ox(n).then(function(){return le(r,void 0,void 0,function(){var d,u;return ie(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(cx),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),d=this.options.onclone,u=this.clonedReferenceElement,typeof u>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ix(a)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof d=="function"?[2,Promise.resolve().then(function(){return d(a,u)}).then(function(){return n})]:[2,n]}})})});return a.open(),a.write(ax(document.doctype)+"<html></html>"),lx(this.referenceElement.ownerDocument,i,o),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},A.prototype.createElementClone=function(e){if(Va(e,2),Rg(e))return this.createCanvasClone(e);if(Dg(e))return this.createVideoClone(e);if(Kg(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return il(t)&&(il(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Gg(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return sl(e.style,t),t},A.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),n=e.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var i=e.getContext("2d"),o=n.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var a=s.getContextAttributes();a?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,t,r){(!Br(t)||!ZU(t)&&!t.hasAttribute($g)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Br(t)||!Kg(t))&&e.appendChild(this.cloneNode(t,r))},A.prototype.cloneChildNodes=function(e,t,r){for(var n=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Br(i)&&Vg(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(s){return n.appendChildNode(t,s,r)})}else this.appendChildNode(t,i,r)},A.prototype.cloneNode=function(e,t){if(Mg(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Br(e)&&(rl(e)||ro(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var i=r.getComputedStyle(e),o=r.getComputedStyle(e,":before"),s=r.getComputedStyle(e,":after");this.referenceElement===e&&rl(n)&&(this.clonedReferenceElement=n),nl(n)&&fx(n);var a=this.counters.parse(new dg(this.context,i)),l=this.resolvePseudoContent(e,n,o,kn.BEFORE);Gg(e)&&(t=!0),Dg(e)||this.cloneChildNodes(e,n,t),l&&n.insertBefore(l,n.firstChild);var d=this.resolvePseudoContent(e,n,s,kn.AFTER);return d&&n.appendChild(d),this.counters.pop(a),(i&&(this.options.copyStyles||ro(e))&&!Pg(e)||t)&&sl(i,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(no(e)||io(e))&&(no(n)||io(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,t,r,n){var i=this;if(r){var o=r.content,s=t.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||r.display==="none")){this.counters.parse(new dg(this.context,r));var a=new jF(this.context,r),l=s.createElement("html2canvaspseudoelement");sl(r,l),a.content.forEach(function(u){if(u.type===0)l.appendChild(s.createTextNode(u.value));else if(u.type===22){var h=s.createElement("img");h.src=u.value,h.style.opacity="1",l.appendChild(h)}else if(u.type===18){if(u.name==="attr"){var f=u.values.filter(FA);f.length&&l.appendChild(s.createTextNode(e.getAttribute(f[0].value)||""))}else if(u.name==="counter"){var g=u.values.filter(gr),p=g[0],w=g[1];if(p&&FA(p)){var m=i.counters.getCounterValue(p.value),C=w&&FA(w)?Ka.parse(i.context,w.value):3;l.appendChild(s.createTextNode(Nn(m,C,!1)))}}else if(u.name==="counters"){var b=u.values.filter(gr),p=b[0],_=b[1],w=b[2];if(p&&FA(p)){var x=i.counters.getCounterValues(p.value),y=w&&FA(w)?Ka.parse(i.context,w.value):3,F=_&&_.type===0?_.value:"",Q=x.map(function(k){return Nn(k,y,!1)}).join(F);l.appendChild(s.createTextNode(Q))}}}else if(u.type===20)switch(u.value){case"open-quote":l.appendChild(s.createTextNode(ug(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(ug(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(u.value))}}),l.className=al+" "+ll;var d=n===kn.BEFORE?" "+al:" "+ll;return ro(t)?t.className.baseValue+=d:t.className+=d,l}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A})(),kn;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(kn||(kn={}));var rx=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute($g,"true"),A.body.appendChild(t),t},nx=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},ix=function(A){return Promise.all([].slice.call(A.images,0).map(nx))},ox=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),e(A))},50)}})},sx=["all","d","content"],sl=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);sx.indexOf(r)===-1&&e.style.setProperty(r,A.getPropertyValue(r))}return e},ax=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},lx=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},cx=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},ux=":before",dx=":after",al="___html2canvas___pseudoelement_before",ll="___html2canvas___pseudoelement_after",Zg=`{
102
+ `:"";return Pe[Pe.length-1]={...$e,content:$e.content+fA+ce},Pe}else return[...Ne,{id:pe,content:ce,role:jt.ASSISTANT,timestamp:Si(Date.now()),isStored:!1}]})}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM,()=>{G.current=!1,me(!1),I(null),T(!1)}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.CONNECTED,()=>{bA(),L(PA.CONNECTED)}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,j=>{G.current=!0;const W=j;if(!W?.messageId||!W?.data||!W?.data?.details?.component||!W?.data?.tool_id)return;_&&T(!1);const{messageId:ce,data:pe}=W,Se=pe.tool_id,Ne=`${ce}::${Se}`,Pe=Ze.getState().elicitationState[Ne],fA=pe.details?.component,De=W?.data?.details?._meta?.tool_result,Oe=pe.details?.input,Qe=KT(Pe?.ui_input,Oe,fA);let TA=W.data.details?._meta?.disp_toast_msg;const Bt=pe?.details?._meta?.schema?.required||[];switch(pe?.details?.status){case de.SYNAPSE_EICITATION_STATUS.PROGRESS:{const OA=W?.data?.details?.input||{},GA=Bt.reduce((Nt,Cr)=>(OA[Cr]!==void 0&&(Nt[Cr]=OA[Cr]),Nt),{}),ke={...Pe?.server_input||{},...GA},Tt=Bt.filter(Nt=>!ke[Nt]),Mn=W.data.details?._meta?.mcp_meta_fields||[];We(Ne,{tool_id:Se,active:!0,disabled:!1,ui_input:Qe,server_input:ke,messageId:ce,required:Bt,component:fA,pattern:W.data.details?._meta?.schema?.properties?.[W.data.details?.component]?.pattern,minLength:W.data.details?._meta?.schema?.properties?.[W.data.details?.component]?.minLength,maxLength:W.data.details?._meta?.schema?.properties?.[W.data.details?.component]?.maxLength,type:W.data.details?._meta?.schema?.properties?.[W.data.details?.component]?.type,disp_toast_msg:W.data.details?._meta?.disp_toast_msg,description:W.data.details?._meta?.schema?.properties?.[W.data.details?.component]?.description,tool_result:De,orientation:W.data.details?._meta?.orientation,...Mn.length&&{mcp_meta_fields:Mn},...Tt?{toolSelectionNames:Tt}:{}});break}case de.SYNAPSE_EICITATION_STATUS.SUCCESS:{We(Ne,{...Pe||{},tool_id:Se,disabled:!0,active:Dx(fA),messageId:ce,component:fA,ui_input:Qe,tool_result:De,send_to_llm:!0});break}case de.SYNAPSE_EICITATION_STATUS.FAILURE:{We(Ne,{...Pe||{},tool_id:Se,active:!1,messageId:ce,response_value:{label:pe?.details?._meta?.disp_message||"Tool call failed"},tool_result:De,disabled:!0});break}default:We(Ne,{tool_id:Se,disabled:!1,active:!1,messageId:ce,tool_result:De,ui_input:Qe,component:fA})}TA&&Fe(TA);const ut=W?.data?.details?._meta?.user_hint;u(OA=>{let ke=OA[OA.length-1]?.id===ce?OA.length-1:OA.findIndex?.(Tt=>Tt.id===ce);if(ke==-1){const Tt={id:ce,content:W.data?.details?.input?.text||"",role:jt.ASSISTANT,tool_keys:[Ne],isResponseFromTool:!0,isStored:!1,...ut?{userHint:ut}:{}};return[...OA,Tt]}else{const Tt={...OA[ke],isResponseFromTool:!0,tool_keys:[...new Set([...OA[ke].tool_keys||[],Ne])],...ut?{userHint:ut}:{}};OA[ke]=Tt,fe(F,ce,Tt)}return[...OA]});const Hn=W?.data?.details?._meta?.disp_message,on=Ze.getState().elicitationState;if((!on[Ne]?.active||on[Ne]?.send_to_llm)&&(Hn||Object.keys(De||{}).length))try{mt({message:Hn||"",tool_result:De,toolCalled:!0,tool_key:Ne})}catch{}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,j=>{j?.reason!==de.DisconnectionReason.CLIENT_CLOSED&&(B.current<2?(L(PA.NOT_CONNECTED),B.current=B.current+1,J(!0),z({title:"Something went wrong!",description:"Please try again."})):(L(PA.NOT_CONNECTED),z({title:"Something went wrong!",description:"Please start a new Chat."}),Ae(!0)))}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.ERROR,j=>{switch(j?.data?.code){case de.SYNAPSE_REALTIME_ERROR_CODES.SESSION_INACTIVE:z({title:"Session not found",description:"Please start a new session"}),Ae(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.SESSION_TOKEN_MISMATCH:z({title:"Session not found",description:"Please start a new chat from onError callback"}),Ae(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.INVALID_EVENT:return;case de.SYNAPSE_REALTIME_ERROR_CODES.INVALID_CONTENT_TYPE:return;case de.SYNAPSE_REALTIME_ERROR_CODES.PARSING_ERROR:if(B.current<1){B.current++,wr();return}z({title:"Error parsing request",description:"please try again"}),J(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.TIMEOUT:z({title:"Request timed out",description:"please try again"}),J(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.PROMPT_FETCH_ERROR:z({title:"Something went wrong",description:"please try again"}),J(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.INVALID_FILE_REQUEST:z({title:"Something went wrong",description:"please try again"}),J(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.SERVER_ERROR:z({title:"Something went wrong",description:"please try again"}),J(!0),P(BA.IDLE);return;default:z({title:"Something went wrong",description:"please try again"}),J(!0),P(BA.IDLE);return}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,async j=>{const W=j;W?.data?.text&&(u(ce=>[...ce,{id:Date.now().toString(),content:W.data.text||"",role:jt.USER,timestamp:Si(Date.now()),isStored:!0}]),P(BA.IDLE)),me(!1),T(!1),I(null)}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,j=>{G.current=!0;const W=j;W.data?.text&&(T(!1),I(W.data.text))}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.TOOL_START,j=>{G.current=!0;const W=j;if(W.data?.name&&W.messageId){const ce=W.messageId;u(pe=>{const Se=pe[pe.length-1];if(Se&&Se.id===ce&&Se.role===jt.ASSISTANT){const Ne=[...pe];return Ne[Ne.length-1]={...Se,toolCallStatus:`Calling tool: ${W.data.name}...`},F&&fe(F,ce,{toolCallStatus:`Calling tool: ${W.data.name}...`}),Ne}return pe})}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.TOOL_END,j=>{G.current=!0;const W=j;if(W.data?.name&&W.messageId){const ce=W.messageId;u(pe=>{const Se=pe[pe.length-1];if(Se&&Se.id===ce&&Se.role===jt.ASSISTANT){const Ne=[...pe];return Ne[Ne.length-1]={...Se,toolCallStatus:"Tool call completed."},F&&fe(F,ce,{toolCallStatus:"Tool call completed."}),Ne}return pe})}})},mt=async({message:j,files:W,audio:ce,toolCalled:pe,selectedComponent:Se,resend:Ne,tool_declined:$e,tool_result:Pe,tool_key:fA})=>{const De=Ze.getState().elicitationState,Oe=Object.values(De).some(Qe=>Qe.active);if(!(!pe&&W&&W.length===0&&j?.trim()===""&&!ce?.audio&&!Se&&!Oe&&!Pe&&!Object.keys(Pe||{}).length)){if(W&&W.length>3){z({title:"Maximum 3 files are allowed to be sent at a time",description:"Please try again"});return}if(W&&W.length>0&&W.reduce((Qe,TA)=>Qe+TA.size,0)>10*1024*1024){z({title:"Total file size limit of 10MB exceeded",description:"Please reduce the size of the files or try again with less files"});return}if(W&&W.length>0&&W.length+k>Ju){const Qe=Ju-k;z({title:`You can only upload up to ${Ju} files per session`,description:`${Qe<=0?"Maximum file upload limit reached":`You have ${Qe} file${Qe===1?"":"s"} upload${Qe===1?"":"s"} left`}`});return}else W&&W.length&&Le(k+W.length);z(null),J(!1),mA()&&L(PA.CONNECTED);try{const Qe=c.length==2&&E.length==2?E:null;let TA=null;const Bt=c.length-1,ut=Bt>=0?c[Bt]:null,Hn=ut?ut?.isResponseFromTool:null,OA=Ze.getState().elicitationState,GA=fA||null,ke=GA?OA[GA]:void 0,Mn=ke?.component===de.SYNAPSE_COMPONENTS.DOCTOR_CARD||ke?.component===de.SYNAPSE_COMPONENTS.CARD?!!ke&&!Pe&&!!ke.active:!!ke?.active,Nt=!!(W||[]).length||!!ce?.audio||!!$e||!Mn||!pe,Cr=Se?Se.label:void 0,Rs=ke?.component===de.SYNAPSE_COMPONENTS.PILL&&typeof Cr=="string"?Cr:null;if(!Nt&&Mn&&GA&&ke?.messageId){const RA=ke.toolSelectionNames?.length?ke.toolSelectionNames:ke.required?.filter(Ke=>!ke.server_input?.[Ke])??[],lt=RA.reduce((Ke,nA)=>{if(Se){const On=Se[nA];On!==void 0&&(Ke[nA]=On)}else RA.length===1&&(Ke[nA]=j);return Ke},{}),ni=ke.mcp_meta_fields?.reduce((Ke,nA)=>(RA.includes(nA)?Ke[nA]=lt[nA]:ke.server_input?.[nA]&&(Ke[nA]=ke.server_input[nA]),Ne&&!Ke.is_resend&&(Ke.is_resend=Ne),Ke),{}),Wo=Object.keys(ke.server_input||{})?.reduce((Ke,nA)=>{const On=!Object.keys(ni||{})?.includes(nA),$o=!!ke.server_input?.[nA];return(Ne?On&&$o:On&&ke.required?.includes(nA)&&$o)&&(Ke[nA]=ke.server_input?.[nA]),Ke},{}),yn=Ne?{}:(ke.required||RA).reduce((Ke,nA)=>(Object.keys(ni||{}).includes(nA)||(lt[nA]!==void 0?Ke[nA]=lt[nA]:Se&&Se[nA]!==void 0&&(Ke[nA]=Se[nA])),Ke),{}),NA={...Wo||{},...yn,...Object.keys(ni||{}).length&&{mcp_meta_fields:ni}};if(!Object.keys(NA).length)return;await We(GA,{...ke,server_input:{...ke.server_input||{},...NA}});try{await ln(ke.tool_id,ke.messageId,NA),TA=!0}catch(Ke){await U.current?.sendMessage({tool_result:{...ke.tool_result,error:`Tool call failed: ${lr(Ke)}`}}),We(GA,{...ke,active:!1,disabled:!0,response_value:{label:`Tool call failed: ${lr(Ke)}`}})}}else{const RA=ke?.active,lt=Pe??ke?.tool_result;await U.current?.sendMessage({message:j,files:W,audio:ce,...Qe&&{initial_prompts:Qe},...$e||Hn&&!pe||RA?{tool_id:ke?.tool_id||""}:{},...lt&&{tool_result:lt}})}(j||W&&W.length>0||ce?.audio)&&(u(RA=>{if(TA)return RA;const lt=RA.length===0&&q?.text?[{id:"initial-bot-message",content:q.text,role:jt.ASSISTANT,timestamp:Si(Date.now()),isStored:!1}]:[];return[...RA,...lt,{id:Date.now().toString(),content:Rs||j||"",files:W||[],audio:ce,role:jt.USER,timestamp:Si(Date.now()),isStored:!1}]}),TA||T(!0),TA=null);const Zo=Ze.getState().elicitationState,ti=new Set;GA&&ti.add(GA),GA&&ti.add(GA),ut?.tool_keys?.forEach(RA=>ti.add(RA)),ti.forEach(RA=>{const lt=Zo[RA];lt&&We(RA,{...lt,...Nt&&{active:!1,disabled:!0},...RA===GA?{response_value:{...lt?.response_value||{},label:Rs||j||""}}:{}})})}catch{}}},Cn=j=>j.type.toLowerCase()&&!["application/pdf","image/jpeg","image/jpg","image/png"].includes(j.type)?(z({title:`File type not supported: ${j.name}`,description:"Only PDF, images (JPG, JPEG, PNG) are allowed."}),!1):j.size>3*1024*1024?(z({title:"File size limit of 3MB exceeded",description:"Please reduce the size of the file or try again with a smaller file"}),!1):!0,Ft=async()=>{try{await U.current?.startRecording({onChunks:async j=>{P(BA.PROCESSING),await mt({audio:j}),P(BA.TRANSCRIBING)},onError(j){P(BA.IDLE)}}),P(BA.LISTENING)}catch(j){throw P(BA.IDLE),j}},ct=()=>{U.current?.endRecording()},ln=async(j,W,ce)=>{try{if(!mA())throw new Error("Not connected to the server");await U.current?.callTool(j,W,ce)}catch(pe){throw pe}},Ai=async()=>{bA(),await v(),await FA(!0)},wr=async()=>{if(mA()){L(PA.CONNECTED);const j=f.current[f.current.length-1];if(j&&j.role===jt.USER)try{U.current?.sendMessage({message:j.content,files:j.files||[],messageId:j.id,audio:j.audio})}catch{}}else if(L(PA.NOT_CONNECTED),B.current<2){B.current++;const{sessionId:j,sessionToken:W}=Ze.getState();await je(j,W)}else B.current===2?(B.current++,J(!0),z({title:"Trying to connect..."})):(z({title:"Something went wrong!",description:"Please start a new chat."}),Ae(!0))};return{sendMessage:mt,startSession:FA,incomingMessages:c,loading:h,endSession:EA,isReady:C,startRecording:Ft,stopRecording:ct,handleRetry:wr,isValidFile:Cn,handleStartNewConnection:Ai,callTool:ln,handleInitialTaskClick:async j=>{if(!q?.suggestions?.length||!j)return;const W=q.suggestions.find(ce=>ce.value===j);if(!W||!W.response){await mt({message:j});return}u(ce=>[...ce,{id:Date.now().toString(),content:j,role:jt.USER,timestamp:Si(Date.now()),isStored:!1}]),T(!0),await kx(1e3),T(!1),u(ce=>[...ce,{id:Date.now().toString(),content:W.response||"Please try again",role:jt.ASSISTANT,timestamp:Si(Date.now()),isStored:!1}]),b([{role:"user",text:j},{role:"assistant",text:W.response}])},handleToggleFeedback:async(j,W,ce)=>{if(mA())try{await U.current?.sendFeedback(W,j,ce)}catch{}},clearElicitationState:async(j,W)=>{const ce=Ze.getState().elicitationState,pe=j?ce[j]:void 0;try{await mt({message:W||"User aborted elicitation",tool_declined:!0,tool_result:pe?.tool_result,tool_key:j})}catch{}finally{j&&pe&&We(j,{...pe,active:!1,disabled:!0})}}}},GT=32,zT=100,PT=320;function YT(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function XT({messageCount:e,isStreaming:t,isFirstMessage:r,resolvedMode:i}){const s=x.useRef(null),l=x.useRef(null),[c,u]=x.useState(!1),f=x.useRef(null),h=x.useRef(!1),m=x.useRef("auto"),B=x.useRef(!0),C=x.useCallback(()=>s.current?.querySelector("[data-radix-scroll-area-viewport]")||null,[]),w=x.useCallback(U=>YT()?"auto":U,[]),E=x.useCallback(U=>{const Q=C();Q&&(Q.scrollTo({top:Q.scrollHeight,behavior:w(U)}),u(!1))},[C,w]),b=x.useCallback(U=>{h.current=!0,m.current=U,f.current===null&&(f.current=requestAnimationFrame(()=>{f.current=null,h.current&&(h.current=!1,E(m.current))}))},[E]);return x.useEffect(()=>()=>{f.current!==null&&(cancelAnimationFrame(f.current),f.current=null),h.current=!1},[]),x.useEffect(()=>{if(!e)return;b(t||r?"auto":"smooth")},[e,t,r,b]),x.useEffect(()=>{if(!e||!B.current)return;const U=setTimeout(()=>b("auto"),PT);return()=>clearTimeout(U)},[i,e,b]),x.useEffect(()=>{let U=!1,Q=null,N=null,M=0;const G=()=>{if(U)return;const V=C(),O=l.current?.parentElement;if(!V||!O){requestAnimationFrame(G);return}const R=()=>{const{scrollTop:$,scrollHeight:k,clientHeight:se}=V;return k-$-se<=GT};B.current=!0;let _=0;const q=()=>{if(_>0){_--;return}B.current=R()};V.addEventListener("scroll",q,{passive:!0}),N=()=>V.removeEventListener("scroll",q),Q=new ResizeObserver(()=>{if(!B.current)return;const $=Date.now();$-M<zT||(M=$,_++,b("auto"))}),Q.observe(O)};return G(),()=>{U=!0,Q?.disconnect(),N?.()}},[C,b]),{scrollAreaRef:s,messagesEndRef:l,showScrollButton:c,scrollToBottom:E,scheduleScrollToBottom:b}}function qT({isOpen:e,agentId:t,config:r}){const{state:i,isMuted:s,connect:l,disconnect:c,reset:u,toggleMute:f}=_S(),h=()=>{i===de.VOICE_AGENT_STATE.IDLE&&l()},m=i!==de.VOICE_AGENT_STATE.IDLE,[B,C]=x.useState(""),[w,E]=x.useState(!1),b=Ze(Oe=>Oe.setDisplayMode),[U,Q]=x.useState(r.displayMode==="full"?"full":"widget"),N=()=>Q(Oe=>Oe==="full"?"widget":"full"),G=h0()?"mobile":U,[V,F]=x.useState([]),O=x.useRef(!1),[R,_]=x.useState(!1),q=x.useRef(null),{setAgentId:$,startNewConnection:k,showRetryButton:se,clearError:le,error:z,connectionStatus:L,recordingStatus:J,isWaitingForResponse:Ae,isStreaming:me,setError:T,sessionId:I,setContext:P,initialMessage:v,setInitialMessage:te,setInitialDisplayMode:oe}=Ze(),fe=Ze(Oe=>Oe.elicitationState),{incomingMessages:ge,loading:Le,sendMessage:Fe,startSession:We,isReady:je,startRecording:FA,stopRecording:mA,handleRetry:EA,isValidFile:bA,handleToggleFeedback:Ut,clearElicitationState:mt}=VT({environment:r.environment,connectionType:r.connectionType,baseUrl:r.baseUrl?r.baseUrl:void 0,context:r?.context,...r?.auth&&{auth:r.auth},...r?.authToken&&{authToken:r.authToken}});x.useEffect(()=>{t&&(q.current!==t&&(US(t),FS(t),$(t),(r.displayMode==="full"||r.displayMode==="widget")&&(b(r.displayMode),oe(r.displayMode)),r?.context&&Object.keys(r?.context||{}).length&&P(r.context),(r?.initialMessage?.text||r?.initialMessage?.suggestions?.length)&&te(r.initialMessage),q.current=t),e&&je&&!O.current&&(O.current=!0,We(!1)))},[e,je,t]),x.useEffect(()=>()=>{c()},[]);const Cn=ge.length>0,Ft=ge.length===1,ct=x.useMemo(()=>{const Oe=ge[ge.length-1],Qe=Oe?.tool_keys?.[Oe.tool_keys.length-1];if(!Qe)return null;const TA=fe[Qe];return TA?.active?{...TA,tool_key:Qe}:null},[ge,fe]),ln=x.useMemo(()=>{const Oe=r?.initialMessage;return!!Oe?.text||!!Oe?.suggestions?.length},[r?.initialMessage]),Ai=x.useMemo(()=>ln&&ge?.length===0,[ge,ln]),wr=x.useMemo(()=>ct?ct.component===de.SYNAPSE_COMPONENTS.MOBILE||ct.component===de.SYNAPSE_COMPONENTS.OTP||ct.component===de.SYNAPSE_COMPONENTS.EMAIL:!1,[ct]),{scrollAreaRef:XA,messagesEndRef:Yi,showScrollButton:re,scrollToBottom:j}=XT({messageCount:ge.length,isStreaming:me,isFirstMessage:Ft,resolvedMode:G}),W=L===de.ConnectionStatus.CONNECTED,ce=Ae||me,pe=x.useMemo(()=>J===BA.IDLE?null:J===BA.LISTENING?"Listening...":J===BA.PROCESSING?"Processing...":J===BA.TRANSCRIBING?"Transcribing...":null,[J]),Se=pe&&J!==BA.IDLE?pe:Ae||me?"Please wait for the response...":"Type a reply…",Ne=async Oe=>{if(ce)return;const Qe=Oe?.message??B;(Qe.trim()||w||R||Oe?.resend)&&(V.length>0?(await Fe({files:V,message:Qe.trim()}),F([]),_(!1)):Qe.trim()?await Fe({...Oe,message:Qe.trim()}):Oe?.resend&&await Fe(Oe),C(""),E(!1),_(!1))},$e=Oe=>{if(Oe&&Oe.length>0){const Qe=Oe.filter(TA=>!!bA(TA));if(Qe?.length+V.length>3){T({title:"You can only upload up to 3 files at a time",description:"Please remove some files and try again."});return}if(Qe?.length>0&&Qe.reduce((TA,Bt)=>TA+Bt.size,0)>10*1024*1024){T({title:`Total file size limit of ${JS} MB exceeded`,description:"Please reduce the size of the files or try again with less files"});return}if(Qe?.length>0)Oe=Qe;else return}F(Qe=>(_((Qe?.length??0)+(Oe?.length??0)>0),[...Qe,...Oe]))},Pe=Oe=>{F(Qe=>{const TA=Qe.filter((Bt,ut)=>ut!==Oe);return _(TA.length>0),TA})},fA=async()=>{if(w)await mA(),E(!1);else{if(ce)return;try{await FA(),E(!0)}catch{}}},De={value:B,onChange:C,onSend:Ne,onFileChange:$e,onRemoveFile:Pe,onRecording:fA,isRecording:w,hasAttachment:R,attachmentFiles:V,isDisabled:ce,placeholder:Se,recordingStatus:J,allowed:r.allowed,isVoiceAgentActive:m,handleVoiceMode:h};return{inputValue:B,setInputValue:C,isRecording:w,hasAttachment:R,attachmentFiles:V,showScrollButton:re,displayMode:U,setDisplayMode:Q,toggleDisplayMode:N,resolvedMode:G,currentDisplayMode:U,setCurrentDisplayMode:Q,scrollAreaRef:XA,messagesEndRef:Yi,startNewConnection:k,showRetryButton:se,clearError:le,error:z,connectionStatus:L,isStreaming:me,sessionId:I,activeElicitation:ct,inConversation:Cn,isFirstMessage:Ft,isEmptyChat:Ai,isAuthComponent:wr,isConnected:W,isComposerDisabled:ce,loading:Le,initialMessage:v,incomingMessages:ge,sendMessage:Fe,startSession:We,handleToggleFeedback:Ut,clearElicitationState:mt,handleRetry:EA,handleSendMessage:Ne,handleFileChange:$e,handleRemoveFile:Pe,handleRecording:fA,scrollToBottom:j,chatComposerProps:De,voiceAgentState:i,isMuted:s,isVoiceAgentActive:m,connectVoiceAgent:l,disconnectVoiceAgent:c,resetVoiceAgent:u,toggleMute:f,handleVoiceAgentClick:h}}const JT=x.lazy(()=>Promise.resolve().then(()=>X4)),jB=x.lazy(()=>Promise.resolve().then(()=>J4).then(e=>({default:e.ConnectionStatus})));function ZT({isOpen:e,agentId:t,config:r}){const{toggleDisplayMode:i,resolvedMode:s,scrollAreaRef:l,messagesEndRef:c,showScrollButton:u,startNewConnection:f,showRetryButton:h,clearError:m,error:B,sessionId:C,activeElicitation:w,isAuthComponent:E,isConnected:b,loading:U,inConversation:Q,isFirstMessage:N,isEmptyChat:M,incomingMessages:G,sendMessage:V,startSession:F,handleToggleFeedback:O,clearElicitationState:R,handleRetry:_,scrollToBottom:q,chatComposerProps:$,isComposerDisabled:k,voiceAgentState:se,isMuted:le,isVoiceAgentActive:z,disconnectVoiceAgent:L,resetVoiceAgent:J,toggleMute:Ae}=qT({isOpen:e,agentId:t,config:r});return x.useEffect(()=>{G.length||q("auto")},[G.length,q]),g.jsx(PS,{enabled:!!r.resize,children:g.jsx(m0,{isOpen:e,onClose:r.onClose,showCloseButton:r.showCloseButton,title:r.title,showStartNewChatButton:f,titleImg:r.theme?.titleImg,tagline:r.theme?.tagline,iconUrl:r.iconUrl,onStartNewSession:()=>F(!0),sessionId:C,environment:r.environment,mode:s,onToggleDisplayMode:r.resize?i:void 0,theme:r.theme,hideWatermark:r.hideWatermark,isAuthComponent:E,activeElicitation:w,voiceAgentState:se,chatComposer:$,fullScreenEmptyState:M?me=>g.jsx(pQ,{title:r.title,description:r?.initialMessage?.text,suggestions:r?.initialMessage?.suggestions,onSendMessage:V,disabled:k,composer:me.composer,composerFooter:me.composerFooter,connectionBanner:g.jsx(jB,{onRetry:_,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:b})}):void 0,children:z?g.jsx(hQ,{state:se,isMuted:le,onEndCall:L,onClose:J,onToggleMute:Ae,agentName:r.title,iconUrl:r.iconUrl,textColor:r.theme?.textColor}):g.jsx(x.Suspense,{fallback:g.jsx(WT,{}),children:g.jsxs("div",{className:he("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"),children:[g.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden",children:[g.jsxs(Im,{ref:l,className:"flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",children:[g.jsx("div",{className:"flex-1"}),g.jsxs("div",{className:he("transition-all duration-300 min-w-0 overflow-x-hidden",Q?"pt-4 px-4 space-y-3":"pt-4 px-4 space-y-4",s==="full"&&"max-w-2xl mx-auto w-full"),children:[N&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center mb-2",children:"Just now"}),!N&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center",children:new Date().toLocaleString("en-US",{weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!0})}),g.jsx(OT,{messages:G,onSendMessage:V,iconUrl:r.iconUrl,onToggleFeedback:O,onClearElicitationState:R,isAuthComponent:E,isFullScreen:s==="full",initialMessage:r.initialMessage,disabled:!b||U}),g.jsx("div",{ref:c})]})]}),g.jsx(x.Suspense,{fallback:null,children:g.jsx(JT,{})})]}),u&&g.jsx("div",{className:"absolute bottom-[10px] left-1/2 transform -translate-x-1/2 z-10",children:g.jsx(_e,{onClick:()=>q("smooth"),size:"icon",className:"h-10 w-10 rounded-full bg-surface/90 backdrop-blur-sm shadow-lg border border-border-subtle hover:bg-surface hover:shadow-xl transition-all duration-200",children:g.jsx(Qi,{className:"w-5 h-5 text-text-primary"})})}),g.jsx(jB,{className:"mt-2",onRetry:_,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:b})]})})})})}function WT(){return g.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse",children:[g.jsxs("div",{className:"flex-1 p-6 space-y-4",children:[g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"})]}),g.jsx("div",{className:"h-24 border-t border-border-subtle bg-surface/80"})]})}function Df(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);try{return new Error(JSON.stringify(e))}catch{return new Error("Unknown error")}}class $T extends x.Component{state={error:null};static getDerivedStateFromError(t){return{error:Df(t)}}componentDidCatch(t,r){this.setState({componentStack:r?.componentStack})}render(){return this.state.error?g.jsx(t4,{error:this.state.error,componentStack:this.state.componentStack,title:this.props.title,titleImg:this.props.titleImg,iconUrl:this.props.iconUrl,onClose:this.props.onClose,showCloseButton:this.props.showCloseButton,environment:this.props.environment,displayMode:this.props.displayMode,theme:this.props.theme}):this.props.children}}function e4({error:e}){throw e}function A4(e){const[t,r]=x.useState(null);return x.useEffect(()=>{if(typeof window>"u")return;const i=l=>{!l?.error&&!l?.filename&&l?.message==="Script error."||(l?.error?r(Df(l.error)):l?.message&&r(new Error(l.message)))},s=l=>{r(Df(l.reason))};return window.addEventListener("error",i),window.addEventListener("unhandledrejection",s),()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",s)}},[]),g.jsx($T,{...e,children:t?g.jsx(e4,{error:t}):e.children})}function t4({error:e,title:t,titleImg:r,iconUrl:i,onClose:s,showCloseButton:l,environment:c,displayMode:u,theme:f}){const h=()=>{typeof window<"u"&&window.location.reload()},m=t??"Medi Clinic",B=c??"production",C=x.useMemo(()=>f?.textColor==="white"?"text-white/60":"text-[var(--color-muted-foreground)]",[f?.textColor]);return g.jsx(m0,{isOpen:!0,onClose:s??(()=>{}),showCloseButton:l??!1,onStartNewSession:h,title:m,titleImg:r,iconUrl:i,environment:B,mode:u??"widget",theme:f,children:g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:g.jsx("div",{className:"flex-1 min-h-0 flex items-center justify-center p-6",children:g.jsxs("div",{className:"w-full max-w-[320px] text-center",children:[g.jsx("div",{className:"mx-auto mb-4 grid place-items-center",children:g.jsx("div",{className:"h-16 w-16 rounded-3xl bg-surface backdrop-blur border border-border-subtle grid place-items-center",children:g.jsx(yS,{className:"h-8 w-8",style:{color:f?.primary??"hsl(var(--primary))"}})})}),g.jsx("div",{className:"text-2xl font-semibold text-text-primary",children:"Uh-oh!"}),g.jsx("div",{className:["mt-2 text-sm",C].join(" "),children:"Something went wrong. Please try again."}),g.jsx("div",{className:["mt-4 rounded-2xl border border-border-subtle/60 bg-surface/60 backdrop-blur px-4 py-3","text-left text-[11px] leading-relaxed font-mono whitespace-pre-wrap break-words",C].join(" "),children:e?.message||String(e)}),g.jsx("div",{className:"mt-5 flex items-center justify-center gap-3",children:g.jsxs(_e,{type:"button",onClick:h,className:"rounded-2xl",style:{backgroundColor:f?.primary??void 0},children:[g.jsx(wS,{className:"h-4 w-4 mr-2"}),"Retry"]})})]})})})})}function n4({agentId:e,config:t}){const[r,i]=x.useState(!1);x.useEffect(()=>{i(!0)},[]);const s=()=>{i(!1),t?.onClose?.()};return g.jsx(A4,{title:t.title??"Medi Clinic",titleImg:t.theme?.titleImg,iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",onClose:s,showCloseButton:t.showCloseButton,environment:t.environment??"production",displayMode:t.displayMode,theme:t.theme,children:g.jsx(TS,{children:g.jsx(ZT,{isOpen:r,agentId:e,config:{...t,environment:t.environment??"production",onClose:s,title:t.title??"Medi Clinic",iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",theme:t.theme}})})})}const KB=(e,t,r)=>{const i=r||{},s=a1.createRoot(e);return s.render(g.jsx(x.StrictMode,{children:g.jsx(n4,{agentId:t,config:i})})),s};typeof window<"u"&&(window.renderMedAssist=KB);const kf=x.forwardRef(({className:e,...t},r)=>g.jsx("textarea",{className:he("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));kf.displayName="Textarea";const gs=({className:e})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:g.jsx("path",{d:"M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z",fill:"currentColor"})}),jf=x.forwardRef(({className:e,type:t,...r},i)=>{const s=e&&typeof e=="string"&&e.includes("placeholder:");return g.jsx("input",{type:t,className:he("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",!s&&"placeholder:text-muted-foreground",e),ref:i,...r})});jf.displayName="Input";const r4=()=>g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block"},"aria-hidden":"true",children:[g.jsx("g",{clipPath:"url(#circleClip)",children:g.jsxs("g",{children:[g.jsx("path",{d:"M15.9766 0.0234375V5.31055H0.0234375V0.0234375H15.9766Z",fill:"#FF9933",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M15.9766 5.35779V10.642H0.0234375V5.35779H15.9766Z",fill:"white",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M0 10.6656H16V16H0V10.6656Z",fill:"#128807"}),g.jsx("path",{d:"M8.00101 10.1334C9.17921 10.1334 10.1343 9.17824 10.1343 8.00003C10.1343 6.82182 9.17921 5.8667 8.00101 5.8667C6.8228 5.8667 5.86768 6.82182 5.86768 8.00003C5.86768 9.17824 6.8228 10.1334 8.00101 10.1334Z",fill:"#000088"}),g.jsx("path",{d:"M8.00143 9.86663C9.03236 9.86663 9.8681 9.0309 9.8681 7.99997C9.8681 6.96904 9.03236 6.1333 8.00143 6.1333C6.9705 6.1333 6.13477 6.96904 6.13477 7.99997C6.13477 9.0309 6.9705 9.86663 8.00143 9.86663Z",fill:"white"}),g.jsx("path",{d:"M8.00126 8.37325C8.20745 8.37325 8.3746 8.20611 8.3746 7.99992C8.3746 7.79373 8.20745 7.62659 8.00126 7.62659C7.79508 7.62659 7.62793 7.79373 7.62793 7.99992C7.62793 8.20611 7.79508 8.37325 8.00126 8.37325Z",fill:"#000088"}),g.jsx("path",{d:"M9.84014 8.33936C9.8927 8.34628 9.94093 8.30928 9.94785 8.25671C9.95477 8.20415 9.91776 8.15593 9.8652 8.14901C9.81263 8.14208 9.76441 8.17909 9.75749 8.23165C9.75057 8.28422 9.78757 8.33244 9.84014 8.33936Z",fill:"#000088"}),g.jsx("path",{d:"M8.00199 9.86647L8.06599 8.74647L8.00199 8.21313L7.93799 8.74647L8.00199 9.86647Z",fill:"#000088"}),g.jsx("path",{d:"M9.69246 8.8036C9.74145 8.82389 9.7976 8.80063 9.81789 8.75165C9.83818 8.70266 9.81492 8.6465 9.76594 8.62622C9.71696 8.60593 9.6608 8.62919 9.64051 8.67817C9.62022 8.72715 9.64348 8.78331 9.69246 8.8036Z",fill:"#000088"}),g.jsx("path",{d:"M7.52209 9.80289L7.87379 8.73762L7.95 8.2059L7.75015 8.70449L7.52209 9.80289Z",fill:"#000088"}),g.jsx("path",{d:"M9.4251 9.21296C9.46716 9.24524 9.52743 9.2373 9.5597 9.19524C9.59198 9.15318 9.58405 9.09291 9.54198 9.06064C9.49992 9.02836 9.43966 9.0363 9.40738 9.07836C9.3751 9.12042 9.38304 9.18069 9.4251 9.21296Z",fill:"#000088"}),g.jsx("path",{d:"M7.06958 9.61654L7.68501 8.67859L7.89625 8.18471L7.57415 8.61459L7.06958 9.61654Z",fill:"#000088"}),g.jsx("path",{d:"M9.06041 9.53972C9.09269 9.58179 9.15295 9.58972 9.19502 9.55744C9.23708 9.52517 9.24501 9.4649 9.21274 9.42284C9.18046 9.38078 9.1202 9.37284 9.07814 9.40512C9.03607 9.4374 9.02814 9.49766 9.06041 9.53972Z",fill:"#000088"}),g.jsx("path",{d:"M6.68086 9.31981L7.51807 8.5731L7.84994 8.15072L7.42756 8.48259L6.68086 9.31981Z",fill:"#000088"}),g.jsx("path",{d:"M8.6284 9.76153C8.64869 9.81052 8.70484 9.83378 8.75383 9.81349C8.80281 9.7932 8.82607 9.73704 8.80578 9.68806C8.78549 9.63907 8.72933 9.61581 8.68035 9.6361C8.63137 9.65639 8.60811 9.71255 8.6284 9.76153Z",fill:"#000088"}),g.jsx("path",{d:"M6.38679 8.93324L7.38874 8.42867L7.81862 8.10657L7.32474 8.31781L6.38679 8.93324Z",fill:"#000088"}),g.jsx("path",{d:"M8.14737 9.86316C8.15429 9.91573 8.20251 9.95273 8.25508 9.94581C8.30764 9.93889 8.34465 9.89066 8.33773 9.8381C8.33081 9.78553 8.28258 9.74853 8.23002 9.75545C8.17745 9.76237 8.14045 9.81059 8.14737 9.86316Z",fill:"#000088"}),g.jsx("path",{d:"M6.19642 8.4829L7.29482 8.25484L7.79342 8.05498L7.2617 8.1312L6.19642 8.4829Z",fill:"#000088"}),g.jsx("path",{d:"M7.66381 9.83806C7.65689 9.89063 7.69389 9.93885 7.74646 9.94577C7.79903 9.95269 7.84725 9.91569 7.85417 9.86312C7.86109 9.81056 7.82409 9.76233 7.77152 9.75541C7.71895 9.74849 7.67073 9.7855 7.66381 9.83806Z",fill:"#000088"}),g.jsx("path",{d:"M6.13671 7.99991L7.25671 8.06391L7.79004 7.99991L7.25671 7.93591L6.13671 7.99991Z",fill:"#000088"}),g.jsx("path",{d:"M7.20092 9.68758C7.18063 9.73656 7.20389 9.79272 7.25287 9.81301C7.30185 9.8333 7.35801 9.81004 7.3783 9.76106C7.39859 9.71207 7.37533 9.65592 7.32635 9.63563C7.27736 9.61534 7.22121 9.6386 7.20092 9.68758Z",fill:"#000088"}),g.jsx("path",{d:"M6.20138 7.51684L7.26665 7.86854L7.79838 7.94475L7.29978 7.7449L6.20138 7.51684Z",fill:"#000088"}),g.jsx("path",{d:"M6.79363 9.42217C6.76135 9.46423 6.76929 9.5245 6.81135 9.55677C6.85341 9.58905 6.91368 9.58112 6.94595 9.53905C6.97823 9.49699 6.9703 9.43673 6.92823 9.40445C6.88617 9.37217 6.82591 9.38011 6.79363 9.42217Z",fill:"#000088"}),g.jsx("path",{d:"M6.39018 7.06677L7.32812 7.6822L7.822 7.89344L7.39212 7.57135L6.39018 7.06677Z",fill:"#000088"}),g.jsx("path",{d:"M6.46467 9.05968C6.42261 9.09196 6.41467 9.15222 6.44695 9.19428C6.47923 9.23635 6.53949 9.24428 6.58155 9.21201C6.62362 9.17973 6.63155 9.11947 6.59927 9.0774C6.567 9.03534 6.50673 9.02741 6.46467 9.05968Z",fill:"#000088"}),g.jsx("path",{d:"M6.68459 6.68013L7.43129 7.51734L7.85367 7.84921L7.5218 7.42683L6.68459 6.68013Z",fill:"#000088"}),g.jsx("path",{d:"M6.24115 8.6251C6.19217 8.64539 6.16891 8.70155 6.1892 8.75053C6.20949 8.79951 6.26564 8.82277 6.31463 8.80248C6.36361 8.7822 6.38687 8.72604 6.36658 8.67705C6.34629 8.62807 6.29014 8.60481 6.24115 8.6251Z",fill:"#000088"}),g.jsx("path",{d:"M7.06908 6.38338L7.57365 7.38532L7.89575 7.8152L7.68451 7.32132L7.06908 6.38338Z",fill:"#000088"}),g.jsx("path",{d:"M6.14294 8.14786C6.09038 8.15478 6.05338 8.203 6.0603 8.25557C6.06722 8.30813 6.11544 8.34513 6.168 8.33821C6.22057 8.33129 6.25757 8.28307 6.25065 8.2305C6.24373 8.17794 6.19551 8.14094 6.14294 8.14786Z",fill:"#000088"}),g.jsx("path",{d:"M7.52345 6.19703L7.75151 7.29543L7.95136 7.79403L7.87515 7.26231L7.52345 6.19703Z",fill:"#000088"}),g.jsx("path",{d:"M6.17061 7.66052C6.11804 7.6536 6.06982 7.6906 6.0629 7.74316C6.05598 7.79573 6.09298 7.84395 6.14554 7.85087C6.19811 7.85779 6.24633 7.82079 6.25325 7.76822C6.26017 7.71566 6.22317 7.66744 6.17061 7.66052Z",fill:"#000088"}),g.jsx("path",{d:"M8.00875 6.13341L7.94475 7.25341L8.00875 7.78674L8.07275 7.25341L8.00875 6.13341Z",fill:"#000088"}),g.jsx("path",{d:"M6.32316 7.19628C6.27418 7.17599 6.21802 7.19925 6.19773 7.24823C6.17744 7.29722 6.2007 7.35337 6.24969 7.37366C6.29867 7.39395 6.35483 7.37069 6.37512 7.32171C6.39541 7.27272 6.37215 7.21657 6.32316 7.19628Z",fill:"#000088"}),g.jsx("path",{d:"M8.49354 6.19699L8.14184 7.26226L8.06562 7.79398L8.26548 7.29539L8.49354 6.19699Z",fill:"#000088"}),g.jsx("path",{d:"M6.58174 6.78692C6.53967 6.75464 6.47941 6.76257 6.44713 6.80464C6.41486 6.8467 6.42279 6.90696 6.46485 6.93924C6.50692 6.97152 6.56718 6.96358 6.59946 6.92152C6.63173 6.87946 6.6238 6.81919 6.58174 6.78692Z",fill:"#000088"}),g.jsx("path",{d:"M8.93726 6.38334L8.32183 7.32129L8.11059 7.81517L8.43268 7.38529L8.93726 6.38334Z",fill:"#000088"}),g.jsx("path",{d:"M6.94642 6.46015C6.91415 6.41809 6.85388 6.41016 6.81182 6.44243C6.76976 6.47471 6.76182 6.53497 6.7941 6.57704C6.82637 6.6191 6.88664 6.62703 6.9287 6.59476C6.97076 6.56248 6.9787 6.50222 6.94642 6.46015Z",fill:"#000088"}),g.jsx("path",{d:"M9.32598 6.68007L8.48876 7.42678L8.15689 7.84915L8.57927 7.51729L9.32598 6.68007Z",fill:"#000088"}),g.jsx("path",{d:"M7.37649 6.23847C7.3562 6.18948 7.30004 6.16622 7.25106 6.18651C7.20207 6.2068 7.17881 6.26296 7.1991 6.31194C7.21939 6.36093 7.27555 6.38419 7.32453 6.3639C7.37352 6.34361 7.39678 6.28745 7.37649 6.23847Z",fill:"#000088"}),g.jsx("path",{d:"M9.61809 7.06676L8.61614 7.57133L8.18626 7.89343L8.68014 7.68219L9.61809 7.06676Z",fill:"#000088"}),g.jsx("path",{d:"M7.85751 6.13684C7.85059 6.08427 7.80237 6.04727 7.74981 6.05419C7.69724 6.06111 7.66024 6.10934 7.66716 6.1619C7.67408 6.21447 7.7223 6.25147 7.77487 6.24455C7.82743 6.23763 7.86443 6.18941 7.85751 6.13684Z",fill:"#000088"}),g.jsx("path",{d:"M9.80846 7.5171L8.71006 7.74516L8.21146 7.94502L8.74319 7.8688L9.80846 7.5171Z",fill:"#000088"}),g.jsx("path",{d:"M8.34302 6.16194C8.34994 6.10937 8.31294 6.06115 8.26038 6.05423C8.20781 6.04731 8.15959 6.08431 8.15267 6.13688C8.14575 6.18944 8.18275 6.23767 8.23532 6.24459C8.28788 6.25151 8.3361 6.2145 8.34302 6.16194Z",fill:"#000088"}),g.jsx("path",{d:"M9.87013 8.00009L8.75013 7.93609L8.2168 8.00009L8.75013 8.06409L9.87013 8.00009Z",fill:"#000088"}),g.jsx("path",{d:"M8.80592 6.31242C8.82621 6.26344 8.80295 6.20728 8.75396 6.18699C8.70498 6.1667 8.64882 6.18996 8.62853 6.23894C8.60824 6.28793 8.63151 6.34408 8.68049 6.36437C8.72947 6.38466 8.78563 6.3614 8.80592 6.31242Z",fill:"#000088"}),g.jsx("path",{d:"M9.80545 8.48316L8.74018 8.13146L8.20846 8.05525L8.70705 8.2551L9.80545 8.48316Z",fill:"#000088"}),g.jsx("path",{d:"M9.21614 6.57795C9.24841 6.53589 9.24048 6.47562 9.19842 6.44335C9.15635 6.41107 9.09609 6.41901 9.06381 6.46107C9.03154 6.50313 9.03947 6.5634 9.08153 6.59567C9.1236 6.62795 9.18386 6.62001 9.21614 6.57795Z",fill:"#000088"}),g.jsx("path",{d:"M9.61959 8.93335L8.68164 8.31792L8.18776 8.10668L8.61764 8.42878L9.61959 8.93335Z",fill:"#000088"}),g.jsx("path",{d:"M9.53875 6.94044C9.58081 6.90816 9.58874 6.8479 9.55647 6.80584C9.52419 6.76377 9.46393 6.75584 9.42186 6.78812C9.3798 6.82039 9.37187 6.88066 9.40414 6.92272C9.43642 6.96478 9.49668 6.97272 9.53875 6.94044Z",fill:"#000088"}),g.jsx("path",{d:"M9.31883 9.31999L8.57213 8.48278L8.14975 8.15091L8.48162 8.57329L9.31883 9.31999Z",fill:"#000088"}),g.jsx("path",{d:"M9.76715 7.37502C9.81613 7.35473 9.83939 7.29858 9.8191 7.24959C9.79881 7.20061 9.74266 7.17735 9.69367 7.19764C9.64469 7.21793 9.62143 7.27408 9.64172 7.32307C9.66201 7.37205 9.71816 7.39531 9.76715 7.37502Z",fill:"#000088"}),g.jsx("path",{d:"M8.93922 9.61662L8.43465 8.61468L8.11255 8.1848L8.3238 8.67868L8.93922 9.61662Z",fill:"#000088"}),g.jsx("path",{d:"M9.86682 7.85227C9.91939 7.84534 9.95639 7.79712 9.94947 7.74456C9.94255 7.69199 9.89433 7.65499 9.84176 7.66191C9.78919 7.66883 9.75219 7.71705 9.75911 7.76962C9.76603 7.82218 9.81426 7.85919 9.86682 7.85227Z",fill:"#000088"}),g.jsx("path",{d:"M8.48631 9.80309L8.25826 8.70469L8.0584 8.20609L8.13462 8.73782L8.48631 9.80309Z",fill:"#000088"})]})}),g.jsx("defs",{children:g.jsx("clipPath",{id:"circleClip",children:g.jsx("circle",{cx:"8",cy:"8",r:"8"})})})]}),i4="+91";function a4(e){const t=e.replace(/\D/g,""),r=t.slice(0,5),i=t.slice(5,10);return i?`${r} ${i}`:r}function s4({value:e,onChange:t,onKeyDown:r,disabled:i,theme:s,isMobile:l,maxLength:c,isMobileValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your mobile number"}),g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[g.jsxs("div",{className:he("inline-flex items-center gap-2 rounded-full px-3 shrink-0 py-2 min-h-[56px]",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),style:{fontSize:l?"16px":"14px"},children:[g.jsx(r4,{}),g.jsx("span",{className:"text-sm font-medium text-foreground",children:i4}),g.jsx(Qi,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})]}),g.jsxs("div",{className:he("flex items-center gap-1 rounded-full px-2 py-2 flex-1 min-w-0",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(jf,{type:"tel",autoComplete:"tel-national",value:a4(e),onChange:t,onKeyDown:r,placeholder:"88888 88888",className:he("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:l?"16px":"14px"},maxLength:c?c+1:void 0,inputMode:"numeric",autoFocus:!i,disabled:i}),g.jsx(_e,{type:"button",size:"icon",onClick:f,disabled:i||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit mobile number":"Enter a valid mobile number","aria-label":u?"Submit mobile number":"Enter a valid mobile number",children:g.jsx(gs,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})]})}const l4=6,o4=30,c4=(e,t)=>e.disabled===t.disabled&&e.isMobile===t.isMobile&&e.validation?.pattern===t.validation?.pattern&&e.validation?.minLength===t.validation?.minLength&&e.validation?.maxLength===t.validation?.maxLength&&e.serverMessage===t.serverMessage&&e.theme?.textColor===t.theme?.textColor;function u4({disabled:e,isMobile:t,validation:r,onSubmit:i,onResendOtp:s,serverMessage:l}){const c=x.useRef([]),[u,f]=x.useState(0),[h,m]=x.useState(!1),B=x.useRef(!1),C=x.useRef(i),w=x.useRef(s),E=r?.maxLength??l4,b=x.useMemo(()=>new RegExp(r?.pattern??`^\\d{${E}}$`),[r?.pattern,E]);x.useEffect(()=>{C.current=i},[i]),x.useEffect(()=>{w.current=s},[s]),x.useEffect(()=>{if(!l)return;const k=l.toLowerCase();k.includes("otp")&&(k.includes("invalid")||k.includes("incorrect")||k.includes("wrong"))&&(B.current=!1,m(!1))},[l]);const U=x.useCallback(()=>c.current.map(k=>k?.value.replace(/\D/g,"").slice(-1)??""),[]),Q=x.useCallback(()=>{const k=U().join(""),se=k.length===E&&b.test(k);B.current!==se&&(B.current=se,m(se))},[E,b,U]),N=x.useCallback(k=>{k<E-1&&c.current[k+1]?.focus()},[E]),M=x.useCallback(k=>{k>0&&c.current[k-1]?.focus()},[]),G=x.useMemo(()=>Array.from({length:E},(k,se)=>se),[E]),V=x.useCallback(k=>{for(let le=0;le<E;le++){const z=c.current[le];z&&(z.value=k[le]??"")}Q();const se=Math.min(k.length,E-1);c.current[se]?.focus()},[Q,E]),F=x.useCallback((k,se)=>{const le=se.target.value.replace(/\D/g,"");if(le.length>1){V(le.slice(0,E));return}const z=le.slice(-1);se.target.value=z,Q(),z&&N(k)},[Q,V,N,E]),O=x.useCallback((k,se)=>{if(se.key==="Backspace"&&!c.current[k]?.value){M(k);return}if(se.key==="Enter"&&!se.shiftKey&&!e){se.preventDefault();const le=U().join("");if(le.length===E&&b.test(le))C.current(le);else{const L=U().findIndex(J=>!J);c.current[L===-1?0:L]?.focus()}}},[e,M,E,b,U]),R=x.useCallback(k=>{k.preventDefault();const se=k.clipboardData.getData("text").replace(/\D/g,"").slice(0,E);se&&V(se)},[V,E]),_=x.useCallback(()=>{if(e)return;const k=U().join("");k.length===E&&b.test(k)&&C.current(k)},[e,E,b,U]),q=x.useCallback(()=>{if(!(u>0||e)){for(const k of c.current)k&&(k.value="");B.current=!1,m(!1),c.current[0]?.focus(),w.current?.(),f(o4)}},[e,u]);x.useEffect(()=>{e||c.current[0]?.focus()},[e]),x.useEffect(()=>{if(h){u>0&&f(0);return}if(u<=0)return;const k=setTimeout(()=>f(se=>se-1),1e3);return()=>clearTimeout(k)},[h,u]);const $=x.useMemo(()=>G.map(k=>g.jsx("input",{ref:se=>{c.current[k]=se},type:"text",inputMode:"numeric",maxLength:t&&k===0?E:1,onChange:se=>F(k,se),onKeyDown:se=>O(k,se),onPaste:R,disabled:e,tabIndex:0,style:{fontSize:t?"16px":"14px",backgroundColor:"var(--input-box-bg)"},className:he("h-10 w-10 rounded-full border text-center text-lg font-semibold text-foreground","border-border shadow-sm outline-none transition-colors","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 focus-visible:border-transparent","disabled:cursor-not-allowed disabled:opacity-50"),autoComplete:k===0?"one-time-code":"off","aria-label":`Digit ${k+1}`},k)),[e,G,F,O,R,t,E]);return g.jsx("div",{className:"px-4 pt-3 pb-2 space-y-3",children:g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("p",{className:"text-xs font-semibold tracking-wide text-foreground uppercase",children:"Please enter the OTP"}),!h&&g.jsxs("button",{type:"button",onClick:q,disabled:e||u>0,className:he("text-xs font-medium underline underline-offset-2","text-primary hover:opacity-90 disabled:opacity-50 disabled:no-underline disabled:cursor-not-allowed"),children:["Resend OTP",u>0?` (00:${String(u).padStart(2,"0")}s)`:""]})]}),g.jsxs("div",{className:"flex items-center w-full gap-2 justify-between",children:[g.jsx("div",{className:"flex items-center gap-2",children:$}),g.jsx(_e,{type:"button",size:"icon",onClick:_,disabled:e,variant:"ghost",className:`h-10 w-10 ${h?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:h?"Submit OTP":"Enter the full OTP to submit","aria-label":h?"Submit OTP":"Enter the full OTP to submit",children:g.jsx(gs,{className:`w-4 h-4 ${h?"text-primary-foreground":"text-primary"}`})})]})]})})}const f4=x.memo(u4,c4);function d4({value:e,onChange:t,onKeyDown:r,placeholder:i,disabled:s,theme:l,isMobile:c,isEmailValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your email address"}),g.jsxs("div",{className:he("flex items-center gap-1 rounded-full px-2 py-2 w-full",s&&"opacity-60",l?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(jf,{type:"email",autoComplete:"email",value:e,onChange:t,onKeyDown:r,placeholder:i??"username@example.com",className:he("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:c?"16px":"14px"},autoFocus:!s,disabled:s}),g.jsx(_e,{type:"button",size:"icon",onClick:f,disabled:s||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit email address":"Enter a valid email address","aria-label":u?"Submit email address":"Enter a valid email address",children:g.jsx(gs,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})}const VB=10,h4=10,g4=/^[6-9][0-9]{9}$/,p4=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function m4({elicitationEntry:e,value:t,onChange:r,isDisabled:i,theme:s,isMobile:l,onSend:c}){const{component:u,pattern:f,minLength:h,maxLength:m,description:B,disp_toast_msg:C,tool_key:w}=e??{},E=x.useMemo(()=>u===de.SYNAPSE_COMPONENTS.MOBILE,[u]),b=x.useMemo(()=>u===de.SYNAPSE_COMPONENTS.OTP,[u]),U=x.useMemo(()=>u===de.SYNAPSE_COMPONENTS.EMAIL,[u]);if(!E&&!b&&!U)return null;const Q=C?.trim()??"",N=_=>{const q=_.target.value.replace(/\D/g,""),$=m??VB;r(q.slice(0,$))},M=t.length===(h??h4)&&(f?new RegExp(f).test(t):g4.test(t)),G=f?new RegExp(f).test(t):p4.test(t),V=()=>{!G||i||c({toolCalled:!0,tool_key:w})},F=_=>{_.key==="Enter"&&(_.preventDefault(),V())},O=()=>{!M||i||c({toolCalled:!0,tool_key:w})},R=_=>{_.key==="Enter"&&(_.preventDefault(),O())};return g.jsxs(g.Fragment,{children:[E&&g.jsx(s4,{value:t,onChange:N,onSend:O,onKeyDown:R,placeholder:B??"Enter your mobile number",disabled:i,isMobileValid:M,theme:s,isMobile:l,maxLength:m??VB}),b&&g.jsx(f4,{disabled:i,isMobile:l,validation:{pattern:f,minLength:h,maxLength:m},onSubmit:_=>{c({message:_,toolCalled:!0,tool_key:w})},onResendOtp:()=>{c({toolCalled:!0,resend:!0,tool_key:w})},serverMessage:Q,theme:s}),U&&g.jsx(d4,{value:t,onChange:_=>r(_.target.value),onKeyDown:F,disabled:i,isEmailValid:G,theme:s,isMobile:l,placeholder:B,onSend:V})]})}const GB=({className:e})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:g.jsx("path",{d:"M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z",fill:"currentColor"})});function B4({value:e,onChange:t,onSend:r,onFileChange:i,onRemoveFile:s,onRecording:l,isRecording:c,hasAttachment:u,attachmentFiles:f,isDisabled:h,placeholder:m,isMobile:B,recordingStatus:C,theme:w,allowed:E,showStartNewChatButton:b,onStartNewChat:U,isVoiceAgentActive:Q,handleVoiceMode:N,isAuthComponent:M,activeElicitationState:G,isFullScreen:V}){const F=x.useRef(null),O=x.useRef(null),R=e.trim().length>0||u,_=E===void 0||E.includes(de.SYNAPSE_CONVERSATION.AUDIO),q=E===void 0||E.includes(de.SYNAPSE_CONVERSATION.VOICE),$=R||!_,k=R,se=E===void 0||E.includes(de.SYNAPSE_CONVERSATION.FILE),le=(h||C!==BA.IDLE)&&!c,z=he("rounded-full transition-all duration-200 ",c?"bg-gradient-to-r from-rose-400 via-primary to-indigo-500 text-white ring-2 ring-white/60 animate-pulse shadow-[0_0_20px_rgba(139,92,246,0.45)]":le?"text-primary/50 cursor-not-allowed shadow-none":"text-foreground hover:bg-primary hover:text-primary-foreground"),L=I=>{const P=Array.from(I.target.files||[]);P.length>0&&i(P)},J=()=>{h||(F.current&&(F.current.value=""),F.current?.click())},Ae=I=>{I.key==="Enter"&&!I.shiftKey&&k&&!h&&(I.preventDefault(),r())},me=I=>{I.style.height="auto",I.style.overflow="hidden";const P=I.scrollHeight,v=V?20:28,te=120,oe=Math.max(v,Math.min(P,te));I.style.height=oe+"px",P>te?I.style.overflow="auto":I.style.overflow="hidden"},T=I=>{me(I.currentTarget)};return x.useEffect(()=>{O.current&&me(O.current)},[e]),x.useEffect(()=>{!h&&!B&&O.current?.focus()},[h]),b&&U?g.jsx("div",{className:"px-4 py-2 flex justify-unset",children:g.jsxs("button",{type:"button",onClick:U,className:he("px-6 py-3 bg-primary text-primary-foreground text-sm font-semibold rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:pointer-events-none w-full",!B&&"hover:bg-primary/90"),children:[g.jsx("span",{children:"Start new chat"}),g.jsx(Vm,{className:"w-5 h-5","aria-hidden":!0})]})}):g.jsx(g.Fragment,{children:M?g.jsx(m4,{elicitationEntry:G,value:e,onChange:t,isDisabled:h,theme:w,isMobile:B,onSend:r}):V?g.jsx("div",{className:"mx-3 mb-3","data-name":"reply-box",children:g.jsxs("div",{className:"flex flex-col items-stretch w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:24,padding:8},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Lf,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("input",{ref:F,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:L,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsx("div",{className:"flex items-center justify-between w-full",style:{padding:"12px 8px"},"data-name":"text-frame",children:g.jsx(kf,{ref:O,onInput:T,placeholder:m,value:e,onChange:I=>t(I.target.value),rows:1,maxLength:1e3,autoFocus:!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"20px",maxHeight:"120px",fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:14,lineHeight:"20px",fontWeight:400,padding:0},onKeyPress:Ae,title:"Enter your message","aria-label":"Enter your message",className:he("flex-1 min-w-0 shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","bg-transparent disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap","text-foreground resize-none placeholder:text-muted-foreground")})}),g.jsxs("div",{className:"flex items-center justify-between w-full","data-name":"cta-row",children:[g.jsx("div",{className:"flex items-start shrink-0","data-name":"input-left-cta",children:se&&C===BA.IDLE&&g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:J,disabled:h,className:he("rounded-full transition-all shrink-0 p-2 h-10 w-10",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(Gm,{className:"w-6 h-6",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex gap-2 items-center shrink-0","data-name":"input-right-cta",children:[c?g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:l,className:he("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(zm,{className:"w-4 h-4"})}):_&&g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:le,className:he("h-10 w-10 shrink-0 p-2",z),title:"Start recording","aria-label":"Start recording",children:g.jsx(ku,{className:"w-6 h-6",strokeWidth:1.5})}),$&&!c?g.jsx(_e,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!k,variant:"ghost",className:he("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0 p-2",k?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:k?"Send message":"Type a message to send","aria-label":k?"Send message":"Type a message to send",children:g.jsx(gs,{className:"w-4 h-4 text-primary-foreground"})}):_&&q&&!c&&g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:N,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(GB,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})}):g.jsxs("div",{className:"px-3 pb-2 pt-1",children:[g.jsx("input",{ref:F,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:L,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsxs("div",{className:"flex flex-col w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.3)",borderRadius:20,padding:"4px 8px"},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Lf,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("div",{className:"px-2 pt-1 pb-0",children:g.jsx(kf,{ref:O,onInput:T,placeholder:m,value:e,onChange:I=>t(I.target.value),rows:1,maxLength:1e3,autoFocus:!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"28px",maxHeight:"120px",fontSize:"16px",lineHeight:"1.4"},onKeyPress:Ae,title:"Enter your message","aria-label":"Enter your message",className:he("w-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-base placeholder:text-muted-foreground bg-transparent","disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap text-foreground resize-none")})}),g.jsxs("div",{className:"flex items-center justify-between px-1",children:[g.jsx("div",{className:"flex items-center shrink-0",children:se&&C===BA.IDLE&&g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:J,disabled:h,className:he("h-10 w-10 rounded-full transition-all shrink-0",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(Gm,{className:"w-5 h-5",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c?g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:l,className:he("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(zm,{className:"w-4 h-4"})}):$?g.jsx(_e,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!k,variant:"ghost",className:he("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0",k?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:k?"Send message":"Type a message to send","aria-label":k?"Send message":"Type a message to send",children:g.jsx(gs,{className:"w-4 h-4 text-primary-foreground"})}):_&&g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:le,className:he("h-10 w-10 shrink-0",z),title:"Start recording","aria-label":"Start recording",children:g.jsx(ku,{className:"w-5 h-5",strokeWidth:1.5})}),_&&q&&!c&&g.jsx(_e,{type:"button",variant:"ghost",size:"icon",onClick:N,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(GB,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})]})})}const w4=Object.freeze(Object.defineProperty({__proto__:null,default:B4},Symbol.toStringTag,{value:"Module"}));var C4=Ap[" useInsertionEffect ".trim().toString()]||tr;function y4({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[s,l,c]=E4({defaultProp:t,onChange:r}),u=e!==void 0,f=u?e:s;{const m=x.useRef(e!==void 0);x.useEffect(()=>{const B=m.current;if(B!==u){const C=B?"controlled":"uncontrolled",w=u?"controlled":"uncontrolled"}m.current=u},[u,i])}const h=x.useCallback(m=>{if(u){const B=v4(m)?m(e):m;B!==e&&c.current?.(B)}else l(m)},[u,e,l,c]);return[f,h]}function E4({defaultProp:e,onChange:t}){const[r,i]=x.useState(e),s=x.useRef(r),l=x.useRef(t);return C4(()=>{l.current=t},[t]),x.useEffect(()=>{s.current!==r&&(l.current?.(r),s.current=r)},[r,s]),[r,i,l]}function v4(e){return typeof e=="function"}function b4(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function x4(e){const[t,r]=x.useState(void 0);return tr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,u;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,u=h.blockSize}else c=e.offsetWidth,u=e.offsetHeight;r({width:c,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var to="Checkbox",[S4]=op(to),[Q4,Kf]=S4(to);function U4(e){const{__scopeCheckbox:t,checked:r,children:i,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:f,required:h,value:m="on",internal_do_not_use_render:B}=e,[C,w]=y4({prop:r,defaultProp:s??!1,onChange:f,caller:to}),[E,b]=x.useState(null),[U,Q]=x.useState(null),N=x.useRef(!1),M=E?!!c||!!E.closest("form"):!0,G={checked:C,disabled:l,setChecked:w,control:E,setControl:b,name:u,form:c,value:m,hasConsumerStoppedPropagationRef:N,required:h,defaultChecked:or(s)?!1:s,isFormControl:M,bubbleInput:U,setBubbleInput:Q};return g.jsx(Q4,{scope:t,...G,children:F4(B)?B(G):i})}var zB="CheckboxTrigger",PB=x.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...i},s)=>{const{control:l,value:c,disabled:u,checked:f,required:h,setControl:m,setChecked:B,hasConsumerStoppedPropagationRef:C,isFormControl:w,bubbleInput:E}=Kf(zB,e),b=Sn(s,m),U=x.useRef(f);return x.useEffect(()=>{const Q=l?.form;if(Q){const N=()=>B(U.current);return Q.addEventListener("reset",N),()=>Q.removeEventListener("reset",N)}},[l,B]),g.jsx(Ar.button,{type:"button",role:"checkbox","aria-checked":or(f)?"mixed":f,"aria-required":h,"data-state":ZB(f),"data-disabled":u?"":void 0,disabled:u,value:c,...i,ref:b,onKeyDown:Qn(t,Q=>{Q.key==="Enter"&&Q.preventDefault()}),onClick:Qn(r,Q=>{B(N=>or(N)?!0:!N),E&&w&&(C.current=Q.isPropagationStopped(),C.current||Q.stopPropagation())})})});PB.displayName=zB;var Vf=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:l,required:c,disabled:u,value:f,onCheckedChange:h,form:m,...B}=e;return g.jsx(U4,{__scopeCheckbox:r,checked:s,defaultChecked:l,disabled:u,required:c,onCheckedChange:h,name:i,form:m,value:f,internal_do_not_use_render:({isFormControl:C})=>g.jsxs(g.Fragment,{children:[g.jsx(PB,{...B,ref:t,__scopeCheckbox:r}),C&&g.jsx(JB,{__scopeCheckbox:r})]})})});Vf.displayName=to;var YB="CheckboxIndicator",XB=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:i,...s}=e,l=Kf(YB,r);return g.jsx(yi,{present:i||or(l.checked)||l.checked===!0,children:g.jsx(Ar.span,{"data-state":ZB(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});XB.displayName=YB;var qB="CheckboxBubbleInput",JB=x.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:c,required:u,disabled:f,name:h,value:m,form:B,bubbleInput:C,setBubbleInput:w}=Kf(qB,e),E=Sn(r,w),b=b4(l),U=x4(i);x.useEffect(()=>{const N=C;if(!N)return;const M=window.HTMLInputElement.prototype,V=Object.getOwnPropertyDescriptor(M,"checked").set,F=!s.current;if(b!==l&&V){const O=new Event("click",{bubbles:F});N.indeterminate=or(l),V.call(N,or(l)?!1:l),N.dispatchEvent(O)}},[C,b,l,s]);const Q=x.useRef(or(l)?!1:l);return g.jsx(Ar.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??Q.current,required:u,disabled:f,name:h,value:m,form:B,...t,tabIndex:-1,ref:E,style:{...t.style,...U,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});JB.displayName=qB;function F4(e){return typeof e=="function"}function or(e){return e==="indeterminate"}function ZB(e){return or(e)?"indeterminate":e?"checked":"unchecked"}const Gf=x.forwardRef(({className:e,...t},r)=>g.jsx(Vf,{ref:r,className:he("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:g.jsx(XB,{className:he("grid place-content-center text-current"),children:g.jsx(Du,{className:"h-4 w-4"})})}));Gf.displayName=Vf.displayName;function T4({options:e,selectedValues:t,onSelectionChange:r,additionalOption:i,className:s,required:l=!0,maxSelections:c,disabled:u}){const f=i?{id:`extra-${i}`,label:i==="all_of_the_above"?"All of the above":"None of the above",value:i==="all_of_the_above"?"All of the above":"None of the above"}:null,h=b=>f?b.filter(U=>U!==f.value):b,m=b=>f?i==="none_of_the_above"?b?[f.value]:[]:i==="all_of_the_above"?b?[...e.map(U=>U.value),f.value]:h(t):b?[...t,f.value]:h(t):t,B=(b,U)=>{const Q=f?h(t):t;return U?c&&Q.length>=c?null:[...Q,b]:Q.filter(N=>N!==b)},C=b=>!(l&&b.length===0&&t.length===1),w=(b,U)=>{const N=f&&b===f.value?m(U):B(b,U);N!==null&&C(N)&&r(N)},E=f?t.filter(b=>b!==f.value).length:t.length;return e.length?g.jsxs("div",{className:he(s),children:[g.jsxs("div",{className:"space-y-3",children:[e.map(b=>{const U=u||c&&E>=c&&!t.includes(b.value);let Q=t.includes(b.value);return g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Gf,{id:b.id,checked:Q,disabled:!!U,onCheckedChange:N=>w(b.value,!!N),className:"mt-0.5 border border-muted-foreground text-primary-foreground"}),g.jsx("label",{htmlFor:b.id,className:he("text-sm font-normal leading-4 cursor-pointer",U?"text-muted-foreground cursor-not-allowed":Q?"text-primary":"text-secondary-foreground"),children:b.label})]},b.id)}),f&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border-medium my-3"}),g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Gf,{id:f.id,checked:t.includes(f.value),onCheckedChange:b=>w(f.value,b),className:"mt-0.5 border border-muted-foreground"}),g.jsx("label",{htmlFor:f.id,className:"text-sm font-medium leading-none cursor-pointer text-secondary-foreground",children:f.label})]})]})]}),c&&E>=c&&g.jsx("p",{className:"text-sm text-blue-600 mt-3",children:c===1?"You can select only 1 option":`Maximum ${c} selections allowed`})]}):null}const N4=Object.freeze(Object.defineProperty({__proto__:null,MultiSelectGroup:T4},Symbol.toStringTag,{value:"Module"})),WB=12,I4=.76,_4=3;function $B({count:e,renderItem:t,className:r}){const[i,s]=x.useState(0),[l,c]=x.useState(0),[u,f]=x.useState(()=>Math.min(_4,e)),h=x.useRef(null),m=x.useRef(0),B=x.useRef(0);if(x.useEffect(()=>{f(U=>Math.max(U,Math.min(i+2,e)))},[i,e]),x.useLayoutEffect(()=>{const U=h.current;if(!U)return;c(U.clientWidth);const Q=new ResizeObserver(([N])=>c(N.contentRect.width));return Q.observe(U),()=>Q.disconnect()},[]),e===0)return null;const C=U=>s(Math.max(0,Math.min(e-1,U)));if(e===1)return g.jsx("div",{className:r??"mt-3",children:t(0,!0)});const w=l*I4,E=(l-w)/2,b=l>0?E-i*(w+WB):0;return g.jsx("div",{ref:h,className:he("mt-3 w-full",r),children:l>0&&g.jsxs("div",{className:"relative w-full",children:[g.jsx("div",{className:"w-full overflow-hidden py-3",onTouchStart:U=>{m.current=U.touches[0].clientX,B.current=U.touches[0].clientY},onTouchEnd:U=>{const Q=U.changedTouches[0].clientX-m.current,N=U.changedTouches[0].clientY-B.current;Math.abs(Q)>Math.abs(N)&&Math.abs(Q)>50&&C(i+(Q<0?1:-1))},children:g.jsx("div",{className:"flex items-stretch",style:{transform:`translateX(${b}px)`,transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",gap:`${WB}px`},"aria-live":"polite",children:Array.from({length:u},(U,Q)=>{const N=Q===i;return g.jsx("div",{"aria-hidden":!N,style:{flex:`0 0 ${w}px`,position:"relative",opacity:N?1:.6,transform:N?"scale(1.05)":"scale(0.9)",zIndex:N?20:10,transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:12},children:t(Q,N)},Q)})})}),i>0&&g.jsx("button",{type:"button","aria-label":"Previous",onClick:()=>C(i-1),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(jm,{size:18})}),i<e-1&&g.jsx("button",{type:"button","aria-label":"Next",onClick:()=>C(i+1),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(Km,{size:18})})]})})}const H4=Object.freeze(Object.defineProperty({__proto__:null,FocusCarousel:$B},Symbol.toStringTag,{value:"Module"}));function M4({value:e,onValueChange:t,placeholder:r="Select an option",className:i,triggerClassName:s,contentClassName:l,disabled:c=!1,options:u=[],size:f="default",icon:h}){const[m,B]=x.useState(!1),C=x.useRef(null),w=x.useRef(null),E=u.find(Q=>Q.value===e);x.useEffect(()=>{const Q=N=>{m&&N.key==="Escape"&&(B(!1),w.current?.focus())};return document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)}},[m]);const b=Q=>{t?.(Q),B(!1),w.current?.focus()},U=()=>{c||B(!m)};return g.jsxs("div",{className:he("relative w-full",i),children:[g.jsxs("button",{ref:w,type:"button",onClick:U,disabled:c,className:he('border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*="text-"])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 overflow-hidden',f==="default"?"min-h-9":"min-h-8",s),"aria-expanded":m,"aria-haspopup":"listbox",children:[h,g.jsx("span",{className:he("flex-1 text-left min-w-0 overflow-hidden break-words line-clamp-2",!E&&"text-muted-foreground"),children:E?E.label:r}),g.jsx(Qi,{className:he("size-4 opacity-50 pointer-events-none shrink-0 transition-transform duration-200",m&&"rotate-180")})]}),m&&g.jsx("div",{ref:C,className:he("bg-surface text-foreground animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 relative z-50 max-h-[136px] min-w-[8rem] w-full overflow-x-hidden overflow-y-auto overscroll-contain rounded-md shadow-md mt-1",l),role:"listbox",children:g.jsx("div",{className:"p-1",children:u.length===0?g.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground text-center",children:"No options available"}):u.map(Q=>{const N=Q.value===e;return g.jsxs("div",{onClick:()=>b(Q.value),className:he("relative flex w-full cursor-pointer items-center gap-1 rounded-sm py-2.5 px-3 text-sm outline-none select-none transition-colors duration-150","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground","active:bg-accent/80",N&&"bg-accent/50 text-foreground",c&&"pointer-events-none opacity-50 cursor-not-allowed"),role:"option","aria-selected":N,tabIndex:c?-1:0,onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),c||b(Q.value))},children:[g.jsx("span",{className:"flex-1 text-left min-w-0 break-words line-clamp-2",children:Q.label}),N&&g.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none",children:g.jsx(Du,{className:"size-4 text-foreground"})})]},Q.value)})})})]})}function O4({doctor:e,doctorDetails:t,onSelect:r,disabled:i,isActive:s=!0}){const l=x.useMemo(()=>{if(t?.hospitals?.[0]?.hospital_id)return t?.hospitals?.[0]?.hospital_id},[t?.hospitals]),[c,u]=x.useState(l),[f,h]=x.useState(!1),[m,B]=x.useState(null),[C,w]=x.useState(null),[E,b]=x.useState(0),[U,Q]=x.useState(!1),[N,M]=x.useState(!1),[G,V]=x.useState(!1),[F,O]=x.useState(!1),[R,_]=x.useState(!1),q=x.useRef(!1),$=x.useRef(null);x.useEffect(()=>{u(l)},[l]);const k=e.availability??[],se=x.useCallback(async()=>{if(!G&&(M(!0),!k.length&&r&&t)){V(!0);try{await r({...e,hospital_id:c})}finally{V(!1)}}},[N,G,r,t,k.length,c]),le=x.useCallback(v=>{t&&(u(v),B(null),w(null),b(0),q.current=!1,r?.({...e,hospital_id:v}))},[e,r,t]);x.useEffect(()=>{s||M(!1)},[s]),x.useEffect(()=>{if(!N||!k.length||q.current)return;q.current=!0;const v=e.preferred_date||k[0]?.date;v&&(B(oe=>oe??v),k.find(oe=>oe.date===v)?.slots?.length||r?.({...e,hospital_id:c,preferred_date:v}))},[k,N]);const z=x.useMemo(()=>k.find(v=>v.date===m)?.slots??[],[k,m]);x.useLayoutEffect(()=>{const v=$.current;v&&(v.scrollTop=0,O(v.scrollHeight>v.clientHeight+2))},[m,z.length]);const L=x.useCallback(()=>{const v=$.current;v&&O(v.scrollTop+v.clientHeight<v.scrollHeight-4)},[]),J=()=>{$.current?.scrollBy({top:120,behavior:"smooth"})},Ae=x.useMemo(()=>{if(!k.length)return[];const v=Math.min(E+3,k.length);return k.slice(E,v).map(te=>{if(te.date)return{...te,...DT(te.date)}})},[k,E]),me=E>0,T=E<Math.max(0,(k||[]).length-3),I=x.useCallback(async v=>{B(v),w(null);const te=k.find(oe=>oe.date===v);if(!(te?.slots?.length||Array.isArray(te?.slots)&&te?.slots.length===0)){h(!0);try{await r?.({...e,hospital_id:c,preferred_date:v})}catch{}finally{h(!1)}}},[e,c,r,k]),P=()=>{if(!C||!m||U)return;Q(!0);const v=e.cta?.text;r?.({...e,hospital_id:c,preferred_date:m,preferred_slot_time:C},`${v||`I want to book an appointment with Dr. ${t?.name}`} on ${m} at ${C}.`,e.cta?.tool_result)};return t?g.jsxs(Fn,{className:"max-w-md h-full rounded-xl border border-black-200 dark:border-white-200 shadow-none p-0 bg-elicitationBg overflow-hidden",children:[g.jsxs(Vu,{className:"flex flex-row items-center gap-3 bg-primary/[20%] rounded-t-xl p-2 border-b border-border-subtle overflow-hidden",children:[g.jsxs(Xu,{className:"h-12 w-12 ring-2 ring-primary/20 flex-shrink-0",children:[t.profile_pic&&g.jsx(c0,{src:t.profile_pic,alt:`${t.name} profile photo`,crossOrigin:"anonymous"}),g.jsx(qu,{className:"bg-secondary text-primary",children:LT(t.name)})]}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("h3",{className:"font-bold text-slate-900 leading-tight",style:{fontSize:"0.95rem"},children:[g.jsx("span",{children:t.name}),t.profile_link&&g.jsx("a",{href:t.profile_link,target:"_blank",rel:"noreferrer","aria-label":"View profile",className:"inline-block align-middle ml-2 text-primary hover:text-primary/70 transition-colors",children:g.jsx(oS,{className:"h-3.5 w-3.5 inline","aria-hidden":!0})})]}),g.jsxs("p",{className:"mt-0.5 text-xs text-slate-600 line-clamp-1 hover:line-clamp-none hover:whitespace-normal cursor-help",title:`${t.specialty}${t.experience?` • ${t.experience}`:""}`,children:[t.specialty,t.experience&&g.jsxs(g.Fragment,{children:[" • ",t.experience]})]})]})]}),g.jsxs(Kl,{className:"px-3 py-2",children:[g.jsxs("div",{className:"grid gap-1 pb-2 border-b border-border-subtle",children:[t.timings&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(rS,{className:"h-3.5 w-3.5 text-primary mt-0.5 flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.timings})]}),t.languages&&g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx(dS,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.languages})]}),t.hospitals?.length>1&&c?g.jsx(M4,{options:t.hospitals.map(v=>({value:v.hospital_id,label:v.name||""})),placeholder:"Select Hospital",disabled:i,onValueChange:le,value:c,triggerClassName:"h-8 text-xs px-3 rounded-lg border-border text-primary font-medium",icon:g.jsx(Dl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0})}):g.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[g.jsx(Dl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.hospitals?.[0]?.name||""})]}),t.info&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(fS,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:he("text-text-secondary text-xs leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words overflow-hidden",!R&&"line-clamp-1"),children:g.jsx(hs,{children:t.info})}),g.jsxs("button",{type:"button",onClick:()=>_(v=>!v),"aria-expanded":R,className:"mt-0.5 flex items-center gap-1 text-[11px] font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(sS,{className:"h-3.5 w-3.5","aria-hidden":!0}),R?"View less":"View more"]})]})]})]}),N?G?g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"Loading..."}):k.length>0?g.jsxs("div",{className:"pt-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(_e,{type:"button",variant:"outline",size:"icon",onClick:()=>{b(v=>Math.max(0,v-3)),w(null)},disabled:i||!me,"aria-label":"Previous 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(jm,{className:"h-4 w-4"})}),g.jsx("div",{className:"flex-1 grid grid-cols-3 gap-1 min-w-0",children:Ae.map((v,te)=>{if(!v||!v.date)return null;const oe=m===v.date,fe=(v?.slots||[]).length>0;return g.jsxs(_e,{type:"button",variant:"outline",onClick:()=>v.date&&I(v.date),disabled:i,"aria-current":oe?"date":void 0,className:he("flex flex-col items-center justify-center h-12 rounded-lg border-2 p-2 gap-0.5 min-w-0 transition-all",oe?"border-primary border-2 ring-2 ring-primary/20 bg-primary/[20%] shadow-sm hover:text-accent-foreground":fe?"border-primary/30 bg-elicitationBg hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/40":"border-border bg-elicitationBg opacity-60 hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/30"),children:[g.jsx("span",{className:he("text-[10px] tracking-wide w-full text-center font-medium"),children:v.weekday}),g.jsx("span",{className:he("text-xs font-bold w-full text-center"),children:v.dayNum})]},`${v.date}-${te}`)})}),g.jsx(_e,{type:"button",variant:"outline",size:"icon",onClick:()=>{b(v=>Math.min(Math.max(0,k.length-3),v+3)),w(null)},disabled:i||!T,"aria-label":"Next 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(Km,{className:"h-4 w-4"})})]}),m&&g.jsx("div",{className:"mt-2",children:z.length>0?g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:$,onScroll:L,className:"grid grid-cols-3 gap-2 overflow-y-auto overscroll-contain",style:{maxHeight:"108px"},children:z.map((v,te)=>{if(!v)return null;const oe=C===v;return g.jsx(_e,{type:"button",variant:"outline",onClick:()=>w(v),"aria-pressed":oe,disabled:i,className:he("h-9 rounded-lg px-2 text-xs font-medium transition-all",oe?"border-primary bg-primary/20 text-primary shadow-sm hover:bg-primary/10":"border-border bg-elicitationBg text-text-primary hover:bg-primary/10 hover:border-primary/30"),children:g.jsx("span",{children:v})},v||`slot-${te}`)})}),F&&g.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-elicitationBg via-elicitationBg to-transparent pointer-events-none flex items-end justify-center pb-1",children:g.jsxs("button",{type:"button",onClick:J,className:"pointer-events-auto flex items-center gap-1 text-xs font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(Qi,{className:"h-3.5 w-3.5","aria-hidden":!0}),"More slots"]})})]}):f?g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"Fetching slots..."}):g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"No slots available."})}),g.jsxs(_e,{type:"button",onClick:P,disabled:!C||i||U,"aria-disabled":!C||U,className:`w-full h-10 gap-2 bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-60 shadow-sm font-semibold ${F?"":" mt-2"}`,children:[e.cta?.title||"Book appointment",g.jsx(AS,{className:"h-4 w-4","aria-hidden":!0})]})]}):g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"No slots available."}):g.jsx("div",{className:"pt-3",children:g.jsxs(_e,{type:"button",variant:"outline",onClick:se,disabled:i||G,className:"w-full h-8 gap-1.5 text-xs border-primary/40 text-primary hover:bg-primary/10 disabled:opacity-60 font-medium rounded-lg",children:[G?"Loading...":"Show available slots",g.jsx(Qi,{className:"h-3.5 w-3.5","aria-hidden":!0})]})})]})]}):null}const R4=Object.freeze(Object.defineProperty({__proto__:null,DoctorCard:O4},Symbol.toStringTag,{value:"Module"})),L4={voucher:CS,pharmacy:km,hospital:km,map:hS,location_pin:Dl,"location pin":Dl,check:Du,calendar:tS,rupee:uS,dollar:iS,euro:lS};function no({name:e,className:t,size:r=16}){const i=e?.trim().toLowerCase().replace(/\s+/g,"_");if(!i)return null;const s=L4[i];if(s)return g.jsx(s,{className:t,size:r,"aria-hidden":!0})}function ew({card:e,onSelect:t,disabled:r=!1}){const{title:i,tags:s,icon:l,img:c,description:u,banner_text:f,items:h,primary_cta:m,secondary_cta:B}=e,C=E=>{if(!r&&(E.link&&window.open(E.link,"_blank","noopener,noreferrer"),E.text||E.title)){let b=!1;e?.primary_cta?.tool_result&&(b=!0),t?.({message:E.text||E.title,selectedCard:e?.title,selectedComponent:e,selected_id:e.card_id,...b?{tool_result:e.primary_cta?.tool_result}:{}})}},w=!!c;return g.jsxs(Fn,{className:"w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none",children:[g.jsxs(Vu,{className:`flex flex-row items-center justify-between gap-3 p-3 ${w?"bg-primary/[20%]":""}`,children:[g.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[i?g.jsx(Jm,{className:"text-base font-bold leading-tight tracking-tight truncate",children:i}):null,s?g.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:s}):null]}),w?g.jsx("div",{className:"shrink-0",children:g.jsx("img",{src:c,alt:i??"profile",className:"h-16 w-16 rounded-full object-cover border-2 border-background"})}):l?g.jsx("div",{className:"shrink-0 text-muted-foreground",children:g.jsx(no,{name:l,size:24,className:"text-primary"})}):null]}),g.jsxs(Kl,{className:"flex-1 space-y-3 pt-3 overflow-hidden",children:[u?g.jsx("div",{className:"text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words",children:g.jsx(hs,{children:u})}):null,f?g.jsx("div",{className:"rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate",children:f}):null,h?.length?g.jsx("div",{className:"flex flex-col gap-y-1",children:h.map((E,b)=>g.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-foreground min-w-0",children:[E.icon?g.jsx(no,{name:E.icon,size:12,className:"shrink-0 text-muted-foreground"}):null,g.jsx("span",{className:"truncate",children:E.text})]},b))}):null]}),m?.title||B?.title?g.jsxs(Zm,{className:"flex justify-center flex-wrap gap-2 pt-0",children:[m&&g.jsxs(_e,{type:"button",variant:"default",size:"sm",className:`gap-1.5 truncate ${B?"":"w-full"}`,disabled:r,onClick:()=>C(m),children:[m.icon?g.jsx(no,{name:m.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:m.title})]}),B&&g.jsxs(_e,{type:"button",variant:"outline",size:"sm",className:"gap-1.5 truncate",disabled:r,onClick:()=>C(B),children:[B.icon?g.jsx(no,{name:B.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:B.title})]})]}):null]})}function D4({cards:e,onSelect:t,disabled:r=!1,className:i,orientation:s="vertical"}){const[l,c]=x.useState(!1),u=x.useRef(!1);if(!e?.length)return g.jsx("p",{className:"text-sm text-muted-foreground py-2",children:"No options available."});const f=async h=>{u.current||(u.current=!0,c(!0),await t?.(h))};return s!=="horizontal"?g.jsx("div",{className:i??"flex flex-col gap-3 mt-3",children:e.map((h,m)=>g.jsx(ew,{card:h,onSelect:f,disabled:r||l},h.card_id||m))}):g.jsx($B,{count:e.length,renderItem:h=>g.jsx(ew,{card:e[h],onSelect:f,disabled:r||l})})}const k4=Object.freeze(Object.defineProperty({__proto__:null,CardList:D4},Symbol.toStringTag,{value:"Module"}));function Aw(e){return e.toLowerCase().endsWith(".pdf")}function j4(e){const t=document?.createElement("a");t.href=e,t.download=e.split("/").pop()??"download.pdf",t.target="_blank",t.click(),document?.body?.removeChild(t)}async function K4(e){if(!e.current)return;const t=(await Promise.resolve().then(()=>ry)).default,r=await t(e.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download="card.png",i.click()}async function V4(e){if(!e.current)return;const t=(await Promise.resolve().then(()=>ry)).default,r=await t(e.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download=`screenshot-${Date.now()}.png`,i.click()}function G4({card:e}){const{title:t,description:r,tags_text:i,banner_text:s,action:l,link:c}=e,u=x.useRef(null),f=c&&!Aw(c),h=()=>{l==="screenshot"?V4(u):l==="download"&&(c&&Aw(c)?j4(c):K4(u))};return g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx(Fn,{ref:u,className:"overflow-hidden rounded-xl border border-border bg-elicitationBg text-card-foreground shadow-sm",children:g.jsxs(Kl,{className:"p-3 space-y-2",children:[g.jsxs("div",{className:`flex items-start gap-3 ${f?"justify-between":"justify-center"}`,children:[g.jsxs("div",{className:`space-y-2 ${f?"min-w-0 flex-1":"flex flex-col items-center"}`,children:[t&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-sm font-semibold bg-primary text-primary-foreground",children:t}),r&&g.jsx("p",{className:`text-sm text-foreground leading-snug ${f?"":"text-center"}`,children:r}),s&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-xs font-semibold bg-green-600 text-white",children:s})]}),f&&g.jsx("div",{className:"shrink-0 h-24 w-24 rounded-lg overflow-hidden border border-border",children:g.jsx("img",{src:c,alt:t??"media",className:"h-full w-full object-cover"})})]}),i&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:i})]})]})}),l&&g.jsx("div",{className:"flex justify-end",children:g.jsxs(_e,{type:"button",variant:"outline",size:"sm",className:"rounded-md px-5 gap-1.5",onClick:h,children:[l==="screenshot"?g.jsx(nS,{className:"h-4 w-4"}):g.jsx(aS,{className:"h-4 w-4"}),l==="screenshot"?"Screenshot":"Download"]})})]})}const z4=Object.freeze(Object.defineProperty({__proto__:null,MediaCard:G4},Symbol.toStringTag,{value:"Module"}));function P4({message:e,onDismiss:t}){return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pointer-events-none absolute inset-0 z-[55] bg-black-600","aria-hidden":!0}),g.jsx("div",{className:"pointer-events-none absolute inset-x-3 top-3 z-[60]",role:"presentation",children:g.jsxs("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"synapse-disp-toast-msg",className:"pointer-events-auto flex w-full flex-row items-center gap-3 rounded-lg border border-border bg-surface p-3 text-left text-foreground opacity-100",onClick:r=>r.stopPropagation(),children:[g.jsx("p",{id:"synapse-disp-toast-msg",className:"min-w-0 flex-1 text-sm font-medium whitespace-pre-wrap",children:e}),g.jsx("button",{type:"button",onClick:t,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close",children:g.jsx(ns,{className:"h-4 w-4",strokeWidth:2.5})})]})})]})}function Y4(){const e=Ze(i=>i.toastMessage),t=Ze(i=>i.setToastMessage),r=x.useCallback(()=>{t(null)},[t]);return x.useEffect(()=>{if(!e)return;const i=window.setTimeout(r,3e3);return()=>window.clearTimeout(i)},[e,r]),e?g.jsx(P4,{message:e,onDismiss:r}):null}const X4=Object.freeze(Object.defineProperty({__proto__:null,default:Y4},Symbol.toStringTag,{value:"Module"}));function q4({className:e="",onRetry:t,showRetryButton:r,startNewConnection:i,clearError:s,error:l,isConnected:c}){const{isOnline:u}=DB(),[f,h]=x.useState(!0);return x.useEffect(()=>{if(!i&&!r&&!!l){h(!0);const C=setTimeout(()=>h(!1),5e3);return()=>clearTimeout(C)}h(!0)},[l,i,r]),i?g.jsx("div",{className:he("flex flex-col items-center synapse-chat-widget-footer px-3 pt-3 pb-2 ",e),children:g.jsx("p",{className:"text-text-secondary text-sm max-w-sm mx-auto text-center w-250 mx-4 text-balance",children:"The conversation is now closed. Start a new session to continue."})}):r&&l?.title?g.jsx("div",{className:he("mx-4 mb-3 p-2 bg-surface border border-[#F7B500] rounded-lg",e),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-[#F7B500] rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:l?.title}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:l?.description??"Please check your connection and try again"})]}),g.jsxs("button",{onClick:()=>{s(),t?.()},className:"px-4 py-2 bg-primary text-primary-foreground text-sm font-semibold rounded-lg hover:bg-primary/90 transition-colors flex items-center gap-2 flex-shrink-0",children:[g.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,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"})}),"Retry"]})]})}):c&&u&&!l?.title||!i&&!r&&!f||!c&&!l?.title?null:g.jsx("div",{className:he("mx-4 mb-3 p-2 bg-surface border border-border-subtle rounded-lg transition-opacity duration-500",e),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:u?l?.title:"No internet connection"}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:u?l?.description??"Please wait while we try to connect":"Please check your internet connection"})]}),!u&&g.jsx("div",{className:"flex-shrink-0",children:g.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"})})]})})}const J4=Object.freeze(Object.defineProperty({__proto__:null,ConnectionStatus:q4},Symbol.toStringTag,{value:"Module"}));var zf=function(e,t){return zf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},zf(e,t)};function an(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Pf=function(){return Pf=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Pf.apply(this,arguments)};function ot(e,t,r,i){function s(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function u(m){try{h(i.next(m))}catch(B){c(B)}}function f(m){try{h(i.throw(m))}catch(B){c(B)}}function h(m){m.done?l(m.value):s(m.value).then(u,f)}h((i=i.apply(e,[])).next())})}function at(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(m){return f([h,m])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(l=h[0]&2?s.return:h[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,h[1])).done)return l;switch(s=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){r.label=h[1];break}if(h[0]===6&&r.label<l[1]){r.label=l[1],l=h;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(h);break}l[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(m){h=[6,m],s=0}finally{i=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function S6(e,t,r){if(arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||t)}for(var Tn=(function(){function e(t,r,i,s){this.left=t,this.top=r,this.width=i,this.height=s}return e.prototype.add=function(t,r,i,s){return new e(this.left+t,this.top+r,this.width+i,this.height+s)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var i=Array.from(r).find(function(s){return s.width!==0});return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),ro=function(e,t){return Tn.fromClientRect(e,t.getBoundingClientRect())},Z4=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),s=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new Tn(0,0,i,s)},io=function(e){for(var t=[],r=0,i=e.length;r<i;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=e.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},QA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=e[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W4=typeof Uint8Array>"u"?[]:new Uint8Array(256),ao=0;ao<tw.length;ao++)W4[tw.charCodeAt(ao)]=ao;for(var nw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ps=typeof Uint8Array>"u"?[]:new Uint8Array(256),so=0;so<nw.length;so++)ps[nw.charCodeAt(so)]=so;for(var $4=function(e){var t=e.length*.75,r=e.length,i,s=0,l,c,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=ps[e.charCodeAt(i)],c=ps[e.charCodeAt(i+1)],u=ps[e.charCodeAt(i+2)],f=ps[e.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},eN=function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r.push(e[i+1]<<8|e[i]);return r},AN=function(e){for(var t=e.length,r=[],i=0;i<t;i+=4)r.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return r},Jr=5,Yf=11,Xf=2,tN=Yf-Jr,rw=65536>>Jr,nN=1<<Jr,qf=nN-1,rN=1024>>Jr,iN=rw+rN,aN=iN,sN=32,lN=aN+sN,oN=65536>>Yf,cN=1<<tN,uN=cN-1,iw=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},fN=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},dN=function(e,t){var r=$4(e),i=Array.isArray(r)?AN(r):new Uint32Array(r),s=Array.isArray(r)?eN(r):new Uint16Array(r),l=24,c=iw(s,l/2,i[4]/2),u=i[5]===2?iw(s,(l+i[4])/2):fN(i,Math.ceil((l+i[4])/4));return new hN(i[0],i[1],i[2],i[3],c,u)},hN=(function(){function e(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Jr],r=(r<<Xf)+(t&qf),this.data[r];if(t<=65535)return r=this.index[rw+(t-55296>>Jr)],r=(r<<Xf)+(t&qf),this.data[r];if(t<this.highStart)return r=lN-oN+(t>>Yf),r=this.index[r],r+=t>>Jr&uN,r=this.index[r],r=(r<<Xf)+(t&qf),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),aw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gN=typeof Uint8Array>"u"?[]:new Uint8Array(256),lo=0;lo<aw.length;lo++)gN[aw.charCodeAt(lo)]=lo;var pN="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",sw=50,mN=1,lw=2,ow=3,BN=4,wN=5,cw=7,uw=8,fw=9,cr=10,Jf=11,dw=12,Zf=13,CN=14,ms=15,Wf=16,oo=17,Bs=18,yN=19,hw=20,$f=21,ws=22,ed=23,Mi=24,Qt=25,Cs=26,ys=27,Oi=28,EN=29,Zr=30,vN=31,co=32,uo=33,Ad=34,td=35,nd=36,Es=37,rd=38,fo=39,ho=40,id=41,gw=42,bN=43,xN=[9001,65288],pw="!",ze="×",go="÷",ad=dN(pN),Nn=[Zr,nd],sd=[mN,lw,ow,wN],mw=[cr,uw],Bw=[ys,Cs],SN=sd.concat(mw),ww=[rd,fo,ho,Ad,td],QN=[ms,Zf],UN=function(e,t){t===void 0&&(t="strict");var r=[],i=[],s=[];return e.forEach(function(l,c){var u=ad.get(l);if(u>sw?(s.push(!0),u-=sw):s.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return i.push(c),r.push(Wf);if(u===BN||u===Jf){if(c===0)return i.push(c),r.push(Zr);var f=r[c-1];return SN.indexOf(f)===-1?(i.push(i[c-1]),r.push(f)):(i.push(c),r.push(Zr))}if(i.push(c),u===vN)return r.push(t==="strict"?$f:Es);if(u===gw||u===EN)return r.push(Zr);if(u===bN)return l>=131072&&l<=196605||l>=196608&&l<=262141?r.push(Es):r.push(Zr);r.push(u)}),[i,r,s]},ld=function(e,t,r,i){var s=i[r];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var l=r;l<=i.length;){l++;var c=i[l];if(c===t)return!0;if(c!==cr)break}if(s===cr)for(var l=r;l>0;){l--;var u=i[l];if(Array.isArray(e)?e.indexOf(u)!==-1:e===u)for(var f=r;f<=i.length;){f++;var c=i[f];if(c===t)return!0;if(c!==cr)break}if(u!==cr)break}return!1},Cw=function(e,t){for(var r=e;r>=0;){var i=t[r];if(i===cr)r--;else return i}return 0},FN=function(e,t,r,i,s){if(r[i]===0)return ze;var l=i-1;if(Array.isArray(s)&&s[l]===!0)return ze;var c=l-1,u=l+1,f=t[l],h=c>=0?t[c]:0,m=t[u];if(f===lw&&m===ow)return ze;if(sd.indexOf(f)!==-1)return pw;if(sd.indexOf(m)!==-1||mw.indexOf(m)!==-1)return ze;if(Cw(l,t)===uw)return go;if(ad.get(e[l])===Jf||(f===co||f===uo)&&ad.get(e[u])===Jf||f===cw||m===cw||f===fw||[cr,Zf,ms].indexOf(f)===-1&&m===fw||[oo,Bs,yN,Mi,Oi].indexOf(m)!==-1||Cw(l,t)===ws||ld(ed,ws,l,t)||ld([oo,Bs],$f,l,t)||ld(dw,dw,l,t))return ze;if(f===cr)return go;if(f===ed||m===ed)return ze;if(m===Wf||f===Wf)return go;if([Zf,ms,$f].indexOf(m)!==-1||f===CN||h===nd&&QN.indexOf(f)!==-1||f===Oi&&m===nd||m===hw||Nn.indexOf(m)!==-1&&f===Qt||Nn.indexOf(f)!==-1&&m===Qt||f===ys&&[Es,co,uo].indexOf(m)!==-1||[Es,co,uo].indexOf(f)!==-1&&m===Cs||Nn.indexOf(f)!==-1&&Bw.indexOf(m)!==-1||Bw.indexOf(f)!==-1&&Nn.indexOf(m)!==-1||[ys,Cs].indexOf(f)!==-1&&(m===Qt||[ws,ms].indexOf(m)!==-1&&t[u+1]===Qt)||[ws,ms].indexOf(f)!==-1&&m===Qt||f===Qt&&[Qt,Oi,Mi].indexOf(m)!==-1)return ze;if([Qt,Oi,Mi,oo,Bs].indexOf(m)!==-1)for(var B=l;B>=0;){var C=t[B];if(C===Qt)return ze;if([Oi,Mi].indexOf(C)!==-1)B--;else break}if([ys,Cs].indexOf(m)!==-1)for(var B=[oo,Bs].indexOf(f)!==-1?c:l;B>=0;){var C=t[B];if(C===Qt)return ze;if([Oi,Mi].indexOf(C)!==-1)B--;else break}if(rd===f&&[rd,fo,Ad,td].indexOf(m)!==-1||[fo,Ad].indexOf(f)!==-1&&[fo,ho].indexOf(m)!==-1||[ho,td].indexOf(f)!==-1&&m===ho||ww.indexOf(f)!==-1&&[hw,Cs].indexOf(m)!==-1||ww.indexOf(m)!==-1&&f===ys||Nn.indexOf(f)!==-1&&Nn.indexOf(m)!==-1||f===Mi&&Nn.indexOf(m)!==-1||Nn.concat(Qt).indexOf(f)!==-1&&m===ws&&xN.indexOf(e[u])===-1||Nn.concat(Qt).indexOf(m)!==-1&&f===Bs)return ze;if(f===id&&m===id){for(var w=r[l],E=1;w>0&&(w--,t[w]===id);)E++;if(E%2!==0)return ze}return f===co&&m===uo?ze:go},TN=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=UN(e,t.lineBreak),i=r[0],s=r[1],l=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(s=s.map(function(u){return[Qt,Zr,gw].indexOf(u)!==-1?Es:u}));var c=t.wordBreak==="keep-all"?l.map(function(u,f){return u&&e[f]>=19968&&e[f]<=40959}):void 0;return[i,s,c]},NN=(function(){function e(t,r,i,s){this.codePoints=t,this.required=r===pw,this.start=i,this.end=s}return e.prototype.slice=function(){return QA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),IN=function(e,t){var r=io(e),i=TN(r,t),s=i[0],l=i[1],c=i[2],u=r.length,f=0,h=0;return{next:function(){if(h>=u)return{done:!0,value:null};for(var m=ze;h<u&&(m=FN(r,l,s,++h,c))===ze;);if(m!==ze||h===u){var B=new NN(r,m,f,h);return f=h,{value:B,done:!1}}return{done:!0,value:null}}}},_N=1,HN=2,vs=4,yw=8,po=10,Ew=47,bs=92,MN=9,ON=32,mo=34,xs=61,RN=35,LN=36,DN=37,Bo=39,wo=40,Ss=41,kN=95,pt=45,jN=33,KN=60,VN=62,GN=64,zN=91,PN=93,YN=61,XN=123,Co=63,qN=125,vw=124,JN=126,ZN=128,bw=65533,od=42,Wr=43,WN=44,$N=58,eI=59,Qs=46,AI=0,tI=8,nI=11,rI=14,iI=31,aI=127,mn=-1,xw=48,Sw=97,Qw=101,sI=102,lI=117,oI=122,Uw=65,Fw=69,Tw=70,cI=85,uI=90,st=function(e){return e>=xw&&e<=57},fI=function(e){return e>=55296&&e<=57343},Ri=function(e){return st(e)||e>=Uw&&e<=Tw||e>=Sw&&e<=sI},dI=function(e){return e>=Sw&&e<=oI},hI=function(e){return e>=Uw&&e<=uI},gI=function(e){return dI(e)||hI(e)},pI=function(e){return e>=ZN},yo=function(e){return e===po||e===MN||e===ON},Eo=function(e){return gI(e)||pI(e)||e===kN},Nw=function(e){return Eo(e)||st(e)||e===pt},mI=function(e){return e>=AI&&e<=tI||e===nI||e>=rI&&e<=iI||e===aI},ur=function(e,t){return e!==bs?!1:t!==po},vo=function(e,t,r){return e===pt?Eo(t)||ur(t,r):Eo(e)?!0:!!(e===bs&&ur(e,t))},cd=function(e,t,r){return e===Wr||e===pt?st(t)?!0:t===Qs&&st(r):st(e===Qs?t:e)},BI=function(e){var t=0,r=1;(e[t]===Wr||e[t]===pt)&&(e[t]===pt&&(r=-1),t++);for(var i=[];st(e[t]);)i.push(e[t++]);var s=i.length?parseInt(QA.apply(void 0,i),10):0;e[t]===Qs&&t++;for(var l=[];st(e[t]);)l.push(e[t++]);var c=l.length,u=c?parseInt(QA.apply(void 0,l),10):0;(e[t]===Fw||e[t]===Qw)&&t++;var f=1;(e[t]===Wr||e[t]===pt)&&(e[t]===pt&&(f=-1),t++);for(var h=[];st(e[t]);)h.push(e[t++]);var m=h.length?parseInt(QA.apply(void 0,h),10):0;return r*(s+u*Math.pow(10,-c))*Math.pow(10,f*m)},wI={type:2},CI={type:3},yI={type:4},EI={type:13},vI={type:8},bI={type:21},xI={type:9},SI={type:10},QI={type:11},UI={type:12},FI={type:14},bo={type:23},TI={type:1},NI={type:25},II={type:24},_I={type:26},HI={type:27},MI={type:28},OI={type:29},RI={type:31},ud={type:32},Iw=(function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(io(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==ud;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case mo:return this.consumeStringToken(mo);case RN:var r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Nw(r)||ur(i,s)){var l=vo(r,i,s)?HN:_N,c=this.consumeName();return{type:5,value:c,flags:l}}break;case LN:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),EI;break;case Bo:return this.consumeStringToken(Bo);case wo:return wI;case Ss:return CI;case od:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),FI;break;case Wr:if(cd(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case WN:return yI;case pt:var u=t,f=this.peekCodePoint(0),h=this.peekCodePoint(1);if(cd(u,f,h))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(vo(u,f,h))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(f===pt&&h===VN)return this.consumeCodePoint(),this.consumeCodePoint(),II;break;case Qs:if(cd(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Ew:if(this.peekCodePoint(0)===od)for(this.consumeCodePoint();;){var m=this.consumeCodePoint();if(m===od&&(m=this.consumeCodePoint(),m===Ew))return this.consumeToken();if(m===mn)return this.consumeToken()}break;case $N:return _I;case eI:return HI;case KN:if(this.peekCodePoint(0)===jN&&this.peekCodePoint(1)===pt&&this.peekCodePoint(2)===pt)return this.consumeCodePoint(),this.consumeCodePoint(),NI;break;case GN:var B=this.peekCodePoint(0),C=this.peekCodePoint(1),w=this.peekCodePoint(2);if(vo(B,C,w)){var c=this.consumeName();return{type:7,value:c}}break;case zN:return MI;case bs:if(ur(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case PN:return OI;case YN:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),vI;break;case XN:return QI;case qN:return UI;case lI:case cI:var E=this.peekCodePoint(0),b=this.peekCodePoint(1);return E===Wr&&(Ri(b)||b===Co)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case vw:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),xI;if(this.peekCodePoint(0)===vw)return this.consumeCodePoint(),bI;break;case JN:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),SI;break;case mn:return ud}return yo(t)?(this.consumeWhiteSpace(),RI):st(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Eo(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:QA(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();Ri(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var i=!1;r===Co&&t.length<6;)t.push(r),r=this.consumeCodePoint(),i=!0;if(i){var s=parseInt(QA.apply(void 0,t.map(function(f){return f===Co?xw:f})),16),l=parseInt(QA.apply(void 0,t.map(function(f){return f===Co?Tw:f})),16);return{type:30,start:s,end:l}}var c=parseInt(QA.apply(void 0,t),16);if(this.peekCodePoint(0)===pt&&Ri(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var u=[];Ri(r)&&u.length<6;)u.push(r),r=this.consumeCodePoint();var l=parseInt(QA.apply(void 0,u),16);return{type:30,start:c,end:l}}else return{type:30,start:c,end:c}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===wo?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wo?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===mn)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Bo||r===mo){var i=this.consumeStringToken(this.consumeCodePoint());return i.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===mn||this.peekCodePoint(0)===Ss)?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),bo)}for(;;){var s=this.consumeCodePoint();if(s===mn||s===Ss)return{type:22,value:QA.apply(void 0,t)};if(yo(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===mn||this.peekCodePoint(0)===Ss?(this.consumeCodePoint(),{type:22,value:QA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),bo);if(s===mo||s===Bo||s===wo||mI(s))return this.consumeBadUrlRemnants(),bo;if(s===bs)if(ur(s,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),bo;else t.push(s)}},e.prototype.consumeWhiteSpace=function(){for(;yo(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Ss||t===mn)return;ur(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,i="";t>0;){var s=Math.min(r,t);i+=QA.apply(void 0,this._value.splice(0,s)),t-=s}return this._value.shift(),i},e.prototype.consumeStringToken=function(t){var r="",i=0;do{var s=this._value[i];if(s===mn||s===void 0||s===t)return r+=this.consumeStringSlice(i),{type:0,value:r};if(s===po)return this._value.splice(0,i),TI;if(s===bs){var l=this._value[i+1];l!==mn&&l!==void 0&&(l===po?(r+=this.consumeStringSlice(i),i=-1,this._value.shift()):ur(s,l)&&(r+=this.consumeStringSlice(i),r+=QA(this.consumeEscapedCodePoint()),i=-1))}i++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=vs,i=this.peekCodePoint(0);for((i===Wr||i===pt)&&t.push(this.consumeCodePoint());st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(i===Qs&&st(s))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=yw;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0),s=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((i===Fw||i===Qw)&&((s===Wr||s===pt)&&st(l)||st(s)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=yw;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[BI(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],i=t[1],s=this.peekCodePoint(0),l=this.peekCodePoint(1),c=this.peekCodePoint(2);if(vo(s,l,c)){var u=this.consumeName();return{type:15,number:r,flags:i,unit:u}}return s===DN?(this.consumeCodePoint(),{type:16,number:r,flags:i}):{type:17,number:r,flags:i}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Ri(t)){for(var r=QA(t);Ri(this.peekCodePoint(0))&&r.length<6;)r+=QA(this.consumeCodePoint());yo(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(r,16);return i===0||fI(i)||i>1114111?bw:i}return t===mn?bw:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(Nw(r))t+=QA(r);else if(ur(r,this.peekCodePoint(0)))t+=QA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e})(),_w=(function(){function e(t){this._tokens=t}return e.create=function(t){var r=new Iw;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},i=this.consumeToken();;){if(i.type===32||DI(i,t))return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue()),i=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var i=this.consumeToken();if(i.type===32||i.type===3)return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?ud:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e})(),Us=function(e){return e.type===15},Li=function(e){return e.type===17},lA=function(e){return e.type===20},LI=function(e){return e.type===0},fd=function(e,t){return lA(e)&&e.value===t},Hw=function(e){return e.type!==31},Di=function(e){return e.type!==31&&e.type!==4},Bn=function(e){var t=[],r=[];return e.forEach(function(i){if(i.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}i.type!==31&&r.push(i)}),r.length&&t.push(r),t},DI=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},fr=function(e){return e.type===17||e.type===15},MA=function(e){return e.type===16||fr(e)},Mw=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},WA={type:17,number:0,flags:vs},dd={type:16,number:50,flags:vs},dr={type:16,number:100,flags:vs},Fs=function(e,t,r){var i=e[0],s=e[1];return[pA(i,t),pA(typeof s<"u"?s:i,r)]},pA=function(e,t){if(e.type===16)return e.number/100*t;if(Us(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Ow="deg",Rw="grad",Lw="rad",Dw="turn",xo={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case Ow:return Math.PI*t.number/180;case Rw:return Math.PI/200*t.number;case Lw:return t.number;case Dw:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},kw=function(e){return e.type===15&&(e.unit===Ow||e.unit===Rw||e.unit===Lw||e.unit===Dw)},jw=function(e){var t=e.filter(lA).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[WA,WA];case"to top":case"bottom":return Vt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[WA,dr];case"to right":case"left":return Vt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[dr,dr];case"to bottom":case"top":return Vt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[dr,WA];case"to left":case"right":return Vt(270)}return 0},Vt=function(e){return Math.PI*e/180},hr={name:"color",parse:function(e,t){if(t.type===18){var r=kI[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3);return pr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),1)}if(t.value.length===4){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3),c=t.value.substring(3,4);return pr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),parseInt(c+c,16)/255)}if(t.value.length===6){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6);return pr(parseInt(i,16),parseInt(s,16),parseInt(l,16),1)}if(t.value.length===8){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6),c=t.value.substring(6,8);return pr(parseInt(i,16),parseInt(s,16),parseInt(l,16),parseInt(c,16)/255)}}if(t.type===20){var u=In[t.value.toUpperCase()];if(typeof u<"u")return u}return In.TRANSPARENT}},gr=function(e){return(255&e)===0},YA=function(e){var t=255&e,r=255&e>>8,i=255&e>>16,s=255&e>>24;return t<255?"rgba("+s+","+i+","+r+","+t/255+")":"rgb("+s+","+i+","+r+")"},pr=function(e,t,r,i){return(e<<24|t<<16|r<<8|Math.round(i*255)<<0)>>>0},Kw=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},Vw=function(e,t){var r=t.filter(Di);if(r.length===3){var i=r.map(Kw),s=i[0],l=i[1],c=i[2];return pr(s,l,c,1)}if(r.length===4){var u=r.map(Kw),s=u[0],l=u[1],c=u[2],f=u[3];return pr(s,l,c,f)}return 0};function hd(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<.16666666666666666?(t-e)*r*6+e:r<.5?t:r<.6666666666666666?(t-e)*6*(.6666666666666666-r)+e:e}var Gw=function(e,t){var r=t.filter(Di),i=r[0],s=r[1],l=r[2],c=r[3],u=(i.type===17?Vt(i.number):xo.parse(e,i))/(Math.PI*2),f=MA(s)?s.number/100:0,h=MA(l)?l.number/100:0,m=typeof c<"u"&&MA(c)?pA(c,1):1;if(f===0)return pr(h*255,h*255,h*255,1);var B=h<=.5?h*(f+1):h+f-h*f,C=h*2-B,w=hd(C,B,u+1/3),E=hd(C,B,u),b=hd(C,B,u-1/3);return pr(w*255,E*255,b*255,m)},kI={hsl:Gw,hsla:Gw,rgb:Vw,rgba:Vw},Ts=function(e,t){return hr.parse(e,_w.create(t).parseComponentValue())},In={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},jI={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(lA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},KI={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},So=function(e,t){var r=hr.parse(e,t[0]),i=t[1];return i&&MA(i)?{color:r,stop:i}:{color:r,stop:null}},zw=function(e,t){var r=e[0],i=e[e.length-1];r.stop===null&&(r.stop=WA),i.stop===null&&(i.stop=dr);for(var s=[],l=0,c=0;c<e.length;c++){var u=e[c].stop;if(u!==null){var f=pA(u,t);f>l?s.push(f):s.push(l),l=f}else s.push(null)}for(var h=null,c=0;c<s.length;c++){var m=s[c];if(m===null)h===null&&(h=c);else if(h!==null){for(var B=c-h,C=s[h-1],w=(m-C)/(B+1),E=1;E<=B;E++)s[h+E-1]=w*E;h=null}}return e.map(function(b,U){var Q=b.color;return{color:Q,stop:Math.max(Math.min(1,s[U]/t),0)}})},VI=function(e,t,r){var i=t/2,s=r/2,l=pA(e[0],t)-i,c=s-pA(e[1],r);return(Math.atan2(c,l)+Math.PI*2)%(Math.PI*2)},GI=function(e,t,r){var i=typeof e=="number"?e:VI(e,t,r),s=Math.abs(t*Math.sin(i))+Math.abs(r*Math.cos(i)),l=t/2,c=r/2,u=s/2,f=Math.sin(i-Math.PI/2)*u,h=Math.cos(i-Math.PI/2)*u;return[s,l-h,l+h,c-f,c+f]},sn=function(e,t){return Math.sqrt(e*e+t*t)},Pw=function(e,t,r,i,s){var l=[[0,0],[0,t],[e,0],[e,t]];return l.reduce(function(c,u){var f=u[0],h=u[1],m=sn(r-f,i-h);return(s?m<c.optimumDistance:m>c.optimumDistance)?{optimumCorner:u,optimumDistance:m}:c},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner},zI=function(e,t,r,i,s){var l=0,c=0;switch(e.size){case 0:e.shape===0?l=c=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):e.shape===1&&(l=Math.min(Math.abs(t),Math.abs(t-i)),c=Math.min(Math.abs(r),Math.abs(r-s)));break;case 2:if(e.shape===0)l=c=Math.min(sn(t,r),sn(t,r-s),sn(t-i,r),sn(t-i,r-s));else if(e.shape===1){var u=Math.min(Math.abs(r),Math.abs(r-s))/Math.min(Math.abs(t),Math.abs(t-i)),f=Pw(i,s,t,r,!0),h=f[0],m=f[1];l=sn(h-t,(m-r)/u),c=u*l}break;case 1:e.shape===0?l=c=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):e.shape===1&&(l=Math.max(Math.abs(t),Math.abs(t-i)),c=Math.max(Math.abs(r),Math.abs(r-s)));break;case 3:if(e.shape===0)l=c=Math.max(sn(t,r),sn(t,r-s),sn(t-i,r),sn(t-i,r-s));else if(e.shape===1){var u=Math.max(Math.abs(r),Math.abs(r-s))/Math.max(Math.abs(t),Math.abs(t-i)),B=Pw(i,s,t,r,!1),h=B[0],m=B[1];l=sn(h-t,(m-r)/u),c=u*l}break}return Array.isArray(e.size)&&(l=pA(e.size[0],i),c=e.size.length===2?pA(e.size[1],s):l),[l,c]},PI=function(e,t){var r=Vt(180),i=[];return Bn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&c.value==="to"){r=jw(s);return}else if(kw(c)){r=xo.parse(e,c);return}}var u=So(e,s);i.push(u)}),{angle:r,stops:i,type:1}},Qo=function(e,t){var r=Vt(180),i=[];return Bn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&["top","left","right","bottom"].indexOf(c.value)!==-1){r=jw(s);return}else if(kw(c)){r=(xo.parse(e,c)+Vt(270))%Vt(360);return}}var u=So(e,s);i.push(u)}),{angle:r,stops:i,type:1}},YI=function(e,t){var r=Vt(180),i=[],s=1,l=0,c=3,u=[];return Bn(t).forEach(function(f,h){var m=f[0];if(h===0){if(lA(m)&&m.value==="linear"){s=1;return}else if(lA(m)&&m.value==="radial"){s=2;return}}if(m.type===18){if(m.name==="from"){var B=hr.parse(e,m.values[0]);i.push({stop:WA,color:B})}else if(m.name==="to"){var B=hr.parse(e,m.values[0]);i.push({stop:dr,color:B})}else if(m.name==="color-stop"){var C=m.values.filter(Di);if(C.length===2){var B=hr.parse(e,C[1]),w=C[0];Li(w)&&i.push({stop:{type:16,number:w.number*100,flags:w.flags},color:B})}}}}),s===1?{angle:(r+Vt(180))%Vt(360),stops:i,type:s}:{size:c,shape:l,stops:i,position:u,type:s}},Yw="closest-side",Xw="farthest-side",qw="closest-corner",Jw="farthest-corner",Zw="circle",Ww="ellipse",$w="cover",eC="contain",XI=function(e,t){var r=0,i=3,s=[],l=[];return Bn(t).forEach(function(c,u){var f=!0;if(u===0){var h=!1;f=c.reduce(function(B,C){if(h)if(lA(C))switch(C.value){case"center":return l.push(dd),B;case"top":case"left":return l.push(WA),B;case"right":case"bottom":return l.push(dr),B}else(MA(C)||fr(C))&&l.push(C);else if(lA(C))switch(C.value){case Zw:return r=0,!1;case Ww:return r=1,!1;case"at":return h=!0,!1;case Yw:return i=0,!1;case $w:case Xw:return i=1,!1;case eC:case qw:return i=2,!1;case Jw:return i=3,!1}else if(fr(C)||MA(C))return Array.isArray(i)||(i=[]),i.push(C),!1;return B},f)}if(f){var m=So(e,c);s.push(m)}}),{size:i,shape:r,stops:s,position:l,type:2}},Uo=function(e,t){var r=0,i=3,s=[],l=[];return Bn(t).forEach(function(c,u){var f=!0;if(u===0?f=c.reduce(function(m,B){if(lA(B))switch(B.value){case"center":return l.push(dd),!1;case"top":case"left":return l.push(WA),!1;case"right":case"bottom":return l.push(dr),!1}else if(MA(B)||fr(B))return l.push(B),!1;return m},f):u===1&&(f=c.reduce(function(m,B){if(lA(B))switch(B.value){case Zw:return r=0,!1;case Ww:return r=1,!1;case eC:case Yw:return i=0,!1;case Xw:return i=1,!1;case qw:return i=2,!1;case $w:case Jw:return i=3,!1}else if(fr(B)||MA(B))return Array.isArray(i)||(i=[]),i.push(B),!1;return m},f)),f){var h=So(e,c);s.push(h)}}),{size:i,shape:r,stops:s,position:l,type:2}},qI=function(e){return e.type===1},JI=function(e){return e.type===2},gd={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var i=AC[t.name];if(typeof i>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function ZI(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!AC[e.name])}var AC={"linear-gradient":PI,"-moz-linear-gradient":Qo,"-ms-linear-gradient":Qo,"-o-linear-gradient":Qo,"-webkit-linear-gradient":Qo,"radial-gradient":XI,"-moz-radial-gradient":Uo,"-ms-radial-gradient":Uo,"-o-radial-gradient":Uo,"-webkit-radial-gradient":Uo,"-webkit-gradient":YI},WI={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(i){return Di(i)&&ZI(i)}).map(function(i){return gd.parse(e,i)})}},$I={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(lA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},e_={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Bn(t).map(function(r){return r.filter(MA)}).map(Mw)}},A_={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Bn(t).map(function(r){return r.filter(lA).map(function(i){return i.value}).join(" ")}).map(t_)}},t_=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ki;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(ki||(ki={}));var n_={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Bn(t).map(function(r){return r.filter(r_)})}},r_=function(e){return lA(e)||MA(e)},Fo=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},i_=Fo("top"),a_=Fo("right"),s_=Fo("bottom"),l_=Fo("left"),To=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return Mw(r.filter(MA))}}},o_=To("top-left"),c_=To("top-right"),u_=To("bottom-right"),f_=To("bottom-left"),No=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},d_=No("top"),h_=No("right"),g_=No("bottom"),p_=No("left"),Io=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Us(r)?r.number:0}}},m_=Io("top"),B_=Io("right"),w_=Io("bottom"),C_=Io("left"),y_={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},E_={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},v_={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(lA).reduce(function(r,i){return r|b_(i.value)},0)}},b_=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},x_={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},S_={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},_o;(function(e){e.NORMAL="normal",e.STRICT="strict"})(_o||(_o={}));var Q_={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return _o.STRICT;case"normal":default:return _o.NORMAL}}},U_={name:"line-height",initialValue:"normal",prefix:!1,type:4},tC=function(e,t){return lA(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:MA(e)?pA(e,t):t},F_={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:gd.parse(e,t)}},T_={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},pd={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ho=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},N_=Ho("top"),I_=Ho("right"),__=Ho("bottom"),H_=Ho("left"),M_={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(lA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},O_={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Mo=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},R_=Mo("top"),L_=Mo("right"),D_=Mo("bottom"),k_=Mo("left"),j_={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},K_={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},V_={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&fd(t[0],"none")?[]:Bn(t).map(function(r){for(var i={color:In.TRANSPARENT,offsetX:WA,offsetY:WA,blur:WA},s=0,l=0;l<r.length;l++){var c=r[l];fr(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:i.blur=c,s++):i.color=hr.parse(e,c)}return i})}},G_={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},z_={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=X_[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},P_=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},Y_=function(e){var t=e.filter(function(f){return f.type===17}).map(function(f){return f.number}),r=t[0],i=t[1],s=t[4],l=t[5],c=t[12],u=t[13];return t.length===16?[r,i,s,l,c,u]:null},X_={matrix:P_,matrix3d:Y_},nC={type:16,number:50,flags:vs},q_=[nC,nC],J_={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(MA);return r.length!==2?q_:[r[0],r[1]]}},Z_={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ns;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Ns||(Ns={}));for(var W_={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Ns.BREAK_ALL;case"keep-all":return Ns.KEEP_ALL;case"normal":default:return Ns.NORMAL}}},$_={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Li(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},rC={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},eH={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Li(t)?t.number:1}},AH={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tH={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(lA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},nH={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],i=[];return t.forEach(function(s){switch(s.type){case 20:case 0:r.push(s.value);break;case 17:r.push(s.number.toString());break;case 4:i.push(r.join(" ")),r.length=0;break}}),r.length&&i.push(r.join(" ")),i.map(function(s){return s.indexOf(" ")===-1?s:"'"+s+"'"})}},rH={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},iH={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Li(t))return t.number;if(lA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},aH={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(lA).map(function(r){return r.value})}},sH={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},VA=function(e,t){return(e&t)!==0},lH={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},oH={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var i=[],s=t.filter(Hw),l=0;l<s.length;l++){var c=s[l],u=s[l+1];if(c.type===20){var f=u&&Li(u)?u.number:1;i.push({counter:c.value,increment:f})}}return i}},cH={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],i=t.filter(Hw),s=0;s<i.length;s++){var l=i[s],c=i[s+1];if(lA(l)&&l.value!=="none"){var u=c&&Li(c)?c.number:0;r.push({counter:l.value,reset:u})}}return r}},uH={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Us).map(function(r){return rC.parse(e,r)})}},fH={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var i=[],s=t.filter(LI);if(s.length%2!==0)return null;for(var l=0;l<s.length;l+=2){var c=s[l].value,u=s[l+1].value;i.push({open:c,close:u})}return i}},iC=function(e,t,r){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?r?i.open:i.close:""},dH={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&fd(t[0],"none")?[]:Bn(t).map(function(r){for(var i={color:255,offsetX:WA,offsetY:WA,blur:WA,spread:WA,inset:!1},s=0,l=0;l<r.length;l++){var c=r[l];fd(c,"inset")?i.inset=!0:fr(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:s===2?i.blur=c:i.spread=c,s++):i.color=hr.parse(e,c)}return i})}},hH={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],i=[];return t.filter(lA).forEach(function(s){switch(s.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}}),r.forEach(function(s){i.indexOf(s)===-1&&i.push(s)}),i}},gH={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},pH={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Us(t)?t.number:0}},mH=(function(){function e(t,r){var i,s;this.animationDuration=we(t,uH,r.animationDuration),this.backgroundClip=we(t,jI,r.backgroundClip),this.backgroundColor=we(t,KI,r.backgroundColor),this.backgroundImage=we(t,WI,r.backgroundImage),this.backgroundOrigin=we(t,$I,r.backgroundOrigin),this.backgroundPosition=we(t,e_,r.backgroundPosition),this.backgroundRepeat=we(t,A_,r.backgroundRepeat),this.backgroundSize=we(t,n_,r.backgroundSize),this.borderTopColor=we(t,i_,r.borderTopColor),this.borderRightColor=we(t,a_,r.borderRightColor),this.borderBottomColor=we(t,s_,r.borderBottomColor),this.borderLeftColor=we(t,l_,r.borderLeftColor),this.borderTopLeftRadius=we(t,o_,r.borderTopLeftRadius),this.borderTopRightRadius=we(t,c_,r.borderTopRightRadius),this.borderBottomRightRadius=we(t,u_,r.borderBottomRightRadius),this.borderBottomLeftRadius=we(t,f_,r.borderBottomLeftRadius),this.borderTopStyle=we(t,d_,r.borderTopStyle),this.borderRightStyle=we(t,h_,r.borderRightStyle),this.borderBottomStyle=we(t,g_,r.borderBottomStyle),this.borderLeftStyle=we(t,p_,r.borderLeftStyle),this.borderTopWidth=we(t,m_,r.borderTopWidth),this.borderRightWidth=we(t,B_,r.borderRightWidth),this.borderBottomWidth=we(t,w_,r.borderBottomWidth),this.borderLeftWidth=we(t,C_,r.borderLeftWidth),this.boxShadow=we(t,dH,r.boxShadow),this.color=we(t,y_,r.color),this.direction=we(t,E_,r.direction),this.display=we(t,v_,r.display),this.float=we(t,x_,r.cssFloat),this.fontFamily=we(t,nH,r.fontFamily),this.fontSize=we(t,rH,r.fontSize),this.fontStyle=we(t,sH,r.fontStyle),this.fontVariant=we(t,aH,r.fontVariant),this.fontWeight=we(t,iH,r.fontWeight),this.letterSpacing=we(t,S_,r.letterSpacing),this.lineBreak=we(t,Q_,r.lineBreak),this.lineHeight=we(t,U_,r.lineHeight),this.listStyleImage=we(t,F_,r.listStyleImage),this.listStylePosition=we(t,T_,r.listStylePosition),this.listStyleType=we(t,pd,r.listStyleType),this.marginTop=we(t,N_,r.marginTop),this.marginRight=we(t,I_,r.marginRight),this.marginBottom=we(t,__,r.marginBottom),this.marginLeft=we(t,H_,r.marginLeft),this.opacity=we(t,eH,r.opacity);var l=we(t,M_,r.overflow);this.overflowX=l[0],this.overflowY=l[l.length>1?1:0],this.overflowWrap=we(t,O_,r.overflowWrap),this.paddingTop=we(t,R_,r.paddingTop),this.paddingRight=we(t,L_,r.paddingRight),this.paddingBottom=we(t,D_,r.paddingBottom),this.paddingLeft=we(t,k_,r.paddingLeft),this.paintOrder=we(t,hH,r.paintOrder),this.position=we(t,K_,r.position),this.textAlign=we(t,j_,r.textAlign),this.textDecorationColor=we(t,AH,(i=r.textDecorationColor)!==null&&i!==void 0?i:r.color),this.textDecorationLine=we(t,tH,(s=r.textDecorationLine)!==null&&s!==void 0?s:r.textDecoration),this.textShadow=we(t,V_,r.textShadow),this.textTransform=we(t,G_,r.textTransform),this.transform=we(t,z_,r.transform),this.transformOrigin=we(t,J_,r.transformOrigin),this.visibility=we(t,Z_,r.visibility),this.webkitTextStrokeColor=we(t,gH,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=we(t,pH,r.webkitTextStrokeWidth),this.wordBreak=we(t,W_,r.wordBreak),this.zIndex=we(t,$_,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return gr(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return VA(this.display,4)||VA(this.display,33554432)||VA(this.display,268435456)||VA(this.display,536870912)||VA(this.display,67108864)||VA(this.display,134217728)},e})(),BH=(function(){function e(t,r){this.content=we(t,lH,r.content),this.quotes=we(t,fH,r.quotes)}return e})(),aC=(function(){function e(t,r){this.counterIncrement=we(t,oH,r.counterIncrement),this.counterReset=we(t,cH,r.counterReset)}return e})(),we=function(e,t,r){var i=new Iw,s=r!==null&&typeof r<"u"?r.toString():t.initialValue;i.write(s);var l=new _w(i.read());switch(t.type){case 2:var c=l.parseComponentValue();return t.parse(e,lA(c)?c.value:t.initialValue);case 0:return t.parse(e,l.parseComponentValue());case 1:return t.parse(e,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(t.format){case"angle":return xo.parse(e,l.parseComponentValue());case"color":return hr.parse(e,l.parseComponentValue());case"image":return gd.parse(e,l.parseComponentValue());case"length":var u=l.parseComponentValue();return fr(u)?u:WA;case"length-percentage":var f=l.parseComponentValue();return MA(f)?f:WA;case"time":return rC.parse(e,l.parseComponentValue())}break}},wH="data-html2canvas-debug",CH=function(e){var t=e.getAttribute(wH);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},md=function(e,t){var r=CH(e);return r===1||t===r},wn=(function(){function e(t,r){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,md(r,3),this.styles=new mH(t,window.getComputedStyle(r,null)),Nd(r)&&(this.styles.animationDuration.some(function(i){return i>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=ro(this.context,r),md(r,4)&&(this.flags|=16)}return e})(),yH="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",sC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Is=typeof Uint8Array>"u"?[]:new Uint8Array(256),Oo=0;Oo<sC.length;Oo++)Is[sC.charCodeAt(Oo)]=Oo;for(var EH=function(e){var t=e.length*.75,r=e.length,i,s=0,l,c,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=Is[e.charCodeAt(i)],c=Is[e.charCodeAt(i+1)],u=Is[e.charCodeAt(i+2)],f=Is[e.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},vH=function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r.push(e[i+1]<<8|e[i]);return r},bH=function(e){for(var t=e.length,r=[],i=0;i<t;i+=4)r.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return r},$r=5,Bd=11,wd=2,xH=Bd-$r,lC=65536>>$r,SH=1<<$r,Cd=SH-1,QH=1024>>$r,UH=lC+QH,FH=UH,TH=32,NH=FH+TH,IH=65536>>Bd,_H=1<<xH,HH=_H-1,oC=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},MH=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},OH=function(e,t){var r=EH(e),i=Array.isArray(r)?bH(r):new Uint32Array(r),s=Array.isArray(r)?vH(r):new Uint16Array(r),l=24,c=oC(s,l/2,i[4]/2),u=i[5]===2?oC(s,(l+i[4])/2):MH(i,Math.ceil((l+i[4])/4));return new RH(i[0],i[1],i[2],i[3],c,u)},RH=(function(){function e(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>$r],r=(r<<wd)+(t&Cd),this.data[r];if(t<=65535)return r=this.index[lC+(t-55296>>$r)],r=(r<<wd)+(t&Cd),this.data[r];if(t<this.highStart)return r=NH-IH+(t>>Bd),r=this.index[r],r+=t>>$r&HH,r=this.index[r],r=(r<<wd)+(t&Cd),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),cC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",LH=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ro=0;Ro<cC.length;Ro++)LH[cC.charCodeAt(Ro)]=Ro;var DH=1,yd=2,Ed=3,uC=4,fC=5,kH=7,dC=8,vd=9,bd=10,hC=11,gC=12,pC=13,mC=14,xd=15,jH=function(e){for(var t=[],r=0,i=e.length;r<i;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=e.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},KH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=e[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},VH=OH(yH),Gt="×",Sd="÷",GH=function(e){return VH.get(e)},zH=function(e,t,r){var i=r-2,s=t[i],l=t[r-1],c=t[r];if(l===yd&&c===Ed)return Gt;if(l===yd||l===Ed||l===uC||c===yd||c===Ed||c===uC)return Sd;if(l===dC&&[dC,vd,hC,gC].indexOf(c)!==-1||(l===hC||l===vd)&&(c===vd||c===bd)||(l===gC||l===bd)&&c===bd||c===pC||c===fC||c===kH||l===DH)return Gt;if(l===pC&&c===mC){for(;s===fC;)s=t[--i];if(s===mC)return Gt}if(l===xd&&c===xd){for(var u=0;s===xd;)u++,s=t[--i];if(u%2===0)return Gt}return Sd},PH=function(e){var t=jH(e),r=t.length,i=0,s=0,l=t.map(GH);return{next:function(){if(i>=r)return{done:!0,value:null};for(var c=Gt;i<r&&(c=zH(t,l,++i))===Gt;);if(c!==Gt||i===r){var u=KH.apply(null,t.slice(s,i));return s=i,{value:u,done:!1}}return{done:!0,value:null}}}},YH=function(e){for(var t=PH(e),r=[],i;!(i=t.next()).done;)i.value&&r.push(i.value.slice());return r},XH=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=t+"px",i.style.display="block",e.body.appendChild(i),r.selectNode(i);var s=r.getBoundingClientRect(),l=Math.round(s.height);if(e.body.removeChild(i),l===t)return!0}}return!1},qH=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var i=t.firstChild,s=io(i.data).map(function(f){return QA(f)}),l=0,c={},u=s.every(function(f,h){r.setStart(i,l),r.setEnd(i,l+f.length);var m=r.getBoundingClientRect();l+=f.length;var B=m.x>c.x||m.y>c.y;return c=m,h===0?!0:B});return e.body.removeChild(t),u},JH=function(){return typeof new Image().crossOrigin<"u"},ZH=function(){return typeof new XMLHttpRequest().responseType=="string"},WH=function(e){var t=new Image,r=e.createElement("canvas"),i=r.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},BC=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},$H=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,r,r);var s=new Image,l=t.toDataURL();s.src=l;var c=Qd(r,r,0,0,s);return i.fillStyle="red",i.fillRect(0,0,r,r),wC(c).then(function(u){i.drawImage(u,0,0);var f=i.getImageData(0,0,r,r).data;i.fillStyle="red",i.fillRect(0,0,r,r);var h=e.createElement("div");return h.style.backgroundImage="url("+l+")",h.style.height=r+"px",BC(f)?wC(Qd(r,r,0,0,h)):Promise.reject(!1)}).then(function(u){return i.drawImage(u,0,0),BC(i.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Qd=function(e,t,r,i,s){var l="http://www.w3.org/2000/svg",c=document.createElementNS(l,"svg"),u=document.createElementNS(l,"foreignObject");return c.setAttributeNS(null,"width",e.toString()),c.setAttributeNS(null,"height",t.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",r.toString()),u.setAttributeNS(null,"y",i.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),c.appendChild(u),u.appendChild(s),c},wC=function(e){return new Promise(function(t,r){var i=new Image;i.onload=function(){return t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},$A={get SUPPORT_RANGE_BOUNDS(){var e=XH(document);return Object.defineProperty($A,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=$A.SUPPORT_RANGE_BOUNDS&&qH(document);return Object.defineProperty($A,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=WH(document);return Object.defineProperty($A,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?$H(document):Promise.resolve(!1);return Object.defineProperty($A,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=JH();return Object.defineProperty($A,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=ZH();return Object.defineProperty($A,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty($A,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty($A,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},_s=(function(){function e(t,r){this.text=t,this.bounds=r}return e})(),e3=function(e,t,r,i){var s=n3(t,r),l=[],c=0;return s.forEach(function(u){if(r.textDecorationLine.length||u.trim().length>0)if($A.SUPPORT_RANGE_BOUNDS){var f=CC(i,c,u.length).getClientRects();if(f.length>1){var h=Ud(u),m=0;h.forEach(function(C){l.push(new _s(C,Tn.fromDOMRectList(e,CC(i,m+c,C.length).getClientRects()))),m+=C.length})}else l.push(new _s(u,Tn.fromDOMRectList(e,f)))}else{var B=i.splitText(u.length);l.push(new _s(u,A3(e,i))),i=B}else $A.SUPPORT_RANGE_BOUNDS||(i=i.splitText(u.length));c+=u.length}),l},A3=function(e,t){var r=t.ownerDocument;if(r){var i=r.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var s=t.parentNode;if(s){s.replaceChild(i,t);var l=ro(e,i);return i.firstChild&&s.replaceChild(i.firstChild,i),l}}return Tn.EMPTY},CC=function(e,t,r){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var s=i.createRange();return s.setStart(e,t),s.setEnd(e,t+r),s},Ud=function(e){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return YH(e)},t3=function(e,t){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(i){return i.segment})}return i3(e,t)},n3=function(e,t){return t.letterSpacing!==0?Ud(e):t3(e,t)},r3=[32,160,4961,65792,65793,4153,4241],i3=function(e,t){for(var r=IN(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),i=[],s,l=function(){if(s.value){var c=s.value.slice(),u=io(c),f="";u.forEach(function(h){r3.indexOf(h)===-1?f+=QA(h):(f.length&&i.push(f),i.push(QA(h)),f="")}),f.length&&i.push(f)}};!(s=r.next()).done;)l();return i},a3=(function(){function e(t,r,i){this.text=s3(r.data,i.textTransform),this.textBounds=e3(t,this.text,i,r)}return e})(),s3=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(l3,o3);case 2:return e.toUpperCase();default:return e}},l3=/(^|\s|:|-|\(|\))([a-z])/g,o3=function(e,t,r){return e.length>0?t+r.toUpperCase():e},yC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.src=i.currentSrc||i.src,s.intrinsicWidth=i.naturalWidth,s.intrinsicHeight=i.naturalHeight,s.context.cache.addImage(s.src),s}return t})(wn),EC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.canvas=i,s.intrinsicWidth=i.width,s.intrinsicHeight=i.height,s}return t})(wn),vC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this,l=new XMLSerializer,c=ro(r,i);return i.setAttribute("width",c.width+"px"),i.setAttribute("height",c.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(i)),s.intrinsicWidth=i.width.baseVal.value,s.intrinsicHeight=i.height.baseVal.value,s.context.cache.addImage(s.svg),s}return t})(wn),bC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.value=i.value,s}return t})(wn),Fd=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.start=i.start,s.reversed=typeof i.reversed=="boolean"&&i.reversed===!0,s}return t})(wn),c3=[{type:15,flags:0,unit:"px",number:3}],u3=[{type:16,flags:0,number:50}],f3=function(e){return e.width>e.height?new Tn(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new Tn(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},d3=function(e){var t=e.type===h3?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},Lo="checkbox",Do="radio",h3="password",xC=707406591,Td=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;switch(s.type=i.type.toLowerCase(),s.checked=i.checked,s.value=d3(i),(s.type===Lo||s.type===Do)&&(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=f3(s.bounds)),s.type){case Lo:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=c3;break;case Do:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=u3;break}return s}return t})(wn),SC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this,l=i.options[i.selectedIndex||0];return s.value=l&&l.text||"",s}return t})(wn),QC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.value=i.value,s}return t})(wn),UC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;s.src=i.src,s.width=parseInt(i.width,10)||0,s.height=parseInt(i.height,10)||0,s.backgroundColor=s.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){s.tree=TC(r,i.contentWindow.document.documentElement);var l=i.contentWindow.document.documentElement?Ts(r,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):In.TRANSPARENT,c=i.contentWindow.document.body?Ts(r,getComputedStyle(i.contentWindow.document.body).backgroundColor):In.TRANSPARENT;s.backgroundColor=gr(l)?gr(c)?s.styles.backgroundColor:c:l}}catch{}return s}return t})(wn),g3=["OL","UL","MENU"],ko=function(e,t,r,i){for(var s=t.firstChild,l=void 0;s;s=l)if(l=s.nextSibling,NC(s)&&s.data.trim().length>0)r.textNodes.push(new a3(e,s,r.styles));else if(ji(s))if(RC(s)&&s.assignedNodes)s.assignedNodes().forEach(function(u){return ko(e,u,r,i)});else{var c=FC(e,s);c.styles.isVisible()&&(p3(s,c,i)?c.flags|=4:m3(c.styles)&&(c.flags|=2),g3.indexOf(s.tagName)!==-1&&(c.flags|=8),r.elements.push(c),s.shadowRoot?ko(e,s.shadowRoot,c,i):!Ko(s)&&!IC(s)&&!Vo(s)&&ko(e,s,c,i))}},FC=function(e,t){return _d(t)?new yC(e,t):_C(t)?new EC(e,t):IC(t)?new vC(e,t):B3(t)?new bC(e,t):w3(t)?new Fd(e,t):C3(t)?new Td(e,t):Vo(t)?new SC(e,t):Ko(t)?new QC(e,t):MC(t)?new UC(e,t):new wn(e,t)},TC=function(e,t){var r=FC(e,t);return r.flags|=4,ko(e,t,r,r),r},p3=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Id(e)&&r.styles.isTransparent()},m3=function(e){return e.isPositioned()||e.isFloating()},NC=function(e){return e.nodeType===Node.TEXT_NODE},ji=function(e){return e.nodeType===Node.ELEMENT_NODE},Nd=function(e){return ji(e)&&typeof e.style<"u"&&!jo(e)},jo=function(e){return typeof e.className=="object"},B3=function(e){return e.tagName==="LI"},w3=function(e){return e.tagName==="OL"},C3=function(e){return e.tagName==="INPUT"},y3=function(e){return e.tagName==="HTML"},IC=function(e){return e.tagName==="svg"},Id=function(e){return e.tagName==="BODY"},_C=function(e){return e.tagName==="CANVAS"},HC=function(e){return e.tagName==="VIDEO"},_d=function(e){return e.tagName==="IMG"},MC=function(e){return e.tagName==="IFRAME"},OC=function(e){return e.tagName==="STYLE"},E3=function(e){return e.tagName==="SCRIPT"},Ko=function(e){return e.tagName==="TEXTAREA"},Vo=function(e){return e.tagName==="SELECT"},RC=function(e){return e.tagName==="SLOT"},LC=function(e){return e.tagName.indexOf("-")>0},v3=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(i){return r.counters[i].pop()})},e.prototype.parse=function(t){var r=this,i=t.counterIncrement,s=t.counterReset,l=!0;i!==null&&i.forEach(function(u){var f=r.counters[u.counter];f&&u.increment!==0&&(l=!1,f.length||f.push(1),f[Math.max(0,f.length-1)]+=u.increment)});var c=[];return l&&s.forEach(function(u){var f=r.counters[u.counter];c.push(u.counter),f||(f=r.counters[u.counter]=[]),f.push(u.reset)}),c},e})(),DC={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},kC={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},b3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},x3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ki=function(e,t,r,i,s,l){return e<t||e>r?Ms(e,s,l.length>0):i.integers.reduce(function(c,u,f){for(;e>=u;)e-=u,c+=i.values[f];return c},"")+l},jC=function(e,t,r,i){var s="";do r||e--,s=i(e)+s,e/=t;while(e*t>=t);return s},UA=function(e,t,r,i,s){var l=r-t+1;return(e<0?"-":"")+(jC(Math.abs(e),l,i,function(c){return QA(Math.floor(c%l)+t)})+s)},ei=function(e,t,r){r===void 0&&(r=". ");var i=t.length;return jC(Math.abs(e),i,!1,function(s){return t[Math.floor(s%i)]})+r},Vi=1,mr=2,Br=4,Hs=8,_n=function(e,t,r,i,s,l){if(e<-9999||e>9999)return Ms(e,4,s.length>0);var c=Math.abs(e),u=s;if(c===0)return t[0]+u;for(var f=0;c>0&&f<=4;f++){var h=c%10;h===0&&VA(l,Vi)&&u!==""?u=t[h]+u:h>1||h===1&&f===0||h===1&&f===1&&VA(l,mr)||h===1&&f===1&&VA(l,Br)&&e>100||h===1&&f>1&&VA(l,Hs)?u=t[h]+(f>0?r[f-1]:"")+u:h===1&&f>0&&(u=r[f-1]+u),c=Math.floor(c/10)}return(e<0?i:"")+u},KC="十百千萬",VC="拾佰仟萬",GC="マイナス",Hd="마이너스",Ms=function(e,t,r){var i=r?". ":"",s=r?"、":"",l=r?", ":"",c=r?" ":"";switch(t){case 0:return"•"+c;case 1:return"◦"+c;case 2:return"◾"+c;case 5:var u=UA(e,48,57,!0,i);return u.length<4?"0"+u:u;case 4:return ei(e,"〇一二三四五六七八九",s);case 6:return Ki(e,1,3999,DC,3,i).toLowerCase();case 7:return Ki(e,1,3999,DC,3,i);case 8:return UA(e,945,969,!1,i);case 9:return UA(e,97,122,!1,i);case 10:return UA(e,65,90,!1,i);case 11:return UA(e,1632,1641,!0,i);case 12:case 49:return Ki(e,1,9999,kC,3,i);case 35:return Ki(e,1,9999,kC,3,i).toLowerCase();case 13:return UA(e,2534,2543,!0,i);case 14:case 30:return UA(e,6112,6121,!0,i);case 15:return ei(e,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return ei(e,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return _n(e,"零一二三四五六七八九",KC,"負",s,mr|Br|Hs);case 47:return _n(e,"零壹貳參肆伍陸柒捌玖",VC,"負",s,Vi|mr|Br|Hs);case 42:return _n(e,"零一二三四五六七八九",KC,"负",s,mr|Br|Hs);case 41:return _n(e,"零壹贰叁肆伍陆柒捌玖",VC,"负",s,Vi|mr|Br|Hs);case 26:return _n(e,"〇一二三四五六七八九","十百千万",GC,s,0);case 25:return _n(e,"零壱弐参四伍六七八九","拾百千万",GC,s,Vi|mr|Br);case 31:return _n(e,"영일이삼사오육칠팔구","십백천만",Hd,l,Vi|mr|Br);case 33:return _n(e,"零一二三四五六七八九","十百千萬",Hd,l,0);case 32:return _n(e,"零壹貳參四五六七八九","拾百千",Hd,l,Vi|mr|Br);case 18:return UA(e,2406,2415,!0,i);case 20:return Ki(e,1,19999,x3,3,i);case 21:return UA(e,2790,2799,!0,i);case 22:return UA(e,2662,2671,!0,i);case 22:return Ki(e,1,10999,b3,3,i);case 23:return ei(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ei(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return UA(e,3302,3311,!0,i);case 28:return ei(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return ei(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return UA(e,3792,3801,!0,i);case 37:return UA(e,6160,6169,!0,i);case 38:return UA(e,4160,4169,!0,i);case 39:return UA(e,2918,2927,!0,i);case 40:return UA(e,1776,1785,!0,i);case 43:return UA(e,3046,3055,!0,i);case 44:return UA(e,3174,3183,!0,i);case 45:return UA(e,3664,3673,!0,i);case 46:return UA(e,3872,3881,!0,i);case 3:default:return UA(e,48,57,!0,i)}},zC="data-html2canvas-ignore",PC=(function(){function e(t,r,i){if(this.context=t,this.options=i,this.scrolledElements=[],this.referenceElement=r,this.counters=new v3,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var i=this,s=S3(t,r);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var l=t.defaultView.pageXOffset,c=t.defaultView.pageYOffset,u=s.contentWindow,f=u.document,h=F3(s).then(function(){return ot(i,void 0,void 0,function(){var m,B;return at(this,function(C){switch(C.label){case 0:return this.scrolledElements.forEach(_3),u&&(u.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==r.top||u.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-r.left,u.scrollY-r.top,0,0))),m=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:f.fonts&&f.fonts.ready?[4,f.fonts.ready]:[3,2];case 1:C.sent(),C.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,U3(f)]:[3,4];case 3:C.sent(),C.label=4;case 4:return typeof m=="function"?[2,Promise.resolve().then(function(){return m(f,B)}).then(function(){return s})]:[2,s]}})})});return f.open(),f.write(N3(document.doctype)+"<html></html>"),I3(this.referenceElement.ownerDocument,l,c),f.replaceChild(f.adoptNode(this.documentElement),f.documentElement),f.close(),h},e.prototype.createElementClone=function(t){if(md(t,2),_C(t))return this.createCanvasClone(t);if(HC(t))return this.createVideoClone(t);if(OC(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return _d(r)&&(_d(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),LC(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return Md(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var i=[].slice.call(r.cssRules,0).reduce(function(l,c){return c&&typeof c.cssText=="string"?l+c.cssText:l},""),s=t.cloneNode(!1);return s.textContent=i,s}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var i=t.ownerDocument.createElement("img");try{return i.src=t.toDataURL(),i}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var s=t.cloneNode(!1);try{s.width=t.width,s.height=t.height;var l=t.getContext("2d"),c=s.getContext("2d");if(c)if(!this.options.allowTaint&&l)c.putImageData(l.getImageData(0,0,t.width,t.height),0,0);else{var u=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(u){var f=u.getContextAttributes();f?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}c.drawImage(t,0,0)}return s}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return s},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var i=r.getContext("2d");try{return i&&(i.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||i.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var s=t.ownerDocument.createElement("canvas");return s.width=t.offsetWidth,s.height=t.offsetHeight,s},e.prototype.appendChildNode=function(t,r,i){(!ji(r)||!E3(r)&&!r.hasAttribute(zC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!ji(r)||!OC(r))&&t.appendChild(this.cloneNode(r,i))},e.prototype.cloneChildNodes=function(t,r,i){for(var s=this,l=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;l;l=l.nextSibling)if(ji(l)&&RC(l)&&typeof l.assignedNodes=="function"){var c=l.assignedNodes();c.length&&c.forEach(function(u){return s.appendChildNode(r,u,i)})}else this.appendChildNode(r,l,i)},e.prototype.cloneNode=function(t,r){if(NC(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var i=t.ownerDocument.defaultView;if(i&&ji(t)&&(Nd(t)||jo(t))){var s=this.createElementClone(t);s.style.transitionProperty="none";var l=i.getComputedStyle(t),c=i.getComputedStyle(t,":before"),u=i.getComputedStyle(t,":after");this.referenceElement===t&&Nd(s)&&(this.clonedReferenceElement=s),Id(s)&&O3(s);var f=this.counters.parse(new aC(this.context,l)),h=this.resolvePseudoContent(t,s,c,Os.BEFORE);LC(t)&&(r=!0),HC(t)||this.cloneChildNodes(t,s,r),h&&s.insertBefore(h,s.firstChild);var m=this.resolvePseudoContent(t,s,u,Os.AFTER);return m&&s.appendChild(m),this.counters.pop(f),(l&&(this.options.copyStyles||jo(t))&&!MC(t)||r)&&Md(l,s),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([s,t.scrollLeft,t.scrollTop]),(Ko(t)||Vo(t))&&(Ko(s)||Vo(s))&&(s.value=t.value),s}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,i,s){var l=this;if(i){var c=i.content,u=r.ownerDocument;if(!(!u||!c||c==="none"||c==="-moz-alt-content"||i.display==="none")){this.counters.parse(new aC(this.context,i));var f=new BH(this.context,i),h=u.createElement("html2canvaspseudoelement");Md(i,h),f.content.forEach(function(B){if(B.type===0)h.appendChild(u.createTextNode(B.value));else if(B.type===22){var C=u.createElement("img");C.src=B.value,C.style.opacity="1",h.appendChild(C)}else if(B.type===18){if(B.name==="attr"){var w=B.values.filter(lA);w.length&&h.appendChild(u.createTextNode(t.getAttribute(w[0].value)||""))}else if(B.name==="counter"){var E=B.values.filter(Di),b=E[0],U=E[1];if(b&&lA(b)){var Q=l.counters.getCounterValue(b.value),N=U&&lA(U)?pd.parse(l.context,U.value):3;h.appendChild(u.createTextNode(Ms(Q,N,!1)))}}else if(B.name==="counters"){var M=B.values.filter(Di),b=M[0],G=M[1],U=M[2];if(b&&lA(b)){var V=l.counters.getCounterValues(b.value),F=U&&lA(U)?pd.parse(l.context,U.value):3,O=G&&G.type===0?G.value:"",R=V.map(function($){return Ms($,F,!1)}).join(O);h.appendChild(u.createTextNode(R))}}}else if(B.type===20)switch(B.value){case"open-quote":h.appendChild(u.createTextNode(iC(f.quotes,l.quoteDepth++,!0)));break;case"close-quote":h.appendChild(u.createTextNode(iC(f.quotes,--l.quoteDepth,!1)));break;default:h.appendChild(u.createTextNode(B.value))}}),h.className=Od+" "+Rd;var m=s===Os.BEFORE?" "+Od:" "+Rd;return jo(r)?r.className.baseValue+=m:r.className+=m,h}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e})(),Os;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Os||(Os={}));var S3=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(zC,"true"),e.body.appendChild(r),r},Q3=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},U3=function(e){return Promise.all([].slice.call(e.images,0).map(Q3))},F3=function(e){return new Promise(function(t,r){var i=e.contentWindow;if(!i)return r("No window assigned for iframe");var s=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var l=setInterval(function(){s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(l),t(e))},50)}})},T3=["all","d","content"],Md=function(e,t){for(var r=e.length-1;r>=0;r--){var i=e.item(r);T3.indexOf(i)===-1&&t.style.setProperty(i,e.getPropertyValue(i))}return t},N3=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},I3=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},_3=function(e){var t=e[0],r=e[1],i=e[2];t.scrollLeft=r,t.scrollTop=i},H3=":before",M3=":after",Od="___html2canvas___pseudoelement_before",Rd="___html2canvas___pseudoelement_after",YC=`{
95
103
  content: "" !important;
96
104
  display: none !important;
97
- }`,fx=function(A){hx(A,"."+al+ux+Zg+`
98
- .`+ll+dx+Zg)},hx=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Ap=(function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),gx=(function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(ul(e)||wx(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return le(this,void 0,void 0,function(){var t,r,n,i,o=this;return ie(this,function(s){switch(s.label){case 0:return t=Ap.isSameOrigin(e),r=!cl(e)&&this._options.useCORS===!0&&te.SUPPORT_CORS_IMAGES&&!t,n=!cl(e)&&!t&&!ul(e)&&typeof this._options.proxy=="string"&&te.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!cl(e)&&!ul(e)&&!n&&!r?[2]:(i=e,n?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(a,l){var d=new Image;d.onload=function(){return a(d)},d.onerror=l,(Cx(i)||r)&&(d.crossOrigin="anonymous"),d.src=i,d.complete===!0&&setTimeout(function(){return a(d)},500),o._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(i,o){var s=te.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(s==="text")i(a.response);else{var u=new FileReader;u.addEventListener("load",function(){return i(u.result)},!1),u.addEventListener("error",function(h){return o(h)},!1),u.readAsDataURL(a.response)}else o("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=o;var l=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var d=t._options.imageTimeout;a.timeout=d,a.ontimeout=function(){return o("Timed out ("+d+"ms) proxying "+n)}}a.send()})},A})(),px=/^data:image\/svg\+xml/i,Bx=/^data:image\/.*;base64,/i,mx=/^data:image\/.*/i,wx=function(A){return te.SUPPORT_SVG_DRAWING||!yx(A)},cl=function(A){return mx.test(A)},Cx=function(A){return Bx.test(A)},ul=function(A){return A.substr(0,4)==="blob"},yx=function(A){return A.substr(-3).toLowerCase()==="svg"||px.test(A)},W=(function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A})(),Cr=function(A,e,t){return new W(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},oo=(function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=Cr(this.start,this.startControl,e),n=Cr(this.startControl,this.endControl,e),i=Cr(this.endControl,this.end,e),o=Cr(r,n,e),s=Cr(n,i,e),a=Cr(o,s,e);return t?new A(this.start,r,o,a):new A(a,s,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),_e=function(A){return A.type===1},Ex=(function(){function A(e){var t=e.styles,r=e.bounds,n=Un(t.borderTopLeftRadius,r.width,r.height),i=n[0],o=n[1],s=Un(t.borderTopRightRadius,r.width,r.height),a=s[0],l=s[1],d=Un(t.borderBottomRightRadius,r.width,r.height),u=d[0],h=d[1],f=Un(t.borderBottomLeftRadius,r.width,r.height),g=f[0],p=f[1],w=[];w.push((i+a)/r.width),w.push((g+u)/r.width),w.push((o+p)/r.height),w.push((l+h)/r.height);var m=Math.max.apply(Math,w);m>1&&(i/=m,o/=m,a/=m,l/=m,u/=m,h/=m,g/=m,p/=m);var C=r.width-a,b=r.height-h,_=r.width-u,x=r.height-p,y=t.borderTopWidth,F=t.borderRightWidth,Q=t.borderBottomWidth,E=t.borderLeftWidth,I=IA(t.paddingTop,e.bounds.width),k=IA(t.paddingRight,e.bounds.width),S=IA(t.paddingBottom,e.bounds.width),L=IA(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?kA(r.left+E/3,r.top+y/3,i-E/3,o-y/3,bA.TOP_LEFT):new W(r.left+E/3,r.top+y/3),this.topRightBorderDoubleOuterBox=i>0||o>0?kA(r.left+C,r.top+y/3,a-F/3,l-y/3,bA.TOP_RIGHT):new W(r.left+r.width-F/3,r.top+y/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?kA(r.left+_,r.top+b,u-F/3,h-Q/3,bA.BOTTOM_RIGHT):new W(r.left+r.width-F/3,r.top+r.height-Q/3),this.bottomLeftBorderDoubleOuterBox=g>0||p>0?kA(r.left+E/3,r.top+x,g-E/3,p-Q/3,bA.BOTTOM_LEFT):new W(r.left+E/3,r.top+r.height-Q/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?kA(r.left+E*2/3,r.top+y*2/3,i-E*2/3,o-y*2/3,bA.TOP_LEFT):new W(r.left+E*2/3,r.top+y*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?kA(r.left+C,r.top+y*2/3,a-F*2/3,l-y*2/3,bA.TOP_RIGHT):new W(r.left+r.width-F*2/3,r.top+y*2/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?kA(r.left+_,r.top+b,u-F*2/3,h-Q*2/3,bA.BOTTOM_RIGHT):new W(r.left+r.width-F*2/3,r.top+r.height-Q*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||p>0?kA(r.left+E*2/3,r.top+x,g-E*2/3,p-Q*2/3,bA.BOTTOM_LEFT):new W(r.left+E*2/3,r.top+r.height-Q*2/3),this.topLeftBorderStroke=i>0||o>0?kA(r.left+E/2,r.top+y/2,i-E/2,o-y/2,bA.TOP_LEFT):new W(r.left+E/2,r.top+y/2),this.topRightBorderStroke=i>0||o>0?kA(r.left+C,r.top+y/2,a-F/2,l-y/2,bA.TOP_RIGHT):new W(r.left+r.width-F/2,r.top+y/2),this.bottomRightBorderStroke=u>0||h>0?kA(r.left+_,r.top+b,u-F/2,h-Q/2,bA.BOTTOM_RIGHT):new W(r.left+r.width-F/2,r.top+r.height-Q/2),this.bottomLeftBorderStroke=g>0||p>0?kA(r.left+E/2,r.top+x,g-E/2,p-Q/2,bA.BOTTOM_LEFT):new W(r.left+E/2,r.top+r.height-Q/2),this.topLeftBorderBox=i>0||o>0?kA(r.left,r.top,i,o,bA.TOP_LEFT):new W(r.left,r.top),this.topRightBorderBox=a>0||l>0?kA(r.left+C,r.top,a,l,bA.TOP_RIGHT):new W(r.left+r.width,r.top),this.bottomRightBorderBox=u>0||h>0?kA(r.left+_,r.top+b,u,h,bA.BOTTOM_RIGHT):new W(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=g>0||p>0?kA(r.left,r.top+x,g,p,bA.BOTTOM_LEFT):new W(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||o>0?kA(r.left+E,r.top+y,Math.max(0,i-E),Math.max(0,o-y),bA.TOP_LEFT):new W(r.left+E,r.top+y),this.topRightPaddingBox=a>0||l>0?kA(r.left+Math.min(C,r.width-F),r.top+y,C>r.width+F?0:Math.max(0,a-F),Math.max(0,l-y),bA.TOP_RIGHT):new W(r.left+r.width-F,r.top+y),this.bottomRightPaddingBox=u>0||h>0?kA(r.left+Math.min(_,r.width-E),r.top+Math.min(b,r.height-Q),Math.max(0,u-F),Math.max(0,h-Q),bA.BOTTOM_RIGHT):new W(r.left+r.width-F,r.top+r.height-Q),this.bottomLeftPaddingBox=g>0||p>0?kA(r.left+E,r.top+Math.min(x,r.height-Q),Math.max(0,g-E),Math.max(0,p-Q),bA.BOTTOM_LEFT):new W(r.left+E,r.top+r.height-Q),this.topLeftContentBox=i>0||o>0?kA(r.left+E+L,r.top+y+I,Math.max(0,i-(E+L)),Math.max(0,o-(y+I)),bA.TOP_LEFT):new W(r.left+E+L,r.top+y+I),this.topRightContentBox=a>0||l>0?kA(r.left+Math.min(C,r.width+E+L),r.top+y+I,C>r.width+E+L?0:a-E+L,l-(y+I),bA.TOP_RIGHT):new W(r.left+r.width-(F+k),r.top+y+I),this.bottomRightContentBox=u>0||h>0?kA(r.left+Math.min(_,r.width-(E+L)),r.top+Math.min(b,r.height+y+I),Math.max(0,u-(F+k)),h-(Q+S),bA.BOTTOM_RIGHT):new W(r.left+r.width-(F+k),r.top+r.height-(Q+S)),this.bottomLeftContentBox=g>0||p>0?kA(r.left+E+L,r.top+x,Math.max(0,g-(E+L)),p-(Q+S),bA.BOTTOM_LEFT):new W(r.left+E+L,r.top+r.height-(Q+S))}return A})(),bA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(bA||(bA={}));var kA=function(A,e,t,r,n){var i=4*((Math.sqrt(2)-1)/3),o=t*i,s=r*i,a=A+t,l=e+r;switch(n){case bA.TOP_LEFT:return new oo(new W(A,l),new W(A,l-s),new W(a-o,e),new W(a,e));case bA.TOP_RIGHT:return new oo(new W(A,e),new W(A+o,e),new W(a,l-s),new W(a,l));case bA.BOTTOM_RIGHT:return new oo(new W(a,e),new W(a,e+s),new W(A+o,l),new W(A,l));case bA.BOTTOM_LEFT:default:return new oo(new W(a,l),new W(a-o,l),new W(A,e+s),new W(A,e))}},so=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},vx=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},ao=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},bx=(function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A})(),lo=(function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A})(),Qx=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),Fx=function(A){return A.type===0},ep=function(A){return A.type===1},Ux=function(A){return A.type===2},tp=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},xx=function(A,e,t,r,n){return A.map(function(i,o){switch(o){case 0:return i.add(e,t);case 1:return i.add(e+r,t);case 2:return i.add(e+r,t+n);case 3:return i.add(e,t+n)}return i})},rp=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),np=(function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Ex(this.container),this.container.styles.opacity<1&&this.effects.push(new Qx(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new bx(r,n,i))}if(this.container.styles.overflowX!==0){var o=so(this.curves),s=ao(this.curves);tp(o,s)?this.effects.push(new lo(o,6)):(this.effects.push(new lo(o,2)),this.effects.push(new lo(s,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(a){return!ep(a)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=so(r.curves),s=ao(r.curves);tp(o,s)||n.unshift(new lo(s,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(a){return YA(a.target,e)})},A})(),dl=function(A,e,t,r){A.container.elements.forEach(function(n){var i=YA(n.flags,4),o=YA(n.flags,2),s=new np(n,A);YA(n.styles.display,2048)&&r.push(s);var a=YA(n.flags,8)?[]:r;if(i||o){var l=i||n.styles.isPositioned()?t:e,d=new rp(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some(function(g,p){return u>g.element.container.styles.zIndex.order?(h=p,!1):h>0}),l.negativeZIndex.splice(h,0,d)}else if(u>0){var f=0;l.positiveZIndex.some(function(g,p){return u>=g.element.container.styles.zIndex.order?(f=p+1,!1):f>0}),l.positiveZIndex.splice(f,0,d)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else n.styles.isFloating()?l.nonPositionedFloats.push(d):l.nonPositionedInlineLevel.push(d);dl(s,d,i?d:t,a)}else n.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),dl(s,e,t,a);YA(n.flags,8)&&ip(n,a)})},ip=function(A,e){for(var t=A instanceof el?A.start:1,r=A instanceof el?A.reversed:!1,n=0;n<e.length;n++){var i=e[n];i.container instanceof _g&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=Nn(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},Sx=function(A){var e=new np(A,null),t=new rp(e),r=[];return dl(e,t,t,r),ip(e.container,r),t},op=function(A,e){switch(e){case 0:return Ie(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Ie(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Ie(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return Ie(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},_x=function(A,e){switch(e){case 0:return Ie(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Ie(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Ie(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return Ie(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Ix=function(A,e){switch(e){case 0:return Ie(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Ie(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Ie(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return Ie(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Tx=function(A,e){switch(e){case 0:return co(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return co(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return co(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return co(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},co=function(A,e){var t=[];return _e(A)?t.push(A.subdivide(.5,!1)):t.push(A),_e(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Ie=function(A,e,t,r){var n=[];return _e(A)?n.push(A.subdivide(.5,!1)):n.push(A),_e(t)?n.push(t.subdivide(.5,!0)):n.push(t),_e(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),_e(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},sp=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},uo=function(A){var e=A.styles,t=A.bounds,r=IA(e.paddingLeft,t.width),n=IA(e.paddingRight,t.width),i=IA(e.paddingTop,t.width),o=IA(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+i+o))},Nx=function(A,e){return A===0?e.bounds:A===2?uo(e):sp(e)},kx=function(A,e){return A===0?e.bounds:A===2?uo(e):sp(e)},fl=function(A,e,t){var r=Nx(Er(A.styles.backgroundOrigin,e),A),n=kx(Er(A.styles.backgroundClip,e),A),i=Hx(Er(A.styles.backgroundSize,e),t,r),o=i[0],s=i[1],a=Un(Er(A.styles.backgroundPosition,e),r.width-o,r.height-s),l=Lx(Er(A.styles.backgroundRepeat,e),a,i,r,n),d=Math.round(r.left+a[0]),u=Math.round(r.top+a[1]);return[l,d,u,o,s]},yr=function(A){return FA(A)&&A.value===pr.AUTO},fo=function(A){return typeof A=="number"},Hx=function(A,e,t){var r=e[0],n=e[1],i=e[2],o=A[0],s=A[1];if(!o)return[0,0];if(WA(o)&&s&&WA(s))return[IA(o,t.width),IA(s,t.height)];var a=fo(i);if(FA(o)&&(o.value===pr.CONTAIN||o.value===pr.COVER)){if(fo(i)){var l=t.width/t.height;return l<i!=(o.value===pr.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var d=fo(r),u=fo(n),h=d||u;if(yr(o)&&(!s||yr(s))){if(d&&u)return[r,n];if(!a&&!h)return[t.width,t.height];if(h&&a){var f=d?r:n*i,g=u?n:r/i;return[f,g]}var p=d?r:t.width,w=u?n:t.height;return[p,w]}if(a){var m=0,C=0;return WA(o)?m=IA(o,t.width):WA(s)&&(C=IA(s,t.height)),yr(o)?m=C*i:(!s||yr(s))&&(C=m/i),[m,C]}var b=null,_=null;if(WA(o)?b=IA(o,t.width):s&&WA(s)&&(_=IA(s,t.height)),b!==null&&(!s||yr(s))&&(_=d&&u?b/r*n:t.height),_!==null&&yr(o)&&(b=d&&u?_/n*r:t.width),b!==null&&_!==null)return[b,_];throw new Error("Unable to calculate background-size for element")},Er=function(A,e){var t=A[e];return typeof t>"u"?A[0]:t},Lx=function(A,e,t,r,n){var i=e[0],o=e[1],s=t[0],a=t[1];switch(A){case 2:return[new W(Math.round(r.left),Math.round(r.top+o)),new W(Math.round(r.left+r.width),Math.round(r.top+o)),new W(Math.round(r.left+r.width),Math.round(a+r.top+o)),new W(Math.round(r.left),Math.round(a+r.top+o))];case 3:return[new W(Math.round(r.left+i),Math.round(r.top)),new W(Math.round(r.left+i+s),Math.round(r.top)),new W(Math.round(r.left+i+s),Math.round(r.height+r.top)),new W(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new W(Math.round(r.left+i),Math.round(r.top+o)),new W(Math.round(r.left+i+s),Math.round(r.top+o)),new W(Math.round(r.left+i+s),Math.round(r.top+o+a)),new W(Math.round(r.left+i),Math.round(r.top+o+a))];default:return[new W(Math.round(n.left),Math.round(n.top)),new W(Math.round(n.left+n.width),Math.round(n.top)),new W(Math.round(n.left+n.width),Math.round(n.height+n.top)),new W(Math.round(n.left),Math.round(n.height+n.top))]}},Mx="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ap="Hidden Text",Ox=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),n.src=Mx,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(ap)),r.appendChild(i),r.appendChild(n);var s=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(ap)),r.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:s,middle:a}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A})(),lp=(function(){function A(e,t){this.context=e,this.options=t}return A})(),Rx=1e4,Dx=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new Ox(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),Ux(t)&&(this.ctx.globalAlpha=t.opacity),Fx(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),ep(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return le(this,void 0,void 0,function(){var r;return ie(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return le(this,void 0,void 0,function(){return ie(this,function(r){switch(r.label){case 0:return YA(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var i=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var o=Al(t.text);o.reduce(function(s,a){return i.ctx.fillText(a,s,t.bounds.top+n),s+i.ctx.measureText(a).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),n=zx(t.fontFamily).join(", "),i=Fn(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},e.prototype.renderTextNode=function(t,r){return le(this,void 0,void 0,function(){var n,i,o,s,a,l,d,u,h=this;return ie(this,function(f){return n=this.createFontStyle(r),i=n[0],o=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(o,s),l=a.baseline,d=a.middle,u=r.paintOrder,t.textBounds.forEach(function(g){u.forEach(function(p){switch(p){case 0:h.ctx.fillStyle=qA(r.color),h.renderTextWithLetterSpacing(g,r.letterSpacing,l);var w=r.textShadow;w.length&&g.text.trim().length&&(w.slice(0).reverse().forEach(function(m){h.ctx.shadowColor=qA(m.color),h.ctx.shadowOffsetX=m.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=m.offsetY.number*h.options.scale,h.ctx.shadowBlur=m.blur.number,h.renderTextWithLetterSpacing(g,r.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),r.textDecorationLine.length&&(h.ctx.fillStyle=qA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(m){switch(m){case 1:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+l),g.bounds.width,1);break;case 2:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:h.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+d),g.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&g.text.trim().length&&(h.ctx.strokeStyle=qA(r.webkitTextStrokeColor),h.ctx.lineWidth=r.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=uo(t),o=ao(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return le(this,void 0,void 0,function(){var r,n,i,o,s,a,C,C,l,d,u,h,_,f,g,x,p,w,m,C,b,_,x;return ie(this,function(y){switch(y.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,o=0,s=r.textNodes,y.label=1;case 1:return o<s.length?(a=s[o],[4,this.renderTextNode(a,i)]):[3,4];case 2:y.sent(),y.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof Ug))return[3,8];y.label=5;case 5:return y.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return C=y.sent(),this.renderReplacedElement(r,n,C),[3,8];case 7:return y.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof xg&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Sg))return[3,12];y.label=9;case 9:return y.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return C=y.sent(),this.renderReplacedElement(r,n,C),[3,12];case 11:return y.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof kg&&r.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,l.render(r.tree)]):[3,14];case 13:d=y.sent(),r.width&&r.height&&this.ctx.drawImage(d,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),y.label=14;case 14:if(r instanceof tl&&(u=Math.min(r.bounds.width,r.bounds.height),r.type===Ao?r.checked&&(this.ctx.save(),this.path([new W(r.bounds.left+u*.39363,r.bounds.top+u*.79),new W(r.bounds.left+u*.16,r.bounds.top+u*.5549),new W(r.bounds.left+u*.27347,r.bounds.top+u*.44071),new W(r.bounds.left+u*.39694,r.bounds.top+u*.5649),new W(r.bounds.left+u*.72983,r.bounds.top+u*.23),new W(r.bounds.left+u*.84,r.bounds.top+u*.34085),new W(r.bounds.left+u*.39363,r.bounds.top+u*.79)]),this.ctx.fillStyle=qA(Ig),this.ctx.fill(),this.ctx.restore()):r.type===eo&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+u/2,r.bounds.top+u/2,u/4,0,Math.PI*2,!0),this.ctx.fillStyle=qA(Ig),this.ctx.fill(),this.ctx.restore())),Px(r)&&r.value.length){switch(h=this.createFontStyle(i),_=h[0],f=h[1],g=this.fontMetrics.getMetrics(_,f).baseline,this.ctx.font=_,this.ctx.fillStyle=qA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Vx(r.styles.textAlign),x=uo(r),p=0,r.styles.textAlign){case 1:p+=x.width/2;break;case 2:p+=x.width;break}w=x.add(p,0,0,-x.height/2+1),this.ctx.save(),this.path([new W(x.left,x.top),new W(x.left+x.width,x.top),new W(x.left+x.width,x.top+x.height),new W(x.left,x.top+x.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new In(r.value,w),i.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!YA(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(m=r.styles.listStyleImage,m.type!==0)return[3,18];C=void 0,b=m.url,y.label=15;case 15:return y.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return C=y.sent(),this.ctx.drawImage(C,r.bounds.left-(C.width+10),r.bounds.top),[3,18];case 17:return y.sent(),this.context.logger.error("Error loading list-style-image "+b),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(_=this.createFontStyle(i)[0],this.ctx.font=_,this.ctx.fillStyle=qA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",x=new it(r.bounds.left,r.bounds.top+IA(r.styles.paddingTop,r.bounds.width),r.bounds.width,ag(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new In(t.listValue,x),i.letterSpacing,ag(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),y.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return le(this,void 0,void 0,function(){var r,n,m,i,o,m,s,a,m,l,d,m,u,h,m,f,g,m,p,w,m;return ie(this,function(C){switch(C.label){case 0:return YA(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:C.sent(),r=0,n=t.negativeZIndex,C.label=2;case 2:return r<n.length?(m=n[r],[4,this.renderStack(m)]):[3,5];case 3:C.sent(),C.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:C.sent(),i=0,o=t.nonInlineLevel,C.label=7;case 7:return i<o.length?(m=o[i],[4,this.renderNode(m)]):[3,10];case 8:C.sent(),C.label=9;case 9:return i++,[3,7];case 10:s=0,a=t.nonPositionedFloats,C.label=11;case 11:return s<a.length?(m=a[s],[4,this.renderStack(m)]):[3,14];case 12:C.sent(),C.label=13;case 13:return s++,[3,11];case 14:l=0,d=t.nonPositionedInlineLevel,C.label=15;case 15:return l<d.length?(m=d[l],[4,this.renderStack(m)]):[3,18];case 16:C.sent(),C.label=17;case 17:return l++,[3,15];case 18:u=0,h=t.inlineLevel,C.label=19;case 19:return u<h.length?(m=h[u],[4,this.renderNode(m)]):[3,22];case 20:C.sent(),C.label=21;case 21:return u++,[3,19];case 22:f=0,g=t.zeroOrAutoZIndexOrTransformedOrOpacity,C.label=23;case 23:return f<g.length?(m=g[f],[4,this.renderStack(m)]):[3,26];case 24:C.sent(),C.label=25;case 25:return f++,[3,23];case 26:p=0,w=t.positiveZIndex,C.label=27;case 27:return p<w.length?(m=w[p],[4,this.renderStack(m)]):[3,30];case 28:C.sent(),C.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(n,i){var o=_e(n)?n.start:n;i===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),_e(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,r,n,i){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},e.prototype.resizeImage=function(t,r,n){var i;if(t.width===r&&t.height===n)return t;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=o.createElement("canvas");s.width=Math.max(1,r),s.height=Math.max(1,n);var a=s.getContext("2d");return a.drawImage(t,0,0,t.width,t.height,0,0,r,n),s},e.prototype.renderBackgroundImage=function(t){return le(this,void 0,void 0,function(){var r,n,i,o,s,a;return ie(this,function(l){switch(l.label){case 0:r=t.styles.backgroundImage.length-1,n=function(d){var u,h,f,I,V,z,L,M,Q,g,I,V,z,L,M,p,w,m,C,b,_,x,y,F,Q,E,I,k,S,L,M,T,V,z,D,cA,v,eA,rA,B,J,AA;return ie(this,function(tA){switch(tA.label){case 0:if(d.type!==0)return[3,5];u=void 0,h=d.url,tA.label=1;case 1:return tA.trys.push([1,3,,4]),[4,i.context.cache.match(h)];case 2:return u=tA.sent(),[3,4];case 3:return tA.sent(),i.context.logger.error("Error loading background-image "+h),[3,4];case 4:return u&&(f=fl(t,r,[u.width,u.height,u.width/u.height]),I=f[0],V=f[1],z=f[2],L=f[3],M=f[4],Q=i.ctx.createPattern(i.resizeImage(u,L,M),"repeat"),i.renderRepeat(I,Q,V,z)),[3,6];case 5:F1(d)?(g=fl(t,r,[null,null,null]),I=g[0],V=g[1],z=g[2],L=g[3],M=g[4],p=y1(d.angle,L,M),w=p[0],m=p[1],C=p[2],b=p[3],_=p[4],x=document.createElement("canvas"),x.width=L,x.height=M,y=x.getContext("2d"),F=y.createLinearGradient(m,b,C,_),$h(d.stops,w).forEach(function(nA){return F.addColorStop(nA.stop,qA(nA.color))}),y.fillStyle=F,y.fillRect(0,0,L,M),L>0&&M>0&&(Q=i.ctx.createPattern(x,"repeat"),i.renderRepeat(I,Q,V,z))):U1(d)&&(E=fl(t,r,[null,null,null]),I=E[0],k=E[1],S=E[2],L=E[3],M=E[4],T=d.position.length===0?[Ra]:d.position,V=IA(T[0],L),z=IA(T[T.length-1],M),D=E1(d,V,z,L,M),cA=D[0],v=D[1],cA>0&&v>0&&(eA=i.ctx.createRadialGradient(k+V,S+z,0,k+V,S+z,cA),$h(d.stops,cA*2).forEach(function(nA){return eA.addColorStop(nA.stop,qA(nA.color))}),i.path(I),i.ctx.fillStyle=eA,cA!==v?(rA=t.bounds.left+.5*t.bounds.width,B=t.bounds.top+.5*t.bounds.height,J=v/cA,AA=1/J,i.ctx.save(),i.ctx.translate(rA,B),i.ctx.transform(1,0,0,J,0,0),i.ctx.translate(-rA,-B),i.ctx.fillRect(k,AA*(S-B)+B,L,M*AA),i.ctx.restore()):i.ctx.fill())),tA.label=6;case 6:return r--,[2]}})},i=this,o=0,s=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o<s.length?(a=s[o],[5,n(a)]):[3,4];case 2:l.sent(),l.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,n){return le(this,void 0,void 0,function(){return ie(this,function(i){return this.path(op(n,r)),this.ctx.fillStyle=qA(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,n,i){return le(this,void 0,void 0,function(){var o,s;return ie(this,function(a){switch(a.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return a.sent(),[2];case 2:return o=_x(i,n),this.path(o),this.ctx.fillStyle=qA(t),this.ctx.fill(),s=Ix(i,n),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return le(this,void 0,void 0,function(){var r,n,i,o,s,a,l,d,u=this;return ie(this,function(h){switch(h.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!Ut(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],o=Kx(Er(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Ut(r.backgroundColor)||(this.ctx.fillStyle=qA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(f){u.ctx.save();var g=so(t.curves),p=f.inset?0:Rx,w=xx(g,-p+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(u.path(g),u.ctx.clip(),u.mask(w)):(u.mask(g),u.ctx.clip(),u.path(w)),u.ctx.shadowOffsetX=f.offsetX.number+p,u.ctx.shadowOffsetY=f.offsetY.number,u.ctx.shadowColor=qA(f.color),u.ctx.shadowBlur=f.blur.number,u.ctx.fillStyle=f.inset?qA(f.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),h.label=2;case 2:s=0,a=0,l=i,h.label=3;case 3:return a<l.length?(d=l[a],d.style!==0&&!Ut(d.color)&&d.width>0?d.style!==2?[3,5]:[4,this.renderDashedDottedBorder(d.color,d.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return d.style!==3?[3,7]:[4,this.renderDashedDottedBorder(d.color,d.width,s,t.curves,3)];case 6:return h.sent(),[3,11];case 7:return d.style!==4?[3,9]:[4,this.renderDoubleBorder(d.color,d.width,s,t.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(d.color,s,t.curves)];case 10:h.sent(),h.label=11;case 11:s++,h.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,i,o){return le(this,void 0,void 0,function(){var s,a,l,d,u,h,f,g,p,w,m,C,b,_,x,y,x,y;return ie(this,function(F){return this.ctx.save(),s=Tx(i,n),a=op(i,n),o===2&&(this.path(a),this.ctx.clip()),_e(a[0])?(l=a[0].start.x,d=a[0].start.y):(l=a[0].x,d=a[0].y),_e(a[1])?(u=a[1].end.x,h=a[1].end.y):(u=a[1].x,h=a[1].y),n===0||n===2?f=Math.abs(l-u):f=Math.abs(d-h),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(a.slice(0,2)),g=r<3?r*3:r*2,p=r<3?r*2:r,o===3&&(g=r,p=r),w=!0,f<=g*2?w=!1:f<=g*2+p?(m=f/(2*g+p),g*=m,p*=m):(C=Math.floor((f+p)/(g+p)),b=(f-C*g)/(C-1),_=(f-(C+1)*g)/C,p=_<=0||Math.abs(p-b)<Math.abs(p-_)?b:_),w&&(o===3?this.ctx.setLineDash([0,g+p]):this.ctx.setLineDash([g,p])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=qA(t),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(_e(a[0])&&(x=a[3],y=a[0],this.ctx.beginPath(),this.formatPath([new W(x.end.x,x.end.y),new W(y.start.x,y.start.y)]),this.ctx.stroke()),_e(a[1])&&(x=a[1],y=a[2],this.ctx.beginPath(),this.formatPath([new W(x.end.x,x.end.y),new W(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return le(this,void 0,void 0,function(){var r;return ie(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=qA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=Sx(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(lp),Px=function(A){return A instanceof Ng||A instanceof Tg?!0:A instanceof tl&&A.type!==eo&&A.type!==Ao},Kx=function(A,e){switch(A){case 0:return so(e);case 2:return vx(e);case 1:default:return ao(e)}},Vx=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Gx=["-apple-system","system-ui"],zx=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return Gx.indexOf(e)===-1}):A},Wx=(function(A){Oe(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return e.prototype.render=function(t){return le(this,void 0,void 0,function(){var r,n;return ie(this,function(i){switch(i.label){case 0:return r=Za(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Xx(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=qA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(lp),Xx=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},Yx=(function(){function A(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"||this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console},A.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"||this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"||this.info.apply(this,e))},A.instances={},A})(),jx=(function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new Yx({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new gx(this,e)}return A.instanceCount=1,A})(),Jx=function(A,e){return e===void 0&&(e={}),$x(A,e)};typeof window<"u"&&Ap.setContext(window);var $x=function(A,e){return le(void 0,void 0,void 0,function(){var t,r,n,i,o,s,a,l,d,u,h,f,g,p,w,m,C,b,_,x,F,y,F,Q,E,I,k,S,L,M,T,V,z,D,cA,v,eA,rA,B,J;return ie(this,function(AA){switch(AA.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=A.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(Q=e.allowTaint)!==null&&Q!==void 0?Q:!1,imageTimeout:(E=e.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:e.proxy,useCORS:(I=e.useCORS)!==null&&I!==void 0?I:!1},i=ma({logging:(k=e.logging)!==null&&k!==void 0?k:!0,cache:e.cache},n),o={windowWidth:(S=e.windowWidth)!==null&&S!==void 0?S:r.innerWidth,windowHeight:(L=e.windowHeight)!==null&&L!==void 0?L:r.innerHeight,scrollX:(M=e.scrollX)!==null&&M!==void 0?M:r.pageXOffset,scrollY:(T=e.scrollY)!==null&&T!==void 0?T:r.pageYOffset},s=new it(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),a=new jx(i,s),l=(V=e.foreignObjectRendering)!==null&&V!==void 0?V:!1,d={allowTaint:(z=e.allowTaint)!==null&&z!==void 0?z:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},a.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),u=new qg(a,A,d),h=u.clonedReferenceElement,h?[4,u.toIFrame(t,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=AA.sent(),g=nl(h)||qU(h)?xb(h.ownerDocument):yi(a,h),p=g.width,w=g.height,m=g.left,C=g.top,b=qx(a,h,e.backgroundColor),_={canvas:e.canvas,backgroundColor:b,scale:(cA=(D=e.scale)!==null&&D!==void 0?D:r.devicePixelRatio)!==null&&cA!==void 0?cA:1,x:((v=e.x)!==null&&v!==void 0?v:0)+m,y:((eA=e.y)!==null&&eA!==void 0?eA:0)+C,width:(rA=e.width)!==null&&rA!==void 0?rA:Math.ceil(p),height:(B=e.height)!==null&&B!==void 0?B:Math.ceil(w)},l?(a.logger.debug("Document cloned, using foreign object rendering"),F=new Wx(a,_),[4,F.render(h)]):[3,3];case 2:return x=AA.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+m+","+C+" with size "+p+"x"+w+" using computed rendering"),a.logger.debug("Starting DOM parsing"),y=Lg(a,h),b===y.styles.backgroundColor&&(y.styles.backgroundColor=st.TRANSPARENT),a.logger.debug("Starting renderer for element at "+_.x+","+_.y+" with size "+_.width+"x"+_.height),F=new Dx(a,_),[4,F.render(y)];case 4:x=AA.sent(),AA.label=5;case 5:return(!((J=e.removeContainer)!==null&&J!==void 0)||J)&&(qg.destroy(f)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,x]}})})},qx=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?xn(A,getComputedStyle(r.documentElement).backgroundColor):st.TRANSPARENT,i=r.body?xn(A,getComputedStyle(r.body).backgroundColor):st.TRANSPARENT,o=typeof t=="string"?xn(A,t):t===null?st.TRANSPARENT:4294967295;return e===r.documentElement?Ut(n)?Ut(i)?o:i:n:o};const cp=Object.freeze(Object.defineProperty({__proto__:null,default:Jx},Symbol.toStringTag,{value:"Module"}));return wo.renderMedAssist=Yf,Object.defineProperty(wo,Symbol.toStringTag,{value:"Module"}),wo})({});
105
+ }`,O3=function(e){R3(e,"."+Od+H3+YC+`
106
+ .`+Rd+M3+YC)},R3=function(e,t){var r=e.ownerDocument;if(r){var i=r.createElement("style");i.textContent=t,e.appendChild(i)}},XC=(function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e})(),L3=(function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(Dd(t)||K3(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return ot(this,void 0,void 0,function(){var r,i,s,l,c=this;return at(this,function(u){switch(u.label){case 0:return r=XC.isSameOrigin(t),i=!Ld(t)&&this._options.useCORS===!0&&$A.SUPPORT_CORS_IMAGES&&!r,s=!Ld(t)&&!r&&!Dd(t)&&typeof this._options.proxy=="string"&&$A.SUPPORT_CORS_XHR&&!i,!r&&this._options.allowTaint===!1&&!Ld(t)&&!Dd(t)&&!s&&!i?[2]:(l=t,s?[4,this.proxy(l)]:[3,2]);case 1:l=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(f,h){var m=new Image;m.onload=function(){return f(m)},m.onerror=h,(V3(l)||i)&&(m.crossOrigin="anonymous"),m.src=l,m.complete===!0&&setTimeout(function(){return f(m)},500),c._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+c._options.imageTimeout+"ms) loading image")},c._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var s=t.substring(0,256);return new Promise(function(l,c){var u=$A.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(u==="text")l(f.response);else{var B=new FileReader;B.addEventListener("load",function(){return l(B.result)},!1),B.addEventListener("error",function(C){return c(C)},!1),B.readAsDataURL(f.response)}else c("Failed to proxy resource "+s+" with status code "+f.status)},f.onerror=c;var h=i.indexOf("?")>-1?"&":"?";if(f.open("GET",""+i+h+"url="+encodeURIComponent(t)+"&responseType="+u),u!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=u),r._options.imageTimeout){var m=r._options.imageTimeout;f.timeout=m,f.ontimeout=function(){return c("Timed out ("+m+"ms) proxying "+s)}}f.send()})},e})(),D3=/^data:image\/svg\+xml/i,k3=/^data:image\/.*;base64,/i,j3=/^data:image\/.*/i,K3=function(e){return $A.SUPPORT_SVG_DRAWING||!G3(e)},Ld=function(e){return j3.test(e)},V3=function(e){return k3.test(e)},Dd=function(e){return e.substr(0,4)==="blob"},G3=function(e){return e.substr(-3).toLowerCase()==="svg"||D3.test(e)},Be=(function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e})(),Gi=function(e,t,r){return new Be(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},Go=(function(){function e(t,r,i,s){this.type=1,this.start=t,this.startControl=r,this.endControl=i,this.end=s}return e.prototype.subdivide=function(t,r){var i=Gi(this.start,this.startControl,t),s=Gi(this.startControl,this.endControl,t),l=Gi(this.endControl,this.end,t),c=Gi(i,s,t),u=Gi(s,l,t),f=Gi(c,u,t);return r?new e(this.start,i,c,f):new e(f,u,l,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),zt=function(e){return e.type===1},z3=(function(){function e(t){var r=t.styles,i=t.bounds,s=Fs(r.borderTopLeftRadius,i.width,i.height),l=s[0],c=s[1],u=Fs(r.borderTopRightRadius,i.width,i.height),f=u[0],h=u[1],m=Fs(r.borderBottomRightRadius,i.width,i.height),B=m[0],C=m[1],w=Fs(r.borderBottomLeftRadius,i.width,i.height),E=w[0],b=w[1],U=[];U.push((l+f)/i.width),U.push((E+B)/i.width),U.push((c+b)/i.height),U.push((h+C)/i.height);var Q=Math.max.apply(Math,U);Q>1&&(l/=Q,c/=Q,f/=Q,h/=Q,B/=Q,C/=Q,E/=Q,b/=Q);var N=i.width-f,M=i.height-C,G=i.width-B,V=i.height-b,F=r.borderTopWidth,O=r.borderRightWidth,R=r.borderBottomWidth,_=r.borderLeftWidth,q=pA(r.paddingTop,t.bounds.width),$=pA(r.paddingRight,t.bounds.width),k=pA(r.paddingBottom,t.bounds.width),se=pA(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||c>0?yA(i.left+_/3,i.top+F/3,l-_/3,c-F/3,iA.TOP_LEFT):new Be(i.left+_/3,i.top+F/3),this.topRightBorderDoubleOuterBox=l>0||c>0?yA(i.left+N,i.top+F/3,f-O/3,h-F/3,iA.TOP_RIGHT):new Be(i.left+i.width-O/3,i.top+F/3),this.bottomRightBorderDoubleOuterBox=B>0||C>0?yA(i.left+G,i.top+M,B-O/3,C-R/3,iA.BOTTOM_RIGHT):new Be(i.left+i.width-O/3,i.top+i.height-R/3),this.bottomLeftBorderDoubleOuterBox=E>0||b>0?yA(i.left+_/3,i.top+V,E-_/3,b-R/3,iA.BOTTOM_LEFT):new Be(i.left+_/3,i.top+i.height-R/3),this.topLeftBorderDoubleInnerBox=l>0||c>0?yA(i.left+_*2/3,i.top+F*2/3,l-_*2/3,c-F*2/3,iA.TOP_LEFT):new Be(i.left+_*2/3,i.top+F*2/3),this.topRightBorderDoubleInnerBox=l>0||c>0?yA(i.left+N,i.top+F*2/3,f-O*2/3,h-F*2/3,iA.TOP_RIGHT):new Be(i.left+i.width-O*2/3,i.top+F*2/3),this.bottomRightBorderDoubleInnerBox=B>0||C>0?yA(i.left+G,i.top+M,B-O*2/3,C-R*2/3,iA.BOTTOM_RIGHT):new Be(i.left+i.width-O*2/3,i.top+i.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=E>0||b>0?yA(i.left+_*2/3,i.top+V,E-_*2/3,b-R*2/3,iA.BOTTOM_LEFT):new Be(i.left+_*2/3,i.top+i.height-R*2/3),this.topLeftBorderStroke=l>0||c>0?yA(i.left+_/2,i.top+F/2,l-_/2,c-F/2,iA.TOP_LEFT):new Be(i.left+_/2,i.top+F/2),this.topRightBorderStroke=l>0||c>0?yA(i.left+N,i.top+F/2,f-O/2,h-F/2,iA.TOP_RIGHT):new Be(i.left+i.width-O/2,i.top+F/2),this.bottomRightBorderStroke=B>0||C>0?yA(i.left+G,i.top+M,B-O/2,C-R/2,iA.BOTTOM_RIGHT):new Be(i.left+i.width-O/2,i.top+i.height-R/2),this.bottomLeftBorderStroke=E>0||b>0?yA(i.left+_/2,i.top+V,E-_/2,b-R/2,iA.BOTTOM_LEFT):new Be(i.left+_/2,i.top+i.height-R/2),this.topLeftBorderBox=l>0||c>0?yA(i.left,i.top,l,c,iA.TOP_LEFT):new Be(i.left,i.top),this.topRightBorderBox=f>0||h>0?yA(i.left+N,i.top,f,h,iA.TOP_RIGHT):new Be(i.left+i.width,i.top),this.bottomRightBorderBox=B>0||C>0?yA(i.left+G,i.top+M,B,C,iA.BOTTOM_RIGHT):new Be(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=E>0||b>0?yA(i.left,i.top+V,E,b,iA.BOTTOM_LEFT):new Be(i.left,i.top+i.height),this.topLeftPaddingBox=l>0||c>0?yA(i.left+_,i.top+F,Math.max(0,l-_),Math.max(0,c-F),iA.TOP_LEFT):new Be(i.left+_,i.top+F),this.topRightPaddingBox=f>0||h>0?yA(i.left+Math.min(N,i.width-O),i.top+F,N>i.width+O?0:Math.max(0,f-O),Math.max(0,h-F),iA.TOP_RIGHT):new Be(i.left+i.width-O,i.top+F),this.bottomRightPaddingBox=B>0||C>0?yA(i.left+Math.min(G,i.width-_),i.top+Math.min(M,i.height-R),Math.max(0,B-O),Math.max(0,C-R),iA.BOTTOM_RIGHT):new Be(i.left+i.width-O,i.top+i.height-R),this.bottomLeftPaddingBox=E>0||b>0?yA(i.left+_,i.top+Math.min(V,i.height-R),Math.max(0,E-_),Math.max(0,b-R),iA.BOTTOM_LEFT):new Be(i.left+_,i.top+i.height-R),this.topLeftContentBox=l>0||c>0?yA(i.left+_+se,i.top+F+q,Math.max(0,l-(_+se)),Math.max(0,c-(F+q)),iA.TOP_LEFT):new Be(i.left+_+se,i.top+F+q),this.topRightContentBox=f>0||h>0?yA(i.left+Math.min(N,i.width+_+se),i.top+F+q,N>i.width+_+se?0:f-_+se,h-(F+q),iA.TOP_RIGHT):new Be(i.left+i.width-(O+$),i.top+F+q),this.bottomRightContentBox=B>0||C>0?yA(i.left+Math.min(G,i.width-(_+se)),i.top+Math.min(M,i.height+F+q),Math.max(0,B-(O+$)),C-(R+k),iA.BOTTOM_RIGHT):new Be(i.left+i.width-(O+$),i.top+i.height-(R+k)),this.bottomLeftContentBox=E>0||b>0?yA(i.left+_+se,i.top+V,Math.max(0,E-(_+se)),b-(R+k),iA.BOTTOM_LEFT):new Be(i.left+_+se,i.top+i.height-(R+k))}return e})(),iA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(iA||(iA={}));var yA=function(e,t,r,i,s){var l=4*((Math.sqrt(2)-1)/3),c=r*l,u=i*l,f=e+r,h=t+i;switch(s){case iA.TOP_LEFT:return new Go(new Be(e,h),new Be(e,h-u),new Be(f-c,t),new Be(f,t));case iA.TOP_RIGHT:return new Go(new Be(e,t),new Be(e+c,t),new Be(f,h-u),new Be(f,h));case iA.BOTTOM_RIGHT:return new Go(new Be(f,t),new Be(f,t+u),new Be(e+c,h),new Be(e,h));case iA.BOTTOM_LEFT:default:return new Go(new Be(f,h),new Be(f-c,h),new Be(e,t+u),new Be(e,t))}},zo=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},P3=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Po=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Y3=(function(){function e(t,r,i){this.offsetX=t,this.offsetY=r,this.matrix=i,this.type=0,this.target=6}return e})(),Yo=(function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e})(),X3=(function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e})(),q3=function(e){return e.type===0},qC=function(e){return e.type===1},J3=function(e){return e.type===2},JC=function(e,t){return e.length===t.length?e.some(function(r,i){return r===t[i]}):!1},Z3=function(e,t,r,i,s){return e.map(function(l,c){switch(c){case 0:return l.add(t,r);case 1:return l.add(t+i,r);case 2:return l.add(t+i,r+s);case 3:return l.add(t,r+s)}return l})},ZC=(function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),WC=(function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new z3(this.container),this.container.styles.opacity<1&&this.effects.push(new X3(this.container.styles.opacity)),this.container.styles.transform!==null){var i=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new Y3(i,s,l))}if(this.container.styles.overflowX!==0){var c=zo(this.curves),u=Po(this.curves);JC(c,u)?this.effects.push(new Yo(c,6)):(this.effects.push(new Yo(c,2)),this.effects.push(new Yo(u,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,i=this.parent,s=this.effects.slice(0);i;){var l=i.effects.filter(function(f){return!qC(f)});if(r||i.container.styles.position!==0||!i.parent){if(s.unshift.apply(s,l),r=[2,3].indexOf(i.container.styles.position)===-1,i.container.styles.overflowX!==0){var c=zo(i.curves),u=Po(i.curves);JC(c,u)||s.unshift(new Yo(u,6))}}else s.unshift.apply(s,l);i=i.parent}return s.filter(function(f){return VA(f.target,t)})},e})(),kd=function(e,t,r,i){e.container.elements.forEach(function(s){var l=VA(s.flags,4),c=VA(s.flags,2),u=new WC(s,e);VA(s.styles.display,2048)&&i.push(u);var f=VA(s.flags,8)?[]:i;if(l||c){var h=l||s.styles.isPositioned()?r:t,m=new ZC(u);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){var B=s.styles.zIndex.order;if(B<0){var C=0;h.negativeZIndex.some(function(E,b){return B>E.element.container.styles.zIndex.order?(C=b,!1):C>0}),h.negativeZIndex.splice(C,0,m)}else if(B>0){var w=0;h.positiveZIndex.some(function(E,b){return B>=E.element.container.styles.zIndex.order?(w=b+1,!1):w>0}),h.positiveZIndex.splice(w,0,m)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(m)}else s.styles.isFloating()?h.nonPositionedFloats.push(m):h.nonPositionedInlineLevel.push(m);kd(u,m,l?m:r,f)}else s.styles.isInlineLevel()?t.inlineLevel.push(u):t.nonInlineLevel.push(u),kd(u,t,r,f);VA(s.flags,8)&&$C(s,f)})},$C=function(e,t){for(var r=e instanceof Fd?e.start:1,i=e instanceof Fd?e.reversed:!1,s=0;s<t.length;s++){var l=t[s];l.container instanceof bC&&typeof l.container.value=="number"&&l.container.value!==0&&(r=l.container.value),l.listValue=Ms(r,l.container.styles.listStyleType,!0),r+=i?-1:1}},W3=function(e){var t=new WC(e,null),r=new ZC(t),i=[];return kd(t,r,r,i),$C(t.container,i),r},ey=function(e,t){switch(t){case 0:return Pt(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Pt(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Pt(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Pt(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},$3=function(e,t){switch(t){case 0:return Pt(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Pt(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Pt(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Pt(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},eM=function(e,t){switch(t){case 0:return Pt(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Pt(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Pt(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Pt(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},AM=function(e,t){switch(t){case 0:return Xo(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Xo(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Xo(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Xo(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Xo=function(e,t){var r=[];return zt(e)?r.push(e.subdivide(.5,!1)):r.push(e),zt(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Pt=function(e,t,r,i){var s=[];return zt(e)?s.push(e.subdivide(.5,!1)):s.push(e),zt(r)?s.push(r.subdivide(.5,!0)):s.push(r),zt(i)?s.push(i.subdivide(.5,!0).reverse()):s.push(i),zt(t)?s.push(t.subdivide(.5,!1).reverse()):s.push(t),s},Ay=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},qo=function(e){var t=e.styles,r=e.bounds,i=pA(t.paddingLeft,r.width),s=pA(t.paddingRight,r.width),l=pA(t.paddingTop,r.width),c=pA(t.paddingBottom,r.width);return r.add(i+t.borderLeftWidth,l+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+s),-(t.borderTopWidth+t.borderBottomWidth+l+c))},tM=function(e,t){return e===0?t.bounds:e===2?qo(t):Ay(t)},nM=function(e,t){return e===0?t.bounds:e===2?qo(t):Ay(t)},jd=function(e,t,r){var i=tM(Pi(e.styles.backgroundOrigin,t),e),s=nM(Pi(e.styles.backgroundClip,t),e),l=rM(Pi(e.styles.backgroundSize,t),r,i),c=l[0],u=l[1],f=Fs(Pi(e.styles.backgroundPosition,t),i.width-c,i.height-u),h=iM(Pi(e.styles.backgroundRepeat,t),f,l,i,s),m=Math.round(i.left+f[0]),B=Math.round(i.top+f[1]);return[h,m,B,c,u]},zi=function(e){return lA(e)&&e.value===ki.AUTO},Jo=function(e){return typeof e=="number"},rM=function(e,t,r){var i=t[0],s=t[1],l=t[2],c=e[0],u=e[1];if(!c)return[0,0];if(MA(c)&&u&&MA(u))return[pA(c,r.width),pA(u,r.height)];var f=Jo(l);if(lA(c)&&(c.value===ki.CONTAIN||c.value===ki.COVER)){if(Jo(l)){var h=r.width/r.height;return h<l!=(c.value===ki.COVER)?[r.width,r.width/l]:[r.height*l,r.height]}return[r.width,r.height]}var m=Jo(i),B=Jo(s),C=m||B;if(zi(c)&&(!u||zi(u))){if(m&&B)return[i,s];if(!f&&!C)return[r.width,r.height];if(C&&f){var w=m?i:s*l,E=B?s:i/l;return[w,E]}var b=m?i:r.width,U=B?s:r.height;return[b,U]}if(f){var Q=0,N=0;return MA(c)?Q=pA(c,r.width):MA(u)&&(N=pA(u,r.height)),zi(c)?Q=N*l:(!u||zi(u))&&(N=Q/l),[Q,N]}var M=null,G=null;if(MA(c)?M=pA(c,r.width):u&&MA(u)&&(G=pA(u,r.height)),M!==null&&(!u||zi(u))&&(G=m&&B?M/i*s:r.height),G!==null&&zi(c)&&(M=m&&B?G/s*i:r.width),M!==null&&G!==null)return[M,G];throw new Error("Unable to calculate background-size for element")},Pi=function(e,t){var r=e[t];return typeof r>"u"?e[0]:r},iM=function(e,t,r,i,s){var l=t[0],c=t[1],u=r[0],f=r[1];switch(e){case 2:return[new Be(Math.round(i.left),Math.round(i.top+c)),new Be(Math.round(i.left+i.width),Math.round(i.top+c)),new Be(Math.round(i.left+i.width),Math.round(f+i.top+c)),new Be(Math.round(i.left),Math.round(f+i.top+c))];case 3:return[new Be(Math.round(i.left+l),Math.round(i.top)),new Be(Math.round(i.left+l+u),Math.round(i.top)),new Be(Math.round(i.left+l+u),Math.round(i.height+i.top)),new Be(Math.round(i.left+l),Math.round(i.height+i.top))];case 1:return[new Be(Math.round(i.left+l),Math.round(i.top+c)),new Be(Math.round(i.left+l+u),Math.round(i.top+c)),new Be(Math.round(i.left+l+u),Math.round(i.top+c+f)),new Be(Math.round(i.left+l),Math.round(i.top+c+f))];default:return[new Be(Math.round(s.left),Math.round(s.top)),new Be(Math.round(s.left+s.width),Math.round(s.top)),new Be(Math.round(s.left+s.width),Math.round(s.height+s.top)),new Be(Math.round(s.left),Math.round(s.height+s.top))]}},aM="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ty="Hidden Text",sM=(function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var i=this._document.createElement("div"),s=this._document.createElement("img"),l=this._document.createElement("span"),c=this._document.body;i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",c.appendChild(i),s.src=aM,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",l.style.fontFamily=t,l.style.fontSize=r,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode(ty)),i.appendChild(l),i.appendChild(s);var u=s.offsetTop-l.offsetTop+2;i.removeChild(l),i.appendChild(this._document.createTextNode(ty)),i.style.lineHeight="normal",s.style.verticalAlign="super";var f=s.offsetTop-i.offsetTop+2;return c.removeChild(i),{baseline:u,middle:f}},e.prototype.getMetrics=function(t,r){var i=t+" "+r;return typeof this._data[i]>"u"&&(this._data[i]=this.parseMetrics(t,r)),this._data[i]},e})(),ny=(function(){function e(t,r){this.context=t,this.options=r}return e})(),lM=1e4,oM=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s._activeEffects=[],s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),i.canvas||(s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px"),s.fontMetrics=new sM(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),s}return t.prototype.applyEffects=function(r){for(var i=this;this._activeEffects.length;)this.popEffect();r.forEach(function(s){return i.applyEffect(s)})},t.prototype.applyEffect=function(r){this.ctx.save(),J3(r)&&(this.ctx.globalAlpha=r.opacity),q3(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),qC(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return ot(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return i=r.element.container.styles,i.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return ot(this,void 0,void 0,function(){return at(this,function(i){switch(i.label){case 0:return VA(r.container.flags,16),r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return i.sent(),[4,this.renderNodeContent(r)];case 2:i.sent(),i.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,i,s){var l=this;if(i===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+s);else{var c=Ud(r.text);c.reduce(function(u,f){return l.ctx.fillText(f,u,r.bounds.top+s),u+l.ctx.measureText(f).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var i=r.fontVariant.filter(function(c){return c==="normal"||c==="small-caps"}).join(""),s=hM(r.fontFamily).join(", "),l=Us(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,i,r.fontWeight,l,s].join(" "),s,l]},t.prototype.renderTextNode=function(r,i){return ot(this,void 0,void 0,function(){var s,l,c,u,f,h,m,B,C=this;return at(this,function(w){return s=this.createFontStyle(i),l=s[0],c=s[1],u=s[2],this.ctx.font=l,this.ctx.direction=i.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(c,u),h=f.baseline,m=f.middle,B=i.paintOrder,r.textBounds.forEach(function(E){B.forEach(function(b){switch(b){case 0:C.ctx.fillStyle=YA(i.color),C.renderTextWithLetterSpacing(E,i.letterSpacing,h);var U=i.textShadow;U.length&&E.text.trim().length&&(U.slice(0).reverse().forEach(function(Q){C.ctx.shadowColor=YA(Q.color),C.ctx.shadowOffsetX=Q.offsetX.number*C.options.scale,C.ctx.shadowOffsetY=Q.offsetY.number*C.options.scale,C.ctx.shadowBlur=Q.blur.number,C.renderTextWithLetterSpacing(E,i.letterSpacing,h)}),C.ctx.shadowColor="",C.ctx.shadowOffsetX=0,C.ctx.shadowOffsetY=0,C.ctx.shadowBlur=0),i.textDecorationLine.length&&(C.ctx.fillStyle=YA(i.textDecorationColor||i.color),i.textDecorationLine.forEach(function(Q){switch(Q){case 1:C.ctx.fillRect(E.bounds.left,Math.round(E.bounds.top+h),E.bounds.width,1);break;case 2:C.ctx.fillRect(E.bounds.left,Math.round(E.bounds.top),E.bounds.width,1);break;case 3:C.ctx.fillRect(E.bounds.left,Math.ceil(E.bounds.top+m),E.bounds.width,1);break}}));break;case 1:i.webkitTextStrokeWidth&&E.text.trim().length&&(C.ctx.strokeStyle=YA(i.webkitTextStrokeColor),C.ctx.lineWidth=i.webkitTextStrokeWidth,C.ctx.lineJoin=window.chrome?"miter":"round",C.ctx.strokeText(E.text,E.bounds.left,E.bounds.top+h)),C.ctx.strokeStyle="",C.ctx.lineWidth=0,C.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,i,s){if(s&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var l=qo(r),c=Po(i);this.path(c),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(s,0,0,r.intrinsicWidth,r.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return ot(this,void 0,void 0,function(){var i,s,l,c,u,f,N,N,h,m,B,C,G,w,E,V,b,U,Q,N,M,G,V;return at(this,function(F){switch(F.label){case 0:this.applyEffects(r.getEffects(4)),i=r.container,s=r.curves,l=i.styles,c=0,u=i.textNodes,F.label=1;case 1:return c<u.length?(f=u[c],[4,this.renderTextNode(f,l)]):[3,4];case 2:F.sent(),F.label=3;case 3:return c++,[3,1];case 4:if(!(i instanceof yC))return[3,8];F.label=5;case 5:return F.trys.push([5,7,,8]),[4,this.context.cache.match(i.src)];case 6:return N=F.sent(),this.renderReplacedElement(i,s,N),[3,8];case 7:return F.sent(),this.context.logger.error("Error loading image "+i.src),[3,8];case 8:if(i instanceof EC&&this.renderReplacedElement(i,s,i.canvas),!(i instanceof vC))return[3,12];F.label=9;case 9:return F.trys.push([9,11,,12]),[4,this.context.cache.match(i.svg)];case 10:return N=F.sent(),this.renderReplacedElement(i,s,N),[3,12];case 11:return F.sent(),this.context.logger.error("Error loading svg "+i.svg.substring(0,255)),[3,12];case 12:return i instanceof UC&&i.tree?(h=new t(this.context,{scale:this.options.scale,backgroundColor:i.backgroundColor,x:0,y:0,width:i.width,height:i.height}),[4,h.render(i.tree)]):[3,14];case 13:m=F.sent(),i.width&&i.height&&this.ctx.drawImage(m,0,0,i.width,i.height,i.bounds.left,i.bounds.top,i.bounds.width,i.bounds.height),F.label=14;case 14:if(i instanceof Td&&(B=Math.min(i.bounds.width,i.bounds.height),i.type===Lo?i.checked&&(this.ctx.save(),this.path([new Be(i.bounds.left+B*.39363,i.bounds.top+B*.79),new Be(i.bounds.left+B*.16,i.bounds.top+B*.5549),new Be(i.bounds.left+B*.27347,i.bounds.top+B*.44071),new Be(i.bounds.left+B*.39694,i.bounds.top+B*.5649),new Be(i.bounds.left+B*.72983,i.bounds.top+B*.23),new Be(i.bounds.left+B*.84,i.bounds.top+B*.34085),new Be(i.bounds.left+B*.39363,i.bounds.top+B*.79)]),this.ctx.fillStyle=YA(xC),this.ctx.fill(),this.ctx.restore()):i.type===Do&&i.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(i.bounds.left+B/2,i.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=YA(xC),this.ctx.fill(),this.ctx.restore())),cM(i)&&i.value.length){switch(C=this.createFontStyle(l),G=C[0],w=C[1],E=this.fontMetrics.getMetrics(G,w).baseline,this.ctx.font=G,this.ctx.fillStyle=YA(l.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=fM(i.styles.textAlign),V=qo(i),b=0,i.styles.textAlign){case 1:b+=V.width/2;break;case 2:b+=V.width;break}U=V.add(b,0,0,-V.height/2+1),this.ctx.save(),this.path([new Be(V.left,V.top),new Be(V.left+V.width,V.top),new Be(V.left+V.width,V.top+V.height),new Be(V.left,V.top+V.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new _s(i.value,U),l.letterSpacing,E),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!VA(i.styles.display,2048))return[3,20];if(i.styles.listStyleImage===null)return[3,19];if(Q=i.styles.listStyleImage,Q.type!==0)return[3,18];N=void 0,M=Q.url,F.label=15;case 15:return F.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return N=F.sent(),this.ctx.drawImage(N,i.bounds.left-(N.width+10),i.bounds.top),[3,18];case 17:return F.sent(),this.context.logger.error("Error loading list-style-image "+M),[3,18];case 18:return[3,20];case 19:r.listValue&&i.styles.listStyleType!==-1&&(G=this.createFontStyle(l)[0],this.ctx.font=G,this.ctx.fillStyle=YA(l.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",V=new Tn(i.bounds.left,i.bounds.top+pA(i.styles.paddingTop,i.bounds.width),i.bounds.width,tC(l.lineHeight,l.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new _s(r.listValue,V),l.letterSpacing,tC(l.lineHeight,l.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),F.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return ot(this,void 0,void 0,function(){var i,s,Q,l,c,Q,u,f,Q,h,m,Q,B,C,Q,w,E,Q,b,U,Q;return at(this,function(N){switch(N.label){case 0:return VA(r.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:N.sent(),i=0,s=r.negativeZIndex,N.label=2;case 2:return i<s.length?(Q=s[i],[4,this.renderStack(Q)]):[3,5];case 3:N.sent(),N.label=4;case 4:return i++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:N.sent(),l=0,c=r.nonInlineLevel,N.label=7;case 7:return l<c.length?(Q=c[l],[4,this.renderNode(Q)]):[3,10];case 8:N.sent(),N.label=9;case 9:return l++,[3,7];case 10:u=0,f=r.nonPositionedFloats,N.label=11;case 11:return u<f.length?(Q=f[u],[4,this.renderStack(Q)]):[3,14];case 12:N.sent(),N.label=13;case 13:return u++,[3,11];case 14:h=0,m=r.nonPositionedInlineLevel,N.label=15;case 15:return h<m.length?(Q=m[h],[4,this.renderStack(Q)]):[3,18];case 16:N.sent(),N.label=17;case 17:return h++,[3,15];case 18:B=0,C=r.inlineLevel,N.label=19;case 19:return B<C.length?(Q=C[B],[4,this.renderNode(Q)]):[3,22];case 20:N.sent(),N.label=21;case 21:return B++,[3,19];case 22:w=0,E=r.zeroOrAutoZIndexOrTransformedOrOpacity,N.label=23;case 23:return w<E.length?(Q=E[w],[4,this.renderStack(Q)]):[3,26];case 24:N.sent(),N.label=25;case 25:return w++,[3,23];case 26:b=0,U=r.positiveZIndex,N.label=27;case 27:return b<U.length?(Q=U[b],[4,this.renderStack(Q)]):[3,30];case 28:N.sent(),N.label=29;case 29:return b++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var i=this;r.forEach(function(s,l){var c=zt(s)?s.start:s;l===0?i.ctx.moveTo(c.x,c.y):i.ctx.lineTo(c.x,c.y),zt(s)&&i.ctx.bezierCurveTo(s.startControl.x,s.startControl.y,s.endControl.x,s.endControl.y,s.end.x,s.end.y)})},t.prototype.renderRepeat=function(r,i,s,l){this.path(r),this.ctx.fillStyle=i,this.ctx.translate(s,l),this.ctx.fill(),this.ctx.translate(-s,-l)},t.prototype.resizeImage=function(r,i,s){var l;if(r.width===i&&r.height===s)return r;var c=(l=this.canvas.ownerDocument)!==null&&l!==void 0?l:document,u=c.createElement("canvas");u.width=Math.max(1,i),u.height=Math.max(1,s);var f=u.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,i,s),u},t.prototype.renderBackgroundImage=function(r){return ot(this,void 0,void 0,function(){var i,s,l,c,u,f;return at(this,function(h){switch(h.label){case 0:i=r.styles.backgroundImage.length-1,s=function(m){var B,C,w,q,L,J,se,le,R,E,q,L,J,se,le,b,U,Q,N,M,G,V,F,O,R,_,q,$,k,se,le,z,L,J,Ae,me,T,I,P,v,te,oe;return at(this,function(fe){switch(fe.label){case 0:if(m.type!==0)return[3,5];B=void 0,C=m.url,fe.label=1;case 1:return fe.trys.push([1,3,,4]),[4,l.context.cache.match(C)];case 2:return B=fe.sent(),[3,4];case 3:return fe.sent(),l.context.logger.error("Error loading background-image "+C),[3,4];case 4:return B&&(w=jd(r,i,[B.width,B.height,B.width/B.height]),q=w[0],L=w[1],J=w[2],se=w[3],le=w[4],R=l.ctx.createPattern(l.resizeImage(B,se,le),"repeat"),l.renderRepeat(q,R,L,J)),[3,6];case 5:qI(m)?(E=jd(r,i,[null,null,null]),q=E[0],L=E[1],J=E[2],se=E[3],le=E[4],b=GI(m.angle,se,le),U=b[0],Q=b[1],N=b[2],M=b[3],G=b[4],V=document.createElement("canvas"),V.width=se,V.height=le,F=V.getContext("2d"),O=F.createLinearGradient(Q,M,N,G),zw(m.stops,U).forEach(function(ge){return O.addColorStop(ge.stop,YA(ge.color))}),F.fillStyle=O,F.fillRect(0,0,se,le),se>0&&le>0&&(R=l.ctx.createPattern(V,"repeat"),l.renderRepeat(q,R,L,J))):JI(m)&&(_=jd(r,i,[null,null,null]),q=_[0],$=_[1],k=_[2],se=_[3],le=_[4],z=m.position.length===0?[dd]:m.position,L=pA(z[0],se),J=pA(z[z.length-1],le),Ae=zI(m,L,J,se,le),me=Ae[0],T=Ae[1],me>0&&T>0&&(I=l.ctx.createRadialGradient($+L,k+J,0,$+L,k+J,me),zw(m.stops,me*2).forEach(function(ge){return I.addColorStop(ge.stop,YA(ge.color))}),l.path(q),l.ctx.fillStyle=I,me!==T?(P=r.bounds.left+.5*r.bounds.width,v=r.bounds.top+.5*r.bounds.height,te=T/me,oe=1/te,l.ctx.save(),l.ctx.translate(P,v),l.ctx.transform(1,0,0,te,0,0),l.ctx.translate(-P,-v),l.ctx.fillRect($,oe*(k-v)+v,se,le*oe),l.ctx.restore()):l.ctx.fill())),fe.label=6;case 6:return i--,[2]}})},l=this,c=0,u=r.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return c<u.length?(f=u[c],[5,s(f)]):[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,i,s){return ot(this,void 0,void 0,function(){return at(this,function(l){return this.path(ey(s,i)),this.ctx.fillStyle=YA(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,i,s,l){return ot(this,void 0,void 0,function(){var c,u;return at(this,function(f){switch(f.label){case 0:return i<3?[4,this.renderSolidBorder(r,s,l)]:[3,2];case 1:return f.sent(),[2];case 2:return c=$3(l,s),this.path(c),this.ctx.fillStyle=YA(r),this.ctx.fill(),u=eM(l,s),this.path(u),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return ot(this,void 0,void 0,function(){var i,s,l,c,u,f,h,m,B=this;return at(this,function(C){switch(C.label){case 0:return this.applyEffects(r.getEffects(2)),i=r.container.styles,s=!gr(i.backgroundColor)||i.backgroundImage.length,l=[{style:i.borderTopStyle,color:i.borderTopColor,width:i.borderTopWidth},{style:i.borderRightStyle,color:i.borderRightColor,width:i.borderRightWidth},{style:i.borderBottomStyle,color:i.borderBottomColor,width:i.borderBottomWidth},{style:i.borderLeftStyle,color:i.borderLeftColor,width:i.borderLeftWidth}],c=uM(Pi(i.backgroundClip,0),r.curves),s||i.boxShadow.length?(this.ctx.save(),this.path(c),this.ctx.clip(),gr(i.backgroundColor)||(this.ctx.fillStyle=YA(i.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:C.sent(),this.ctx.restore(),i.boxShadow.slice(0).reverse().forEach(function(w){B.ctx.save();var E=zo(r.curves),b=w.inset?0:lM,U=Z3(E,-b+(w.inset?1:-1)*w.spread.number,(w.inset?1:-1)*w.spread.number,w.spread.number*(w.inset?-2:2),w.spread.number*(w.inset?-2:2));w.inset?(B.path(E),B.ctx.clip(),B.mask(U)):(B.mask(E),B.ctx.clip(),B.path(U)),B.ctx.shadowOffsetX=w.offsetX.number+b,B.ctx.shadowOffsetY=w.offsetY.number,B.ctx.shadowColor=YA(w.color),B.ctx.shadowBlur=w.blur.number,B.ctx.fillStyle=w.inset?YA(w.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),C.label=2;case 2:u=0,f=0,h=l,C.label=3;case 3:return f<h.length?(m=h[f],m.style!==0&&!gr(m.color)&&m.width>0?m.style!==2?[3,5]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,2)]:[3,11]):[3,13];case 4:return C.sent(),[3,11];case 5:return m.style!==3?[3,7]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,3)];case 6:return C.sent(),[3,11];case 7:return m.style!==4?[3,9]:[4,this.renderDoubleBorder(m.color,m.width,u,r.curves)];case 8:return C.sent(),[3,11];case 9:return[4,this.renderSolidBorder(m.color,u,r.curves)];case 10:C.sent(),C.label=11;case 11:u++,C.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,i,s,l,c){return ot(this,void 0,void 0,function(){var u,f,h,m,B,C,w,E,b,U,Q,N,M,G,V,F,V,F;return at(this,function(O){return this.ctx.save(),u=AM(l,s),f=ey(l,s),c===2&&(this.path(f),this.ctx.clip()),zt(f[0])?(h=f[0].start.x,m=f[0].start.y):(h=f[0].x,m=f[0].y),zt(f[1])?(B=f[1].end.x,C=f[1].end.y):(B=f[1].x,C=f[1].y),s===0||s===2?w=Math.abs(h-B):w=Math.abs(m-C),this.ctx.beginPath(),c===3?this.formatPath(u):this.formatPath(f.slice(0,2)),E=i<3?i*3:i*2,b=i<3?i*2:i,c===3&&(E=i,b=i),U=!0,w<=E*2?U=!1:w<=E*2+b?(Q=w/(2*E+b),E*=Q,b*=Q):(N=Math.floor((w+b)/(E+b)),M=(w-N*E)/(N-1),G=(w-(N+1)*E)/N,b=G<=0||Math.abs(b-M)<Math.abs(b-G)?M:G),U&&(c===3?this.ctx.setLineDash([0,E+b]):this.ctx.setLineDash([E,b])),c===3?(this.ctx.lineCap="round",this.ctx.lineWidth=i):this.ctx.lineWidth=i*2+1.1,this.ctx.strokeStyle=YA(r),this.ctx.stroke(),this.ctx.setLineDash([]),c===2&&(zt(f[0])&&(V=f[3],F=f[0],this.ctx.beginPath(),this.formatPath([new Be(V.end.x,V.end.y),new Be(F.start.x,F.start.y)]),this.ctx.stroke()),zt(f[1])&&(V=f[1],F=f[2],this.ctx.beginPath(),this.formatPath([new Be(V.end.x,V.end.y),new Be(F.start.x,F.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return ot(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=YA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=W3(r),[4,this.renderStack(i)];case 1:return s.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(ny),cM=function(e){return e instanceof QC||e instanceof SC?!0:e instanceof Td&&e.type!==Do&&e.type!==Lo},uM=function(e,t){switch(e){case 0:return zo(t);case 2:return P3(t);case 1:default:return Po(t)}},fM=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},dM=["-apple-system","system-ui"],hM=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return dM.indexOf(t)===-1}):e},gM=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=i,s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),s}return t.prototype.render=function(r){return ot(this,void 0,void 0,function(){var i,s;return at(this,function(l){switch(l.label){case 0:return i=Qd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,pM(i)];case 1:return s=l.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=YA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(s,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(ny),pM=function(e){return new Promise(function(t,r){var i=new Image;i.onload=function(){t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},mM=(function(){function e(t){var r=t.id,i=t.enabled;this.id=r,this.enabled=i,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"||this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"||this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"||this.info.apply(this,t))},e.instances={},e})(),BM=(function(){function e(t,r){var i;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new mM({id:this.instanceName,enabled:t.logging}),this.cache=(i=t.cache)!==null&&i!==void 0?i:new L3(this,t)}return e.instanceCount=1,e})(),wM=function(e,t){return t===void 0&&(t={}),CM(e,t)};typeof window<"u"&&XC.setContext(window);var CM=function(e,t){return ot(void 0,void 0,void 0,function(){var r,i,s,l,c,u,f,h,m,B,C,w,E,b,U,Q,N,M,G,V,O,F,O,R,_,q,$,k,se,le,z,L,J,Ae,me,T,I,P,v,te;return at(this,function(oe){switch(oe.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return s={allowTaint:(R=t.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(_=t.imageTimeout)!==null&&_!==void 0?_:15e3,proxy:t.proxy,useCORS:(q=t.useCORS)!==null&&q!==void 0?q:!1},l=Pf({logging:($=t.logging)!==null&&$!==void 0?$:!0,cache:t.cache},s),c={windowWidth:(k=t.windowWidth)!==null&&k!==void 0?k:i.innerWidth,windowHeight:(se=t.windowHeight)!==null&&se!==void 0?se:i.innerHeight,scrollX:(le=t.scrollX)!==null&&le!==void 0?le:i.pageXOffset,scrollY:(z=t.scrollY)!==null&&z!==void 0?z:i.pageYOffset},u=new Tn(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),f=new BM(l,u),h=(L=t.foreignObjectRendering)!==null&&L!==void 0?L:!1,m={allowTaint:(J=t.allowTaint)!==null&&J!==void 0?J:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},f.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),B=new PC(f,e,m),C=B.clonedReferenceElement,C?[4,B.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=oe.sent(),E=Id(C)||y3(C)?Z4(C.ownerDocument):ro(f,C),b=E.width,U=E.height,Q=E.left,N=E.top,M=yM(f,C,t.backgroundColor),G={canvas:t.canvas,backgroundColor:M,scale:(me=(Ae=t.scale)!==null&&Ae!==void 0?Ae:i.devicePixelRatio)!==null&&me!==void 0?me:1,x:((T=t.x)!==null&&T!==void 0?T:0)+Q,y:((I=t.y)!==null&&I!==void 0?I:0)+N,width:(P=t.width)!==null&&P!==void 0?P:Math.ceil(b),height:(v=t.height)!==null&&v!==void 0?v:Math.ceil(U)},h?(f.logger.debug("Document cloned, using foreign object rendering"),O=new gM(f,G),[4,O.render(C)]):[3,3];case 2:return V=oe.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+Q+","+N+" with size "+b+"x"+U+" using computed rendering"),f.logger.debug("Starting DOM parsing"),F=TC(f,C),M===F.styles.backgroundColor&&(F.styles.backgroundColor=In.TRANSPARENT),f.logger.debug("Starting renderer for element at "+G.x+","+G.y+" with size "+G.width+"x"+G.height),O=new oM(f,G),[4,O.render(F)];case 4:V=oe.sent(),oe.label=5;case 5:return(!((te=t.removeContainer)!==null&&te!==void 0)||te)&&(PC.destroy(w)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,V]}})})},yM=function(e,t,r){var i=t.ownerDocument,s=i.documentElement?Ts(e,getComputedStyle(i.documentElement).backgroundColor):In.TRANSPARENT,l=i.body?Ts(e,getComputedStyle(i.body).backgroundColor):In.TRANSPARENT,c=typeof r=="string"?Ts(e,r):r===null?In.TRANSPARENT:4294967295;return t===i.documentElement?gr(s)?gr(l)?c:l:s:c};const ry=Object.freeze(Object.defineProperty({__proto__:null,default:wM},Symbol.toStringTag,{value:"Module"}));return fu.renderMedAssist=KB,Object.defineProperty(fu,Symbol.toStringTag,{value:"Module"}),fu})({});