sestek-component 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -18,7 +18,7 @@
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */var ia;function iQ(){return ia||(ia=1,process.env.NODE_ENV!=="production"&&(function(){function e(f,E){return f===E&&(f!==0||1/f===1/E)||f!==f&&E!==E}function t(f,E){l||r.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var B=E();if(!g){var h=E();o(B,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}h=s({inst:{value:B,getSnapshot:E}});var Q=h[0].inst,m=h[1];return a(function(){Q.value=B,Q.getSnapshot=E,A(Q)&&m({inst:Q})},[f,B,E]),i(function(){return A(Q)&&m({inst:Q}),f(function(){A(Q)&&m({inst:Q})})},[f]),u(B),B}function A(f){var E=f.getSnapshot;f=f.value;try{var B=E();return!o(f,B)}catch{return!0}}function n(f,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=w,o=typeof Object.is=="function"?Object.is:e,s=r.useState,i=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue,l=!1,g=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;eo.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),eo}var aa;function aQ(){return aa||(aa=1,process.env.NODE_ENV==="production"?Sn.exports=sQ():Sn.exports=iQ()),Sn.exports}var uQ=aQ();function lQ(){return uQ.useSyncExternalStore(cQ,()=>!0,()=>!1)}function cQ(){return()=>{}}var Ts="Avatar",[gQ]=ze(Ts),[dQ,Pc]=gQ(Ts),Nc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,...n}=e,[r,o]=C.useState("idle");return c.jsx(dQ,{scope:A,imageLoadingStatus:r,onImageLoadingStatusChange:o,children:c.jsx(se.span,{...n,ref:t})})});Nc.displayName=Ts;var Mc="AvatarImage",Tc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,src:n,onLoadingStatusChange:r=()=>{},...o}=e,s=Pc(Mc,A),i=CQ(n,o),a=at(u=>{r(u),s.onImageLoadingStatusChange(u)});return Ze(()=>{i!=="idle"&&a(i)},[i,a]),i==="loaded"?c.jsx(se.img,{...o,ref:t,src:n}):null});Tc.displayName=Mc;var jc="AvatarFallback",kc=C.forwardRef((e,t)=>{const{__scopeAvatar:A,delayMs:n,...r}=e,o=Pc(jc,A),[s,i]=C.useState(n===void 0);return C.useEffect(()=>{if(n!==void 0){const a=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(a)}},[n]),s&&o.imageLoadingStatus!=="loaded"?c.jsx(se.span,{...r,ref:t}):null});kc.displayName=jc;function ua(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function CQ(e,{referrerPolicy:t,crossOrigin:A}){const n=lQ(),r=C.useRef(null),o=n?(r.current||(r.current=new window.Image),r.current):null,[s,i]=C.useState(()=>ua(o,e));return Ze(()=>{i(ua(o,e))},[o,e]),Ze(()=>{const a=g=>()=>{i(g)};if(!o)return;const u=a("loaded"),l=a("error");return o.addEventListener("load",u),o.addEventListener("error",l),t&&(o.referrerPolicy=t),typeof A=="string"&&(o.crossOrigin=A),()=>{o.removeEventListener("load",u),o.removeEventListener("error",l)}},[o,A,t]),s}var fQ=Nc,BQ=Tc,EQ=kc;function IQ({className:e,...t}){return c.jsx(fQ,{"data-slot":"avatar",className:$("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...t})}function QQ({className:e,...t}){return c.jsx(BQ,{"data-slot":"avatar-image",className:$("aspect-square size-full",e),...t})}function hQ({className:e,...t}){return c.jsx(EQ,{"data-slot":"avatar-fallback",className:$("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const qt=({url:e,fullName:t,type:A="primary",isActive:n=!1})=>{const r=()=>{if(!t)return null;const[s,i]=t.split(" ");return`${(s==null?void 0:s.charAt(0))??""}${(i==null?void 0:i.charAt(0))??""}`},o=()=>A==="primary"||A==="primary-light"?"text-primary-foreground dark:text-white":"text-secondary-foreground dark:text-white";return c.jsxs("div",{className:"relative w-fit h-fit",children:[c.jsxs(IQ,{children:[c.jsx(QQ,{role:"img",src:e}),c.jsx(hQ,{className:$("text-base font-normal",A==="primary"?"bg-client-chat-background text-client-chat-foreground":A==="primary-light"?"bg-primary-brew-3 text-card":"bg-foreground-08 text-secondary-foreground"),children:t?r():c.jsx(W,{name:"Unknown",className:$("w-4 h-5",o())})})]}),n&&c.jsx("div",{className:"w-2.5 h-2.5 bg-success rounded-full absolute bottom-0 right-0"})]})},mQ=({fullname:e,telNo:t,id:A,avatarType:n="primary-light",idText:r="ID",isDefaultOpen:o=!1})=>{const[s,i]=w.useState(o),a=()=>{s||i(!0)},u=l=>{l.stopPropagation(),i(!1)};return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{onClick:a,className:`cursor-${s?"default":"pointer"}`,children:c.jsx(qt,{fullName:e,type:n})}),c.jsxs("div",{className:`flex flex-row gap-2 overflow-hidden transition-all duration-300 ease-in-out ${s?"max-w-[300px] opacity-100 translate-x-0":"max-w-0 opacity-0 -translate-x-4"}`,children:[c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx("span",{className:"text-sm font-medium text-foreground whitespace-nowrap",children:e}),c.jsxs("div",{className:"flex flex-row gap-2",children:[c.jsx("span",{className:"text-xs text-foreground whitespace-nowrap",children:t}),A&&c.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",id:"call-id-text",children:[r,": ",A]})]})]}),!o&&c.jsx("button",{onClick:u,className:"bg-foreground-04 border-none cursor-pointer h-10 w-10 rounded-full flex items-center justify-center transition-opacity duration-300 ease-in-out hover:opacity-80",children:c.jsx(W,{name:"Close",width:13,height:13,className:"text-foreground"})})]})]})};var zA={},oA={},On={},zt={},Ht={},to={},la;function Rc(){return la||(la=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function A(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=A,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(to)),to}var re={},ca;function ga(){if(ca)return re;ca=1;var e=re&&re.__extends||(function(){var I=function(v,p){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,F){D.__proto__=F}||function(D,F){for(var k in F)Object.prototype.hasOwnProperty.call(F,k)&&(D[k]=F[k])},I(v,p)};return function(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");I(v,p);function D(){this.constructor=v}v.prototype=p===null?Object.create(p):(D.prototype=p.prototype,new D)}})(),t=re&&re.__assign||function(){return t=Object.assign||function(I){for(var v,p=1,D=arguments.length;p<D;p++){v=arguments[p];for(var F in v)Object.prototype.hasOwnProperty.call(v,F)&&(I[F]=v[F])}return I},t.apply(this,arguments)};Object.defineProperty(re,"__esModule",{value:!0}),re.cloneNode=re.hasChildren=re.isDocument=re.isDirective=re.isComment=re.isText=re.isCDATA=re.isTag=re.Element=re.Document=re.CDATA=re.NodeWithChildren=re.ProcessingInstruction=re.Comment=re.Text=re.DataNode=re.Node=void 0;var A=Rc(),n=(function(){function I(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(I.prototype,"parentNode",{get:function(){return this.parent},set:function(v){this.parent=v},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"previousSibling",{get:function(){return this.prev},set:function(v){this.prev=v},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"nextSibling",{get:function(){return this.next},set:function(v){this.next=v},enumerable:!1,configurable:!0}),I.prototype.cloneNode=function(v){return v===void 0&&(v=!1),x(this,v)},I})();re.Node=n;var r=(function(I){e(v,I);function v(p){var D=I.call(this)||this;return D.data=p,D}return Object.defineProperty(v.prototype,"nodeValue",{get:function(){return this.data},set:function(p){this.data=p},enumerable:!1,configurable:!0}),v})(n);re.DataNode=r;var o=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.Text,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),v})(r);re.Text=o;var s=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.Comment,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),v})(r);re.Comment=s;var i=(function(I){e(v,I);function v(p,D){var F=I.call(this,D)||this;return F.name=p,F.type=A.ElementType.Directive,F}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),v})(r);re.ProcessingInstruction=i;var a=(function(I){e(v,I);function v(p){var D=I.call(this)||this;return D.children=p,D}return Object.defineProperty(v.prototype,"firstChild",{get:function(){var p;return(p=this.children[0])!==null&&p!==void 0?p:null},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"childNodes",{get:function(){return this.children},set:function(p){this.children=p},enumerable:!1,configurable:!0}),v})(n);re.NodeWithChildren=a;var u=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.CDATA,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),v})(a);re.CDATA=u;var l=(function(I){e(v,I);function v(){var p=I!==null&&I.apply(this,arguments)||this;return p.type=A.ElementType.Root,p}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),v})(a);re.Document=l;var g=(function(I){e(v,I);function v(p,D,F,k){F===void 0&&(F=[]),k===void 0&&(k=p==="script"?A.ElementType.Script:p==="style"?A.ElementType.Style:A.ElementType.Tag);var O=I.call(this,F)||this;return O.name=p,O.attribs=D,O.type=k,O}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"tagName",{get:function(){return this.name},set:function(p){this.name=p},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"attributes",{get:function(){var p=this;return Object.keys(this.attribs).map(function(D){var F,k;return{name:D,value:p.attribs[D],namespace:(F=p["x-attribsNamespace"])===null||F===void 0?void 0:F[D],prefix:(k=p["x-attribsPrefix"])===null||k===void 0?void 0:k[D]}})},enumerable:!1,configurable:!0}),v})(a);re.Element=g;function d(I){return(0,A.isTag)(I)}re.isTag=d;function f(I){return I.type===A.ElementType.CDATA}re.isCDATA=f;function E(I){return I.type===A.ElementType.Text}re.isText=E;function B(I){return I.type===A.ElementType.Comment}re.isComment=B;function h(I){return I.type===A.ElementType.Directive}re.isDirective=h;function Q(I){return I.type===A.ElementType.Root}re.isDocument=Q;function m(I){return Object.prototype.hasOwnProperty.call(I,"children")}re.hasChildren=m;function x(I,v){v===void 0&&(v=!1);var p;if(E(I))p=new o(I.data);else if(B(I))p=new s(I.data);else if(d(I)){var D=v?b(I.children):[],F=new g(I.name,t({},I.attribs),D);D.forEach(function(P){return P.parent=F}),I.namespace!=null&&(F.namespace=I.namespace),I["x-attribsNamespace"]&&(F["x-attribsNamespace"]=t({},I["x-attribsNamespace"])),I["x-attribsPrefix"]&&(F["x-attribsPrefix"]=t({},I["x-attribsPrefix"])),p=F}else if(f(I)){var D=v?b(I.children):[],k=new u(D);D.forEach(function(y){return y.parent=k}),p=k}else if(Q(I)){var D=v?b(I.children):[],O=new l(D);D.forEach(function(y){return y.parent=O}),I["x-mode"]&&(O["x-mode"]=I["x-mode"]),p=O}else if(h(I)){var z=new i(I.name,I.data);I["x-name"]!=null&&(z["x-name"]=I["x-name"],z["x-publicId"]=I["x-publicId"],z["x-systemId"]=I["x-systemId"]),p=z}else throw new Error("Not implemented yet: ".concat(I.type));return p.startIndex=I.startIndex,p.endIndex=I.endIndex,I.sourceCodeLocation!=null&&(p.sourceCodeLocation=I.sourceCodeLocation),p}re.cloneNode=x;function b(I){for(var v=I.map(function(D){return x(D,!0)}),p=1;p<v.length;p++)v[p].prev=v[p-1],v[p-1].next=v[p];return v}return re}var da;function Lc(){return da||(da=1,(function(e){var t=Ht&&Ht.__createBinding||(Object.create?(function(i,a,u,l){l===void 0&&(l=u);var g=Object.getOwnPropertyDescriptor(a,u);(!g||("get"in g?!a.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(i,l,g)}):(function(i,a,u,l){l===void 0&&(l=u),i[l]=a[u]})),A=Ht&&Ht.__exportStar||function(i,a){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&t(a,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Rc(),r=ga();A(ga(),e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=(function(){function i(a,u,l){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(l=u,u=o),typeof a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??o,this.elementCB=l??null}return i.prototype.onparserinit=function(a){this.parser=a},i.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},i.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},i.prototype.onerror=function(a){this.handleCallback(a)},i.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},i.prototype.onopentag=function(a,u){var l=this.options.xmlMode?n.ElementType.Tag:void 0,g=new r.Element(a,u,void 0,l);this.addNode(g),this.tagStack.push(g)},i.prototype.ontext=function(a){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=a,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var l=new r.Text(a);this.addNode(l),this.lastNode=l}},i.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=a;return}var u=new r.Comment(a);this.addNode(u),this.lastNode=u},i.prototype.oncommentend=function(){this.lastNode=null},i.prototype.oncdatastart=function(){var a=new r.Text(""),u=new r.CDATA([a]);this.addNode(u),a.parent=u,this.lastNode=a},i.prototype.oncdataend=function(){this.lastNode=null},i.prototype.onprocessinginstruction=function(a,u){var l=new r.ProcessingInstruction(a,u);this.addNode(l)},i.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},i.prototype.addNode=function(a){var u=this.tagStack[this.tagStack.length-1],l=u.children[u.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),u.children.push(a),l&&(a.prev=l,l.next=a),a.parent=u,this.lastNode=null},i})();e.DomHandler=s,e.default=s})(Ht)),Ht}var Ao={},Ca;function pQ(){return Ca||(Ca=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,A){return t[A.toLowerCase()]=A,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Ao)),Ao}var fa;function Sc(){if(fa)return zt;fa=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.formatAttributes=n,zt.escapeSpecialCharacters=o,zt.revertEscapedCharacters=s,zt.formatDOM=i;var e=Lc(),t=pQ();function A(a){return t.CASE_SENSITIVE_TAG_NAMES_MAP[a]}function n(a){for(var u={},l=0,g=a.length;l<g;l++){var d=a[l];u[d.name]=d.value}return u}function r(a){a=a.toLowerCase();var u=A(a);return u||a}function o(a){return a.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function s(a){return a.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function i(a,u,l){u===void 0&&(u=null);for(var g=[],d,f=0,E=a.length;f<E;f++){var B=a[f];switch(B.nodeType){case 1:{var h=r(B.nodeName);d=new e.Element(h,n(B.attributes)),d.children=i(h==="template"?B.content.childNodes:B.childNodes,d);break}case 3:d=new e.Text(s(B.nodeValue));break;case 8:d=new e.Comment(B.nodeValue);break;default:continue}var Q=g[f-1]||null;Q&&(Q.next=d),d.parent=u,d.prev=Q,d.next=null,g.push(d)}return l&&(d=new e.ProcessingInstruction(l.substring(0,l.indexOf(" ")).toLowerCase(),l),d.next=g[0]||null,d.parent=u,g.unshift(d),g[1]&&(g[1].prev=g[0])),g}return zt}var Ba;function vQ(){if(Ba)return On;Ba=1,Object.defineProperty(On,"__esModule",{value:!0}),On.default=B;var e=Sc(),t="html",A="head",n="body",r=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,s=/<body[^]*>/i,i=function(h,Q){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},a=function(h,Q){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u=typeof window=="object"&&window.DOMParser;if(typeof u=="function"){var l=new u,g="text/html";a=function(h,Q){return Q&&(h="<".concat(Q,">").concat(h,"</").concat(Q,">")),l.parseFromString(h,g)},i=a}if(typeof document=="object"&&document.implementation){var d=document.implementation.createHTMLDocument();i=function(h,Q){if(Q){var m=d.documentElement.querySelector(Q);return m&&(m.innerHTML=h),d}return d.documentElement.innerHTML=h,d}}var f=typeof document=="object"&&document.createElement("template"),E;f&&f.content&&(E=function(h){return f.innerHTML=h,f.content.childNodes});function B(h){var Q,m;h=(0,e.escapeSpecialCharacters)(h);var x=h.match(r),b=x&&x[1]?x[1].toLowerCase():"";switch(b){case t:{var I=a(h);if(!o.test(h)){var v=I.querySelector(A);(Q=v==null?void 0:v.parentNode)===null||Q===void 0||Q.removeChild(v)}if(!s.test(h)){var v=I.querySelector(n);(m=v==null?void 0:v.parentNode)===null||m===void 0||m.removeChild(v)}return I.querySelectorAll(t)}case A:case n:{var p=i(h).querySelectorAll(b);return s.test(h)&&o.test(h)?p[0].parentNode.childNodes:p}default:{if(E)return E(h);var v=i(h,n).querySelector(n);return v.childNodes}}}return On}var Ea;function wQ(){if(Ea)return oA;Ea=1;var e=oA&&oA.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(oA,"__esModule",{value:!0}),oA.default=r;var t=e(vQ()),A=Sc(),n=/<(![a-zA-Z\s]+)>/;function r(o){if(typeof o!="string")throw new TypeError("First argument must be a string");if(!o)return[];var s=o.match(n),i=s?s[1]:void 0;return(0,A.formatDOM)((0,t.default)(o),null,i)}return oA}var zn={},Ve={},HA={},Ia;function xQ(){if(Ia)return HA;Ia=1;var e=0;HA.SAME=e;var t=1;return HA.CAMELCASE=t,HA.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},HA}var Qa;function bQ(){if(Qa)return Ve;Qa=1;const e=0,t=1,A=2,n=3,r=4,o=5,s=6;function i(I){return u.hasOwnProperty(I)?u[I]:null}function a(I,v,p,D,F,k,O){this.acceptsBooleans=v===A||v===n||v===r,this.attributeName=D,this.attributeNamespace=F,this.mustUseProperty=p,this.propertyName=I,this.type=v,this.sanitizeURL=k,this.removeEmptyString=O}const u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(I=>{u[I]=new a(I,e,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([I,v])=>{u[I]=new a(I,t,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(I=>{u[I]=new a(I,A,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(I=>{u[I]=new a(I,A,!1,I,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(I=>{u[I]=new a(I,n,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(I=>{u[I]=new a(I,n,!0,I,null,!1,!1)}),["capture","download"].forEach(I=>{u[I]=new a(I,r,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(I=>{u[I]=new a(I,s,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(I=>{u[I]=new a(I,o,!1,I.toLowerCase(),null,!1,!1)});const g=/[\-\:]([a-z])/g,d=I=>I[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(I=>{const v=I.replace(g,d);u[v]=new a(v,t,!1,I,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(I=>{const v=I.replace(g,d);u[v]=new a(v,t,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(I=>{const v=I.replace(g,d);u[v]=new a(v,t,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(I=>{u[I]=new a(I,t,!1,I.toLowerCase(),null,!1,!1)});const f="xlinkHref";u[f]=new a("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(I=>{u[I]=new a(I,t,!1,I.toLowerCase(),null,!0,!0)});const{CAMELCASE:E,SAME:B,possibleStandardNames:h}=xQ(),m=":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",x=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+m+"]*$")),b=Object.keys(h).reduce((I,v)=>{const p=h[v];return p===B?I[v]=v:p===E?I[v.toLowerCase()]=v:I[v]=p,I},{});return Ve.BOOLEAN=n,Ve.BOOLEANISH_STRING=A,Ve.NUMERIC=o,Ve.OVERLOADED_BOOLEAN=r,Ve.POSITIVE_NUMERIC=s,Ve.RESERVED=e,Ve.STRING=t,Ve.getPropertyInfo=i,Ve.isCustomAttribute=x,Ve.possibleStandardNames=b,Ve}var VA={},sA={},no,ha;function DQ(){if(ha)return no;ha=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,A=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,i=/^\s+|\s+$/g,a=`
20
20
  `,u="/",l="*",g="",d="comment",f="declaration";no=function(B,h){if(typeof B!="string")throw new TypeError("First argument must be a string");if(!B)return[];h=h||{};var Q=1,m=1;function x(P){var y=P.match(t);y&&(Q+=y.length);var j=P.lastIndexOf(a);m=~j?P.length-j:m+P.length}function b(){var P={line:Q,column:m};return function(y){return y.position=new I(P),D(),y}}function I(P){this.start=P,this.end={line:Q,column:m},this.source=h.source}I.prototype.content=B;function v(P){var y=new Error(h.source+":"+Q+":"+m+": "+P);if(y.reason=P,y.filename=h.source,y.line=Q,y.column=m,y.source=B,!h.silent)throw y}function p(P){var y=P.exec(B);if(y){var j=y[0];return x(j),B=B.slice(j.length),y}}function D(){p(A)}function F(P){var y;for(P=P||[];y=k();)y!==!1&&P.push(y);return P}function k(){var P=b();if(!(u!=B.charAt(0)||l!=B.charAt(1))){for(var y=2;g!=B.charAt(y)&&(l!=B.charAt(y)||u!=B.charAt(y+1));)++y;if(y+=2,g===B.charAt(y-1))return v("End of comment missing");var j=B.slice(2,y-2);return m+=2,x(j),B=B.slice(y),m+=2,P({type:d,comment:j})}}function O(){var P=b(),y=p(n);if(y){if(k(),!p(r))return v("property missing ':'");var j=p(o),H=P({type:f,property:E(y[0].replace(e,g)),value:j?E(j[0].replace(e,g)):g});return p(s),H}}function z(){var P=[];F(P);for(var y;y=O();)y!==!1&&(P.push(y),F(P));return P}return D(),z()};function E(B){return B?B.replace(i,g):g}return no}var ma;function yQ(){if(ma)return sA;ma=1;var e=sA&&sA.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(sA,"__esModule",{value:!0}),sA.default=A;const t=e(DQ());function A(n,r){let o=null;if(!n||typeof n!="string")return o;const s=(0,t.default)(n),i=typeof r=="function";return s.forEach(a=>{if(a.type!=="declaration")return;const{property:u,value:l}=a;i?r(u,l,a):l&&(o=o||{},o[u]=l)}),o}return sA}var GA={},pa;function FQ(){if(pa)return GA;pa=1,Object.defineProperty(GA,"__esModule",{value:!0}),GA.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,A=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(u){return!u||A.test(u)||e.test(u)},s=function(u,l){return l.toUpperCase()},i=function(u,l){return"".concat(l,"-")},a=function(u,l){return l===void 0&&(l={}),o(u)?u:(u=u.toLowerCase(),l.reactCompat?u=u.replace(r,i):u=u.replace(n,i),u.replace(t,s))};return GA.camelCase=a,GA}var YA,va;function PQ(){if(va)return YA;va=1;var e=YA&&YA.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(yQ()),A=FQ();function n(r,o){var s={};return!r||typeof r!="string"||(0,t.default)(r,function(i,a){i&&a&&(s[(0,A.camelCase)(i,o)]=a)}),s}return n.default=n,YA=n,YA}var wa;function Oc(){return wa||(wa=1,(function(e){var t=VA&&VA.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=i;var A=w,n=t(PQ()),r=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(l,g){return l.includes("-")?!r.has(l):!!(g&&typeof g.is=="string")}var s={reactCompat:!0};function i(l,g){if(typeof l=="string"){if(!l.trim()){g.style={};return}try{g.style=(0,n.default)(l,s)}catch{g.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(A.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var a=function(l){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(l.name)};e.canTextBeChildOfNode=a;var u=function(l){return l};e.returnFirstArg=u})(VA)),VA}var xa;function zc(){if(xa)return zn;xa=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.default=o;var e=bQ(),t=Oc(),A=["checked","value"],n=["input","select","textarea"],r={reset:!0,submit:!0};function o(i,a){i===void 0&&(i={});var u={},l=!!(i.type&&r[i.type]);for(var g in i){var d=i[g];if((0,e.isCustomAttribute)(g)){u[g]=d;continue}var f=g.toLowerCase(),E=s(f);if(E){var B=(0,e.getPropertyInfo)(E);switch(A.includes(E)&&n.includes(a)&&!l&&(E=s("default"+f)),u[E]=d,B&&B.type){case e.BOOLEAN:u[E]=!0;break;case e.OVERLOADED_BOOLEAN:d===""&&(u[E]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(u[g]=d)}return(0,t.setStyleProp)(i.style,u),u}function s(i){return e.possibleStandardNames[i]}return zn}var iA={},ba;function NQ(){if(ba)return iA;ba=1;var e=iA&&iA.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(iA,"__esModule",{value:!0}),iA.default=o;var t=w,A=e(zc()),n=Oc(),r={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function o(i,a){a===void 0&&(a={});for(var u=[],l=typeof a.replace=="function",g=a.transform||n.returnFirstArg,d=a.library||r,f=d.cloneElement,E=d.createElement,B=d.isValidElement,h=i.length,Q=0;Q<h;Q++){var m=i[Q];if(l){var x=a.replace(m,Q);if(B(x)){h>1&&(x=f(x,{key:x.key||Q})),u.push(g(x,m,Q));continue}}if(m.type==="text"){var b=!m.data.trim().length;if(b&&m.parent&&!(0,n.canTextBeChildOfNode)(m.parent)||a.trim&&b)continue;u.push(g(m.data,m,Q));continue}var I=m,v={};s(I)?((0,n.setStyleProp)(I.attribs.style,I.attribs),v=I.attribs):I.attribs&&(v=(0,A.default)(I.attribs,I.name));var p=void 0;switch(m.type){case"script":case"style":m.children[0]&&(v.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":m.name==="textarea"&&m.children[0]?v.defaultValue=m.children[0].data:m.children&&m.children.length&&(p=o(m.children,a));break;default:continue}h>1&&(v.key=Q),u.push(g(E(m.name,v,p),m,Q))}return u.length===1?u[0]:u}function s(i){return n.PRESERVE_CUSTOM_ATTRIBUTES&&i.type==="tag"&&(0,n.isCustomComponent)(i.name,i.attribs)}return iA}var Da;function MQ(){return Da||(Da=1,(function(e){var t=zA&&zA.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=i;var A=t(wQ());e.htmlToDOM=A.default;var n=t(zc());e.attributesToProps=n.default;var r=t(NQ());e.domToReact=r.default;var o=Lc();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var s={lowerCaseAttributeNames:!1};function i(a,u){if(typeof a!="string")throw new TypeError("First argument must be a string");return a?(0,r.default)((0,A.default)(a,(u==null?void 0:u.htmlparser2)||s),u):[]}})(zA)),zA}var TQ=MQ();const ya=Fc(TQ),jQ=ya.default||ya;var ZA={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */var kQ=ZA.exports,Fa;function RQ(){return Fa||(Fa=1,(function(e,t){(function(A){var n=t,r=e&&e.exports==n&&e,o=typeof oa=="object"&&oa;(o.global===o||o.window===o)&&(A=o);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i=/[\x01-\x7F]/g,a=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot"," ":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf",ℬ:"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf",ℭ:"Cfr","𝒞":"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH","ⅇ":"ee",ℯ:"escr","𝔢":"efr","𝕖":"eopf",ℰ:"Escr","𝔈":"Efr","𝔼":"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil","𝔥":"hfr",ℎ:"planckh","𝒽":"hscr","𝕙":"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf",ĵ:"jcirc",Ĵ:"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr",ķ:"kcedil",Ķ:"Kcedil","𝔩":"lfr","𝓁":"lscr",ℓ:"ell","𝕝":"lopf",ℒ:"Lscr","𝔏":"Lfr","𝕃":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf",ℳ:"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr",ℕ:"Nopf","𝒩":"Nscr","𝔑":"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG","𝕠":"oopf","𝔬":"ofr",ℴ:"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf",ℙ:"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr",ℚ:"Qopf",ĸ:"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr",ŵ:"wcirc",Ŵ:"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf",ℨ:"Zfr",ℤ:"Zopf","𝒵":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi","ϵ":"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},g=/["&'<>`]/g,d={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},f=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,E=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,B=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,h={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
21
- `,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},Q={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},m={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},x=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],b=String.fromCharCode,I={},v=I.hasOwnProperty,p=function(N,G){return v.call(N,G)},D=function(N,G){for(var _=-1,ne=N.length;++_<ne;)if(N[_]==G)return!0;return!1},F=function(N,G){if(!N)return G;var _={},ne;for(ne in G)_[ne]=p(N,ne)?N[ne]:G[ne];return _},k=function(N,G){var _="";return N>=55296&&N<=57343||N>1114111?(G&&P("character reference outside the permissible Unicode range"),"�"):p(m,N)?(G&&P("disallowed character reference"),m[N]):(G&&D(x,N)&&P("disallowed character reference"),N>65535&&(N-=65536,_+=b(N>>>10&1023|55296),N=56320|N&1023),_+=b(N),_)},O=function(N){return"&#x"+N.toString(16).toUpperCase()+";"},z=function(N){return"&#"+N+";"},P=function(N){throw Error("Parse error: "+N)},y=function(N,G){G=F(G,y.options);var _=G.strict;_&&E.test(N)&&P("forbidden code point");var ne=G.encodeEverything,L=G.useNamedReferences,T=G.allowUnsafeSymbols,Y=G.decimal?z:O,V=function(R){return Y(R.charCodeAt(0))};return ne?(N=N.replace(i,function(R){return L&&p(l,R)?"&"+l[R]+";":V(R)}),L&&(N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),L&&(N=N.replace(u,function(R){return"&"+l[R]+";"}))):L?(T||(N=N.replace(g,function(R){return"&"+l[R]+";"})),N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),N=N.replace(u,function(R){return"&"+l[R]+";"})):T||(N=N.replace(g,V)),N.replace(s,function(R){var U=R.charCodeAt(0),X=R.charCodeAt(1),Ae=(U-55296)*1024+X-56320+65536;return Y(Ae)}).replace(a,V)};y.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var j=function(N,G){G=F(G,j.options);var _=G.strict;return _&&f.test(N)&&P("malformed character reference"),N.replace(B,function(ne,L,T,Y,V,R,U,X,Ae){var le,ge,ae,K,Pe,je;return L?(Pe=L,h[Pe]):T?(Pe=T,je=Y,je&&G.isAttributeValue?(_&&je=="="&&P("`&` did not start a character reference"),ne):(_&&P("named character reference was not terminated by a semicolon"),Q[Pe]+(je||""))):V?(ae=V,ge=R,_&&!ge&&P("character reference was not terminated by a semicolon"),le=parseInt(ae,10),k(le,_)):U?(K=U,ge=X,_&&!ge&&P("character reference was not terminated by a semicolon"),le=parseInt(K,16),k(le,_)):(_&&P("named character reference was not terminated by a semicolon"),ne)})};j.options={isAttributeValue:!1,strict:!1};var H=function(N){return N.replace(g,function(G){return d[G]})},S={version:"1.2.0",encode:y,decode:j,escape:H,unescape:j};if(n&&!n.nodeType)if(r)r.exports=S;else for(var M in S)p(S,M)&&(n[M]=S[M]);else A.he=S})(kQ)})(ZA,ZA.exports)),ZA.exports}var LQ=RQ();const SQ=Fc(LQ),Hc=e=>{const[t,A]=w.useState(typeof window<"u"?window.innerWidth<=e:!1);return w.useEffect(()=>{const n=()=>A(window.innerWidth<=e);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),t},kt=w.forwardRef(({title:e,message:t,timestamp:A,icon:n,tag:r,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:i,askGenAITitle:a="Ask GenAI",askManagerTitle:u="Ask Manager",isStacked:l,className:g,showFeedbackArea:d,scenarioId:f,feedbackSubmitButtonHoverTitle:E,feddbackTitle:B,feedbackHelpfullButtonTitle:h,feedbackNotHelpfullButtonTitle:Q,feedbackCommentPlaceholder:m,feedbackSubmitText:x,feedbackThankYouMessage:b,feedbackCancelButtonTitle:I,sendFeedback:v,matchId:p,feedbackLoading:D,showThankYou:F},k)=>{const O=SQ.decode(t??""),[z,P]=w.useState(1),[y,j]=w.useState(!1),[H,S]=w.useState(""),M=Hc(1050),N=()=>{j(L=>!L)},G=L=>{P(L)},_=({selectedFeedback:L,comment:T})=>{v==null||v({selectedFeedback:L??0,comment:T,scenarioId:f??"",matchId:p??""})},ne=()=>{P(1),S(""),j(!1)};return c.jsxs("div",{ref:k,className:$("flex flex-col w-full h-full min-h-0 rounded-xl md:rounded-3xl bg-primary-foreground md:bg-background gap-2 p-4 overflow-y-auto overflow-x-hidden",l?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,g),children:[c.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[c.jsxs("div",{className:"flex flex-row",children:[n,c.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof r<"u"&&r]}),c.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:A})]}),c.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:c.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[c.jsx("div",{className:"flex-1 min-w-0 whitespace-pre-wrap break-words",children:jQ(O)}),d&&!F&&c.jsxs("button",{onClick:N,className:"relative group",title:E,style:{cursor:"pointer"},children:[c.jsx(W,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),c.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:E})]})]})}),y&&!F&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),c.jsxs("div",{className:`flex flex-wrap gap-2 ${M?"flex-col":"flex-row"}`,children:[c.jsxs("button",{onClick:()=>G(1),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[c.jsx(W,{name:"LikeHand",width:16,height:16,style:{color:z===1?"#22c55e":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:h})]}),c.jsxs("button",{onClick:()=>G(0),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[c.jsx(W,{name:"DisLikeHand",width:16,height:16,style:{color:z===0?"#ef4444":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:Q})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:B}),c.jsx("textarea",{value:H,maxLength:500,onChange:L=>S(L.target.value),placeholder:m,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),c.jsxs("div",{className:"flex justify-end",children:[c.jsx(Qe,{onClick:ne,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:I})}),c.jsx(Qe,{onClick:()=>_({selectedFeedback:z??0,comment:H}),isLoading:D,disabled:D,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),F&&c.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[c.jsx("span",{className:"text-sm font-medium",children:b}),c.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:c.jsx(W,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&c.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[c.jsx(Qe,{onClick:s,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(W,{name:"Sparkles",width:16,height:16,className:"text-background"}),a]})}),c.jsx(Qe,{onClick:i,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(W,{name:"HandRaised",width:16,height:16,className:"text-background"}),u]})})]})]})});kt.displayName="MomentItem";const xA=({sender:e,message:t,timestamp:A,icon:n,type:r,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:i,showAskManagerButton:a,showAskAIButton:u,managerReplyMessage:l,additionalContent:g,onClickShowOriginalMessage:d,originalMessage:f,onResend:E})=>{const B=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative flex flex-col gap-2 items-start rounded-2xl rounded-tr-none bg-secondary max-w-full",children:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),f&&f!==""&&c.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2 ",onClick:d,style:{color:"#3BA7FF"},children:f}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),h=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx(qt,{fullName:e}),c.jsxs("div",{className:"px-4 py-3 relative w-fit min-w-[128px] flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-client-chat-background max-w-full",children:[c.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:t}),c.jsxs("div",{className:"flex flex-row gap-2",children:[u&&c.jsx(Qe,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(W,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),a&&c.jsx(Qe,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(W,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),f&&f!==""&&c.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2",onClick:d,style:{color:"#3BA7FF"},children:f}),c.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]})]}),Q=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[c.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[i,c.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:A})]}),c.jsx("div",{className:"text-sm font-medium text-foreground",children:l})]}),c.jsxs("div",{className:"rounded-br-2xl w-full rounded-bl-2xl bg-secondary flex flex-col items-start justify-center p-3 gap-2",children:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A})]})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),m=()=>{const I=async()=>{await sE(t)};return c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:c.jsx(W,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),c.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative w-full flex-1 flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-warning-background max-w-full",children:[c.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:t}),c.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[c.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[E&&c.jsx(Qe,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:E,children:c.jsx(W,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),c.jsx(Qe,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:I,children:c.jsx(W,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),c.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:A})]})]})]})},x=()=>c.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[c.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[n," ",t]}),c.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:A})]}),c.jsx("div",{className:"text-popover-foreground",children:g})]});return{MESSAGE:B(),REPLY:h(),MANAGER_REPLY:Q(),AI_REPLY:m(),INFO_MESSAGE:x()}[r]},OQ=({icon:e,title:t,summary:A})=>c.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&c.jsx("div",{className:"w-10 h-10 text-primary-brew bg-client-chat-background rounded-full flex items-center justify-center flex-shrink-0",children:e}),c.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:t})]}),c.jsx("div",{className:"text-sm font-normal text-secondary-brew-2",children:A})]}),xt=({options:e,value:t,onValueChange:A,placeholder:n="Seçiniz...",disabled:r=!1,className:o,searchPlaceholder:s="Ara...",emptyMessage:i="Sonuç bulunamadı",label:a})=>{const[u,l]=w.useState(!1),[g,d]=w.useState(""),[f,E]=w.useState(e.find(I=>I.value===t)),B=w.useRef(null),h=w.useRef(null);w.useEffect(()=>{const I=v=>{B.current&&!B.current.contains(v.target)&&(l(!1),d(""))};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]),w.useEffect(()=>{const I=e.find(v=>v.value===t);E(I)},[t,e]);const Q=e.filter(I=>I.label.toLowerCase().includes(g.toLowerCase())&&!I.disabled),m=I=>{E(I),A==null||A(I),l(!1),d("")},x=()=>{r||(l(!u),u||setTimeout(()=>{var I;return(I=h.current)==null?void 0:I.focus()},100))},b=I=>{I.key==="Escape"&&(l(!1),d(""))};return c.jsxs("div",{className:$("relative",o),ref:B,children:[a&&c.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:a}),c.jsxs("div",{className:"relative",children:[c.jsxs(En,{type:"button",variant:"outline",className:$("w-full justify-between",!f&&"text-muted-foreground"),onClick:x,disabled:r,children:[c.jsx("span",{className:"truncate",children:f?f.label:n}),c.jsx(W,{name:"ChevronDown",className:$("h-4 w-4 transition-transform duration-200 ml-2",u&&"rotate-180")})]}),u&&c.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[c.jsx("div",{className:"p-2 border-b border-border",children:c.jsx(Ul,{ref:h,placeholder:s,value:g,onChange:I=>d(I.target.value),onKeyDown:b,className:"h-8"})}),c.jsx("div",{className:"max-h-60 overflow-auto",children:Q.length>0?Q.map(I=>c.jsx("button",{type:"button",className:$("w-full px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground transition-colors",(f==null?void 0:f.value)===I.value&&"bg-accent text-accent-foreground"),onClick:()=>m(I),children:I.label},I.value)):c.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:i})})]})]})]})};function zQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e);C.useEffect(()=>{const n=r=>{r.key==="Escape"&&A(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[A,t])}var HQ="DismissableLayer",Vo="dismissableLayer.update",VQ="dismissableLayer.pointerDownOutside",GQ="dismissableLayer.focusOutside",Pa,Vc=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dr=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:A=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:s,onDismiss:i,...a}=e,u=C.useContext(Vc),[l,g]=C.useState(null),d=(l==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=C.useState({}),E=Ce(t,p=>g(p)),B=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),Q=B.indexOf(h),m=l?B.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=m>=Q,I=UQ(p=>{const D=p.target,F=[...u.branches].some(k=>k.contains(D));!b||F||(r==null||r(p),s==null||s(p),p.defaultPrevented||i==null||i())},d),v=XQ(p=>{const D=p.target;[...u.branches].some(k=>k.contains(D))||(o==null||o(p),s==null||s(p),p.defaultPrevented||i==null||i())},d);return zQ(p=>{m===u.layers.size-1&&(n==null||n(p),!p.defaultPrevented&&i&&(p.preventDefault(),i()))},d),C.useEffect(()=>{if(l)return A&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Pa=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),Na(),()=>{A&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Pa)}},[l,d,A,u]),C.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),Na())},[l,u]),C.useEffect(()=>{const p=()=>f({});return document.addEventListener(Vo,p),()=>document.removeEventListener(Vo,p)},[]),c.jsx(se.div,{...a,ref:E,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,v.onFocusCapture),onBlurCapture:J(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,I.onPointerDownCapture)})});Dr.displayName=HQ;var YQ="DismissableLayerBranch",WQ=C.forwardRef((e,t)=>{const A=C.useContext(Vc),n=C.useRef(null),r=Ce(t,n);return C.useEffect(()=>{const o=n.current;if(o)return A.branches.add(o),()=>{A.branches.delete(o)}},[A.branches]),c.jsx(se.div,{...e,ref:r})});WQ.displayName=YQ;function UQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e),n=C.useRef(!1),r=C.useRef(()=>{});return C.useEffect(()=>{const o=i=>{if(i.target&&!n.current){let a=function(){Gc(VQ,A,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,A]),{onPointerDownCapture:()=>n.current=!0}}function XQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e),n=C.useRef(!1);return C.useEffect(()=>{const r=o=>{o.target&&!n.current&&Gc(GQ,A,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,A]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Na(){const e=new CustomEvent(Vo);document.dispatchEvent(e)}function Gc(e,t,A,{discrete:n}){const r=A.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:A});t&&r.addEventListener(e,t,{once:!0}),n?Zl(r,o):r.dispatchEvent(o)}const ZQ=["top","right","bottom","left"],Ft=Math.min,Se=Math.max,ir=Math.round,Hn=Math.floor,st=e=>({x:e,y:e}),qQ={left:"right",right:"left",bottom:"top",top:"bottom"},KQ={start:"end",end:"start"};function Go(e,t,A){return Se(e,Ft(t,A))}function ft(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function MA(e){return e.split("-")[1]}function js(e){return e==="x"?"y":"x"}function ks(e){return e==="y"?"height":"width"}const JQ=new Set(["top","bottom"]);function rt(e){return JQ.has(Bt(e))?"y":"x"}function Rs(e){return js(rt(e))}function _Q(e,t,A){A===void 0&&(A=!1);const n=MA(e),r=Rs(e),o=ks(r);let s=r==="x"?n===(A?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ar(s)),[s,ar(s)]}function $Q(e){const t=ar(e);return[Yo(e),t,Yo(t)]}function Yo(e){return e.replace(/start|end/g,t=>KQ[t])}const Ma=["left","right"],Ta=["right","left"],e2=["top","bottom"],t2=["bottom","top"];function A2(e,t,A){switch(e){case"top":case"bottom":return A?t?Ta:Ma:t?Ma:Ta;case"left":case"right":return t?e2:t2;default:return[]}}function n2(e,t,A,n){const r=MA(e);let o=A2(Bt(e),A==="start",n);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(Yo)))),o}function ar(e){return e.replace(/left|right|bottom|top/g,t=>qQ[t])}function r2(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yc(e){return typeof e!="number"?r2(e):{top:e,right:e,bottom:e,left:e}}function ur(e){const{x:t,y:A,width:n,height:r}=e;return{width:n,height:r,top:A,left:t,right:t+n,bottom:A+r,x:t,y:A}}function ja(e,t,A){let{reference:n,floating:r}=e;const o=rt(t),s=Rs(t),i=ks(s),a=Bt(t),u=o==="y",l=n.x+n.width/2-r.width/2,g=n.y+n.height/2-r.height/2,d=n[i]/2-r[i]/2;let f;switch(a){case"top":f={x:l,y:n.y-r.height};break;case"bottom":f={x:l,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:g};break;case"left":f={x:n.x-r.width,y:g};break;default:f={x:n.x,y:n.y}}switch(MA(t)){case"start":f[s]-=d*(A&&u?-1:1);break;case"end":f[s]+=d*(A&&u?-1:1);break}return f}const o2=async(e,t,A)=>{const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s}=A,i=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:l,y:g}=ja(u,n,a),d=n,f={},E=0;for(let B=0;B<i.length;B++){const{name:h,fn:Q}=i[B],{x:m,y:x,data:b,reset:I}=await Q({x:l,y:g,initialPlacement:n,placement:d,strategy:r,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});l=m??l,g=x??g,f={...f,[h]:{...f[h],...b}},I&&E<=50&&(E++,typeof I=="object"&&(I.placement&&(d=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:l,y:g}=ja(u,d,a)),B=-1)}return{x:l,y:g,placement:d,strategy:r,middlewareData:f}};async function nn(e,t){var A;t===void 0&&(t={});const{x:n,y:r,platform:o,rects:s,elements:i,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:g="floating",altBoundary:d=!1,padding:f=0}=ft(t,e),E=Yc(f),h=i[d?g==="floating"?"reference":"floating":g],Q=ur(await o.getClippingRect({element:(A=await(o.isElement==null?void 0:o.isElement(h)))==null||A?h:h.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:u,rootBoundary:l,strategy:a})),m=g==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),b=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},I=ur(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:m,offsetParent:x,strategy:a}):m);return{top:(Q.top-I.top+E.top)/b.y,bottom:(I.bottom-Q.bottom+E.bottom)/b.y,left:(Q.left-I.left+E.left)/b.x,right:(I.right-Q.right+E.right)/b.x}}const s2=e=>({name:"arrow",options:e,async fn(t){const{x:A,y:n,placement:r,rects:o,platform:s,elements:i,middlewareData:a}=t,{element:u,padding:l=0}=ft(e,t)||{};if(u==null)return{};const g=Yc(l),d={x:A,y:n},f=Rs(r),E=ks(f),B=await s.getDimensions(u),h=f==="y",Q=h?"top":"left",m=h?"bottom":"right",x=h?"clientHeight":"clientWidth",b=o.reference[E]+o.reference[f]-d[f]-o.floating[E],I=d[f]-o.reference[f],v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let p=v?v[x]:0;(!p||!await(s.isElement==null?void 0:s.isElement(v)))&&(p=i.floating[x]||o.floating[E]);const D=b/2-I/2,F=p/2-B[E]/2-1,k=Ft(g[Q],F),O=Ft(g[m],F),z=k,P=p-B[E]-O,y=p/2-B[E]/2+D,j=Go(z,y,P),H=!a.arrow&&MA(r)!=null&&y!==j&&o.reference[E]/2-(y<z?k:O)-B[E]/2<0,S=H?y<z?y-z:y-P:0;return{[f]:d[f]+S,data:{[f]:j,centerOffset:y-j-S,...H&&{alignmentOffset:S}},reset:H}}}),i2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var A,n;const{placement:r,middlewareData:o,rects:s,initialPlacement:i,platform:a,elements:u}=t,{mainAxis:l=!0,crossAxis:g=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:B=!0,...h}=ft(e,t);if((A=o.arrow)!=null&&A.alignmentOffset)return{};const Q=Bt(r),m=rt(i),x=Bt(i)===i,b=await(a.isRTL==null?void 0:a.isRTL(u.floating)),I=d||(x||!B?[ar(i)]:$Q(i)),v=E!=="none";!d&&v&&I.push(...n2(i,B,E,b));const p=[i,...I],D=await nn(t,h),F=[];let k=((n=o.flip)==null?void 0:n.overflows)||[];if(l&&F.push(D[Q]),g){const y=_Q(r,s,b);F.push(D[y[0]],D[y[1]])}if(k=[...k,{placement:r,overflows:F}],!F.every(y=>y<=0)){var O,z;const y=(((O=o.flip)==null?void 0:O.index)||0)+1,j=p[y];if(j&&(!(g==="alignment"?m!==rt(j):!1)||k.every(M=>rt(M.placement)===m?M.overflows[0]>0:!0)))return{data:{index:y,overflows:k},reset:{placement:j}};let H=(z=k.filter(S=>S.overflows[0]<=0).sort((S,M)=>S.overflows[1]-M.overflows[1])[0])==null?void 0:z.placement;if(!H)switch(f){case"bestFit":{var P;const S=(P=k.filter(M=>{if(v){const N=rt(M.placement);return N===m||N==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(N=>N>0).reduce((N,G)=>N+G,0)]).sort((M,N)=>M[1]-N[1])[0])==null?void 0:P[0];S&&(H=S);break}case"initialPlacement":H=i;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function ka(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ra(e){return ZQ.some(t=>e[t]>=0)}const a2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:A}=t,{strategy:n="referenceHidden",...r}=ft(e,t);switch(n){case"referenceHidden":{const o=await nn(t,{...r,elementContext:"reference"}),s=ka(o,A.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ra(s)}}}case"escaped":{const o=await nn(t,{...r,altBoundary:!0}),s=ka(o,A.floating);return{data:{escapedOffsets:s,escaped:Ra(s)}}}default:return{}}}}},Wc=new Set(["left","top"]);async function u2(e,t){const{placement:A,platform:n,elements:r}=e,o=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Bt(A),i=MA(A),a=rt(A)==="y",u=Wc.has(s)?-1:1,l=o&&a?-1:1,g=ft(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return i&&typeof E=="number"&&(f=i==="end"?E*-1:E),a?{x:f*l,y:d*u}:{x:d*u,y:f*l}}const l2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var A,n;const{x:r,y:o,placement:s,middlewareData:i}=t,a=await u2(t,e);return s===((A=i.offset)==null?void 0:A.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:s}}}}},c2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:A,y:n,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:i={fn:h=>{let{x:Q,y:m}=h;return{x:Q,y:m}}},...a}=ft(e,t),u={x:A,y:n},l=await nn(t,a),g=rt(Bt(r)),d=js(g);let f=u[d],E=u[g];if(o){const h=d==="y"?"top":"left",Q=d==="y"?"bottom":"right",m=f+l[h],x=f-l[Q];f=Go(m,f,x)}if(s){const h=g==="y"?"top":"left",Q=g==="y"?"bottom":"right",m=E+l[h],x=E-l[Q];E=Go(m,E,x)}const B=i.fn({...t,[d]:f,[g]:E});return{...B,data:{x:B.x-A,y:B.y-n,enabled:{[d]:o,[g]:s}}}}}},g2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:A,y:n,placement:r,rects:o,middlewareData:s}=t,{offset:i=0,mainAxis:a=!0,crossAxis:u=!0}=ft(e,t),l={x:A,y:n},g=rt(r),d=js(g);let f=l[d],E=l[g];const B=ft(i,t),h=typeof B=="number"?{mainAxis:B,crossAxis:0}:{mainAxis:0,crossAxis:0,...B};if(a){const x=d==="y"?"height":"width",b=o.reference[d]-o.floating[x]+h.mainAxis,I=o.reference[d]+o.reference[x]-h.mainAxis;f<b?f=b:f>I&&(f=I)}if(u){var Q,m;const x=d==="y"?"width":"height",b=Wc.has(Bt(r)),I=o.reference[g]-o.floating[x]+(b&&((Q=s.offset)==null?void 0:Q[g])||0)+(b?0:h.crossAxis),v=o.reference[g]+o.reference[x]+(b?0:((m=s.offset)==null?void 0:m[g])||0)-(b?h.crossAxis:0);E<I?E=I:E>v&&(E=v)}return{[d]:f,[g]:E}}}},d2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var A,n;const{placement:r,rects:o,platform:s,elements:i}=t,{apply:a=()=>{},...u}=ft(e,t),l=await nn(t,u),g=Bt(r),d=MA(r),f=rt(r)==="y",{width:E,height:B}=o.floating;let h,Q;g==="top"||g==="bottom"?(h=g,Q=d===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(Q=g,h=d==="end"?"top":"bottom");const m=B-l.top-l.bottom,x=E-l.left-l.right,b=Ft(B-l[h],m),I=Ft(E-l[Q],x),v=!t.middlewareData.shift;let p=b,D=I;if((A=t.middlewareData.shift)!=null&&A.enabled.x&&(D=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(p=m),v&&!d){const k=Se(l.left,0),O=Se(l.right,0),z=Se(l.top,0),P=Se(l.bottom,0);f?D=E-2*(k!==0||O!==0?k+O:Se(l.left,l.right)):p=B-2*(z!==0||P!==0?z+P:Se(l.top,l.bottom))}await a({...t,availableWidth:D,availableHeight:p});const F=await s.getDimensions(i.floating);return E!==F.width||B!==F.height?{reset:{rects:!0}}:{}}}};function yr(){return typeof window<"u"}function TA(e){return Uc(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(Uc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Uc(e){return yr()?e instanceof Node||e instanceof Oe(e).Node:!1}function $e(e){return yr()?e instanceof Element||e instanceof Oe(e).Element:!1}function ut(e){return yr()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function La(e){return!yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}const C2=new Set(["inline","contents"]);function hn(e){const{overflow:t,overflowX:A,overflowY:n,display:r}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+A)&&!C2.has(r)}const f2=new Set(["table","td","th"]);function B2(e){return f2.has(TA(e))}const E2=[":popover-open",":modal"];function Fr(e){return E2.some(t=>{try{return e.matches(t)}catch{return!1}})}const I2=["transform","translate","scale","rotate","perspective"],Q2=["transform","translate","scale","rotate","perspective","filter"],h2=["paint","layout","strict","content"];function Ls(e){const t=Ss(),A=$e(e)?et(e):e;return I2.some(n=>A[n]?A[n]!=="none":!1)||(A.containerType?A.containerType!=="normal":!1)||!t&&(A.backdropFilter?A.backdropFilter!=="none":!1)||!t&&(A.filter?A.filter!=="none":!1)||Q2.some(n=>(A.willChange||"").includes(n))||h2.some(n=>(A.contain||"").includes(n))}function m2(e){let t=Pt(e);for(;ut(t)&&!bA(t);){if(Ls(t))return t;if(Fr(t))return null;t=Pt(t)}return null}function Ss(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const p2=new Set(["html","body","#document"]);function bA(e){return p2.has(TA(e))}function et(e){return Oe(e).getComputedStyle(e)}function Pr(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if(TA(e)==="html")return e;const t=e.assignedSlot||e.parentNode||La(e)&&e.host||lt(e);return La(t)?t.host:t}function Xc(e){const t=Pt(e);return bA(t)?e.ownerDocument?e.ownerDocument.body:e.body:ut(t)&&hn(t)?t:Xc(t)}function rn(e,t,A){var n;t===void 0&&(t=[]),A===void 0&&(A=!0);const r=Xc(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Oe(r);if(o){const i=Wo(s);return t.concat(s,s.visualViewport||[],hn(r)?r:[],i&&A?rn(i):[])}return t.concat(r,rn(r,[],A))}function Wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zc(e){const t=et(e);let A=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ut(e),o=r?e.offsetWidth:A,s=r?e.offsetHeight:n,i=ir(A)!==o||ir(n)!==s;return i&&(A=o,n=s),{width:A,height:n,$:i}}function Os(e){return $e(e)?e:e.contextElement}function hA(e){const t=Os(e);if(!ut(t))return st(1);const A=t.getBoundingClientRect(),{width:n,height:r,$:o}=Zc(t);let s=(o?ir(A.width):A.width)/n,i=(o?ir(A.height):A.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const v2=st(0);function qc(e){const t=Oe(e);return!Ss()||!t.visualViewport?v2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w2(e,t,A){return t===void 0&&(t=!1),!A||t&&A!==Oe(e)?!1:t}function $t(e,t,A,n){t===void 0&&(t=!1),A===void 0&&(A=!1);const r=e.getBoundingClientRect(),o=Os(e);let s=st(1);t&&(n?$e(n)&&(s=hA(n)):s=hA(e));const i=w2(o,A,n)?qc(o):st(0);let a=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,l=r.width/s.x,g=r.height/s.y;if(o){const d=Oe(o),f=n&&$e(n)?Oe(n):n;let E=d,B=Wo(E);for(;B&&n&&f!==E;){const h=hA(B),Q=B.getBoundingClientRect(),m=et(B),x=Q.left+(B.clientLeft+parseFloat(m.paddingLeft))*h.x,b=Q.top+(B.clientTop+parseFloat(m.paddingTop))*h.y;a*=h.x,u*=h.y,l*=h.x,g*=h.y,a+=x,u+=b,E=Oe(B),B=Wo(E)}}return ur({width:l,height:g,x:a,y:u})}function Nr(e,t){const A=Pr(e).scrollLeft;return t?t.left+A:$t(lt(e)).left+A}function Kc(e,t){const A=e.getBoundingClientRect(),n=A.left+t.scrollLeft-Nr(e,A),r=A.top+t.scrollTop;return{x:n,y:r}}function x2(e){let{elements:t,rect:A,offsetParent:n,strategy:r}=e;const o=r==="fixed",s=lt(n),i=t?Fr(t.floating):!1;if(n===s||i&&o)return A;let a={scrollLeft:0,scrollTop:0},u=st(1);const l=st(0),g=ut(n);if((g||!g&&!o)&&((TA(n)!=="body"||hn(s))&&(a=Pr(n)),ut(n))){const f=$t(n);u=hA(n),l.x=f.x+n.clientLeft,l.y=f.y+n.clientTop}const d=s&&!g&&!o?Kc(s,a):st(0);return{width:A.width*u.x,height:A.height*u.y,x:A.x*u.x-a.scrollLeft*u.x+l.x+d.x,y:A.y*u.y-a.scrollTop*u.y+l.y+d.y}}function b2(e){return Array.from(e.getClientRects())}function D2(e){const t=lt(e),A=Pr(e),n=e.ownerDocument.body,r=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-A.scrollLeft+Nr(e);const i=-A.scrollTop;return et(n).direction==="rtl"&&(s+=Se(t.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}const Sa=25;function y2(e,t){const A=Oe(e),n=lt(e),r=A.visualViewport;let o=n.clientWidth,s=n.clientHeight,i=0,a=0;if(r){o=r.width,s=r.height;const l=Ss();(!l||l&&t==="fixed")&&(i=r.offsetLeft,a=r.offsetTop)}const u=Nr(n);if(u<=0){const l=n.ownerDocument,g=l.body,d=getComputedStyle(g),f=l.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,E=Math.abs(n.clientWidth-g.clientWidth-f);E<=Sa&&(o-=E)}else u<=Sa&&(o+=u);return{width:o,height:s,x:i,y:a}}const F2=new Set(["absolute","fixed"]);function P2(e,t){const A=$t(e,!0,t==="fixed"),n=A.top+e.clientTop,r=A.left+e.clientLeft,o=ut(e)?hA(e):st(1),s=e.clientWidth*o.x,i=e.clientHeight*o.y,a=r*o.x,u=n*o.y;return{width:s,height:i,x:a,y:u}}function Oa(e,t,A){let n;if(t==="viewport")n=y2(e,A);else if(t==="document")n=D2(lt(e));else if($e(t))n=P2(t,A);else{const r=qc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ur(n)}function Jc(e,t){const A=Pt(e);return A===t||!$e(A)||bA(A)?!1:et(A).position==="fixed"||Jc(A,t)}function N2(e,t){const A=t.get(e);if(A)return A;let n=rn(e,[],!1).filter(i=>$e(i)&&TA(i)!=="body"),r=null;const o=et(e).position==="fixed";let s=o?Pt(e):e;for(;$e(s)&&!bA(s);){const i=et(s),a=Ls(s);!a&&i.position==="fixed"&&(r=null),(o?!a&&!r:!a&&i.position==="static"&&!!r&&F2.has(r.position)||hn(s)&&!a&&Jc(e,s))?n=n.filter(l=>l!==s):r=i,s=Pt(s)}return t.set(e,n),n}function M2(e){let{element:t,boundary:A,rootBoundary:n,strategy:r}=e;const s=[...A==="clippingAncestors"?Fr(t)?[]:N2(t,this._c):[].concat(A),n],i=s[0],a=s.reduce((u,l)=>{const g=Oa(t,l,r);return u.top=Se(g.top,u.top),u.right=Ft(g.right,u.right),u.bottom=Ft(g.bottom,u.bottom),u.left=Se(g.left,u.left),u},Oa(t,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function T2(e){const{width:t,height:A}=Zc(e);return{width:t,height:A}}function j2(e,t,A){const n=ut(t),r=lt(t),o=A==="fixed",s=$t(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const a=st(0);function u(){a.x=Nr(r)}if(n||!n&&!o)if((TA(t)!=="body"||hn(r))&&(i=Pr(t)),n){const f=$t(t,!0,o,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else r&&u();o&&!n&&r&&u();const l=r&&!n&&!o?Kc(r,i):st(0),g=s.left+i.scrollLeft-a.x-l.x,d=s.top+i.scrollTop-a.y-l.y;return{x:g,y:d,width:s.width,height:s.height}}function ro(e){return et(e).position==="static"}function za(e,t){if(!ut(e)||et(e).position==="fixed")return null;if(t)return t(e);let A=e.offsetParent;return lt(e)===A&&(A=A.ownerDocument.body),A}function _c(e,t){const A=Oe(e);if(Fr(e))return A;if(!ut(e)){let r=Pt(e);for(;r&&!bA(r);){if($e(r)&&!ro(r))return r;r=Pt(r)}return A}let n=za(e,t);for(;n&&B2(n)&&ro(n);)n=za(n,t);return n&&bA(n)&&ro(n)&&!Ls(n)?A:n||m2(e)||A}const k2=async function(e){const t=this.getOffsetParent||_c,A=this.getDimensions,n=await A(e.floating);return{reference:j2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function R2(e){return et(e).direction==="rtl"}const L2={convertOffsetParentRelativeRectToViewportRelativeRect:x2,getDocumentElement:lt,getClippingRect:M2,getOffsetParent:_c,getElementRects:k2,getClientRects:b2,getDimensions:T2,getScale:hA,isElement:$e,isRTL:R2};function $c(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S2(e,t){let A=null,n;const r=lt(e);function o(){var i;clearTimeout(n),(i=A)==null||i.disconnect(),A=null}function s(i,a){i===void 0&&(i=!1),a===void 0&&(a=1),o();const u=e.getBoundingClientRect(),{left:l,top:g,width:d,height:f}=u;if(i||t(),!d||!f)return;const E=Hn(g),B=Hn(r.clientWidth-(l+d)),h=Hn(r.clientHeight-(g+f)),Q=Hn(l),x={rootMargin:-E+"px "+-B+"px "+-h+"px "+-Q+"px",threshold:Se(0,Ft(1,a))||1};let b=!0;function I(v){const p=v[0].intersectionRatio;if(p!==a){if(!b)return s();p?s(!1,p):n=setTimeout(()=>{s(!1,1e-7)},1e3)}p===1&&!$c(u,e.getBoundingClientRect())&&s(),b=!1}try{A=new IntersectionObserver(I,{...x,root:r.ownerDocument})}catch{A=new IntersectionObserver(I,x)}A.observe(e)}return s(!0),o}function O2(e,t,A,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,u=Os(e),l=r||o?[...u?rn(u):[],...rn(t)]:[];l.forEach(Q=>{r&&Q.addEventListener("scroll",A,{passive:!0}),o&&Q.addEventListener("resize",A)});const g=u&&i?S2(u,A):null;let d=-1,f=null;s&&(f=new ResizeObserver(Q=>{let[m]=Q;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),A()}),u&&!a&&f.observe(u),f.observe(t));let E,B=a?$t(e):null;a&&h();function h(){const Q=$t(e);B&&!$c(B,Q)&&A(),B=Q,E=requestAnimationFrame(h)}return A(),()=>{var Q;l.forEach(m=>{r&&m.removeEventListener("scroll",A),o&&m.removeEventListener("resize",A)}),g==null||g(),(Q=f)==null||Q.disconnect(),f=null,a&&cancelAnimationFrame(E)}}const z2=l2,H2=c2,V2=i2,G2=d2,Y2=a2,Ha=s2,W2=g2,U2=(e,t,A)=>{const n=new Map,r={platform:L2,...A},o={...r.platform,_c:n};return o2(e,t,{...r,platform:o})};var X2=typeof document<"u",Z2=function(){},$n=X2?w.useLayoutEffect:Z2;function lr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let A,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(A=e.length,A!==t.length)return!1;for(n=A;n--!==0;)if(!lr(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),A=r.length,A!==Object.keys(t).length)return!1;for(n=A;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=A;n--!==0;){const o=r[n];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function eg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Va(e,t){const A=eg(e);return Math.round(t*A)/A}function oo(e){const t=C.useRef(e);return $n(()=>{t.current=e}),t}function q2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:A="absolute",middleware:n=[],platform:r,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:a,open:u}=e,[l,g]=C.useState({x:0,y:0,strategy:A,placement:t,middlewareData:{},isPositioned:!1}),[d,f]=C.useState(n);lr(d,n)||f(n);const[E,B]=C.useState(null),[h,Q]=C.useState(null),m=C.useCallback(M=>{M!==v.current&&(v.current=M,B(M))},[]),x=C.useCallback(M=>{M!==p.current&&(p.current=M,Q(M))},[]),b=o||E,I=s||h,v=C.useRef(null),p=C.useRef(null),D=C.useRef(l),F=a!=null,k=oo(a),O=oo(r),z=oo(u),P=C.useCallback(()=>{if(!v.current||!p.current)return;const M={placement:t,strategy:A,middleware:d};O.current&&(M.platform=O.current),U2(v.current,p.current,M).then(N=>{const G={...N,isPositioned:z.current!==!1};y.current&&!lr(D.current,G)&&(D.current=G,Nl.flushSync(()=>{g(G)}))})},[d,t,A,O,z]);$n(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(M=>({...M,isPositioned:!1})))},[u]);const y=C.useRef(!1);$n(()=>(y.current=!0,()=>{y.current=!1}),[]),$n(()=>{if(b&&(v.current=b),I&&(p.current=I),b&&I){if(k.current)return k.current(b,I,P);P()}},[b,I,P,k,F]);const j=C.useMemo(()=>({reference:v,floating:p,setReference:m,setFloating:x}),[m,x]),H=C.useMemo(()=>({reference:b,floating:I}),[b,I]),S=C.useMemo(()=>{const M={position:A,left:0,top:0};if(!H.floating)return M;const N=Va(H.floating,l.x),G=Va(H.floating,l.y);return i?{...M,transform:"translate("+N+"px, "+G+"px)",...eg(H.floating)>=1.5&&{willChange:"transform"}}:{position:A,left:N,top:G}},[A,i,H.floating,l.x,l.y]);return C.useMemo(()=>({...l,update:P,refs:j,elements:H,floatingStyles:S}),[l,P,j,H,S])}const K2=e=>{function t(A){return{}.hasOwnProperty.call(A,"current")}return{name:"arrow",options:e,fn(A){const{element:n,padding:r}=typeof e=="function"?e(A):e;return n&&t(n)?n.current!=null?Ha({element:n.current,padding:r}).fn(A):{}:n?Ha({element:n,padding:r}).fn(A):{}}}},J2=(e,t)=>({...z2(e),options:[e,t]}),_2=(e,t)=>({...H2(e),options:[e,t]}),$2=(e,t)=>({...W2(e),options:[e,t]}),eh=(e,t)=>({...V2(e),options:[e,t]}),th=(e,t)=>({...G2(e),options:[e,t]}),Ah=(e,t)=>({...Y2(e),options:[e,t]}),nh=(e,t)=>({...K2(e),options:[e,t]});var rh="Arrow",tg=C.forwardRef((e,t)=>{const{children:A,width:n=10,height:r=5,...o}=e;return c.jsx(se.svg,{...o,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?A:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});tg.displayName=rh;var oh=tg,zs="Popper",[Ag,Mr]=ze(zs),[sh,ng]=Ag(zs),rg=e=>{const{__scopePopper:t,children:A}=e,[n,r]=C.useState(null);return c.jsx(sh,{scope:t,anchor:n,onAnchorChange:r,children:A})};rg.displayName=zs;var og="PopperAnchor",sg=C.forwardRef((e,t)=>{const{__scopePopper:A,virtualRef:n,...r}=e,o=ng(og,A),s=C.useRef(null),i=Ce(t,s),a=C.useRef(null);return C.useEffect(()=>{const u=a.current;a.current=(n==null?void 0:n.current)||s.current,u!==a.current&&o.onAnchorChange(a.current)}),n?null:c.jsx(se.div,{...r,ref:i})});sg.displayName=og;var Hs="PopperContent",[ih,ah]=Ag(Hs),ig=C.forwardRef((e,t)=>{var R,U,X,Ae,le,ge;const{__scopePopper:A,side:n="bottom",sideOffset:r=0,align:o="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:g="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:E,...B}=e,h=ng(Hs,A),[Q,m]=C.useState(null),x=Ce(t,ae=>m(ae)),[b,I]=C.useState(null),v=Fs(b),p=(v==null?void 0:v.width)??0,D=(v==null?void 0:v.height)??0,F=n+(o!=="center"?"-"+o:""),k=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},O=Array.isArray(u)?u:[u],z=O.length>0,P={padding:k,boundary:O.filter(lh),altBoundary:z},{refs:y,floatingStyles:j,placement:H,isPositioned:S,middlewareData:M}=q2({strategy:"fixed",placement:F,whileElementsMounted:(...ae)=>O2(...ae,{animationFrame:f==="always"}),elements:{reference:h.anchor},middleware:[J2({mainAxis:r+D,alignmentAxis:s}),a&&_2({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?$2():void 0,...P}),a&&eh({...P}),th({...P,apply:({elements:ae,rects:K,availableWidth:Pe,availableHeight:je})=>{const{width:ct,height:De}=K.reference,gt=ae.floating.style;gt.setProperty("--radix-popper-available-width",`${Pe}px`),gt.setProperty("--radix-popper-available-height",`${je}px`),gt.setProperty("--radix-popper-anchor-width",`${ct}px`),gt.setProperty("--radix-popper-anchor-height",`${De}px`)}}),b&&nh({element:b,padding:i}),ch({arrowWidth:p,arrowHeight:D}),d&&Ah({strategy:"referenceHidden",...P})]}),[N,G]=lg(H),_=at(E);Ze(()=>{S&&(_==null||_())},[S,_]);const ne=(R=M.arrow)==null?void 0:R.x,L=(U=M.arrow)==null?void 0:U.y,T=((X=M.arrow)==null?void 0:X.centerOffset)!==0,[Y,V]=C.useState();return Ze(()=>{Q&&V(window.getComputedStyle(Q).zIndex)},[Q]),c.jsx("div",{ref:y.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:S?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(Ae=M.transformOrigin)==null?void 0:Ae.x,(le=M.transformOrigin)==null?void 0:le.y].join(" "),...((ge=M.hide)==null?void 0:ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(ih,{scope:A,placedSide:N,onArrowChange:I,arrowX:ne,arrowY:L,shouldHideArrow:T,children:c.jsx(se.div,{"data-side":N,"data-align":G,...B,ref:x,style:{...B.style,animation:S?void 0:"none"}})})})});ig.displayName=Hs;var ag="PopperArrow",uh={top:"bottom",right:"left",bottom:"top",left:"right"},ug=C.forwardRef(function(t,A){const{__scopePopper:n,...r}=t,o=ah(ag,n),s=uh[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(oh,{...r,ref:A,style:{...r.style,display:"block"}})})});ug.displayName=ag;function lh(e){return e!==null}var ch=e=>({name:"transformOrigin",options:e,fn(t){var h,Q,m;const{placement:A,rects:n,middlewareData:r}=t,s=((h=r.arrow)==null?void 0:h.centerOffset)!==0,i=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,l]=lg(A),g={start:"0%",center:"50%",end:"100%"}[l],d=(((Q=r.arrow)==null?void 0:Q.x)??0)+i/2,f=(((m=r.arrow)==null?void 0:m.y)??0)+a/2;let E="",B="";return u==="bottom"?(E=s?g:`${d}px`,B=`${-a}px`):u==="top"?(E=s?g:`${d}px`,B=`${n.floating.height+a}px`):u==="right"?(E=`${-a}px`,B=s?g:`${f}px`):u==="left"&&(E=`${n.floating.width+a}px`,B=s?g:`${f}px`),{data:{x:E,y:B}}}});function lg(e){const[t,A="center"]=e.split("-");return[t,A]}var cg=rg,gg=sg,dg=ig,Cg=ug,gh="Portal",Tr=C.forwardRef((e,t)=>{var i;const{container:A,...n}=e,[r,o]=C.useState(!1);Ze(()=>o(!0),[]);const s=A||r&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Fl.createPortal(c.jsx(se.div,{...n,ref:t}),s):null});Tr.displayName=gh;var dh=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ch="VisuallyHidden",jr=C.forwardRef((e,t)=>c.jsx(se.span,{...e,ref:t,style:{...dh,...e.style}}));jr.displayName=Ch;var fh=jr,[kr]=ze("Tooltip",[Mr]),Rr=Mr(),fg="TooltipProvider",Bh=700,Uo="tooltip.open",[Eh,Vs]=kr(fg),Bg=e=>{const{__scopeTooltip:t,delayDuration:A=Bh,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:o}=e,s=C.useRef(!0),i=C.useRef(!1),a=C.useRef(0);return C.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(Eh,{scope:t,isOpenDelayedRef:s,delayDuration:A,onOpen:C.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:C.useCallback(u=>{i.current=u},[]),disableHoverableContent:r,children:o})};Bg.displayName=fg;var on="Tooltip",[Ih,mn]=kr(on),Eg=e=>{const{__scopeTooltip:t,children:A,open:n,defaultOpen:r,onOpenChange:o,disableHoverableContent:s,delayDuration:i}=e,a=Vs(on,e.__scopeTooltip),u=Rr(t),[l,g]=C.useState(null),d=ot(),f=C.useRef(0),E=s??a.disableHoverableContent,B=i??a.delayDuration,h=C.useRef(!1),[Q,m]=Tt({prop:n,defaultProp:r??!1,onChange:p=>{p?(a.onOpen(),document.dispatchEvent(new CustomEvent(Uo))):a.onClose(),o==null||o(p)},caller:on}),x=C.useMemo(()=>Q?h.current?"delayed-open":"instant-open":"closed",[Q]),b=C.useCallback(()=>{window.clearTimeout(f.current),f.current=0,h.current=!1,m(!0)},[m]),I=C.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),v=C.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{h.current=!0,m(!0),f.current=0},B)},[B,m]);return C.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(cg,{...u,children:c.jsx(Ih,{scope:t,contentId:d,open:Q,stateAttribute:x,trigger:l,onTriggerChange:g,onTriggerEnter:C.useCallback(()=>{a.isOpenDelayedRef.current?v():b()},[a.isOpenDelayedRef,v,b]),onTriggerLeave:C.useCallback(()=>{E?I():(window.clearTimeout(f.current),f.current=0)},[I,E]),onOpen:b,onClose:I,disableHoverableContent:E,children:A})})};Eg.displayName=on;var Xo="TooltipTrigger",Ig=C.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,r=mn(Xo,A),o=Vs(Xo,A),s=Rr(A),i=C.useRef(null),a=Ce(t,i,r.onTriggerChange),u=C.useRef(!1),l=C.useRef(!1),g=C.useCallback(()=>u.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),c.jsx(gg,{asChild:!0,...s,children:c.jsx(se.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:a,onPointerMove:J(e.onPointerMove,d=>{d.pointerType!=="touch"&&!l.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),l.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{r.onTriggerLeave(),l.current=!1}),onPointerDown:J(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:J(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:J(e.onBlur,r.onClose),onClick:J(e.onClick,r.onClose)})})});Ig.displayName=Xo;var Gs="TooltipPortal",[Qh,hh]=kr(Gs,{forceMount:void 0}),Qg=e=>{const{__scopeTooltip:t,forceMount:A,children:n,container:r}=e,o=mn(Gs,t);return c.jsx(Qh,{scope:t,forceMount:A,children:c.jsx(He,{present:A||o.open,children:c.jsx(Tr,{asChild:!0,container:r,children:n})})})};Qg.displayName=Gs;var DA="TooltipContent",hg=C.forwardRef((e,t)=>{const A=hh(DA,e.__scopeTooltip),{forceMount:n=A.forceMount,side:r="top",...o}=e,s=mn(DA,e.__scopeTooltip);return c.jsx(He,{present:n||s.open,children:s.disableHoverableContent?c.jsx(mg,{side:r,...o,ref:t}):c.jsx(mh,{side:r,...o,ref:t})})}),mh=C.forwardRef((e,t)=>{const A=mn(DA,e.__scopeTooltip),n=Vs(DA,e.__scopeTooltip),r=C.useRef(null),o=Ce(t,r),[s,i]=C.useState(null),{trigger:a,onClose:u}=A,l=r.current,{onPointerInTransitChange:g}=n,d=C.useCallback(()=>{i(null),g(!1)},[g]),f=C.useCallback((E,B)=>{const h=E.currentTarget,Q={x:E.clientX,y:E.clientY},m=bh(Q,h.getBoundingClientRect()),x=Dh(Q,m),b=yh(B.getBoundingClientRect()),I=Ph([...x,...b]);i(I),g(!0)},[g]);return C.useEffect(()=>()=>d(),[d]),C.useEffect(()=>{if(a&&l){const E=h=>f(h,l),B=h=>f(h,a);return a.addEventListener("pointerleave",E),l.addEventListener("pointerleave",B),()=>{a.removeEventListener("pointerleave",E),l.removeEventListener("pointerleave",B)}}},[a,l,f,d]),C.useEffect(()=>{if(s){const E=B=>{const h=B.target,Q={x:B.clientX,y:B.clientY},m=(a==null?void 0:a.contains(h))||(l==null?void 0:l.contains(h)),x=!Fh(Q,s);m?d():x&&(d(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[a,l,s,u,d]),c.jsx(mg,{...e,ref:o})}),[ph,vh]=kr(on,{isInside:!1}),wh=mB("TooltipContent"),mg=C.forwardRef((e,t)=>{const{__scopeTooltip:A,children:n,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:s,...i}=e,a=mn(DA,A),u=Rr(A),{onClose:l}=a;return C.useEffect(()=>(document.addEventListener(Uo,l),()=>document.removeEventListener(Uo,l)),[l]),C.useEffect(()=>{if(a.trigger){const g=d=>{const f=d.target;f!=null&&f.contains(a.trigger)&&l()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[a.trigger,l]),c.jsx(Dr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:g=>g.preventDefault(),onDismiss:l,children:c.jsxs(dg,{"data-state":a.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(wh,{children:n}),c.jsx(ph,{scope:A,isInside:!0,children:c.jsx(fh,{id:a.contentId,role:"tooltip",children:r||n})})]})})});hg.displayName=DA;var pg="TooltipArrow",xh=C.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,r=Rr(A);return vh(pg,A).isInside?null:c.jsx(Cg,{...r,...n,ref:t})});xh.displayName=pg;function bh(e,t){const A=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(A,n,r,o)){case o:return"left";case r:return"right";case A:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Dh(e,t,A=5){const n=[];switch(t){case"top":n.push({x:e.x-A,y:e.y+A},{x:e.x+A,y:e.y+A});break;case"bottom":n.push({x:e.x-A,y:e.y-A},{x:e.x+A,y:e.y-A});break;case"left":n.push({x:e.x+A,y:e.y-A},{x:e.x+A,y:e.y+A});break;case"right":n.push({x:e.x-A,y:e.y-A},{x:e.x-A,y:e.y+A});break}return n}function yh(e){const{top:t,right:A,bottom:n,left:r}=e;return[{x:r,y:t},{x:A,y:t},{x:A,y:n},{x:r,y:n}]}function Fh(e,t){const{x:A,y:n}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const i=t[o],a=t[s],u=i.x,l=i.y,g=a.x,d=a.y;l>n!=d>n&&A<(g-u)*(n-l)/(d-l)+u&&(r=!r)}return r}function Ph(e){const t=e.slice();return t.sort((A,n)=>A.x<n.x?-1:A.x>n.x?1:A.y<n.y?-1:A.y>n.y?1:0),Nh(t)}function Nh(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const A=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;A.length>=2;){const o=A[A.length-1],s=A[A.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))A.pop();else break}A.push(r)}return A.pop(),t.length===1&&A.length===1&&t[0].x===A[0].x&&t[0].y===A[0].y?t:t.concat(A)}var Mh=Bg,Th=Eg,jh=Ig,kh=Qg,Rh=hg;function Lh({delayDuration:e=0,...t}){return c.jsx(Mh,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function vg({...e}){return c.jsx(Lh,{children:c.jsx(Th,{"data-slot":"tooltip",...e})})}function wg({...e}){return c.jsx(jh,{"data-slot":"tooltip-trigger",...e})}function xg({className:e,sideOffset:t=0,children:A,...n}){return c.jsx(kh,{children:c.jsx(Rh,{"data-slot":"tooltip-content",sideOffset:t,className:$("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:A})})}const Sh=({isStandalone:e,messages:t,onClickTranslation:A,conversationSummary:n,isTranslationShown:r=!0,translationStatus:o="idle",title:s="Transcript",startTranslationText:i="Start Translation",stopTranslationText:a="Stop Translation",sourceLanguagePlaceholder:u="Auto-detect",targetLanguagePlaceholder:l="English",sourceLanguageSearchPlaceholder:g="Search Source Language",targetLanguageSearchPlaceholder:d="Search Target Language",sourceLanguageOptions:f=[],targetLanguageOptions:E=[],sourceLanguage:B,targetLanguage:h,onSourceLanguageChange:Q,onTargetLanguageChange:m,showTranslationButtonText:x=!0,translationButtonClassName:b="row",showTranslationButtonGroup:I=!0})=>{const v=w.useRef(null),[p,D]=w.useState(!0),[F,k]=w.useState(!0),O=w.useRef(t.length),z=w.useRef(t),P=(S,M)=>c.jsxs(vg,{children:[c.jsx(wg,{asChild:!0,children:c.jsx("span",{className:"inline-flex",children:c.jsx(W,{name:S,width:40,height:40})})}),c.jsx(xg,{sideOffset:6,className:"bg-background text-foreground border px-2 py-1 text-xs font-medium",children:M})]}),y=w.useCallback(()=>{if(!v.current)return!1;const{scrollTop:S,scrollHeight:M,clientHeight:N}=v.current;return M-S-N<100},[]),j=w.useCallback(()=>{const S=y();k(S)},[y]),H=w.useCallback(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[]);return w.useEffect(()=>{const S=t.length>O.current,M=JSON.stringify(t)!==JSON.stringify(z.current);(S||M)&&F&&setTimeout(()=>{H()},100),O.current=t.length,z.current=t},[t,F,H]),w.useEffect(()=>{const S=v.current;if(S)return S.addEventListener("scroll",j),()=>{S.removeEventListener("scroll",j)}},[j]),w.useEffect(()=>{v.current&&k(y())},[y]),w.useEffect(()=>{let S;return o==="translating"?S=setInterval(()=>{D(M=>!M)},1e3):D(!0),()=>{S&&clearInterval(S)}},[o]),c.jsxs("div",{className:"w-full flex flex-col h-full",children:[c.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?c.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[s&&c.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-6 py-3 h-10 ",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[c.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})]}):c.jsx("div",{className:"w-full flex items-center justify-center",children:r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-3 py-3 h-10 ",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[c.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})})}),c.jsx("div",{ref:v,className:"flex-grow overflow-y-auto w-full h-[calc(100%-48px)] max-h-[calc(100vh-68px)] sm:max-h-[calc(100vh-200px)]",children:c.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[c.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${n?"border-b border-border":""}`,id:"transcript-container",children:t.map(S=>c.jsx(xA,{...S},S.id))}),c.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:n&&c.jsx(OQ,{...n})})]})})]})},Oh=({rate:e})=>{const t=w.useMemo(()=>{if(e<=20)return c.jsx(W,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return c.jsx(W,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return c.jsx(W,{name:"NeutralFaceIcon",width:32,height:32});if(e>60&&e<=80)return c.jsx(W,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return c.jsx(W,{name:"SmilingWithHearts",width:32,height:32})},[e]),A=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return c.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[c.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),c.jsx("div",{style:{left:A,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:t})]})},bg={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},zh=({label:e,checked:t,onClick:A,id:n})=>c.jsxs("div",{onClick:()=>A(n),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[c.jsx("div",{className:$("flex items-center justify-center rounded-full w-5 h-5",t?"bg-success-hover":"bg-background border-[7px] border-border"),children:t&&c.jsx(W,{name:"Check",width:16,height:16,color:bg.light["primary-foreground"],"data-testid":"check-icon"})}),c.jsx("span",{className:$("text-sm font-normal",t?"line-through text-muted-foreground":"text-foreground"),children:e})]});var Lr="Collapsible",[Hh]=ze(Lr),[Vh,Ys]=Hh(Lr),Dg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,open:n,defaultOpen:r,disabled:o,onOpenChange:s,...i}=e,[a,u]=Tt({prop:n,defaultProp:r??!1,onChange:s,caller:Lr});return c.jsx(Vh,{scope:A,disabled:o,contentId:ot(),open:a,onOpenToggle:C.useCallback(()=>u(l=>!l),[u]),children:c.jsx(se.div,{"data-state":Us(a),"data-disabled":o?"":void 0,...i,ref:t})})});Dg.displayName=Lr;var yg="CollapsibleTrigger",Fg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,...n}=e,r=Ys(yg,A);return c.jsx(se.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Us(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:J(e.onClick,r.onOpenToggle)})});Fg.displayName=yg;var Ws="CollapsibleContent",Pg=C.forwardRef((e,t)=>{const{forceMount:A,...n}=e,r=Ys(Ws,e.__scopeCollapsible);return c.jsx(He,{present:A||r.open,children:({present:o})=>c.jsx(Gh,{...n,ref:t,present:o})})});Pg.displayName=Ws;var Gh=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,present:n,children:r,...o}=e,s=Ys(Ws,A),[i,a]=C.useState(n),u=C.useRef(null),l=Ce(t,u),g=C.useRef(0),d=g.current,f=C.useRef(0),E=f.current,B=s.open||i,h=C.useRef(B),Q=C.useRef(void 0);return C.useEffect(()=>{const m=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(m)},[]),Ze(()=>{const m=u.current;if(m){Q.current=Q.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();g.current=x.height,f.current=x.width,h.current||(m.style.transitionDuration=Q.current.transitionDuration,m.style.animationName=Q.current.animationName),a(n)}},[s.open,n]),c.jsx(se.div,{"data-state":Us(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!B,...o,ref:l,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:B&&r})});function Us(e){return e?"open":"closed"}var Yh=Dg;function Zo({...e}){return c.jsx(Yh,{"data-slot":"collapsible",...e})}function qo({...e}){return c.jsx(Fg,{"data-slot":"collapsible-trigger",...e})}function Ko({...e}){return c.jsx(Pg,{"data-slot":"collapsible-content",...e})}const Ng=({id:e,title:t="GenAI Support",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Mg=({id:e,title:t="Great Job!",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"ClappingHands",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Tg=({id:e,title:t="Legal Thread",message:A,timestamp:n,showHelperButtons:r=!1,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i="Ask GenAI",askManagerTitle:a="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:A,timestamp:n,showHelperButtons:r,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i,askManagerTitle:a}),jg=({title:e="Task Done",message:t,timestamp:A,id:n,taskCount:r,completedTaskCount:o,askGenAITitle:s="Ask GenAI",askManagerTitle:i="Ask Manager"})=>{const a=w.useMemo(()=>r<10?`0${r}`:r,[r]),u=w.useMemo(()=>o<10?`0${o}`:o,[o]);return c.jsx(kt,{id:n,icon:c.jsx(W,{name:"Done",width:24,height:24}),title:e,message:t,timestamp:A,tag:r!==0&&c.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${u} / ${a}`}),askGenAITitle:s,askManagerTitle:i})},kg=({id:e,title:t="Unhappy Customer",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"PoutingFace",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Rg=({id:e,title:t,message:A,timestamp:n,icon:r,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:i,scenarioId:a,feddbackTitle:u,feedbackHelpfullButtonTitle:l,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,showThankYou:Q,sendFeedback:m,matchId:x,feedbackLoading:b})=>c.jsx(kt,{id:e,title:t,message:A,timestamp:n,icon:r,scenarioId:a,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:i,feddbackTitle:u,feedbackHelpfullButtonTitle:l,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,matchId:x,sendFeedback:m,feedbackLoading:b,showThankYou:Q});/**
21
+ `,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},Q={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},m={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},x=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],b=String.fromCharCode,I={},v=I.hasOwnProperty,p=function(N,G){return v.call(N,G)},D=function(N,G){for(var _=-1,ne=N.length;++_<ne;)if(N[_]==G)return!0;return!1},F=function(N,G){if(!N)return G;var _={},ne;for(ne in G)_[ne]=p(N,ne)?N[ne]:G[ne];return _},k=function(N,G){var _="";return N>=55296&&N<=57343||N>1114111?(G&&P("character reference outside the permissible Unicode range"),"�"):p(m,N)?(G&&P("disallowed character reference"),m[N]):(G&&D(x,N)&&P("disallowed character reference"),N>65535&&(N-=65536,_+=b(N>>>10&1023|55296),N=56320|N&1023),_+=b(N),_)},O=function(N){return"&#x"+N.toString(16).toUpperCase()+";"},z=function(N){return"&#"+N+";"},P=function(N){throw Error("Parse error: "+N)},y=function(N,G){G=F(G,y.options);var _=G.strict;_&&E.test(N)&&P("forbidden code point");var ne=G.encodeEverything,L=G.useNamedReferences,T=G.allowUnsafeSymbols,Y=G.decimal?z:O,V=function(R){return Y(R.charCodeAt(0))};return ne?(N=N.replace(i,function(R){return L&&p(l,R)?"&"+l[R]+";":V(R)}),L&&(N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),L&&(N=N.replace(u,function(R){return"&"+l[R]+";"}))):L?(T||(N=N.replace(g,function(R){return"&"+l[R]+";"})),N=N.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),N=N.replace(u,function(R){return"&"+l[R]+";"})):T||(N=N.replace(g,V)),N.replace(s,function(R){var U=R.charCodeAt(0),X=R.charCodeAt(1),Ae=(U-55296)*1024+X-56320+65536;return Y(Ae)}).replace(a,V)};y.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var j=function(N,G){G=F(G,j.options);var _=G.strict;return _&&f.test(N)&&P("malformed character reference"),N.replace(B,function(ne,L,T,Y,V,R,U,X,Ae){var le,ge,ae,K,Pe,je;return L?(Pe=L,h[Pe]):T?(Pe=T,je=Y,je&&G.isAttributeValue?(_&&je=="="&&P("`&` did not start a character reference"),ne):(_&&P("named character reference was not terminated by a semicolon"),Q[Pe]+(je||""))):V?(ae=V,ge=R,_&&!ge&&P("character reference was not terminated by a semicolon"),le=parseInt(ae,10),k(le,_)):U?(K=U,ge=X,_&&!ge&&P("character reference was not terminated by a semicolon"),le=parseInt(K,16),k(le,_)):(_&&P("named character reference was not terminated by a semicolon"),ne)})};j.options={isAttributeValue:!1,strict:!1};var H=function(N){return N.replace(g,function(G){return d[G]})},S={version:"1.2.0",encode:y,decode:j,escape:H,unescape:j};if(n&&!n.nodeType)if(r)r.exports=S;else for(var M in S)p(S,M)&&(n[M]=S[M]);else A.he=S})(kQ)})(ZA,ZA.exports)),ZA.exports}var LQ=RQ();const SQ=Fc(LQ),Hc=e=>{const[t,A]=w.useState(typeof window<"u"?window.innerWidth<=e:!1);return w.useEffect(()=>{const n=()=>A(window.innerWidth<=e);return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),t},kt=w.forwardRef(({title:e,message:t,timestamp:A,icon:n,tag:r,showHelperButtons:o,onClickAskGenAI:s,onClickAskManager:i,askGenAITitle:a="Ask GenAI",askManagerTitle:u="Ask Manager",isStacked:l,className:g,showFeedbackArea:d,scenarioId:f,feedbackSubmitButtonHoverTitle:E,feddbackTitle:B,feedbackHelpfullButtonTitle:h,feedbackNotHelpfullButtonTitle:Q,feedbackCommentPlaceholder:m,feedbackSubmitText:x,feedbackThankYouMessage:b,feedbackCancelButtonTitle:I,sendFeedback:v,matchId:p,feedbackLoading:D,showThankYou:F},k)=>{const O=SQ.decode(t??""),[z,P]=w.useState(1),[y,j]=w.useState(!1),[H,S]=w.useState(""),M=Hc(1050),N=()=>{j(L=>!L)},G=L=>{P(L)},_=({selectedFeedback:L,comment:T})=>{v==null||v({selectedFeedback:L??0,comment:T,scenarioId:f??"",matchId:p??""})},ne=()=>{P(1),S(""),j(!1)};return c.jsxs("div",{ref:k,className:$("flex flex-col w-full h-full min-h-0 rounded-xl md:rounded-3xl bg-primary-foreground md:bg-background gap-2 p-4 overflow-y-auto overflow-x-hidden",l?"shadow-[0_4px_6px_1px_rgba(0,0,0,0.25)] ":null,g),children:[c.jsxs("div",{className:"flex w-full flex-row items-center justify-between gap-6",children:[c.jsxs("div",{className:"flex flex-row",children:[n,c.jsx("div",{className:"ml-2 mr-1 text-base font-medium leading-6 text-foreground",children:e}),typeof r<"u"&&r]}),c.jsx("div",{className:"bg-foreground-08 rounded-md p-1 flex items-center justify-center text-[11px] font-normal text-card-foreground",children:A})]}),c.jsx("div",{className:"text-sm md:text-base w-full font-normal text-foreground",children:c.jsxs("div",{className:"flex flex-row items-center justify-between gap-2",children:[c.jsx("div",{className:"flex-1 min-w-0 whitespace-pre-wrap break-words",children:jQ(O)}),d&&!F&&c.jsxs("button",{onClick:N,className:"relative group",title:E,style:{cursor:"pointer"},children:[c.jsx(W,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),c.jsx("div",{className:"absolute top-1/2 right-full transform -translate-y-1/2 mr-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:E})]})]})}),y&&!F&&c.jsxs("div",{className:"mt-4 space-y-4",children:[c.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),c.jsxs("div",{className:`flex flex-wrap gap-2 ${M?"flex-col":"flex-row"}`,children:[c.jsxs("button",{onClick:()=>G(1),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[c.jsx(W,{name:"LikeHand",width:16,height:16,style:{color:z===1?"#22c55e":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:h})]}),c.jsxs("button",{onClick:()=>G(0),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",z===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[c.jsx(W,{name:"DisLikeHand",width:16,height:16,style:{color:z===0?"#ef4444":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:Q})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:B}),c.jsx("textarea",{value:H,maxLength:500,onChange:L=>S(L.target.value),placeholder:m,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),c.jsxs("div",{className:"flex justify-end",children:[c.jsx(Qe,{onClick:ne,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:I})}),c.jsx(Qe,{onClick:()=>_({selectedFeedback:z??0,comment:H}),isLoading:D,disabled:D,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:x})})]})]})]}),F&&c.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[c.jsx("span",{className:"text-sm font-medium",children:b}),c.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:c.jsx(W,{name:"Check",width:12,height:12,style:{color:"white"}})})]}),o&&c.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[c.jsx(Qe,{onClick:s,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(W,{name:"Sparkles",width:16,height:16,className:"text-background"}),a]})}),c.jsx(Qe,{onClick:i,size:"sm",className:"bg-primary gap-2",children:c.jsxs("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground",children:[c.jsx(W,{name:"HandRaised",width:16,height:16,className:"text-background"}),u]})})]})]})});kt.displayName="MomentItem";const xA=({sender:e,message:t,timestamp:A,icon:n,type:r,onClickAskAI:o,onClickAskManager:s,managerReplyTitle:i,showAskManagerButton:a,showAskAIButton:u,managerReplyMessage:l,additionalContent:g,onClickShowOriginalMessage:d,originalMessage:f,onResend:E})=>{const B=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative flex flex-col gap-2 items-start rounded-2xl rounded-tr-none bg-secondary max-w-full",children:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),f&&f!==""&&c.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2 ",onClick:d,style:{color:"#3BA7FF"},children:f}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),h=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx(qt,{fullName:e}),c.jsxs("div",{className:"px-4 py-3 relative w-fit min-w-[128px] flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-client-chat-background max-w-full",children:[c.jsx("div",{className:"text-sm font-normal text-client-chat-foreground",children:t}),c.jsxs("div",{className:"flex flex-row gap-2",children:[u&&c.jsx(Qe,{name:"ai-helper",role:"button",onClick:o,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(W,{name:"Sparkles",width:24,height:24,className:"text-client-chat-link"})}),a&&c.jsx(Qe,{name:"manager-helper",role:"button",onClick:s,className:"bg-foreground-08 p-0 w-8 h-8 rounded-full",children:c.jsx(W,{name:"ChatBubble",width:24,height:24,className:"text-client-chat-link"})})]}),f&&f!==""&&c.jsx("span",{className:"text-xs font-normal cursor-pointer hover:underline hover:text-primary-brew hover:underline-offset-2",onClick:d,style:{color:"#3BA7FF"},children:f}),c.jsx("div",{className:"text-xs w-full font-normal text-client-chat-foreground text-right",children:A}),n&&c.jsx("div",{className:"border w-10 h-8 border-border flex items-center justify-center rounded-full bg-background absolute -bottom-[14px] ",children:n})]})]}),Q=()=>c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full justify-end",children:[c.jsxs("div",{className:"rounded-2xl w-fit rounded-tr-none min-w-[128px] max-w-full border border-border",children:[c.jsxs("div",{className:"p-3 relative flex w-full flex-col gap-3 items-start bg-transparent",children:[c.jsxs("div",{className:"flex flex-row items-center justify-between w-full gap-3 text-foreground",children:[i,c.jsx("div",{className:"w-fit bg-destructive rounded-md p-1 text-[15px] text-primary-foreground font-normal",children:A})]}),c.jsx("div",{className:"text-sm font-medium text-foreground",children:l})]}),c.jsxs("div",{className:"rounded-br-2xl w-full rounded-bl-2xl bg-secondary flex flex-col items-start justify-center p-3 gap-2",children:[c.jsx("div",{className:"text-sm font-medium text-foreground",children:t}),c.jsx("div",{className:"text-xs w-full font-normal text-muted-foreground text-right",children:A})]})]}),c.jsx(qt,{type:"secondary",fullName:e})]}),m=()=>{const I=async()=>{await sE(t)};return c.jsxs("div",{className:"flex flex-row gap-2 items-start w-full",children:[c.jsx("div",{className:"w-10 h-10 flex rounded-full items-center justify-center bg-warning-background",children:c.jsx(W,{name:"Sparkles",width:24,height:24,className:"text-secondary-brew"})}),c.jsxs("div",{className:"px-4 py-3 min-w-[128px] relative w-full flex-1 flex flex-col gap-2 items-start rounded-2xl rounded-tl-none bg-warning-background max-w-full",children:[c.jsx("div",{className:"text-sm font-medium text-secondary-brew-2",children:t}),c.jsxs("div",{className:"flex flex-row items-center justify-between w-full",children:[c.jsxs("div",{className:"flex flex-row items-start justify-center gap-1",children:[E&&c.jsx(Qe,{"aria-label":"Resend",className:"w-8 h-8 bg-transparent p-0 group",onClick:E,children:c.jsx(W,{name:"ArrowPathRoundedSquare",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})}),c.jsx(Qe,{"aria-label":"Copy",className:"w-8 h-8 bg-transparent p-0 group",onClick:I,children:c.jsx(W,{name:"Square2Stack",width:24,height:24,className:"text-secondary-brew group-hover:text-primary-brew"})})]}),c.jsx("div",{className:"text-xs font-normal text-secondary-brew-2",children:A})]})]})]})},x=()=>c.jsxs("div",{className:"bg-background border rounded-tl-2xl rounded-tr-3xl rounded-bl-2xl p-3 gap-3 flex flex-col",children:[c.jsxs("div",{className:"text-foreground text-base font-medium flex items-center justify-between",children:[c.jsxs("div",{className:"flex gap-2",children:[n," ",t]}),c.jsx("span",{className:"bg-destructive text-primary-foreground rounded px-1 py-0.5 text-sm font-normal",children:A})]}),c.jsx("div",{className:"text-popover-foreground",children:g})]});return{MESSAGE:B(),REPLY:h(),MANAGER_REPLY:Q(),AI_REPLY:m(),INFO_MESSAGE:x()}[r]},OQ=({icon:e,title:t,summary:A})=>c.jsxs("div",{className:"bg-warning-background rounded-2xl pt-4 pb-6 px-6 flex flex-col gap-1 items-start w-full",children:[c.jsxs("div",{className:"flex flex-row gap-2 items-center w-full",children:[e&&c.jsx("div",{className:"w-10 h-10 text-primary-brew bg-client-chat-background rounded-full flex items-center justify-center flex-shrink-0",children:e}),c.jsx("div",{className:"font-medium text-base text-secondary-brew-2",children:t})]}),c.jsx("div",{className:"text-sm font-normal text-secondary-brew-2",children:A})]}),xt=({options:e,value:t,onValueChange:A,placeholder:n="Seçiniz...",disabled:r=!1,className:o,searchPlaceholder:s="Ara...",emptyMessage:i="Sonuç bulunamadı",label:a})=>{const[u,l]=w.useState(!1),[g,d]=w.useState(""),[f,E]=w.useState(e.find(I=>I.value===t)),B=w.useRef(null),h=w.useRef(null);w.useEffect(()=>{const I=v=>{B.current&&!B.current.contains(v.target)&&(l(!1),d(""))};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]),w.useEffect(()=>{const I=e.find(v=>v.value===t);E(I)},[t,e]);const Q=e.filter(I=>I.label.toLowerCase().includes(g.toLowerCase())&&!I.disabled),m=I=>{E(I),A==null||A(I),l(!1),d("")},x=()=>{r||(l(!u),u||setTimeout(()=>{var I;return(I=h.current)==null?void 0:I.focus()},100))},b=I=>{I.key==="Escape"&&(l(!1),d(""))};return c.jsxs("div",{className:$("relative",o),ref:B,children:[a&&c.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:a}),c.jsxs("div",{className:"relative",children:[c.jsxs(En,{type:"button",variant:"outline",className:$("w-full justify-between",!f&&"text-muted-foreground"),onClick:x,disabled:r,children:[c.jsx("span",{className:"truncate",children:f?f.label:n}),c.jsx(W,{name:"ChevronDown",className:$("h-4 w-4 transition-transform duration-200 ml-2",u&&"rotate-180")})]}),u&&c.jsxs("div",{className:"absolute z-50 w-full top-full mt-1 bg-background border border-border rounded-md shadow-lg transform-none",children:[c.jsx("div",{className:"p-2 border-b border-border",children:c.jsx(Ul,{ref:h,placeholder:s,value:g,onChange:I=>d(I.target.value),onKeyDown:b,className:"h-8"})}),c.jsx("div",{className:"max-h-60 overflow-auto",children:Q.length>0?Q.map(I=>c.jsx("button",{type:"button",className:$("w-full px-3 py-2 text-left text-sm hover:bg-accent hover:text-accent-foreground transition-colors",(f==null?void 0:f.value)===I.value&&"bg-accent text-accent-foreground"),onClick:()=>m(I),children:I.label},I.value)):c.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:i})})]})]})]})};function zQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e);C.useEffect(()=>{const n=r=>{r.key==="Escape"&&A(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[A,t])}var HQ="DismissableLayer",Vo="dismissableLayer.update",VQ="dismissableLayer.pointerDownOutside",GQ="dismissableLayer.focusOutside",Pa,Vc=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dr=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:A=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:s,onDismiss:i,...a}=e,u=C.useContext(Vc),[l,g]=C.useState(null),d=(l==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=C.useState({}),E=Ce(t,p=>g(p)),B=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),Q=B.indexOf(h),m=l?B.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=m>=Q,I=UQ(p=>{const D=p.target,F=[...u.branches].some(k=>k.contains(D));!b||F||(r==null||r(p),s==null||s(p),p.defaultPrevented||i==null||i())},d),v=XQ(p=>{const D=p.target;[...u.branches].some(k=>k.contains(D))||(o==null||o(p),s==null||s(p),p.defaultPrevented||i==null||i())},d);return zQ(p=>{m===u.layers.size-1&&(n==null||n(p),!p.defaultPrevented&&i&&(p.preventDefault(),i()))},d),C.useEffect(()=>{if(l)return A&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Pa=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),Na(),()=>{A&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Pa)}},[l,d,A,u]),C.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),Na())},[l,u]),C.useEffect(()=>{const p=()=>f({});return document.addEventListener(Vo,p),()=>document.removeEventListener(Vo,p)},[]),c.jsx(se.div,{...a,ref:E,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,v.onFocusCapture),onBlurCapture:J(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,I.onPointerDownCapture)})});Dr.displayName=HQ;var YQ="DismissableLayerBranch",WQ=C.forwardRef((e,t)=>{const A=C.useContext(Vc),n=C.useRef(null),r=Ce(t,n);return C.useEffect(()=>{const o=n.current;if(o)return A.branches.add(o),()=>{A.branches.delete(o)}},[A.branches]),c.jsx(se.div,{...e,ref:r})});WQ.displayName=YQ;function UQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e),n=C.useRef(!1),r=C.useRef(()=>{});return C.useEffect(()=>{const o=i=>{if(i.target&&!n.current){let a=function(){Gc(VQ,A,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,A]),{onPointerDownCapture:()=>n.current=!0}}function XQ(e,t=globalThis==null?void 0:globalThis.document){const A=at(e),n=C.useRef(!1);return C.useEffect(()=>{const r=o=>{o.target&&!n.current&&Gc(GQ,A,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,A]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Na(){const e=new CustomEvent(Vo);document.dispatchEvent(e)}function Gc(e,t,A,{discrete:n}){const r=A.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:A});t&&r.addEventListener(e,t,{once:!0}),n?Zl(r,o):r.dispatchEvent(o)}const ZQ=["top","right","bottom","left"],Ft=Math.min,Se=Math.max,ir=Math.round,Hn=Math.floor,st=e=>({x:e,y:e}),qQ={left:"right",right:"left",bottom:"top",top:"bottom"},KQ={start:"end",end:"start"};function Go(e,t,A){return Se(e,Ft(t,A))}function ft(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function MA(e){return e.split("-")[1]}function js(e){return e==="x"?"y":"x"}function ks(e){return e==="y"?"height":"width"}const JQ=new Set(["top","bottom"]);function rt(e){return JQ.has(Bt(e))?"y":"x"}function Rs(e){return js(rt(e))}function _Q(e,t,A){A===void 0&&(A=!1);const n=MA(e),r=Rs(e),o=ks(r);let s=r==="x"?n===(A?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ar(s)),[s,ar(s)]}function $Q(e){const t=ar(e);return[Yo(e),t,Yo(t)]}function Yo(e){return e.replace(/start|end/g,t=>KQ[t])}const Ma=["left","right"],Ta=["right","left"],e2=["top","bottom"],t2=["bottom","top"];function A2(e,t,A){switch(e){case"top":case"bottom":return A?t?Ta:Ma:t?Ma:Ta;case"left":case"right":return t?e2:t2;default:return[]}}function n2(e,t,A,n){const r=MA(e);let o=A2(Bt(e),A==="start",n);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(Yo)))),o}function ar(e){return e.replace(/left|right|bottom|top/g,t=>qQ[t])}function r2(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yc(e){return typeof e!="number"?r2(e):{top:e,right:e,bottom:e,left:e}}function ur(e){const{x:t,y:A,width:n,height:r}=e;return{width:n,height:r,top:A,left:t,right:t+n,bottom:A+r,x:t,y:A}}function ja(e,t,A){let{reference:n,floating:r}=e;const o=rt(t),s=Rs(t),i=ks(s),a=Bt(t),u=o==="y",l=n.x+n.width/2-r.width/2,g=n.y+n.height/2-r.height/2,d=n[i]/2-r[i]/2;let f;switch(a){case"top":f={x:l,y:n.y-r.height};break;case"bottom":f={x:l,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:g};break;case"left":f={x:n.x-r.width,y:g};break;default:f={x:n.x,y:n.y}}switch(MA(t)){case"start":f[s]-=d*(A&&u?-1:1);break;case"end":f[s]+=d*(A&&u?-1:1);break}return f}const o2=async(e,t,A)=>{const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s}=A,i=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:l,y:g}=ja(u,n,a),d=n,f={},E=0;for(let B=0;B<i.length;B++){const{name:h,fn:Q}=i[B],{x:m,y:x,data:b,reset:I}=await Q({x:l,y:g,initialPlacement:n,placement:d,strategy:r,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});l=m??l,g=x??g,f={...f,[h]:{...f[h],...b}},I&&E<=50&&(E++,typeof I=="object"&&(I.placement&&(d=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:l,y:g}=ja(u,d,a)),B=-1)}return{x:l,y:g,placement:d,strategy:r,middlewareData:f}};async function nn(e,t){var A;t===void 0&&(t={});const{x:n,y:r,platform:o,rects:s,elements:i,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:g="floating",altBoundary:d=!1,padding:f=0}=ft(t,e),E=Yc(f),h=i[d?g==="floating"?"reference":"floating":g],Q=ur(await o.getClippingRect({element:(A=await(o.isElement==null?void 0:o.isElement(h)))==null||A?h:h.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:u,rootBoundary:l,strategy:a})),m=g==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),b=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},I=ur(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:m,offsetParent:x,strategy:a}):m);return{top:(Q.top-I.top+E.top)/b.y,bottom:(I.bottom-Q.bottom+E.bottom)/b.y,left:(Q.left-I.left+E.left)/b.x,right:(I.right-Q.right+E.right)/b.x}}const s2=e=>({name:"arrow",options:e,async fn(t){const{x:A,y:n,placement:r,rects:o,platform:s,elements:i,middlewareData:a}=t,{element:u,padding:l=0}=ft(e,t)||{};if(u==null)return{};const g=Yc(l),d={x:A,y:n},f=Rs(r),E=ks(f),B=await s.getDimensions(u),h=f==="y",Q=h?"top":"left",m=h?"bottom":"right",x=h?"clientHeight":"clientWidth",b=o.reference[E]+o.reference[f]-d[f]-o.floating[E],I=d[f]-o.reference[f],v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let p=v?v[x]:0;(!p||!await(s.isElement==null?void 0:s.isElement(v)))&&(p=i.floating[x]||o.floating[E]);const D=b/2-I/2,F=p/2-B[E]/2-1,k=Ft(g[Q],F),O=Ft(g[m],F),z=k,P=p-B[E]-O,y=p/2-B[E]/2+D,j=Go(z,y,P),H=!a.arrow&&MA(r)!=null&&y!==j&&o.reference[E]/2-(y<z?k:O)-B[E]/2<0,S=H?y<z?y-z:y-P:0;return{[f]:d[f]+S,data:{[f]:j,centerOffset:y-j-S,...H&&{alignmentOffset:S}},reset:H}}}),i2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var A,n;const{placement:r,middlewareData:o,rects:s,initialPlacement:i,platform:a,elements:u}=t,{mainAxis:l=!0,crossAxis:g=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:B=!0,...h}=ft(e,t);if((A=o.arrow)!=null&&A.alignmentOffset)return{};const Q=Bt(r),m=rt(i),x=Bt(i)===i,b=await(a.isRTL==null?void 0:a.isRTL(u.floating)),I=d||(x||!B?[ar(i)]:$Q(i)),v=E!=="none";!d&&v&&I.push(...n2(i,B,E,b));const p=[i,...I],D=await nn(t,h),F=[];let k=((n=o.flip)==null?void 0:n.overflows)||[];if(l&&F.push(D[Q]),g){const y=_Q(r,s,b);F.push(D[y[0]],D[y[1]])}if(k=[...k,{placement:r,overflows:F}],!F.every(y=>y<=0)){var O,z;const y=(((O=o.flip)==null?void 0:O.index)||0)+1,j=p[y];if(j&&(!(g==="alignment"?m!==rt(j):!1)||k.every(M=>rt(M.placement)===m?M.overflows[0]>0:!0)))return{data:{index:y,overflows:k},reset:{placement:j}};let H=(z=k.filter(S=>S.overflows[0]<=0).sort((S,M)=>S.overflows[1]-M.overflows[1])[0])==null?void 0:z.placement;if(!H)switch(f){case"bestFit":{var P;const S=(P=k.filter(M=>{if(v){const N=rt(M.placement);return N===m||N==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(N=>N>0).reduce((N,G)=>N+G,0)]).sort((M,N)=>M[1]-N[1])[0])==null?void 0:P[0];S&&(H=S);break}case"initialPlacement":H=i;break}if(r!==H)return{reset:{placement:H}}}return{}}}};function ka(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ra(e){return ZQ.some(t=>e[t]>=0)}const a2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:A}=t,{strategy:n="referenceHidden",...r}=ft(e,t);switch(n){case"referenceHidden":{const o=await nn(t,{...r,elementContext:"reference"}),s=ka(o,A.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ra(s)}}}case"escaped":{const o=await nn(t,{...r,altBoundary:!0}),s=ka(o,A.floating);return{data:{escapedOffsets:s,escaped:Ra(s)}}}default:return{}}}}},Wc=new Set(["left","top"]);async function u2(e,t){const{placement:A,platform:n,elements:r}=e,o=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Bt(A),i=MA(A),a=rt(A)==="y",u=Wc.has(s)?-1:1,l=o&&a?-1:1,g=ft(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return i&&typeof E=="number"&&(f=i==="end"?E*-1:E),a?{x:f*l,y:d*u}:{x:d*u,y:f*l}}const l2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var A,n;const{x:r,y:o,placement:s,middlewareData:i}=t,a=await u2(t,e);return s===((A=i.offset)==null?void 0:A.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:r+a.x,y:o+a.y,data:{...a,placement:s}}}}},c2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:A,y:n,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:i={fn:h=>{let{x:Q,y:m}=h;return{x:Q,y:m}}},...a}=ft(e,t),u={x:A,y:n},l=await nn(t,a),g=rt(Bt(r)),d=js(g);let f=u[d],E=u[g];if(o){const h=d==="y"?"top":"left",Q=d==="y"?"bottom":"right",m=f+l[h],x=f-l[Q];f=Go(m,f,x)}if(s){const h=g==="y"?"top":"left",Q=g==="y"?"bottom":"right",m=E+l[h],x=E-l[Q];E=Go(m,E,x)}const B=i.fn({...t,[d]:f,[g]:E});return{...B,data:{x:B.x-A,y:B.y-n,enabled:{[d]:o,[g]:s}}}}}},g2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:A,y:n,placement:r,rects:o,middlewareData:s}=t,{offset:i=0,mainAxis:a=!0,crossAxis:u=!0}=ft(e,t),l={x:A,y:n},g=rt(r),d=js(g);let f=l[d],E=l[g];const B=ft(i,t),h=typeof B=="number"?{mainAxis:B,crossAxis:0}:{mainAxis:0,crossAxis:0,...B};if(a){const x=d==="y"?"height":"width",b=o.reference[d]-o.floating[x]+h.mainAxis,I=o.reference[d]+o.reference[x]-h.mainAxis;f<b?f=b:f>I&&(f=I)}if(u){var Q,m;const x=d==="y"?"width":"height",b=Wc.has(Bt(r)),I=o.reference[g]-o.floating[x]+(b&&((Q=s.offset)==null?void 0:Q[g])||0)+(b?0:h.crossAxis),v=o.reference[g]+o.reference[x]+(b?0:((m=s.offset)==null?void 0:m[g])||0)-(b?h.crossAxis:0);E<I?E=I:E>v&&(E=v)}return{[d]:f,[g]:E}}}},d2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var A,n;const{placement:r,rects:o,platform:s,elements:i}=t,{apply:a=()=>{},...u}=ft(e,t),l=await nn(t,u),g=Bt(r),d=MA(r),f=rt(r)==="y",{width:E,height:B}=o.floating;let h,Q;g==="top"||g==="bottom"?(h=g,Q=d===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(Q=g,h=d==="end"?"top":"bottom");const m=B-l.top-l.bottom,x=E-l.left-l.right,b=Ft(B-l[h],m),I=Ft(E-l[Q],x),v=!t.middlewareData.shift;let p=b,D=I;if((A=t.middlewareData.shift)!=null&&A.enabled.x&&(D=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(p=m),v&&!d){const k=Se(l.left,0),O=Se(l.right,0),z=Se(l.top,0),P=Se(l.bottom,0);f?D=E-2*(k!==0||O!==0?k+O:Se(l.left,l.right)):p=B-2*(z!==0||P!==0?z+P:Se(l.top,l.bottom))}await a({...t,availableWidth:D,availableHeight:p});const F=await s.getDimensions(i.floating);return E!==F.width||B!==F.height?{reset:{rects:!0}}:{}}}};function yr(){return typeof window<"u"}function TA(e){return Uc(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(Uc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Uc(e){return yr()?e instanceof Node||e instanceof Oe(e).Node:!1}function $e(e){return yr()?e instanceof Element||e instanceof Oe(e).Element:!1}function ut(e){return yr()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function La(e){return!yr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}const C2=new Set(["inline","contents"]);function hn(e){const{overflow:t,overflowX:A,overflowY:n,display:r}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+A)&&!C2.has(r)}const f2=new Set(["table","td","th"]);function B2(e){return f2.has(TA(e))}const E2=[":popover-open",":modal"];function Fr(e){return E2.some(t=>{try{return e.matches(t)}catch{return!1}})}const I2=["transform","translate","scale","rotate","perspective"],Q2=["transform","translate","scale","rotate","perspective","filter"],h2=["paint","layout","strict","content"];function Ls(e){const t=Ss(),A=$e(e)?et(e):e;return I2.some(n=>A[n]?A[n]!=="none":!1)||(A.containerType?A.containerType!=="normal":!1)||!t&&(A.backdropFilter?A.backdropFilter!=="none":!1)||!t&&(A.filter?A.filter!=="none":!1)||Q2.some(n=>(A.willChange||"").includes(n))||h2.some(n=>(A.contain||"").includes(n))}function m2(e){let t=Pt(e);for(;ut(t)&&!bA(t);){if(Ls(t))return t;if(Fr(t))return null;t=Pt(t)}return null}function Ss(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const p2=new Set(["html","body","#document"]);function bA(e){return p2.has(TA(e))}function et(e){return Oe(e).getComputedStyle(e)}function Pr(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if(TA(e)==="html")return e;const t=e.assignedSlot||e.parentNode||La(e)&&e.host||lt(e);return La(t)?t.host:t}function Xc(e){const t=Pt(e);return bA(t)?e.ownerDocument?e.ownerDocument.body:e.body:ut(t)&&hn(t)?t:Xc(t)}function rn(e,t,A){var n;t===void 0&&(t=[]),A===void 0&&(A=!0);const r=Xc(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Oe(r);if(o){const i=Wo(s);return t.concat(s,s.visualViewport||[],hn(r)?r:[],i&&A?rn(i):[])}return t.concat(r,rn(r,[],A))}function Wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zc(e){const t=et(e);let A=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ut(e),o=r?e.offsetWidth:A,s=r?e.offsetHeight:n,i=ir(A)!==o||ir(n)!==s;return i&&(A=o,n=s),{width:A,height:n,$:i}}function Os(e){return $e(e)?e:e.contextElement}function hA(e){const t=Os(e);if(!ut(t))return st(1);const A=t.getBoundingClientRect(),{width:n,height:r,$:o}=Zc(t);let s=(o?ir(A.width):A.width)/n,i=(o?ir(A.height):A.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const v2=st(0);function qc(e){const t=Oe(e);return!Ss()||!t.visualViewport?v2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w2(e,t,A){return t===void 0&&(t=!1),!A||t&&A!==Oe(e)?!1:t}function $t(e,t,A,n){t===void 0&&(t=!1),A===void 0&&(A=!1);const r=e.getBoundingClientRect(),o=Os(e);let s=st(1);t&&(n?$e(n)&&(s=hA(n)):s=hA(e));const i=w2(o,A,n)?qc(o):st(0);let a=(r.left+i.x)/s.x,u=(r.top+i.y)/s.y,l=r.width/s.x,g=r.height/s.y;if(o){const d=Oe(o),f=n&&$e(n)?Oe(n):n;let E=d,B=Wo(E);for(;B&&n&&f!==E;){const h=hA(B),Q=B.getBoundingClientRect(),m=et(B),x=Q.left+(B.clientLeft+parseFloat(m.paddingLeft))*h.x,b=Q.top+(B.clientTop+parseFloat(m.paddingTop))*h.y;a*=h.x,u*=h.y,l*=h.x,g*=h.y,a+=x,u+=b,E=Oe(B),B=Wo(E)}}return ur({width:l,height:g,x:a,y:u})}function Nr(e,t){const A=Pr(e).scrollLeft;return t?t.left+A:$t(lt(e)).left+A}function Kc(e,t){const A=e.getBoundingClientRect(),n=A.left+t.scrollLeft-Nr(e,A),r=A.top+t.scrollTop;return{x:n,y:r}}function x2(e){let{elements:t,rect:A,offsetParent:n,strategy:r}=e;const o=r==="fixed",s=lt(n),i=t?Fr(t.floating):!1;if(n===s||i&&o)return A;let a={scrollLeft:0,scrollTop:0},u=st(1);const l=st(0),g=ut(n);if((g||!g&&!o)&&((TA(n)!=="body"||hn(s))&&(a=Pr(n)),ut(n))){const f=$t(n);u=hA(n),l.x=f.x+n.clientLeft,l.y=f.y+n.clientTop}const d=s&&!g&&!o?Kc(s,a):st(0);return{width:A.width*u.x,height:A.height*u.y,x:A.x*u.x-a.scrollLeft*u.x+l.x+d.x,y:A.y*u.y-a.scrollTop*u.y+l.y+d.y}}function b2(e){return Array.from(e.getClientRects())}function D2(e){const t=lt(e),A=Pr(e),n=e.ownerDocument.body,r=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-A.scrollLeft+Nr(e);const i=-A.scrollTop;return et(n).direction==="rtl"&&(s+=Se(t.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}const Sa=25;function y2(e,t){const A=Oe(e),n=lt(e),r=A.visualViewport;let o=n.clientWidth,s=n.clientHeight,i=0,a=0;if(r){o=r.width,s=r.height;const l=Ss();(!l||l&&t==="fixed")&&(i=r.offsetLeft,a=r.offsetTop)}const u=Nr(n);if(u<=0){const l=n.ownerDocument,g=l.body,d=getComputedStyle(g),f=l.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,E=Math.abs(n.clientWidth-g.clientWidth-f);E<=Sa&&(o-=E)}else u<=Sa&&(o+=u);return{width:o,height:s,x:i,y:a}}const F2=new Set(["absolute","fixed"]);function P2(e,t){const A=$t(e,!0,t==="fixed"),n=A.top+e.clientTop,r=A.left+e.clientLeft,o=ut(e)?hA(e):st(1),s=e.clientWidth*o.x,i=e.clientHeight*o.y,a=r*o.x,u=n*o.y;return{width:s,height:i,x:a,y:u}}function Oa(e,t,A){let n;if(t==="viewport")n=y2(e,A);else if(t==="document")n=D2(lt(e));else if($e(t))n=P2(t,A);else{const r=qc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ur(n)}function Jc(e,t){const A=Pt(e);return A===t||!$e(A)||bA(A)?!1:et(A).position==="fixed"||Jc(A,t)}function N2(e,t){const A=t.get(e);if(A)return A;let n=rn(e,[],!1).filter(i=>$e(i)&&TA(i)!=="body"),r=null;const o=et(e).position==="fixed";let s=o?Pt(e):e;for(;$e(s)&&!bA(s);){const i=et(s),a=Ls(s);!a&&i.position==="fixed"&&(r=null),(o?!a&&!r:!a&&i.position==="static"&&!!r&&F2.has(r.position)||hn(s)&&!a&&Jc(e,s))?n=n.filter(l=>l!==s):r=i,s=Pt(s)}return t.set(e,n),n}function M2(e){let{element:t,boundary:A,rootBoundary:n,strategy:r}=e;const s=[...A==="clippingAncestors"?Fr(t)?[]:N2(t,this._c):[].concat(A),n],i=s[0],a=s.reduce((u,l)=>{const g=Oa(t,l,r);return u.top=Se(g.top,u.top),u.right=Ft(g.right,u.right),u.bottom=Ft(g.bottom,u.bottom),u.left=Se(g.left,u.left),u},Oa(t,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function T2(e){const{width:t,height:A}=Zc(e);return{width:t,height:A}}function j2(e,t,A){const n=ut(t),r=lt(t),o=A==="fixed",s=$t(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const a=st(0);function u(){a.x=Nr(r)}if(n||!n&&!o)if((TA(t)!=="body"||hn(r))&&(i=Pr(t)),n){const f=$t(t,!0,o,t);a.x=f.x+t.clientLeft,a.y=f.y+t.clientTop}else r&&u();o&&!n&&r&&u();const l=r&&!n&&!o?Kc(r,i):st(0),g=s.left+i.scrollLeft-a.x-l.x,d=s.top+i.scrollTop-a.y-l.y;return{x:g,y:d,width:s.width,height:s.height}}function ro(e){return et(e).position==="static"}function za(e,t){if(!ut(e)||et(e).position==="fixed")return null;if(t)return t(e);let A=e.offsetParent;return lt(e)===A&&(A=A.ownerDocument.body),A}function _c(e,t){const A=Oe(e);if(Fr(e))return A;if(!ut(e)){let r=Pt(e);for(;r&&!bA(r);){if($e(r)&&!ro(r))return r;r=Pt(r)}return A}let n=za(e,t);for(;n&&B2(n)&&ro(n);)n=za(n,t);return n&&bA(n)&&ro(n)&&!Ls(n)?A:n||m2(e)||A}const k2=async function(e){const t=this.getOffsetParent||_c,A=this.getDimensions,n=await A(e.floating);return{reference:j2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function R2(e){return et(e).direction==="rtl"}const L2={convertOffsetParentRelativeRectToViewportRelativeRect:x2,getDocumentElement:lt,getClippingRect:M2,getOffsetParent:_c,getElementRects:k2,getClientRects:b2,getDimensions:T2,getScale:hA,isElement:$e,isRTL:R2};function $c(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S2(e,t){let A=null,n;const r=lt(e);function o(){var i;clearTimeout(n),(i=A)==null||i.disconnect(),A=null}function s(i,a){i===void 0&&(i=!1),a===void 0&&(a=1),o();const u=e.getBoundingClientRect(),{left:l,top:g,width:d,height:f}=u;if(i||t(),!d||!f)return;const E=Hn(g),B=Hn(r.clientWidth-(l+d)),h=Hn(r.clientHeight-(g+f)),Q=Hn(l),x={rootMargin:-E+"px "+-B+"px "+-h+"px "+-Q+"px",threshold:Se(0,Ft(1,a))||1};let b=!0;function I(v){const p=v[0].intersectionRatio;if(p!==a){if(!b)return s();p?s(!1,p):n=setTimeout(()=>{s(!1,1e-7)},1e3)}p===1&&!$c(u,e.getBoundingClientRect())&&s(),b=!1}try{A=new IntersectionObserver(I,{...x,root:r.ownerDocument})}catch{A=new IntersectionObserver(I,x)}A.observe(e)}return s(!0),o}function O2(e,t,A,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,u=Os(e),l=r||o?[...u?rn(u):[],...rn(t)]:[];l.forEach(Q=>{r&&Q.addEventListener("scroll",A,{passive:!0}),o&&Q.addEventListener("resize",A)});const g=u&&i?S2(u,A):null;let d=-1,f=null;s&&(f=new ResizeObserver(Q=>{let[m]=Q;m&&m.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),A()}),u&&!a&&f.observe(u),f.observe(t));let E,B=a?$t(e):null;a&&h();function h(){const Q=$t(e);B&&!$c(B,Q)&&A(),B=Q,E=requestAnimationFrame(h)}return A(),()=>{var Q;l.forEach(m=>{r&&m.removeEventListener("scroll",A),o&&m.removeEventListener("resize",A)}),g==null||g(),(Q=f)==null||Q.disconnect(),f=null,a&&cancelAnimationFrame(E)}}const z2=l2,H2=c2,V2=i2,G2=d2,Y2=a2,Ha=s2,W2=g2,U2=(e,t,A)=>{const n=new Map,r={platform:L2,...A},o={...r.platform,_c:n};return o2(e,t,{...r,platform:o})};var X2=typeof document<"u",Z2=function(){},$n=X2?w.useLayoutEffect:Z2;function lr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let A,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(A=e.length,A!==t.length)return!1;for(n=A;n--!==0;)if(!lr(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),A=r.length,A!==Object.keys(t).length)return!1;for(n=A;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=A;n--!==0;){const o=r[n];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function eg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Va(e,t){const A=eg(e);return Math.round(t*A)/A}function oo(e){const t=C.useRef(e);return $n(()=>{t.current=e}),t}function q2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:A="absolute",middleware:n=[],platform:r,elements:{reference:o,floating:s}={},transform:i=!0,whileElementsMounted:a,open:u}=e,[l,g]=C.useState({x:0,y:0,strategy:A,placement:t,middlewareData:{},isPositioned:!1}),[d,f]=C.useState(n);lr(d,n)||f(n);const[E,B]=C.useState(null),[h,Q]=C.useState(null),m=C.useCallback(M=>{M!==v.current&&(v.current=M,B(M))},[]),x=C.useCallback(M=>{M!==p.current&&(p.current=M,Q(M))},[]),b=o||E,I=s||h,v=C.useRef(null),p=C.useRef(null),D=C.useRef(l),F=a!=null,k=oo(a),O=oo(r),z=oo(u),P=C.useCallback(()=>{if(!v.current||!p.current)return;const M={placement:t,strategy:A,middleware:d};O.current&&(M.platform=O.current),U2(v.current,p.current,M).then(N=>{const G={...N,isPositioned:z.current!==!1};y.current&&!lr(D.current,G)&&(D.current=G,Nl.flushSync(()=>{g(G)}))})},[d,t,A,O,z]);$n(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(M=>({...M,isPositioned:!1})))},[u]);const y=C.useRef(!1);$n(()=>(y.current=!0,()=>{y.current=!1}),[]),$n(()=>{if(b&&(v.current=b),I&&(p.current=I),b&&I){if(k.current)return k.current(b,I,P);P()}},[b,I,P,k,F]);const j=C.useMemo(()=>({reference:v,floating:p,setReference:m,setFloating:x}),[m,x]),H=C.useMemo(()=>({reference:b,floating:I}),[b,I]),S=C.useMemo(()=>{const M={position:A,left:0,top:0};if(!H.floating)return M;const N=Va(H.floating,l.x),G=Va(H.floating,l.y);return i?{...M,transform:"translate("+N+"px, "+G+"px)",...eg(H.floating)>=1.5&&{willChange:"transform"}}:{position:A,left:N,top:G}},[A,i,H.floating,l.x,l.y]);return C.useMemo(()=>({...l,update:P,refs:j,elements:H,floatingStyles:S}),[l,P,j,H,S])}const K2=e=>{function t(A){return{}.hasOwnProperty.call(A,"current")}return{name:"arrow",options:e,fn(A){const{element:n,padding:r}=typeof e=="function"?e(A):e;return n&&t(n)?n.current!=null?Ha({element:n.current,padding:r}).fn(A):{}:n?Ha({element:n,padding:r}).fn(A):{}}}},J2=(e,t)=>({...z2(e),options:[e,t]}),_2=(e,t)=>({...H2(e),options:[e,t]}),$2=(e,t)=>({...W2(e),options:[e,t]}),eh=(e,t)=>({...V2(e),options:[e,t]}),th=(e,t)=>({...G2(e),options:[e,t]}),Ah=(e,t)=>({...Y2(e),options:[e,t]}),nh=(e,t)=>({...K2(e),options:[e,t]});var rh="Arrow",tg=C.forwardRef((e,t)=>{const{children:A,width:n=10,height:r=5,...o}=e;return c.jsx(se.svg,{...o,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?A:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});tg.displayName=rh;var oh=tg,zs="Popper",[Ag,Mr]=ze(zs),[sh,ng]=Ag(zs),rg=e=>{const{__scopePopper:t,children:A}=e,[n,r]=C.useState(null);return c.jsx(sh,{scope:t,anchor:n,onAnchorChange:r,children:A})};rg.displayName=zs;var og="PopperAnchor",sg=C.forwardRef((e,t)=>{const{__scopePopper:A,virtualRef:n,...r}=e,o=ng(og,A),s=C.useRef(null),i=Ce(t,s),a=C.useRef(null);return C.useEffect(()=>{const u=a.current;a.current=(n==null?void 0:n.current)||s.current,u!==a.current&&o.onAnchorChange(a.current)}),n?null:c.jsx(se.div,{...r,ref:i})});sg.displayName=og;var Hs="PopperContent",[ih,ah]=Ag(Hs),ig=C.forwardRef((e,t)=>{var R,U,X,Ae,le,ge;const{__scopePopper:A,side:n="bottom",sideOffset:r=0,align:o="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:g="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:E,...B}=e,h=ng(Hs,A),[Q,m]=C.useState(null),x=Ce(t,ae=>m(ae)),[b,I]=C.useState(null),v=Fs(b),p=(v==null?void 0:v.width)??0,D=(v==null?void 0:v.height)??0,F=n+(o!=="center"?"-"+o:""),k=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},O=Array.isArray(u)?u:[u],z=O.length>0,P={padding:k,boundary:O.filter(lh),altBoundary:z},{refs:y,floatingStyles:j,placement:H,isPositioned:S,middlewareData:M}=q2({strategy:"fixed",placement:F,whileElementsMounted:(...ae)=>O2(...ae,{animationFrame:f==="always"}),elements:{reference:h.anchor},middleware:[J2({mainAxis:r+D,alignmentAxis:s}),a&&_2({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?$2():void 0,...P}),a&&eh({...P}),th({...P,apply:({elements:ae,rects:K,availableWidth:Pe,availableHeight:je})=>{const{width:ct,height:De}=K.reference,gt=ae.floating.style;gt.setProperty("--radix-popper-available-width",`${Pe}px`),gt.setProperty("--radix-popper-available-height",`${je}px`),gt.setProperty("--radix-popper-anchor-width",`${ct}px`),gt.setProperty("--radix-popper-anchor-height",`${De}px`)}}),b&&nh({element:b,padding:i}),ch({arrowWidth:p,arrowHeight:D}),d&&Ah({strategy:"referenceHidden",...P})]}),[N,G]=lg(H),_=at(E);Ze(()=>{S&&(_==null||_())},[S,_]);const ne=(R=M.arrow)==null?void 0:R.x,L=(U=M.arrow)==null?void 0:U.y,T=((X=M.arrow)==null?void 0:X.centerOffset)!==0,[Y,V]=C.useState();return Ze(()=>{Q&&V(window.getComputedStyle(Q).zIndex)},[Q]),c.jsx("div",{ref:y.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:S?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(Ae=M.transformOrigin)==null?void 0:Ae.x,(le=M.transformOrigin)==null?void 0:le.y].join(" "),...((ge=M.hide)==null?void 0:ge.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(ih,{scope:A,placedSide:N,onArrowChange:I,arrowX:ne,arrowY:L,shouldHideArrow:T,children:c.jsx(se.div,{"data-side":N,"data-align":G,...B,ref:x,style:{...B.style,animation:S?void 0:"none"}})})})});ig.displayName=Hs;var ag="PopperArrow",uh={top:"bottom",right:"left",bottom:"top",left:"right"},ug=C.forwardRef(function(t,A){const{__scopePopper:n,...r}=t,o=ah(ag,n),s=uh[o.placedSide];return c.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:c.jsx(oh,{...r,ref:A,style:{...r.style,display:"block"}})})});ug.displayName=ag;function lh(e){return e!==null}var ch=e=>({name:"transformOrigin",options:e,fn(t){var h,Q,m;const{placement:A,rects:n,middlewareData:r}=t,s=((h=r.arrow)==null?void 0:h.centerOffset)!==0,i=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,l]=lg(A),g={start:"0%",center:"50%",end:"100%"}[l],d=(((Q=r.arrow)==null?void 0:Q.x)??0)+i/2,f=(((m=r.arrow)==null?void 0:m.y)??0)+a/2;let E="",B="";return u==="bottom"?(E=s?g:`${d}px`,B=`${-a}px`):u==="top"?(E=s?g:`${d}px`,B=`${n.floating.height+a}px`):u==="right"?(E=`${-a}px`,B=s?g:`${f}px`):u==="left"&&(E=`${n.floating.width+a}px`,B=s?g:`${f}px`),{data:{x:E,y:B}}}});function lg(e){const[t,A="center"]=e.split("-");return[t,A]}var cg=rg,gg=sg,dg=ig,Cg=ug,gh="Portal",Tr=C.forwardRef((e,t)=>{var i;const{container:A,...n}=e,[r,o]=C.useState(!1);Ze(()=>o(!0),[]);const s=A||r&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Fl.createPortal(c.jsx(se.div,{...n,ref:t}),s):null});Tr.displayName=gh;var dh=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ch="VisuallyHidden",jr=C.forwardRef((e,t)=>c.jsx(se.span,{...e,ref:t,style:{...dh,...e.style}}));jr.displayName=Ch;var fh=jr,[kr]=ze("Tooltip",[Mr]),Rr=Mr(),fg="TooltipProvider",Bh=700,Uo="tooltip.open",[Eh,Vs]=kr(fg),Bg=e=>{const{__scopeTooltip:t,delayDuration:A=Bh,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:o}=e,s=C.useRef(!0),i=C.useRef(!1),a=C.useRef(0);return C.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(Eh,{scope:t,isOpenDelayedRef:s,delayDuration:A,onOpen:C.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:C.useCallback(u=>{i.current=u},[]),disableHoverableContent:r,children:o})};Bg.displayName=fg;var on="Tooltip",[Ih,mn]=kr(on),Eg=e=>{const{__scopeTooltip:t,children:A,open:n,defaultOpen:r,onOpenChange:o,disableHoverableContent:s,delayDuration:i}=e,a=Vs(on,e.__scopeTooltip),u=Rr(t),[l,g]=C.useState(null),d=ot(),f=C.useRef(0),E=s??a.disableHoverableContent,B=i??a.delayDuration,h=C.useRef(!1),[Q,m]=Tt({prop:n,defaultProp:r??!1,onChange:p=>{p?(a.onOpen(),document.dispatchEvent(new CustomEvent(Uo))):a.onClose(),o==null||o(p)},caller:on}),x=C.useMemo(()=>Q?h.current?"delayed-open":"instant-open":"closed",[Q]),b=C.useCallback(()=>{window.clearTimeout(f.current),f.current=0,h.current=!1,m(!0)},[m]),I=C.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),v=C.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{h.current=!0,m(!0),f.current=0},B)},[B,m]);return C.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(cg,{...u,children:c.jsx(Ih,{scope:t,contentId:d,open:Q,stateAttribute:x,trigger:l,onTriggerChange:g,onTriggerEnter:C.useCallback(()=>{a.isOpenDelayedRef.current?v():b()},[a.isOpenDelayedRef,v,b]),onTriggerLeave:C.useCallback(()=>{E?I():(window.clearTimeout(f.current),f.current=0)},[I,E]),onOpen:b,onClose:I,disableHoverableContent:E,children:A})})};Eg.displayName=on;var Xo="TooltipTrigger",Ig=C.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,r=mn(Xo,A),o=Vs(Xo,A),s=Rr(A),i=C.useRef(null),a=Ce(t,i,r.onTriggerChange),u=C.useRef(!1),l=C.useRef(!1),g=C.useCallback(()=>u.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),c.jsx(gg,{asChild:!0,...s,children:c.jsx(se.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:a,onPointerMove:J(e.onPointerMove,d=>{d.pointerType!=="touch"&&!l.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),l.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{r.onTriggerLeave(),l.current=!1}),onPointerDown:J(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:J(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:J(e.onBlur,r.onClose),onClick:J(e.onClick,r.onClose)})})});Ig.displayName=Xo;var Gs="TooltipPortal",[Qh,hh]=kr(Gs,{forceMount:void 0}),Qg=e=>{const{__scopeTooltip:t,forceMount:A,children:n,container:r}=e,o=mn(Gs,t);return c.jsx(Qh,{scope:t,forceMount:A,children:c.jsx(He,{present:A||o.open,children:c.jsx(Tr,{asChild:!0,container:r,children:n})})})};Qg.displayName=Gs;var DA="TooltipContent",hg=C.forwardRef((e,t)=>{const A=hh(DA,e.__scopeTooltip),{forceMount:n=A.forceMount,side:r="top",...o}=e,s=mn(DA,e.__scopeTooltip);return c.jsx(He,{present:n||s.open,children:s.disableHoverableContent?c.jsx(mg,{side:r,...o,ref:t}):c.jsx(mh,{side:r,...o,ref:t})})}),mh=C.forwardRef((e,t)=>{const A=mn(DA,e.__scopeTooltip),n=Vs(DA,e.__scopeTooltip),r=C.useRef(null),o=Ce(t,r),[s,i]=C.useState(null),{trigger:a,onClose:u}=A,l=r.current,{onPointerInTransitChange:g}=n,d=C.useCallback(()=>{i(null),g(!1)},[g]),f=C.useCallback((E,B)=>{const h=E.currentTarget,Q={x:E.clientX,y:E.clientY},m=bh(Q,h.getBoundingClientRect()),x=Dh(Q,m),b=yh(B.getBoundingClientRect()),I=Ph([...x,...b]);i(I),g(!0)},[g]);return C.useEffect(()=>()=>d(),[d]),C.useEffect(()=>{if(a&&l){const E=h=>f(h,l),B=h=>f(h,a);return a.addEventListener("pointerleave",E),l.addEventListener("pointerleave",B),()=>{a.removeEventListener("pointerleave",E),l.removeEventListener("pointerleave",B)}}},[a,l,f,d]),C.useEffect(()=>{if(s){const E=B=>{const h=B.target,Q={x:B.clientX,y:B.clientY},m=(a==null?void 0:a.contains(h))||(l==null?void 0:l.contains(h)),x=!Fh(Q,s);m?d():x&&(d(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[a,l,s,u,d]),c.jsx(mg,{...e,ref:o})}),[ph,vh]=kr(on,{isInside:!1}),wh=mB("TooltipContent"),mg=C.forwardRef((e,t)=>{const{__scopeTooltip:A,children:n,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:s,...i}=e,a=mn(DA,A),u=Rr(A),{onClose:l}=a;return C.useEffect(()=>(document.addEventListener(Uo,l),()=>document.removeEventListener(Uo,l)),[l]),C.useEffect(()=>{if(a.trigger){const g=d=>{const f=d.target;f!=null&&f.contains(a.trigger)&&l()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[a.trigger,l]),c.jsx(Dr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:g=>g.preventDefault(),onDismiss:l,children:c.jsxs(dg,{"data-state":a.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(wh,{children:n}),c.jsx(ph,{scope:A,isInside:!0,children:c.jsx(fh,{id:a.contentId,role:"tooltip",children:r||n})})]})})});hg.displayName=DA;var pg="TooltipArrow",xh=C.forwardRef((e,t)=>{const{__scopeTooltip:A,...n}=e,r=Rr(A);return vh(pg,A).isInside?null:c.jsx(Cg,{...r,...n,ref:t})});xh.displayName=pg;function bh(e,t){const A=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(A,n,r,o)){case o:return"left";case r:return"right";case A:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Dh(e,t,A=5){const n=[];switch(t){case"top":n.push({x:e.x-A,y:e.y+A},{x:e.x+A,y:e.y+A});break;case"bottom":n.push({x:e.x-A,y:e.y-A},{x:e.x+A,y:e.y-A});break;case"left":n.push({x:e.x+A,y:e.y-A},{x:e.x+A,y:e.y+A});break;case"right":n.push({x:e.x-A,y:e.y-A},{x:e.x-A,y:e.y+A});break}return n}function yh(e){const{top:t,right:A,bottom:n,left:r}=e;return[{x:r,y:t},{x:A,y:t},{x:A,y:n},{x:r,y:n}]}function Fh(e,t){const{x:A,y:n}=e;let r=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const i=t[o],a=t[s],u=i.x,l=i.y,g=a.x,d=a.y;l>n!=d>n&&A<(g-u)*(n-l)/(d-l)+u&&(r=!r)}return r}function Ph(e){const t=e.slice();return t.sort((A,n)=>A.x<n.x?-1:A.x>n.x?1:A.y<n.y?-1:A.y>n.y?1:0),Nh(t)}function Nh(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const A=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;A.length>=2;){const o=A[A.length-1],s=A[A.length-2];if((o.x-s.x)*(r.y-s.y)>=(o.y-s.y)*(r.x-s.x))A.pop();else break}A.push(r)}return A.pop(),t.length===1&&A.length===1&&t[0].x===A[0].x&&t[0].y===A[0].y?t:t.concat(A)}var Mh=Bg,Th=Eg,jh=Ig,kh=Qg,Rh=hg;function Lh({delayDuration:e=0,...t}){return c.jsx(Mh,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function vg({...e}){return c.jsx(Lh,{children:c.jsx(Th,{"data-slot":"tooltip",...e})})}function wg({...e}){return c.jsx(jh,{"data-slot":"tooltip-trigger",...e})}function xg({className:e,sideOffset:t=0,children:A,...n}){return c.jsx(kh,{children:c.jsx(Rh,{"data-slot":"tooltip-content",sideOffset:t,className:$("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:A})})}const Sh=({isStandalone:e,messages:t,onClickTranslation:A,conversationSummary:n,isTranslationShown:r=!0,translationStatus:o="idle",title:s="Transcript",startTranslationText:i="Start Translation",stopTranslationText:a="Stop Translation",sourceLanguagePlaceholder:u="Auto-detect",targetLanguagePlaceholder:l="English",sourceLanguageSearchPlaceholder:g="Search Source Language",targetLanguageSearchPlaceholder:d="Search Target Language",sourceLanguageOptions:f=[],targetLanguageOptions:E=[],sourceLanguage:B,targetLanguage:h,onSourceLanguageChange:Q,onTargetLanguageChange:m,showTranslationButtonText:x=!0,translationButtonClassName:b="row",showTranslationButtonGroup:I=!0})=>{const v=w.useRef(null),[p,D]=w.useState(!0),[F,k]=w.useState(!0),O=w.useRef(t.length),z=w.useRef(t),P=(S,M)=>c.jsxs(vg,{children:[c.jsx(wg,{asChild:!0,children:c.jsx("span",{className:"inline-flex",children:c.jsx(W,{name:S,width:40,height:40})})}),c.jsx(xg,{sideOffset:6,className:"bg-background text-foreground border px-2 py-1 text-xs font-medium",children:M})]}),y=w.useCallback(()=>{if(!v.current)return!1;const{scrollTop:S,scrollHeight:M,clientHeight:N}=v.current;return M-S-N<100},[]),j=w.useCallback(()=>{const S=y();k(S)},[y]),H=w.useCallback(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[]);return w.useEffect(()=>{const S=t.length>O.current,M=JSON.stringify(t)!==JSON.stringify(z.current);(S||M)&&F&&setTimeout(()=>{H()},100),O.current=t.length,z.current=t},[t,F,H]),w.useEffect(()=>{const S=v.current;if(S)return S.addEventListener("scroll",j),()=>{S.removeEventListener("scroll",j)}},[j]),w.useEffect(()=>{v.current&&k(y())},[y]),w.useEffect(()=>{let S;return o==="translating"?S=setInterval(()=>{D(M=>!M)},1e3):D(!0),()=>{S&&clearInterval(S)}},[o]),c.jsxs("div",{className:"w-full flex flex-col h-full",children:[c.jsx("div",{className:"w-full flex-shrink-0 mb-3 md:mb-[26px]",children:e?c.jsxs("div",{className:"w-full flex flex-row items-center justify-between",children:[s&&c.jsx("div",{className:"text-lg font-medium text-foreground",children:s}),r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-6 py-3 h-10 ",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[c.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})]}):c.jsx("div",{className:"w-full flex items-center justify-center",children:r&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`hidden md:flex items-center gap-2 flex-${b}`,children:[I&&c.jsxs("div",{className:"flex flex-row items-center gap-4",children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-30"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-8 h-8",children:c.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-30"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"lg",onClick:A,className:"bg-background gap-2 px-3 py-3 h-10 ",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsxs("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:[c.jsx("span",{id:"translation-button-text",children:x&&(o==="idle"?i:a)}),c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})]})]})]}),c.jsxs("div",{className:"flex md:hidden items-center justify-center flex-row gap-2",children:[I&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{options:f,value:B,onValueChange:Q,placeholder:u,searchPlaceholder:g,className:"w-32"}),P("CustomerIcon","Customer"),c.jsx("div",{className:"flex items-center justify-center w-6 h-6",children:c.jsx("svg",{className:"w-3 h-3 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})})}),P("AgentIcon","Agent"),c.jsx(xt,{options:E,value:h,onValueChange:m,placeholder:l,searchPlaceholder:d,className:"w-32"})]}),I&&c.jsxs(Qe,{variant:"outline",size:"default",onClick:A,className:"bg-background gap-2 px-6",id:"translation-button",children:[c.jsx(W,{name:"Language",width:16,height:16,className:"text-primary-brew-2"}),c.jsx("div",{className:"text-base text-primary-brew-2 font-medium flex items-center gap-2",children:c.jsx("span",{style:{display:"inline-block",width:9,height:9,borderRadius:"50%",background:o==="idle"?"#D9D9D9":"#20B15A",opacity:o==="translating"?p?1:.2:1,transition:"opacity 0.3s"}})})]})]})]})})}),c.jsx("div",{ref:v,className:"flex-grow overflow-y-auto w-full h-[calc(100%-48px)] max-h-[calc(100vh-68px)] sm:max-h-[calc(100vh-200px)]",children:c.jsxs("div",{className:"flex flex-col w-full items-center justify-center pb-4 ",children:[c.jsx("div",{className:`flex flex-col gap-6 w-full pb-8 ${n?"border-b border-border":""}`,id:"transcript-container",children:t.map(S=>c.jsx(xA,{...S},S.id))}),c.jsx("div",{className:"w-full flex pt-8 max-w-11/12",children:n&&c.jsx(OQ,{...n})})]})})]})},Oh=({rate:e})=>{const t=w.useMemo(()=>{if(e<=20)return c.jsx(W,{name:"AngryFace",width:32,height:32});if(e>20&&e<=40)return c.jsx(W,{name:"ConfusedFace",width:32,height:32});if(e>40&&e<=60)return c.jsx(W,{name:"NeutralFaceIcon",width:32,height:32});if(e>60&&e<=80)return c.jsx(W,{name:"Smiling",width:32,height:32});if(e>80&&e<=100)return c.jsx(W,{name:"SmilingWithHearts",width:32,height:32})},[e]),A=w.useMemo(()=>`${Math.max(0,Math.min(100,e))}%`,[e]);return c.jsxs("div",{className:"w-full relative h-3 rounded-full",children:[c.jsx("div",{className:"w-full h-full absolute top-0 left-0 rounded-full sentiment-gradient"}),c.jsx("div",{style:{left:A,transform:"translateX(-50%)"},className:"absolute z-10 -top-[10px]",children:t})]})},bg={light:{"primary-foreground":"#F5F5F5"},dark:{"primary-hover":"#7473C8"}},zh=({label:e,checked:t,onClick:A,id:n})=>c.jsxs("div",{onClick:()=>A(n),className:"flex cursor-pointer flex-row gap-3 items-center justify-center",children:[c.jsx("div",{className:$("flex items-center justify-center rounded-full w-5 h-5",t?"bg-success-hover":"bg-background border-[7px] border-border"),children:t&&c.jsx(W,{name:"Check",width:16,height:16,color:bg.light["primary-foreground"],"data-testid":"check-icon"})}),c.jsx("span",{className:$("text-sm font-normal",t?"line-through text-muted-foreground":"text-foreground"),children:e})]});var Lr="Collapsible",[Hh]=ze(Lr),[Vh,Ys]=Hh(Lr),Dg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,open:n,defaultOpen:r,disabled:o,onOpenChange:s,...i}=e,[a,u]=Tt({prop:n,defaultProp:r??!1,onChange:s,caller:Lr});return c.jsx(Vh,{scope:A,disabled:o,contentId:ot(),open:a,onOpenToggle:C.useCallback(()=>u(l=>!l),[u]),children:c.jsx(se.div,{"data-state":Us(a),"data-disabled":o?"":void 0,...i,ref:t})})});Dg.displayName=Lr;var yg="CollapsibleTrigger",Fg=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,...n}=e,r=Ys(yg,A);return c.jsx(se.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Us(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:t,onClick:J(e.onClick,r.onOpenToggle)})});Fg.displayName=yg;var Ws="CollapsibleContent",Pg=C.forwardRef((e,t)=>{const{forceMount:A,...n}=e,r=Ys(Ws,e.__scopeCollapsible);return c.jsx(He,{present:A||r.open,children:({present:o})=>c.jsx(Gh,{...n,ref:t,present:o})})});Pg.displayName=Ws;var Gh=C.forwardRef((e,t)=>{const{__scopeCollapsible:A,present:n,children:r,...o}=e,s=Ys(Ws,A),[i,a]=C.useState(n),u=C.useRef(null),l=Ce(t,u),g=C.useRef(0),d=g.current,f=C.useRef(0),E=f.current,B=s.open||i,h=C.useRef(B),Q=C.useRef(void 0);return C.useEffect(()=>{const m=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(m)},[]),Ze(()=>{const m=u.current;if(m){Q.current=Q.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();g.current=x.height,f.current=x.width,h.current||(m.style.transitionDuration=Q.current.transitionDuration,m.style.animationName=Q.current.animationName),a(n)}},[s.open,n]),c.jsx(se.div,{"data-state":Us(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!B,...o,ref:l,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:B&&r})});function Us(e){return e?"open":"closed"}var Yh=Dg;function Zo({...e}){return c.jsx(Yh,{"data-slot":"collapsible",...e})}function qo({...e}){return c.jsx(Fg,{"data-slot":"collapsible-trigger",...e})}function Ko({...e}){return c.jsx(Pg,{"data-slot":"collapsible-content",...e})}const Ng=({id:e,title:t="GenAI Support",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"Sparkles",width:24,height:24,className:"text-foreground"}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Mg=({id:e,title:t="Great Job!",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"ClappingHands",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Tg=({id:e,title:t="Legal Thread",message:A,timestamp:n,showHelperButtons:r=!1,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i="Ask GenAI",askManagerTitle:a="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"SkullAndCrossbones",width:24,height:24}),id:e,message:A,timestamp:n,showHelperButtons:r,onClickAskGenAI:o,onClickAskManager:s,askGenAITitle:i,askManagerTitle:a}),jg=({title:e="Task Done",message:t,timestamp:A,id:n,taskCount:r,completedTaskCount:o,askGenAITitle:s="Ask GenAI",askManagerTitle:i="Ask Manager"})=>{const a=w.useMemo(()=>r<10?`0${r}`:r,[r]),u=w.useMemo(()=>o<10?`0${o}`:o,[o]);return c.jsx(kt,{id:n,icon:c.jsx(W,{name:"Done",width:24,height:24}),title:e,message:t,timestamp:A,tag:r!==0&&c.jsx("div",{className:"bg-foreground-08 rounded-4xl p-1 flex items-center justify-center text-[11px] font-normal text-foreground",children:`${u} / ${a}`}),askGenAITitle:s,askManagerTitle:i})},kg=({id:e,title:t="Unhappy Customer",message:A,timestamp:n,askGenAITitle:r="Ask GenAI",askManagerTitle:o="Ask Manager"})=>c.jsx(kt,{title:t,icon:c.jsx(W,{name:"PoutingFace",width:24,height:24}),id:e,message:A,timestamp:n,askGenAITitle:r,askManagerTitle:o}),Rg=({id:e,title:t,message:A,timestamp:n,icon:r,askGenAITitle:o="Ask GenAI",askManagerTitle:s="Ask Manager",showFeedbackArea:i,scenarioId:a,feddbackTitle:u,feedbackHelpfullButtonTitle:l,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,showThankYou:Q,sendFeedback:m,matchId:x,feedbackLoading:b})=>c.jsx(kt,{id:e,title:t,message:A,timestamp:n,icon:r,scenarioId:a,askGenAITitle:o,askManagerTitle:s,showFeedbackArea:i,feddbackTitle:u,feedbackHelpfullButtonTitle:l,feedbackNotHelpfullButtonTitle:g,feedbackCommentPlaceholder:d,feedbackSubmitText:f,feedbackThankYouMessage:E,feedbackSubmitButtonHoverTitle:B,feedbackCancelButtonTitle:h,matchId:x,sendFeedback:m,feedbackLoading:b,showThankYou:Q});/**
22
22
  * @license lucide-react v0.477.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
@@ -64,7 +64,7 @@
64
64
  .hide-scrollbar::-webkit-scrollbar {
65
65
  display: none; /* Chrome, Safari, Opera */
66
66
  }
67
- `}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-1 md:gap-2",children:[c.jsx("span",{className:"font-medium text-lg text-foreground",children:e}),c.jsxs("span",{className:"text-xs font-medium bg-foreground-08 text-foreground px-2.5 py-0.5 rounded-full",children:[String(b).padStart(2,"0")," /"," ",String(I).padStart(2,"0")]})]}),!A&&c.jsx(qo,{asChild:!0,children:c.jsx("button",{className:"text-foreground transition pr-3","aria-label":"Toggle content",children:n?c.jsx(W,{name:"ChevronUp",width:24,height:24,className:"text-foreground"}):c.jsx(W,{name:"ChevronDown",width:24,height:24,className:"text-foreground"})})})]}),!n&&v&&t.length>0&&c.jsx("div",{className:"mt-4",children:c.jsx("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col gap-6 h-full",children:c.jsx("div",{className:"flex flex-col gap-4",children:(()=>{const T=t[0],Y=T.isCompleted,V=p.has(T.id),R=T.phrases&&T.phrases.length>0;return c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"relative flex gap-3 items-start",children:[c.jsx("button",{onClick:()=>o==null?void 0:o(0),className:$("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0",Y?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:Y?c.jsx(W,{name:"Check",className:"text-background"}):c.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),c.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[c.jsx("span",{className:$("text-sm font-normal",Y?"line-through text-muted-foreground":"text-foreground"),children:T.label}),R&&c.jsx("button",{onClick:()=>ne(T.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":V?"Collapse phrases":"Expand phrases",children:c.jsx(W,{name:V?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),V&&R&&T.phrases&&c.jsx("div",{className:"ml-8 mt-2 space-y-1",children:T.phrases.map((U,X)=>c.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[c.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),c.jsx("span",{children:U})]},`${T.id}-phrase-${X}`))})]},T.id)})()})})}),c.jsx(Ko,{className:"mt-4 flex-1",children:c.jsxs("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col h-full",children:[c.jsx("div",{className:$("flex flex-col gap-6 hide-scrollbar",A?"h-full":F.size>0?"overflow-visible min-h-0":"overflow-y-auto max-h-[400px]"),children:c.jsx(M1,{mode:"popLayout",initial:!1,children:t.map((T,Y)=>{const V=T.isCompleted,R=p.has(T.id),U=T.phrases&&T.phrases.length>0;return c.jsxs(c3.div,{className:"flex flex-col",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,x:100,transition:{duration:1.5}},layout:"position",children:[c.jsxs("div",{className:$("relative flex gap-3 items-start","after:absolute after:top-4 after:left-[10px] after:w-px after:bg-border",(Y===t.length-1||R)&&"after:hidden"),children:[c.jsx("button",{onClick:()=>o==null?void 0:o(Y),className:$("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0 ",V?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:V?c.jsx(W,{name:"Check",className:"text-background"}):c.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),c.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[c.jsx("span",{className:$("text-sm font-normal",V?"line-through text-muted-foreground":"text-foreground"),children:T.label}),U&&c.jsx("button",{onClick:()=>ne(T.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":R?"Collapse phrases":"Expand phrases",children:c.jsx(W,{name:R?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),R&&U&&T.phrases&&c.jsxs("div",{className:"ml-8 mt-2 space-y-1 relative",children:[T.phrases.slice(0,3).map((X,Ae)=>c.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[c.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),c.jsx("span",{children:X})]},`${T.id}-phrase-${Ae}`)),T.phrases.length>3&&!F.has(T.id)&&c.jsx("button",{onClick:X=>{X.stopPropagation(),L(T.id)},className:"text-[11px] text-primary hover:underline",children:"(see more)"}),F.has(T.id)&&c.jsxs("div",{onClick:X=>X.stopPropagation(),className:"relative z-50 mt-2 inline-block w-full max-w-full max-h-72 overflow-auto hide-scrollbar bg-background border border-border shadow-lg rounded-lg",children:[c.jsx("div",{className:"flex justify-end mt-1 mr-1",children:c.jsx("button",{onClick:X=>{X.stopPropagation(),L(T.id)},"aria-label":"Close",className:"p-1 rounded hover:bg-foreground-08 text-muted-foreground hover:text-foreground transition",children:c.jsx(W,{name:"Close",width:12,height:12})})}),c.jsx("div",{className:"space-y-1 pr-3 pl-3 pt-1 pb-1",children:T.phrases.map((X,Ae)=>c.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[c.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),c.jsx("span",{children:X})]},`${T.id}-phrase-all-${Ae}`))})]})]})]},T.id)})})}),x&&!Q&&c.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end",marginRight:"10px",marginTop:"10px"},children:c.jsxs("button",{onClick:M,className:"relative group",title:d,style:{cursor:"pointer"},children:[c.jsx(W,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),c.jsx("div",{className:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:d})]})}),P&&!Q&&c.jsxs("div",{className:"mt-2 space-y-4",children:[c.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),c.jsxs("div",{className:`flex flex-wrap gap-2 ${S?"flex-col":"flex-row"}`,children:[c.jsxs("button",{onClick:()=>N(1),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[c.jsx(W,{name:"LikeHand",width:16,height:16,style:{color:O===1?"#22c55e":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:a})]}),c.jsxs("button",{onClick:()=>N(0),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[c.jsx(W,{name:"DisLikeHand",width:16,height:16,style:{color:O===0?"#ef4444":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:u})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:i}),c.jsx("textarea",{value:j,maxLength:500,onChange:T=>H(T.target.value),placeholder:l,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),c.jsxs("div",{className:"flex justify-end",children:[c.jsx(Qe,{onClick:_,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:g})}),c.jsx(Qe,{onClick:()=>G({selectedFeedback:O??0,comment:j}),isLoading:m,disabled:m,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:f})})]})]})]}),Q&&c.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[c.jsx("span",{className:"text-sm font-medium",children:E}),c.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:c.jsx(W,{name:"Check",width:12,height:12,style:{color:"white"}})})]})]})})]})})};var Do="focusScope.autoFocusOnMount",yo="focusScope.autoFocusOnUnmount",gl={bubbles:!1,cancelable:!0},d3="FocusScope",Mi=C.forwardRef((e,t)=>{const{loop:A=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:o,...s}=e,[i,a]=C.useState(null),u=at(r),l=at(o),g=C.useRef(null),d=Ce(t,B=>a(B)),f=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(n){let B=function(x){if(f.paused||!i)return;const b=x.target;i.contains(b)?g.current=b:Dt(g.current,{select:!0})},h=function(x){if(f.paused||!i)return;const b=x.relatedTarget;b!==null&&(i.contains(b)||Dt(g.current,{select:!0}))},Q=function(x){if(document.activeElement===document.body)for(const I of x)I.removedNodes.length>0&&Dt(i)};document.addEventListener("focusin",B),document.addEventListener("focusout",h);const m=new MutationObserver(Q);return i&&m.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",B),document.removeEventListener("focusout",h),m.disconnect()}}},[n,i,f.paused]),C.useEffect(()=>{if(i){Cl.add(f);const B=document.activeElement;if(!i.contains(B)){const Q=new CustomEvent(Do,gl);i.addEventListener(Do,u),i.dispatchEvent(Q),Q.defaultPrevented||(C3(Q3(zC(i)),{select:!0}),document.activeElement===B&&Dt(i))}return()=>{i.removeEventListener(Do,u),setTimeout(()=>{const Q=new CustomEvent(yo,gl);i.addEventListener(yo,l),i.dispatchEvent(Q),Q.defaultPrevented||Dt(B??document.body,{select:!0}),i.removeEventListener(yo,l),Cl.remove(f)},0)}}},[i,u,l,f]);const E=C.useCallback(B=>{if(!A&&!n||f.paused)return;const h=B.key==="Tab"&&!B.altKey&&!B.ctrlKey&&!B.metaKey,Q=document.activeElement;if(h&&Q){const m=B.currentTarget,[x,b]=f3(m);x&&b?!B.shiftKey&&Q===b?(B.preventDefault(),A&&Dt(x,{select:!0})):B.shiftKey&&Q===x&&(B.preventDefault(),A&&Dt(b,{select:!0})):Q===m&&B.preventDefault()}},[A,n,f.paused]);return c.jsx(se.div,{tabIndex:-1,...s,ref:d,onKeyDown:E})});Mi.displayName=d3;function C3(e,{select:t=!1}={}){const A=document.activeElement;for(const n of e)if(Dt(n,{select:t}),document.activeElement!==A)return}function f3(e){const t=zC(e),A=dl(t,e),n=dl(t.reverse(),e);return[A,n]}function zC(e){const t=[],A=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;A.nextNode();)t.push(A.currentNode);return t}function dl(e,t){for(const A of e)if(!B3(A,{upTo:t}))return A}function B3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function E3(e){return e instanceof HTMLInputElement&&"select"in e}function Dt(e,{select:t=!1}={}){if(e&&e.focus){const A=document.activeElement;e.focus({preventScroll:!0}),e!==A&&E3(e)&&t&&e.select()}}var Cl=I3();function I3(){let e=[];return{add(t){const A=e[0];t!==A&&(A==null||A.pause()),e=fl(e,t),e.unshift(t)},remove(t){var A;e=fl(e,t),(A=e[0])==null||A.resume()}}}function fl(e,t){const A=[...e],n=A.indexOf(t);return n!==-1&&A.splice(n,1),A}function Q3(e){return e.filter(t=>t.tagName!=="A")}var Fo=0;function HC(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bl()),document.body.insertAdjacentElement("beforeend",e[1]??Bl()),Fo++,()=>{Fo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fo--}},[])}function Bl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var nt=function(){return nt=Object.assign||function(t){for(var A,n=1,r=arguments.length;n<r;n++){A=arguments[n];for(var o in A)Object.prototype.hasOwnProperty.call(A,o)&&(t[o]=A[o])}return t},nt.apply(this,arguments)};function VC(e,t){var A={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(A[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(A[n[r]]=e[n[r]]);return A}function h3(e,t,A){if(A||arguments.length===2)for(var n=0,r=t.length,o;n<r;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var or="right-scroll-bar-position",sr="width-before-scroll-bar",m3="with-scroll-bars-hidden",p3="--removed-body-scroll-bar-size";function Po(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function v3(e,t){var A=w.useState(function(){return{value:e,callback:t,facade:{get current(){return A.value},set current(n){var r=A.value;r!==n&&(A.value=n,A.callback(n,r))}}}})[0];return A.callback=t,A.facade}var w3=typeof window<"u"?C.useLayoutEffect:C.useEffect,El=new WeakMap;function x3(e,t){var A=v3(null,function(n){return e.forEach(function(r){return Po(r,n)})});return w3(function(){var n=El.get(A);if(n){var r=new Set(n),o=new Set(e),s=A.current;r.forEach(function(i){o.has(i)||Po(i,null)}),o.forEach(function(i){r.has(i)||Po(i,s)})}El.set(A,e)},[e]),A}function b3(e){return e}function D3(e,t){t===void 0&&(t=b3);var A=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return A.length?A[A.length-1]:e},useMedium:function(o){var s=t(o,n);return A.push(s),function(){A=A.filter(function(i){return i!==s})}},assignSyncMedium:function(o){for(n=!0;A.length;){var s=A;A=[],s.forEach(o)}A={push:function(i){return o(i)},filter:function(){return A}}},assignMedium:function(o){n=!0;var s=[];if(A.length){var i=A;A=[],i.forEach(o),s=A}var a=function(){var l=s;s=[],l.forEach(o)},u=function(){return Promise.resolve().then(a)};u(),A={push:function(l){s.push(l),u()},filter:function(l){return s=s.filter(l),A}}}};return r}function y3(e){e===void 0&&(e={});var t=D3(null);return t.options=nt({async:!0,ssr:!1},e),t}var GC=function(e){var t=e.sideCar,A=VC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return C.createElement(n,nt({},A))};GC.isSideCarExport=!0;function F3(e,t){return e.useMedium(t),GC}var YC=y3(),No=function(){},Ur=C.forwardRef(function(e,t){var A=C.useRef(null),n=C.useState({onScrollCapture:No,onWheelCapture:No,onTouchMoveCapture:No}),r=n[0],o=n[1],s=e.forwardProps,i=e.children,a=e.className,u=e.removeScrollBar,l=e.enabled,g=e.shards,d=e.sideCar,f=e.noRelative,E=e.noIsolation,B=e.inert,h=e.allowPinchZoom,Q=e.as,m=Q===void 0?"div":Q,x=e.gapMode,b=VC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=d,v=x3([A,t]),p=nt(nt({},b),r);return C.createElement(C.Fragment,null,l&&C.createElement(I,{sideCar:YC,removeScrollBar:u,shards:g,noRelative:f,noIsolation:E,inert:B,setCallbacks:o,allowPinchZoom:!!h,lockRef:A,gapMode:x}),s?C.cloneElement(C.Children.only(i),nt(nt({},p),{ref:v})):C.createElement(m,nt({},p,{className:a,ref:v}),i))});Ur.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ur.classNames={fullWidth:sr,zeroRight:or};var P3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function N3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P3();return t&&e.setAttribute("nonce",t),e}function M3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function T3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var j3=function(){var e=0,t=null;return{add:function(A){e==0&&(t=N3())&&(M3(t,A),T3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},k3=function(){var e=j3();return function(t,A){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&A])}},WC=function(){var e=k3(),t=function(A){var n=A.styles,r=A.dynamic;return e(n,r),null};return t},R3={left:0,top:0,right:0,gap:0},Mo=function(e){return parseInt(e||"",10)||0},L3=function(e){var t=window.getComputedStyle(document.body),A=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Mo(A),Mo(n),Mo(r)]},S3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return R3;var t=L3(e),A=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-A+t[2]-t[0])}},O3=WC(),vA="data-scroll-locked",z3=function(e,t,A,n){var r=e.left,o=e.top,s=e.right,i=e.gap;return A===void 0&&(A="margin"),`
67
+ `}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-1 md:gap-2",children:[c.jsx("span",{className:"font-medium text-lg text-foreground",children:e}),c.jsxs("span",{className:"text-xs font-medium bg-foreground-08 text-foreground px-2.5 py-0.5 rounded-full",children:[String(b).padStart(2,"0")," /"," ",String(I).padStart(2,"0")]})]}),!A&&c.jsx(qo,{asChild:!0,children:c.jsx("button",{className:"text-foreground transition pr-3","aria-label":"Toggle content",children:n?c.jsx(W,{name:"ChevronUp",width:24,height:24,className:"text-foreground"}):c.jsx(W,{name:"ChevronDown",width:24,height:24,className:"text-foreground"})})})]}),!n&&v&&t.length>0&&c.jsx("div",{className:"mt-4",children:c.jsx("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col gap-6 h-full",children:c.jsx("div",{className:"flex flex-col gap-4",children:(()=>{const T=t[0],Y=T.isCompleted,V=p.has(T.id),R=T.phrases&&T.phrases.length>0;return c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("div",{className:"relative flex gap-3 items-start",children:[c.jsx("button",{onClick:()=>o==null?void 0:o(0),className:$("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0",Y?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:Y?c.jsx(W,{name:"Check",className:"text-background"}):c.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),c.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[c.jsx("span",{className:$("text-sm font-normal",Y?"line-through text-muted-foreground":"text-foreground"),children:T.label}),R&&c.jsx("button",{onClick:()=>ne(T.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":V?"Collapse phrases":"Expand phrases",children:c.jsx(W,{name:V?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),V&&R&&T.phrases&&c.jsx("div",{className:"ml-8 mt-2 space-y-1",children:T.phrases.map((U,X)=>c.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[c.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),c.jsx("span",{children:U})]},`${T.id}-phrase-${X}`))})]},T.id)})()})})}),c.jsx(Ko,{className:"mt-4 flex-1",children:c.jsxs("div",{className:"bg-secondary md:bg-background p-4 rounded-2xl flex flex-col h-full",children:[c.jsx("div",{className:$("flex flex-col gap-6 hide-scrollbar",A?"h-full":F.size>0?"overflow-visible min-h-0":"overflow-y-auto max-h-[400px]"),children:c.jsx(M1,{mode:"popLayout",initial:!1,children:t.map((T,Y)=>{const V=T.isCompleted,R=p.has(T.id),U=T.phrases&&T.phrases.length>0;return c.jsxs(c3.div,{className:"flex flex-col",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,x:100,transition:{duration:1.5}},layout:"position",children:[c.jsxs("div",{className:$("relative flex gap-3 items-start","after:absolute after:top-4 after:left-[10px] after:w-px after:bg-border",(Y===t.length-1||R)&&"after:hidden"),children:[c.jsx("button",{onClick:()=>o==null?void 0:o(Y),className:$("w-5 h-5 rounded-full flex items-center justify-center z-10 relative shrink-0 ",V?"bg-success-hover border-success-hover":"bg-background border-border border-7"),"aria-label":"Toggle step",children:V?c.jsx(W,{name:"Check",className:"text-background"}):c.jsx("div",{className:"w-1 h-1 bg-background rounded-full"})}),c.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[c.jsx("span",{className:$("text-sm font-normal",V?"line-through text-muted-foreground":"text-foreground"),children:T.label}),U&&c.jsx("button",{onClick:()=>ne(T.id),className:"ml-2 text-foreground transition-transform duration-200","aria-label":R?"Collapse phrases":"Expand phrases",children:c.jsx(W,{name:R?"ChevronUp":"ChevronDown",width:16,height:16,className:"text-muted-foreground transition-all duration-200"})})]})]}),R&&U&&T.phrases&&c.jsxs("div",{className:"ml-8 mt-2 space-y-1 relative",children:[T.phrases.slice(0,3).map((X,Ae)=>c.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[c.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),c.jsx("span",{children:X})]},`${T.id}-phrase-${Ae}`)),T.phrases.length>3&&!F.has(T.id)&&c.jsx("button",{onClick:X=>{X.stopPropagation(),L(T.id)},className:"text-[11px] text-primary hover:underline",children:"(see more)"}),F.has(T.id)&&c.jsxs("div",{onClick:X=>X.stopPropagation(),className:"relative z-50 mt-2 inline-block w-full max-w-full max-h-72 overflow-auto hide-scrollbar bg-background border border-border shadow-lg rounded-lg",children:[c.jsx("div",{className:"flex justify-end mt-1 mr-1",children:c.jsx("button",{onClick:X=>{X.stopPropagation(),L(T.id)},"aria-label":"Close",className:"p-1 rounded hover:bg-foreground-08 text-muted-foreground hover:text-foreground transition",children:c.jsx(W,{name:"Close",width:12,height:12})})}),c.jsx("div",{className:"space-y-1 pr-3 pl-3 pt-1 pb-1",children:T.phrases.map((X,Ae)=>c.jsxs("div",{className:"text-xs text-muted-foreground flex items-start gap-2",children:[c.jsx("span",{className:"w-1 h-1 bg-muted-foreground rounded-full mt-1.5 shrink-0"}),c.jsx("span",{children:X})]},`${T.id}-phrase-all-${Ae}`))})]})]})]},T.id)})})}),x&&!Q&&c.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"flex-end",marginRight:"10px",marginTop:"10px"},children:c.jsxs("button",{onClick:M,className:"relative group",title:d,style:{cursor:"pointer"},children:[c.jsx(W,{name:"MsgEdit",width:22,height:22,className:"text-[#6867BA] dark:text-white hover:text-gray-700 dark:hover:text-gray-200 transition-colors"}),c.jsx("div",{className:"absolute top-1/2 right-full transform -translate-y-1/2 mr-2 px-2 py-1 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap",children:d})]})}),P&&!Q&&c.jsxs("div",{className:"mt-2 space-y-4",children:[c.jsx("div",{style:{height:"1px",width:"100%",backgroundColor:"#E0E0E0"}}),c.jsxs("div",{className:`flex flex-wrap gap-2 ${S?"flex-col":"flex-row"}`,children:[c.jsxs("button",{onClick:()=>N(1),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===1?"bg-green-50 dark:bg-green-900/20 border-green-400 dark:border-green-500 text-green-600 dark:text-green-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-green-300 dark:hover:border-green-400"),children:[c.jsx(W,{name:"LikeHand",width:16,height:16,style:{color:O===1?"#22c55e":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:a})]}),c.jsxs("button",{onClick:()=>N(0),className:$("flex items-center gap-2 px-4 py-2 rounded-lg border-2 transition-colors",O===0?"bg-red-50 dark:bg-red-900/20 border-red-400 dark:border-red-500 text-red-600 dark:text-red-400":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:border-red-300 dark:hover:border-red-400"),children:[c.jsx(W,{name:"DisLikeHand",width:16,height:16,style:{color:O===0?"#ef4444":"#6b7280"}}),c.jsx("span",{className:"text-sm font-medium",children:u})]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:i}),c.jsx("textarea",{value:j,maxLength:500,onChange:T=>H(T.target.value),placeholder:l,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent placeholder-gray-500 dark:placeholder-gray-400",rows:3}),c.jsxs("div",{className:"flex justify-end",children:[c.jsx(Qe,{onClick:_,size:"sm",className:"bg-transparent dark:bg-transparent border-2 border-red-500 dark:border-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 gap-2 disabled:opacity-50 disabled:cursor-not-allowed mr-4",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium",children:g})}),c.jsx(Qe,{onClick:()=>G({selectedFeedback:O??0,comment:j}),isLoading:m,disabled:m,size:"sm",className:"bg-primary dark:bg-primary hover:bg-primary/90 dark:hover:bg-primary/90 gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:c.jsx("div",{className:"text-sm flex items-center justify-center gap-3 font-medium text-primary-foreground dark:text-primary-foreground",children:f})})]})]})]}),Q&&c.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-green-600 dark:text-green-400",children:[c.jsx("span",{className:"text-sm font-medium",children:E}),c.jsx("div",{className:"w-5 h-5 bg-green-500 dark:bg-green-600 rounded-full flex items-center justify-center",children:c.jsx(W,{name:"Check",width:12,height:12,style:{color:"white"}})})]})]})})]})})};var Do="focusScope.autoFocusOnMount",yo="focusScope.autoFocusOnUnmount",gl={bubbles:!1,cancelable:!0},d3="FocusScope",Mi=C.forwardRef((e,t)=>{const{loop:A=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:o,...s}=e,[i,a]=C.useState(null),u=at(r),l=at(o),g=C.useRef(null),d=Ce(t,B=>a(B)),f=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(n){let B=function(x){if(f.paused||!i)return;const b=x.target;i.contains(b)?g.current=b:Dt(g.current,{select:!0})},h=function(x){if(f.paused||!i)return;const b=x.relatedTarget;b!==null&&(i.contains(b)||Dt(g.current,{select:!0}))},Q=function(x){if(document.activeElement===document.body)for(const I of x)I.removedNodes.length>0&&Dt(i)};document.addEventListener("focusin",B),document.addEventListener("focusout",h);const m=new MutationObserver(Q);return i&&m.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",B),document.removeEventListener("focusout",h),m.disconnect()}}},[n,i,f.paused]),C.useEffect(()=>{if(i){Cl.add(f);const B=document.activeElement;if(!i.contains(B)){const Q=new CustomEvent(Do,gl);i.addEventListener(Do,u),i.dispatchEvent(Q),Q.defaultPrevented||(C3(Q3(zC(i)),{select:!0}),document.activeElement===B&&Dt(i))}return()=>{i.removeEventListener(Do,u),setTimeout(()=>{const Q=new CustomEvent(yo,gl);i.addEventListener(yo,l),i.dispatchEvent(Q),Q.defaultPrevented||Dt(B??document.body,{select:!0}),i.removeEventListener(yo,l),Cl.remove(f)},0)}}},[i,u,l,f]);const E=C.useCallback(B=>{if(!A&&!n||f.paused)return;const h=B.key==="Tab"&&!B.altKey&&!B.ctrlKey&&!B.metaKey,Q=document.activeElement;if(h&&Q){const m=B.currentTarget,[x,b]=f3(m);x&&b?!B.shiftKey&&Q===b?(B.preventDefault(),A&&Dt(x,{select:!0})):B.shiftKey&&Q===x&&(B.preventDefault(),A&&Dt(b,{select:!0})):Q===m&&B.preventDefault()}},[A,n,f.paused]);return c.jsx(se.div,{tabIndex:-1,...s,ref:d,onKeyDown:E})});Mi.displayName=d3;function C3(e,{select:t=!1}={}){const A=document.activeElement;for(const n of e)if(Dt(n,{select:t}),document.activeElement!==A)return}function f3(e){const t=zC(e),A=dl(t,e),n=dl(t.reverse(),e);return[A,n]}function zC(e){const t=[],A=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;A.nextNode();)t.push(A.currentNode);return t}function dl(e,t){for(const A of e)if(!B3(A,{upTo:t}))return A}function B3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function E3(e){return e instanceof HTMLInputElement&&"select"in e}function Dt(e,{select:t=!1}={}){if(e&&e.focus){const A=document.activeElement;e.focus({preventScroll:!0}),e!==A&&E3(e)&&t&&e.select()}}var Cl=I3();function I3(){let e=[];return{add(t){const A=e[0];t!==A&&(A==null||A.pause()),e=fl(e,t),e.unshift(t)},remove(t){var A;e=fl(e,t),(A=e[0])==null||A.resume()}}}function fl(e,t){const A=[...e],n=A.indexOf(t);return n!==-1&&A.splice(n,1),A}function Q3(e){return e.filter(t=>t.tagName!=="A")}var Fo=0;function HC(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Bl()),document.body.insertAdjacentElement("beforeend",e[1]??Bl()),Fo++,()=>{Fo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fo--}},[])}function Bl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var nt=function(){return nt=Object.assign||function(t){for(var A,n=1,r=arguments.length;n<r;n++){A=arguments[n];for(var o in A)Object.prototype.hasOwnProperty.call(A,o)&&(t[o]=A[o])}return t},nt.apply(this,arguments)};function VC(e,t){var A={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(A[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(A[n[r]]=e[n[r]]);return A}function h3(e,t,A){if(A||arguments.length===2)for(var n=0,r=t.length,o;n<r;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var or="right-scroll-bar-position",sr="width-before-scroll-bar",m3="with-scroll-bars-hidden",p3="--removed-body-scroll-bar-size";function Po(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function v3(e,t){var A=w.useState(function(){return{value:e,callback:t,facade:{get current(){return A.value},set current(n){var r=A.value;r!==n&&(A.value=n,A.callback(n,r))}}}})[0];return A.callback=t,A.facade}var w3=typeof window<"u"?C.useLayoutEffect:C.useEffect,El=new WeakMap;function x3(e,t){var A=v3(null,function(n){return e.forEach(function(r){return Po(r,n)})});return w3(function(){var n=El.get(A);if(n){var r=new Set(n),o=new Set(e),s=A.current;r.forEach(function(i){o.has(i)||Po(i,null)}),o.forEach(function(i){r.has(i)||Po(i,s)})}El.set(A,e)},[e]),A}function b3(e){return e}function D3(e,t){t===void 0&&(t=b3);var A=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return A.length?A[A.length-1]:e},useMedium:function(o){var s=t(o,n);return A.push(s),function(){A=A.filter(function(i){return i!==s})}},assignSyncMedium:function(o){for(n=!0;A.length;){var s=A;A=[],s.forEach(o)}A={push:function(i){return o(i)},filter:function(){return A}}},assignMedium:function(o){n=!0;var s=[];if(A.length){var i=A;A=[],i.forEach(o),s=A}var a=function(){var l=s;s=[],l.forEach(o)},u=function(){return Promise.resolve().then(a)};u(),A={push:function(l){s.push(l),u()},filter:function(l){return s=s.filter(l),A}}}};return r}function y3(e){e===void 0&&(e={});var t=D3(null);return t.options=nt({async:!0,ssr:!1},e),t}var GC=function(e){var t=e.sideCar,A=VC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return C.createElement(n,nt({},A))};GC.isSideCarExport=!0;function F3(e,t){return e.useMedium(t),GC}var YC=y3(),No=function(){},Ur=C.forwardRef(function(e,t){var A=C.useRef(null),n=C.useState({onScrollCapture:No,onWheelCapture:No,onTouchMoveCapture:No}),r=n[0],o=n[1],s=e.forwardProps,i=e.children,a=e.className,u=e.removeScrollBar,l=e.enabled,g=e.shards,d=e.sideCar,f=e.noRelative,E=e.noIsolation,B=e.inert,h=e.allowPinchZoom,Q=e.as,m=Q===void 0?"div":Q,x=e.gapMode,b=VC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=d,v=x3([A,t]),p=nt(nt({},b),r);return C.createElement(C.Fragment,null,l&&C.createElement(I,{sideCar:YC,removeScrollBar:u,shards:g,noRelative:f,noIsolation:E,inert:B,setCallbacks:o,allowPinchZoom:!!h,lockRef:A,gapMode:x}),s?C.cloneElement(C.Children.only(i),nt(nt({},p),{ref:v})):C.createElement(m,nt({},p,{className:a,ref:v}),i))});Ur.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ur.classNames={fullWidth:sr,zeroRight:or};var P3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function N3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P3();return t&&e.setAttribute("nonce",t),e}function M3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function T3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var j3=function(){var e=0,t=null;return{add:function(A){e==0&&(t=N3())&&(M3(t,A),T3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},k3=function(){var e=j3();return function(t,A){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&A])}},WC=function(){var e=k3(),t=function(A){var n=A.styles,r=A.dynamic;return e(n,r),null};return t},R3={left:0,top:0,right:0,gap:0},Mo=function(e){return parseInt(e||"",10)||0},L3=function(e){var t=window.getComputedStyle(document.body),A=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Mo(A),Mo(n),Mo(r)]},S3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return R3;var t=L3(e),A=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-A+t[2]-t[0])}},O3=WC(),vA="data-scroll-locked",z3=function(e,t,A,n){var r=e.left,o=e.top,s=e.right,i=e.gap;return A===void 0&&(A="margin"),`
68
68
  .`.concat(m3,` {
69
69
  overflow: hidden `).concat(n,`;
70
70
  padding-right: `).concat(i,"px ").concat(n,`;