/*! For license information please see main.4d1486fc2829fd0b02e6.js.LICENSE.txt */
var OcelotAI;(()=>{var e,t,n={1025:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function f(e){return e.length}function h(e,t){return t.push(e),e}var m=1,v=1,g=0,y=0,b=0,x="";function w(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:m,column:v,length:i,return:""}}function E(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=y>0?u(x,--y):0,v--,10===b&&(v=1,m--),b}function A(){return b=y<g?u(x,y++):0,v++,10===b&&(v=1,m++),b}function k(){return u(x,y)}function C(){return y}function T(e,t){return d(x,e,t)}function O(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return m=v=1,g=p(x=e),y=0,[]}function _(e){return x="",e}function I(e){return s(T(y-1,M(91===e?e+2:40===e?e+1:e)))}function P(e){for(;(b=k())&&b<33;)A();return O(e)>2||O(b)>3?"":" "}function N(e,t){for(;--t&&A()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,C()+(t<6&&32==k()&&32==A()))}function M(e){for(;A();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&M(b);break;case 40:41===e&&M(e);break;case 92:A()}return y}function L(e,t){for(;A()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+T(t,y-1)+"*"+a(47===e?e:A())}function D(e){for(;!O(k());)A();return T(e,y)}var F="-ms-",j="-moz-",$="-webkit-",z="comm",B="rule",V="decl",W="@keyframes";function U(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case V:return e.return=e.return||e.value;case z:return"";case W:return e.return=e.value+"{"+U(e.children,r)+"}";case B:e.value=e.props.join(",")}return p(n=U(e.children,r))?e.return=e.value+"{"+n+"}":""}function H(e){return _(G("",null,null,null,[""],e=R(e),0,[0],e))}function G(e,t,n,r,o,i,s,d,f){for(var m=0,v=0,g=s,y=0,b=0,x=0,w=1,E=1,T=1,O=0,R="",_=o,M=i,F=r,j=R;E;)switch(x=O,O=A()){case 40:if(108!=x&&58==u(j,g-1)){-1!=c(j+=l(I(O),"&","&\f"),"&\f")&&(T=-1);break}case 34:case 39:case 91:j+=I(O);break;case 9:case 10:case 13:case 32:j+=P(x);break;case 92:j+=N(C()-1,7);continue;case 47:switch(k()){case 42:case 47:h(K(L(A(),C()),t,n),f);break;default:j+="/"}break;case 123*w:d[m++]=p(j)*T;case 125*w:case 59:case 0:switch(O){case 0:case 125:E=0;case 59+v:-1==T&&(j=l(j,/\f/g,"")),b>0&&p(j)-g&&h(b>32?Y(j+";",r,n,g-1):Y(l(j," ","")+";",r,n,g-2),f);break;case 59:j+=";";default:if(h(F=Q(j,t,n,m,v,o,d,R,_=[],M=[],g),i),123===O)if(0===v)G(j,t,F,F,_,i,g,d,M);else switch(99===y&&110===u(j,3)?100:y){case 100:case 108:case 109:case 115:G(e,F,F,r&&h(Q(e,F,F,0,0,o,d,R,o,_=[],g),M),o,M,g,d,r?_:M);break;default:G(j,F,F,F,[""],M,0,d,M)}}m=v=b=0,w=T=1,R=j="",g=s;break;case 58:g=1+p(j),b=x;default:if(w<1)if(123==O)--w;else if(125==O&&0==w++&&125==S())continue;switch(j+=a(O),O*w){case 38:T=v>0?1:(j+="\f",-1);break;case 44:d[m++]=(p(j)-1)*T,T=1;break;case 64:45===k()&&(j+=I(A())),y=k(),v=g=p(R=j+=D(C())),O++;break;case 45:45===x&&2==p(j)&&(w=0)}}return i}function Q(e,t,n,r,a,i,c,u,p,h,m){for(var v=a-1,g=0===a?i:[""],y=f(g),b=0,x=0,E=0;b<r;++b)for(var S=0,A=d(e,v+1,v=o(x=c[b])),k=e;S<y;++S)(k=s(x>0?g[S]+" "+A:l(A,/&\f/g,g[S])))&&(p[E++]=k);return w(e,t,n,0===a?B:u,p,h,m)}function K(e,t,n){return w(e,t,n,z,a(b),d(e,2,-2),0)}function Y(e,t,n,r){return w(e,t,n,V,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!O(o);)A();return T(e,y)},J=function(e,t){return _(function(e,t){var n=-1,r=44;do{switch(O(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=A());return e}(R(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var o=[],a=J(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+j+e+F+e+e;case 6828:case 4268:return $+e+F+e+e;case 6165:return $+e+F+"flex-"+e+e;case 5187:return $+e+l(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return $+e+F+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return $+e+F+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+F+l(e,"shrink","negative")+e;case 5292:return $+e+F+l(e,"basis","preferred-size")+e;case 6060:return $+"box-"+l(e,"-grow","")+$+e+F+l(e,"grow","positive")+e;case 4554:return $+l(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+j+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+$)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(45===u(e,14)?"inline-":"")+"box$3$1"+$+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return $+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+F+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+F+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=ne(e.value,e.length);break;case W:return U([E(e,{value:l(e.value,"@","@"+$)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([E(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([E(e,{props:[l(t,/:(plac\w+)/,":"+$+"input-$1")]}),E(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),E(e,{props:[l(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var a,i,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d,p,h=[q,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(u=[ee,te].concat(o,h),d=f(u),function(e,t,n,r){for(var o="",a=0;a<d;a++)o+=u[a](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,U(H(e?e+"{"+t.styles+"}":t.styles),m),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new r({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return v.sheet.hydrate(l),v}},2359:(e,t,n)=>{"use strict";function r(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}n.d(t,{A:()=>r})},2536:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},1338:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,T:()=>c,i:()=>a,w:()=>l});var r=n(9532),o=n(1025),a=(n(402),n(5548),!0),i=r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null);var s=i.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(i);return e(t,o,n)}))};a||(l=function(e){return function(t){var n=(0,r.useContext)(i);return null===n?(n=(0,o.A)({key:"css"}),r.createElement(i.Provider,{value:n},e(t,n))):e(t,n)}});var c=r.createContext({})},402:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r=n(2359),o=n(2271),a=n(2536),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,a.A)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===o.A[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=p(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":c(i)&&(r+=u(a)+":"+d(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=p(e,t,i);switch(a){case"animation":case"animationName":r+=u(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)c(i[l])&&(r+=u(a)+":"+d(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=f,a=n(e);return f=o,p(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var f,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";f=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,a+=p(n,t,i)):a+=i[0];for(var s=1;s<e.length;s++)a+=p(n,t,e[s]),o&&(a+=i[s]);h.lastIndex=0;for(var l,c="";null!==(l=h.exec(a));)c+="-"+l[1];return{name:(0,r.A)(a)+c,styles:a,next:f}}},2271:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},5548:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>i});var o=n(9532),a=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,i=a||function(e){return e()},s=a||o.useLayoutEffect},4624:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>a});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},845:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},5741:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5"}),"Attachment")},1095:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},2790:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline")},7238:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},314:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout")},8966:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},9113:(e,t,n)=>{"use strict";var r=n(5206);t.A=void 0;var o=r(n(5947)),a=n(4256);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},5947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(9021)},7856:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},6912:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},2581:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(7006),o=n(6993),a=n(9359),i=n(9239),s=n(4942),l=n(1896),c=n(9591);var u=n(7466);const d={black:"#000",white:"#fff"};var p=n(6912);const f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var y=n(7856);const b=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,a)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(e="light"){return"dark"===e?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),A=e.error||function(e="light"){return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),k=e.info||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(t),C=e.success||function(e="light"){return"dark"===e?{main:y.A[400],light:y.A[300],dark:y.A[700]}:{main:y.A[800],light:y.A[500],dark:y.A[900]}}(t),T=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function O(e){return(0,u.eM)(e,w.text.primary)>=n?w.text.primary:x.text.primary}const R=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,a.A)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,a.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return E(e,"light",o,s),E(e,"dark",i,s),e.contrastText||(e.contrastText=O(e.main)),e},_={dark:w,light:x};return(0,i.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:R({color:c,name:"primary"}),secondary:R({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:A,name:"error"}),warning:R({color:T,name:"warning"}),info:R({color:k,name:"info"}),success:R({color:C,name:"success"}),grey:p.A,contrastThreshold:n,getContrastText:O,augmentColor:R,tonalOffset:s},_[t]),l)}const A=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const k={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){const n="function"==typeof t?t(e):t,{fontFamily:a=C,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:h}=n,m=(0,o.A)(n,A);const v=s/14,g=h||(e=>e/p*v+"rem"),y=(e,t,n,o,i)=>{return(0,r.A)({fontFamily:a,fontWeight:e,fontSize:g(t),lineHeight:n},a===C?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},i,f);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,k),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.A)((0,r.A)({htmlFontSize:p,pxToRem:g,fontFamily:a,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function O(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const R=["none",O(0,2,1,-1,0,1,1,0,0,1,3,0),O(0,3,1,-2,0,2,2,0,0,1,5,0),O(0,3,3,-2,0,3,4,0,0,1,8,0),O(0,2,4,-1,0,4,5,0,0,1,10,0),O(0,3,5,-1,0,5,8,0,0,1,14,0),O(0,3,5,-1,0,6,10,0,0,1,18,0),O(0,4,5,-2,0,7,10,1,0,2,16,1),O(0,5,5,-3,0,8,10,1,0,3,14,2),O(0,5,6,-3,0,9,12,1,0,3,16,2),O(0,6,6,-3,0,10,14,1,0,4,18,3),O(0,6,7,-4,0,11,15,1,0,4,20,3),O(0,7,8,-4,0,12,17,2,0,5,22,4),O(0,7,8,-4,0,13,19,2,0,5,24,4),O(0,7,9,-4,0,14,21,2,0,5,26,4),O(0,8,9,-5,0,15,22,2,0,6,28,5),O(0,8,10,-5,0,16,24,2,0,6,30,5),O(0,8,11,-5,0,17,26,2,0,6,32,5),O(0,9,11,-5,0,18,28,2,0,7,34,6),O(0,9,12,-6,0,19,29,2,0,7,36,6),O(0,10,13,-6,0,20,31,3,0,8,38,7),O(0,10,13,-6,0,21,33,3,0,8,40,7),O(0,10,14,-6,0,22,35,3,0,8,42,7),O(0,11,14,-7,0,23,36,3,0,9,44,8),O(0,11,15,-7,0,24,38,3,0,9,46,8)];var _=n(4349);const I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},P=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(e={},...t){const{mixins:n={},palette:u={},transitions:d={},typography:p={}}=e,f=(0,o.A)(e,P);if(e.vars)throw new Error((0,a.A)(18));const h=S(u),m=(0,s.A)(e);let v=(0,i.A)(m,{mixins:(g=m.breakpoints,y=n,(0,r.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},y)),palette:h,shadows:R.slice(),typography:T(h,p),transitions:(0,_.Ay)(d),zIndex:(0,r.A)({},I)});var g,y;return v=(0,i.A)(v,f),v=t.reduce(((e,t)=>(0,i.A)(e,t)),v),v.unstable_sxConfig=(0,r.A)({},l.A,null==f?void 0:f.unstable_sxConfig),v.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},v}const M=N},4349:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>s});var r=n(6993),o=n(7006);const a=["duration","easing","delay"],i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,o.A)({},i,e.easing),n=(0,o.A)({},s,e.duration);return(0,o.A)({getAutoHeightDuration:c,create:(e=["all"],o={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:c=0}=o;(0,r.A)(o,a);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:l(i)} ${s} ${"string"==typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},375:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(2581).A)()},3298:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},2426:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,_n:()=>s,ep:()=>i});var r=n(5069),o=n(375),a=n(3298);const i=e=>(0,r.MC)(e)&&"classes"!==e,s=r.MC,l=(0,r.Ay)({themeId:a.A,defaultTheme:o.A,rootShouldForwardProp:i})},5631:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3447),o=n(375),a=n(3298);function i({props:e,name:t}){return(0,r.A)({props:e,name:t,defaultTheme:o.A,themeId:a.A})}},2006:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9359);const o=function(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},769:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(7006),o=n(9532),a=n(6993),i=n(5247),s=n(1869),l=n(2006),c=n(5631),u=n(2426),d=n(8271),p=n(8531);function f(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(4256);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],v=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),g=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:g="svg",fontSize:y="medium",htmlColor:b,inheritViewBox:x=!1,titleAccess:w,viewBox:E="0 0 24 24"}=n,S=(0,a.A)(n,m),A=o.isValidElement(u)&&"svg"===u.type,k=(0,r.A)({},n,{color:p,component:g,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:E,hasSvgAsChild:A}),C={};x||(C.viewBox=E);const T=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,s.A)(o,f,r)})(k);return(0,h.jsxs)(v,(0,r.A)({as:g,className:(0,i.A)(T.root,d),focusable:"false",color:b,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},C,S,A&&u.props,{ownerState:k,children:[A?u.props.children:u,w?(0,h.jsx)("title",{children:w}):null]}))}));g.muiName="SvgIcon";const y=g;function b(e,t){function n(n,o){return(0,h.jsx)(y,(0,r.A)({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return n.muiName=y.muiName,o.memo(o.forwardRef(n))}},5589:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(7267).A},9021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>a,createSvgIcon:()=>i.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>p,setRef:()=>f,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>h.A,unstable_useId:()=>m.A,unsupportedProp:()=>v,useControlled:()=>g.A,useEventCallback:()=>y.A,useForkRef:()=>b.A,useIsFocusVisible:()=>x.A});var r=n(6353),o=n(2006);const a=n(7491).A;var i=n(769),s=n(5589);const l=function(e,t){return()=>null};var c=n(4958),u=n(8230),d=n(5543);n(5216);const p=function(e,t){return()=>null};const f=n(5711).A;var h=n(6168),m=n(9842);const v=function(e,t,n,r,o){return null};var g=n(6898),y=n(5532),b=n(926),x=n(697);const w={configure:e=>{r.A.configure(e)}}},4958:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9532);const o=function(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},8230:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(3639).A},5543:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(8999).A},6898:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9532);const o=function({controlled:e,default:t,name:n,state:o="value"}){const{current:a}=r.useRef(void 0!==e),[i,s]=r.useState(t);return[a?e:i,r.useCallback((e=>{a||s(e)}),[])]}},6168:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6259).A},5532:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(8125).A},926:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(8413).A},9842:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(4783).A},697:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(9532);class o{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new o}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let a=!0,i=!1;const s=new o,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function u(){a=!1}function d(){"hidden"===this.visibilityState&&i&&(a=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return a||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const f=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,s.start(100,(()=>{i=!1})),t.current=!1,!0)},ref:e}}},9926:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>O,q_:()=>R});var r=n(5216),o=n(9532),a=n(2536),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,a.A)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(1338),c=n(4624),u=n(2359),d=n(2271),p=/[A-Z]|^ms/g,f=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h=function(e){return 45===e.charCodeAt(1)},m=function(e){return null!=e&&"boolean"!=typeof e},v=(0,a.A)((function(e){return h(e)?e:e.replace(p,"-$&").toLowerCase()})),g=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(f,(function(e,t,n){return b={name:t,styles:n,next:b},t}))}return 1===d.A[e]||h(e)||"number"!=typeof t||0===t?t:t+"px"};function y(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return b={name:n.name,styles:n.styles,next:b},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)b={name:r.name,styles:r.styles,next:b},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=y(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":m(i)&&(r+=v(a)+":"+g(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=y(e,t,i);switch(a){case"animation":case"animationName":r+=v(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)m(i[l])&&(r+=v(a)+":"+g(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=b,a=n(e);return b=o,y(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var b,x=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var w=n(5548),E=s,S=function(e){return"theme"!==e},A=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?E:S},k=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},C=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,w.s)((function(){return(0,c.sk)(t,n,r)})),null},T=function e(t,n){var a,i,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(a=n.label,i=n.target);var p=k(t,n,s),f=p||A(d),h=!f("as");return function(){var m=arguments,v=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&v.push("label:"+a+";"),null==m[0]||void 0===m[0].raw)v.push.apply(v,m);else{0,v.push(m[0][0]);for(var g=m.length,w=1;w<g;w++)v.push(m[w],m[0][w])}var E=(0,l.w)((function(e,t,n){var r=h&&e.as||d,a="",s=[],m=e;if(null==e.theme){for(var g in m={},e)m[g]=e[g];m.theme=o.useContext(l.T)}"string"==typeof e.className?a=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var w=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";b=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=y(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=y(n,t,e[i]),r&&(o+=a[i]);x.lastIndex=0;for(var s,l="";null!==(s=x.exec(o));)l+="-"+s[1];return{name:(0,u.A)(o)+l,styles:o,next:b}}(v.concat(s),t.registered,m);a+=t.key+"-"+w.name,void 0!==i&&(a+=" "+i);var E=h&&void 0===p?A(r):f,S={};for(var k in e)h&&"as"===k||E(k)&&(S[k]=e[k]);return S.className=a,S.ref=n,o.createElement(o.Fragment,null,o.createElement(C,{cache:t,serialized:w,isStringTag:"string"==typeof r}),o.createElement(r,S))}));return E.displayName=void 0!==a?a:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=d,E.__emotion_styles=v,E.__emotion_forwardProp=p,Object.defineProperty(E,"toString",{value:function(){return"."+i}}),E.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:k(E,o,!0)})).apply(void 0,v)},E}}.bind();function O(e,t){return T(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){T[e]=T(e)}));const R=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},1832:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>i,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var r=n(1620);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function i(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||a;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||a;return Object.keys(t).reduce(((r,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a)){r[e.up(a)]=n(t[a],a)}else{const e=a;r[e]=t[e]}return r}),{})}return n(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e,...t){const n=s(e),o=[n,...t].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(n),o)}function u({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}},7466:(e,t,n)=>{"use strict";n.d(t,{X4:()=>u,e$:()=>d,tL:()=>f,eM:()=>c,a:()=>p});var r=n(6188);const o=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))};function a(e,t=0,n=1){return o(e,t,n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.A)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.A)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:o}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){const n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return l(e)>.5?d(e,t):p(e,t)}},5069:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,MC:()=>p});var r=n(5216),o=n(7907),a=n(9926),i=n(1620),s=n(4942),l=n(9591);const c=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const f=(0,s.A)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function v(e){return e?(t,n)=>n[e]:null}function g(e,t){let{ownerState:n}=t,a=(0,o.A)(t,c);const i="function"==typeof e?e((0,r.A)({ownerState:n},a)):e;if(Array.isArray(i))return i.flatMap((e=>g(e,(0,r.A)({ownerState:n},a))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,o.A)(i,u);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,r.A)({ownerState:n},a,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&a[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,r.A)({ownerState:n},a,n)):e.style))})),t}return i}function y(e={}){const{themeId:t,defaultTheme:n=f,rootShouldForwardProp:s=p,slotShouldForwardProp:c=p}=e,u=e=>(0,l.A)((0,r.A)({},e,{theme:m((0,r.A)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,l={})=>{(0,a.q_)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:w=v(h(y))}=l,E=(0,o.A)(l,d),S=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,A=x||!1;let k=p;"Root"===y||"root"===y?k=s:y?k=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const C=(0,a.Ay)(e,(0,r.A)({shouldForwardProp:k,label:undefined},E)),T=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.Q)(e)?o=>g(e,(0,r.A)({},o,{theme:m({theme:o.theme,defaultTheme:n,themeId:t})})):e,O=(o,...a)=>{let i=T(o);const s=a?a.map(T):[];f&&w&&s.push((e=>{const o=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));if(!o.components||!o.components[f]||!o.components[f].styleOverrides)return null;const a=o.components[f].styleOverrides,i={};return Object.entries(a).forEach((([t,n])=>{i[t]=g(n,(0,r.A)({},e,{theme:o}))})),w(e,i)})),f&&!S&&s.push((e=>{var o;const a=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));return g({variants:null==a||null==(o=a.components)||null==(o=o[f])?void 0:o.variants},(0,r.A)({},e,{theme:a}))})),A||s.push(u);const l=s.length-a.length;if(Array.isArray(o)&&l>0){const e=new Array(l).fill("");i=[...o,...e],i.raw=[...o.raw,...e]}const c=C(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return C.withConfig&&(O.withConfig=C.withConfig),O}}},4942:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(5216),o=n(7907),a=n(1620);const i=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.A)({},e,{[t.key]:t.val})),{})};const l={borderRadius:4};var c=n(4636);var u=n(9591),d=n(1896);function p(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const f=["breakpoints","palette","spacing","shape"];const h=function(e={},...t){const{breakpoints:n={},palette:h={},spacing:m,shape:v={}}=e,g=(0,o.A)(e,f),y=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,l=(0,o.A)(e,i),c=s(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-a/100}${n})`}function f(e,r){const o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-a/100}${n})`}return(0,r.A)({keys:u,values:c,up:d,down:p,between:f,only:function(e){return u.indexOf(e)+1<u.length?f(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):f(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}(n),b=function(e=8){if(e.mui)return e;const t=(0,c.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(m);let x=(0,a.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},h),spacing:b,shape:(0,r.A)({},l,v)},g);return x.applyStyles=p,x=t.reduce(((e,t)=>(0,a.A)(e,t)),x),x.unstable_sxConfig=(0,r.A)({},d.A,null==g?void 0:g.unstable_sxConfig),x.unstable_sx=function(e){return(0,u.A)({sx:e,theme:this})},x}},1496:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1620);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},4636:(e,t,n)=>{"use strict";n.d(t,{LX:()=>h,MA:()=>f,_W:()=>m,Lc:()=>y,Ms:()=>b});var r=n(1832),o=n(741),a=n(1496);const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=i[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function f(e,t,n,r){var a;const i=null!=(a=(0,o.Yn)(e,t,!1))?a:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function h(e){return f(e,"spacing",8)}function m(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function v(e,t,n,o){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),o),i=e[n];return(0,r.NI)(e,i,a)}function g(e,t){const n=h(e.theme);return Object.keys(e).map((r=>v(e,t,r,n))).reduce(a.A,{})}function y(e){return g(e,u)}function b(e){return g(e,d)}function x(e){return g(e,p)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=p},741:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>i,Yn:()=>a});var r=n(990),o=n(1832);function a(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function i(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o,r,e)),o}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=a(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=i(u,l,e);return e===o&&"string"==typeof e&&(o=i(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},1896:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(4636),o=n(741),a=n(1496);const i=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,a.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(1832);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),f=c("borderBottom",l),h=c("borderLeft",l),m=c("borderColor"),v=c("borderTopColor"),g=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),E=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};E.propTypes={},E.filterProps=["borderRadius"];i(u,d,p,f,h,m,v,g,y,b,E,x,w);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const A=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};A.propTypes={},A.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];i(S,A,k,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function C(e,t){return"grey"===t?t:e}i((0,o.Ay)({prop:"color",themeKey:"palette",transform:C}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:C}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:C}));function T(e){return e<=1&&0!==e?100*e+"%":e}const O=(0,o.Ay)({prop:"width",transform:T}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:T(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};R.filterProps=["maxWidth"];const _=(0,o.Ay)({prop:"minWidth",transform:T}),I=(0,o.Ay)({prop:"height",transform:T}),P=(0,o.Ay)({prop:"maxHeight",transform:T}),N=(0,o.Ay)({prop:"minHeight",transform:T}),M=((0,o.Ay)({prop:"size",cssProperty:"width",transform:T}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:T}),i(O,R,_,I,P,N,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:E},color:{themeKey:"palette",transform:C},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:C},backgroundColor:{themeKey:"palette",transform:C},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:k},columnGap:{style:A},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:T},maxWidth:{style:R},minWidth:{transform:T},height:{transform:T},maxHeight:{transform:T},minHeight:{transform:T},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},9591:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(990),o=n(1496),a=n(741),i=n(1832),s=n(1896);const l=function(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const f=(0,a.Yn)(n,u)||{};if(p)return p(s);return(0,i.NI)(s,t,(t=>{let n=(0,a.BO)(f,d,t);return t===n&&"string"==typeof t&&(n=(0,a.BO)(f,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:a,theme:l={}}=n||{};if(!a)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const a=(0,i.EU)(l.breakpoints),s=Object.keys(a);let u=a;return Object.keys(r).forEach((n=>{const a=(s=r[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=a)if("object"==typeof a)if(c[n])u=(0,o.A)(u,e(n,a,l,c));else{const e=(0,i.NI)({theme:l},a,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,a)?u=(0,o.A)(u,e):u[n]=t({sx:a,theme:l})}else u=(0,o.A)(u,e(n,a,l,c))})),(0,i.vf)(s,u)}return Array.isArray(a)?a.map(u):u(a)}}();l.filterProps=["sx"];const c=l},8910:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4942),o=n(9995);const a=(0,r.A)();const i=function(e=a){return(0,o.A)(e)}},4373:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5216);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((a=>{if(a.toString().match(/^(components|slots)$/))n[a]=(0,r.A)({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const i=e[a]||{},s=t[a];n[a]={},s&&Object.keys(s)?i&&Object.keys(i)?(n[a]=(0,r.A)({},s),Object.keys(i).forEach((e=>{n[a][e]=o(i[e],s[e])}))):n[a]=s:n[a]=i}else void 0===n[a]&&(n[a]=e[a])})),n}function a(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?o(t.components[n].defaultProps,r):r}},3447:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4373),o=n(8910);function a({props:e,name:t,defaultTheme:n,themeId:a}){let i=(0,o.A)(n);a&&(i=i[a]||i);return(0,r.A)({theme:i,name:t,props:e})}},9995:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9532),o=n(1338);const a=function(e=null){const t=r.useContext(o.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},6353:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},1869:(e,t,n)=>{"use strict";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},7491:(e,t,n)=>{"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{A:()=>r})},7267:(e,t,n)=>{"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{A:()=>r})},9239:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5216);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function a(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=a(e[n])})),t}function i(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?s[r]=i(e[r],t[r],n):n.clone?s[r]=o(t[r])?a(t[r]):t[r]:s[r]=t[r])})),s}},9359:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},8531:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});var r=n(6353);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t,n="Mui"){const a=o[t];return a?`${n}-${a}`:`${r.A.generate(e)}-${t}`}},8271:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8531);function o(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=(0,r.Ay)(e,t,n)})),o}},3639:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},8999:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3639);function o(e){return(0,r.A)(e).defaultView||window}},5711:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},6259:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9532);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},8125:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9532),o=n(6259);const a=function(e){const t=r.useRef(e);return(0,o.A)((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}},8413:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9532),o=n(5711);function a(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,o.A)(e,t)}))}),e)}},4783:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var o=n(9532);let a=0;const i=(r||(r=n.t(o,2)))["useId".toString()];function s(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(a+=1,n(`mui-${a}`))}),[t]),r}(e)}},990:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6188);function o(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},1620:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,Q:()=>o});var r=n(5216);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function a(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=a(e[n])})),t}function i(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?s[r]=i(e[r],t[r],n):n.clone?s[r]=o(t[r])?a(t[r]):t[r]:s[r]=t[r])})),s}},6188:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},2329:(e,t,n)=>{"use strict";var r=n(3089),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<i.length;++v){var g=i[v];if(!(a[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=p(n,g);try{c(t,g,y)}catch(e){}}}}return t}},7642:(e,t,n)=>{var r,o;!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var i=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=i,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(n);/^[\{\[]/.test(i)&&(n=i)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,!0!==a[l]&&(s+="="+a[l].split(";")[0]));return document.cookie=t+"="+n+s}}function i(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(r.read||r)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(o[c]=l,e===c)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},6623:(e,t,n)=>{var r=n(6027).Symbol;e.exports=r},9574:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},2930:(e,t,n)=>{var r=n(6623),o=n(2145),a=n(3796),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},5162:(e,t,n)=>{var r=n(6623),o=n(9574),a=n(8651),i=n(6220),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},710:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2145:(e,t,n)=>{var r=n(6623),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},3796:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6027:(e,t,n)=>{var r=n(710),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},2050:(e,t,n)=>{var r=n(3180),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,"\\$&"):e}},8651:e=>{var t=Array.isArray;e.exports=t},3812:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6220:(e,t,n)=>{var r=n(2930),o=n(3812);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},3180:(e,t,n)=>{var r=n(5162);e.exports=function(e){return null==e?"":r(e)}},5474:(e,t,n)=>{e.exports=n(9980)},9980:(e,t)=>{var n,r={asArray:function(e){var t=this.getBreakPoints(e),n=this.getCustomQueries(e);return this._translate(this._makeSteps(this._toSortedArray(t))).concat(this._objToArr(n))},asObject:function(e){return this._arrToObj(this.asArray(e))},getBreakPoints:function(e){return Object.keys(e).reduce((function(t,n){return"number"==typeof e[n]&&(t[n]=e[n]),t}),{})},getCustomQueries:function(e){return Object.keys(e).reduce((function(t,n){return"string"==typeof e[n]&&(t[n]=e[n]),t}),{})},_toSortedArray:function(e){return Object.keys(e).map((function(t){return[t,e[t]]})).sort((function(e,t){return e[1]-t[1]}))},_makeSteps:function(e){return e[e.length-1][1]===1/0?e:e.concat([1/0])},_translate:function(e){return e.map((function(t,n){return 0===n?[t[0],"screen and (max-width: "+t[1]+"px)"]:n===e.length-1?[t[0]||"default","screen and (min-width: "+(e[n-1][1]+1)+"px)"]:[t[0],"screen and (min-width: "+(e[n-1][1]+1)+"px) and (max-width: "+t[1]+"px)"]}))},_objToArr:function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))},_arrToObj:function(e){return e.reduce((function(e,t){return e[t[0]]=t[1],e}),{})}};void 0!==e.exports?e.exports=r:void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)},968:(e,t,n)=>{"use strict";var r=n(5823);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},4606:(e,t,n)=>{e.exports=n(968)()},5823:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1405:(e,t,n)=>{"use strict";var r=n(9532);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},l={};function c(e){return!!a.call(l,e)||!a.call(s,e)&&(i.test(e)?l[e]=!0:(s[e]=!0,!1))}function u(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new u(e,2,!1,e,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".split(" ").forEach((function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var p=/[\-:]([a-z])/g;function f(e){return e[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".split(" ").forEach((function(e){var t=e.replace(p,f);d[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(p,f);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(p,f);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(h).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),h[t]=h[e]}))}));var v=/["'&<>]/;function g(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=v.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var y=/([A-Z])/g,b=/^ms-/,x=Array.isArray;function w(e,t){return{insertionMode:e,selectedValue:t}}var E=new Map;function S(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(a.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var s=g(r);i=g((""+i).trim())}else{s=r;var l=E.get(s);void 0!==l||(l=g(s.replace(y,"-$1").toLowerCase().replace(b,"-ms-")),E.set(s,l)),s=l,i="number"==typeof i?0===i||a.call(h,r)?""+i:i+"px":g((""+i).trim())}t?(t=!1,e.push(' style="',s,":",i)):e.push(";",s,":",i)}}t||e.push('"')}function A(e,t,n,r){switch(n){case"style":return void S(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',g(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',g(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',g(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',g(r),'"')}}else if(c(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',g(r),'"')}}function k(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function C(e,t,n,r){e.push(R(n));var o,i=n=null;for(o in t)if(a.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:A(e,r,o,s)}}return e.push(">"),k(e,i,n),"string"==typeof n?(e.push(g(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,O=new Map;function R(e){var t=O.get(e);if(void 0===t){if(!T.test(e))throw Error(o(65,e));t="<"+e,O.set(e,t)}return t}function _(e,t,n,i,s){switch(t){case"select":e.push(R("select"));var l=null,u=null;for(h in n)if(a.call(n,h)){var d=n[h];if(null!=d)switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:A(e,i,h,d)}}return e.push(">"),k(e,u,l),l;case"option":u=s.selectedValue,e.push(R("option"));var p=d=null,f=null,h=null;for(l in n)if(a.call(n,l)){var m=n[l];if(null!=m)switch(l){case"children":d=m;break;case"selected":f=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":p=m;default:A(e,i,l,m)}}if(null!=u)if(n=null!==p?""+p:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),x(u)){for(i=0;i<u.length;i++)if(""+u[i]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else f&&e.push(' selected=""');return e.push(">"),k(e,h,d),d;case"textarea":for(d in e.push(R("textarea")),h=u=l=null,n)if(a.call(n,d)&&null!=(p=n[d]))switch(d){case"children":h=p;break;case"value":l=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:A(e,i,d,p)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=h){if(null!=l)throw Error(o(92));if(x(h)&&1<h.length)throw Error(o(93));l=""+h}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(g(""+l)),null;case"input":for(u in e.push(R("input")),p=h=d=l=null,n)if(a.call(n,u)&&null!=(f=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":p=f;break;case"defaultValue":d=f;break;case"checked":h=f;break;case"value":l=f;break;default:A(e,i,u,f)}return null!==h?A(e,i,"checked",h):null!==p&&A(e,i,"checked",p),null!==l?A(e,i,"value",l):null!==d&&A(e,i,"value",d),e.push("/>"),null;case"menuitem":for(var v in e.push(R("menuitem")),n)if(a.call(n,v)&&null!=(l=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:A(e,i,v,l)}return e.push(">"),null;case"title":for(m in e.push(R("title")),l=null,n)if(a.call(n,m)&&null!=(u=n[m]))switch(m){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:A(e,i,m,u)}return e.push(">"),l;case"listing":case"pre":for(p in e.push(R(t)),u=l=null,n)if(a.call(n,p)&&null!=(d=n[p]))switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;default:A(e,i,p,d)}if(e.push(">"),null!=u){if(null!=l)throw Error(o(60));if("object"!=typeof u||!("__html"in u))throw Error(o(61));null!=(n=u.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(R(t)),n)if(a.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:A(e,i,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return C(e,n,t,i);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),C(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return C(e,n,t,i);for(f in e.push(R(t)),u=l=null,n)if(a.call(n,f)&&null!=(d=n[f]))switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":S(e,i,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(f)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",f,'="',g(d),'"')}return e.push(">"),k(e,u,l),l}}function I(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var P=/[<\u2028\u2029]/g;function N(e){return JSON.stringify(e).replace(P,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function M(e,t,n,r){return n.generateStaticMarkup?(e.push(g(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(g(t)),e=!0),e)}var L=Object.assign,D=Symbol.for("react.element"),F=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),V=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Q=Symbol.for("react.scope"),K=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),X=Symbol.for("react.default_value"),J=Symbol.iterator;function Z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case j:return"Fragment";case F:return"Portal";case z:return"Profiler";case $:return"StrictMode";case U:return"Suspense";case q:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case V:return(e.displayName||"Context")+".Consumer";case B:return(e._context.displayName||"Context")+".Provider";case W:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case H:return null!==(t=e.displayName||null)?t:Z(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return Z(e(t))}catch(e){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,r={};for(n in e)r[n]=t[n];return r}var ne=null;function re(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));re(e,n)}t.context._currentValue2=t.value}}function oe(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&oe(e)}function ae(e){var t=e.parent;null!==t&&ae(t),e.context._currentValue2=e.value}function ie(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?re(e,t):ie(e,t)}function se(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?re(e,n):se(e,n),t.context._currentValue2=t.value}function le(e){var t=ne;t!==e&&(null===t?ae(e):null===e?oe(t):t.depth===e.depth?re(t,e):t.depth>e.depth?ie(t,e):se(t,e),ne=e)}var ce={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=ce,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue2:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:L({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ce.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var s=t[i];null!=(s="function"==typeof s?s.call(e,a,n,r):s)&&(o?(o=!1,a=L({},a,s)):L(a,s))}e.state=a}else a.queue=null}var de={id:1,overflow:""};function pe(e,t,n){var r=e.id;e=e.overflow;var o=32-fe(r)-1;r&=~(1<<o),n+=1;var a=32-fe(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-fe(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var fe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(he(e)/me|0)|0},he=Math.log,me=Math.LN2;var ve="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ge=null,ye=null,be=null,xe=null,we=!1,Ee=!1,Se=0,Ae=null,ke=0;function Ce(){if(null===ge)throw Error(o(321));return ge}function Te(){if(0<ke)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Oe(){return null===xe?null===be?(we=!1,be=xe=Te()):(we=!0,xe=be):null===xe.next?(we=!1,xe=xe.next=Te()):(we=!0,xe=xe.next),xe}function Re(){ye=ge=null,Ee=!1,be=null,ke=0,xe=Ae=null}function _e(e,t){return"function"==typeof t?t(e):t}function Ie(e,t,n){if(ge=Ce(),xe=Oe(),we){var r=xe.queue;if(t=r.dispatch,null!==Ae&&void 0!==(n=Ae.get(r))){Ae.delete(r),r=xe.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return xe.memoizedState=r,[r,t]}return[xe.memoizedState,t]}return e=e===_e?"function"==typeof t?t():t:void 0!==n?n(t):t,xe.memoizedState=e,e=(e=xe.queue={last:null,dispatch:null}).dispatch=Ne.bind(null,ge,e),[xe.memoizedState,e]}function Pe(e,t){if(ge=Ce(),t=void 0===t?null:t,null!==(xe=Oe())){var n=xe.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!ve(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),xe.memoizedState=[e,t],e}function Ne(e,t,n){if(25<=ke)throw Error(o(301));if(e===ge)if(Ee=!0,e={action:n,next:null},null===Ae&&(Ae=new Map),void 0===(n=Ae.get(t)))Ae.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Me(){throw Error(o(394))}function Le(){}var De={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Pe,useReducer:Ie,useRef:function(e){ge=Ce();var t=(xe=Oe()).memoizedState;return null===t?(e={current:e},xe.memoizedState=e):t},useState:function(e){return Ie(_e,e)},useInsertionEffect:Le,useLayoutEffect:function(){},useCallback:function(e,t){return Pe((function(){return e}),t)},useImperativeHandle:Le,useEffect:Le,useDebugValue:Le,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,Me]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-fe(e)-1)).toString(32)+t;var n=Fe;if(null===n)throw Error(o(404));return t=Se++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Fe=null,je=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function $e(e){return console.error(e),null}function ze(){}function Be(e,t,n,r,o,a,i,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:s};return o.add(l),l}function Ve(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function We(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ue(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function qe(e,t,n,r,o){for(ge={},ye=t,Se=0,e=n(r,o);Ee;)Ee=!1,Se=0,ke+=1,xe=null,e=n(r,o);return Re(),e}function He(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in i))throw Error(o(108,Z(r)||"Unknown",l));r=L({},s,n)}t.legacyContext=r,Ke(e,t,a),t.legacyContext=s}else Ke(e,t,a)}function Ge(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Qe(e,t,n,r,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=te(n,t.legacyContext);var i=n.contextType;ue(i=new n(r,"object"==typeof i&&null!==i?i._currentValue2:a),n,r,a),He(e,t,i,n)}else{a=qe(e,t,n,r,i=te(n,t.legacyContext));var s=0!==Se;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)ue(a,n,r,i),He(e,t,a,n);else if(s){r=t.treeContext,t.treeContext=pe(r,1,0);try{Ke(e,t,a)}finally{t.treeContext=r}}else Ke(e,t,a)}else{if("string"!=typeof n){switch(n){case Y:case K:case $:case z:case j:case q:return void Ke(e,t,r.children);case Q:throw Error(o(343));case U:e:{n=t.blockedBoundary,a=t.blockedSegment,i=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=Ve(0,a.chunks.length,l,a.formatContext,!1,!1);a.children.push(c),a.lastPushedText=!1;var u=Ve(0,0,null,a.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Xe(e,t,r),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,et(l,u),0===l.pendingTasks)break e}catch(t){u.status=4,l.forceClientRender=!0,l.errorDigest=We(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=a}t=Be(e,i,n,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case W:if(r=qe(e,t,n.render,r,a),0!==Se){n=t.treeContext,t.treeContext=pe(n,1,0);try{Ke(e,t,r)}finally{t.treeContext=n}}else Ke(e,t,r);return;case H:return void Qe(e,t,n=n.type,r=Ge(n,r),a);case B:if(a=r.children,n=n._context,r=r.value,i=n._currentValue2,n._currentValue2=r,ne=r={parent:s=ne,depth:null===s?0:s.depth+1,context:n,parentValue:i,value:r},t.context=r,Ke(e,t,a),null===(e=ne))throw Error(o(403));return r=e.parentValue,e.context._currentValue2=r===X?e.context._defaultValue:r,e=ne=e.parent,void(t.context=e);case V:return void Ke(e,t,r=(r=r.children)(n._currentValue2));case G:return void Qe(e,t,n=(a=n._init)(n._payload),r=Ge(n,r),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(i=_((a=t.blockedSegment).chunks,n,r,e.responseState,a.formatContext),a.lastPushedText=!1,s=a.formatContext,a.formatContext=function(e,t,n){switch(t){case"select":return w(1,null!=n.value?n.value:n.defaultValue);case"svg":return w(2,null);case"math":return w(3,null);case"foreignObject":return w(1,null);case"table":return w(4,null);case"thead":case"tbody":case"tfoot":return w(5,null);case"colgroup":return w(7,null);case"tr":return w(6,null)}return 4<=e.insertionMode||0===e.insertionMode?w(1,null):e}(s,n,r),Xe(e,t,i),a.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.chunks.push("</",n,">")}a.lastPushedText=!1}}function Ke(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case D:return void Qe(e,t,n.type,n.props,n.ref);case F:throw Error(o(257));case G:var r=n._init;return void Ke(e,t,n=r(n._payload))}if(x(n))return void Ye(e,t,n);if(null===n||"object"!=typeof n?r=null:r="function"==typeof(r=J&&n[J]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);Ye(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=M(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=M(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ye(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=pe(a,r,o);try{Xe(e,t,n[o])}finally{t.treeContext=a}}}function Xe(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return Ke(e,t,n)}catch(l){if(Re(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,le(a),l;n=l;var i=t.blockedSegment,s=Ve(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(s),i.lastPushedText=!1,e=Be(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,le(a)}}function Je(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function Ze(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Ze(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ze,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Je,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=je.current;je.current=De;var r=Fe;Fe=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],s=e,l=i.blockedSegment;if(0===l.status){le(i.context);try{Ke(s,i,i.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),i.abortSet.delete(i),l.status=1,tt(s,i.blockedBoundary,l)}catch(e){if(Re(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),l.status=4;var u=i.blockedBoundary,d=e,p=We(s,d);if(null===u?Ue(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&lt(e,e.destination)}catch(t){We(e,t),Ue(e,t)}finally{Fe=r,je.current=n,n===De&&le(t)}}}function rt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var s=0;s<n.length;s++){for(a=n[s];i<a.index;i++)t.push(r[i]);a=ot(e,t,a)}for(;i<r.length-1;i++)t.push(r[i]);return i<r.length&&(a=t.push(r[i])),a;default:throw Error(o(390))}}function ot(e,t,n){var r=n.boundary;if(null===r)return rt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=g(r),t.push(r),t.push('"')),t.push("></template>")),rt(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;return a=a.boundaryPrefix+i.toString(16),r=r.id=a,I(t,e.responseState,r),rt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),I(t,e.responseState,r.id),rt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return ot(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function at(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),ot(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.formatContext)}function it(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)st(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function st(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return at(e,t,r)}return at(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t.push('")<\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){ot(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var a,i=e.clientRenderedBoundaries;for(a=0;a<i.length;a++){var s=i[a];r=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,p=s.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(o(395));if(r.push(c),r.push('"'),u||d||p){r.push(",");var f=N(u||"");r.push(f)}if(d||p){r.push(",");var h=N(d||"");r.push(h)}if(p){r.push(",");var m=N(p);r.push(m)}if(!r.push(")<\/script>"))return e.destination=null,a++,void i.splice(0,a)}i.splice(0,a);var v=e.completedBoundaries;for(a=0;a<v.length;a++)if(!it(e,t,v[a]))return e.destination=null,a++,void v.splice(0,a);v.splice(0,a);var g=e.partialBoundaries;for(a=0;a<g.length;a++){var y=g[a];e:{i=e,s=t;var b=y.completedSegments;for(l=0;l<b.length;l++)if(!st(i,s,y,b[l])){l++,b.splice(0,l);var x=!1;break e}b.splice(0,l),x=!0}if(!x)return e.destination=null,a++,void g.splice(0,a)}g.splice(0,a);var w=e.completedBoundaries;for(a=0;a<w.length;a++)if(!it(e,t,w[a]))return e.destination=null,a++,void w.splice(0,a);w.splice(0,a)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ct(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Ze(n,e,t)})),n.clear(),null!==e.destination&&lt(e,e.destination)}catch(t){We(e,t),Ue(e,t)}}function ut(){}function dt(e,t,n,r){var a=!1,i=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){a=!0,i=e}},c=!1;if(e=function(e,t,n,r,o,a,i,s,l){var c=[],u=new Set;return(n=Ve(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?$e:o,onAllReady:void 0===a?ze:a,onShellReady:void 0===i?ze:i,onShellError:void 0===s?ze:s,onFatalError:void 0===l?ze:l},0,null,n,!1,!1)).parentFlushed=!0,e=Be(t,e,null,n,u,ee,null,de),c.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,void 0,(function(){c=!0}),void 0,void 0),nt(e),ct(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(t){We(e,t),Ue(e,t)}}if(a)throw i;if(!c)throw Error(o(426));return s}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return dt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},6291:(e,t,n)=>{"use strict";var r=n(9532);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=null,i=0;function s(e,t){if(0!==t.length)if(512<t.length)0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=new Uint8Array(512),i=0),e.enqueue(t);else{var n=a.length-i;n<t.length&&(0===n?e.enqueue(a):(a.set(t.subarray(0,n),i),e.enqueue(a),t=t.subarray(n)),a=new Uint8Array(512),i=0),a.set(t,i),i+=t.length}}function l(e,t){return s(e,t),!0}function c(e){a&&0<i&&(e.enqueue(new Uint8Array(a.buffer,0,i)),a=null,i=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function p(e){return u.encode(e)}function f(e,t){"function"==typeof e.error?e.error(t):e.close()}var h=Object.prototype.hasOwnProperty,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][: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]*$/,v={},g={};function y(e){return!!h.call(g,e)||!h.call(v,e)&&(m.test(e)?g[e]=!0:(v[e]=!0,!1))}function b(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){x[e]=new b(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];x[t]=new b(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){x[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){x[e]=new b(e,2,!1,e,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".split(" ").forEach((function(e){x[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){x[e]=new b(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){x[e]=new b(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){x[e]=new b(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){x[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var w=/[\-:]([a-z])/g;function E(e){return e[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".split(" ").forEach((function(e){var t=e.replace(w,E);x[t]=new b(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(w,E);x[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(w,E);x[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),x.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},A=["Webkit","ms","Moz","O"];Object.keys(S).forEach((function(e){A.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),S[t]=S[e]}))}));var k=/["'&<>]/;function C(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=k.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var T=/([A-Z])/g,O=/^ms-/,R=Array.isArray,_=p("<script>"),I=p("<\/script>"),P=p('<script src="'),N=p('<script type="module" src="'),M=p('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function D(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function F(e,t){return{insertionMode:e,selectedValue:t}}var j=p("\x3c!-- --\x3e");function $(e,t,n,r){return""===t?r:(r&&e.push(j),e.push(d(C(t))),!0)}var z=new Map,B=p(' style="'),V=p(":"),W=p(";");function U(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(h.call(n,r)){var a=n[r];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===r.indexOf("--")){var i=d(C(r));a=d(C((""+a).trim()))}else{i=r;var s=z.get(i);void 0!==s||(s=p(C(i.replace(T,"-$1").toLowerCase().replace(O,"-ms-"))),z.set(i,s)),i=s,a="number"==typeof a?0===a||h.call(S,r)?d(""+a):d(a+"px"):d(C((""+a).trim()))}t?(t=!1,e.push(B,i,V,a)):e.push(W,i,V,a)}}t||e.push(G)}var q=p(" "),H=p('="'),G=p('"'),Q=p('=""');function K(e,t,n,r){switch(n){case"style":return void U(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=x.hasOwnProperty(n)?x[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(q,n,Q);break;case 4:!0===r?e.push(q,n,Q):!1!==r&&e.push(q,n,H,d(C(r)),G);break;case 5:isNaN(r)||e.push(q,n,H,d(C(r)),G);break;case 6:!isNaN(r)&&1<=r&&e.push(q,n,H,d(C(r)),G);break;default:t.sanitizeURL&&(r=""+r),e.push(q,n,H,d(C(r)),G)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(q,d(n),H,d(C(r)),G)}}var Y=p(">"),X=p("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(d(""+t))}}var Z=p(' selected=""');function ee(e,t,n,r){e.push(oe(n));var o,a=n=null;for(o in t)if(h.call(t,o)){var i=t[o];if(null!=i)switch(o){case"children":n=i;break;case"dangerouslySetInnerHTML":a=i;break;default:K(e,r,o,i)}}return e.push(Y),J(e,a,n),"string"==typeof n?(e.push(d(C(n))),null):n}var te=p("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=p("<"+e),re.set(e,t)}return t}var ae=p("<!DOCTYPE html>");function ie(e,t,n,a,i){switch(t){case"select":e.push(oe("select"));var s=null,l=null;for(f in n)if(h.call(n,f)){var c=n[f];if(null!=c)switch(f){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:K(e,a,f,c)}}return e.push(Y),J(e,l,s),s;case"option":l=i.selectedValue,e.push(oe("option"));var u=c=null,p=null,f=null;for(s in n)if(h.call(n,s)){var m=n[s];if(null!=m)switch(s){case"children":c=m;break;case"selected":p=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":u=m;default:K(e,a,s,m)}}if(null!=l)if(n=null!==u?""+u:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),R(l)){for(a=0;a<l.length;a++)if(""+l[a]===n){e.push(Z);break}}else""+l===n&&e.push(Z);else p&&e.push(Z);return e.push(Y),J(e,f,c),c;case"textarea":for(c in e.push(oe("textarea")),f=l=s=null,n)if(h.call(n,c)&&null!=(u=n[c]))switch(c){case"children":f=u;break;case"value":s=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:K(e,a,c,u)}if(null===s&&null!==l&&(s=l),e.push(Y),null!=f){if(null!=s)throw Error(o(92));if(R(f)&&1<f.length)throw Error(o(93));s=""+f}return"string"==typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(C(""+s))),null;case"input":for(l in e.push(oe("input")),u=f=c=s=null,n)if(h.call(n,l)&&null!=(p=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":u=p;break;case"defaultValue":c=p;break;case"checked":f=p;break;case"value":s=p;break;default:K(e,a,l,p)}return null!==f?K(e,a,"checked",f):null!==u&&K(e,a,"checked",u),null!==s?K(e,a,"value",s):null!==c&&K(e,a,"value",c),e.push(X),null;case"menuitem":for(var v in e.push(oe("menuitem")),n)if(h.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:K(e,a,v,s)}return e.push(Y),null;case"title":for(m in e.push(oe("title")),s=null,n)if(h.call(n,m)&&null!=(l=n[m]))switch(m){case"children":s=l;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:K(e,a,m,l)}return e.push(Y),s;case"listing":case"pre":for(u in e.push(oe(t)),l=s=null,n)if(h.call(n,u)&&null!=(c=n[u]))switch(u){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;default:K(e,a,u,c)}if(e.push(Y),null!=l){if(null!=s)throw Error(o(60));if("object"!=typeof l||!("__html"in l))throw Error(o(61));null!=(n=l.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"==typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var g in e.push(oe(t)),n)if(h.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:K(e,a,g,s)}return e.push(X),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,a);case"html":return 0===i.insertionMode&&e.push(ae),ee(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,a);for(p in e.push(oe(t)),l=s=null,n)if(h.call(n,p)&&null!=(c=n[p]))switch(p){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":U(e,a,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(p)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push(q,d(p),H,d(C(c)),G)}return e.push(Y),J(e,l,s),s}}var se=p("</"),le=p(">"),ce=p('<template id="'),ue=p('"></template>'),de=p("\x3c!--$--\x3e"),pe=p('\x3c!--$?--\x3e<template id="'),fe=p('"></template>'),he=p("\x3c!--$!--\x3e"),me=p("\x3c!--/$--\x3e"),ve=p("<template"),ge=p('"'),ye=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var be=p("></template>");function xe(e,t,n){if(s(e,pe),null===n)throw Error(o(395));return s(e,n),l(e,fe)}var we=p('<div hidden id="'),Ee=p('">'),Se=p("</div>"),Ae=p('<svg aria-hidden="true" style="display:none" id="'),ke=p('">'),Ce=p("</svg>"),Te=p('<math aria-hidden="true" style="display:none" id="'),Oe=p('">'),Re=p("</math>"),_e=p('<table hidden id="'),Ie=p('">'),Pe=p("</table>"),Ne=p('<table hidden><tbody id="'),Me=p('">'),Le=p("</tbody></table>"),De=p('<table hidden><tr id="'),Fe=p('">'),je=p("</tr></table>"),$e=p('<table hidden><colgroup id="'),ze=p('">'),Be=p("</colgroup></table>");var Ve=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),We=p('$RS("'),Ue=p('","'),qe=p('")<\/script>'),He=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ge=p('$RC("'),Qe=p('","'),Ke=p('")<\/script>'),Ye=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Xe=p('$RX("'),Je=p('"'),Ze=p(")<\/script>"),et=p(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var rt=Object.assign,ot=Symbol.for("react.element"),at=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ct=Symbol.for("react.provider"),ut=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),ht=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),vt=Symbol.for("react.scope"),gt=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),bt=Symbol.for("react.default_value"),xt=Symbol.iterator;function wt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case it:return"Fragment";case at:return"Portal";case lt:return"Profiler";case st:return"StrictMode";case pt:return"Suspense";case ft:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ut:return(e.displayName||"Context")+".Consumer";case ct:return(e._context.displayName||"Context")+".Provider";case dt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ht:return null!==(t=e.displayName||null)?t:wt(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return wt(e(t))}catch(e){}}return null}var Et={};function St(e,t){if(!(e=e.contextTypes))return Et;var n,r={};for(n in e)r[n]=t[n];return r}var At=null;function kt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));kt(e,n)}t.context._currentValue=t.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function Tt(e){var t=e.parent;null!==t&&Tt(t),e.context._currentValue=e.value}function Ot(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?kt(e,t):Ot(e,t)}function Rt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?kt(e,n):Rt(e,n),t.context._currentValue=t.value}function _t(e){var t=At;t!==e&&(null===t?Tt(e):null===e?Ct(t):t.depth===e.depth?kt(t,e):t.depth>e.depth?Ot(t,e):Rt(t,e),At=e)}var It={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Pt(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=It,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue:r,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(n,o))?o:rt({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&It.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var s=t[i];null!=(s="function"==typeof s?s.call(e,a,n,r):s)&&(o?(o=!1,a=rt({},a,s)):rt(a,s))}e.state=a}else a.queue=null}var Nt={id:1,overflow:""};function Mt(e,t,n){var r=e.id;e=e.overflow;var o=32-Lt(r)-1;r&=~(1<<o),n+=1;var a=32-Lt(t)+o;if(30<a){var i=o-o%5;return a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,{id:1<<32-Lt(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var Lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Dt(e)/Ft|0)|0},Dt=Math.log,Ft=Math.LN2;var jt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$t=null,zt=null,Bt=null,Vt=null,Wt=!1,Ut=!1,qt=0,Ht=null,Gt=0;function Qt(){if(null===$t)throw Error(o(321));return $t}function Kt(){if(0<Gt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Yt(){return null===Vt?null===Bt?(Wt=!1,Bt=Vt=Kt()):(Wt=!0,Vt=Bt):null===Vt.next?(Wt=!1,Vt=Vt.next=Kt()):(Wt=!0,Vt=Vt.next),Vt}function Xt(){zt=$t=null,Ut=!1,Bt=null,Gt=0,Vt=Ht=null}function Jt(e,t){return"function"==typeof t?t(e):t}function Zt(e,t,n){if($t=Qt(),Vt=Yt(),Wt){var r=Vt.queue;if(t=r.dispatch,null!==Ht&&void 0!==(n=Ht.get(r))){Ht.delete(r),r=Vt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Vt.memoizedState=r,[r,t]}return[Vt.memoizedState,t]}return e=e===Jt?"function"==typeof t?t():t:void 0!==n?n(t):t,Vt.memoizedState=e,e=(e=Vt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,$t,e),[Vt.memoizedState,e]}function en(e,t){if($t=Qt(),t=void 0===t?null:t,null!==(Vt=Yt())){var n=Vt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!jt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Vt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=Gt)throw Error(o(301));if(e===$t)if(Ut=!0,e={action:n,next:null},null===Ht&&(Ht=new Map),void 0===(n=Ht.get(t)))Ht.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(o(394))}function rn(){}var on={readContext:function(e){return e._currentValue},useContext:function(e){return Qt(),e._currentValue},useMemo:en,useReducer:Zt,useRef:function(e){$t=Qt();var t=(Vt=Yt()).memoizedState;return null===t?(e={current:e},Vt.memoizedState=e):t},useState:function(e){return Zt(Jt,e)},useInsertionEffect:rn,useLayoutEffect:function(){},useCallback:function(e,t){return en((function(){return e}),t)},useImperativeHandle:rn,useEffect:rn,useDebugValue:rn,useDeferredValue:function(e){return Qt(),e},useTransition:function(){return Qt(),[!1,nn]},useId:function(){var e=zt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Lt(e)-1)).toString(32)+t;var n=an;if(null===n)throw Error(o(404));return t=qt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Qt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},an=null,sn=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function cn(){}function un(e,t,n,r,o,a,i,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&kn(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:i,treeContext:s};return o.add(l),l}function dn(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function pn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function fn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,f(e.destination,t)):(e.status=1,e.fatalError=t)}function hn(e,t,n,r,o){for($t={},zt=t,qt=0,e=n(r,o);Ut;)Ut=!1,qt=0,Gt+=1,Vt=null,e=n(r,o);return Xt(),e}function mn(e,t,n,r){var a=n.render(),i=r.childContextTypes;if(null!=i){var s=t.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in i))throw Error(o(108,wt(r)||"Unknown",l));r=rt({},s,n)}t.legacyContext=r,yn(e,t,a),t.legacyContext=s}else yn(e,t,a)}function vn(e,t){if(e&&e.defaultProps){for(var n in t=rt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function gn(e,t,n,r,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=St(n,t.legacyContext);var i=n.contextType;Pt(i=new n(r,"object"==typeof i&&null!==i?i._currentValue:a),n,r,a),mn(e,t,i,n)}else{a=hn(e,t,n,r,i=St(n,t.legacyContext));var s=0!==qt;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)Pt(a,n,r,i),mn(e,t,a,n);else if(s){r=t.treeContext,t.treeContext=Mt(r,1,0);try{yn(e,t,a)}finally{t.treeContext=r}}else yn(e,t,a)}else{if("string"!=typeof n){switch(n){case yt:case gt:case st:case lt:case it:case ft:return void yn(e,t,r.children);case vt:throw Error(o(343));case pt:e:{n=t.blockedBoundary,a=t.blockedSegment,i=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=dn(0,a.chunks.length,l,a.formatContext,!1,!1);a.children.push(c),a.lastPushedText=!1;var u=dn(0,0,null,a.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(xn(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(j),u.status=1,Sn(l,u),0===l.pendingTasks)break e}catch(t){u.status=4,l.forceClientRender=!0,l.errorDigest=pn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=a}t=un(e,i,n,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case dt:if(r=hn(e,t,n.render,r,a),0!==qt){n=t.treeContext,t.treeContext=Mt(n,1,0);try{yn(e,t,r)}finally{t.treeContext=n}}else yn(e,t,r);return;case ht:return void gn(e,t,n=n.type,r=vn(n,r),a);case ct:if(a=r.children,n=n._context,r=r.value,i=n._currentValue,n._currentValue=r,At=r={parent:s=At,depth:null===s?0:s.depth+1,context:n,parentValue:i,value:r},t.context=r,yn(e,t,a),null===(e=At))throw Error(o(403));return r=e.parentValue,e.context._currentValue=r===bt?e.context._defaultValue:r,e=At=e.parent,void(t.context=e);case ut:return void yn(e,t,r=(r=r.children)(n._currentValue));case mt:return void gn(e,t,n=(a=n._init)(n._payload),r=vn(n,r),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(i=ie((a=t.blockedSegment).chunks,n,r,e.responseState,a.formatContext),a.lastPushedText=!1,s=a.formatContext,a.formatContext=function(e,t,n){switch(t){case"select":return F(1,null!=n.value?n.value:n.defaultValue);case"svg":return F(2,null);case"math":return F(3,null);case"foreignObject":return F(1,null);case"table":return F(4,null);case"thead":case"tbody":case"tfoot":return F(5,null);case"colgroup":return F(7,null);case"tr":return F(6,null)}return 4<=e.insertionMode||0===e.insertionMode?F(1,null):e}(s,n,r),xn(e,t,i),a.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.chunks.push(se,d(n),le)}a.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case ot:return void gn(e,t,n.type,n.props,n.ref);case at:throw Error(o(257));case mt:var r=n._init;return void yn(e,t,n=r(n._payload))}if(R(n))return void bn(e,t,n);if(null===n||"object"!=typeof n?r=null:r="function"==typeof(r=xt&&n[xt]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var a=[];do{a.push(n.value),n=r.next()}while(!n.done);bn(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=$(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=$(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function bn(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=Mt(a,r,o);try{xn(e,t,n[o])}finally{t.treeContext=a}}}function xn(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return yn(e,t,n)}catch(l){if(Xt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,_t(a),l;n=l;var i=t.blockedSegment,s=dn(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(s),i.lastPushedText=!1,e=un(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,_t(a)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,An(this,t,e)}function En(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return En(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Sn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Sn(e,n)}else e.completedSegments.push(t)}function An(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=cn,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Sn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Sn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function kn(e){if(2!==e.status){var t=At,n=sn.current;sn.current=on;var r=an;an=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],s=e,l=i.blockedSegment;if(0===l.status){_t(i.context);try{yn(s,i,i.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(j),i.abortSet.delete(i),l.status=1,An(s,i.blockedBoundary,l)}catch(e){if(Xt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=i.ping;e.then(c,c)}else{i.abortSet.delete(i),l.status=4;var u=i.blockedBoundary,d=e,p=pn(s,d);if(null===u?fn(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&In(e,e.destination)}catch(t){pn(e,t),fn(e,t)}finally{an=r,sn.current=n,n===on&&_t(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,ce),s(t,e.placeholderPrefix),s(t,e=d(r.toString(16))),l(t,ue);case 1:n.status=2;var a=!0;r=n.chunks;var i=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];i<a.index;i++)s(t,r[i]);a=Tn(e,t,a)}for(;i<r.length-1;i++)s(t,r[i]);return i<r.length&&(a=l(t,r[i])),a;default:throw Error(o(390))}}function Tn(e,t,n){var r=n.boundary;if(null===r)return Cn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,he),s(t,ve),r&&(s(t,ye),s(t,d(C(r))),s(t,ge)),l(t,be),Cn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,i=a.nextSuspenseID++;a=p(a.boundaryPrefix+i.toString(16)),r=r.id=a,xe(t,e.responseState,r),Cn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),xe(t,e.responseState,r.id),Cn(e,t,n);else{if(l(t,de),1!==(n=r.completedSegments).length)throw Error(o(391));Tn(e,t,n[0])}return l(t,me)}function On(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,we),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ee);case 2:return s(e,Ae),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,ke);case 3:return s(e,Te),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Oe);case 4:return s(e,_e),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ie);case 5:return s(e,Ne),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Me);case 6:return s(e,De),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Fe);case 7:return s(e,$e),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,ze);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Tn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,Se);case 2:return l(e,Ce);case 3:return l(e,Re);case 4:return l(e,Pe);case 5:return l(e,Le);case 6:return l(e,je);case 7:return l(e,Be);default:throw Error(o(397))}}(t,n.formatContext)}function Rn(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)_n(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,Ge):(e.sentCompleteBoundaryFunction=!0,s(t,He)),null===r)throw Error(o(395));return n=d(n.toString(16)),s(t,r),s(t,Qe),s(t,e.segmentPrefix),s(t,n),l(t,Ke)}function _n(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return On(e,t,r)}return On(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,We):(e.sentCompleteSegmentFunction=!0,s(t,Ve)),s(t,e.segmentPrefix),s(t,a=d(a.toString(16))),s(t,Ue),s(t,e.placeholderPrefix),s(t,a),l(t,qe)}function In(e,t){a=new Uint8Array(512),i=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Tn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&l(t,r[n])}var u,p=e.clientRenderedBoundaries;for(u=0;u<p.length;u++){var f=p[u];r=t;var h=e.responseState,m=f.id,v=f.errorDigest,g=f.errorMessage,y=f.errorComponentStack;if(s(r,h.startInlineScript),h.sentClientRenderFunction?s(r,Xe):(h.sentClientRenderFunction=!0,s(r,Ye)),null===m)throw Error(o(395));if(s(r,m),s(r,Je),(v||g||y)&&(s(r,et),s(r,d(nt(v||"")))),(g||y)&&(s(r,et),s(r,d(nt(g||"")))),y&&(s(r,et),s(r,d(nt(y)))),!l(r,Ze))return e.destination=null,u++,void p.splice(0,u)}p.splice(0,u);var b=e.completedBoundaries;for(u=0;u<b.length;u++)if(!Rn(e,t,b[u]))return e.destination=null,u++,void b.splice(0,u);b.splice(0,u),c(t),a=new Uint8Array(512),i=0;var x=e.partialBoundaries;for(u=0;u<x.length;u++){var w=x[u];e:{p=e,f=t;var E=w.completedSegments;for(h=0;h<E.length;h++)if(!_n(p,f,w,E[h])){h++,E.splice(0,h);var S=!1;break e}E.splice(0,h),S=!0}if(!S)return e.destination=null,u++,void x.splice(0,u)}x.splice(0,u);var A=e.completedBoundaries;for(u=0;u<A.length;u++)if(!Rn(e,t,A[u]))return e.destination=null,u++,void A.splice(0,u);A.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Pn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return En(n,e,t)})),n.clear(),null!==e.destination&&In(e,e.destination)}catch(t){pn(e,t),fn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,r){var o,a,i=new Promise((function(e,t){a=e,o=t})),s=function(e,t,n,r,o,a,i,s,l){var c=[],u=new Set;return(n=dn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?ln:o,onAllReady:void 0===a?cn:a,onShellReady:void 0===i?cn:i,onShellError:void 0===s?cn:s,onFatalError:void 0===l?cn:l},0,null,n,!1,!1)).parentFlushed=!0,e=un(t,e,null,n,u,Et,null,Nt),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?_:p('<script nonce="'+C(t)+'">');var a=[];if(void 0!==n&&a.push(t,d((""+n).replace(L,D)),I),void 0!==r)for(n=0;n<r.length;n++)a.push(P,d(C(r[n])),M);if(void 0!==o)for(r=0;r<o.length;r++)a.push(N,d(C(o[r])),M);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:p(e+"P:"),segmentPrefix:p(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return F("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,f(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{In(s,e)}catch(e){pn(s,e),fn(s,e)}}},cancel:function(){Pn(s)}},{highWaterMark:0});e.allReady=i,n(e)}),(function(e){i.catch((function(){})),r(e)}),o);if(t&&t.signal){var l=t.signal,c=function(){Pn(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}kn(s)}))},t.version="18.2.0"},1619:(e,t,n)=>{"use strict";var r=n(9532),o=n(3858);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,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".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var D,F=Object.assign;function j(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var $=!1;function z(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function B(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case k:return"Profiler";case A:return"StrictMode";case R:return"Suspense";case _:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ae(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ge=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Se=null,Ae=null;function ke(e){if(e=xo(e)){if("function"!=typeof Ee)throw Error(a(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function Ce(e){Se?Ae?Ae.push(e):Ae=[e]:Se=e}function Te(){if(Se){var e=Se,t=Ae;if(Ae=Se=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Oe(e,t){return e(t)}function Re(){}var _e=!1;function Ie(e,t,n){if(_e)return e(t,n);_e=!0;try{return Oe(e,t,n)}finally{_e=!1,(null!==Se||null!==Ae)&&(Re(),Te())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=Eo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ne=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ue){Ne=!1}function Le(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var De=!1,Fe=null,je=!1,$e=null,ze={onError:function(e){De=!0,Fe=e}};function Be(e,t,n,r,o,a,i,s,l){De=!1,Fe=null,Le.apply(ze,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(Ve(e)!==e)throw Error(a(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ue(o),e;if(i===r)return Ue(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?He(e):null}function He(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=He(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=dt(s):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,Et,St,At,kt,Ct=!1,Tt=[],Ot=null,Rt=null,_t=null,It=new Map,Pt=new Map,Nt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Dt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&Et(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ft(e){var t=bo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void kt(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function $t(e,t,n){jt(e)&&n.delete(t)}function zt(){Ct=!1,null!==Ot&&jt(Ot)&&(Ot=null),null!==Rt&&jt(Rt)&&(Rt=null),null!==_t&&jt(_t)&&(_t=null),It.forEach($t),Pt.forEach($t)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Vt(e){function t(t){return Bt(t,e)}if(0<Tt.length){Bt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==Rt&&Bt(Rt,e),null!==_t&&Bt(_t,e),It.forEach(t),Pt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Nt.shift()}var Wt=x.ReactCurrentBatchConfig,Ut=!0;function qt(e,t,n,r){var o=bt,a=Wt.transition;Wt.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=o,Wt.transition=a}}function Ht(e,t,n,r){var o=bt,a=Wt.transition;Wt.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=o,Wt.transition=a}}function Gt(e,t,n,r){if(Ut){var o=Kt(e,t,n,r);if(null===o)Ur(e,t,r,Qt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Dt(Ot,e,t,n,r,o),!0;case"dragenter":return Rt=Dt(Rt,e,t,n,r,o),!0;case"mouseover":return _t=Dt(_t,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return It.set(a,Dt(It.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Pt.set(a,Dt(Pt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Kt(e,t,n,r))&&Ur(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Qt=null;function Kt(e,t,n,r){if(Qt=null,null!==(e=bo(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=F({},cn,{view:0,detail:0}),pn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(fn),mn=on(F({},fn,{dataTransfer:0})),vn=on(F({},dn,{relatedTarget:0})),gn=on(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(F({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function kn(){return An}var Cn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(Cn),On=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),_n=on(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(In),Nn=[9,13,27,32],Mn=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Dn=u&&"TextEvent"in window&&!Ln,Fn=u&&(!Mn||Ln&&8<Ln&&11>=Ln),jn=String.fromCharCode(32),$n=!1;function zn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function qn(e,t,n,r){Ce(r),0<(t=Hr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Gn=null;function Qn(e){jr(e,0)}function Kn(e){if(G(wo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Hn&&(Hn.detachEvent("onpropertychange",nr),Gn=Hn=null)}function nr(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];qn(t,Gn,e,we(e)),Ie(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Hn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function ar(e,t){if("click"===e)return Kn(t)}function ir(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Q(r)||("selectionStart"in(r=vr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Hr(gr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Ar={};function kr(e){if(Sr[e])return Sr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ar)return Sr[e]=n[t];return e}u&&(Ar=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var Cr=kr("animationend"),Tr=kr("animationiteration"),Or=kr("animationstart"),Rr=kr("transitionend"),_r=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){_r.set(e,t),l(t,[e])}for(var Nr=0;Nr<Ir.length;Nr++){var Mr=Ir[Nr];Pr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Pr(Cr,"onAnimationEnd"),Pr(Tr,"onAnimationIteration"),Pr(Or,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Rr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(Be.apply(this,arguments),De){if(!De)throw Error(a(198));var u=Fe;De=!1,Fe=null,je||(je=!0,$e=u)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Fr(o,s,c),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Fr(o,s,c),a=l}}}if(je)throw e=$e,je=!1,$e=null,e}function $r(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Br]){e[Br]=!0,i.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var o=qt;break;case 4:o=Ht;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=bo(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=a,o=we(n),i=[];e:{var s=_r.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Cr:case Tr:case Or:l=gn;break;case Rr:l=_n;break;case"scroll":l=pn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Pe(h,p))&&u.push(qr(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),i.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Ve(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:wo(l),f=null==c?s:wo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,bo(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Gr(f))h++;for(f=0,m=p;m;m=Gr(m))f++;for(;0<h-f;)u=Gr(u),h--;for(;0<f-h;)p=Gr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Gr(u),p=Gr(p)}u=null}else u=null;null!==l&&Qr(i,s,l,u,!1),null!==c&&null!==d&&Qr(i,d,c,u,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Yn;else if(Un(s))if(Xn)v=ir;else{v=or;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=ar);switch(v&&(v=v(e,r))?qn(i,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?wo(r):window,e){case"focusin":(Un(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,o)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Vn=!0)),0<(g=Hr(r,b)).length&&(b=new xn(b,e,null,n,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:($n=!0,jn);case"textInput":return(e=t.data)===jn&&$n?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Mn&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Hr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}jr(i,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Pe(e,n))&&r.unshift(qr(e,a,o)),null!=(a=Pe(e,t))&&r.push(qr(e,a,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Pe(n,a))&&i.unshift(qr(n,l,s)):o||null!=(l=Pe(n,a))&&i.push(qr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,vo="__reactEvents$"+po,go="__reactListeners$"+po,yo="__reactHandles$"+po;function bo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Eo(e){return e[ho]||null}var So=[],Ao=-1;function ko(e){return{current:e}}function Co(e){0>Ao||(e.current=So[Ao],So[Ao]=null,Ao--)}function To(e,t){Ao++,So[Ao]=e.current,e.current=t}var Oo={},Ro=ko(Oo),_o=ko(!1),Io=Oo;function Po(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function No(e){return null!=(e=e.childContextTypes)}function Mo(){Co(_o),Co(Ro)}function Lo(e,t,n){if(Ro.current!==Oo)throw Error(a(168));To(Ro,t),To(_o,n)}function Do(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,W(e)||"Unknown",o));return F({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Io=Ro.current,To(Ro,e),To(_o,_o.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Do(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Co(_o),Co(Ro),To(Ro,e)):Co(_o),To(_o,n)}var $o=null,zo=!1,Bo=!1;function Vo(e){null===$o?$o=[e]:$o.push(e)}function Wo(){if(!Bo&&null!==$o){Bo=!0;var e=0,t=bt;try{var n=$o;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$o=null,zo=!1}catch(t){throw null!==$o&&($o=$o.slice(e+1)),Ge(Ze,Wo),t}finally{bt=t,Bo=!1}}return null}var Uo=[],qo=0,Ho=null,Go=0,Qo=[],Ko=0,Yo=null,Xo=1,Jo="";function Zo(e,t){Uo[qo++]=Go,Uo[qo++]=Ho,Ho=e,Go=t}function ea(e,t,n){Qo[Ko++]=Xo,Qo[Ko++]=Jo,Qo[Ko++]=Yo,Yo=e;var r=Xo;e=Jo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-it(t)+o|n<<o|r,Jo=a+e}else Xo=1<<a|n<<o|r,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===Ho;)Ho=Uo[--qo],Uo[qo]=null,Go=Uo[--qo],Uo[qo]=null;for(;e===Yo;)Yo=Qo[--Ko],Qo[Ko]=null,Jo=Qo[--Ko],Qo[Ko]=null,Xo=Qo[--Ko],Qo[Ko]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&la(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var va=x.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=ko(null),ba=null,xa=null,wa=null;function Ea(){wa=xa=ba=null}function Sa(e){var t=ya.current;Co(ya),e._currentValue=t}function Aa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ka(e,t){ba=e,wa=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xs=!0),e.firstContext=null)}function Ca(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===xa){if(null===ba)throw Error(a(308));xa=e,ba.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return t}var Ta=null;function Oa(e){null===Ta?Ta=[e]:Ta.push(e)}function Ra(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oa(t)):(n.next=o.next,o.next=n),t.interleaved=n,_a(e,r)}function _a(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ia=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Rl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_a(e,n)}return null===(o=r.interleaved)?(t.next=t,Oa(r)):(t.next=o.next,o.next=t),r.interleaved=t,_a(e,n)}function Da(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Fa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ja(e,t,n,r){var o=e.updateQueue;Ia=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=F({},d,p);break e;case 2:Ia=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Fl|=i,e.lanes=i,e.memoizedState=d}}function $a(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var za=(new r.Component).refs;function Ba(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Va={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Ma(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=La(e,a,o))&&(rc(t,e,o,r),Da(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Ma(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=La(e,a,o))&&(rc(t,e,o,r),Da(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Ma(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=La(e,o,r))&&(rc(t,e,r,n),Da(t,e,r))}};function Wa(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function Ua(e,t,n){var r=!1,o=Oo,a=t.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(o=No(t)?Io:Ro.current,a=(r=null!=(r=t.contextTypes))?Po(e,o):Oo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function qa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Va.enqueueReplaceState(t,t.state,null)}function Ha(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=za,Pa(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ca(a):(a=No(t)?Io:Ro.current,o.context=Po(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ba(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Va.enqueueReplaceState(o,o.state,null),ja(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ga(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===za&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ka(e){return(0,e._init)(e._payload)}function Ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=jc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===P&&Ka(a)===t.type)?((r=o(t,n.props)).ref=Ga(e,t,n),r.return=e,r):((r=Lc(n.type,n.key,n.props,null,e.mode,r)).ref=Ga(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$c(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Lc(t.type,t.key,t.props,null,e.mode,n)).ref=Ga(e,null,t),n.return=e,n;case E:return(t=$c(t,e.mode,n)).return=e,t;case P:return p(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Dc(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?c(e,t,n,r):null;case E:return n.key===o?u(e,t,n,r):null;case P:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:d(e,t,n,r,null);Qa(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=f(o,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g,d=v}if(m===s.length)return n(o,d),aa&&Zo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&Zo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(v=h(d,o,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,m),c}function v(o,s,l,c){var u=L(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=f(o,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,v),null===d?u=b:d.sibling=b,d=b,m=g}if(y.done)return n(o,m),aa&&Zo(o,v),u;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=p(o,y.value,c))&&(s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return aa&&Zo(o,v),u}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=h(m,o,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),aa&&Zo(o,v),u}return function e(r,a,i,l){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===P&&Ka(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=Ga(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((a=Dc(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Lc(i.type,i.key,i.props,null,r.mode,l)).ref=Ga(r,a,i),l.return=r,r=l)}return s(r);case E:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=$c(i,r.mode,l)).return=r,r=a}return s(r);case P:return e(r,a,(u=i._init)(i._payload),l)}if(te(i))return m(r,a,i,l);if(L(i))return v(r,a,i,l);Qa(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=jc(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var Xa=Ya(!0),Ja=Ya(!1),Za={},ei=ko(Za),ti=ko(Za),ni=ko(Za);function ri(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(To(ni,t),To(ti,e),To(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(ei),To(ei,t)}function ai(){Co(ei),Co(ti),Co(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(To(ti,e),To(ei,n))}function si(e){ti.current===e&&(Co(ei),Co(ti))}var li=ko(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=x.ReactCurrentDispatcher,fi=x.ReactCurrentBatchConfig,hi=0,mi=null,vi=null,gi=null,yi=!1,bi=!1,xi=0,wi=0;function Ei(){throw Error(a(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ai(e,t,n,r,o,i){if(hi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),bi){i=0;do{if(bi=!1,xi=0,25<=i)throw Error(a(301));i+=1,gi=vi=null,t.updateQueue=null,pi.current=cs,e=n(r,o)}while(bi)}if(pi.current=is,t=null!==vi&&null!==vi.next,hi=0,gi=vi=mi=null,yi=!1,t)throw Error(a(300));return e}function ki(){var e=0!==xi;return xi=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?mi.memoizedState=gi=e:gi=gi.next=e,gi}function Ti(){if(null===vi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===gi?mi.memoizedState:gi.next;if(null!==t)gi=t,vi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===gi?mi.memoizedState=gi=e:gi=gi.next=e}return gi}function Oi(e,t){return"function"==typeof t?t(e):t}function Ri(e){var t=Ti(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=vi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((hi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,mi.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,mi.lanes|=i,Fl|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _i(e){var t=Ti(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ii(){}function Pi(e,t){var n=mi,r=Ti(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,xs=!0),r=r.queue,Ui(Li.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(n.flags|=2048,$i(9,Mi.bind(null,n,r,o,t),void 0,null),null===_l)throw Error(a(349));0!=(30&hi)||Ni(n,t,o)}return o}function Ni(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Mi(e,t,n,r){t.value=n,t.getSnapshot=r,Di(t)&&Fi(e)}function Li(e,t,n){return n((function(){Di(t)&&Fi(e)}))}function Di(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Fi(e){var t=_a(e,1);null!==t&&rc(t,e,1,-1)}function ji(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oi,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mi,e),[t.memoizedState,e]}function $i(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Ti().memoizedState}function Bi(e,t,n,r){var o=Ci();mi.flags|=e,o.memoizedState=$i(1|t,n,void 0,void 0===r?null:r)}function Vi(e,t,n,r){var o=Ti();r=void 0===r?null:r;var a=void 0;if(null!==vi){var i=vi.memoizedState;if(a=i.destroy,null!==r&&Si(r,i.deps))return void(o.memoizedState=$i(t,n,a,r))}mi.flags|=e,o.memoizedState=$i(1|t,n,a,r)}function Wi(e,t){return Bi(8390656,8,e,t)}function Ui(e,t){return Vi(2048,8,e,t)}function qi(e,t){return Vi(4,2,e,t)}function Hi(e,t){return Vi(4,4,e,t)}function Gi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qi(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4,4,Gi.bind(null,t,e),n)}function Ki(){}function Yi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ji(e,t,n){return 0==(21&hi)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mi.lanes|=n,Fl|=n,e.baseState=!0),t)}function Zi(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{bt=n,fi.transition=r}}function es(){return Ti().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))os(t,n);else if(null!==(n=Ra(e,t,n,r))){rc(n,e,r,tc()),as(n,t,r)}}function ns(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(o.next=o,Oa(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ra(e,t,o,r))&&(rc(n,e,r,o=tc()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function os(e,t){bi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var is={readContext:Ca,useCallback:Ei,useContext:Ei,useEffect:Ei,useImperativeHandle:Ei,useInsertionEffect:Ei,useLayoutEffect:Ei,useMemo:Ei,useReducer:Ei,useRef:Ei,useState:Ei,useDebugValue:Ei,useDeferredValue:Ei,useTransition:Ei,useMutableSource:Ei,useSyncExternalStore:Ei,useId:Ei,unstable_isNewReconciler:!1},ss={readContext:Ca,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:Ca,useEffect:Wi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4194308,4,Gi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bi(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:ji,useDebugValue:Ki,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=ji(!1),t=e[0];return e=Zi.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,o=Ci();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===_l)throw Error(a(349));0!=(30&hi)||Ni(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Wi(Li.bind(null,r,i,e),[e]),r.flags|=2048,$i(9,Mi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ci(),t=_l.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Ui,useImperativeHandle:Qi,useInsertionEffect:qi,useLayoutEffect:Hi,useMemo:Xi,useReducer:Ri,useRef:zi,useState:function(){return Ri(Oi)},useDebugValue:Ki,useDeferredValue:function(e){return Ji(Ti(),vi.memoizedState,e)},useTransition:function(){return[Ri(Oi)[0],Ti().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Pi,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Ui,useImperativeHandle:Qi,useInsertionEffect:qi,useLayoutEffect:Hi,useMemo:Xi,useReducer:_i,useRef:zi,useState:function(){return _i(Oi)},useDebugValue:Ki,useDeferredValue:function(e){var t=Ti();return null===vi?t.memoizedState=e:Ji(t,vi.memoizedState,e)},useTransition:function(){return[_i(Oi)[0],Ti().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Pi,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ma(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),ps(0,t)},n}function ms(e,t,n){(n=Ma(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ps(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ma(-1,1)).tag=2,La(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Ja(t,null,n,r):Xa(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var a=t.ref;return ka(t,o),r=Ai(e,t,n,r,a,o),n=ki(),null===e||xs?(aa&&n&&ta(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Nc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,As(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return qs(e,t,o)}return t.flags|=1,(e=Mc(a,r)).ref=t.ref,e.return=t,t.child=e}function As(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,qs(e,t,o);0!=(131072&e.flags)&&(xs=!0)}}return Ts(e,t,n,r,o)}function ks(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ml,Nl),Nl|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ml,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,To(Ml,Nl),Nl|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,To(Ml,Nl),Nl|=r;return ws(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,o){var a=No(n)?Io:Ro.current;return a=Po(t,a),ka(t,o),n=Ai(e,t,n,r,a,o),r=ki(),null===e||xs?(aa&&r&&ta(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Os(e,t,n,r,o){if(No(n)){var a=!0;Fo(t)}else a=!1;if(ka(t,o),null===t.stateNode)Us(e,t),Ua(t,n,r),Ha(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ca(c):c=Po(t,c=No(n)?Io:Ro.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&qa(t,i,r,c),Ia=!1;var p=t.memoizedState;i.state=p,ja(t,r,i,o),l=t.memoizedState,s!==r||p!==l||_o.current||Ia?("function"==typeof u&&(Ba(t,n,u,r),l=t.memoizedState),(s=Ia||Wa(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Na(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ga(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ca(l):l=Po(t,l=No(n)?Io:Ro.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&qa(t,i,r,l),Ia=!1,p=t.memoizedState,i.state=p,ja(t,r,i,o);var h=t.memoizedState;s!==d||p!==h||_o.current||Ia?("function"==typeof f&&(Ba(t,n,f,r),h=t.memoizedState),(c=Ia||Wa(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,a,o)}function Rs(e,t,n,r,o,a){Cs(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&jo(t,n,!1),qs(e,t,a);r=t.stateNode,bs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,s,a)):ws(e,t,s,a),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function _s(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),oi(e,t.containerInfo)}function Is(e,t,n,r,o){return ha(),ma(o),t.flags|=256,ws(e,t,n,r),t.child}var Ps,Ns,Ms,Ls,Ds={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,o=t.pendingProps,i=li.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),To(li,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Fc(l,o,0,null),e=Dc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(n),t.memoizedState=Ds,e):$s(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Fc({mode:"visible",children:r.children},o,0,null),(i=Dc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Xa(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=Ds,i);if(0==(1&t.mode))return zs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=ds(i=Error(a(419)),r,void 0))}if(l=0!=(s&e.childLanes),xs||l){if(null!==(r=_l)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,_a(e,o),rc(r,e,o,-1))}return vc(),zs(e,t,s,r=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Ko++]=Xo,Qo[Ko++]=Jo,Qo[Ko++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),t=$s(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(s){s=o.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Mc(r,s):(s=Dc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ds,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function $s(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&ma(r),Xa(t,e.child,null,n),(e=$s(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Aa(e.return,t,n)}function Vs(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Ws(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=li.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(li,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,a);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Us(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qs(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return No(t.type)&&Mo(),Gs(t),null;case 3:return r=t.stateNode,ai(),Co(_o),Co(Ro),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(sc(ia),ia=null))),Ns(e,t),Gs(t),null;case 5:si(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Gs(t),null}if(e=ri(ei.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[ho]=i,e=0!=(1&t.mode),n){case"dialog":$r("cancel",r),$r("close",r);break;case"iframe":case"object":case"embed":$r("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)$r(Lr[o],r);break;case"source":$r("error",r);break;case"img":case"image":case"link":$r("error",r),$r("load",r);break;case"details":$r("toggle",r);break;case"input":Y(r,i),$r("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},$r("invalid",r);break;case"textarea":oe(r,i),$r("invalid",r)}for(var l in ye(n,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&$r("scroll",r)}switch(n){case"input":H(r),Z(r,i,!0);break;case"textarea":H(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fo]=t,e[ho]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":$r("cancel",e),$r("close",e),o=r;break;case"iframe":case"object":case"embed":$r("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)$r(Lr[o],e);o=r;break;case"source":$r("error",e),o=r;break;case"img":case"image":case"link":$r("error",e),$r("load",e),o=r;break;case"details":$r("toggle",e),o=r;break;case"input":Y(e,r),o=K(e,r),$r("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=F({},r,{value:void 0}),$r("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),$r("invalid",e)}for(i in ye(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ve(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&$r("scroll",e):null!=u&&b(e,i,u,l))}switch(n){case"input":H(e),Z(e,r,!1);break;case"textarea":H(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Gs(t),null;case 13:if(Co(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))fa(),ha(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ha(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),i=!1}else null!==ia&&(sc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&li.current)?0===Ll&&(Ll=3):vc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return ai(),Ns(e,t),null===e&&Vr(t.stateNode.containerInfo),Gs(t),null;case 10:return Sa(t.type._context),Gs(t),null;case 19:if(Co(li),null===(i=t.memoizedState))return Gs(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Hs(i,!1);else{if(0!==Ll||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Hs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return To(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>Wl&&(t.flags|=128,r=!0,Hs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Gs(t),null}else 2*Xe()-i.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,Hs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=li.current,To(li,r?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Nl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Ks(e,t){switch(na(t),t.tag){case 1:return No(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Co(_o),Co(Ro),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Co(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(li),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=K(e,o),r=K(e,r),i=[];break;case"select":o=F({},o,{value:void 0}),r=F({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&$r("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Xs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Zs=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){kc(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(t,n,a)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[vo],delete t[go],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xs||el(n,t);case 6:var r=dl,o=pl;dl=null,fl(e,t,n),pl=o,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Vt(e)):lo(dl,n.stateNode));break;case 4:r=dl,o=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=o;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&tl(n,t,i),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Xs&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,fl(e,t,n),Xs=r):fl(e,t,n);break;default:fl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=Rc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));hl(i,s,o),dl=null,pl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){kc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),yl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){kc(e,e.return,t)}try{rl(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:vl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(vl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){kc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&X(o,i),be(l,s);var u=be(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ve(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):b(o,d,p,u)}switch(l){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(o,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[ho]=i}catch(t){kc(e,e.return,t)}}break;case 6:if(vl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){kc(e,e.return,t)}}break;case 3:if(vl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:vl(t,e),yl(e);break;case 13:vl(t,e),yl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Xe())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||d,vl(t,e),Xs=u):vl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(h=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(r,n,e)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){El(p);continue}}null!==h?(h.return=f,Zs=h):El(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){kc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:vl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(a(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!=(1&e.mode);null!==Zs;){var o=Zs,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ys;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ys;var c=Xs;if(Ys=i,(Xs=l)&&!c)for(Zs=o;null!==Zs;)l=(i=Zs).child,22===i.tag&&null!==i.memoizedState?Sl(o):null!==l?(l.return=i,Zs=l):Sl(o);for(;null!==a;)Zs=a,xl(a,t,n),a=a.sibling;Zs=o,Ys=s,Xs=c}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zs=a):wl(e)}}function wl(e){for(;null!==Zs;){var t=Zs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ga(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&$a(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}$a(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Vt(p)}}}break;default:throw Error(a(163))}Xs||512&t.flags&&al(t)}catch(e){kc(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function El(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Sl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){kc(t,o,e)}}var a=t.return;try{al(t)}catch(e){kc(t,a,e)}break;case 5:var i=t.return;try{al(t)}catch(e){kc(t,i,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Al,kl=Math.ceil,Cl=x.ReactCurrentDispatcher,Tl=x.ReactCurrentOwner,Ol=x.ReactCurrentBatchConfig,Rl=0,_l=null,Il=null,Pl=0,Nl=0,Ml=ko(0),Ll=0,Dl=null,Fl=0,jl=0,$l=0,zl=null,Bl=null,Vl=0,Wl=1/0,Ul=null,ql=!1,Hl=null,Gl=null,Ql=!1,Kl=null,Yl=0,Xl=0,Jl=null,Zl=-1,ec=0;function tc(){return 0!=(6&Rl)?Xe():-1!==Zl?Zl:Zl=Xe()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Rl)&&0!==Pl?Pl&-Pl:null!==va.transition?(0===ec&&(ec=mt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Xl)throw Xl=0,Jl=null,Error(a(185));gt(e,n,r),0!=(2&Rl)&&e===_l||(e===_l&&(0==(2&Rl)&&(jl|=n),4===Ll&&lc(e,Pl)),oc(e,r),1===n&&0===Rl&&0==(1&t.mode)&&(Wl=Xe()+500,zo&&Wo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?0!=(s&n)&&0==(s&r)||(o[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=pt(e,e===_l?Pl:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){zo=!0,Vo(e)}(cc.bind(null,e)):Vo(cc.bind(null,e)),io((function(){0==(6&Rl)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=_c(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Zl=-1,ec=0,0!=(6&Rl))throw Error(a(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===_l?Pl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Rl;Rl|=2;var i=mc();for(_l===e&&Pl===t||(Ul=null,Wl=Xe()+500,fc(e,t));;)try{bc();break}catch(t){hc(e,t)}Ea(),Cl.current=i,Rl=o,null!==Il?t=0:(_l=null,Pl=0,t=Ll)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=Dl,fc(e,0),lc(e,r),oc(e,Xe()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!sr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(i=ht(e))&&(r=i,t=ic(e,i))),1===t))throw n=Dl,fc(e,0),lc(e,r),oc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Ec(e,Bl,Ul);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Vl+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ec.bind(null,e,Bl,Ul),t);break}Ec(e,Bl,Ul);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kl(r/1960))-r)){e.timeoutHandle=ro(Ec.bind(null,e,Bl,Ul),r);break}Ec(e,Bl,Ul);break;default:throw Error(a(329))}}}return oc(e,Xe()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&sc(t)),e}function sc(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function lc(e,t){for(t&=~$l,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Rl))throw Error(a(327));Sc();var t=pt(e,0);if(0==(1&t))return oc(e,Xe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Dl,fc(e,0),lc(e,t),oc(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Bl,Ul),oc(e,Xe()),null}function uc(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{0===(Rl=n)&&(Wl=Xe()+500,zo&&Wo())}}function dc(e){null!==Kl&&0===Kl.tag&&0==(6&Rl)&&Sc();var t=Rl;Rl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0==(6&(Rl=t))&&Wo()}}function pc(){Nl=Ml.current,Co(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:ai(),Co(_o),Co(Ro),di();break;case 5:si(r);break;case 4:ai();break;case 13:case 19:Co(li);break;case 10:Sa(r.type._context);break;case 22:case 23:pc()}n=n.return}if(_l=e,Il=e=Mc(e.current,null),Pl=Nl=t,Ll=0,Dl=null,$l=jl=Fl=0,Bl=zl=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ta=null}return e}function hc(e,t){for(;;){var n=Il;try{if(Ea(),pi.current=is,yi){for(var r=mi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}yi=!1}if(hi=0,gi=vi=mi=null,bi=!1,xi=0,Tl.current=null,null===n||null===n.return){Ll=1,Dl=t,Il=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&vs(i,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(c),t.updateQueue=v}else m.add(c);break e}if(0==(1&t)){vs(i,u,t),vc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var g=gs(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),ma(us(c,l));break e}}i=c=us(c,l),4!==Ll&&(Ll=2),null===zl?zl=[i]:zl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fa(i,hs(0,c,t));break e;case 1:l=c;var y=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Gl||!Gl.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Fa(i,ms(i,l,t));break e}}i=i.return}while(null!==i)}wc(n)}catch(e){t=e,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function mc(){var e=Cl.current;return Cl.current=is,null===e?is:e}function vc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===_l||0==(268435455&Fl)&&0==(268435455&jl)||lc(_l,Pl)}function gc(e,t){var n=Rl;Rl|=2;var r=mc();for(_l===e&&Pl===t||(Ul=null,fc(e,t));;)try{yc();break}catch(t){hc(e,t)}if(Ea(),Rl=n,Cl.current=r,null!==Il)throw Error(a(261));return _l=null,Pl=0,Ll}function yc(){for(;null!==Il;)xc(Il)}function bc(){for(;null!==Il&&!Ke();)xc(Il)}function xc(e){var t=Al(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?wc(e):Il=t,Tl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Qs(n,t,Nl)))return void(Il=n)}else{if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Ll=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Ll&&(Ll=5)}function Ec(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{Sc()}while(null!==Kl);if(0!=(6&Rl))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===_l&&(Il=_l=null,Pl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Ql||(Ql=!0,_c(tt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Rl;Rl|=4,Tl.current=null,function(e,t){if(eo=Ut,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++d===r&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ut=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ga(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=nl,nl=!1}(e,n),gl(n,e),hr(to),Ut=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ye(),Rl=l,bt=s,Ol.transition=i}else e.current=n;if(Ql&&(Ql=!1,Kl=e,Yl=o),i=e.pendingLanes,0===i&&(Gl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),oc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ql)throw ql=!1,e=Hl,Hl=null,e;0!=(1&Yl)&&0!==e.tag&&Sc(),i=e.pendingLanes,0!=(1&i)?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,Wo()}(e,t,n,r)}finally{Ol.transition=o,bt=r}return null}function Sc(){if(null!==Kl){var e=xt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,Yl=0,0!=(6&Rl))throw Error(a(331));var o=Rl;for(Rl|=4,Zs=e.current;null!==Zs;){var i=Zs,s=i.child;if(0!=(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var f=(d=Zs).sibling,h=d.return;if(il(d),d===u){Zs=null;break}if(null!==f){f.return=h,Zs=f;break}Zs=h}}}var m=i.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zs=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Zs=s;else e:for(;null!==Zs;){if(0!=(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Zs=y;break e}Zs=i.return}}var b=e.current;for(Zs=b;null!==Zs;){var x=(s=Zs).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,Zs=x;else e:for(s=b;null!==Zs;){if(0!=(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){kc(l,l.return,e)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(Rl=o,Wo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function Ac(e,t,n){e=La(e,t=hs(0,t=us(n,t),1),1),t=tc(),null!==e&&(gt(e,1,t),oc(e,t))}function kc(e,t,n){if(3===e.tag)Ac(e,e,n);else for(;null!==t;){if(3===t.tag){Ac(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=La(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(gt(t,1,e),oc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,_l===e&&(Pl&n)===n&&(4===Ll||3===Ll&&(130023424&Pl)===Pl&&500>Xe()-Vl?fc(e,0):$l|=n),oc(e,t)}function Tc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=_a(e,t))&&(gt(e,t,n),oc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Rc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}function _c(e,t){return Ge(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Ic(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lc(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Dc(n.children,o,i,t);case A:s=8,o|=8;break;case k:return(e=Pc(12,n,t,2|o)).elementType=k,e.lanes=i,e;case R:return(e=Pc(13,n,t,o)).elementType=R,e.lanes=i,e;case _:return(e=Pc(19,n,t,o)).elementType=_,e.lanes=i,e;case N:return Fc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case O:s=11;break e;case I:s=14;break e;case P:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Dc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Fc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function jc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function $c(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,a,i,s,l){return e=new zc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pa(a),e}function Vc(e){if(!e)return Oo;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(No(n))return Do(e,n,t)}return t}function Wc(e,t,n,r,o,a,i,s,l){return(e=Bc(n,r,!0,e,0,a,0,s,l)).context=Vc(null),n=e.current,(a=Ma(r=tc(),o=nc(n))).callback=null!=t?t:null,La(n,a,o),e.current.lanes=o,gt(e,o,r),oc(e,r),e}function Uc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=Vc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ma(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=La(o,t,i))&&(rc(e,o,i,a),Da(e,o,i)),i}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}Al=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||_o.current)xs=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:_s(t),ha();break;case 5:ii(t);break;case 1:No(t.type)&&Fo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;To(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(To(li,1&li.current),t.flags|=128,null):0!=(n&t.child.childLanes)?js(e,t,n):(To(li,1&li.current),null!==(e=qs(e,t,n))?e.sibling:null);To(li,1&li.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),To(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return qs(e,t,n)}(e,t,n);xs=0!=(131072&e.flags)}else xs=!1,aa&&0!=(1048576&t.flags)&&ea(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var o=Po(t,Ro.current);ka(t,n),o=Ai(null,t,r,e,o,n);var i=ki();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(i=!0,Fo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Pa(t),o.updater=Va,t.stateNode=o,o._reactInternals=t,Ha(t,r,e,n),t=Rs(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===I)return 14}return 2}(r),e=ga(r,e),o){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ga(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:ga(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ga(r,o),n);case 3:e:{if(_s(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Na(e,t),ja(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Is(e,t,r,n,o=us(Error(a(423)),t));break e}if(r!==o){t=Is(e,t,r,n,o=us(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Ja(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===o){t=qs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==i&&no(r,i)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return js(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xa(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:ga(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,To(ya,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===o.children&&!_o.current){t=qs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Ma(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Aa(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Aa(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ka(t,n),r=r(o=Ca(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ga(r=t.type,t.pendingProps),Ss(e,t,r,o=ga(r.type,o),n);case 15:return As(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ga(r,o),Us(e,t),t.tag=1,No(r)?(e=!0,Fo(t)):e=!1,ka(t,n),Ua(t,r,o),Ha(t,r,o,n),Rs(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return ks(e,t,n)}throw Error(a(156,t.tag))};var Qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=qc(i);s.call(e)}}Uc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=qc(i);a.call(e)}}var i=Wc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=i,e[mo]=i.current,Vr(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=qc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[mo]=l.current,Vr(8===e.nodeType?e.parentNode:e),dc((function(){Uc(t,l,n,r)})),l}(n,t,e,o,r);return qc(i)}Yc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Uc(e,t,null,null)},Yc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Uc(null,e,null,null)})),t[mo]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=At();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),oc(t,Xe()),0==(6&Rl)&&(Wl=Xe()+500,Wo()))}break;case 13:dc((function(){var t=_a(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Gc(e,1)}},Et=function(e){if(13===e.tag){var t=_a(e,134217728);if(null!==t)rc(t,e,134217728,tc());Gc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=_a(e,t);if(null!==n)rc(n,e,t,tc());Gc(e,t)}},At=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Eo(r);if(!o)throw Error(a(90));G(r),J(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=uc,Re=dc;var tu={usingClientEntryPoint:!1,Events:[xo,wo,Eo,Ce,Te,uc]},nu={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var n=!1,r="",o=Qc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Kc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Qc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,o,0,i,s),e[mo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},2222:(e,t,n)=>{"use strict";var r=n(2357);t.H=r.createRoot,r.hydrateRoot},2357:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1619)},6180:(e,t,n)=>{"use strict";var r,o;r=n(1405),o=n(6291),r.version,t.F0=r.renderToString,r.renderToStaticMarkup,r.renderToNodeStream,r.renderToStaticNodeStream,o.renderToReadableStream},2957:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case m:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},3089:(e,t,n)=>{"use strict";e.exports=n(2957)},7598:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case s:case i:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return g(e)===c}},8242:(e,t,n)=>{"use strict";e.exports=n(7598)},9308:(e,t,n)=>{"use strict";var r=n(9532),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},8327:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var x=b.prototype=new y;x.constructor=b,m(x,g.prototype),x.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,S={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,o)&&!A.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:e,key:i,ref:s,props:a,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===a?"."+O(l,0):a,w(i)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),R(i,t,o,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+O(s=e[c],c);l+=R(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=R(s=s.value,t,o,u=a+O(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function _(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},N={transition:null},M={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};t.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=i,t.PureComponent=b,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!A.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.2.0"},9532:(e,t,n)=>{"use strict";e.exports=n(8327)},4256:(e,t,n)=>{"use strict";e.exports=n(9308)},3557:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=(0,o.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,o){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,o=(r=n(8819))&&r.__esModule?r:{default:r}},8819:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"==typeof self?"undefined":n(self))||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch(e){return!1}return!0}(t)?self[t]:o};var o={getItem:r,setItem:r,removeItem:r}},2620:(e,t,n)=>{"use strict";var r;t.A=void 0;var o=(0,((r=n(3557))&&r.__esModule?r:{default:r}).default)("session");t.A=o},1669:(e,t,n)=>{"use strict";e.exports=n(9532)},5787:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<o&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(v=!1,x(e),!m)if(null!==r(c))m=!0,N(E);else{var t=r(u);null!==t&&M(w,t.startTime-e)}}function E(e,n){m=!1,v&&(v=!1,y(C),C=-1),h=!0;var a=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!R());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),x(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&M(w,d.startTime-n),l=!1}return l}finally{p=null,f=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,A=!1,k=null,C=-1,T=5,O=-1;function R(){return!(t.unstable_now()-O<T)}function _(){if(null!==k){var e=t.unstable_now();O=e;var n=!0;try{n=k(!0,e)}finally{n?S():(A=!1,k=null)}}else A=!1}if("function"==typeof b)S=function(){b(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=_,S=function(){P.postMessage(null)}}else S=function(){g(_,0)};function N(e){k=e,A||(A=!0,S())}function M(e,n){C=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,N(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(v?(y(C),C=-1):v=!0,M(w,a-i))):(e.sortIndex=s,n(c,e),m||h||(m=!0,N(E))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3858:(e,t,n)=>{"use strict";e.exports=n(5787)},7390:(e,t,n)=>{"use strict";var r=n(9532);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},4353:(e,t,n)=>{"use strict";var r=n(9532),o=n(6439);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var f=i(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},6439:(e,t,n)=>{"use strict";e.exports=n(7390)},4405:(e,t,n)=>{"use strict";e.exports=n(4353)},5206:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7006:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},6993:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},5216:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},7907:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},5247:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";o.d(a,{default:()=>_I});var e=o(9532),t=o.t(e,2),n=o(2222),r="persist:",i="persist/FLUSH",s="persist/REHYDRATE",l="persist/PAUSE",c="persist/PERSIST",u="persist/PURGE",d="persist/REGISTER";function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t,n,r){r.debug;var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return e&&"object"===p(e)&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function v(e){var t,n=e.blacklist||null,o=e.whitelist||null,a=e.transforms||[],i=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:g;var c=e.writeFailHandler||null,u={},d={},p=[],f=null,h=null;function m(){if(0===p.length)return f&&clearInterval(f),void(f=null);var e=p.shift(),n=a.reduce((function(t,n){return n.in(t,e,u)}),u[e]);if(void 0!==n)try{d[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===p.length&&(Object.keys(d).forEach((function(e){void 0===u[e]&&delete d[e]})),h=l.setItem(s,t(d)).catch(y))}function v(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function y(e){c&&c(e)}return{update:function(e){Object.keys(e).forEach((function(t){v(t)&&u[t]!==e[t]&&-1===p.indexOf(t)&&p.push(t)})),Object.keys(u).forEach((function(t){void 0===e[t]&&v(t)&&-1===p.indexOf(t)&&void 0!==u[t]&&p.push(t)})),null===f&&(f=setInterval(m,i)),u=e},flush:function(){for(;0!==p.length;)m();return h||Promise.resolve()}}}function g(e){return JSON.stringify(e)}function y(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key),a=e.storage;e.debug;return t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:b,a.getItem(o).then((function(e){if(e)try{var r={},o=t(e);return Object.keys(o).forEach((function(e){r[e]=n.reduceRight((function(t,n){return n.out(t,e,o)}),t(o[e]))})),r}catch(e){throw e}}))}function b(e){return JSON.parse(e)}function x(e){0}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(n,!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e,t){var n=void 0!==e.version?e.version:-1,o=(e.debug,void 0===e.stateReconciler?m:e.stateReconciler),a=e.getStoredState||y,d=void 0!==e.timeout?e.timeout:5e3,p=null,f=!1,h=!0,g=function(e){return e._persist.rehydrated&&p&&!h&&p.update(e),e};return function(m,y){var b=m||{},w=b._persist,S=A(b,["_persist"]);if(y.type===c){var k=!1,C=function(t,n){k||(y.rehydrate(e.key,t,n),k=!0)};if(d&&setTimeout((function(){!k&&C(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),d),h=!1,p||(p=v(e)),w)return E({},t(S,y),{_persist:w});if("function"!=typeof y.rehydrate||"function"!=typeof y.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return y.register(e.key),a(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){C(e)}),(function(e){C(void 0,e)}))}),(function(e){C(void 0,e)})),E({},t(S,y),{_persist:{version:n,rehydrated:!1}})}if(y.type===u)return f=!0,y.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key);return t.removeItem(n,x)}(e)),E({},t(S,y),{_persist:w});if(y.type===i)return y.result(p&&p.flush()),E({},t(S,y),{_persist:w});if(y.type===l)h=!0;else if(y.type===s){if(f)return E({},S,{_persist:E({},w,{rehydrated:!0})});if(y.key===e.key){var T=t(S,y),O=y.payload,R=E({},!1!==o&&void 0!==O?o(O,m,T,e):T,{_persist:E({},w,{rehydrated:!0})});return g(R)}}if(!w)return t(m,y);var _=t(S,y);return _===S?m:g(E({},_,{_persist:w}))}}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function T(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===C(t)?t:String(t)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=T(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var I="function"==typeof Symbol&&Symbol.observable||"@@observable",P=function(){return Math.random().toString(36).substring(7).split("").join(".")},N={INIT:"@@redux/INIT"+P(),REPLACE:"@@redux/REPLACE"+P(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+P()}};function M(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function L(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(_(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(_(1));return n(L)(e,t)}if("function"!=typeof e)throw new Error(_(2));var o=e,a=t,i=[],s=i,l=!1;function c(){s===i&&(s=i.slice())}function u(){if(l)throw new Error(_(3));return a}function d(e){if("function"!=typeof e)throw new Error(_(4));if(l)throw new Error(_(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(_(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),i=null}}}function p(e){if(!M(e))throw new Error(_(7));if(void 0===e.type)throw new Error(_(8));if(l)throw new Error(_(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:N.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(_(10));o=e,p({type:N.REPLACE})}})[I]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(_(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[I]=function(){return this},e},r}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function F(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(n,!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B={registry:[],bootstrapped:!1},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case d:return $({},e,{registry:[].concat(F(e.registry),[t.key])});case s:var n=e.registry.indexOf(t.key),r=F(e.registry);return r.splice(n,1),$({},e,{registry:r,bootstrapped:0===r.length});default:return e}};function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},G(e,t)}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?H(e):t}(this,(e=q(t)).call.apply(e,[this].concat(o))),Q(H(n),"state",{bootstrapped:!1}),Q(H(n),"_unsubscribe",void 0),Q(H(n),"handlePersistorState",(function(){n.props.persistor.getState().bootstrapped&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally((function(){return n.setState({bootstrapped:!0})})):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}])&&U(n.prototype,r),o&&U(n,o),t}(e.PureComponent);Q(K,"defaultProps",{children:null,loading:null});var Y=o(2620),X=o(6439),J=o(4405),Z=o(2357);let ee=function(e){e()};const te=()=>ee,ne=Symbol.for("react-redux-context"),re="undefined"!=typeof globalThis?globalThis:{};function oe(){var t;if(!e.createContext)return{};const n=null!=(t=re[ne])?t:re[ne]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const ae=oe();function ie(t=ae){return function(){return(0,e.useContext)(t)}}const se=ie(),le=()=>{throw new Error("uSES not initialized!")};let ce=le;const ue=(e,t)=>e===t;function de(t=ae){const n=t===ae?se:ie(t);return function(t,r={}){const{equalityFn:o=ue,stabilityCheck:a,noopCheck:i}="function"==typeof r?{equalityFn:r}:r;const{store:s,subscription:l,getServerState:c,stabilityCheck:u,noopCheck:d}=n(),p=((0,e.useRef)(!0),(0,e.useCallback)({[t.name]:e=>t(e)}[t.name],[t,u,a])),f=ce(l.addNestedSub,s.getState,c||s.getState,p,o);return(0,e.useDebugValue)(f),f}}const pe=de();function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(this,arguments)}function he(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var me=o(2329),ve=o.n(me),ge=o(8242);const ye=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function be(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let s,l,c,u,d,p=!1;function f(p,f){const h=!a(f,l),m=!o(p,s,f,l);return s=p,l=f,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!i(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(o,a){return p?f(o,a):(s=o,l=a,c=e(s,l),u=t(r,l),d=n(c,u,l),p=!0,d)}}function xe(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function we(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ee(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=we(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=we(o),o=r(t,n)),o},r}}function Se(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Ae(e,t,n){return fe({},n,e,t)}const ke={notify(){},get:()=>[]};function Ce(e,t){let n,r=ke,o=0,a=!1;function i(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=te();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=ke)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,l())},getListeners:()=>r};return c}const Te=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?e.useLayoutEffect:e.useEffect;function Oe(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Re(e,t){if(Oe(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Oe(e[n[r]],t[n[r]]))return!1;return!0}const _e=["reactReduxForwardedRef"];let Ie=le;const Pe=[null,null];function Ne(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function Me(e,t){return e===t}const Le=function(t,n,r,{pure:o,areStatesEqual:a=Me,areOwnPropsEqual:i=Re,areStatePropsEqual:s=Re,areMergedPropsEqual:l=Re,forwardRef:c=!1,context:u=ae}={}){const d=u,p=function(e){return e?"function"==typeof e?Ee(e):Se(e,"mapStateToProps"):xe((()=>({})))}(t),f=function(e){return e&&"object"==typeof e?xe((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?Ee(e):Se(e,"mapDispatchToProps"):xe((e=>({dispatch:e})))}(n),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const s=e(t,n,i);return a?r(s,o)||(o=s):(a=!0,o=s),o}}}(e):Se(e,"mergeProps"):()=>Ae}(r),m=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:a,areStatePropsEqual:s,areOwnPropsEqual:i,areMergedPropsEqual:l};function u(n){const[r,a,i]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=he(n,_e);return[n.context,e,t]}),[n]),s=e.useMemo((()=>r&&r.Consumer&&(0,ge.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),l=e.useContext(s),c=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=Boolean(l)&&Boolean(l.store);const p=c?n.store:l.store,f=u?l.getServerState:p.getState,h=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,a=he(t,ye);return be(n(e,a),r(e,a),o(e,a),e,a)}(p.dispatch,o)),[p]),[v,g]=e.useMemo((()=>{if(!m)return Pe;const e=Ce(p,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,l]),y=e.useMemo((()=>c?l:fe({},l,{subscription:v})),[c,l,v]),b=e.useRef(),x=e.useRef(i),w=e.useRef(),E=e.useRef(!1),S=(e.useRef(!1),e.useRef(!1)),A=e.useRef();Te((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=e.useMemo((()=>()=>w.current&&i===x.current?w.current:h(p.getState(),i)),[p,i]),C=e.useMemo((()=>e=>v?function(e,t,n,r,o,a,i,s,l,c,u){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!s.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===a.current?i.current||c():(a.current=n,l.current=n,i.current=!0,u())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,p,v,h,x,b,E,S,w,g,e):()=>{}),[v]);var T,O,R;let _;T=Ne,O=[x,b,E,i,w,g],Te((()=>T(...O)),R);try{_=Ie(C,k,f?()=>h(f(),i):k)}catch(e){throw A.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${A.current.stack}\n\n`),e}Te((()=>{A.current=void 0,w.current=void 0,b.current=_}));const I=e.useMemo((()=>e.createElement(t,fe({},_,{ref:a}))),[a,t,_]);return e.useMemo((()=>m?e.createElement(s.Provider,{value:y},I):I),[s,I,y])}const v=e.memo(u);if(v.WrappedComponent=t,v.displayName=u.displayName=r,c){const n=e.forwardRef((function(t,n){return e.createElement(v,fe({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,ve()(n,t)}return ve()(v,t)}};const De=function({store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",noopCheck:i="once"}){const s=e.useMemo((()=>{const e=Ce(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,noopCheck:i}}),[t,o,a,i]),l=e.useMemo((()=>t.getState()),[t]);Te((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,l]);const c=n||ae;return e.createElement(c.Provider,{value:s},r)};function Fe(e=ae){const t=e===ae?se:ie(e);return function(){const{store:e}=t();return e}}const je=Fe();function $e(e=ae){const t=e===ae?je:Fe(e);return function(){return t().dispatch}}const ze=$e();var Be,Ve,We,Ue,qe,He;Be=J.useSyncExternalStoreWithSelector,ce=Be,(e=>{Ie=e})(X.useSyncExternalStore),Ve=Z.unstable_batchedUpdates,ee=Ve,(Ue=We||(We={})).Positive="#357B38",Ue.Negative="#AB2F26",Ue.OfferedNoResponse="#BDBDBD",Ue.NotOffered="#424242",Ue.Interactions="#3F51B5",(He=qe||(qe={})).GreenPositive="#4CAF50",He.LightGray="#F5F5F5",He.Gray="#C4C4C4",He.DarkGray="#00000099",He.DividerGray="#E0E0E0",He.ButtonGray="#757575",He.DarkBlue="#0D3C61",He.DarkGreen="#265828",He.GrayTextBox="#EEEEEE";var Ge={BOTAUTH_SSO_CID:"botauth:sso:cid",BOTAUTH_SSO_TOK:"botauth:sso:tok",BOTAUTH_SSO_BID:"botauth:sso:bid",ATTEMPTED_REFRESH:"ocelot__did_refresh_for_auth",PERSIST_PREFIX:"persist"};const Qe=function(){function e(){this._data=new Map}return e.prototype.setItem=function(e,t){void 0===e&&(e=""),void 0===t&&(t=""),this._data.set(e,t)},e.prototype.getItem=function(e){return void 0===e&&(e=""),this._data.get(e)},e.prototype.removeItem=function(e){this._data.delete(e)},e.prototype.clear=function(){this._data.clear()},e.prototype.keys=function(){return Object.keys(this._data)},e}();const Ke=new(function(){function e(){this.OCELOT_KEYS=Object.values(Ge);try{this._storage=(null===window||void 0===window?void 0:window.sessionStorage)?null===window||void 0===window?void 0:window.sessionStorage:new Qe}catch(e){this._storage=new Qe}}return e.prototype.getItem=function(e){try{return this._storage.getItem(e)}catch(t){return console.error("SessionStorage: Failed to get item",{key:e,err:t}),null}},e.prototype.setItem=function(e,t){try{this._storage.setItem(e,t)}catch(t){console.error("SessionStorage: Failed to set item",{key:e,err:t})}},e.prototype.getJSONItem=function(e){try{var t=this.getItem(e);return t?JSON.parse(t):(console.error("Could not find value saved in SessionStorage",{key:e}),null)}catch(t){return console.error("SessionStorage: Failed to get JSON item",{key:e,err:t}),null}},e.prototype.setJSONItem=function(e,t){try{var n=JSON.stringify(t);this._storage.setItem(e,n)}catch(t){console.error("SessionStorage: Failed to set JSON item",{key:e,err:t})}},e.prototype.removeItem=function(e){try{this._storage.removeItem(e)}catch(t){console.error("SessionStorage: Failed to remove key",{key:e,err:t})}},e.prototype.clearSession=function(){var e=this;try{this.keys().filter((function(t){return e.OCELOT_KEYS.some((function(e){return t.startsWith(e)}))})).forEach((function(t){e.removeItem(t)}))}catch(e){console.error("SessionStorage: Failed to clear storage",e)}},e.prototype.keys=function(){return this._storage instanceof Qe?this._storage.keys():Object.keys(this._storage)},e}());var Ye,Xe,Je,Ze,et,tt,nt,rt,ot,at,it,st,lt,ct,ut,dt,pt,ft,ht,mt,vt,gt,yt,bt,xt,wt,Et,St,At,kt,Ct,Tt,Ot,Rt,_t,It,Pt,Nt,Mt,Lt,Dt,Ft,jt,$t,zt,Bt,Vt,Wt,Ut;(Xe=Ye||(Ye={})).ConversationModeChanged="ConversationModeChanged",Xe.ConversationNeedAttention="ConversationNeedAttention",Xe.ConversationsContactOptOutEntriesChanged="ConversationsContactOptOutEntriesChanged",Xe.ConversationHasNewFormSubmission="ConversationHasNewFormSubmission",Xe.ConversationTwilioStatusUpdate="ConversationTwilioStatusUpdate",(Ze=Je||(Je={})).AUTH_SET_TOKEN="AUTH_SET_TOKEN",Ze.AUTH_SET_DATA="AUTH_SET_DATA",function(e){e.TOGGLE_DISPLAY="TOGGLE_DISPLAY",e.CONFIGURE_PLACEHOLDER="CONFIGURE_PLACEHOLDER",e.SET_PLACEHOLDER="SET_PLACEHOLDER",e.RESET_PLACEHOLDER="RESET_PLACEHOLDER",e.SET_CONVERSATION_STARTED="SET_CONVERSATION_STARTED"}(et||(et={})),(tt||(tt={})).CLIENT_AUTH_SET_TOKEN="CLIENT_AUTH_SET_TOKEN",function(e){e.SET_CONFIG_OVERRIDES="SET_CONFIG_OVERRIDES",e.RESET_CONFIG_OVERRIDES="RESET_CONFIG_OVERRIDES"}(nt||(nt={})),(ot=rt||(rt={})).Ai="ai",ot.LiveChat="livechat",ot.Campaign="campaign",(it=at||(at={})).TemporaryDisconnect="temporary_disconnect",it.Reconnect="reconnect",it.RedirectedToAuthSite="redirected_to_auth_site",it.ConversationTransferred="conversation_transferred",it.Logout="logout",it.Login="login",(st||(st={})).Logout="Logout",(ct=lt||(lt={})).AuthRequest="auth_request",ct.Form="form",ct.FormNoResponse="form_no_response",ct.Idk="idk",ct.Knowledgebase="kb",ct.NoIntent="noIntent",ct.Search="search",ct.Slot="slot",ct.Smalltalk="smalltalk",ct.Suggestion="suggestion",ct.WatchVideo="watchvideo",ct.Welcome="welcome",ct.OptInOptOutNoResponse="opt_in_opt_out_no_response",ct.ClarifyingQuestion="cq",ct.Webhook="webhook",ct.AutoGeneratedResponse="auto_generated_content",ct.AskUserToRedirectToAuthSite="ask_user_to_redirect_to_auth_site",ct.Declined="guardrails_declined",(dt=ut||(ut={})).SendResponse="SendResponse",dt.Callback="Callback",(ft=pt||(pt={})).Web="web",ft.CampaignSMS="campaign_sms",ft.CampaignEmail="campaign_email",ft.CampaignUnsolicitedSms="campaign_unsolicited_sms",ft.InboundSMS="inbound_sms",(mt=ht||(ht={})).OperatorTurn="livechat:operator",mt.ClientTurn="livechat:client",mt.QueueTurn="livechat:queue",mt.CampaignBotTurn="campaign:bot",mt.CampaignOperatorTurn="campaign:operator",mt.CampaignClientTurn="campaign:client",(gt=vt||(vt={})).Video="video",gt.Webpage="webpage",gt.File="file",(bt=yt||(yt={})).Sending="Sending",bt.Sent="Sent",bt.Delivered="Delivered",bt.Failed="Failed",(wt=xt||(xt={})).Live="Live",wt.Staging="Staging",(St=Et||(Et={})).ConversationClientConnectionStatus="live_conversation_client_connection_status",St.LiveConversationQueueChanged="live_conversation_queue_changed",St.LiveConversationClientNameChanged="live_conversation_client_name_changed",St.LiveConversationStartTypingOperator="live_conversation_start_typing_operator",St.LiveConversationStopTypingOperator="live_conversation_stop_typing_operator",St.LiveConversationClientTyping="live_conversation_client_typing",St.LiveConversationSuperseded="live_conversation_superseded",St.ConversationClientAuthenticated="live_conversation_client_authenticated",St.PromptAuthLogin="live_conversation_prompt_auth_login",(kt=At||(At={})).OVERRIDE_CONVERSATION_CONTEXT="OVERRIDE_CONVERSATION_CONTEXT",kt.UPDATE_CONVERSATION_CONTEXT="UPDATE_CONVERSATION_CONTEXT",(Tt=Ct||(Ct={})).Suggestions="suggestions",Tt.Videos="videos",Tt.Links="links",(Rt=Ot||(Ot={})).SetBackdropOpen="[explore] SET_BACKDROP_OPEN",Rt.SetBackdropTab="[explore] SET_BACKDROP_TAB",(It=_t||(_t={})).OPEN_FEEDBACK_DIALOG="OPEN_FEEDBACK_DIALOG",It.FEEDBACK_PROMPT_OPEN="FEEDBACK_PROMPT_OPEN",It.FEEDBACK_PROMPT_SHOWN="FEEDBACK_PROMPT_SHOWN",It.SEND_FEEDBACK="SEND_FEEDBACK",It.FEEDBACK_SAVED_SUCCESSFULLY="FEEDBACK_SAVED_SUCCESSFULLY",It.CLEAR_FEEDBACK="CLEAR_FEEDBACK",(Pt||(Pt={})).SET_KEY="SET_KEY",function(e){e.CHANGE_LANGUAGE="CHANGE_LANGUAGE",e.FIRE_LANGUAGE_EVENT="FIRE_LANGUAGE_EVENT"}(Nt||(Nt={})),(Lt=Mt||(Mt={})).ConversationSuperseededOperator="ConversationSuperseededOperator",Lt.ConversationSuperseededOffice="ConversationSuperseededOffice",Lt.ConversationSuperseededReject="ConversationSuperseededReject",Lt.DownloadTranscript="DownloadTranscript",Lt.PromptAuthSsoRedirect="PromptAuthSsoRedirect",Lt.SendResponse="SendResponse",function(e){e.SEND_MESSAGE="SEND_MESSAGE",e.RECEIVE_MESSAGE="RECEIVE_MESSAGE",e.UPDATE_MESSAGE="UPDATE_MESSAGE",e.TYPING_RESPONSE="TYPING_RESPONSE",e.REPLACE_MESSAGES="REPLACE_MESSAGES",e.CLEAR_HISTORY="CLEAR_HISTORY",e.TOGGLE_LIVE_CHAT="TOGGLE_LIVE_CHAT",e.TOGGLE_LIVE_CHAT_CONNECTED="TOGGLE_LIVE_CHAT_CONNECTED",e.TOGGLE_LIVE_CHAT_UI_CONNECTED="TOGGLE_LIVE_CHAT_UI_CONNECTED",e.TOGGLE_CAMPAIGN="TOGGLE_CAMPAIGN",e.UPDATE_LIVE_CHAT_ASSIGNEE="UPDATE_LIVE_CHAT_ASSIGNEE",e.NEW_UNREAD_MESSAGE="NEW_UNREAD_MESSAGE",e.READ_MESSAGES="READ_MESSAGES",e.ADD_ASYNC_RESPONSE_IDS_WAITING="ADD_ASYNC_RESPONSE_IDS_WAITING",e.REMOVE_ASYNC_RESPONSE_IDS_WAITING="REMOVE_ASYNC_RESPONSE_IDS_WAITING"}(Dt||(Dt={})),(jt=Ft||(Ft={})).UPDATE_CALLOUT_BUBBLE_STATUS="UPDATE_CALLOUT_BUBBLE_STATUS",jt.SET_CAMPUS_OFFICE_PREFERENCE="SET_CAMPUS_OFFICE_PREFERENCE",(zt=$t||($t={})).SwitchFeedbackButtons="switchFeedbackButtons",zt.VideoDisabled="videoDisabled",zt.AdditionalLanguages="additionalLanguages",zt.ConcerningInteractionsSettings="concerningInteractionsSettings",(Vt=Bt||(Bt={}))[Vt.Positive=1]="Positive",Vt[Vt.None=0]="None",Vt[Vt.Negative=-1]="Negative",(Ut=Wt||(Wt={})).AnswerQuestions="Answer Question(s)",Ut.ExitChatbot="Exit Chatbot",Ut.SkipQuestions="Skip Question(s)";const qt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Ht=function(e){return"string"==typeof e&&qt.test(e)};var Gt;Gt=function(e){return Ht(e)};const Qt=e=>{const t=document.createElement("a");return t.href=e,t.hostname},Kt=(e,t)=>{let n=e;return e&&"object"==typeof e&&!Array.isArray(e)&&(n=e[t]?e[t]:e.en),Array.isArray(n)?n.join(" "):n},Yt=(e,t)=>t in e?e[t]:e.text,Xt=(e,t="en")=>Kt(((e,t)=>{if("string"==typeof e)return e;if(!("type"in e))return Yt(e,t);switch(e.type){case ut.SendResponse:case ut.Callback:return Yt(e,t);default:return console.error(`getActionLabel: unknown action type "${e.type}"`),""}})(e,t),t),Jt="#ffee58";var Zt=function(e){return{type:Je.AUTH_SET_TOKEN,token:e}},en=function(e){return{type:Je.AUTH_SET_DATA,data:e}},tn=function(){return function(e){var t=Ke.getItem(Ge.BOTAUTH_SSO_TOK);if(t){var n=(e=>{try{const t=e.split(".")[1],n=atob(t);return JSON.parse(n)}catch(e){return null}})(t);n&&(e(Zt(t)),e(en(n)))}}},nn=function(e){return function(t){e&&t({type:Dt.READ_MESSAGES}),t({type:et.TOGGLE_DISPLAY,open:e})}},rn=function(e){return{type:tt.CLIENT_AUTH_SET_TOKEN,clientToken:e}},on=function(e){return{type:At.OVERRIDE_CONVERSATION_CONTEXT,context:e}},an=function(e){return{type:At.UPDATE_CONVERSATION_CONTEXT,context:e}},sn=o(7642),ln=o.n(sn);const cn=/^\{.*\}$/,un=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,dn=e=>e.substring(1,e.length-1),pn=(e,t=!0,n="",r="")=>e.split(un).map((e=>{if(!e.match(un))return e;const t=dn(e);if(t.startsWith("{"))return((e,t)=>{let[n,r]=e.split(":");r||(r=n,n=t);const o=r.split("|"),[a,i,s,l,c,u]=o,d=o.filter((e=>void 0!==e)).length;return 1===d?{k:n,r:a}:2===d?{k:n,o:a,r:i}:3===d?{k:n,z:a,o:i,r:s}:{k:n,z:a,o:i,t:s,f:l,m:c,r:u}})(dn(t),r);const o=(e=>{const[t="",...n]=e.split("|"),[r="",o]=t.split(":"),[a,i]=r.split("?");return{k:a,i:o,n:""===i,f:n}})(t);return r=o.k||r,!n&&(n=r),o})).map((e=>{if("string"==typeof e)return e;e.k||(e.k=n||"0");const r=(e=>Object.fromEntries(Object.keys(e).map((t=>{const n=e[t];return[t,Array.isArray(n)?n.map((e=>null==e?void 0:e.trim())):n===!!n?n:null==n?void 0:n.trim()]}))))(e);return t?(o=r,Object.fromEntries(Object.entries(o).map((([e,t])=>"i"!==e&&t&&"0"!=t&&[e,t])).filter(Boolean))):r;var o})),fn=(e,t,n)=>t.reduce(((t,n)=>{var r,o,a;return null!==(o=n.match(cn)?(e=>{var n;return null!==(n=e[t])&&void 0!==n?n:e["*"]})((a=n,Object.fromEntries(dn(a).split(",").map((e=>e.split(":"))).reduce(((e,t)=>2===t.length?[...e,t.map((e=>e.trim()))]:(e[e.length-1][1]+=","+t[0],e)),[])))):null===(r=e[n])||void 0===r?void 0:r.call(e,t))&&void 0!==o?o:t}),n),hn=/\?\?/g,mn=(e,t,n,r)=>{const o=r[0],a=o&&"object"==typeof o&&o.constructor===Object;return((e,t,n,r)=>e.map((e=>{if("string"==typeof e)return e;const{k:o="0",f:a=[]}=e,i=r[o];if((e=>!(!e.o&&!e.r))(e))return(("boolean"==typeof i?i?e.o:e.r:((e,{z:t,o:n,t:r,f:o,m:a,r:i},s)=>{switch(t&&0==s?"zero":e.select(s)){case"zero":return t;case"one":return n;case"two":return r;case"few":return null!=o?o:i;case"many":return null!=a?a:i;default:return i}})(t,e,i))||"").replace(hn,i);const s=a.length?fn(n,a,i):i;return(""+(null!=s?s:"")).trim()})).join(""))(e,t,n,1===r.length&&a?o:r)},vn=(e,t)=>e[t]||(e[t]=pn(t)),gn=(e,t)=>{const n={},r=new Intl.PluralRules(e);return(e,...o)=>mn(vn(n,e),r,t,o)};const yn=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty((()=>""),"name",{writable:!0}),e),bn=(e,t)=>new Proxy(yn(e,t),{get:(e,n)=>n===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map((e=>yn(e,t)))):bn(e[n],t)});var xn=e=>!!e,wn=(((e="lang")=>{})(),((e="lang")=>{})(),e=>!!e),En=(((e="lang")=>{})(),function e(){var t=[].slice.call(arguments),n=!1;"boolean"==typeof t[0]&&(n=t.shift());var r=t[0];if(Sn(r))throw new Error("extendee must be an object");for(var o=t.slice(1),a=o.length,i=0;i<a;i++){var s=o[i];for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){var c=s[l];if(n&&(d=c,Array.isArray(d)||"[object Object]"=={}.toString.call(d))){var u=Array.isArray(c)?[]:{};r[l]=e(!0,Object.prototype.hasOwnProperty.call(r,l)&&!Sn(r[l])?r[l]:u,c)}else r[l]=c}}var d;return r});function Sn(e){return!e||"object"!=typeof e&&"function"!=typeof e}var An=()=>(e,t)=>En({},e,t),kn=(An(),["en"]),Cn={},Tn={},On=(An(),function(e){return function(e,t,n={}){return bn(t,gn(e,n))}(e,Cn[e],Tn[e])});const Rn=(e,t)=>{const n=document.getElementById("ocelotbot-message-container");if(!n)return;let r=document.createElement("div");const o=document.getElementById("conversation-review-status-pane-content");t&&o&&(r=o);const a=[...new Set([].concat(...[...n.querySelectorAll("[class]"),...r.querySelectorAll("[class]")].map((e=>[...e.classList]))))];let i='<style type="text/css">';[...document.styleSheets].forEach((e=>{e.ownerNode.hasAttribute("data-s")&&[...e.rules].filter((e=>t?(e=>e.selectorText&&("body"===e.selectorText||a.includes(e.selectorText.substring(1))||e.selectorText.includes("MemoMessages-dividerBorder")||e.selectorText.includes("MemoMessages-listRoot")||e.selectorText.includes("MemoMessages-listRootHl")))(e):(e=>e.selectorText&&(e.selectorText.startsWith(".MaxAI")||e.selectorText.startsWith(".Mui")||e.selectorText.startsWith(".oclt")))(e))).forEach((e=>{i+=e.cssText}))})),i+="</style>";const s=n.cloneNode(!0);if(s.firstChild.classList.add("MaxAI"),t){const e=s.querySelector("#ocelotbot-transcript-header");s.firstChild.insertBefore(r.cloneNode(!0),e.nextSibling)}s.querySelectorAll(".ocelot-transcript-show").forEach((e=>{e.style.setProperty("display","flex","important"),"ocelotbot-transcript-header"===e.id&&(e.setAttribute("role","heading"),e.setAttribute("aria-level","1"))})),s.querySelectorAll(".ocelot-transcript-hide").forEach((e=>e.remove()));const l=document.createElement("a");if(l.setAttribute("href",`data:text/html;charset=utf-8,${encodeURIComponent(i+s.innerHTML)}`),l.setAttribute("download",`transcript-${e}-${(new Date).toISOString()}.html`),document.createEvent){const e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),l.dispatchEvent(e)}else l.click()};var _n=o(4606),In=o.n(_n);function Pn(e){return e&&e.ownerDocument||document}function Nn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Mn=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ln(e){const t=[],n=[];return Array.from(e.querySelectorAll(Mn)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Dn(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getDoc:i,getTabbable:s=Ln,isEnabled:l,open:c,allowClickOutside:u=!1}=t,d=e.useRef(),p=e.useRef(null),f=e.useRef(null),h=e.useRef(),m=e.useRef(null),v=e.useRef(!1),g=e.useRef(null),y=(b=n.ref,x=g,e.useMemo((()=>null==b&&null==x?null:e=>{Nn(b,e),Nn(x,e)}),[b,x]));var b,x;const w=e.useRef(null),E=e.useRef();e.useEffect((()=>{E.current=c}),[c]),E.current||!c||"undefined"==typeof window||r||(h.current=i().activeElement),e.useEffect((()=>{c&&g.current&&(v.current=!r)}),[r,c]),e.useEffect((()=>{if(!c||!g.current)return;const e=Pn(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),v.current&&g.current.focus()),()=>{a||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}}),[c]);const[S,A]=e.useState(!1),k=e.useCallback((e=>{const t=g.current.contains(e.target);A(!t)}),[]);e.useEffect((()=>{const e=Pn(g.current);return u&&c&&e.addEventListener("mouseup",k),()=>{e.removeEventListener("mouseup",k)}}),[c,u,k]),e.useEffect((()=>{c||A(!1)}),[c]),e.useEffect((()=>{if(!c||!g.current||S)return;const e=Pn(g.current),t=t=>{const{current:n}=g;if(null!==n)if(e.hasFocus()&&!o&&l()&&!d.current){if(!n.contains(e.activeElement)){if(t&&m.current!==t.target||e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!v.current)return;let o=[];if(e.activeElement!==p.current&&e.activeElement!==f.current||(o=s(g.current)),o.length>0){var r,a;const e=Boolean((null===(r=w.current)||void 0===r?void 0:r.shiftKey)&&"Tab"===(null===(a=w.current)||void 0===a?void 0:a.key)),t=o[0],n=o[o.length-1];e?n.focus():t.focus()}else n.focus()}}else d.current=!1},n=t=>{w.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(d.current=!0,f.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[r,o,a,l,c,s,S]);const C=e=>{v.current||(h.current=e.relatedTarget),v.current=!0};return e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,onFocus:C,ref:p,"data-test":"sentinelStart"}),e.cloneElement(n,{ref:y,onFocus:e=>{v.current||(h.current=e.relatedTarget),v.current=!0,m.current=e.target;const t=n.props.onFocus;t&&t(e)}}),e.createElement("div",{tabIndex:0,onFocus:C,ref:f,"data-test":"sentinelEnd"}))}Dn.propTypes={children:In().element,disableAutoFocus:In().bool,disableEnforceFocus:In().bool,disableRestoreFocus:In().bool,getDoc:In().func.isRequired,getTabbable:In().func,isEnabled:In().func.isRequired,open:In().bool.isRequired,allowClickOutside:In().bool},Dn.defaultProps={children:null,disableAutoFocus:!1,disableEnforceFocus:!1,disableRestoreFocus:!1,getTabbable:Ln,allowClickOutside:!1};const Fn=Dn;var jn,$n;($n=jn||(jn={})).Windows="Win",$n.Mac="Mac",$n.Unknown="Unknown";var zn=function(){return-1!==window.navigator.userAgent.indexOf(jn.Windows)?jn.Windows:-1!==window.navigator.userAgent.indexOf(jn.Mac)?jn.Mac:jn.Unknown},Bn=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Vn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Wn=function(e){return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}))},Un=function(e){if("rgb"===e.substring(0,3)){var t=Bn(e.replace(/[^\d,]/g,"").split(","),3),n=t[0],r=t[1],o=t[2];return[parseInt(n,10),parseInt(r,10),parseInt(o,10)]}},qn=function(e){e=Wn(e);var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(t)return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]};function Hn(e){var t=parseInt(e,10).toString(16);return 1===t.length?"0".concat(t):t}var Gn,Qn,Kn,Yn,Xn=function(e){if("#"===e.substring(0,1))return e;var t=Un(e);if(t){var n=Bn(t,3),r=n[0],o=n[1],a=n[2];return function(e,t,n){return"#".concat(Hn(e)).concat(Hn(t)).concat(Hn(n))}(r.toString(),o.toString(),a.toString())}},Jn=function(e,t,n){var r=[e,t,n].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*r[0]+.7152*r[1]+.0722*r[2]},Zn=function(e,t){var n=qn(e)||Un(e),r=qn(t)||Un(t);if(n&&r){var o=Bn(n,3),a=o[0],i=o[1],s=o[2],l=Bn(r,3),c=l[0],u=l[1],d=l[2],p=Jn(a,i,s),f=Jn(c,u,d);return p>f?(f+.05)/(p+.05):(p+.05)/(f+.05)}},er=function(e,t,n){void 0===t&&(t="#ffffff"),void 0===n&&(n=4.5);var r=Zn(e,t);return null!=r&&r<1/n},tr=function(e,t){for(var n=null!=t?t:{},r=n.comparedColor,o=void 0===r?"#ffffff":r,a=n.ratio,i=void 0===a?4.5:a,s=0;s<e.length;s+=1)if(er(e[s],o,i))return e[s];return"#000000"},nr=function(e){return"#"===e[0]?e:"#".concat(e)},rr=function(e,t){var n=Wn(e),r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);r=parseInt("".concat(r*(100+t)/100),10),o=(o=parseInt("".concat(o*(100+t)/100),10))<255?o:255,a=(a=parseInt("".concat(a*(100+t)/100),10))<255?a:255;var i=1===(r=r<255?r:255).toString(16).length?"0".concat(r.toString(16)):r.toString(16),s=1===o.toString(16).length?"0".concat(o.toString(16)):o.toString(16),l=1===a.toString(16).length?"0".concat(a.toString(16)):a.toString(16);return"".concat(i).concat(s).concat(l)},or=function(e,t,n){void 0===n&&(n=1);var r=null!=t?t:{},o=r.backgroundColor,a=r.componentColor,i=r.shade,s=void 0===i?-1:i,l=r.generatedColors;if(Array.isArray(l)&&l.push(e),10===n)return e;if(o&&!a){if(er(e,o))return e}else if(!o&&a){if(er(e,a))return e}else if(o&&a){if(er(e,o)&&er(e,a))return e}else if(!o&&!a&&er(e))return e;var c=rr(e,10*s);return or(c,t,n+1)},ar=function(e,t,n){void 0===n&&(n="#ffffff");var r=t.filter((function(t){return!(t===e||t===n)})),o=tr(r);return er(o,n)&&er(o,e)?o:function(e,t,n){for(var r,o,a=Vn([],Bn(new Set(Vn(Vn([],Bn(n),!1),[e,t],!1))),!1).map(Xn).filter((function(e){return null!=e})),i=[],s=0;s<a.length;s++){var l=a[s],c=or(l,{backgroundColor:t,componentColor:e,generatedColors:i}),u=or(l,{backgroundColor:t,componentColor:e,generatedColors:i,shade:1});if(er(c,t)&&er(c,e))return nr(c);if(er(u,t)&&er(u,e))return nr(u)}return null!==(o=null===(r=Vn([],Bn(new Set(i)),!1).map(nr).map((function(n){return{color:n,ratio1:Zn(n,e),ratio2:Zn(n,t)}})).filter((function(e){return null!=e.ratio1&&null!=e.ratio2})).sort((function(e,t){return(e.ratio1+e.ratio2)/2-(t.ratio1+t.ratio2)/2}))[0])||void 0===r?void 0:r.color)&&void 0!==o?o:"#000000"}(e,n,t)};(Qn=Gn||(Gn={})).Human="Human",Qn.GenerativeAI="GenerativeAI",(Yn=Kn||(Kn={})).Human="human",Yn.GenerativeAI="generative_ai";var ir=function(e){return"auto_generated_content"===e.type||"auto_generated_content"===e.convoType||e.drivenBy===Gn.GenerativeAI||e.drivenBy===Kn.GenerativeAI},sr=function(e){if("object"!=typeof e||Array.isArray(e))return JSON.stringify(e);var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(sr(e[t]))})).join(",");return"{".concat(t,"}")},lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lr.apply(this,arguments)},cr={ha:"right",hv:"16px",va:"bottom",vv:"16px",ts:0,bs:"simple",av:0,ic:1},ur=function(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n=!1);var r,o,a,i,s,l=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=lr(lr(lr({},cr),t),e),r={};return n.va&&(r[n.va]=n.vv),n.ha&&(r[n.ha]=n.hv),{launcherStyles:r,buttonStyle:n.bs||"",includeAvatar:n.av||0,topScroll:n.ts||0,isCollapsible:!!n.ic}}((r=e,o=function(e){return/^-?\d+(?:px|%|rem|em){1}$/.test(e)},i=function(e){return[1,0].includes(e)},s={ha:(a=function(e){return function(t){return e.includes(t)}})(["left","right"]),hv:o,va:a(["top","bottom"]),vv:o,ts:i,bs:a(["simple","calloutBubble"]),av:i,ic:i},Object.keys(r).reduce((function(e,t){var n;return lr(lr({},e),s[t]&&s[t](r[t])?((n={})[t]=r[t],n):{})}),{})),t);return n?sr(l):l},dr=o(2050),pr=o.n(dr),fr=function(e,t){var n,r=e.map((function(e){var t=e.pattern;return"/"===(t=t.replace(/^(https?:)/,"")).charAt(t.length-1)&&(t=t.substring(0,t.length-1)),e.pattern=t,e}));return r.sort((function(e,t){return t.pattern.length-e.pattern.length})).some((function(e){var r=function(e,t){var n=pr()(e.pattern);return t.match(new RegExp(n))}(e,t);return!!r&&(n=e,!0)})),n},hr=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},mr=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};function vr(e){return function(t){return hr(this,void 0,void 0,(function(){return mr(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){setTimeout(n,e(t))}))];case 1:return n.sent(),[2]}}))}))}}const gr=function(e,t,n,r){void 0===r&&(r="Ocelot");try{window.gtag&&"function"==typeof window.gtag?window.gtag("event",e,{event_category:r,event_label:t,value:n}):window.dataLayer&&"object"==typeof window.dataLayer&&"function"==typeof window.dataLayer.push&&window.dataLayer.push({event:e,eventCategory:r,eventValue:n,eventLabel:t})}catch(e){console.warn("Ocelot failed to track event: Incompatible Google Analytics tag detected.")}};var yr=function(e){fetch("".concat("https://ai.ocelotbot.com","/api/click-track"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})};function br(e,t){for(var n=document.body.children,r=0;r<n.length;r+=1)if(!n[r].contains(e))if(t){(o=n[r].getAttribute("fatv-ai-aria-hidden"))?n[r].setAttribute("aria-hidden",o):n[r].removeAttribute("aria-hidden")}else{var o=n[r].getAttribute("aria-hidden");n[r].setAttribute("aria-hidden","true"),o&&n[r].setAttribute("fatv-ai-aria-hidden",o)}}var xr=function(e){return Object.values(at).includes(e)},wr=function(){return wr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wr.apply(this,arguments)},Er=function(e){return{type:Dt.REPLACE_MESSAGES,messages:e}},Sr=function(e,t){return void 0===t&&(t="watson"),{type:Dt.RECEIVE_MESSAGE,data:e,messageType:t,receivedAt:Date.now()}},Ar=function(e,t){return{type:Dt.UPDATE_MESSAGE,index:e,data:t}},kr=function(e){return{type:Dt.TYPING_RESPONSE,state:e}},Cr=function(e,t){return{type:Dt.ADD_ASYNC_RESPONSE_IDS_WAITING,id:e,otelTraceId:t}},Tr=function(e){return{type:Dt.REMOVE_ASYNC_RESPONSE_IDS_WAITING,id:e}},Or=function(e){var t=e.text,n=e.onYesCallback,r=e.onNoCallback,o=e.LL;return{output:{text:t,resources:[],actions:[wr({type:ut.Callback,text:{en:o.YES()}},n),wr({type:ut.Callback,text:{en:o.NO()}},r)]}}},Rr=function(e){return function(t,n){var r=On(n().language.lang),o=e||r.UNKNOWN_OPERATOR();t(Sr({output:{text:r.LIVECHAT_CONNECTED({operator:o}),resources:[],actions:[]},startTime:new Date},"system")),t({type:Dt.UPDATE_LIVE_CHAT_ASSIGNEE,assignee:o})}},_r=function(e){return function(t,n){var r=On(n().language.lang);t(Sr({output:{text:r.LIVECHAT_OFFICE_CHANGED({office:e}),resources:[],actions:[]},startTime:new Date},"system"))}},Ir=function(){return{type:Dt.UPDATE_LIVE_CHAT_ASSIGNEE,assignee:void 0}},Pr=function(e,t){return function(n){n({type:Dt.TOGGLE_LIVE_CHAT,status:e}),!0===e&&t&&n(Rr(t))}},Nr=function(e){return function(t,n){var r=n().messages,o=r.liveChat,a=r.liveChatConnected;o&&e!==a&&t({type:Dt.TOGGLE_LIVE_CHAT_CONNECTED,status:e})}},Mr=function(e){return function(t,n){var r=n().chatbotUi,o=e.messageType,a=e.message,i=e.actions,s=e.operatorAvatarUrl,l=e.operatorName,c=e.resources;t(kr(!1)),t(Sr({output:{text:a,resources:c,actions:i||[]},operatorName:l,operatorAvatar:s},o||ht.OperatorTurn)),r.open||t({type:Dt.NEW_UNREAD_MESSAGE})}},Lr=function(e,t,n){return{output:{text:t,resources:[],actions:[{type:ut.Callback,callback:function(){return Rn(e)},callbackData:{callbackType:Mt.DownloadTranscript,chatbotName:e},text:{en:n.YES()}},{type:ut.SendResponse,text:{en:n.NO()}}]}}},Dr=function(e){return function(t,n){var r=n().chatbotUi.configPlaceholder;return t({type:et.SET_PLACEHOLDER,placeholder:r}),t({type:Dt.CLEAR_HISTORY,context:e||{}})}},Fr=function(e,t,n){n(Dr(t||{})),window.location.href=e},jr=function(e){return function(t,n){var r=n(),o=r.messages,a=r.language,i=On(a.lang),s=null==o.liveChatAssignee,l=s?i.LIVECHAT_LEFT_QUEUE({bot:e.name}):"".concat(i.LIVECHAT_AGENT_LEFT({operator:o.liveChatAssignee})," ").concat(i.LIVECHAT_BOT_SPEAKING({bot:e.name}));t(Pr(!1)),t(kr(!1)),t(Sr({output:{text:l,resources:[],actions:[]},startTime:new Date},"system")),s||(t(Sr(Lr(e.name,"<p>".concat(i.IM_BACK(),"</p>\n           <p>").concat(i.DOWNLOAD_TRANSCRIPT_QUESTION(),"</p>"),i))),t(on({})),t(Ir()))}},$r=function(e,t,n){return function(r,o){var a=n.retrying,i=void 0!==a&&a,s=n.language,l=void 0===s?o().language.lang:s,c=n.meta,u=void 0===c?{}:c,d=n.config,p=n.operations,f=On(o().language.lang);if(t){i||r(function(e){return{type:Dt.SEND_MESSAGE,text:e}}(t));var h,m=Kt(t,l);(null==d?void 0:d.featureFlags.additionalLanguages)&&"en"!==l&&"string"!=typeof t&&!Array.isArray(t)&&(h=t);var v=function(e,t){e&&clearTimeout(e),o().messages.typingResponse?setTimeout((function(){r(kr(!1)),t()}),250):t()},g=o(),y=window.location,b={"Content-Type":"application/json","X-Referer":y.origin+y.pathname};g.clientAuthToken.clientToken?b["Client-Auth-Token"]=g.clientAuthToken.clientToken:g.auth.token&&(b["X-Auth-Token"]=g.auth.token);var x,w,E,S,A=!g.messages.liveChat&&setTimeout((function(){return r(kr(!0))}),750);fetch("".concat("https://ai.ocelotbot.com","/api/message/v2"),{method:"POST",headers:b,body:JSON.stringify({key:e,input:{text:m,meta:u,language:l,translationMap:h},language:g.language.lang,context:wr(wr({},g.conversationState),(x=g.conversationState,w=g.userPrefs,E=w.campusId,S=w.officeId,E&&S?{campus_id:E,office_id:S}:x.office_id&&x.campus_id?{campus_id:x.campus_id,office_id:x.office_id}:{campus_id:x.ui_campus_id,office_id:x.ui_office_id}))})}).then((function(a){return a.json().then((function(i){var s,l=i.data,c=void 0===l?{}:l,h=i.events,m=c.context,y=c.language;if("UnauthorizedError"===c.name)return r(Zt("")),r(en({})),Ke.removeItem(Ge.BOTAUTH_SSO_TOK),v(A,(function(){return n.retrying?r(Sr({output:{text:[f.SESSION_EXPIRED()],resources:[],actions:[]}})):r($r(e,t,{operations:p,config:d,language:o().language.lang,retrying:!0,meta:u}))}));if(h&&h.length>0){for(var b=0;b<h.length;b+=1){var x=h[b];if(x.responseComing){var w=null!==(s=a.headers.get("x-otel-trace-id"))&&void 0!==s?s:void 0;r(Cr(x.id,w)),r(kr(!0))}}return Promise.resolve()}return v(A,(function(){var e,t,n;if(g.auth.token||!(null===(e=m.auth)||void 0===e?void 0:e.uri)||(null===(t=m.auth)||void 0===t?void 0:t.original_question)){var o;r(Sr(c)),m.formcomplete&&(r(Sr(Lr((null==d?void 0:d.name)||"Unknown","".concat(f.DOWNLOAD_TRANSCRIPT_QUESTION()),f))),delete m.formcomplete),(m.formComplete||m.formcomplete||!m.formStarted)&&r({type:et.RESET_PLACEHOLDER}),m.formStarted&&r((o=f.ANSWER_QUESTION(),{type:et.SET_PLACEHOLDER,placeholder:o}));var a=m.livechat_approved?{office_id:g.conversationState.office_id,campus_id:g.conversationState.campus_id}:{};r(an(wr(wr({ui_campus_id:g.conversationState.ui_campus_id,ui_office_id:g.conversationState.ui_office_id,agent_campaign:g.conversationState.agent_campaign},a),m))),m.livechat_approved&&!g.messages.liveChat&&r(Pr(!0,m.livechat_initial_operator)),y&&y!==g.language.lang&&(null===(n=p.onLanguageChange)||void 0===n||n.call(p,y))}else Fr(m.auth.uri,null==d?void 0:d.context,r)}))}))})).catch((function(e){console.error("Error occurred when sending a message",e),v(A,(function(){r(Sr({output:{text:[f.API_FAILED()],resources:[],actions:[]}}))}))}))}}},zr=function(){return zr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zr.apply(this,arguments)},Br=function(e){return{type:_t.OPEN_FEEDBACK_DIALOG,open:e}},Vr=function(e){return{type:_t.FEEDBACK_PROMPT_OPEN,open:e}},Wr=function(){return{type:_t.CLEAR_FEEDBACK}},Ur=function(e,t){return function(n,r){var o=r(),a=On(o.language.lang);return fetch("".concat("https://ai.ocelotbot.com","/api/feedback"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(zr({key:t,conversation_id:o.conversationState.conversation_id},e))}).then((function(e){if(!e.ok)throw new Error;return e.json()})).then((function(t){return ln().set("feedback_ratings",e,{expires:30}),n(function(e){return{type:_t.FEEDBACK_SAVED_SUCCESSFULLY,data:e}}(t)),setTimeout((function(){Wr()}),5e3),t})).catch((function(){ln().set("feedback_ratings",e,{expires:1/24}),n(Sr({output:{text:[a.FEEDBACK_FAILED()],resources:[],actions:[]}}))})),{type:_t.SEND_FEEDBACK,data:e}}},qr=o(5474),Hr=o.n(qr);const Gr="redux-responsive/CALCULATE_RESPONSIVE_STATE";var Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr={extraSmall:480,small:768,medium:992,large:1200},Yr=function(e,t){var n={};return Object.keys(e).forEach((function(r){return t(n,e[r],r)})),n};function Xr(e,t){return Yr(t,(function(t,n,r){t[r]=r===e}))}function Jr(e,t){var n=t[e];return Yr(t,(function(e,r,o){e[o]="number"==typeof r&&n>t[o]}))}var Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function eo(e,t){return"function"==typeof e.getIn?e.getIn(t):t.reduce((function(e,t){return e[t]}),e)}function to(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=[[]],o=function(){var o=r.shift();if(o.length>n)return"continue";var a,i=eo(e,o);if(i){if(i[t])return{v:o};r.push.apply(r,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}((a=i,"function"==typeof a.keys?Array.from(a.keys()):Object.keys(a)).map((function(e){return o.concat(e)}))))}};r.length>0;){var a=o();if("continue"!==a&&"object"===(void 0===a?"undefined":Zr(a)))return a.v}return!1}const no=function(e){var t=e.getState(),n=to(t,"_responsiveState");if(!n)throw new Error("Could not find responsive state reducer. If you are still running into trouble, please open a ticket on github.");return eo(t,n).breakpoints},ro=function(e){var t=e.store,n=e.window,r=e.calculateInitialState,o=function(){return t.dispatch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.innerWidth,n=e.innerHeight,r=e.matchMedia;return{type:Gr,innerWidth:t,innerHeight:n,matchMedia:r}}(n))},a=Hr().asObject(no(t));Object.keys(a).forEach((function(e){n.matchMedia(a[e]).addListener((function(e){e.matches&&o()}))})),n.addEventListener("orientationchange",o),r&&o()};var oo=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).calculateInitialState,t=void 0===e||e;return function(e){return function(){var n=e.apply(void 0,arguments);return"undefined"!=typeof window&&void 0!==window.matchMedia&&ro({store:n,window,calculateInitialState:t}),n}}},ao=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialMediaType,r=t.infinity,o=void 0===r?"infinity":r,a=t.extraFields,i=void 0===a?function(){return{}}:a;e||(e=Kr),e[o]=1/0;var s,l,c=Hr().asObject(e),u=(s=e,l=Object.keys(s).sort((function(e,t){var n=s[e],r=s[t];return"number"==typeof n&&"string"==typeof r?-1:"number"==typeof r&&"string"==typeof n||n>=r?1:-1})),Yr(s,(function(e,t,n){var r=l.indexOf(n);-1!==r&&(e[n]=r)})));return function(t,r){var a,s,l,d=r.type,p=r.matchMedia;if(d===Gr||void 0===t){var f=!t&&n?n:function(e,t,n){return void 0===e?n:Object.keys(t).reduce((function(n,r){return e(t[r]).matches?r:n}),n)}(p,c,o),h=function(e){if(void 0===e)return null;var t={portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};return Object.keys(t).reduce((function(n,r){return e(t[r]).matches?r:n}),null)}(p),m={_responsiveState:!0,lessThan:(a=f,s=u,l=s[a],Yr(s,(function(e,t,n){"number"==typeof t&&s[n]?e[n]=l<s[n]:e[n]=!1}))),greaterThan:Jr(f,u),is:Xr(f,e),mediaType:f,orientation:h,breakpoints:e};return Qr({},m,i(m))}return t}}(),io=oo(),so=function(){return so=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},so.apply(this,arguments)},lo={token:void 0,data:void 0};var co=function(){return co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},co.apply(this,arguments)},uo="Ask a question";var po=function(){return po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},po.apply(this,arguments)};var fo=function(){return fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fo.apply(this,arguments)},ho=function(e){return{showRatingDialog:!1,openSnackbar:!1,hasFeedbackPromptOpened:e||"true"===ln().get("hasFeedbackPromptOpened")||!1,conversationId:"",score:"",additionalFeedback:"",status:"",displayThanksNotification:!1}};var mo=function(){return mo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mo.apply(this,arguments)},vo={lang:"en"};var go=function(){return go=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},go.apply(this,arguments)},yo=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},bo=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};var xo=function(){return xo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xo.apply(this,arguments)},wo={calloutBubbleOpen:!0};var Eo=function(){return Eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Eo.apply(this,arguments)};var So=function(){return So=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},So.apply(this,arguments)},Ao={clientToken:void 0};var ko=function(){return ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ko.apply(this,arguments)},Co={key:void 0};var To=function(){return To=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},To.apply(this,arguments)},Oo={name:void 0,avatar:void 0};const Ro=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var a,i=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:N.INIT}))throw new Error(_(12));if(void 0===n(void 0,{type:N.PROBE_UNKNOWN_ACTION()}))throw new Error(_(13))}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,o={},s=0;s<i.length;s++){var l=i[s],c=n[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(_(14))}o[l]=d,r=r||d!==u}return(r=r||i.length!==Object.keys(e).length)?o:e}}({auth:function(e,t){var n=e||lo;switch(t.type){case Je.AUTH_SET_TOKEN:return so(so({},n),{token:t.token});case Je.AUTH_SET_DATA:return so(so({},n),{data:t.data});default:return n}},browser:ao,chatbotUi:function(e,t){var n=e||{open:!1,showViewMoreButton:!1,configPlaceholder:uo,placeholder:uo,conversationStarted:!1};switch(t.type){case et.TOGGLE_DISPLAY:return co(co({},n),{open:t.open});case et.CONFIGURE_PLACEHOLDER:return co(co({},n),{configPlaceholder:t.placeholder,placeholder:t.placeholder});case et.SET_PLACEHOLDER:return co(co({},n),{placeholder:t.placeholder});case et.RESET_PLACEHOLDER:return co(co({},n),{placeholder:uo});case et.SET_CONVERSATION_STARTED:return co(co({},n),{conversationStarted:t.conversationStarted});default:return n}},explore:function(e,t){var n=e||{backdropOpen:!1,backdropTab:void 0};switch(t.type){case Dt.SEND_MESSAGE:case et.TOGGLE_DISPLAY:case Dt.CLEAR_HISTORY:return po(po({},n),{backdropOpen:!1,backdropTab:void 0});case Ot.SetBackdropOpen:return po(po({},n),{backdropOpen:t.open,backdropTab:t.open?n.backdropTab:void 0});case Ot.SetBackdropTab:var r=t.tabIndex!==n.backdropTab||!n.backdropOpen;return po(po({},n),{backdropOpen:r,backdropTab:r?t.tabIndex:void 0});default:return n}},feedback:function(e,t){var n,r=e||ho();switch(t.type){case _t.OPEN_FEEDBACK_DIALOG:return fo(fo({},r),{showRatingDialog:t.open});case _t.FEEDBACK_PROMPT_OPEN:return fo(fo({},r),{openSnackbar:t.open});case _t.FEEDBACK_PROMPT_SHOWN:return n=t.open,ln().set("hasFeedbackPromptOpened",n.toString(),{expires:3}),fo(fo({},r),{hasFeedbackPromptOpened:t.open});case _t.SEND_FEEDBACK:return fo(fo({},r),t.data);case _t.FEEDBACK_SAVED_SUCCESSFULLY:return fo(fo(fo({},r),t.data),{displayThanksNotification:!0});case _t.CLEAR_FEEDBACK:return ho(!0);default:return r}},language:function(e,t){var n=e||vo;switch(t.type){case Nt.CHANGE_LANGUAGE:return mo(mo({},n),{lang:t.lang,langEvent:void 0});case Nt.FIRE_LANGUAGE_EVENT:return mo(mo({},n),{langEvent:t.langEvent});default:return n}},messages:function(e,t){var n,r,o,a,i=e||{unread:0,liveChat:!1,liveChatConnected:!0,liveChatUiConnected:!0,isCampaign:!1,liveChatAssignee:void 0,fresh:!1,items:[],outstanding:!1,typingResponse:!1};switch(t.type){case Dt.SEND_MESSAGE:return go(go({},i),{outstanding:!0,items:bo(bo([],yo(i.items),!1),[{type:"user",output:t.text}],!1)});case Dt.RECEIVE_MESSAGE:var s=bo(bo([],yo(i.items),!1),[{id:t.data.id,type:t.messageType||"watson",auth:null===(n=t.data.context)||void 0===n?void 0:n.auth,output:t.data.output.text,resources:t.data.output.resources,actions:t.data.output.actions,nid:t.data.output.nid,convoType:t.data.type,explore:null===(r=t.data.context)||void 0===r?void 0:r.explore,operatorAvatar:t.data.operatorAvatar,operatorName:t.data.operatorName,startTime:t.data.startTime,conversationTurnId:t.data.output.conversationTurnId,allowFeedback:t.data.allowFeedback,conversationId:null===(o=t.data.context)||void 0===o?void 0:o.conversation_id,drivenBy:t.data.output.drivenBy,switchLanguageBackPrompt:t.data.switchLanguageBackPrompt}],!1);return go(go({},i),{fresh:!0,outstanding:!1,isLeadCaptureComplete:null===(a=t.data.context)||void 0===a?void 0:a.formComplete,items:s});case Dt.UPDATE_MESSAGE:return(s=bo([],yo(i.items),!1))[t.index]?(s[t.index]=go(go({},s[t.index]),t.data),go(go({},i),{items:s})):i;case Dt.TYPING_RESPONSE:return go(go({},i),{typingResponse:t.state});case Dt.REPLACE_MESSAGES:return go(go({},i),{items:t.messages});case Dt.CLEAR_HISTORY:return{unread:0,liveChat:!1,liveChatConnected:!0,liveChatUiConnected:!0,isCampaign:!1,liveChatAssignee:void 0,fresh:!1,items:[],outstanding:!1,typingResponse:!1};case Dt.TOGGLE_LIVE_CHAT:return go(go({},i),{liveChat:t.status});case Dt.TOGGLE_LIVE_CHAT_CONNECTED:return go(go({},i),{liveChatConnected:t.status});case Dt.TOGGLE_LIVE_CHAT_UI_CONNECTED:return go(go({},i),{liveChatUiConnected:t.status});case Dt.TOGGLE_CAMPAIGN:return go(go({},i),{isCampaign:t.isCampaign});case Dt.UPDATE_LIVE_CHAT_ASSIGNEE:return go(go({},i),{liveChatAssignee:t.assignee});case Dt.NEW_UNREAD_MESSAGE:return go(go({},i),{unread:i.unread+1});case Dt.READ_MESSAGES:return go(go({},i),{unread:0});case Dt.ADD_ASYNC_RESPONSE_IDS_WAITING:return go(go({},i),{asyncResponseIdsWaiting:bo(bo([],yo(i.asyncResponseIdsWaiting||[]),!1),[{id:t.id,otelTraceId:t.otelTraceId,idAddedTime:Date.now()}],!1)});case Dt.REMOVE_ASYNC_RESPONSE_IDS_WAITING:return go(go({},i),{asyncResponseIdsWaiting:bo([],yo((i.asyncResponseIdsWaiting||[]).filter((function(e){return e.id!==t.id}))),!1)});default:return i}},userPrefs:function(e,t){var n=e||wo;switch(t.type){case Ft.UPDATE_CALLOUT_BUBBLE_STATUS:return xo(xo({},n),{calloutBubbleOpen:t.open});case Ft.SET_CAMPUS_OFFICE_PREFERENCE:return xo(xo({},n),{campusId:t.campusId,officeId:t.officeId});default:return n}},conversationState:function(e,t){var n,r=e||{knowledgebaseEnvironment:xt.Live};switch(t.type){case At.OVERRIDE_CONVERSATION_CONTEXT:return Eo(Eo({},t.context),{knowledgebaseEnvironment:null!==(n=t.context.knowledgebaseEnvironment)&&void 0!==n?n:null==e?void 0:e.knowledgebaseEnvironment});case At.UPDATE_CONVERSATION_CONTEXT:return Eo(Eo({},e),t.context);case Dt.CLEAR_HISTORY:return Eo(Eo({},t.context||{}),{knowledgebaseEnvironment:xt.Live});default:return r}},clientAuthToken:function(e,t){var n=e||Ao;return t.type===tt.CLIENT_AUTH_SET_TOKEN?So(So({},n),{clientToken:t.clientToken}):n},configOverrides:function(e,t){var n=e||Oo;switch(t.type){case nt.SET_CONFIG_OVERRIDES:return To(To({},n),{name:t.name,avatar:t.avatar});case nt.RESET_CONFIG_OVERRIDES:return Oo;default:return n}},key:function(e,t){var n=e||Co;return t.type===Pt.SET_KEY?ko(ko({},n),{key:t.key}):n}});var _o=o(1338),Io=o(1025),Po=o(4256);let No;function Mo(e){const{injectFirst:t,children:n}=e;return t&&No?(0,Po.jsx)(_o.C,{value:No,children:n}):n}"object"==typeof document&&(No=(0,Io.A)({key:"css",prepend:!0}));var Lo=o(7006),Do=o(6993),Fo=o(5216);const jo=e.createContext(null);function $o(){return e.useContext(jo)}const zo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const Bo=function(t){const{children:n,theme:r}=t,o=$o(),a=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return(0,Fo.A)({},e,t)}(o,r);return null!=e&&(e[zo]=null!==o),e}),[r,o]);return(0,Po.jsx)(jo.Provider,{value:a,children:n})};var Vo=o(9995),Wo=o(7907);const Uo=["value"],qo=e.createContext();const Ho=function(e){let{value:t}=e,n=(0,Wo.A)(e,Uo);return(0,Po.jsx)(qo.Provider,(0,Fo.A)({value:null==t||t},n))},Go={};function Qo(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const a=r(e),i=t?(0,Fo.A)({},n,{[t]:a}):a;return o?()=>i:i}return t?(0,Fo.A)({},n,{[t]:r}):(0,Fo.A)({},n,r)}),[t,n,r,o])}const Ko=function(e){const{children:t,theme:n,themeId:r}=e,o=(0,Vo.A)(Go),a=$o()||Go,i=Qo(r,o,n),s=Qo(r,a,n,!0),l="rtl"===i.direction;return(0,Po.jsx)(Bo,{theme:s,children:(0,Po.jsx)(_o.T.Provider,{value:i,children:(0,Po.jsx)(Ho,{value:l,children:t})})})};var Yo=o(3298);const Xo=["theme"];function Jo(e){let{theme:t}=e,n=(0,Do.A)(e,Xo);const r=t[Yo.A];return(0,Po.jsx)(Ko,(0,Lo.A)({},n,{themeId:r?Yo.A:void 0,theme:r||t}))}var Zo="-ms-",ea="-moz-",ta="-webkit-",na="rule",ra="decl",oa=(Math.abs,String.fromCharCode,Object.assign);function aa(e,t){return(e=t.exec(e))?e[0]:e}function ia(e,t,n){return e.replace(t,n)}function sa(e,t){return e.indexOf(t)}function la(e,t){return 0|e.charCodeAt(t)}var ca=1,ua=1;function da(e,t){return oa(function(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:ca,column:ua,length:i,return:""}}("",null,null,"",null,null,0),e,{length:-e.length},t)}function pa(e,t){for(var n="",r=e.length,o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fa(e,t,n){switch(function(e,t){return(((t<<2^la(e,0))<<2^la(e,1))<<2^la(e,2))<<2^la(e,3)}(e,t)){case 5103:return ta+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ta+e+e;case 4789:return ea+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ta+e+ea+e+Zo+e+e;case 6828:case 4268:return ta+e+Zo+e+e;case 6165:return ta+e+Zo+"flex-"+e+e;case 5187:return ta+e+ia(e,/(\w+).+(:[^]+)/,ta+"box-$1$2"+Zo+"flex-$1$2")+e;case 5443:return ta+e+Zo+"flex-item-"+ia(e,/flex-|-self/g,"")+(aa(e,/flex-|baseline/)?"":Zo+"grid-row-"+ia(e,/flex-|-self/g,""))+e;case 4675:return ta+e+Zo+"flex-line-pack"+ia(e,/align-content|flex-|-self/g,"")+e;case 5548:return ta+e+Zo+ia(e,"shrink","negative")+e;case 5292:return ta+e+Zo+ia(e,"basis","preferred-size")+e;case 6060:return ta+"box-"+ia(e,"-grow","")+ta+e+Zo+ia(e,"grow","positive")+e;case 4554:return ta+ia(e,/([^-])(transform)/g,"$1"+ta+"$2")+e;case 6187:return ia(ia(ia(e,/(zoom-|grab)/,ta+"$1"),/(image-set)/,ta+"$1"),e,"")+e;case 5495:case 3959:return ia(e,/(image-set\([^]*)/,ta+"$1$`$1");case 4968:return ia(ia(e,/(.+:)(flex-)?(.*)/,ta+"box-pack:$3"+Zo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ta+e+e;case 4200:if(!aa(e,/flex-|baseline/))return Zo+"grid-column-align"+function(e,t,n){return e.slice(t,n)}(e,t)+e;break;case 2592:case 3360:return Zo+ia(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,aa(e.props,/grid-\w+-end/)}))?~sa(e+(n=n[t].value),"span")?e:Zo+ia(e,"-start","")+e+Zo+"grid-row-span:"+(~sa(n,"span")?aa(n,/\d+/):+aa(n,/\d+/)-+aa(e,/\d+/))+";":Zo+ia(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return aa(e.props,/grid-\w+-start/)}))?e:Zo+ia(ia(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ia(e,/(.+)-inline(.+)/,ta+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(function(e){return e.length}(e)-1-t>6)switch(la(e,t+1)){case 109:if(45!==la(e,t+4))break;case 102:return ia(e,/(.+:)(.+)-([^]+)/,"$1"+ta+"$2-$3$1"+ea+(108==la(e,t+3)?"$3":"$2-$3"))+e;case 115:return~sa(e,"stretch")?fa(ia(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ia(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,i,s){return Zo+n+":"+r+s+(o?Zo+n+"-span:"+(a?i:+i-+r)+s:"")+e}));case 4949:if(121===la(e,t+6))return ia(e,":",":"+ta)+e;break;case 6444:switch(la(e,45===la(e,14)?18:11)){case 120:return ia(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ta+(45===la(e,14)?"inline-":"")+"box$3$1"+ta+"$2$3$1"+Zo+"$2box$3")+e;case 100:return ia(e,":",":"+Zo)+e}break;case 5936:switch(la(e,t+11)){case 114:return ta+e+Zo+ia(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ta+e+Zo+ia(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ta+e+Zo+ia(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 2903:return ta+e+Zo+e+e;case 5719:case 2647:case 2135:case 3927:case 2391:return ia(e,"scroll-","scroll-snap-")+e}return e}var ha=o(4624),ma=o(5548),va=o(402),ga=(0,_o.w)((function(t,n){var r=t.styles,o=(0,va.J)([r],void 0,e.useContext(_o.T));if(!_o.i){for(var a,i=o.name,s=o.styles,l=o.next;void 0!==l;)i+=" "+l.name,s+=l.styles,l=l.next;var c=!0===n.compat,u=n.insert("",{name:i,styles:s},n.sheet,c);return c?null:e.createElement("style",((a={})["data-emotion"]=n.key+"-global "+i,a.dangerouslySetInnerHTML={__html:u},a.nonce=n.sheet.nonce,a))}var d=e.useRef();return(0,ma.i)((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),d.current=[t,r],function(){t.flush()}}),[n]),(0,ma.i)((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,ha.sk)(n,o.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",o,t,!1)}}),[n,o.name]),null}));function ya(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,va.J)(t)}var ba=function(){var e=ya.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function xa(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,Po.jsx)(ga,{styles:r})}var wa=o(8910);const Ea=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,wa.A)(n),o="function"==typeof e?e(t&&r[t]||r):e;return(0,Po.jsx)(xa,{styles:o})};var Sa=o(375);const Aa=function(e){return(0,Po.jsx)(Ea,(0,Lo.A)({},e,{defaultTheme:Sa.A,themeId:Yo.A}))},ka=e.createElement(Aa,{styles:e=>({"*":{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontWeight:"normal"},"a:link, a:active, a:visited":{color:e.palette.link?e.palette.link:e.palette.primary.dark,background:"none"},"a:visited":{color:e.palette.linkLight?e.palette.linkLight:e.palette.primary.light},form:{margin:0},"input, button":{boxShadow:"none",backgroundImage:"none"},img:{display:"inline-block"},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},"p, ul, ol":{margin:"0 0 1em"}})}),Ca=e.forwardRef((({children:t,environment:n,lang:r},o)=>e.createElement("div",{ref:o,className:"MaxAI",lang:r},"admin"!==n&&ka,e.createElement("div",null,t))));Ca.displayName="MaxAIWrapper",Ca.propTypes={children:In().oneOfType([In().arrayOf(In().node),In().node]).isRequired,environment:In().string,lang:In().string.isRequired},Ca.defaultProps={environment:"standard"};const Ta=Ca;var Oa=function(e,t){return Oa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Oa(e,t)};function Ra(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Oa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _a=function(){return _a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_a.apply(this,arguments)};function Ia(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Pa(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}function Na(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function Ma(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var La=function(e,t){return La=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},La(e,t)};function Da(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}La(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var Fa="Invariant Violation",ja=Object.setPrototypeOf,$a=void 0===ja?function(e,t){return e.__proto__=t,e}:ja,za=function(e){function t(n){void 0===n&&(n=Fa);var r=e.call(this,"number"==typeof n?Fa+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Fa,$a(r,t.prototype),r}return Da(t,e),t}(Error);function Ba(e,t){if(!e)throw new za(t)}var Va,Wa=["debug","log","warn","error","silent"],Ua=Wa.indexOf("log");function qa(e){return function(){if(Wa.indexOf(e)>=Ua)return(console[e]||console.log).apply(console,arguments)}}(Va=Ba||(Ba={})).debug=qa("debug"),Va.log=qa("log"),Va.warn=qa("warn"),Va.error=qa("error");var Ha="3.9.11";function Ga(e){try{return e()}catch(e){}}const Qa=Ga((function(){return globalThis}))||Ga((function(){return window}))||Ga((function(){return self}))||Ga((function(){return global}))||Ga((function(){return Ga.constructor("return this")()}));var Ka=new Map;function Ya(e){var t=Ka.get(e)||1;return Ka.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Xa(e,t){void 0===t&&(t=0);var n=Ya("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?n:t}),t).split(JSON.stringify(n)).join("<undefined>")}function Ja(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var o=t;(t=ri(o))||(t=oi(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var Za=Object.assign((function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||Ba(e,ri(t,n)||oi(t,n))}),{debug:Ja(Ba.debug),log:Ja(Ba.log),warn:Ja(Ba.warn),error:Ja(Ba.error)});function ei(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new za(ri(e,t)||oi(e,t))}var ti=Symbol.for("ApolloErrorMessageHandler_"+Ha);function ni(e){return"string"==typeof e?e:Xa(e,2).slice(0,1e3)}function ri(e,t){if(void 0===t&&(t=[]),e)return Qa[ti]&&Qa[ti](e,t.map(ni))}function oi(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Ha,message:e,args:t.map(ni)})))}globalThis.__DEV__;function ai(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ii(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ii(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function li(e,t,n){return t&&si(e.prototype,t),n&&si(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ci=function(){return"function"==typeof Symbol},ui=function(e){return ci()&&Boolean(Symbol[e])},di=function(e){return ui(e)?Symbol[e]:"@@"+e};ci()&&!ui("observable")&&(Symbol.observable=Symbol("observable"));var pi=di("iterator"),fi=di("observable"),hi=di("species");function mi(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function vi(e){var t=e.constructor;return void 0!==t&&null===(t=t[hi])&&(t=void 0),void 0!==t?t:ki}function gi(e){gi.log?gi.log(e):setTimeout((function(){throw e}))}function yi(e){Promise.resolve().then((function(){try{e()}catch(e){gi(e)}}))}function bi(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=mi(t,"unsubscribe");n&&n.call(t)}}catch(e){gi(e)}}function xi(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function wi(e,t,n){e._state="running";var r=e._observer;try{var o=mi(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(xi(e),!o)throw n;o.call(r,n);break;case"complete":xi(e),o&&o.call(r)}}catch(e){gi(e)}"closed"===e._state?bi(e):"running"===e._state&&(e._state="ready")}function Ei(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void yi((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(wi(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void wi(e,t,n);e._queue.push({type:t,value:n})}}var Si=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Ai(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(xi(this),bi(this))},li(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Ai=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Ei(this._subscription,"next",e)},t.error=function(e){Ei(this._subscription,"error",e)},t.complete=function(){Ei(this._subscription,"complete")},li(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ki=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Si(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var o=t.subscribe({next:function(t){try{e(t,a)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function a(){o.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(vi(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(vi(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=vi(this),r=arguments.length>1,o=!1,a=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var i=!o;if(o=!0,!i||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=vi(this);return new o((function(t){var r,a=0;return function e(i){r=i.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):e(o.from(n[a++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=vi(this);return new n((function(r){var o=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=o.indexOf(a);e>=0&&o.splice(e,1),i()}});o.push(a)},error:function(e){r.error(e)},complete:function(){i()}});function i(){a.closed&&0===o.length&&r.complete()}return function(){o.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},t[fi]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=mi(t,fi);if(r){var o=r.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return function(e){return e instanceof ki}(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(ui("iterator")&&(r=mi(t,pi)))return new n((function(e){yi((function(){if(!e.closed){for(var n,o=ai(r.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){yi((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)((function(e){yi((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},li(e,null,[{key:hi,get:function(){return this}}]),e}();function Ci(e){return null!==e&&"object"==typeof e}function Ti(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw ei(71,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(Za(1===r.length,72,r.length),n=r[0].name.value),_a(_a({},e),{definitions:Ma([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Oi(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function Ri(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return Za(r,73,n),r||null;default:return null}}function _i(){}ci()&&Object.defineProperty(ki,Symbol("extensions"),{value:{symbol:fi,hostReportError:gi},configurable:!0});const Ii=_i,Pi="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},Ni="undefined"!=typeof WeakMap?WeakMap:Map,Mi="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:_i,unregister:_i}};class Li{constructor(e=1/0,t=Ii){this.max=e,this.dispose=t,this.map=new Ni,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new Pi(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Mi(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function Di(){}class Fi{constructor(e=1/0,t=Di){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var ji=new WeakSet;function $i(e){ji.has(e)||(ji.add(e),setTimeout((function(){e.clean(),ji.delete(e)}),100))}var zi=function(e,t){var n=new Li(e,t);return n.set=function(e,t){return $i(this),Li.prototype.set.call(this,e,t)},n},Bi=function(e,t){var n=new Fi(e,t);return n.set=function(e,t){return $i(this),Fi.prototype.set.call(this,e,t)},n},Vi=Symbol.for("apollo.cacheSize"),Wi=_a({},Qa[Vi]),Ui={};function qi(e,t){Ui[e]=t}var Hi=!1!==globalThis.__DEV__?function(){var e,t,n,r,o;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4},Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map((function(e){var t=e[0],n=e[1];return[t,Wi[t]||n]})))),sizes:_a({print:null===(e=Ui.print)||void 0===e?void 0:e.call(Ui),parser:null===(t=Ui.parser)||void 0===t?void 0:t.call(Ui),canonicalStringify:null===(n=Ui.canonicalStringify)||void 0===n?void 0:n.call(Ui),links:es(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Ji(this.queryManager.documentTransform)}},null===(o=(r=this.cache).getMemoryInternals)||void 0===o?void 0:o.call(r))}}:void 0,Gi=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return _a(_a({},Ki.apply(this)),{addTypenameDocumentTransform:Ji(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Yi(this.storeReader.executeSelectionSet),executeSubSelectedArray:Yi(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Yi(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Yi(null==e?void 0:e.findFragmentSpreads),lookup:Yi(null==e?void 0:e.lookup),transform:Yi(null==e?void 0:e.transform)}})}:void 0,Qi=!1!==globalThis.__DEV__?Ki:void 0;function Ki(){return{cache:{fragmentQueryDocuments:Yi(this.getFragmentDoc)}}}function Yi(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function Xi(e){return null!=e}function Ji(e){return Zi(e).map((function(e){return{cache:e}}))}function Zi(e){return e?Ma(Ma([Yi(null==e?void 0:e.performWork)],Zi(null==e?void 0:e.left),!0),Zi(null==e?void 0:e.right),!0).filter(Xi):[]}function es(e){var t;return e?Ma(Ma([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],es(null==e?void 0:e.left),!0),es(null==e?void 0:e.right),!0).filter(Xi):[]}var ts,ns=Object.assign((function(e){return JSON.stringify(e,rs)}),{reset:function(){ts=new Bi(Wi.canonicalStringify||1e3)}});function rs(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(os))return t;var o=JSON.stringify(r),a=ts.get(o);if(!a){r.sort();var i=JSON.stringify(r);a=ts.get(i)||r,ts.set(o,a),ts.set(i,a)}var s=Object.create(n);return a.forEach((function(e){s[e]=t[e]})),s}}return t}function os(e,t,n){return 0===t||n[t-1]<=e}function as(e){return{__ref:String(e)}}function is(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ss(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return ss(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return ss(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw ei(82,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&qi("canonicalStringify",(function(){return ts.size})),ns.reset();var ls=["connection","include","skip","client","rest","export","nonreactive"],cs=ns,us=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach((function(e){o[e]=t[e]})),"".concat(n.connection.key,"(").concat(cs(o),")")}return n.connection.key}var a=e;if(t){var i=cs(t);a+="(".concat(i,")")}return n&&Object.keys(n).forEach((function(e){-1===ls.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(cs(n[e]),")"):a+="@".concat(e))})),a}),{setStringify:function(e){var t=cs;return cs=e,t}});function ds(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return ss(n,r,o,t)})),n}return null}function ps(e){return e.alias?e.alias.value:e.name.value}function fs(e,t,n){for(var r,o=0,a=t.selections;o<a.length;o++){if(hs(l=a[o])){if("__typename"===l.name.value)return e[ps(l)]}else r?r.push(l):r=[l]}if("string"==typeof e.__typename)return e.__typename;if(r)for(var i=0,s=r;i<s.length;i++){var l,c=fs(e,Ri(l=s[i],n).selectionSet,n);if("string"==typeof c)return c}}function hs(e){return"Field"===e.kind}function ms(e){Za(e&&"Document"===e.kind,74);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw ei(75,e.kind);return e}));return Za(t.length<=1,76,t.length),e}function vs(e){return ms(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function gs(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function ys(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function bs(e){var t=vs(e);return Za(t&&"query"===t.operation,77),t}function xs(e){var t;ms(e);for(var n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw ei(81)}function ws(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&ss(t,e.variable.name,e.defaultValue)})),t}function Es(e,t){return t?t(e):ki.of()}function Ss(e){return"function"==typeof e?new ks(e):e}function As(e){return e.request.length<=1}var ks=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return ki.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Ss).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var o,a=Ss(n),i=Ss(r||new e(Es));return o=As(a)&&As(i)?new e((function(e){return t(e)?a.request(e)||ki.of():i.request(e)||ki.of()})):new e((function(e,n){return t(e)?a.request(e,n)||ki.of():i.request(e,n)||ki.of()})),Object.assign(o,{left:a,right:i})},e.execute=function(e,t){return e.request(function(e,t){var n=_a({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=_a(_a({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return _a({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?gs(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw ei(43,o)}return e}(t))))||ki.of()},e.concat=function(t,n){var r=Ss(t);if(As(r))return!1!==globalThis.__DEV__&&Za.warn(35,r),r;var o,a=Ss(n);return o=As(a)?new e((function(e){return r.request(e,(function(e){return a.request(e)||ki.of()}))||ki.of()})):new e((function(e,t){return r.request(e,(function(e){return a.request(e,t)||ki.of()}))||ki.of()})),Object.assign(o,{left:r,right:a})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Es)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw ei(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();function Cs(e,t){if(!Boolean(e))throw new Error(t)}const Ts=10,Os=2;function Rs(e){return _s(e,[])}function _s(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:_s(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Os)return"[Array]";const n=Math.min(Ts,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(_s(e[r],t));1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`);return"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>Os)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+_s(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class Is{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Ps{constructor(e,t,n,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ns={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Ms=new Set(Object.keys(Ns));function Ls(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Ms.has(t)}var Ds,Fs,js;(Fs=Ds||(Ds={})).QUERY="query",Fs.MUTATION="mutation",Fs.SUBSCRIPTION="subscription",function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(js||(js={}));const $s=Object.freeze({});function zs(e,t,n=Ns){const r=new Map;for(const e of Object.values(js))r.set(e,Bs(t,e));let o,a,i,s=Array.isArray(e),l=[e],c=-1,u=[],d=e;const p=[],f=[];do{c++;const e=c===l.length,g=e&&0!==u.length;if(e){if(a=0===f.length?void 0:p[p.length-1],d=i,i=f.pop(),g)if(s){d=d.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of u)d[e]=t}c=o.index,l=o.keys,u=o.edits,s=o.inArray,o=o.prev}else if(i){if(a=s?c:l[c],d=i[a],null==d)continue;p.push(a)}let y;if(!Array.isArray(d)){var h,m;Ls(d)||Cs(!1,`Invalid AST Node: ${Rs(d)}.`);const n=e?null===(h=r.get(d.kind))||void 0===h?void 0:h.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(y=null==n?void 0:n.call(t,d,a,i,p,f),y===$s)break;if(!1===y){if(!e){p.pop();continue}}else if(void 0!==y&&(u.push([a,y]),!e)){if(!Ls(y)){p.pop();continue}d=y}}var v;if(void 0===y&&g&&u.push([a,d]),e)p.pop();else o={inArray:s,index:c,keys:l,edits:u,prev:o},s=Array.isArray(d),l=s?d:null!==(v=n[d.kind])&&void 0!==v?v:[],c=-1,u=[],i&&f.push(i),i=d}while(void 0!==o);return 0!==u.length?u[u.length-1][1]:e}function Bs(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Vs(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;Za(n&&1===n.length,68,r);var o=n[0];Za(o.name&&"if"===o.name.value,69,r);var a=o.value;Za(a&&("Variable"===a.kind||"BooleanValue"===a.kind),70,r),t.push({directive:e,ifArgument:o})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t&&t[r.value.name.value],Za(void 0!==o,67,n.name.value)):o=r.value.value,"skip"===n.name.value?!o:o}))}function Ws(e,t,n){var r=new Set(e),o=r.size;return zs(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return $s}}),n?!r.size:r.size<o}function Us(e){return e&&Ws(["client","export"],e,!0)}var qs=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=ei(39,t,e.message);throw r.parseError=e,r}return n},Hs="function"==typeof WeakMap&&!Ga((function(){return"ReactNative"==navigator.product&&!global.HermesInternal})),Gs="function"==typeof WeakSet,Qs="function"==typeof Symbol&&"function"==typeof Symbol.for,Ks=Qs&&Symbol.asyncIterator;Ga((function(){return window.document.createElement})),Ga((function(){return navigator.userAgent.indexOf("jsdom")>=0}));function Ys(e){var t=null,n=null,r=!1,o=[],a=[];function i(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function s(e){n=e,a.slice().forEach((function(t){t[1](e)})),!t||t()}function l(){r=!0,a.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",i),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",i),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var c={next:function(){return new Promise((function(e,t){return n?t(n):o.length?e({value:o.shift(),done:!1}):r?e({value:void 0,done:!0}):void a.push([e,t])}))}};return Ks&&(c[Symbol.asyncIterator]=function(){return this}),c}function Xs(e){var t={next:function(){return e.read()}};return Ks&&(t[Symbol.asyncIterator]=function(){return this}),t}function Js(e){var t,n,r=e;if(e.body&&(r=e.body),function(e){return!(!Ks||!e[Symbol.asyncIterator])}(r))return n=r[Symbol.asyncIterator](),(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(r))return Xs(r.getReader());if(function(e){return!!e.stream}(r))return Xs(r.stream().getReader());if(function(e){return!!e.arrayBuffer}(r))return function(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,n){e.then((function(e){t({value:e,done:!1})})).catch(n)})))}};return Ks&&(n[Symbol.asyncIterator]=function(){return this}),n}(r.arrayBuffer());if(function(e){return!!e.pipe}(r))return Ys(r);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Zs=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},el=Symbol();var tl=function(e){function t(n){var r,o,a=n.graphQLErrors,i=n.protocolErrors,s=n.clientErrors,l=n.networkError,c=n.errorMessage,u=n.extraInfo,d=e.call(this,c)||this;return d.name="ApolloError",d.graphQLErrors=a||[],d.protocolErrors=i||[],d.clientErrors=s||[],d.networkError=l||null,d.message=c||(o=Ma(Ma(Ma([],(r=d).graphQLErrors,!0),r.clientErrors,!0),r.protocolErrors,!0),r.networkError&&o.push(r.networkError),o.map((function(e){return Ci(e)&&e.message||"Error message not found."})).join("\n")),d.extraInfo=u,d.__proto__=t.prototype,d}return Ra(t,e),t}(Error),nl=Array.isArray;function rl(e){return Array.isArray(e)&&e.length>0}var ol=Object.prototype.hasOwnProperty;function al(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return il(e)}function il(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new ll,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var sl=function(e,t,n){return this.merge(e[n],t[n])},ll=function(){function e(e){void 0===e&&(e=sl),this.reconciler=e,this.isObject=Ci,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return Ci(t)&&Ci(e)?(Object.keys(t).forEach((function(o){if(ol.call(e,o)){var a=e[o];if(t[o]!==a){var i=n.reconciler.apply(n,Ma([e,t,o],r,!1));i!==a&&((e=n.shallowCopyForMerge(e))[o]=i)}}else(e=n.shallowCopyForMerge(e))[o]=t[o]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Ci(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):_a({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function cl(e){return"incremental"in e}function ul(e){return Ci(e)&&"payload"in e}function dl(e,t){var n=e,r=new ll;return cl(t)&&rl(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,o=e.path,a=o.length-1;a>=0;--a){var i=o[a],s=!isNaN(+i)?[]:{};s[i]=t,t=s}n=r.merge(n,t)})),n}var pl=Object.prototype.hasOwnProperty;function fl(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),o=e.slice(n+1).trim();t[r]=o}})),t}function hl(e,t){if(e.status>=300){Zs(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function ml(e){return 9===e||32===e}function vl(e){return e>=48&&e<=57}function gl(e){return e>=97&&e<=122||e>=65&&e<=90}function yl(e){return gl(e)||95===e}function bl(e){return gl(e)||vl(e)||95===e}function xl(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t<e.length;++t){var a;const i=e[t],s=wl(i);s!==i.length&&(r=null!==(a=r)&&void 0!==a?a:t,o=t,0!==t&&s<n&&(n=s))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function wl(e){let t=0;for(;t<e.length&&ml(e.charCodeAt(t));)++t;return t}const El=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Sl(e){return Al[e.charCodeAt(0)]}const Al=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];const kl={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Cl(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ol("(",Cl(e.variableDefinitions,", "),")"),n=Cl([e.operation,Cl([e.name,t]),Cl(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ol(" = ",n)+Ol(" ",Cl(r," "))},SelectionSet:{leave:({selections:e})=>Tl(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const a=Ol("",e,": ")+t;let i=a+Ol("(",Cl(n,", "),")");return i.length>80&&(i=a+Ol("(\n",Rl(Cl(n,"\n")),"\n)")),Cl([i,Cl(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ol(" ",Cl(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Cl(["...",Ol("on ",e),Cl(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${Ol("(",Cl(n,", "),")")} on ${t} ${Ol("",Cl(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,a=r.length>1&&r.slice(1).every((e=>0===e.length||ml(e.charCodeAt(0)))),i=n.endsWith('\\"""'),s=e.endsWith('"')&&!i,l=e.endsWith("\\"),c=s||l,u=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||i);let d="";const p=o&&ml(e.charCodeAt(0));return(u&&!p||a)&&(d+="\n"),d+=n,(u||c)&&(d+="\n"),'"""'+d+'"""'}(e):`"${e.replace(El,Sl)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Cl(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Cl(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ol("(",Cl(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ol("",e,"\n")+Cl(["schema",Cl(t," "),Tl(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ol("",e,"\n")+Cl(["scalar",t,Cl(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Ol("",e,"\n")+Cl(["type",t,Ol("implements ",Cl(n," & ")),Cl(r," "),Tl(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>Ol("",e,"\n")+t+(_l(n)?Ol("(\n",Rl(Cl(n,"\n")),"\n)"):Ol("(",Cl(n,", "),")"))+": "+r+Ol(" ",Cl(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>Ol("",e,"\n")+Cl([t+": "+n,Ol("= ",r),Cl(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>Ol("",e,"\n")+Cl(["interface",t,Ol("implements ",Cl(n," & ")),Cl(r," "),Tl(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ol("",e,"\n")+Cl(["union",t,Cl(n," "),Ol("= ",Cl(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ol("",e,"\n")+Cl(["enum",t,Cl(n," "),Tl(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ol("",e,"\n")+Cl([t,Cl(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ol("",e,"\n")+Cl(["input",t,Cl(n," "),Tl(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>Ol("",e,"\n")+"directive @"+t+(_l(n)?Ol("(\n",Rl(Cl(n,"\n")),"\n)"):Ol("(",Cl(n,", "),")"))+(r?" repeatable":"")+" on "+Cl(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Cl(["extend schema",Cl(e," "),Tl(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Cl(["extend scalar",e,Cl(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Cl(["extend type",e,Ol("implements ",Cl(t," & ")),Cl(n," "),Tl(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Cl(["extend interface",e,Ol("implements ",Cl(t," & ")),Cl(n," "),Tl(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Cl(["extend union",e,Cl(t," "),Ol("= ",Cl(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Cl(["extend enum",e,Cl(t," "),Tl(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Cl(["extend input",e,Cl(t," "),Tl(n)]," ")}};function Cl(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Tl(e){return Ol("{\n",Rl(Cl(e,"\n")),"\n}")}function Ol(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Rl(e){return Ol("  ",e.replace(/\n/g,"\n  "))}function _l(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var Il,Pl=Object.assign((function(e){var t=Il.get(e);return t||(t=function(e){return zs(e,kl)}(e),Il.set(e,t)),t}),{reset:function(){Il=new zi(Wi.print||2e3)}});Pl.reset(),!1!==globalThis.__DEV__&&qi("print",(function(){return Il?Il.size:0}));var Nl={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Ml=function(e,t){return t(e)};function Ll(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={},a={};n.forEach((function(e){o=_a(_a(_a({},o),e.options),{headers:_a(_a({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=_a(_a({},a),e.http)})),o.headers&&(o.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]=e[t]})),n}var r=Object.create(null);Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}}));var o=Object.create(null);return Object.keys(r).forEach((function(e){o[r[e].originalName]=r[e].value})),o}(o.headers,a.preserveHeaderCase));var i=e.operationName,s=e.extensions,l=e.variables,c=e.query,u={operationName:i,variables:l};return a.includeExtensions&&(u.extensions=s),a.includeQuery&&(u.query=t(c,Pl)),{options:o,body:u}}function Dl(e){return new ki((function(t){t.error(e)}))}var Fl={kind:js.FIELD,name:{kind:js.NAME,value:"__typename"}};function jl(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===js.FRAGMENT_SPREAD&&jl(t[e.name.value],t)}))}function $l(e){return jl(vs(e)||function(e){Za("Document"===e.kind,78),Za(e.definitions.length<=1,79);var t=e.definitions[0];return Za("FragmentDefinition"===t.kind,80),t}(e),Oi(ys(e)))?null:e}function zl(e){var t=new Map,n=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))})),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach((function(t,n){n(e)&&(r=t)})),r}}function Bl(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function Vl(e,t){ms(t);for(var n=Bl(""),r=Bl(""),o=function(e){for(var t=0,o=void 0;t<e.length&&(o=e[t]);++t)if(!nl(o)){if(o.kind===js.OPERATION_DEFINITION)return n(o.name&&o.name.value);if(o.kind===js.FRAGMENT_DEFINITION)return r(o.name.value)}return!1!==globalThis.__DEV__&&Za.error(83),null},a=0,i=t.definitions.length-1;i>=0;--i)t.definitions[i].kind===js.OPERATION_DEFINITION&&++a;var s=zl(e),l=function(e){return rl(e)&&e.map(s).some((function(e){return e&&e.remove}))},c=new Map,u=!1,d={enter:function(e){if(l(e.directives))return u=!0,null}},p=zs(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,a){var i=o(a);i&&i.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,a){if(l(e.directives))return u=!0,null;var i=o(a);i&&i.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){c.set(JSON.stringify(r),e)},leave:function(e,t,n,o){return e===c.get(JSON.stringify(o))?e:a>0&&e.selectionSet.selections.every((function(e){return e.kind===js.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,u=!0,null):void 0}},Directive:{leave:function(e){if(s(e))return u=!0,null}}});if(!u)return t;var f=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){f(r(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},h=new Set;p.definitions.forEach((function(e){e.kind===js.OPERATION_DEFINITION?f(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){h.add(e)})):e.kind!==js.FRAGMENT_DEFINITION||0!==a||r(e.name.value).removed||h.add(e.name.value)})),h.forEach((function(e){f(r(e)).fragmentSpreads.forEach((function(e){h.add(e)}))}));var m={enter:function(e){if(t=e.name.value,!h.has(t)||r(t).removed)return null;var t}};return $l(zs(p,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=f(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return _a(_a({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var Wl=Object.assign((function(e){return zs(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==js.OPERATION_DEFINITION){var r=e.selections;if(r)if(!r.some((function(e){return hs(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var o=n;if(!(hs(o)&&o.directives&&o.directives.some((function(e){return"export"===e.name.value}))))return _a(_a({},e),{selections:Ma(Ma([],r,!0),[Fl],!1)})}}}}})}),{added:function(e){return e===Fl}});function Ul(e){return"query"===xs(e).operation?e:zs(e,{OperationDefinition:{enter:function(e){return _a(_a({},e),{operation:"query"})}}})}function ql(e){return ms(e),Vl([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var Hl=Ga((function(){return fetch})),Gl=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,o=e.print,a=void 0===o?Ml:o,i=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,c=e.includeUnusedVariables,u=void 0!==c&&c,d=Ia(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw ei(37)}(r||Hl);var p={http:{includeExtensions:i,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new ks((function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}(e,n),o=e.getContext(),i={};if(o.clientAwareness){var s=o.clientAwareness,c=s.name,d=s.version;c&&(i["apollographql-client-name"]=c),d&&(i["apollographql-client-version"]=d)}var f=_a(_a({},i),o.headers),h={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:f};if(Ws(["client"],e.query)){var m=ql(e.query);if(!m)return Dl(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var v,g,y,b,x,w=Ll(e,a,Nl,p,h),E=w.options,S=w.body;S.variables&&!u&&(S.variables=(v=S.variables,g=e.query,y=_a({},v),b=new Set(Object.keys(v)),zs(g,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.forEach((function(e){delete y[e]})),y)),E.signal||"undefined"==typeof AbortController||(x=new AbortController,E.signal=x.signal);var A,k="OperationDefinition"===(A=xs(e.query)).kind&&"subscription"===A.operation,C=Ws(["defer"],e.query);if(l&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(E.method="GET"),C||k){E.headers=E.headers||{};var T="multipart/mixed;";k&&C&&!1!==globalThis.__DEV__&&Za.warn(38),k?T+="boundary=graphql;subscriptionSpec=1.0,application/json":C&&(T+="deferSpec=20220824,application/json"),E.headers.accept=T}if("GET"===E.method){var O=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=qs(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",o)}if(t.extensions){var a=void 0;try{a=qs(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",a)}var i="",s=e,l=e.indexOf("#");-1!==l&&(i=e.substr(l),s=e.substr(0,l));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+i}}(t,S),R=O.newURI,_=O.parseError;if(_)return Dl(_);t=R}else try{E.body=qs(S,"Payload")}catch(_){return Dl(_)}return new ki((function(n){var o=r||Ga((function(){return fetch}))||Hl,a=n.next.bind(n);return o(t,E).then((function(t){var n;e.setContext({response:t});var r,o=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return Pa(this,void 0,void 0,(function(){var n,r,o,a,i,s,l,c,u,d,p,f,h,m,v,g,y,b,x,w,E,S,A,k;return Na(this,(function(C){switch(C.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(k=e.headers)||void 0===k?void 0:k.get("content-type"),o="boundary=",a=(null==r?void 0:r.includes(o))?null==r?void 0:r.substring((null==r?void 0:r.indexOf(o))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",i="\r\n--".concat(a),s="",l=Js(e),c=!0,C.label=1;case 1:return c?[4,l.next()]:[3,3];case 2:for(u=C.sent(),d=u.value,p=u.done,f="string"==typeof d?d:n.decode(d),h=s.length-i.length+1,c=!p,m=(s+=f).indexOf(i,h);m>-1;){if(v=void 0,S=[s.slice(0,m),s.slice(m+i.length)],s=S[1],g=(v=S[0]).indexOf("\r\n\r\n"),y=fl(v.slice(0,g)),(b=y["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(x=v.slice(g))if(w=hl(e,x),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if(ul(w)){if(E={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];E=_a({},w.payload)}"errors"in w&&(E=_a(_a({},E),{extensions:_a(_a({},"extensions"in E?E.extensions:null),(A={},A[el]=w.errors,A))})),t(E)}else t(w);else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2];m=s.indexOf(i)}return[3,1];case 3:return[2]}}))}))}(t,a):(r=e,function(e){return e.text().then((function(t){return hl(e,t)})).then((function(t){return Array.isArray(t)||pl.call(t,"data")||pl.call(t,"errors")||Zs(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,"'.")),t}))})(t).then(a)})).then((function(){x=void 0,n.complete()})).catch((function(e){x=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){x&&x.abort()}}))}))},Ql=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Gl(t).request)||this;return n.options=t,n}return Ra(t,e),t}(ks),Kl=ks.split;const Yl=()=>Object.create(null),{forEach:Xl,slice:Jl}=Array.prototype,{hasOwnProperty:Zl}=Object.prototype;class ec{constructor(e=!0,t=Yl){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return Xl.call(e,(e=>t=t.getChildTrie(e))),Zl.call(t,"data")?t.data:t.data=this.makeData(Jl.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=this.weakness&&tc(e[n])?t.weak:t.strong;t=r&&r.get(e[n])}return t&&t.data}getChildTrie(e){const t=this.weakness&&tc(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new ec(this.weakness,this.makeData)),n}}function tc(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}let nc=null;const rc={};let oc=1;function ac(e){try{return e()}catch(e){}}const ic="@wry/context:Slot",sc=ac((()=>globalThis))||ac((()=>global))||Object.create(null),lc=sc[ic]||Array[ic]||function(e){try{Object.defineProperty(sc,ic,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",oc++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=nc;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===rc)break;return e!==nc&&(nc.slots[this.id]=t),!0}return nc&&(nc.slots[this.id]=rc),!1}getValue(){if(this.hasValue())return nc.slots[this.id]}withValue(e,t,n,r){const o={__proto__:null,[this.id]:e},a=nc;nc={parent:a,slots:o};try{return t.apply(r,n)}finally{nc=a}}static bind(e){const t=nc;return function(){const n=nc;try{return nc=t,e.apply(this,arguments)}finally{nc=n}}}static noContext(e,t,n){if(!nc)return e.apply(n,t);{const r=nc;try{return nc=null,e.apply(n,t)}finally{nc=r}}}}),{bind:cc,noContext:uc}=lc;const dc=new lc;const{hasOwnProperty:pc}=Object.prototype,fc=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function hc(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const mc=[],vc=100;function gc(e,t){if(!e)throw new Error(t||"assertion failure")}function yc(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function bc(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function xc(e){return e.slice(0)}class wc{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++wc.count}peek(){if(1===this.value.length&&!Ac(this))return Ec(this),this.value[0]}recompute(e){return gc(!this.recomputing,"already recomputing"),Ec(this),Ac(this)?function(e,t){Ic(e),dc.withValue(e,Sc,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{hc(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,Ac(e))return;Cc(e)}(e);return bc(e.value)}(this,e):bc(this.value)}setDirty(){this.dirty||(this.dirty=!0,kc(this),hc(this))}dispose(){this.setDirty(),Ic(this),Tc(this,((e,t)=>{e.setDirty(),Pc(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=mc.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(fc(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),mc.push(this.deps),this.deps=null)}}function Ec(e){const t=dc.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Ac(e)?Oc(t,e):Rc(t,e),t}function Sc(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=xc(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!yc(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function Ac(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function kc(e){Tc(e,Oc)}function Cc(e){Tc(e,Rc)}function Tc(e,t){const n=e.parents.size;if(n){const r=fc(e.parents);for(let o=0;o<n;++o)t(r[o],e)}}function Oc(e,t){gc(e.childValues.has(t)),gc(Ac(t));const n=!Ac(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=mc.pop()||new Set;e.dirtyChildren.add(t),n&&kc(e)}function Rc(e,t){gc(e.childValues.has(t)),gc(!Ac(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,xc(t.value)):yc(n,t.value)||e.setDirty(),_c(e,t),Ac(e)||Cc(e)}function _c(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(mc.length<vc&&mc.push(n),e.dirtyChildren=null))}function Ic(e){e.childValues.size>0&&e.childValues.forEach(((t,n)=>{Pc(e,n)})),e.forgetDeps(),gc(null===e.dirtyChildren)}function Pc(e,t){t.parents.delete(e),e.childValues.delete(t),_c(e,t)}wc.count=0;const Nc={setDirty:!0,dispose:!0,forget:!0};function Mc(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=dc.getValue();if(r){let o=t.get(e);o||t.set(e,o=new Set),r.dependOn(o),"function"==typeof n&&(hc(o),o.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const o=n&&pc.call(Nc,n)?n:"setDirty";fc(r).forEach((e=>e[o]())),t.delete(e),hc(r)}},r}let Lc;function Dc(...e){return(Lc||(Lc=new ec("function"==typeof WeakMap))).lookupArray(e)}const Fc=new Set;function jc(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=Dc,normalizeResult:o,subscribe:a,cache:i=Fi}=Object.create(null)){const s="function"==typeof i?new i(t,(e=>e.dispose())):i,l=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let i=s.get(t);i||(s.set(t,i=new wc(e)),i.normalizeResult=o,i.subscribe=a,i.forget=()=>s.delete(t));const l=i.recompute(Array.prototype.slice.call(arguments));return s.set(t,i),Fc.add(s),dc.hasValue()||(Fc.forEach((e=>e.clean())),Fc.clear()),l};function c(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:o,subscribe:a,cache:s}),l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))},l.peekKey=u,l.peek=function(){return u(r.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}const{toString:$c,hasOwnProperty:zc}=Object.prototype,Bc=Function.prototype.toString,Vc=new Map;function Wc(e,t){try{return qc(e,t)}finally{Vc.clear()}}const Uc=Wc;function qc(e,t){if(e===t)return!0;const n=$c.call(e);if(n!==$c.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Kc(e,t))return!0;const n=Hc(e),r=Hc(t),o=n.length;if(o!==r.length)return!1;for(let e=0;e<o;++e)if(!zc.call(t,n[e]))return!1;for(let r=0;r<o;++r){const o=n[r];if(!qc(e[o],t[o]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Kc(e,t))return!0;const r=e.entries(),o="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,a]=e.value;if(!t.has(n))return!1;if(o&&!qc(a,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Bc.call(e);return n===Bc.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,Qc)}}return!1}function Hc(e){return Object.keys(e).filter(Gc,e)}function Gc(e){return void 0!==this[e]}const Qc="{ [native code] }";function Kc(e,t){let n=Vc.get(e);if(n){if(n.has(t))return!0}else Vc.set(e,n=new Set);return n.add(t),!1}var Yc=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=jc(Ti,{max:Wi["cache.fragmentQueryDocuments"]||1e3,cache:Li})}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(_a(_a({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(_a(_a({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Ia(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,o=e.fragmentName,a=Ia(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),o=t(r);return null==o?r:(n.writeQuery(_a(_a({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),o=t(r);return null==o?r:(n.writeFragment(_a(_a({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(Yc.prototype.getMemoryInternals=Qi);var Xc=function(e){function t(n,r,o,a){var i,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=o,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((i={})[s.path[l]]=s.missing,i)}else s.missing=s.path;return s.__proto__=t.prototype,s}return Ra(t,e),t}(Error);const Jc=()=>Object.create(null),{forEach:Zc,slice:eu}=Array.prototype,{hasOwnProperty:tu}=Object.prototype;class nu{constructor(e=!0,t=Jc){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Zc.call(e,(e=>t=t.getChildTrie(e))),tu.call(t,"data")?t.data:t.data=this.makeData(eu.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),o=r&&r.get(n);o&&(t=o.removeArray(eu.call(e,1)),o.data||o.weak||o.strong&&o.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new nu(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function ru(e){return e}var ou=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=Gs?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(ru,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e((function(e){return(t(e)?n:r).transformDocument(e)}),{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new nu(Hs);this.performWork=jc(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return Za(Array.isArray(r),66),n.lookupArray(r)},max:Wi["documentTransform.cache"],cache:Li})}},e.prototype.performWork=function(e){return ms(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e((function(e){return t.transformDocument(n.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}();function au(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function iu(e){var t=new Set([e]);return t.forEach((function(e){Ci(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){Ci(e[n])&&t.add(e[n])}))})),e}function su(e){return!1!==globalThis.__DEV__&&iu(e),e}var lu=Object.prototype.hasOwnProperty;function cu(e){return null==e}function uu(e,t){var n=e.__typename,r=e.id,o=e._id;if("string"==typeof n&&(t&&(t.keyObject=cu(r)?cu(o)?void 0:{_id:o}:{id:r}),cu(r)&&!cu(o)&&(r=o),!cu(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var du={dataIdFromObject:uu,addTypename:!0,resultCaching:!0,canonizeResults:!1};function pu(e){var t=e.canonizeResults;return void 0===t?du.canonizeResults:t}var fu=/^[_a-z][_0-9a-z]*/i;function hu(e){var t=e.match(fu);return t?t[0]:e}function mu(e,t,n){return!!Ci(t)&&(nl(t)?t.every((function(t){return mu(e,t,n)})):e.selections.every((function(e){if(hs(e)&&Vs(e,n)){var r=ps(e);return lu.call(t,r)&&(!e.selectionSet||mu(e.selectionSet,t[r],n))}return!0})))}function vu(e){return Ci(e)&&!is(e)&&!nl(e)}function gu(e,t){var n=Oi(ys(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var yu,bu,xu=Object.create(null),wu=function(){return xu},Eu=Object.create(null),Su=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return su(is(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return is(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return as(e);if(is(e))return e;var r=n.policies.identify(e)[0];if(r){var o=as(r);return t&&n.merge(r,e),o}}}return e.prototype.toObject=function(){return _a({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),lu.call(this.data,e)){var n=this.data[e];if(n&&lu.call(n,t))return n[t]}return"__typename"===t&&lu.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Tu?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),lu.call(this.data,e)?this.data[e]:this instanceof Tu?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;is(e)&&(e=e.__ref),is(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){Za("string"==typeof n,1);var i=new ll(Ru).merge(o,a);if(this.data[n]=i,i!==o&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);o||(s.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==i[e]){s[e]=1;var t=hu(e);t===e||r.policies.hasKeyArgs(i.__typename,t)||(s[t]=1),void 0!==i[e]||r instanceof Tu||delete i[e]}})),!s.__typename||o&&o.__typename||this.policies.rootTypenamesById[n]!==i.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var o=Object.create(null),a=!1,i=!0,s={DELETE:xu,INVALIDATE:Eu,isReference:is,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||as(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(l){var c=hu(l),u=r[l];if(void 0!==u){var d="function"==typeof t?t:t[l]||t[c];if(d){var p=d===wu?xu:d(su(u),_a(_a({},s),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));if(p===Eu)n.group.dirty(e,l);else if(p===xu&&(p=void 0),p!==u&&(o[l]=p,a=!0,u=p,!1!==globalThis.__DEV__)){var f=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&Za.warn(2,e),!0};if(is(p))f(p);else if(Array.isArray(p))for(var h=!1,m=void 0,v=0,g=p;v<g.length;v++){var y=g[v];if(is(y)){if(h=!0,f(y))break}else if("object"==typeof y&&y)n.policies.identify(y)[0]&&(m=y);if(h&&void 0!==m){!1!==globalThis.__DEV__&&Za.warn(3,m);break}}}}void 0!==u&&(i=!1)}})),a)return this.merge(e,o),i&&(this instanceof Tu?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,o=this.lookup(e);if(o){var a=this.getFieldValue(o,"__typename"),i=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,i?((r={})[i]=wu,r):wu)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(lu.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Tu&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){lu.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&lu.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Ia(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Tu?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){lu.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var o=this;o instanceof Tu;)o=o.parent;r.forEach((function(e){return o.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!lu.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){is(e)&&(t[e.__ref]=!0),Ci(e)&&Object.keys(e).forEach((function(t){var n=e[t];Ci(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Au=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Mc():null,this.keyMaker=new nu(Hs)},e.prototype.depend=function(e,t){if(this.d){this.d(ku(e,t));var n=hu(t);n!==t&&this.d(ku(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ku(e,t),"__exists"===t?"forget":"setDirty")},e}();function ku(e,t){return t+"#"+e}function Cu(e,t){_u(e)&&e.group.depend(t,"__exists")}yu=Su||(Su={}),bu=function(e){function t(t){var n=t.policies,r=t.resultCaching,o=void 0===r||r,a=t.seed,i=e.call(this,n,new Au(o))||this;return i.stump=new Ou(i),i.storageTrie=new nu(Hs),a&&i.replace(a),i}return Ra(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(yu),yu.Root=bu;var Tu=function(e){function t(t,n,r,o){var a=e.call(this,n.policies,o)||this;return a.id=t,a.parent=n,a.replay=r,a.group=o,r(a),a}return Ra(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],o=n.lookup(e);o?r?r!==o&&Object.keys(r).forEach((function(n){Wc(r[n],o[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(o).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return _a(_a({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return lu.call(this.data,t)?_a(_a({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Su),Ou=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Au(t.group.caching,t.group))||this}return Ra(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(Tu);function Ru(e,t,n){var r=e[n],o=t[n];return Wc(r,o)?r:o}function _u(e){return!!(e instanceof Su&&e.group.caching)}var Iu=function(){function e(){this.known=new(Gs?WeakSet:Set),this.pool=new nu(Hs),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Ci(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Ci(e)){var t=function(e){return Ci(e)?nl(e)?e.slice(0):_a({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Ci(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),a=[o],i=this.sortedKeys(e);a.push(i.json);var s,l=a.length;if(i.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(a)).object){var c=s.object=Object.create(o);this.known.add(c),i.sorted.forEach((function(e,t){c[e]=a[l+t]})),!1!==globalThis.__DEV__&&Object.freeze(c)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function Pu(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Nu=function(){function e(e){var t=this;this.knownResults=new(Hs?WeakMap:Map),this.config=au(e,{addTypename:!1!==e.addTypename,canonizeResults:pu(e)}),this.canon=e.canon||new Iu,this.executeSelectionSet=jc((function(e){var n,r=e.context.canonizeResults,o=Pu(e);o[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?r?_a(_a({},a),{result:t.canon.admit(a.result)}):a:(Cu(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||Wi["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Pu,makeCacheKey:function(e,t,n,r){if(_u(n.store))return n.store.makeCacheKey(e,is(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=jc((function(e){return Cu(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||Wi["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(_u(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Iu},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,o=void 0===r?"ROOT_QUERY":r,a=e.variables,i=e.returnPartialData,s=void 0===i||i,l=e.canonizeResults,c=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;a=_a(_a({},ws(bs(n))),a);var d,p=as(o),f=this.executeSelectionSet({selectionSet:xs(n).selectionSet,objectOrReference:p,enclosingRef:p,context:_a({store:t,query:n,policies:u,variables:a,varString:ns(a),canonizeResults:c},gu(n,this.config.fragments))});if(f.missing&&(d=[new Xc(Mu(f.missing),f.missing,n,a)],!s))throw d[0];return{result:f.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(_u(r.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,a=e.context;if(is(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var i,s=a.variables,l=a.policies,c=a.store.getFieldValue(r,"__typename"),u=[],d=new ll;function p(e,t){var n;return e.missing&&(i=d.merge(i,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof c&&!l.rootIdsByTypename[c]&&u.push({__typename:c});var f=new Set(n.selections);f.forEach((function(e){var n,h;if(Vs(e,s))if(hs(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),v=ps(e);void 0===m?Wl.added(e)||(i=d.merge(i,((n={})[v]="Can't find field '".concat(e.name.value,"' on ").concat(is(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):nl(m)?m.length>0&&(m=p(t.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:a}),v)):e.selectionSet?null!=m&&(m=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:is(m)?m:o,context:a}),v)):a.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&u.push(((h={})[v]=m,h))}else{var g=Ri(e,a.lookupFragment);if(!g&&e.kind===js.FRAGMENT_SPREAD)throw ei(9,e.name.value);g&&l.fragmentMatches(g,c)&&g.selectionSet.selections.forEach(f.add,f)}}));var h={result:il(u),missing:i},m=a.canonizeResults?this.canon.admit(h):su(h);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,a=e.enclosingRef,i=e.context,s=new ll;function l(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(i.store.canRead)),o=o.map((function(e,t){return null===e?null:nl(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:i}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:is(e)?e:a,context:i}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Ci(n)&&(Za(!is(n),10,function(e,t){return is(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))}))}}(i.store,r,e),e)})),{result:i.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function Mu(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var Lu=Object.prototype.toString;function Du(e){return Fu(e)}function Fu(e,t){switch(Lu.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=Fu(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=Fu(e[n],t)})),r;default:return e}}var ju=new lc,$u=new WeakMap;function zu(e){var t=$u.get(e);return t||$u.set(e,t={vars:new Set,dep:Mc()}),t}function Bu(e){zu(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Vu(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){zu(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var i=Array.from(n);n.clear(),i.forEach((function(t){return t(e)}))}}else{var s=ju.getValue();s&&(o(s),zu(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),zu(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var Wu=Object.create(null);function Uu(e){var t=JSON.stringify(e);return Wu[t]||(Wu[t]=Object.create(null))}function qu(e){var t=Uu(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=Gu(e,(function(e){var o=Yu(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&lu.call(t,e[0])&&(o=Yu(t,e,Ku)),Za(void 0!==o,4,e.join("."),t),o}));return"".concat(n.typename,":").concat(JSON.stringify(o))})}function Hu(e){var t=Uu(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,o=n.variables,a=n.fieldName,i=Gu(e,(function(e){var n=e[0],a=n.charAt(0);if("@"!==a)if("$"!==a){if(t)return Yu(t,e)}else{var i=n.slice(1);if(o&&lu.call(o,i)){var s=e.slice(0);return s[0]=i,Yu(o,s)}}else if(r&&rl(r.directives)){var l=n.slice(1),c=r.directives.find((function(e){return e.name.value===l})),u=c&&ds(c,o);return u&&Yu(u,e.slice(1))}})),s=JSON.stringify(i);return(t||"{}"!==s)&&(a+=":"+s),a})}function Gu(e,t){var n=new ll;return Qu(e).reduce((function(e,r){var o,a=t(r);if(void 0!==a){for(var i=r.length-1;i>=0;--i)(o={})[r[i]]=a,a=o;e=n.merge(e,a)}return e}),Object.create(null))}function Qu(e){var t=Uu(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,o){nl(t)?(Qu(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),nl(e[o+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function Ku(e,t){return e[t]}function Yu(e,t,n){return n=n||Ku,Xu(t.reduce((function e(t,r){return nl(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function Xu(e){return Ci(e)?nl(e)?e.map(Xu):Gu(Object.keys(e).sort(),(function(t){return Yu(e,t)})):e}function Ju(e){return void 0!==e.args?e.args:e.field?ds(e.field,e.variables):null}var Zu=function(){},ed=function(e,t){return t.fieldName},td=function(e,t,n){return(0,n.mergeObjects)(e,t)},nd=function(e,t){return t},rd=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=_a({dataIdFromObject:uu},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,i=t&&t.storeObject||e,s=_a(_a({},t),{typename:o,storeObject:i,readField:t&&t.readField||function(){var e=ad(arguments,i);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),l=o&&this.getTypePolicy(o),c=l&&l.keyFn||this.config.dataIdFromObject;c;){var u=c(_a(_a({},e),i),s);if(!nl(u)){a=u;break}c=qu(u)}return a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],o=r.queryType,a=r.mutationType,i=r.subscriptionType,s=Ia(r,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),i&&t.setRootTypename("Subscription",n),lu.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),o=t.keyFields,a=t.fields;function i(e,t){e.merge="function"==typeof t?t:!0===t?td:!1===t?nd:e.merge}i(r,t.merge),r.keyFn=!1===o?Zu:nl(o)?qu(o):"function"==typeof o?o:r.keyFn,a&&Object.keys(a).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),o=a[t];if("function"==typeof o)r.read=o;else{var s=o.keyArgs,l=o.read,c=o.merge;r.keyFn=!1===s?ed:nl(s)?Hu(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),i(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||ed)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(Za(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(fu);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!lu.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,o){if(n.test(e)){var a=t.supertypeMap.get(o);a&&a.forEach((function(e){return r.add(e)}))}}))),r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),o=r.fields,a=Ia(r,["fields"]);Object.assign(n,a),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var i=this.getSupertypeSet(t,!0),s=[i],l=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var p=s[d];if(p.has(a))return i.has(a)||(u&&!1!==globalThis.__DEV__&&Za.warn(6,t,a),i.add(a)),!0;p.forEach(l),c&&d===s.length-1&&mu(e.selectionSet,n,r)&&(c=!1,u=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&l(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,o=this.getFieldPolicy(n,r,!1),a=o&&o.keyFn;if(a&&n)for(var i={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Ju(e);a;){var l=a(s,i);if(!nl(l)){t=l||r;break}a=Hu(l)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var o=r.name,a=r.value;return ss(n[e.name.value],o,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,o=e.value;return ss(r,n,o,t)}))),us(e.name.value,r,n)}(e.field,e.variables):us(r,Ju(e))),!1===t?r:r===hu(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var o=this.getStoreFieldName(e),a=hu(o),i=t.store.getFieldValue(n,o),s=this.getFieldPolicy(e.typename,a,!1),l=s&&s.read;if(l){var c=od(this,n,e,t,t.store.getStorage(is(n)?n.__ref:n,o));return ju.withValue(this.cache,l,[i,c])}return i}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),o=r&&r.merge;return!o&&n&&(o=(r=this.getTypePolicy(n))&&r.merge),o},e.prototype.runMergeFunction=function(e,t,n,r,o){var a=n.field,i=n.typename,s=n.merge;return s===td?id(r.store)(e,t):s===nd?t:(r.overwrite&&(e=void 0),s(e,t,od(this,void 0,{typename:i,fieldName:a.name.value,field:a,variables:r.variables},r,o||Object.create(null))))},e}();function od(e,t,n,r,o){var a=e.getStoreFieldName(n),i=hu(a),s=n.variables||r.variables,l=r.store,c=l.toReference,u=l.canRead;return{args:Ju(n),field:n.field||null,fieldName:i,storeFieldName:a,variables:s,isReference:is,toReference:c,storage:o,cache:e.cache,canRead:u,readField:function(){return e.readField(ad(arguments,t,s),r)},mergeObjects:id(r.store)}}function ad(e,t,n){var r,o=e[0],a=e[1],i=e.length;return"string"==typeof o?r={fieldName:o,from:i>1?a:t}:(r=_a({},o),lu.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&Za.warn(7,Xa(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function id(e){return function(t,n){if(nl(t)||nl(n))throw ei(8);if(Ci(t)&&Ci(n)){var r=e.getFieldValue(t,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(is(t)&&vu(n))return e.merge(t.__ref,n),t;if(vu(t)&&is(n))return e.merge(t,n.__ref),n;if(vu(t)&&vu(n))return _a(_a({},t),n)}return n}}function sd(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:_a(_a({},e),{clientOnly:t,deferred:n})),o}var ld=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,o=t.result,a=t.dataId,i=t.variables,s=t.overwrite,l=vs(r),c=new ll;i=_a(_a({},ws(l)),i);var u=_a(_a({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:i,varString:ns(i)},gu(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u});if(!is(d))throw ei(11,o);return u.incomingById.forEach((function(t,r){var o=t.storeObject,a=t.mergeTree,i=t.fieldNodeSet,s=as(r);if(a&&a.map.size){var l=n.applyMerges(a,s,o,u);if(is(l))return;o=l}if(!1!==globalThis.__DEV__&&!u.overwrite){var c=Object.create(null);i.forEach((function(e){e.selectionSet&&(c[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===c[hu(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},a=o(e);if(!a)return;var i=o(t);if(!i)return;if(is(a))return;if(Wc(a,i))return;if(Object.keys(a).every((function(e){return void 0!==r.getFieldValue(i,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=hu(n),c="".concat(s,".").concat(l);if(hd.has(c))return;hd.add(c);var u=[];nl(a)||nl(i)||[a,i].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)}));!1!==globalThis.__DEV__&&Za.warn(14,l,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",c,a,i)}(s,o,e,u.store)}))}e.merge(r,o)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,o=e.selectionSet,a=e.context,i=e.mergeTree,s=this.cache.policies,l=Object.create(null),c=n&&s.rootTypenamesById[n]||fs(r,o,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof c&&(l.__typename=c);var u=function(){var e=ad(arguments,l,a.variables);if(is(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=s.readField(_a(_a({},e),{from:t.storeObject}),a);if(void 0!==n)return n}}return s.readField(e,a)},d=new Set;this.flattenFields(o,r,a,c).forEach((function(e,n){var o,a=ps(n),p=r[a];if(d.add(n),void 0!==p){var f=s.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),h=ud(i,f),m=t.processFieldValue(p,n,n.selectionSet?sd(e,!1,!1):e,h),v=void 0;n.selectionSet&&(is(m)||vu(m))&&(v=u("__typename",m));var g=s.getMergeFunction(c,n.name.value,v);g?h.info={field:n,typename:c,merge:g}:fd(i,f),l=e.merge(l,((o={})[f]=m,o))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||Wl.added(n)||s.getReadFunction(c,n.name.value)||!1!==globalThis.__DEV__&&Za.error(12,ps(n),r)}));try{var p=s.identify(r,{typename:c,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:l,readField:u}),f=p[0],h=p[1];n=n||f,h&&(l=a.merge(l,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=as(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(o)>=0)return m;if(v.push(o),this.reader&&this.reader.isFresh(r,m,o,a))return m;var g=a.incomingById.get(n);return g?(g.storeObject=a.merge(g.storeObject,l),g.mergeTree=dd(g.mergeTree,i),d.forEach((function(e){return g.fieldNodeSet.add(e)}))):a.incomingById.set(n,{storeObject:l,mergeTree:pd(i)?void 0:i,fieldNodeSet:d}),m}return l},e.prototype.processFieldValue=function(e,t,n,r){var o=this;return t.selectionSet&&null!==e?nl(e)?e.map((function(e,a){var i=o.processFieldValue(e,t,n,ud(r,a));return fd(r,a),i})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?Du(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=fs(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,i=new nu(!1);return function e(s,l){var c=i.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach((function(i){if(Vs(i,n.variables)){var s=l.clientOnly,c=l.deferred;if(s&&c||!rl(i.directives)||i.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=ds(e,n.variables);r&&!1===r.if||(c=!0)}})),hs(i)){var u=o.get(i);u&&(s=s&&u.clientOnly,c=c&&u.deferred),o.set(i,sd(n,s,c))}else{var d=Ri(i,n.lookupFragment);if(!d&&i.kind===js.FRAGMENT_SPREAD)throw ei(13,i.name.value);d&&a.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,sd(n,s,c))}}})))}(e,n),o},e.prototype.applyMerges=function(e,t,n,r,o){var a,i=this;if(e.map.size&&!is(n)){var s,l=nl(n)||!is(t)&&!vu(t)?void 0:t,c=n;l&&!o&&(o=[is(l)?l.__ref:l]);var u=function(e,t){return nl(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=u(l,t),a=u(c,t);if(void 0!==a){o&&o.push(t);var d=i.applyMerges(e,n,a,r,o);d!==a&&(s=s||new Map).set(t,d),o&&Za(o.pop()===t)}})),s&&(n=nl(c)?c.slice(0):_a({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,o&&(a=r.store).getStorage.apply(a,o)):n},e}(),cd=[];function ud(e,t){var n=e.map;return n.has(t)||n.set(t,cd.pop()||{map:new Map}),n.get(t)}function dd(e,t){if(e===t||!t||pd(t))return e;if(!e||pd(e))return t;var n=e.info&&t.info?_a(_a({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var a=new Set(t.map.keys());e.map.forEach((function(e,n){o.map.set(n,dd(e,t.map.get(n))),a.delete(n)})),a.forEach((function(n){o.map.set(n,dd(t.map.get(n),e.map.get(n)))}))}return o}function pd(e){return!e||!(e.info||e.map.size)}function fd(e,t){var n=e.map,r=n.get(t);r&&pd(r)&&(cd.push(r),n.delete(t))}var hd=new Set;var md=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new ou(Wl),n.assumeImmutableResults=!0,n.makeVar=Vu,n.txCount=0,n.config=function(e){return au(du,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new rd({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return Ra(t,e),t.prototype.init=function(){var e=this.data=new Su.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new ld(this,this.storeReader=new Nu({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:pu(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=jc((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize||Wi["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(_u(n)){var r=e.optimistic,o=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,ns({optimistic:r,id:o,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(_a(_a({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Xc)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(lu.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(_a(_a({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||zu(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&Bu(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;ns.reset(),Pl.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(is(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&Za.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(lu.call(e,"id"))return!1;e=_a(_a({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),ns.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Bu(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,o=e.optimistic,a=void 0===o||o,i=e.removeOptimistic,s=e.onWatchUpdated,l=function(e){var o=n,a=o.data,i=o.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=a,n.optimisticData=i}},c=new Set;return s&&!this.txCount&&this.broadcastWatches(_a(_a({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),s&&c.size?(this.broadcastWatches(_a(_a({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Wc(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Yc);!1!==globalThis.__DEV__&&(md.prototype.getMemoryInternals=Gi);var vd=ks.execute;function gd(e,t,n){return new ki((function(r){var o={then:function(e){return new Promise((function(t){return t(e())}))}};function a(e,t){return function(n){if(e){var a=function(){return r.closed?0:e(n)};o=o.then(a,a).then((function(e){return r.next(e)}),(function(e){return r.error(e)}))}else r[t](n)}}var i={next:a(t,"next"),error:a(n,"error"),complete:function(){o.then((function(){return r.complete()}))}},s=e.subscribe(i);return function(){return s.unsubscribe()}}))}function yd(e){return rl(bd(e))}function bd(e){var t=rl(e.errors)?e.errors.slice(0):[];return cl(e)&&rl(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function xd(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function wd(e){function t(t){Object.defineProperty(e,t,{value:ki})}return Qs&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Ed(e){return e&&"function"==typeof e.then}var Sd,Ad,kd=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),xd(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),xd(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var o=(void 0===r?[]:r).shift();o?Ed(o)?o.then((function(e){return n.sub=e.subscribe(n.handlers)}),n.handlers.error):n.sub=o.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),xd(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new ki(t)]),Ed(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Ra(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(ki);function Cd(e){return!!e&&e<7}function Td(e,t,n,r){var o=t.data,a=Ia(t,["data"]),i=n.data,s=Ia(n,["data"]);return Uc(a,s)&&Od(xs(e).selectionSet,o,i,{fragmentMap:Oi(ys(e)),variables:r})}function Od(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every((function(e){if(o.has(e))return!0;if(o.add(e),!Vs(e,r.variables))return!0;if(Rd(e))return!0;if(hs(e)){var a=ps(e),i=t&&t[a],s=n&&n[a],l=e.selectionSet;if(!l)return Uc(i,s);var c=Array.isArray(i),u=Array.isArray(s);if(c!==u)return!1;if(c&&u){var d=i.length;if(s.length!==d)return!1;for(var p=0;p<d;++p)if(!Od(l,i[p],s[p],r))return!1;return!0}return Od(l,i,s,r)}var f=Ri(e,r.fragmentMap);return f?!!Rd(f)||Od(f.selectionSet,t,n,r):void 0}))}function Rd(e){return!!e.directives&&e.directives.some(_d)}function _d(e){return"nonreactive"===e.name.value}wd(kd),(Ad=Sd||(Sd={}))[Ad.loading=1]="loading",Ad[Ad.setVariables=2]="setVariables",Ad[Ad.fetchMore=3]="fetchMore",Ad[Ad.refetch=4]="refetch",Ad[Ad.poll=6]="poll",Ad[Ad.ready=7]="ready",Ad[Ad.error=8]="error";var Id=Object.assign,Pd=Object.hasOwnProperty,Nd=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,o=t.options,a=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Ld)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=r,a.queryManager=n,a.waitForOwnResult=Fd(o.fetchPolicy),a.isTornDown=!1;var i=n.defaultOptions.watchQuery,s=(void 0===i?{}:i).fetchPolicy,l=void 0===s?"cache-first":s,c=o.fetchPolicy,u=void 0===c?l:c,d=o.initialFetchPolicy,p=void 0===d?"standby"===u?l:u:d;a.options=_a(_a({},o),{initialFetchPolicy:p,fetchPolicy:u}),a.queryId=r.queryId||n.generateQueryId();var f=vs(a.query);return a.queryName=f&&f.name&&f.name.value,a}return Ra(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:n},o=e.subscribe(r)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||Sd.ready,r=_a(_a({},t),{loading:Cd(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if(Fd(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var i=this.queryInfo.getDiff();(i.complete||this.options.returnPartialData)&&(r.data=i.result),Wc(r.data,{})&&(r.data=void 0),i.complete?(delete r.partial,!i.complete||r.networkStatus!==Sd.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=Sd.ready,r.loading=!1)):r.partial=!0,!1===globalThis.__DEV__||i.complete||this.options.partialRefetch||r.loading||r.data||r.error||Dd(i.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Td(this.query,this.last.result,e,this.variables):!Wc(this.last.result,e))||t&&!Wc(this.last.variables,t))},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Wc(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&Pd.call(e,"variables")){var o=bs(this.query),a=o.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&Za.warn(20,e,(null===(t=o.name)||void 0===t?void 0:t.value)||o)}return e&&!Wc(this.options.variables,e)&&(n.variables=this.options.variables=_a(_a({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Sd.refetch)},t.prototype.fetchMore=function(e){var t=this,n=_a(_a({},e.query?e:_a(_a(_a(_a({},this.options),{query:this.options.query}),e),{variables:_a(_a({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var o=this.queryInfo,a=o.networkStatus;o.networkStatus=Sd.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var i=new Set;return this.queryManager.fetchQuery(r,n,Sd.fetchMore).then((function(s){return t.queryManager.removeQuery(r),o.networkStatus===Sd.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(r){var o=e.updateQuery;o?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:s.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:s.data})},onWatchUpdated:function(e){i.add(e.query)}}),s})).finally((function(){i.has(t.query)||Md(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var o=t.variables;return r(e,{subscriptionData:n,variables:o})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&Za.error(21,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=au(this.options,e||{});Id(this.options,t)},t.prototype.setVariables=function(e){return Wc(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Sd.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,o=t.initialFetchPolicy,a=void 0===o?r:o;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:a}):t.fetchPolicy="variables-changed"===e?a:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){Za(n,22),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&(Cd(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Sd.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!Wc(t,this.last.variables)&&(n=void 0),this.last=_a({result:this.queryManager.assumeImmutableResults?e:Du(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===Sd.refetch||t===Sd.fetchMore||t===Sd.poll,o=this.options.variables,a=this.options.fetchPolicy,i=au(this.options,e||{}),s=r?i:Id(this.options,i),l=this.transformDocument(s.query);this.lastQuery=l,r||(this.updatePolling(),e&&e.variables&&!Wc(e.variables,o)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=Sd.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Fd(s.fetchPolicy));var c=function(){n.concast===p&&(n.waitForOwnResult=!1)},u=s.variables&&_a({},s.variables),d=this.fetch(s,t,l),p=d.concast,f=d.fromLink,h={next:function(e){Wc(n.variables,u)&&(c(),n.reportResult(e,u))},error:function(e){Wc(n.variables,u)&&(c(),n.reportError(e,u))}};return r||!f&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=h),p.addObserver(h),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var r=this.subscribe.apply(this,e);return this.last=n,r},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&xd(this.observers,"next",e)},t.prototype.reportError=function(e,t){var n=_a(_a({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Sd.error,loading:!1});this.updateLastResult(n,t),xd(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(ki);function Md(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function Ld(e){!1!==globalThis.__DEV__&&Za.error(23,e.message,e.stack)}function Dd(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&Za.debug(24,e)}function Fd(e){return"network-only"===e||"no-cache"===e||"standby"===e}function jd(e){return e.kind===js.FIELD||e.kind===js.FRAGMENT_SPREAD||e.kind===js.INLINE_FRAGMENT}wd(Nd);var $d=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=al(t.resolvers,e)})):this.resolvers=al(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return Pa(this,arguments,void 0,(function(e){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,a=e.onlyRunForcedResolvers,i=void 0!==a&&a;return Na(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,i).then((function(e){return _a(_a({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Ws(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return ql(e)},e.prototype.prepareContext=function(e){var t=this.cache;return _a(_a({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return Pa(this,arguments,void 0,(function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Na(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return _a(_a({},t),e.exportedVariables)}))]:[2,_a({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return zs(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return $s}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Ul(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return Pa(this,arguments,void 0,(function(e,t,n,r,o,a){var i,s,l,c,u,d,p,f,h,m;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),Na(this,(function(v){return i=xs(e),s=ys(e),l=Oi(s),c=this.collectSelectionsToResolve(i,l),u=i.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",f=(p=this).cache,h=p.client,m={fragmentMap:l,context:_a(_a({},n),{cache:f,client:h}),variables:r,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:a},!1,[2,this.resolveSelectionSet(i.selectionSet,false,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return Pa(this,void 0,void 0,(function(){var o,a,i,s,l,c=this;return Na(this,(function(u){return o=r.fragmentMap,a=r.context,i=r.variables,s=[n],l=function(e){return Pa(c,void 0,void 0,(function(){var l,c;return Na(this,(function(u){return(t||r.selectionsToResolve.has(e))&&Vs(e,i)?hs(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;void 0!==t&&s.push(((n={})[ps(e)]=t,n))}))]:(!function(e){return"InlineFragment"===e.kind}(e)?(l=o[e.name.value],Za(l,18,e.name.value)):l=e,l&&l.typeCondition&&(c=l.typeCondition.name.value,r.fragmentMatcher(n,c,a))?[2,this.resolveSelectionSet(l.selectionSet,t,n,r).then((function(e){s.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return il(s)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return Pa(this,void 0,void 0,(function(){var o,a,i,s,l,c,u,d,p,f=this;return Na(this,(function(h){return n?(o=r.variables,a=e.name.value,i=ps(e),s=a!==i,l=n[i]||n[a],c=Promise.resolve(l),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(p=d[s?a:i])&&(c=Promise.resolve(ju.withValue(this.cache,p,[n,ds(e,o),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,c.then((function(n){var o,a;if(void 0===n&&(n=l),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var i=null!==(a=null===(o=e.directives)||void 0===o?void 0:o.some((function(e){return"client"===e.name.value})))&&void 0!==a&&a;return Array.isArray(n)?f.resolveSubSelectedArray(e,t||i,n,r):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t||i,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var o=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?o.resolveSubSelectedArray(e,t,n,r):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var a=new Set;r.set(o,a),zs(o,{Directive:function(e,t,r,o,i){"client"===e.name.value&&i.forEach((function(e){n(e)&&jd(e)&&a.add(e)}))},FragmentSpread:function(r,o,i,s,l){var c=t[r.name.value];Za(c,19,r.name.value);var u=e(c);u.size>0&&(l.forEach((function(e){n(e)&&jd(e)&&a.add(e)})),a.add(r),u.forEach((function(e){a.add(e)})))}})}return r.get(o)}(e)},e}(),zd=new(Hs?WeakMap:Map);function Bd(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return zd.set(e,(zd.get(e)+1)%1e15),n.apply(this,arguments)})}function Vd(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Wd=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;zd.has(n)||(zd.set(n,0),Bd(n,"evict"),Bd(n,"modify"),Bd(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Sd.loading;return this.variables&&this.networkStatus!==Sd.loading&&!Wc(this.variables,e.variables)&&(t=Sd.setVariables),Wc(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Vd(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Wc(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;(!e||e.complete||(null===(t=this.observableQuery)||void 0===t?void 0:t.options.returnPartialData)||r&&r.complete)&&(this.updateLastDiff(e),this.dirty||Wc(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return n.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():Md(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Vd(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Cd(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=_a(_a({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Wc(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===zd.get(this.cache)&&Wc(t,n.variables)&&Wc(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var o=this,a=new ll,i=rl(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&rl(e.incremental)){var s=dl(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=a.merge(l.result,e.data)}this.graphQLErrors=i,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(Ud(e,n.errorPolicy)?this.cache.performTransaction((function(a){if(o.shouldWrite(e,n.variables))a.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:e,variables:n.variables,dmCount:zd.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(e.data=o.lastDiff.diff.result);var i=o.getDiffOptions(n.variables),s=a.diff(i);!o.stopped&&Wc(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(s,i),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Sd.ready},e.prototype.markError=function(e){return this.networkStatus=Sd.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Ud(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!yd(e);return!r&&n&&e.data&&(r=!0),r}var qd=Object.prototype.hasOwnProperty,Hd=Object.create(null),Gd=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,i=void 0!==a&&a,s=e.onBroadcast,l=e.ssrMode,c=void 0!==l&&l,u=e.clientAwareness,d=void 0===u?{}:u,p=e.localState,f=e.assumeImmutableResults,h=void 0===f?!!t.assumeImmutableResults:f,m=e.defaultContext,v=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new zi(Wi["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new nu(!1);var g=new ou((function(e){return v.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=i,this.clientAwareness=d,this.localState=p||new $d({cache:t}),this.ssrMode=c,this.assumeImmutableResults=h,this.documentTransform=o?g.concat(o).concat(g):g,this.defaultContext=m||Object.create(null),(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(ei(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return Pa(this,arguments,void 0,(function(e){var t,n,r,o,a,i,s,l=e.mutation,c=e.variables,u=e.optimisticResponse,d=e.updateQueries,p=e.refetchQueries,f=void 0===p?[]:p,h=e.awaitRefetchQueries,m=void 0!==h&&h,v=e.update,g=e.onQueryUpdated,y=e.fetchPolicy,b=void 0===y?(null===(i=this.defaultOptions.mutate)||void 0===i?void 0:i.fetchPolicy)||"network-only":y,x=e.errorPolicy,w=void 0===x?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":x,E=e.keepRootFields,S=e.context;return Na(this,(function(e){switch(e.label){case 0:return Za(l,26),Za("network-only"===b||"no-cache"===b,27),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),n=this.getDocumentInfo(l).hasClientExports,c=this.getVariables(l,c),n?[4,this.localState.addExportedVariables(l,c,S)]:[3,2];case 1:c=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:c,loading:!0,error:null}),o=u&&this.markMutationOptimistic(u,{mutationId:t,document:l,variables:c,fetchPolicy:b,errorPolicy:w,context:S,updateQueries:d,update:v,keepRootFields:E}),this.broadcastQueries(),a=this,[2,new Promise((function(e,n){return gd(a.getObservableFromLink(l,_a(_a({},S),{optimisticResponse:o?u:void 0}),c,!1),(function(e){if(yd(e)&&"none"===w)throw new tl({graphQLErrors:bd(e)});r&&(r.loading=!1,r.error=null);var n=_a({},e);return"function"==typeof f&&(f=f(n)),"ignore"===w&&yd(n)&&delete n.errors,a.markMutationResult({mutationId:t,result:n,document:l,variables:c,fetchPolicy:b,errorPolicy:w,context:S,update:v,updateQueries:d,awaitRefetchQueries:m,refetchQueries:f,removeOptimistic:o?t:void 0,onQueryUpdated:g,keepRootFields:E})})).subscribe({next:function(t){a.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){r&&(r.loading=!1,r.error=e),o&&a.cache.removeOptimistic(t),a.broadcastQueries(),n(e instanceof tl?e:new tl({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&Ud(r,e.errorPolicy)){if(cl(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),cl(r)&&rl(r.incremental)){var i=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;i.result&&(s=dl(i.result,r)),void 0!==s&&(r.data=s,o.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach((function(e,a){var i=e.observableQuery,s=i&&i.queryName;if(s&&qd.call(l,s)){var c=l[s],u=n.queries.get(a),d=u.document,p=u.variables,f=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=c(h,{mutationResult:r,queryName:d&&gs(d)||void 0,queryVariables:p});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}}))}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var i,s=e.update,l=!(cl(i=r)||function(e){return"hasNext"in e&&"data"in e}(i))||cl(r)&&!r.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(r=_a(_a({},r),{data:c.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}l&&s(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return c.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables,{IGNORE:Hd}):e;return r!==Hd&&(this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(_a(_a({},t),{result:{data:r}}),e)}catch(e){!1!==globalThis.__DEV__&&Za.error(e)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:Us(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Ws(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:Vl([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:ws(vs(e)),asQuery:_a(_a({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?_a(_a({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return _a(_a({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=_a(_a({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new Wd(this),r=new Nd({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),Za(e.query,28),Za("Document"===e.query.kind,29),Za(!e.returnPartialData,30),Za(!e.pollInterval,31),this.fetchQuery(t,_a(_a({},e),{query:this.transform(e.query)})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(ei(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Sd.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,o=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):Ci(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e),!1):Ci(e)&&e.query&&o.add(e)})),this.queries.forEach((function(t,o){var a=t.observableQuery,i=t.document;if(a){if("all"===e)return void n.set(o,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&r.has(s)||i&&r.has(i))&&(n.set(o,a),s&&r.set(s,!0),i&&r.set(i,!0))}})),o.size&&o.forEach((function(e){var r=Ya("legacyOneTimeQuery"),o=t.getQuery(r).init({document:e.query,variables:e.variables}),a=new Nd({queryManager:t,queryInfo:o,options:_a(_a({},e),{fetchPolicy:"network-only"})});Za(a.queryId===r),o.setObservableQuery(a),n.set(r,a)})),!1!==globalThis.__DEV__&&r.size&&r.forEach((function(e,t){e||!1!==globalThis.__DEV__&&Za.warn("string"==typeof t?33:34,t)})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,o){var a=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&n.push(r.refetch()),t.getQuery(o).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,i=e.variables,s=e.context,l=void 0===s?{}:s;n=this.transform(n),i=this.getVariables(n,i);var c=function(e){return t.getObservableFromLink(n,l,e).map((function(o){"no-cache"!==r&&(Ud(o,a)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var i=yd(o),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[el])}(o);if(i||s){var l={};if(i&&(l.graphQLErrors=o.errors),s&&(l.protocolErrors=o.extensions[el]),"none"===a||s)throw new tl(l)}return"ignore"===a&&delete o.errors,o}))};if(this.getDocumentInfo(n).hasClientExports){var u=this.localState.addExportedVariables(n,i,l).then(c);return new ki((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var o,a,i=this;void 0===r&&(r=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var s=this.getDocumentInfo(e),l=s.serverQuery,c=s.clientQuery;if(l){var u=this.inFlightLinkObservables,d=this.link,p={query:l,variables:n,operationName:gs(l)||void 0,context:this.prepareContext(_a(_a({},t),{forceFetch:!r}))};if(t=p.context,r){var f=Pl(l),h=ns(n),m=u.lookup(f,h);if(!(a=m.observable)){var v=new kd([vd(d,p)]);a=m.observable=v,v.beforeNext((function(){u.remove(f,h)}))}}else a=new kd([vd(d,p)])}else a=new kd([ki.of({data:{}})]),t=this.prepareContext(t);return c&&(a=gd(a,(function(e){return i.localState.runResolvers({document:c,remoteResult:e,context:t,variables:n})}))),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return gd(this.getObservableFromLink(o,n.context,n.variables),(function(a){var i=bd(a),s=i.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new tl({graphQLErrors:i}));e.markResult(a,o,n,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:Sd.ready};return s&&"ignore"!==n.errorPolicy&&(l.errors=i,l.networkStatus=Sd.error),l}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new tl({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var o=this;void 0===n&&(n=Sd.loading),void 0===r&&(r=t.query);var a,i,s=this.getVariables(r,t.variables),l=this.getQuery(e),c=this.defaultOptions.watchQuery,u=t.fetchPolicy,d=void 0===u?c&&c.fetchPolicy||"cache-first":u,p=t.errorPolicy,f=void 0===p?c&&c.errorPolicy||"none":p,h=t.returnPartialData,m=void 0!==h&&h,v=t.notifyOnNetworkStatusChange,g=void 0!==v&&v,y=t.context,b=void 0===y?{}:y,x=Object.assign({},t,{query:r,variables:s,fetchPolicy:d,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:g,context:b}),w=function(e){x.variables=e;var r=o.fetchQueryByPolicy(l,x,n);return"standby"!==x.fetchPolicy&&r.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),r},E=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){E(),setTimeout((function(){return a.cancel(e)}))})),this.getDocumentInfo(x.query).hasClientExports)a=new kd(this.localState.addExportedVariables(x.query,x.variables,x.context).then(w).then((function(e){return e.sources}))),i=!0;else{var S=w(x.variables);i=S.fromLink,a=new kd(S.sources)}return a.promise.then(E,E),{concast:a,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,o=e.optimistic,a=void 0!==o&&o,i=e.removeOptimistic,s=void 0===i?a?Ya("refetchQueries"):void 0:i,l=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var u=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Wd&&e.watcher.observableQuery;if(r){if(l){c.delete(r.queryId);var o=l(r,t,n);return!0===o&&(o=r.refetch()),!1!==o&&u.set(r,o),o}null!==l&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,o=e.oq,a=e.lastDiff,i=e.diff;if(l){if(!i){var s=o.queryInfo;s.reset(),i=s.getDiff()}r=l(o,i,a)}l&&!0!==r||(r=o.refetch()),!1!==r&&u.set(o,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,o=t.query,a=t.variables,i=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,c=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var f=function(){return e.getDiff()},h=function(t,n){void 0===n&&(n=e.networkStatus||Sd.loading);var i=t.result;!1===globalThis.__DEV__||c||Wc(i,{})||Dd(t.missing);var s=function(e){return ki.of(_a({data:e,loading:Cd(n),networkStatus:n},t.complete?null:{partial:!0}))};return i&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:i},context:u,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):"none"===l&&n===Sd.refetch&&Array.isArray(t.missing)?s(void 0):s(i)},m="no-cache"===i?0:n===Sd.refetch&&"merge"!==s?1:2,v=function(){return r.getResultsFromLink(e,m,{query:o,variables:a,context:u,fetchPolicy:i,errorPolicy:l})},g=d&&"number"==typeof p&&p!==n&&Cd(n);switch(i){default:case"cache-first":return(y=f()).complete?{fromLink:!1,sources:[h(y,e.markReady())]}:c||g?{fromLink:!0,sources:[h(y),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":var y;return(y=f()).complete||c||g?{fromLink:!0,sources:[h(y),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[h(f(),e.markReady())]};case"network-only":return g?{fromLink:!0,sources:[h(f()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return g?{fromLink:!0,sources:[h(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Wd(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return _a(_a(_a({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function Qd(e,t){return au(e,t,t.variables&&{variables:au(_a(_a({},e&&e.variables),t.variables))})}var Kd=!1,Yd=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw ei(15);var n=e.uri,r=e.credentials,o=e.headers,a=e.cache,i=e.documentTransform,s=e.ssrMode,l=void 0!==s&&s,c=e.ssrForceFetchDelay,u=void 0===c?0:c,d=e.connectToDevTools,p=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,f=e.queryDeduplication,h=void 0===f||f,m=e.defaultOptions,v=e.defaultContext,g=e.assumeImmutableResults,y=void 0===g?a.assumeImmutableResults:g,b=e.resolvers,x=e.typeDefs,w=e.fragmentMatcher,E=e.name,S=e.version,A=e.link;A||(A=n?new Ql({uri:n,credentials:r,headers:o}):ks.empty()),this.link=A,this.cache=a,this.disableNetworkFetches=l||u>0,this.queryDeduplication=h,this.defaultOptions=m||Object.create(null),this.typeDefs=x,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Ha,this.localState=new $d({cache:a,client:this,resolvers:b,fragmentMatcher:w}),this.queryManager=new Gd({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:i,queryDeduplication:h,ssrMode:l,clientAwareness:{name:E,version:S},localState:this.localState,assumeImmutableResults:y,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),p&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}Kd||!1===globalThis.__DEV__||(Kd=!0,setTimeout((function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&Za.log("Download the Apollo DevTools for a better development experience: %s",n)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Qd(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=_a(_a({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Qd(this.defaultOptions.query,e)),Za("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=_a(_a({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Qd(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return vd(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var o=Promise.all(r);return o.queries=n,o.results=r,o.catch((function(e){!1!==globalThis.__DEV__&&Za.debug(17,e)})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(Yd.prototype.getMemoryInternals=Hi);var Xd=o(1669),Jd=Qs?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Zd(){Za(!0,45);var e=Xd.createContext[Jd];return e||(Object.defineProperty(Xd.createContext,Jd,{value:e=Xd.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var ep=function(e){var t=e.client,n=e.children,r=Zd(),o=Xd.useContext(r),a=Xd.useMemo((function(){return _a(_a({},o),{client:t||o.client})}),[o,t]);return Za(a.client,46),Xd.createElement(r.Provider,{value:a},n)};var tp=function(e){function t(t){var n=e.call(this)||this;return n.client=t,n}return Ra(t,e),t.prototype.request=function(e){var t=this;return new ki((function(n){return t.client.subscribe(_a(_a({},e),{query:Pl(e.query)}),{next:n.next.bind(n),complete:n.complete.bind(n),error:function(e){if(e instanceof Error)return n.error(e);var t,r=Ci(t=e)&&"code"in t&&"reason"in t;return r||function(e){var t;return Ci(e)&&(null===(t=e.target)||void 0===t?void 0:t.readyState)===WebSocket.CLOSED}(e)?n.error(new Error("Socket closed".concat(r?" with event ".concat(e.code):"").concat(r?" ".concat(e.reason):""))):n.error(new tl({graphQLErrors:Array.isArray(e)?e:[e]}))}})}))},t}(ks);"object"==typeof navigator&&navigator.userAgent&&navigator.userAgent.includes("jsdom"),"object"==typeof process&&!!process.versions&&process.versions.node;const np="object"==typeof window&&"object"==typeof document&&9===document.nodeType;function rp(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function op(e){return"object"===rp(e)}function ap(e,t){return e.length<124?e:t}var ip,sp,lp,cp;function up(e){if(!op(e))throw new Error(`Message is expected to be an object, but got ${rp(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${rp(e.type)}`);switch(e.type){case lp.ConnectionInit:case lp.ConnectionAck:case lp.Ping:case lp.Pong:if(null!=e.payload&&!op(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case lp.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${rp(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!op(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${rp(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${rp(e.payload.query)}`);if(null!=e.payload.variables&&!op(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${rp(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==rp(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${rp(e.payload.operationName)}`);if(null!=e.payload.extensions&&!op(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${rp(e.payload.extensions)}`);break;case lp.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${rp(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!op(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${rp(e.payload)}`);break;case lp.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${rp(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(t=e.payload,!(Array.isArray(t)&&t.length>0&&t.every((e=>"message"in e))))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case lp.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${rp(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}var t;return e}function dp(e,t){return up(e),JSON.stringify(e,t)}(sp=ip||(ip={}))[sp.InternalServerError=4500]="InternalServerError",sp[sp.InternalClientError=4005]="InternalClientError",sp[sp.BadRequest=4400]="BadRequest",sp[sp.BadResponse=4004]="BadResponse",sp[sp.Unauthorized=4401]="Unauthorized",sp[sp.Forbidden=4403]="Forbidden",sp[sp.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",sp[sp.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",sp[sp.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",sp[sp.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",sp[sp.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",(cp=lp||(lp={})).ConnectionInit="connection_init",cp.ConnectionAck="connection_ack",cp.Ping="ping",cp.Pong="pong",cp.Subscribe="subscribe",cp.Next="next",cp.Error="error",cp.Complete="complete";var pp=function(e){return this instanceof pp?(this.v=e,this):new pp(e)},fp=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof pp?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}};function hp(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:o=console.error,lazyCloseTimeout:a=0,keepAlive:i=0,disablePong:s,connectionAckWaitTimeout:l=0,retryAttempts:c=5,retryWait:u=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise((e=>setTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:d=vp,isFatalConnectionProblem:p,on:f,webSocketImpl:h,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},jsonMessageReplacer:v,jsonMessageReviver:g}=e;let y;if(h){if(!("function"==typeof(b=h)&&"constructor"in b&&"CLOSED"in b&&"CLOSING"in b&&"CONNECTING"in b&&"OPEN"in b))throw new Error("Invalid WebSocket implementation provided");y=h}else"undefined"!=typeof WebSocket?y=WebSocket:"undefined"!=typeof global?y=global.WebSocket||global.MozWebSocket:"undefined"!=typeof window&&(y=window.WebSocket||window.MozWebSocket);var b;if(!y)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=y,w=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==f?void 0:f.connecting)?[f.connecting]:[],opened:(null==f?void 0:f.opened)?[f.opened]:[],connected:(null==f?void 0:f.connected)?[f.connected]:[],ping:(null==f?void 0:f.ping)?[f.ping]:[],pong:(null==f?void 0:f.pong)?[f.pong]:[],message:(null==f?void 0:f.message)?[e.emit,f.message]:[e.emit],closed:(null==f?void 0:f.closed)?[f.closed]:[],error:(null==f?void 0:f.error)?[f.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function E(e){const t=[w.on("error",(n=>{t.forEach((e=>e())),e(n)})),w.on("closed",(n=>{t.forEach((e=>e())),e(n)}))]}let S,A,k=0,C=!1,T=0,O=!1;async function R(){clearTimeout(A);const[e,r]=await(null!=S?S:S=new Promise(((e,r)=>(async()=>{if(C){if(await u(T),!k)return S=void 0,r({code:1e3,reason:"All Subscriptions Gone"});T++}w.emit("connecting",C);const o=new x("function"==typeof t?await t():t,"graphql-transport-ws");let a,c;function d(){isFinite(i)&&i>0&&(clearTimeout(c),c=setTimeout((()=>{o.readyState===x.OPEN&&(o.send(dp({type:lp.Ping})),w.emit("ping",!1,void 0))}),i))}E((e=>{S=void 0,clearTimeout(a),clearTimeout(c),r(e),e instanceof mp&&(o.close(4499,"Terminated"),o.onerror=null,o.onclose=null)})),o.onerror=e=>w.emit("error",e),o.onclose=e=>w.emit("closed",e),o.onopen=async()=>{try{w.emit("opened",o);const e="function"==typeof n?await n():n;if(o.readyState!==x.OPEN)return;o.send(dp(e?{type:lp.ConnectionInit,payload:e}:{type:lp.ConnectionInit},v)),isFinite(l)&&l>0&&(a=setTimeout((()=>{o.close(ip.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),l)),d()}catch(e){w.emit("error",e),o.close(ip.InternalClientError,ap(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let p=!1;o.onmessage=({data:t})=>{try{const n=function(e,t){return up("string"==typeof e?JSON.parse(e,t):e)}(t,g);if(w.emit("message",n),"ping"===n.type||"pong"===n.type)return w.emit(n.type,!0,n.payload),void("pong"===n.type?d():s||(o.send(dp(n.payload?{type:lp.Pong,payload:n.payload}:{type:lp.Pong})),w.emit("pong",!1,n.payload)));if(p)return;if(n.type!==lp.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(a),p=!0,w.emit("connected",o,n.payload,C),C=!1,T=0,e([o,new Promise(((e,t)=>E(t)))])}catch(e){o.onmessage=null,w.emit("error",e),o.close(ip.BadResponse,ap(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})())));e.readyState===x.CLOSING&&await r;let o=()=>{};const c=new Promise((e=>o=e));return[e,o,Promise.race([c.then((()=>{if(!k){const t=()=>e.close(1e3,"Normal Closure");isFinite(a)&&a>0?A=setTimeout((()=>{e.readyState===x.OPEN&&t()}),a):t()}})),r])]}function _(e){if(vp(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1014].includes(t)&&t>=1e3&&t<=1999||[ip.InternalServerError,ip.InternalClientError,ip.BadRequest,ip.BadResponse,ip.Unauthorized,ip.SubprotocolNotAcceptable,ip.SubscriberAlreadyExists,ip.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(O)return!1;if(vp(e)&&1e3===e.code)return k>0;if(!c||T>=c)throw e;if(!d(e))throw e;if(null==p?void 0:p(e))throw e;return C=!0}function I(e,t){const n=m(e);let r=!1,o=!1,a=()=>{k--,r=!0};return(async()=>{for(k++;;)try{const[i,s,l]=await R();if(r)return s();const c=w.onMessage(n,(e=>{switch(e.type){case lp.Next:return void t.next(e.payload);case lp.Error:return o=!0,r=!0,t.error(e.payload),void a();case lp.Complete:return r=!0,void a()}}));return i.send(dp({id:n,type:lp.Subscribe,payload:e},v)),a=()=>{r||i.readyState!==x.OPEN||i.send(dp({id:n,type:lp.Complete},v)),k--,r=!0,s()},void await l.finally(c)}catch(e){if(!_(e))return}})().then((()=>{o||t.complete()})).catch((e=>{t.error(e)})),()=>{r||a()}}return r||(async()=>{for(k++;;)try{const[,,e]=await R();await e}catch(e){try{if(!_(e))return}catch(e){return null==o?void 0:o(e)}}})(),{on:w.on,subscribe:I,iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=I(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),o=function(){return fp(this,arguments,(function*(){for(;;){for(t.length||(yield pp(new Promise((e=>n.resolve=e))));t.length;)yield yield pp(t.shift());if(n.error)throw n.error;if(n.done)return yield pp(void 0)}}))}();return o.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),o.return=async()=>(r(),{done:!0,value:void 0}),o},async dispose(){if(O=!0,S){const[e]=await S;e.close(1e3,"Normal Closure")}},terminate(){S&&w.emit("closed",new mp)}}}class mp extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function vp(e){return op(e)&&"code"in e&&"reason"in e}var gp=e.createContext(null),yp=function(){var t=(0,e.useContext)(gp);if(!t)throw new Error("useApiKey must be used within <ApiKeyContext.Provider>");return t};const bp=gp;let xp,wp;const Ep=(e,t,n)=>{const r=new Ql({uri:"https://ai.ocelotbot.com/graphql"}),o=(a=async()=>({headers:{"x-contextual-entity":e}}),new ks((function(e,t){var n=Ia(e,[]);return new ki((function(r){var o,i=!1;return Promise.resolve(n).then((function(t){return a(t,e.getContext())})).then(e.setContext).then((function(){i||(o=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))})).catch(r.error.bind(r)),function(){i=!0,o&&o.unsubscribe()}}))})));var a;const i=ks.from([o,r]),s=np?Kl((({query:e})=>{const t=xs(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation}),(wp||(wp=hp({url:"wss://ai.ocelotbot.com/graphql",connectionParams:()=>t.current(),lazy:!0,keepAlive:12e3,retryAttempts:1/0,retryWait:vr((l={base:1.5,start:1e3,ceiling:1e4},c=l.start,u=void 0===c?1e3:c,d=l.ceiling,p=l.base,f=void 0===p?2:p,h=l.jitterPercent,m=void 0===h?.5:h,v=l.jitterBias,g=(void 0===v?.8:v)-Math.random(),function(e){var t=Math.pow(f,e)*u;return d&&t>d&&(t=d),0!==m&&(t+=t*m*g),t})),shouldRetry:()=>!0,on:{ping:e=>{e||(xp=setTimeout((()=>{var e;null===(e=wp)||void 0===e||e.terminate()}),12e3))},pong:e=>{e&&clearTimeout(xp)}}}),wp.on("connected",(()=>{n(Nr(!0))})),wp.on("closed",(()=>{n(Nr(!1))}))),new tp(wp)),i):i;var l,c,u,d,p,f,h,m,v,g;const y=new md({possibleTypes:{LiveChatConversationSystemEventPayload:["ConversationSupersededPayload","ConversationQueueChanged","StartTypingOperatorPayload","StopTypingOperatorPayload","ClientAuthenticatedPayload"]}});return[new Yd({link:s,cache:y}),wp]},Sp=()=>{const t=pe((e=>e.conversationState.conversation_id)),n=(0,e.useRef)((()=>({conversationId:t,clientVersion:"5.227.0",role:"Client",isPortalProduct:!1})));return(0,e.useEffect)((()=>{n.current=()=>({conversationId:t,clientVersion:"5.227.0",role:"Client",isPortalProduct:!1})}),[t]),n};function Ap({children:t}){const n=ze(),r=(0,e.useContext)(bp),o=pe((e=>e.messages.liveChat)),a=(0,e.useRef)(o),i=Sp(),s=(0,e.useRef)();if((0,e.useContext)(Zd()).client)return t;let l,c;return s.current&&([l,c]=s.current),s.current&&a.current===o||(a.current=o,c&&c.terminate(),s.current=Ep(r,i,n),[l,c]=s.current),l?e.createElement(ep,{client:l},t):t}Ap.propTypes={children:In().any.isRequired};const kp=(0,e.createContext)(null),Cp=kp.Provider,Tp=()=>(0,e.useContext)(kp);const Op=e.createContext({addHelloConfigTranslation:function(){},config:null}),Rp=(e={})=>{try{e=JSON.parse(void 0)}catch(e){}return ur(e)};var _p=o(2426),Ip=o(5247),Pp=o(1869),Np=o(7466),Mp=o(5631),Lp=o(926),Dp=o(5532),Fp=o(697);function jp(e,t){return jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jp(e,t)}function $p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jp(e,t)}const zp=e.createContext(null);function Bp(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Vp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wp(t,n,r){var o=Bp(t.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(n,o);return Object.keys(a).forEach((function(i){var s=a[i];if((0,e.isValidElement)(s)){var l=i in n,c=i in o,u=n[i],d=(0,e.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,e.isValidElement)(u)&&(a[i]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:u.props.in,exit:Vp(s,"exit",t),enter:Vp(s,"enter",t)})):a[i]=(0,e.cloneElement)(s,{in:!1}):a[i]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Vp(s,"exit",t),enter:Vp(s,"enter",t)})}})),a}var Up=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qp=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}$p(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,a=n.children,i=n.handleExited;return{children:n.firstRender?(r=t,o=i,Bp(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:Vp(t,"appear",r),enter:Vp(t,"enter",r),exit:Vp(t,"exit",r)})}))):Wp(t,a,i),firstRender:!1}},r.handleExited=function(e,t){var n=Bp(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,Fo.A)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=(0,Wo.A)(t,["component","childFactory"]),a=this.state.contextValue,i=Up(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(zp.Provider,{value:a},i):e.createElement(zp.Provider,{value:a},e.createElement(n,o,i))},n}(e.Component);qp.propTypes={},qp.defaultProps={component:"div",childFactory:function(e){return e}};const Hp=qp;const Gp=function(t){const{className:n,classes:r,pulsate:o=!1,rippleX:a,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=t,[d,p]=e.useState(!1),f=(0,Ip.A)(n,r.ripple,r.rippleVisible,o&&r.ripplePulsate),h={width:s,height:s,top:-s/2+i,left:-s/2+a},m=(0,Ip.A)(r.child,d&&r.childLeaving,o&&r.childPulsate);return l||d||p(!0),e.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,Po.jsx)("span",{className:f,style:h,children:(0,Po.jsx)("span",{className:m})})};var Qp=o(8271);const Kp=(0,Qp.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Yp=["center","classes","className"];let Xp,Jp,Zp,ef,tf=e=>e;const nf=ba(Xp||(Xp=tf`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),rf=ba(Jp||(Jp=tf`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),of=ba(Zp||(Zp=tf`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),af=(0,_p.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sf=(0,_p.Ay)(Gp,{name:"MuiTouchRipple",slot:"Ripple"})(ef||(ef=tf`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),Kp.rippleVisible,nf,550,(({theme:e})=>e.transitions.easing.easeInOut),Kp.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kp.child,Kp.childLeaving,rf,550,(({theme:e})=>e.transitions.easing.easeInOut),Kp.childPulsate,of,(({theme:e})=>e.transitions.easing.easeInOut)),lf=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=(0,Do.A)(r,Yp),[l,c]=e.useState([]),u=e.useRef(0),d=e.useRef(null);e.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=e.useRef(!1),f=e.useRef(0),h=e.useRef(null),m=e.useRef(null);e.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const v=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;c((e=>[...e,(0,Po.jsx)(sf,{classes:{ripple:(0,Ip.A)(a.ripple,Kp.ripple),rippleVisible:(0,Ip.A)(a.rippleVisible,Kp.rippleVisible),ripplePulsate:(0,Ip.A)(a.ripplePulsate,Kp.ripplePulsate),child:(0,Ip.A)(a.child,Kp.child),childLeaving:(0,Ip.A)(a.childLeaving,Kp.childLeaving),childPulsate:(0,Ip.A)(a.childPulsate,Kp.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=i}),[a]),g=e.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:a=o||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=i?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{v({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):v({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[o,v]),y=e.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=e.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{b(e,t)})));h.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return e.useImperativeHandle(n,(()=>({pulsate:y,start:g,stop:b})),[y,g,b]),(0,Po.jsx)(af,(0,Lo.A)({className:(0,Ip.A)(Kp.root,a.root,i),ref:m},s,{children:(0,Po.jsx)(Hp,{component:null,exit:!0,children:l})}))}));var cf=o(8531);function uf(e){return(0,cf.Ay)("MuiButtonBase",e)}const df=(0,Qp.A)("MuiButtonBase",["root","disabled","focusVisible"]),pf=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ff=(0,_p.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${df.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hf=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:v,onDragLeave:g,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:E,onMouseLeave:S,onMouseUp:A,onTouchEnd:k,onTouchMove:C,onTouchStart:T,tabIndex:O=0,TouchRippleProps:R,touchRippleRef:_,type:I}=r,P=(0,Do.A)(r,pf),N=e.useRef(null),M=e.useRef(null),L=(0,Lp.A)(M,_),{isFocusVisibleRef:D,onFocus:F,onBlur:j,ref:$}=(0,Fp.A)(),[z,B]=e.useState(!1);c&&z&&B(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{B(!0),N.current.focus()}})),[]);const[V,W]=e.useState(!1);e.useEffect((()=>{W(!0)}),[]);const U=V&&!u&&!c;function q(e,t,n=d){return(0,Dp.A)((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}e.useEffect((()=>{z&&p&&!u&&V&&M.current.pulsate()}),[u,p,z,V]);const H=q("start",E),G=q("stop",v),Q=q("stop",g),K=q("stop",A),Y=q("stop",(e=>{z&&e.preventDefault(),S&&S(e)})),X=q("start",T),J=q("stop",k),Z=q("stop",C),ee=q("stop",(e=>{j(e),!1===D.current&&B(!1),h&&h(e)}),!1),te=(0,Dp.A)((e=>{N.current||(N.current=e.currentTarget),F(e),!0===D.current&&(B(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),oe=(0,Dp.A)((e=>{p&&!re.current&&z&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),ae=(0,Dp.A)((e=>{p&&" "===e.key&&M.current&&z&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=f);const se={};"button"===ie?(se.type=void 0===I?"button":I,se.disabled=c):(P.href||P.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=(0,Lp.A)(n,$,N);const ce=(0,Lo.A)({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:O,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a={root:["root",t&&"disabled",n&&"focusVisible"]},i=(0,Pp.A)(a,uf,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return(0,Po.jsxs)(ff,(0,Lo.A)({as:ie,className:(0,Ip.A)(ue.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:H,onMouseLeave:Y,onMouseUp:K,onDragLeave:Q,onTouchEnd:J,onTouchMove:Z,onTouchStart:X,ref:le,tabIndex:c?-1:O,type:I},se,P,{children:[i,U?(0,Po.jsx)(lf,(0,Lo.A)({ref:L,center:a},R)):null]}))}));var mf=o(2006);function vf(e){return(0,cf.Ay)("MuiIconButton",e)}const gf=(0,Qp.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),yf=["edge","children","className","color","disabled","disableFocusRipple","size"],bf=(0,_p.Ay)(hf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,mf.A)(n.color)}`],n.edge&&t[`edge${(0,mf.A)(n.edge)}`],t[`size${(0,mf.A)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,Lo.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Np.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,Lo.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,Lo.A)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,Lo.A)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Np.X4)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${gf.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),xf=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=(0,Do.A)(n,yf),d=(0,Lo.A)({},n,{edge:r,color:i,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled","default"!==r&&`color${(0,mf.A)(r)}`,o&&`edge${(0,mf.A)(o)}`,`size${(0,mf.A)(a)}`]};return(0,Pp.A)(i,vf,t)})(d);return(0,Po.jsx)(bf,(0,Lo.A)({className:(0,Ip.A)(p.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},u,{children:o}))}));var wf=o(7238);function Ef(e){return"string"==typeof e}var Sf=o(4958),Af=o(6168);const kf=e.createContext({});function Cf(e){return(0,cf.Ay)("MuiListItem",e)}const Tf=(0,Qp.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Of(e){return(0,cf.Ay)("MuiListItemButton",e)}const Rf=(0,Qp.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function _f(e){return(0,cf.Ay)("MuiListItemSecondaryAction",e)}(0,Qp.A)("MuiListItemSecondaryAction",["root","disableGutters"]);const If=["className"],Pf=(0,_p.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,Lo.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Nf=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=(0,Do.A)(r,If),i=e.useContext(kf),s=(0,Lo.A)({},r,{disableGutters:i.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,Pp.A)(r,_f,n)})(s);return(0,Po.jsx)(Pf,(0,Lo.A)({className:(0,Ip.A)(l.root,o),ownerState:s,ref:n},a))}));Nf.muiName="ListItemSecondaryAction";const Mf=Nf,Lf=["className"],Df=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Ff=(0,_p.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,Lo.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,Lo.A)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Rf.root}`]:{paddingRight:48}},{[`&.${Tf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Tf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Tf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Tf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Tf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),jf=(0,_p.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),$f=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:v=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:w=!1,slotProps:E={},slots:S={}}=r,A=(0,Do.A)(r.ContainerProps,Lf),k=(0,Do.A)(r,Df),C=e.useContext(kf),T=e.useMemo((()=>({dense:h||C.dense||!1,alignItems:o,disableGutters:v})),[o,C.dense,h,v]),O=e.useRef(null);(0,Af.A)((()=>{a&&O.current&&O.current.focus()}),[a]);const R=e.Children.toArray(s),_=R.length&&(0,Sf.A)(R[R.length-1],["ListItemSecondaryAction"]),I=(0,Lo.A)({},r,{alignItems:o,autoFocus:a,button:i,dense:T.dense,disabled:m,disableGutters:v,disablePadding:g,divider:y,hasSecondaryAction:_,selected:w}),P=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,Pp.A)(d,Cf,r)})(I),N=(0,Lp.A)(O,n),M=S.root||u.Root||Ff,L=E.root||d.root||{},D=(0,Lo.A)({className:(0,Ip.A)(P.root,L.className,l),disabled:m},k);let F=c||"li";return i&&(D.component=c||"div",D.focusVisibleClassName=(0,Ip.A)(Tf.focusVisible,b),F=hf),_?(F=D.component||c?F:"div","li"===p&&("li"===F?F="div":"li"===D.component&&(D.component="div")),(0,Po.jsx)(kf.Provider,{value:T,children:(0,Po.jsxs)(jf,(0,Lo.A)({as:p,className:(0,Ip.A)(P.container,f),ref:N,ownerState:I},A,{children:[(0,Po.jsx)(M,(0,Lo.A)({},L,!Ef(M)&&{as:F,ownerState:(0,Lo.A)({},I,L.ownerState)},D,{children:R})),R.pop()]}))})):(0,Po.jsx)(kf.Provider,{value:T,children:(0,Po.jsxs)(M,(0,Lo.A)({},L,{as:F,ref:N},!Ef(M)&&{ownerState:(0,Lo.A)({},I,L.ownerState)},D,{children:[R,x&&(0,Po.jsx)(Mf,{children:x})]}))})})),zf=$f;var Bf=o(1620),Vf=o(1896);const Wf=["sx"],Uf=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Vf.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function qf(e){const{sx:t}=e,n=(0,Wo.A)(e,Wf),{systemProps:r,otherProps:o}=Uf(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,Bf.Q)(n)?(0,Fo.A)({},r,n):r}:(0,Fo.A)({},r,t),(0,Fo.A)({},o,{sx:a})}function Hf(e){return(0,cf.Ay)("MuiTypography",e)}(0,Qp.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gf=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Qf=(0,_p.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,mf.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,Lo.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Kf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Yf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Xf=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiTypography"}),r=(e=>Yf[e]||e)(n.color),o=qf((0,Lo.A)({},n,{color:r})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Kf}=o,f=(0,Do.A)(o,Gf),h=(0,Lo.A)({},o,{align:a,color:r,className:i,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Kf[d])||"span",v=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,"inherit"!==e.align&&`align${(0,mf.A)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,Pp.A)(s,Hf,i)})(h);return(0,Po.jsx)(Qf,(0,Lo.A)({as:m,ref:t,ownerState:h,className:(0,Ip.A)(v.root,i)},f))}));function Jf(e){return(0,cf.Ay)("MuiListItemText",e)}const Zf=(0,Qp.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),eh=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],th=(0,_p.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zf.primary}`]:t.primary},{[`& .${Zf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,Lo.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),nh=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,p=(0,Do.A)(r,eh),{dense:f}=e.useContext(kf);let h=null!=l?l:o,m=u;const v=(0,Lo.A)({},r,{disableTypography:i,inset:s,primary:!!h,secondary:!!m,dense:f}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e,i={root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,Pp.A)(i,Jf,t)})(v);return null==h||h.type===Xf||i||(h=(0,Po.jsx)(Xf,(0,Lo.A)({variant:f?"body2":"body1",className:g.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:h}))),null==m||m.type===Xf||i||(m=(0,Po.jsx)(Xf,(0,Lo.A)({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,Po.jsxs)(th,(0,Lo.A)({className:(0,Ip.A)(g.root,a),ownerState:v,ref:n},p,{children:[h,m]}))}));function rh(e){return(0,cf.Ay)("MuiListItemAvatar",e)}(0,Qp.A)("MuiListItemAvatar",["root","alignItemsFlexStart"]);const oh=["className"],ah=(0,_p.Ay)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({ownerState:e})=>(0,Lo.A)({minWidth:56,flexShrink:0},"flex-start"===e.alignItems&&{marginTop:8}))),ih=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=(0,Do.A)(r,oh),i=e.useContext(kf),s=(0,Lo.A)({},r,{alignItems:i.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Pp.A)(r,rh,n)})(s);return(0,Po.jsx)(ah,(0,Lo.A)({className:(0,Ip.A)(l.root,o),ownerState:s,ref:n},a))}));var sh=o(769);const lh=(0,sh.A)((0,Po.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ch(e){return(0,cf.Ay)("MuiAvatar",e)}(0,Qp.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const uh=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],dh=(0,_p.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>(0,Lo.A)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&(0,Lo.A)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]})))),ph=(0,_p.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),fh=(0,_p.Ay)(lh,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const hh=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:d,variant:p="circular"}=r,f=(0,Do.A)(r,uh);let h=null;const m=function({crossOrigin:t,referrerPolicy:n,src:r,srcSet:o}){const[a,i]=e.useState(!1);return e.useEffect((()=>{if(!r&&!o)return;i(!1);let e=!0;const a=new Image;return a.onload=()=>{e&&i("loaded")},a.onerror=()=>{e&&i("error")},a.crossOrigin=t,a.referrerPolicy=n,a.src=r,o&&(a.srcset=o),()=>{e=!1}}),[t,n,r,o]),a}((0,Lo.A)({},l,{src:u,srcSet:d})),v=u||d,g=v&&"error"!==m,y=(0,Lo.A)({},r,{colorDefault:!g,component:s,variant:p}),b=(e=>{const{classes:t,variant:n,colorDefault:r}=e,o={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,Pp.A)(o,ch,t)})(y);return h=g?(0,Po.jsx)(ph,(0,Lo.A)({alt:o,srcSet:d,src:u,sizes:c,ownerState:y,className:b.img},l)):null!=a?a:v&&o?o[0]:(0,Po.jsx)(fh,{ownerState:y,className:b.fallback}),(0,Po.jsx)(dh,(0,Lo.A)({as:s,ownerState:y,className:(0,Ip.A)(b.root,i),ref:n},f,{children:h}))})),mh=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vh(e){return(0,cf.Ay)("MuiPaper",e)}(0,Qp.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gh=["className","component","elevation","square","variant"],yh=(0,_p.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,Lo.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,Lo.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Np.X4)("#fff",mh(t.elevation))}, ${(0,Np.X4)("#fff",mh(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),bh=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=n,l=(0,Do.A)(n,gh),c=(0,Lo.A)({},n,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,Pp.A)(a,vh,o)})(c);return(0,Po.jsx)(yh,(0,Lo.A)({as:o,ownerState:c,className:(0,Ip.A)(u.root,r),ref:t},l))}));function xh(e){return(0,cf.Ay)("MuiAppBar",e)}(0,Qp.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const wh=["className","color","enableColorOnDark","position"],Eh=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,Sh=(0,_p.Ay)(bh,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,mf.A)(n.position)}`],t[`color${(0,mf.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,Lo.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,Lo.A)({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,Lo.A)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,Lo.A)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Eh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Eh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Eh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Eh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),Ah=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=n,s=(0,Do.A)(n,wh),l=(0,Lo.A)({},n,{color:o,position:i,enableColorOnDark:a}),c=(e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${(0,mf.A)(t)}`,`position${(0,mf.A)(n)}`]};return(0,Pp.A)(o,xh,r)})(l);return(0,Po.jsx)(Sh,(0,Lo.A)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,Ip.A)(c.root,r,"fixed"===i&&"mui-fixed"),ref:t},s))}));function kh(e){return(0,cf.Ay)("MuiToolbar",e)}(0,Qp.A)("MuiToolbar",["root","gutters","regular","dense"]);const Ch=["className","component","disableGutters","variant"],Th=(0,_p.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,Lo.A)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),Oh=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular"}=n,s=(0,Do.A)(n,Ch),l=(0,Lo.A)({},n,{component:o,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e,o={root:["root",!n&&"gutters",r]};return(0,Pp.A)(o,kh,t)})(l);return(0,Po.jsx)(Th,(0,Lo.A)({as:o,className:(0,Ip.A)(c.root,r),ref:t,ownerState:l},s))})),Rh=!1;var _h="unmounted",Ih="exited",Ph="entering",Nh="entered",Mh="exiting",Lh=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=Ih,r.appearStatus=Ph):o=Nh:o=e.unmountOnExit||e.mountOnEnter?_h:Ih,r.state={status:o},r.nextCallback=null,r}$p(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===_h?{status:Ih}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ph&&n!==Nh&&(t=Ph):n!==Ph&&n!==Nh||(t=Mh)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ph){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ih&&this.setState({status:_h})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Z.findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Rh?this.safeSetState({status:Nh},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Ph},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:Nh},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Z.findDOMNode(this);t&&!Rh?(this.props.onExit(r),this.safeSetState({status:Mh},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ih},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ih},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Z.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===_h)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,Wo.A)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(zp.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function Dh(){}Lh.contextType=zp,Lh.propTypes={},Lh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dh,onEntering:Dh,onEntered:Dh,onExit:Dh,onExiting:Dh,onExited:Dh},Lh.UNMOUNTED=_h,Lh.EXITED=Ih,Lh.ENTERING=Ph,Lh.ENTERED=Nh,Lh.EXITING=Mh;const Fh=Lh;function jh(){const e=(0,wa.A)(Sa.A);return e[Yo.A]||e}const $h=e=>e.scrollTop;function zh(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const Bh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vh(e){return`scale(${e}, ${e**2})`}const Wh={entering:{opacity:1,transform:Vh(1)},entered:{opacity:1,transform:"none"}},Uh="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qh=e.forwardRef((function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:v=Fh}=t,g=(0,Do.A)(t,Bh),y=e.useRef(),b=e.useRef(),x=jh(),w=e.useRef(null),E=(0,Lp.A)(w,a.ref,n),S=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},A=S(u),k=S(((e,t)=>{$h(e);const{duration:n,delay:r,easing:o}=zh({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Uh?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),C=S(c),T=S(f),O=S((e=>{const{duration:t,delay:n,easing:r}=zh({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Uh?o:.666*o,delay:Uh?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Vh(.75),d&&d(e)})),R=S(p);return e.useEffect((()=>()=>{clearTimeout(y.current)}),[]),(0,Po.jsx)(v,(0,Lo.A)({appear:o,in:s,nodeRef:w,onEnter:k,onEntered:C,onEntering:A,onExit:O,onExited:R,onExiting:T,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),r&&r(w.current,e)},timeout:"auto"===m?null:m},g,{children:(t,n)=>e.cloneElement(a,(0,Lo.A)({style:(0,Lo.A)({opacity:0,transform:Vh(.75),visibility:"exited"!==t||s?void 0:"hidden"},Wh[t],h,a.props.style),ref:E},n))}))}));qh.muiSupportAuto=!0;const Hh=qh;var Gh=o(9926),Qh=o(9591);const Kh=["className","component"];var Yh=o(6353),Xh=o(2581);const Jh=(0,Qp.A)("MuiBox",["root"]),Zh=(0,Xh.A)(),em=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:a}=t,i=(0,Gh.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qh.A);return e.forwardRef((function(e,t){const s=(0,wa.A)(r),l=qf(e),{className:c,component:u="div"}=l,d=(0,Wo.A)(l,Kh);return(0,Po.jsx)(i,(0,Fo.A)({as:u,ref:t,className:(0,Ip.A)(c,a?a(o):o),theme:n&&s[n]||s},d))}))}({themeId:Yo.A,defaultTheme:Zh,defaultClassName:Jh.root,generateClassName:Yh.A.generate}),tm=(0,sh.A)((0,Po.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"}),"QuestionAnswer");function nm(e){return(0,cf.Ay)("MuiFab",e)}const rm=(0,Qp.A)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),om=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],am=(0,_p.Ay)(hf,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,mf.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,t[(0,mf.A)(n.size)],t[n.color]]}})((({theme:e,ownerState:t})=>{var n,r;return(0,Lo.A)({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${rm.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},"small"===t.size&&{width:40,height:40},"medium"===t.size&&{width:48,height:48},"extended"===t.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===t.variant&&"small"===t.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===t.variant&&"medium"===t.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===t.color&&{color:"inherit"})}),(({theme:e,ownerState:t})=>(0,Lo.A)({},"inherit"!==t.color&&"default"!==t.color&&null!=(e.vars||e).palette[t.color]&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}})),(({theme:e})=>({[`&.${rm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),im=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiFab"}),{children:r,className:o,color:a="default",component:i="button",disabled:s=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:u="large",variant:d="circular"}=n,p=(0,Do.A)(n,om),f=(0,Lo.A)({},n,{color:a,component:i,disabled:s,disableFocusRipple:l,size:u,variant:d}),h=(e=>{const{color:t,variant:n,classes:r,size:o}=e,a={root:["root",n,`size${(0,mf.A)(o)}`,"inherit"===t?"colorInherit":t]},i=(0,Pp.A)(a,nm,r);return(0,Lo.A)({},r,i)})(f);return(0,Po.jsx)(am,(0,Lo.A)({className:(0,Ip.A)(h.root,o),component:i,disabled:s,focusRipple:!l,focusVisibleClassName:(0,Ip.A)(h.focusVisible,c),ownerState:f,ref:t},p,{classes:h,children:r}))})),sm=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lm={entering:{transform:"none"},entered:{transform:"none"}},cm=e.forwardRef((function(t,n){const r=jh(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:v,timeout:g=o,TransitionComponent:y=Fh}=t,b=(0,Do.A)(t,sm),x=e.useRef(null),w=(0,Lp.A)(x,s.ref,n),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=E(p),A=E(((e,t)=>{$h(e);const n=zh({style:v,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("transform",n),e.style.transition=r.transitions.create("transform",n),u&&u(e,t)})),k=E(d),C=E(m),T=E((e=>{const t=zh({style:v,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("transform",t),e.style.transition=r.transitions.create("transform",t),f&&f(e)})),O=E(h);return(0,Po.jsx)(y,(0,Lo.A)({appear:i,in:c,nodeRef:x,onEnter:A,onEntered:k,onEntering:S,onExit:T,onExited:O,onExiting:C,addEndListener:e=>{a&&a(x.current,e)},timeout:g},b,{children:(t,n)=>e.cloneElement(s,(0,Lo.A)({style:(0,Lo.A)({transform:"scale(0)",visibility:"exited"!==t||c?void 0:"hidden"},lm[t],v,s.props.style),ref:w},n))}))})),um=t=>{const n=e.useRef({});return e.useEffect((()=>{n.current=t})),n.current};var dm=o(8413);function pm(e,t,n){return void 0===e||Ef(e)?t:(0,Fo.A)({},t,{ownerState:(0,Fo.A)({},t.ownerState,n)})}function fm(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function hm(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const mm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vm(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=(0,Wo.A)(e,mm),s=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,Ip.A)(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=(0,Fo.A)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=(0,Fo.A)({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=fm((0,Fo.A)({},o,r)),s=hm(r),l=hm(o),c=t(i),u=(0,Ip.A)(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=(0,Fo.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=(0,Fo.A)({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}((0,Fo.A)({},i,{externalSlotProps:s})),u=(0,dm.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return pm(n,(0,Fo.A)({},l,{ref:u}),o)}function gm(e){return(0,cf.Ay)("MuiBadge",e)}const ym=(0,Qp.A)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),bm=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],xm=(0,_p.Ay)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),wm=(0,_p.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,mf.A)(n.anchorOrigin.vertical)}${(0,mf.A)(n.anchorOrigin.horizontal)}${(0,mf.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,mf.A)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,Lo.A)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ym.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Em=e.forwardRef((function(e,t){var n,r,o,a,i,s;const l=(0,Mp.A)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:v="default",invisible:g=!1,max:y=99,badgeContent:b,slots:x,slotProps:w,showZero:E=!1,variant:S="standard"}=l,A=(0,Do.A)(l,bm),{badgeContent:k,invisible:C,max:T,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=um({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:s,max:l=r}=i?a:e;return{badgeContent:s,invisible:i,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:y,invisible:g,badgeContent:b,showZero:E}),R=um({anchorOrigin:c,color:v,overlap:m,variant:S,badgeContent:b}),_=C||null==k&&"dot"!==S,{color:I=v,overlap:P=m,anchorOrigin:N=c,variant:M=S}=_?R:l,L="dot"!==M?O:void 0,D=(0,Lo.A)({},l,{badgeContent:k,invisible:_,max:T,displayValue:L,showZero:E,anchorOrigin:N,color:I,overlap:P,variant:M}),F=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${(0,mf.A)(n.vertical)}${(0,mf.A)(n.horizontal)}`,`anchorOrigin${(0,mf.A)(n.vertical)}${(0,mf.A)(n.horizontal)}${(0,mf.A)(o)}`,`overlap${(0,mf.A)(o)}`,"default"!==t&&`color${(0,mf.A)(t)}`]};return(0,Pp.A)(s,gm,i)})(D),j=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:xm,$=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:wm,z=null!=(i=null==w?void 0:w.root)?i:f.root,B=null!=(s=null==w?void 0:w.badge)?s:f.badge,V=vm({elementType:j,externalSlotProps:z,externalForwardedProps:A,additionalProps:{ref:t,as:d},ownerState:D,className:(0,Ip.A)(null==z?void 0:z.className,F.root,u)}),W=vm({elementType:$,externalSlotProps:B,ownerState:D,className:(0,Ip.A)(F.badge,null==B?void 0:B.className)});return(0,Po.jsxs)(j,(0,Lo.A)({},V,{children:[h,(0,Po.jsx)($,(0,Lo.A)({},W,{children:L}))]}))}));var Sm=function(e,t){return function(n){return function(){br(n,e),t(nn(!e)),e&&t({type:nt.RESET_CONFIG_OVERRIDES})}}};const Am=D(Le((function(e){return{chatbotUi:e.chatbotUi}})))((function(t){var n=t.chatbotUi,r=t.children,o=t.dispatch,a=(0,e.useCallback)(Sm(n.open,o),[o,n.open]),i=(0,e.useCallback)(Sm(!0,o),[o]);return e.createElement(e.Fragment,null,r(a,{close:i}))})),km=(0,sh.A)((0,Po.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"}),"CloudOff");var Cm=(0,_p.Ay)("div")((function(){return{"@keyframes pulse":{"0%":{transform:"scale(0.1)",opacity:0},"50%":{opacity:1},"100%":{transform:"scale(1.2)",opacity:1}}}}));const Tm=function(t){var n=t.iconClassName,r={animation:pe((function(e){return e.messages.liveChatUiConnected}))?void 0:"$pulse 2s infinite"};return e.createElement(Cm,null,e.createElement(km,{className:n,sx:r}))};var Om=()=>new Proxy(Object.assign((()=>""),{}),{get:(e,t)=>"length"===t?0:Om()}),Rm=/^\{.*\}$/,_m=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,Im=e=>e.substring(1,e.length-1),Pm=(e,t=!0,n="",r="")=>e.split(_m).map((e=>{if(!e.match(_m))return e;const t=Im(e);if(t.startsWith("{"))return((e,t)=>{let[n,r]=e.split(":");r||(r=n,n=t);const o=r.split("|"),[a,i,s,l,c,u]=o,d=o.filter((e=>void 0!==e)).length;return 1===d?{k:n,r:a}:2===d?{k:n,o:a,r:i}:3===d?{k:n,z:a,o:i,r:s}:{k:n,z:a,o:i,t:s,f:l,m:c,r:u}})(Im(t),r);const o=(e=>{const[t="",...n]=e.split("|"),[r="",o]=t.split(":"),[a,i]=r.split("?");return{k:a,i:o,n:""===i,f:n}})(t);return r=o.k||r,!n&&(n=r),o})).map((e=>{if("string"==typeof e)return e;e.k||(e.k=n||"0");const r=(e=>Object.fromEntries(Object.keys(e).map((t=>{const n=e[t];return[t,Array.isArray(n)?n.map((e=>e?.trim())):n===!!n?n:n?.trim()]}))))(e);return t?(o=r,Object.fromEntries(Object.entries(o).map((([e,t])=>"i"!==e&&t&&"0"!=t&&[e,t])).filter(Boolean))):r;var o})),Nm=(e,t,n)=>t.reduce(((t,n)=>{return(n.match(Rm)?(o=n,(r=Object.fromEntries(Im(o).split(",").map((e=>e.split(":"))).reduce(((e,t)=>2===t.length?[...e,t.map((e=>e.trim()))]:(e[e.length-1][1]+=","+t[0],e)),[])))[t]??r["*"]):e[n]?.(t))??t;var r,o}),n),Mm=/\?\?/g,Lm=(e,t,n,r)=>{const o=r[0],a=o&&"object"==typeof o&&o.constructor===Object;return((e,t,n,r)=>e.map((e=>{if("string"==typeof e)return e;const{k:o="0",f:a=[]}=e,i=r[o];return(e=>!(!e.o&&!e.r))(e)?(("boolean"==typeof i?i?e.o:e.r:((e,{z:t,o:n,t:r,f:o,m:a,r:i},s)=>{switch(t&&0==s?"zero":e.select(s)){case"zero":return t;case"one":return n;case"two":return r;case"few":return o??i;case"many":return a??i;default:return i}})(t,e,i))||"").replace(Mm,i):(""+((a.length?Nm(n,a,i):i)??"")).trim()})).join(""))(e,t,n,1===r.length&&a?o:r)},Dm=(e,t)=>{const n={},r=new Intl.PluralRules(e);return(e,...o)=>Lm(((e,t)=>e[t]||(e[t]=Pm(t)))(n,e),r,t,o)};function Fm(e,t,n={}){return $m(t,Dm(e,n))}var jm=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty((()=>""),"name",{writable:!0}),e),$m=(e,t)=>new Proxy(jm(e,t),{get:(e,n)=>n===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map((e=>jm(e,t)))):$m(e[n],t)}),zm=e,Bm=((e,t={})=>{const n=zm.createContext({});return{component:r=>{const[o,a]=zm.useState(r.locale),[i,s]=zm.useState((()=>o?Fm(o,e[o],t[o]):Om())),l=zm.useCallback((n=>{a(n),s((()=>Fm(n,e[n],t[n])))}),[]),c=zm.useMemo((()=>({setLocale:l,locale:o,LL:i})),[l,o,i]);return zm.createElement(n.Provider,{value:c},r.children)},context:n}})(Cn,Tn),Vm=Bm.component,Wm=Bm.context,Um=function(){return(0,e.useContext)(Wm)};const qm=Vm;var Hm=function(e,t){var n=ar(e,t);return{"&:focus-visible":{border:"none",outline:"1px white solid;",boxShadow:"0px 0px 0px 4px ".concat(n)}}},Gm=function(){return Gm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gm.apply(this,arguments)},Qm=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Km=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ym=function(e,t){return e?e.launch_button_text?e.launch_button_text:t.DEFAULT_LAUNCHER({bot:e.name}):""},Xm="Fab",Jm={avatar:"".concat(Xm,"-avatar"),button:"".concat(Xm,"-button"),buttonCollapsed:"".concat(Xm,"-buttonCollapsed"),buttonContent:"".concat(Xm,"-buttonContent"),text:"".concat(Xm,"-text"),textCollapsed:"".concat(Xm,"-textCollapsed"),textExpanded:"".concat(Xm,"-textExpanded"),zoomContainer:"".concat(Xm,"-zoomContainer"),unread:"".concat(Xm,"-unread"),disconnectedIcon:"".concat(Xm,"-disconnectedIcon")},Zm=(0,_p.Ay)("div")((function(e){var t,n=e.theme;return(t={})["& .".concat(Jm.avatar)]={height:"24px",width:"24px"},t["& .".concat(Jm.button)]=Gm({height:"auto",margin:n.spacing(1)},Hm(n.palette.secondary.main,Km(Km([n.palette.link],Qm(Object.values(n.palette.primary)),!1),Qm(Object.values(n.palette.secondary)),!1))),t["& .".concat(Jm.buttonCollapsed)]={padding:0},t["& .".concat(Jm.buttonContent)]={alignItems:"center",display:"flex",padding:n.spacing(1.5,0)},t["& .".concat(Jm.text)]={overflow:"hidden"},t["& .".concat(Jm.textCollapsed)]={display:"none"},t["& .".concat(Jm.textExpanded)]={margin:n.spacing(0,1),maxWidth:function(e){var t=e.config,n=e.LL;return 13*Ym(t,n).length}},t["& .".concat(Jm.zoomContainer)]={display:"inline-block"},t["& .".concat(Jm.unread)]={top:n.spacing(1.5),right:n.spacing(1.5),zIndex:1051},t["& .".concat(Jm.disconnectedIcon)]={fontSize:"14px"},t}));function ev(t){var n=t.config,r=t.root,o=t.showAvatar,a=void 0!==o&&o,i=t.showText,s=void 0===i||i,l=t.toggle,c=t.autoFocus,u=void 0!==c&&c,d=Um().LL,p=document.querySelector("h1")?3:1,f=Ym(n,d),h=s?f:"Click to open ".concat(null==n?void 0:n.name,", an interactive chatbot here to answer your questions."),m=(0,e.useRef)(null);return(0,e.useEffect)((function(){u&&(null==m?void 0:m.current)&&setTimeout((function(){m.current&&m.current.focus()}),500)}),[u]),e.createElement(im,{"aria-label":h,className:"".concat(Jm.button," ").concat(s?"":Jm.buttonCollapsed),color:"secondary",onClick:l(r),role:"button",tabIndex:0,variant:"extended",ref:m,id:"launchChatbot"},e.createElement("div",{className:Jm.buttonContent},a?e.createElement(hh,{alt:null==n?void 0:n.name,"aria-hidden":"true",classes:{root:Jm.avatar},src:null==n?void 0:n.avatar}):e.createElement(tm,null),e.createElement(Xf,{variant:"button",color:"inherit",role:"heading","aria-level":p,className:"".concat(Jm.text," ").concat(s?Jm.textExpanded:Jm.textCollapsed)},f)))}function tv(t){var n=t.unread,r=pe((function(e){return!e.messages.liveChatUiConnected})),o=r||n>0;return e.createElement(Am,null,(function(a){return e.createElement(cm,{in:!0,timeout:750},e.createElement(Zm,{className:Jm.zoomContainer},o?e.createElement(Em,{classes:{badge:Jm.unread},color:"primary",badgeContent:r?e.createElement(Tm,{iconClassName:Jm.disconnectedIcon}):n},e.createElement(ev,Gm({toggle:a},t))):e.createElement(ev,Gm({toggle:a},t))))}))}const nv=function(t){return e.createElement(Op.Consumer,null,(function(n){return e.createElement(tv,Gm({config:n.config},t))}))},rv="Callout",ov={listRoot:`${rv}-listRoot`,listText:`${rv}-listText`,calloutHeading:`${rv}-calloutHeading`,container:`${rv}-container`,toolbar:`${rv}-toolbar`,labelGrow:`${rv}-labelGrow`,launcher:`${rv}-launcher`,leftIcon:`${rv}-leftIcon`,speechBubble:`${rv}-speechBubble`,speechBubbleLeft:`${rv}-speechBubbleLeft`,speechBubbleRight:`${rv}-speechBubbleRight`,closeButtonX:`${rv}-closeButtonX`},av=(0,_p.Ay)("div")((({theme:e})=>({[`& .${ov.listRoot}`]:{alignItems:"flex-start",margin:0,paddingTop:e.spacing(2.5),paddingBottom:e.spacing(2.5)},[`& .${ov.listText}`]:{margin:0,color:e.palette.text.primary},[`& .${ov.calloutHeading}`]:{flex:1,lineHeight:"40px",padding:e.spacing(0,1)},[`& .${ov.container}`]:{borderRadius:e.spacing(2,2,0,0)},[`& .${ov.toolbar}`]:{padding:e.spacing(0,1.5)},[`& .${ov.labelGrow}`]:{transitionDelay:"1s",transitionDuration:"350ms",transitionProperty:"marginRight",transitionTimingFunction:"cubic-bezier(1, 0.07, 0.58, 1)"},[`& .${ov.launcher}`]:{position:"fixed",zIndex:1299,maxWidth:"75%"},[`& .${ov.leftIcon}`]:{marginRight:e.spacing(1)},[`& .${ov.speechBubble}`]:{backgroundColor:"#fff",borderRadius:e.spacing(2),boxShadow:"0px 0px 20px 0px rgba(0,0,0,0.3)",display:"inline-block",maxWidth:320,cursor:"pointer",position:"relative",...Hm(e.palette.primary.main,[e.palette.link,...Object.values(e.palette.primary),...Object.values(e.palette.secondary)])},[`& .${ov.speechBubbleLeft}`]:{marginLeft:e.spacing(2),"&::after":{background:"radial-gradient(circle at bottom right, transparent 58%, #fff 60%)",bottom:e.spacing(3),content:'""',height:e.spacing(3),position:"absolute",left:-22,transform:"rotate(180deg)",width:e.spacing(4)}},[`& .${ov.speechBubbleRight}`]:{marginRight:e.spacing(1.5),"&::after":{background:"radial-gradient(circle at top right, transparent 58%, #fff 60%)",bottom:e.spacing(3),content:'""',height:e.spacing(3),position:"absolute",right:-24,width:e.spacing(4)}}})));function iv({children:t}){return e.createElement(em,{sx:{position:"relative"}},t)}function sv({position:t,onClose:n,root:r,toggle:o,autoFocus:a}){const{config:i}=(0,e.useContext)(Op),s=(0,e.useRef)(null);(0,e.useEffect)((()=>{a&&s.current&&setTimeout((()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.focus()}),500)}),[a]);const l="left"===t?ov.speechBubbleLeft:ov.speechBubbleRight;return e.createElement(iv,null,e.createElement(Hh,{in:!0,timeout:1200},e.createElement(av,null,e.createElement(lv,{toggle:o,root:r,positionClass:l,buttonRef:s,config:i}),e.createElement(cv,{position:t,onClose:n}))))}function lv({toggle:t,root:n,positionClass:r,buttonRef:o,config:a}){const i=document.querySelector("h1")?3:1;return e.createElement("span",{role:"button","aria-labelledby":"bubbleCalloutHeading bubbleCalloutBody",tabIndex:0,onClick:t(n),onKeyUp:e=>{"Space"!==e.code&&"Enter"!==e.code||(t(n)(),e.preventDefault())},onKeyDown:e=>{"Space"===e.code&&e.preventDefault()},className:`${ov.speechBubble} ${r}`,ref:o,"data-testid":"bubble-button"},e.createElement(Ah,{component:"div",position:"relative",className:ov.container},e.createElement(Oh,{className:ov.toolbar},e.createElement(Xf,{id:"bubbleCalloutHeading",className:ov.calloutHeading,variant:"h6",component:"div",color:"inherit",role:"heading","aria-level":i},a.callout_heading))),e.createElement(zf,{classes:{root:ov.listRoot},component:"div"},e.createElement(ih,null,e.createElement(hh,{src:a.avatar,alt:a.name,"aria-hidden":"true"})),e.createElement(nh,{primaryTypographyProps:{id:"bubbleCalloutBody"},classes:{root:ov.listText},primary:a.callout_body})))}function cv({position:t,onClose:n}){const r=jh();return e.createElement(xf,{sx:{color:r.palette.primary.contrastText,position:"absolute",right:"left"===t?"0.5rem":"1rem",top:"5%"},onClick:n,"aria-label":"Collapse the chatbot",role:"button",onKeyDown:e=>{"Space"!==e.code&&"Enter"!==e.code||(n(e),e.preventDefault())},size:"large"},e.createElement(wf.A,null))}function uv({onClose:t,options:n,root:r,showHelpChat:o,mobile:a,unread:i,autoFocus:s}){return e.createElement(Am,null,(l=>e.createElement(e.Fragment,null,o&&n.launcherStyles.right&&e.createElement(sv,{classes:ov,position:"right",onClose:t,root:r,toggle:l,autoFocus:s}),e.createElement(nv,{root:r,showText:!a&&!o,unread:i}),o&&n.launcherStyles.left&&e.createElement(sv,{classes:ov,position:"left",onClose:t,root:r,toggle:l}))))}sv.propTypes={position:In().string.isRequired,onClose:In().func.isRequired,root:In().any.isRequired,toggle:In().func.isRequired,autoFocus:In().bool.isRequired},uv.propTypes={mobile:In().bool,onClose:In().func.isRequired,options:In().object.isRequired,root:In().any.isRequired,showHelpChat:In().bool.isRequired,unread:In().number.isRequired,autoFocus:In().bool},uv.defaultProps={mobile:!1,autoFocus:!1},iv.propTypes={children:In().node.isRequired},lv.propTypes={toggle:In().func.isRequired,root:In().object.isRequired,positionClass:In().string.isRequired,buttonRef:In().object.isRequired,config:In().object.isRequired},cv.propTypes={position:In().string.isRequired,onClose:In().func.isRequired};const dv=uv,pv=(e,t,n)=>Math.min(Math.max(e,t),n);class fv extends e.Component{constructor(e){super(e),this.initialize=()=>{const{launcherRef:e}=this.props;e.current?(this.handleScroll(),window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleScroll)):setTimeout(this.initialize,20)},this.handleScroll=()=>{const{align:e,launcherRef:t,absMargin:n}=this.props;if(!t.current)return;const r=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=2*o,i=window.pageYOffset,s=this.getPxIntFromMeasure(n),l=(e=>{const t=Math.max(e.offsetWidth,e.clientWidth,e.scrollWidth),n=Math.max(e.offsetHeight,e.clientHeight,e.scrollHeight);let r=0,o=0;do{r+=e.offsetTop||0,o+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:r,left:o,width:t,height:n}})(t.current);let c;if("top"===e&&(c=o-l.height-s,i+2*s+l.height<o&&(c=i+s)),"bottom"===e){const e=pv(i/(r-o),0,1),t=r>a?i+a-l.height-s-r:Math.floor(e*o)-l.height-s;c=pv(t,s,o-l.height-s)}this.targetPos=Math.floor(c),this.ticking||window.requestAnimationFrame(this.adjustRefPosition)},this.adjustRefPosition=()=>{this.ticking=!0;const{launcherRef:e,absMargin:t,align:n}=this.props;if(this.initializing&&e.current)return this.currentPos=this.getPxIntFromMeasure(t),"top"===n&&(e.current.style.bottom=`${this.getPxIntFromMeasure(t)}px`,e.current.style.top="auto"),this.initializing=!1,void(this.ticking=!1);if(this.targetPos!==this.currentPos&&e.current){const t=25,n=10,r=this.currentPos-this.targetPos,o=Math.min(t,Math.ceil(Math.abs(r/n))),a=r>0?this.currentPos-o:this.currentPos+o;e.current.style.bottom=`${a}px`,this.currentPos=a,window.requestAnimationFrame(this.adjustRefPosition)}else this.ticking=!1},this.getPxIntFromMeasure=e=>{const t=e.replace(/[0-9-]/g,""),n=(r=e,Number.parseInt(r.replace(/[^0-9-]/g,""),10));var r;if("px"===t)return n;if("%"===t)return Math.round(this.getViewportHeightInPx()*(n/100));if("em"===t||"rem"===t){const e=window.getComputedStyle(document.documentElement)["font-size"];return n*this.getSctrippedInt(e)}return n},this.props=e,this.ticking=!1,this.currentPos=null,this.targetPos=null,this.initializing=!0}componentDidMount(){this.initialize()}componentWillUnmount(){const{align:e,launcherRef:t,absMargin:n}=this.props;window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleScroll),"top"===e&&t.current&&(t.current.style.top=n)}render(){return null}}fv.propTypes={absMargin:In().string.isRequired,align:In().string.isRequired,launcherRef:In().object},fv.defaultProps={launcherRef:null};const hv=fv;function mv(){return mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mv.apply(this,arguments)}const vv=e=>()=>{const t={transform:"translateZ(0)"},{top:n,...r}=e.launcherStyles;return n?{...t,...r,bottom:n}:{...t,...e.launcherStyles}},gv={launcher:"ChatbotLauncher-launcher"},yv=(0,_p.Ay)("div")((()=>({[`&.${gv.launcher}`]:{alignItems:"flex-end",display:"flex",position:"fixed",zIndex:1e6,maxWidth:"85%"}}))),bv=e.forwardRef(((t,n)=>{const{adaptLauncherStylesForTopScroll:r,updateCalloutBubbleStatus:o,options:a,root:i,userPrefs:s,browser:l,messages:c,autoFocus:u}=t;return e.createElement(yv,{className:gv.launcher,ref:n,style:a.topScroll?r():a.launcherStyles},((t,n,r,o,a,i,s)=>"calloutBubble"===r.buttonStyle?e.createElement(dv,{onClose:e=>{n(!1),e.stopPropagation()},options:r,root:t,showHelpChat:o.calloutBubbleOpen,mobile:a.lessThan.medium,unread:i.unread,autoFocus:s}):e.createElement(nv,{showText:!a.lessThan.medium,root:t,showAvatar:1===r.includeAvatar,unread:i.unread,autoFocus:s}))(i,o,a,s,l,c,u))}));bv.displayName="ChatbotLauncher",bv.propTypes={adaptLauncherStylesForTopScroll:In().func.isRequired,browser:In().object.isRequired,messages:In().object.isRequired,options:In().object,updateCalloutBubbleStatus:In().func.isRequired,root:In().any.isRequired,userPrefs:In().object.isRequired,autoFocus:In().bool},bv.defaultProps={options:Rp({}),autoFocus:!1};const xv=D((t=>{const n=e.createRef();function r(r){const{options:o}=r,a=o.launcherStyles.top?"top":"bottom";return e.createElement(e.Fragment,null,e.createElement(t,mv({ref:n,adaptLauncherStylesForTopScroll:vv(o)},r)),1===o.topScroll&&e.createElement(hv,{launcherRef:n,absMargin:o.launcherStyles[a],align:a}))}return r.displayName=`Roaming(${null==t?void 0:t.displayName})`,r.propTypes={options:In().object.isRequired},r}),Le((e=>({browser:e.browser,userPrefs:e.userPrefs,messages:e.messages})),{updateCalloutBubbleStatus:function(e){return{type:Ft.UPDATE_CALLOUT_BUBBLE_STATUS,open:e}}},null,{forwardRef:!0}))(bv);var wv,Ev,Sv;function Av(e){var t;switch(e){case wv.Query:t="Query";break;case wv.Mutation:t="Mutation";break;case wv.Subscription:t="Subscription"}return t}function kv(e){Sv||(Sv=new zi(Wi.parser||1e3));var t,n,r=Sv.get(e);if(r)return r;Za(!!e&&!!e.kind,59,e);for(var o=[],a=[],i=[],s=[],l=0,c=e.definitions;l<c.length;l++){var u=c[l];if("FragmentDefinition"!==u.kind){if("OperationDefinition"===u.kind)switch(u.operation){case"query":a.push(u);break;case"mutation":i.push(u);break;case"subscription":s.push(u)}}else o.push(u)}Za(!o.length||a.length||i.length||s.length,60),Za(a.length+i.length+s.length<=1,61,e,a.length,s.length,i.length),n=a.length?wv.Query:wv.Mutation,a.length||i.length||(n=wv.Subscription);var d=a.length?a:i.length?i:s;Za(1===d.length,62,e,d.length);var p=d[0];t=p.variableDefinitions||[];var f={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:n,variables:t};return Sv.set(e,f),f}function Cv(e,t){var n=kv(e),r=Av(t),o=Av(n.type);Za(n.type===t,63,r,r,o)}function Tv(e){var t=Xd.useContext(Zd()),n=e||t.client;return Za(!!n,49),n}function Ov(e,t){var n=Tv(null==t?void 0:t.client);Cv(e,wv.Mutation);var r=Xd.useState({called:!1,loading:!1,client:n}),o=r[0],a=r[1],i=Xd.useRef({result:o,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(i.current,{client:n,options:t,mutation:e});var s=Xd.useCallback((function(e){void 0===e&&(e={});var t=i.current,n=t.options,r=t.mutation,o=_a(_a({},n),{mutation:r}),s=e.client||i.current.client;i.current.result.loading||o.ignoreResults||!i.current.isMounted||a(i.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var l=++i.current.mutationId,c=Qd(o,e);return s.mutate(c).then((function(t){var n,r,o=t.data,u=t.errors,d=u&&u.length>0?new tl({graphQLErrors:u}):void 0,p=e.onError||(null===(n=i.current.options)||void 0===n?void 0:n.onError);if(d&&p&&p(d,c),l===i.current.mutationId&&!c.ignoreResults){var f={called:!0,loading:!1,data:o,error:d,client:s};i.current.isMounted&&!Wc(i.current.result,f)&&a(i.current.result=f)}var h=e.onCompleted||(null===(r=i.current.options)||void 0===r?void 0:r.onCompleted);return d||null==h||h(t.data,c),t})).catch((function(t){var n;if(l===i.current.mutationId&&i.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:s};Wc(i.current.result,r)||a(i.current.result=r)}var o=e.onError||(null===(n=i.current.options)||void 0===n?void 0:n.onError);if(o)return o(t,c),{data:void 0,errors:t};throw t}))}),[]),l=Xd.useCallback((function(){if(i.current.isMounted){var e={called:!1,loading:!1,client:n};Object.assign(i.current,{mutationId:0,result:e}),a(e)}}),[]);return Xd.useEffect((function(){return i.current.isMounted=!0,function(){i.current.isMounted=!1}}),[]),[s,_a({reset:l},o)]}function Rv(e,t){var n=Xd.useRef(!1),r=Tv(null==t?void 0:t.client);Cv(e,wv.Subscription);var o=Xd.useState({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),a=o[0],i=o[1];n.current||(n.current=!0,(null==t?void 0:t.onSubscriptionData)&&!1!==globalThis.__DEV__&&Za.warn(t.onData?52:53),(null==t?void 0:t.onSubscriptionComplete)&&!1!==globalThis.__DEV__&&Za.warn(t.onComplete?54:55));var s=Xd.useState((function(){return(null==t?void 0:t.skip)?null:r.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})})),l=s[0],c=s[1],u=Xd.useRef(!1);Xd.useEffect((function(){return function(){u.current=!0}}),[]);var d=Xd.useRef({client:r,subscription:e,options:t});return Xd.useEffect((function(){var n,o,a,s,l=null==t?void 0:t.shouldResubscribe;"function"==typeof l&&(l=!!l(t)),(null==t?void 0:t.skip)?(!(null==t?void 0:t.skip)!=!(null===(n=d.current.options)||void 0===n?void 0:n.skip)||u.current)&&(i({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),c(null),u.current=!1):(!1===l||r===d.current.client&&e===d.current.subscription&&(null==t?void 0:t.fetchPolicy)===(null===(o=d.current.options)||void 0===o?void 0:o.fetchPolicy)&&!(null==t?void 0:t.skip)==!(null===(a=d.current.options)||void 0===a?void 0:a.skip)&&Wc(null==t?void 0:t.variables,null===(s=d.current.options)||void 0===s?void 0:s.variables))&&!u.current||(i({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),c(r.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})),u.current=!1),Object.assign(d.current,{client:r,subscription:e,options:t})}),[r,e,t,u.current]),Xd.useEffect((function(){if(l){var e=!1,n=l.subscribe({next:function(n){var o,a;if(!e){var s={loading:!1,data:n.data,error:void 0,variables:null==t?void 0:t.variables};i(s),(null===(o=d.current.options)||void 0===o?void 0:o.onData)?d.current.options.onData({client:r,data:s}):(null===(a=d.current.options)||void 0===a?void 0:a.onSubscriptionData)&&d.current.options.onSubscriptionData({client:r,subscriptionData:s})}},error:function(n){var r,o;e||(i({loading:!1,data:void 0,error:n,variables:null==t?void 0:t.variables}),null===(o=null===(r=d.current.options)||void 0===r?void 0:r.onError)||void 0===o||o.call(r,n))},complete:function(){var t,n;e||((null===(t=d.current.options)||void 0===t?void 0:t.onComplete)?d.current.options.onComplete():(null===(n=d.current.options)||void 0===n?void 0:n.onSubscriptionComplete)&&d.current.options.onSubscriptionComplete())}});return function(){e=!0,setTimeout((function(){n.unsubscribe()}))}}}),[l]),a}(Ev=wv||(wv={}))[Ev.Query=0]="Query",Ev[Ev.Mutation=1]="Mutation",Ev[Ev.Subscription=2]="Subscription",kv.resetCache=function(){Sv=void 0},!1!==globalThis.__DEV__&&qi("parser",(function(){return Sv?Sv.size:0}));var _v=function(){return _v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_v.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Iv(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const Pv=/\r\n|[\n\r]/g;function Nv(e,t){let n=0,r=1;for(const o of e.body.matchAll(Pv)){if("number"==typeof o.index||Iv(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function Mv(e){return Lv(e.source,Nv(e.source,e.start))}function Lv(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,a=e.locationOffset.line-1,i=t.line+a,s=1===t.line?n:0,l=t.column+s,c=`${e.name}:${i}:${l}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return c+Dv([[`${i} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+Dv([[i-1+" |",u[o-1]],[`${i} |`,d],["|","^".padStart(l)],[`${i+1} |`,u[o+1]]])}function Dv(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class Fv extends Error{constructor(e,...t){var n,r,o;const{nodes:a,source:i,positions:s,path:l,originalError:c,extensions:u}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=c?c:void 0,this.nodes=jv(Array.isArray(a)?a:a?[a]:void 0);const d=jv(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=i?i:null==d||null===(r=d[0])||void 0===r?void 0:r.source,this.positions=null!=s?s:null==d?void 0:d.map((e=>e.start)),this.locations=s&&i?s.map((e=>Nv(i,e))):null==d?void 0:d.map((e=>Nv(e.source,e.start)));const p="object"==typeof(f=null==c?void 0:c.extensions)&&null!==f?null==c?void 0:c.extensions:void 0;var f;this.extensions=null!==(o=null!=u?u:p)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Fv):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Mv(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Lv(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function jv(e){return void 0===e||0===e.length?void 0:e}function $v(e,t,n){return new Fv(`Syntax Error: ${n}`,{source:e,positions:[t]})}var zv,Bv,Vv;(Bv=zv||(zv={})).QUERY="QUERY",Bv.MUTATION="MUTATION",Bv.SUBSCRIPTION="SUBSCRIPTION",Bv.FIELD="FIELD",Bv.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",Bv.FRAGMENT_SPREAD="FRAGMENT_SPREAD",Bv.INLINE_FRAGMENT="INLINE_FRAGMENT",Bv.VARIABLE_DEFINITION="VARIABLE_DEFINITION",Bv.SCHEMA="SCHEMA",Bv.SCALAR="SCALAR",Bv.OBJECT="OBJECT",Bv.FIELD_DEFINITION="FIELD_DEFINITION",Bv.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",Bv.INTERFACE="INTERFACE",Bv.UNION="UNION",Bv.ENUM="ENUM",Bv.ENUM_VALUE="ENUM_VALUE",Bv.INPUT_OBJECT="INPUT_OBJECT",Bv.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(Vv||(Vv={}));class Wv{constructor(e){const t=new Ps(Vv.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==Vv.EOF)do{if(e.next)e=e.next;else{const t=Yv(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Vv.COMMENT);return e}}function Uv(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function qv(e,t){return Hv(e.charCodeAt(t))&&Gv(e.charCodeAt(t+1))}function Hv(e){return e>=55296&&e<=56319}function Gv(e){return e>=56320&&e<=57343}function Qv(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return Vv.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Kv(e,t,n,r,o){const a=e.line,i=1+n-e.lineStart;return new Ps(t,n,r,a,i,o)}function Yv(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return Xv(e,o);case 33:return Kv(e,Vv.BANG,o,o+1);case 36:return Kv(e,Vv.DOLLAR,o,o+1);case 38:return Kv(e,Vv.AMP,o,o+1);case 40:return Kv(e,Vv.PAREN_L,o,o+1);case 41:return Kv(e,Vv.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return Kv(e,Vv.SPREAD,o,o+3);break;case 58:return Kv(e,Vv.COLON,o,o+1);case 61:return Kv(e,Vv.EQUALS,o,o+1);case 64:return Kv(e,Vv.AT,o,o+1);case 91:return Kv(e,Vv.BRACKET_L,o,o+1);case 93:return Kv(e,Vv.BRACKET_R,o,o+1);case 123:return Kv(e,Vv.BRACE_L,o,o+1);case 124:return Kv(e,Vv.PIPE,o,o+1);case 125:return Kv(e,Vv.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?ig(e,o):eg(e,o)}if(vl(t)||45===t)return Jv(e,o,t);if(yl(t))return sg(e,o);throw $v(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Uv(t)||qv(n,o)?`Unexpected character: ${Qv(e,o)}.`:`Invalid character: ${Qv(e,o)}.`)}return Kv(e,Vv.EOF,r,r)}function Xv(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(10===e||13===e)break;if(Uv(e))++o;else{if(!qv(n,o))break;o+=2}}return Kv(e,Vv.COMMENT,t,o,n.slice(t+1,o))}function Jv(e,t,n){const r=e.source.body;let o=t,a=n,i=!1;if(45===a&&(a=r.charCodeAt(++o)),48===a){if(a=r.charCodeAt(++o),vl(a))throw $v(e.source,o,`Invalid number, unexpected digit after 0: ${Qv(e,o)}.`)}else o=Zv(e,o,a),a=r.charCodeAt(o);if(46===a&&(i=!0,a=r.charCodeAt(++o),o=Zv(e,o,a),a=r.charCodeAt(o)),69!==a&&101!==a||(i=!0,a=r.charCodeAt(++o),43!==a&&45!==a||(a=r.charCodeAt(++o)),o=Zv(e,o,a),a=r.charCodeAt(o)),46===a||yl(a))throw $v(e.source,o,`Invalid number, expected digit but got: ${Qv(e,o)}.`);return Kv(e,i?Vv.FLOAT:Vv.INT,t,o,r.slice(t,o))}function Zv(e,t,n){if(!vl(n))throw $v(e.source,t,`Invalid number, expected digit but got: ${Qv(e,t)}.`);const r=e.source.body;let o=t+1;for(;vl(r.charCodeAt(o));)++o;return o}function eg(e,t){const n=e.source.body,r=n.length;let o=t+1,a=o,i="";for(;o<r;){const r=n.charCodeAt(o);if(34===r)return i+=n.slice(a,o),Kv(e,Vv.STRING,t,o+1,i);if(92!==r){if(10===r||13===r)break;if(Uv(r))++o;else{if(!qv(n,o))throw $v(e.source,o,`Invalid character within String: ${Qv(e,o)}.`);o+=2}}else{i+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?tg(e,o):ng(e,o):ag(e,o);i+=t.value,o+=t.size,a=o}}throw $v(e.source,o,"Unterminated string.")}function tg(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!Uv(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|og(e),r<0)break}throw $v(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function ng(e,t){const n=e.source.body,r=rg(n,t+2);if(Uv(r))return{value:String.fromCodePoint(r),size:6};if(Hv(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=rg(n,t+8);if(Gv(e))return{value:String.fromCodePoint(r,e),size:12}}throw $v(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function rg(e,t){return og(e.charCodeAt(t))<<12|og(e.charCodeAt(t+1))<<8|og(e.charCodeAt(t+2))<<4|og(e.charCodeAt(t+3))}function og(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ag(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw $v(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function ig(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,a=t+3,i=a,s="";const l=[];for(;a<r;){const r=n.charCodeAt(a);if(34===r&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){s+=n.slice(i,a),l.push(s);const r=Kv(e,Vv.BLOCK_STRING,t,a+3,xl(l).join("\n"));return e.line+=l.length-1,e.lineStart=o,r}if(92!==r||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==r&&13!==r)if(Uv(r))++a;else{if(!qv(n,a))throw $v(e.source,a,`Invalid character within String: ${Qv(e,a)}.`);a+=2}else s+=n.slice(i,a),l.push(s),13===r&&10===n.charCodeAt(a+1)?a+=2:++a,s="",i=a,o=a;else s+=n.slice(i,a),i=a+1,a+=4}throw $v(e.source,a,"Unterminated string.")}function sg(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){if(!bl(n.charCodeAt(o)))break;++o}return Kv(e,Vv.NAME,t,o,n.slice(t,o))}const lg=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Rs(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class cg{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Cs(!1,`Body must be a string. Received: ${Rs(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Cs(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Cs(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ug{constructor(e,t={}){const n=function(e){return lg(e,cg)}(e)?e:new cg(e);this._lexer=new Wv(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(Vv.NAME);return this.node(e,{kind:js.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:js.DOCUMENT,definitions:this.many(Vv.SOF,this.parseDefinition,Vv.EOF)})}parseDefinition(){if(this.peek(Vv.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===Vv.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw $v(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Vv.BRACE_L))return this.node(e,{kind:js.OPERATION_DEFINITION,operation:Ds.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(Vv.NAME)&&(n=this.parseName()),this.node(e,{kind:js.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Vv.NAME);switch(e.value){case"query":return Ds.QUERY;case"mutation":return Ds.MUTATION;case"subscription":return Ds.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Vv.PAREN_L,this.parseVariableDefinition,Vv.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:js.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Vv.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Vv.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Vv.DOLLAR),this.node(e,{kind:js.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:js.SELECTION_SET,selections:this.many(Vv.BRACE_L,this.parseSelection,Vv.BRACE_R)})}parseSelection(){return this.peek(Vv.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(Vv.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:js.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Vv.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Vv.PAREN_L,t,Vv.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(Vv.COLON),this.node(t,{kind:js.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Vv.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(Vv.NAME)?this.node(e,{kind:js.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:js.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:js.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:js.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case Vv.BRACKET_L:return this.parseList(e);case Vv.BRACE_L:return this.parseObject(e);case Vv.INT:return this.advanceLexer(),this.node(t,{kind:js.INT,value:t.value});case Vv.FLOAT:return this.advanceLexer(),this.node(t,{kind:js.FLOAT,value:t.value});case Vv.STRING:case Vv.BLOCK_STRING:return this.parseStringLiteral();case Vv.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:js.BOOLEAN,value:!0});case"false":return this.node(t,{kind:js.BOOLEAN,value:!1});case"null":return this.node(t,{kind:js.NULL});default:return this.node(t,{kind:js.ENUM,value:t.value})}case Vv.DOLLAR:if(e){if(this.expectToken(Vv.DOLLAR),this._lexer.token.kind===Vv.NAME){const e=this._lexer.token.value;throw $v(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:js.STRING,value:e.value,block:e.kind===Vv.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:js.LIST,values:this.any(Vv.BRACKET_L,(()=>this.parseValueLiteral(e)),Vv.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:js.OBJECT,fields:this.any(Vv.BRACE_L,(()=>this.parseObjectField(e)),Vv.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(Vv.COLON),this.node(t,{kind:js.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Vv.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Vv.AT),this.node(t,{kind:js.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(Vv.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Vv.BRACKET_R),t=this.node(e,{kind:js.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(Vv.BANG)?this.node(e,{kind:js.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:js.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Vv.STRING)||this.peek(Vv.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(Vv.BRACE_L,this.parseOperationTypeDefinition,Vv.BRACE_R);return this.node(e,{kind:js.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Vv.COLON);const n=this.parseNamedType();return this.node(e,{kind:js.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:js.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:js.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Vv.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Vv.BRACE_L,this.parseFieldDefinition,Vv.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Vv.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:js.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(Vv.PAREN_L,this.parseInputValueDef,Vv.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Vv.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(Vv.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:js.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:js.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:js.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(Vv.EQUALS)?this.delimitedMany(Vv.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:js.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(Vv.BRACE_L,this.parseEnumValueDefinition,Vv.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:js.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw $v(this._lexer.source,this._lexer.token.start,`${dg(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:js.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(Vv.BRACE_L,this.parseInputValueDef,Vv.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Vv.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(Vv.BRACE_L,this.parseOperationTypeDefinition,Vv.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:js.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:js.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:js.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:js.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:js.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:js.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:js.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Vv.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:js.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(Vv.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(zv,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Is(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw $v(this._lexer.source,t.start,`Expected ${pg(e)}, found ${dg(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Vv.NAME||t.value!==e)throw $v(this._lexer.source,t.start,`Expected "${e}", found ${dg(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Vv.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return $v(this._lexer.source,t.start,`Unexpected ${dg(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==Vv.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw $v(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function dg(e){const t=e.value;return pg(e.kind)+(null!=t?` "${t}"`:"")}function pg(e){return function(e){return e===Vv.BANG||e===Vv.DOLLAR||e===Vv.AMP||e===Vv.PAREN_L||e===Vv.PAREN_R||e===Vv.SPREAD||e===Vv.COLON||e===Vv.EQUALS||e===Vv.AT||e===Vv.BRACKET_L||e===Vv.BRACKET_R||e===Vv.BRACE_L||e===Vv.PIPE||e===Vv.BRACE_R}(e)?`"${e}"`:e}var fg=new Map,hg=new Map,mg=!0,vg=!1;function gg(e){return e.replace(/[\s,]+/g," ").trim()}function yg(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,o=gg((i=e.loc).source.body.substring(i.start,i.end)),a=hg.get(r);a&&!a.has(o)?mg&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||hg.set(r,a=new Set),a.add(o),t.has(o)||(t.add(o),n.push(e))}else n.push(e);var i})),_v(_v({},e),{definitions:n})}function bg(e){var t=gg(e);if(!fg.has(t)){var n=function(e,t){return new ug(e,t).parseDocument()}(e,{experimentalFragmentVariables:vg,allowLegacyFragmentVariables:vg});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");fg.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(yg(n)))}return fg.get(t)}function xg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),bg(r)}var wg,Eg=xg,Sg=function(){fg.clear(),hg.clear()},Ag=function(){mg=!1},kg=function(){vg=!0},Cg=function(){vg=!1};(wg=xg||(xg={})).gql=Eg,wg.resetCaches=Sg,wg.disableFragmentWarnings=Ag,wg.enableExperimentalFragmentVariables=kg,wg.disableExperimentalFragmentVariables=Cg,xg.default=xg;var Tg,Og,Rg,_g=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ig=xg(Tg||(Tg=_g(["\n  mutation SaveResponseFeedback($data: FeedbackInput!) {\n    saveResponseFeedback(data: $data) {\n      success\n    }\n  }\n"],["\n  mutation SaveResponseFeedback($data: FeedbackInput!) {\n    saveResponseFeedback(data: $data) {\n      success\n    }\n  }\n"]))),Pg=xg(Og||(Og=_g(["\n  mutation SaveResponseFeedbackComment($data: FeedbackCommentInput!) {\n    saveResponseFeedbackComment(data: $data) {\n      success\n    }\n  }\n"],["\n  mutation SaveResponseFeedbackComment($data: FeedbackCommentInput!) {\n    saveResponseFeedbackComment(data: $data) {\n      success\n    }\n  }\n"]))),Ng=xg(Rg||(Rg=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}(["\n  mutation TypingClient($conversationId: String!, $draftMessage: String!) {\n    typingClient(conversationId: $conversationId, draftMessage: $draftMessage) {\n      _id\n    }\n  }\n"],["\n  mutation TypingClient($conversationId: String!, $draftMessage: String!) {\n    typingClient(conversationId: $conversationId, draftMessage: $draftMessage) {\n      _id\n    }\n  }\n"]))),Mg=xg("\n    mutation AcknowledgeMessageReception($data: ConversationTurnAcknowledgment!) {\n        acknowledgeMessageReception(data: $data) {\n            status\n        }\n    }\n");const Lg=xg`
  subscription OnMessage($conversationId: String!) {
    onMessage(conversationId: $conversationId) {
      _id
      messageType
      message
      actions {
        type
        text {
          en
          es
        }
      }
      operatorAvatarUrl
      operatorName
      resources {
        nids
        nid
        type
        autoplay
        title {
          en
        }
        duration
        url
        snippet {
          en
          es
        }
        actionLabel
        contentType
      }
    }
  }
`;const Dg=xg(Fg||(Fg=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}(["\n  subscription ClientLiveChatConversationEvent($chatbotIds: [String!]!, $conversationId: String) {\n    onClientLiveChatConversationEvent(chatbotIds: $chatbotIds, conversationId: $conversationId) {\n      event\n      payload {\n        ... on StartTypingOperatorPayload {\n          conversationId\n        }\n        ... on StopTypingOperatorPayload {\n          conversationId\n        }\n        ... on ConversationClientNameChangedPayload {\n          conversationId\n          clientName\n        }\n        ... on PromptAuthLoginPayload {\n          conversationId\n          authUri\n          operatorAvatarUrl\n          operatorName\n          turnId\n          message\n          cancelPromptAuthLogin\n        }\n        ... on ConversationSupersededPayload {\n          conversationId\n          newConversation {\n            authUri\n            _id\n            last_turn\n            operatorId\n            operatorName\n            mode\n            audience {\n              campus\n              office\n            }\n            lastMessage\n            firstMessage {\n              _id\n              messageType\n              message\n              actions {\n                type\n                text {\n                  en\n                  es\n                }\n              }\n              operatorAvatarUrl\n              operatorName\n              resources {\n                nids\n                nid\n                type\n                autoplay\n                title {\n                  en\n                }\n                duration\n                url\n                snippet {\n                  en\n                  es\n                }\n                actionLabel\n                contentType\n              }\n            }\n          }\n          promptAuthLoginPayload {\n            conversationId\n            authUri\n            operatorAvatarUrl\n            operatorName\n            turnId\n            message\n            cancelPromptAuthLogin\n          }\n        }\n      }\n    }\n  }\n"],["\n  subscription ClientLiveChatConversationEvent($chatbotIds: [String!]!, $conversationId: String) {\n    onClientLiveChatConversationEvent(chatbotIds: $chatbotIds, conversationId: $conversationId) {\n      event\n      payload {\n        ... on StartTypingOperatorPayload {\n          conversationId\n        }\n        ... on StopTypingOperatorPayload {\n          conversationId\n        }\n        ... on ConversationClientNameChangedPayload {\n          conversationId\n          clientName\n        }\n        ... on PromptAuthLoginPayload {\n          conversationId\n          authUri\n          operatorAvatarUrl\n          operatorName\n          turnId\n          message\n          cancelPromptAuthLogin\n        }\n        ... on ConversationSupersededPayload {\n          conversationId\n          newConversation {\n            authUri\n            _id\n            last_turn\n            operatorId\n            operatorName\n            mode\n            audience {\n              campus\n              office\n            }\n            lastMessage\n            firstMessage {\n              _id\n              messageType\n              message\n              actions {\n                type\n                text {\n                  en\n                  es\n                }\n              }\n              operatorAvatarUrl\n              operatorName\n              resources {\n                nids\n                nid\n                type\n                autoplay\n                title {\n                  en\n                }\n                duration\n                url\n                snippet {\n                  en\n                  es\n                }\n                actionLabel\n                contentType\n              }\n            }\n          }\n          promptAuthLoginPayload {\n            conversationId\n            authUri\n            operatorAvatarUrl\n            operatorName\n            turnId\n            message\n            cancelPromptAuthLogin\n          }\n        }\n      }\n    }\n  }\n"])));var Fg,jg=function(){var t=ze(),n=(0,e.useContext)(Op).config;return{buildCallback:(0,e.useCallback)((function(e){switch(e.callbackType){case Mt.SendResponse:return function(){};case Mt.PromptAuthSsoRedirect:var r=e.authUri;return function(){Fr(r,n.context,t)};case Mt.DownloadTranscript:return function(){Rn(e.chatbotName)};case Mt.ConversationSuperseededOperator:var o=e.authUri,a=e.operatorName;return function(){t(Rr(a||"Unknown Operator")),o&&Fr(o,n.context,t)};case Mt.ConversationSuperseededOffice:var i=e.authUri,s=e.officeName;return function(){t(_r(s)),t(Ir()),i&&Fr(i,n.context,t)};case Mt.ConversationSuperseededReject:return function(){t(jr(n)),t(on({conversation_id:e.conversationId}))};default:return function(){}}}),[n,t])}},$g=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},zg=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Bg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Vg=function(){var t=Bg(Ov(Mg),1)[0],n=(0,e.useCallback)((function(e){return $g(void 0,void 0,void 0,(function(){return zg(this,(function(n){switch(n.label){case 0:return[4,t({variables:{data:e}})];case 1:return n.sent(),[2]}}))}))}),[t]);return{acknowledgeLiveChatMessage:n}},Wg=function(){var t=ze(),n=(0,e.useContext)(Op).config,r=jg().buildCallback,o=yp(),a=pe((function(e){return e.conversationState})),i=Vg().acknowledgeLiveChatMessage;Rv(Dg,{variables:{conversationId:a.conversation_id,chatbotIds:[o]},shouldResubscribe:!0,fetchPolicy:"no-cache",onError:function(e){console.error(e)},onData:function(e){var a=e.data,s=a&&a.data&&a.data.onClientLiveChatConversationEvent;s&&t(function(e,t,n,r){return function(o,a){var i,s=a(),l=s.conversationState,c=s.language,u=n.acknowledgeLiveChatMessage,d=On(c.lang),p=function(e){var t=e.authUri,n=e.operatorName,a=e.operatorAvatarUrl,i=e.conversationId,s=e.turnId,l=e.message;if(!e.cancelPromptAuthLogin){var c={callbackType:Mt.PromptAuthSsoRedirect,authUri:t},p={callbackType:Mt.SendResponse};o(Sr(wr(wr({},Or({text:l,onYesCallback:{callbackData:c,callback:r(c)},onNoCallback:{callbackData:p,callback:r(p)},LL:d})),{operatorAvatar:a,operatorName:n}),ht.OperatorTurn)),null==u||u(i,s)}};switch(t.event){case"LiveConversationStartTypingOperator":o(kr(!0));break;case"LiveConversationStopTypingOperator":o(kr(!1));break;case"LiveConversationClientNameChanged":var f=t.payload;o(on(wr(wr({},l),{name:f.clientName})));break;case"LiveConversationSuperseded":if((f=t.payload).conversationId===l.conversation_id){var h=f.newConversation,m={callbackType:Mt.ConversationSuperseededReject,conversationId:h._id},v={callbackData:m,callback:r(m)},g="You are being transferred to an office that requires you to log in to connect to an agent. Would you like to log in to continue?";if((null==h?void 0:h.mode)===rt.LiveChat){if(h.operatorId){if(h.authUri){var y={callbackType:Mt.ConversationSuperseededOperator,authUri:h.authUri,operatorName:null==h?void 0:h.operatorName};o(Sr(Or({text:g,onYesCallback:{callbackData:y,callback:r(y)},onNoCallback:v,LL:d})))}else o(Rr((null==h?void 0:h.operatorName)||"Unknown Operator"));var b=null===(i=null==h?void 0:h.firstMessage)||void 0===i?void 0:i._id,x=null==h?void 0:h._id;u&&b&&h&&u(x,b)}else{var w="".concat(h.audience.office," (").concat(h.audience.campus,")");h.authUri?(y={callbackType:Mt.ConversationSuperseededOffice,authUri:h.authUri,officeName:w},o(Sr(Or({text:g,onYesCallback:{callback:r(y),callbackData:y},onNoCallback:v,LL:d})))):(o(_r(w)),o(Ir()))}o(on(wr(wr({},l),{conversation_id:h._id,campus:h.audience.campus,office:h.audience.office}))),h.firstMessage&&o(Mr(h.firstMessage)),f.promptAuthLoginPayload&&p(f.promptAuthLoginPayload)}else o(jr(e)),o(on({conversation_id:null==h?void 0:h._id}))}break;case"PromptAuthLogin":p(t.payload)}}}(n,s,{acknowledgeLiveChatMessage:function(e,t){return i({conversationId:e,turnId:t,chatbotId:o})}},r))}})};const Ug=function(){var t,n,r,o;return t=ze(),n=yp(),r=pe((function(e){return e.conversationState})),o=Vg().acknowledgeLiveChatMessage,Rv(Lg,{variables:{conversationId:r.conversation_id},shouldResubscribe:!0,onError:function(e){console.error(e)},onData:function(e){var a=e.data,i=a&&a.data&&a.data.onMessage;i&&(t(Mr(i)),o({conversationId:r.conversation_id,turnId:i._id,chatbotId:n}))}}),Wg(),e.createElement("span",null)},qg=xg`
  subscription OnCampaignMessage($conversationId: String!, $chatbotId: String!) {
    onCampaignConversationMessage(conversationId: $conversationId, chatbotId: $chatbotId) {
      conversationId
      messageType
      message
      clientName
      operatorId
      operatorAvatarUrl
      operatorName
      actions {
        type
        text {
          en
          es
        }
      }
      resources {
        nids
        nid
        type
        autoplay
        title {
          en
        }
        duration
        url
        snippet {
          en
          es
        }
        actionLabel
        contentType
      }
    }
  }
`,Hg=xg`
  subscription OnCampaignConversationSystemEvent(
    $chatbotId: String!
    $conversationId: String
    $campus: String
    $office: String
  ) {
    onCampaignConversationSystemEvent(
      chatbotId: $chatbotId
      conversationId: $conversationId
      campus: $campus
      office: $office
    ) {
      event
      payload {
        ... on ConversationModeChangedPayload {
          campaignId
          conversationId
          mode
          firstMessage {
            messageType
            message
            actions {
              type
              text {
                en
                es
              }
            }
            operatorAvatarUrl
            operatorName
            resources {
              nids
              nid
              type
              autoplay
              title {
                en
              }
              duration
              url
              snippet {
                en
                es
              }
              actionLabel
              contentType
            }
          }
        }
      }
      timestamp
    }
  }
`,Gg=()=>{const t=ze(),n=pe((e=>e.conversationState)),r=(0,e.useContext)(bp);Rv(qg,{variables:{conversationId:n.conversation_id,chatbotId:r},shouldResubscribe:!0,onError:e=>{console.error(e)},onData:({data:e})=>{const n=e&&e.data&&e.data.onCampaignConversationMessage;n&&t(Mr(n))}})},Qg=()=>{const t=ze(),n=(0,e.useContext)(bp),r=pe((e=>e.conversationState));Rv(Hg,{variables:{conversationId:r.conversation_id,chatbotId:n},shouldResubscribe:!0,fetchPolicy:"no-cache",onError:e=>{console.error(e)},onData:({data:e})=>{const n=e&&e.data&&e.data.onCampaignConversationSystemEvent;n&&t(function(e){return function(t,n){var r=n().conversationState;if("ConversationModeChanged"===e.event){var o=e.payload,a=o.mode,i=o.firstMessage;t(on(wr(wr({},r),{agent_campaign:a===rt.Campaign}))),i&&t(Mr(i))}}}(n))}})};function Kg(){return Gg(),e.createElement("span",null)}function Yg(){return Qg(),e.createElement("span",null)}const Xg=(0,e.createContext)();function Jg({children:t}){return e.createElement(Xg.Provider,{value:(0,e.useState)(!1)},t)}Jg.propTypes={children:In().node.isRequired};const Zg=()=>(0,e.useContext)(Xg);var ey=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},ty=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ny=function(e,t,n,r){return ey(void 0,void 0,Promise,(function(){var o,a,i;return ty(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),o=n&&r?"&campusId=".concat(n,"&officeId=").concat(r):"",[4,fetch("".concat("https://ai.ocelotbot.com","/api/lang/chatbot-client?lang=").concat(e,"&chatbotId=").concat(t).concat(o))];case 1:return(a=s.sent()).ok?[4,a.json()]:[3,3];case 2:return[2,s.sent()];case 3:return[3,5];case 4:return i=s.sent(),console.error("Error: ",i),[3,5];case 5:return[2,void 0]}}))}))};const ry=function(){var e=pe((function(e){return e.chatbotUi})),t=pe((function(e){return e.messages}));return e.conversationStarted||t.items.length>1};var oy=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};const ay=function(){var t,n=(0,e.useContext)(Op),r=pe((function(e){return e.language.lang})),o=ry(),a=oy((0,e.useState)(null),2),i=a[0],s=a[1];return(0,e.useEffect)((function(){if(navigator){var e=window.navigator.language.toLowerCase(),t=null==e?void 0:e.split("-")[0];(function(e,t){return!!(null==t?void 0:t.languages.find((function(t){return t.code===e})))})(t,n.config)&&s(t)}}),[n]),{language:o?r:null!==(t=null!=i?i:r)&&void 0!==t?t:"en",defaultLanguage:"en"}};function iy(e,t){return e===t}function sy(t,n,r){var o=r&&r.equalityFn||iy,a=(0,e.useState)(t),i=a[0],s=a[1],l=function(t,n,r){var o=this,a=(0,e.useRef)(null),i=(0,e.useRef)(0),s=(0,e.useRef)(null),l=(0,e.useRef)([]),c=(0,e.useRef)(),u=(0,e.useRef)(),d=(0,e.useRef)(t),p=(0,e.useRef)(!0);d.current=t;var f=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof t)throw new TypeError("Expected a function");n=+n||0;var h=!!(r=r||{}).leading,m=!("trailing"in r)||!!r.trailing,v="maxWait"in r,g=v?Math.max(+r.maxWait||0,n):null,y=(0,e.useCallback)((function(e){var t=l.current,n=c.current;return l.current=c.current=null,i.current=e,u.current=d.current.apply(n,t)}),[]),b=(0,e.useCallback)((function(e,t){f&&cancelAnimationFrame(s.current),s.current=f?requestAnimationFrame(e):setTimeout(e,t)}),[f]),x=(0,e.useCallback)((function(e){if(!p.current)return!1;var t=e-a.current,r=e-i.current;return!a.current||t>=n||t<0||v&&r>=g}),[g,v,n]),w=(0,e.useCallback)((function(e){return s.current=null,m&&l.current?y(e):(l.current=c.current=null,u.current)}),[y,m]),E=(0,e.useCallback)((function(){var e=Date.now();if(x(e))return w(e);var t=e-a.current,r=e-i.current,o=n-t,s=v?Math.min(o,g-r):o;b(E,s)}),[g,v,x,b,w,n]),S=(0,e.useCallback)((function(){s.current&&(f?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,l.current=a.current=c.current=s.current=null}),[f]),A=(0,e.useCallback)((function(){return s.current?w(Date.now()):u.current}),[w]);(0,e.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var k=(0,e.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Date.now(),d=x(r);if(l.current=e,c.current=o,a.current=r,d){if(!s.current&&p.current)return i.current=a.current,b(E,n),h?y(a.current):u.current;if(v)return b(E,n),y(a.current)}return s.current||b(E,n),u.current}),[y,h,v,x,b,E,n]),C=(0,e.useCallback)((function(){return!!s.current}),[]);return(0,e.useMemo)((function(){return{callback:k,cancel:S,flush:A,pending:C}}),[k,S,A,C])}((0,e.useCallback)((function(e){return s(e)}),[]),n,r),c=(0,e.useRef)(t);return(0,e.useEffect)((function(){o(c.current,t)||(l.callback(t),c.current=t)}),[t,l,o]),[i,{cancel:l.cancel,pending:l.pending,flush:l.flush}]}var ly=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};const cy=function(){var t=ze(),n=pe((function(e){return e.messages})),r=n.liveChat,o=n.liveChatConnected,a=!r||o,i=ly(sy(a,5e3),1)[0];a&&(i=!0),(0,e.useEffect)((function(){var e;t((e=i,{type:Dt.TOGGLE_LIVE_CHAT_UI_CONNECTED,status:e}))}),[i,t])};var uy=o(3639),dy=o(8125),py=o(7491),fy=o(8999);function hy(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function my(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vy(e){return parseInt((0,fy.A)(e).getComputedStyle(e).paddingRight,10)||0}function gy(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&my(e,o)}))}function yy(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function by(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,uy.A)(e);return t.body===e?(0,fy.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=hy((0,uy.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${vy(r)+e}px`;const t=(0,uy.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vy(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,uy.A)(r).body;else{const t=r.parentElement,n=(0,fy.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const xy=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&my(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);gy(t,e.mount,e.modalRef,r,!0);const o=yy(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=yy(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=by(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=yy(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&my(e.modalRef,t),gy(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&my(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function wy(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:a=xy,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=t,f=e.useRef({}),h=e.useRef(null),m=e.useRef(null),v=(0,dm.A)(m,p),[g,y]=e.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(x=!1);const w=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),E=()=>{a.mount(w(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=(0,dy.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(n)||(0,uy.A)(h.current).body;a.add(w(),e),m.current&&E()})),A=e.useCallback((()=>a.isTopModal(w())),[a]),k=(0,dy.A)((e=>{h.current=e,e&&(d&&A()?E():m.current&&my(m.current,x))})),C=e.useCallback((()=>{a.remove(w(),x)}),[x,a]);e.useEffect((()=>()=>{C()}),[C]),e.useEffect((()=>{d?S():b&&i||C()}),[d,C,b,i,S]);const T=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&A()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},O=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(e={})=>{const n=fm(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,Fo.A)({},n,e);return(0,Fo.A)({role:"presentation"},r,{onKeyDown:T(r),ref:v})},getBackdropProps:(e={})=>{const t=e;return(0,Fo.A)({"aria-hidden":!0},t,{onClick:O(t),open:d})},getTransitionProps:()=>({onEnter:(0,py.A)((()=>{y(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:(0,py.A)((()=>{y(!0),l&&l(),i&&C()}),null==c?void 0:c.props.onExited)}),rootRef:v,portalRef:k,isTopModal:A,exited:g,hasTransition:b}}const Ey=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sy(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ey)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Ay(){return!0}function ky(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:i=Sy,isEnabled:s=Ay,open:l}=t,c=e.useRef(!1),u=e.useRef(null),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),v=(0,dm.A)(n.ref,m),g=e.useRef(null);e.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),e.useEffect((()=>{if(!l||!m.current)return;const e=(0,uy.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{a||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),e.useEffect((()=>{if(!l||!m.current)return;const e=(0,uy.A)(m.current),t=t=>{g.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=i(m.current)),n.length>0){var r,a;const e=Boolean((null==(r=g.current)?void 0:r.shiftKey)&&"Tab"===(null==(a=g.current)?void 0:a.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,o,a,s,l,i]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return(0,Po.jsxs)(e.Fragment,{children:[(0,Po.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:v,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,Po.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}var Cy=o(6259),Ty=o(5711);const Oy=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[i,s]=e.useState(null),l=(0,dm.A)(e.isValidElement(r)?r.ref:null,n);if((0,Cy.A)((()=>{a||s(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,a]),(0,Cy.A)((()=>{if(i&&!a)return(0,Ty.A)(n,i),()=>{(0,Ty.A)(n,null)}}),[n,i,a]),a){if(e.isValidElement(r)){const t={ref:l};return e.cloneElement(r,t)}return(0,Po.jsx)(e.Fragment,{children:r})}return(0,Po.jsx)(e.Fragment,{children:i?Z.createPortal(r,i):i})}));const Ry=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_y={entering:{opacity:1},entered:{opacity:1}},Iy=e.forwardRef((function(t,n){const r=jh(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:v,timeout:g=o,TransitionComponent:y=Fh}=t,b=(0,Do.A)(t,Ry),x=e.useRef(null),w=(0,Lp.A)(x,s.ref,n),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=E(p),A=E(((e,t)=>{$h(e);const n=zh({style:v,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),k=E(d),C=E(m),T=E((e=>{const t=zh({style:v,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),O=E(h);return(0,Po.jsx)(y,(0,Lo.A)({appear:i,in:c,nodeRef:x,onEnter:A,onEntered:k,onEntering:S,onExit:T,onExited:O,onExiting:C,addEndListener:e=>{a&&a(x.current,e)},timeout:g},b,{children:(t,n)=>e.cloneElement(s,(0,Lo.A)({style:(0,Lo.A)({opacity:0,visibility:"exited"!==t||c?void 0:"hidden"},_y[t],v,s.props.style),ref:w},n))}))}));function Py(e){return(0,cf.Ay)("MuiBackdrop",e)}(0,Qp.A)("MuiBackdrop",["root","invisible"]);const Ny=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],My=(0,_p.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,Lo.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Ly=e.forwardRef((function(e,t){var n,r,o;const a=(0,Mp.A)({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Iy,transitionDuration:v}=a,g=(0,Do.A)(a,Ny),y=(0,Lo.A)({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,Pp.A)(r,Py,t)})(y),x=null!=(n=f.root)?n:u.root;return(0,Po.jsx)(m,(0,Lo.A)({in:p,timeout:v},g,{children:(0,Po.jsx)(My,(0,Lo.A)({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:(0,Ip.A)(b.root,s,null==x?void 0:x.className),ownerState:(0,Lo.A)({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));function Dy(e){return(0,cf.Ay)("MuiModal",e)}(0,Qp.A)("MuiModal",["root","hidden","backdrop"]);const Fy=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],jy=(0,_p.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,Lo.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),$y=(0,_p.Ay)(Ly,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zy=e.forwardRef((function(t,n){var r,o,a,i,s,l;const c=(0,Mp.A)({name:"MuiModal",props:t}),{BackdropComponent:u=$y,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:v,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:E=!1,disableRestoreFocus:S=!1,disableScrollLock:A=!1,hideBackdrop:k=!1,keepMounted:C=!1,onBackdropClick:T,open:O,slotProps:R,slots:_}=c,I=(0,Do.A)(c,Fy),P=(0,Lo.A)({},c,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:E,disableRestoreFocus:S,disableScrollLock:A,hideBackdrop:k,keepMounted:C}),{getRootProps:N,getBackdropProps:M,getTransitionProps:L,portalRef:D,isTopModal:F,exited:j,hasTransition:$}=wy((0,Lo.A)({},P,{rootRef:n})),z=(0,Lo.A)({},P,{exited:j}),B=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,Pp.A)(o,Dy,r)})(z),V={};if(void 0===h.props.tabIndex&&(V.tabIndex="-1"),$){const{onEnter:e,onExited:t}=L();V.onEnter=e,V.onExited=t}const W=null!=(r=null!=(o=null==_?void 0:_.root)?o:g.Root)?r:jy,U=null!=(a=null!=(i=null==_?void 0:_.backdrop)?i:g.Backdrop)?a:u,q=null!=(s=null==R?void 0:R.root)?s:y.root,H=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop,G=vm({elementType:W,externalSlotProps:q,externalForwardedProps:I,getSlotProps:N,additionalProps:{ref:n,as:v},ownerState:z,className:(0,Ip.A)(p,null==q?void 0:q.className,null==B?void 0:B.root,!z.open&&z.exited&&(null==B?void 0:B.hidden))}),Q=vm({elementType:U,externalSlotProps:H,additionalProps:d,getSlotProps:e=>M((0,Lo.A)({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,Ip.A)(null==H?void 0:H.className,null==d?void 0:d.className,null==B?void 0:B.backdrop),ownerState:z});return C||O||$&&!j?(0,Po.jsx)(Oy,{ref:D,container:m,disablePortal:E,children:(0,Po.jsxs)(W,(0,Lo.A)({},G,{children:[!k&&u?(0,Po.jsx)(U,(0,Lo.A)({},Q)):null,(0,Po.jsx)(ky,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:F,open:O,children:e.cloneElement(h,V)})]}))}):null}));var By=o(5589),Vy=o(5543);const Wy=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Uy(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=(0,Vy.A)(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(i&&"none"!==i&&"string"==typeof i){const e=i.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const qy=e.forwardRef((function(t,n){const r=jh(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:p,onEnter:f,onEntered:h,onEntering:m,onExit:v,onExited:g,onExiting:y,style:b,timeout:x=a,TransitionComponent:w=Fh}=t,E=(0,Do.A)(t,Wy),S=e.useRef(null),A=(0,Lp.A)(l.ref,S,n),k=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},C=k(((e,t)=>{Uy(u,e,c),$h(e),f&&f(e,t)})),T=k(((e,t)=>{const n=zh({timeout:x,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,Lo.A)({},n)),e.style.transition=r.transitions.create("transform",(0,Lo.A)({},n)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),O=k(h),R=k(y),_=k((e=>{const t=zh({timeout:x,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),Uy(u,e,c),v&&v(e)})),I=k((e=>{e.style.webkitTransition="",e.style.transition="",g&&g(e)})),P=e.useCallback((()=>{S.current&&Uy(u,S.current,c)}),[u,c]);return e.useEffect((()=>{if(p||"down"===u||"right"===u)return;const e=(0,By.A)((()=>{S.current&&Uy(u,S.current,c)})),t=(0,Vy.A)(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,p,c]),e.useEffect((()=>{p||P()}),[p,P]),(0,Po.jsx)(w,(0,Lo.A)({nodeRef:S,onEnter:C,onEntered:O,onEntering:T,onExit:_,onExited:I,onExiting:R,addEndListener:e=>{i&&i(S.current,e)},appear:s,in:p,timeout:x},E,{children:(t,n)=>e.cloneElement(l,(0,Lo.A)({ref:A,style:(0,Lo.A)({visibility:"exited"!==t||p?void 0:"hidden"},b,l.props.style)},n))}))}));function Hy(e){return(0,cf.Ay)("MuiDrawer",e)}(0,Qp.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Gy=["BackdropProps"],Qy=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Ky=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},Yy=(0,_p.Ay)(zy,{name:"MuiDrawer",slot:"Root",overridesResolver:Ky})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Xy=(0,_p.Ay)("div",{shouldForwardProp:_p.ep,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Ky})({flex:"0 0 auto"}),Jy=(0,_p.Ay)(bh,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,mf.A)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,mf.A)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,Lo.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),Zy={left:"right",right:"left",top:"down",bottom:"up"};const eb=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiDrawer"}),o=jh(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:s,children:l,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:f,open:h=!1,PaperProps:m={},SlideProps:v,TransitionComponent:g=qy,transitionDuration:y=a,variant:b="temporary"}=r,x=(0,Do.A)(r.ModalProps,Gy),w=(0,Do.A)(r,Qy),E=e.useRef(!1);e.useEffect((()=>{E.current=!0}),[]);const S=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Zy[t]:t}(o,i),A=i,k=(0,Lo.A)({},r,{anchor:A,elevation:u,open:h,variant:b},w),C=(e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,mf.A)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,mf.A)(n)}`]};return(0,Pp.A)(o,Hy,t)})(k),T=(0,Po.jsx)(Jy,(0,Lo.A)({elevation:"temporary"===b?u:0,square:!0},m,{className:(0,Ip.A)(C.paper,m.className),ownerState:k,children:l}));if("permanent"===b)return(0,Po.jsx)(Xy,(0,Lo.A)({className:(0,Ip.A)(C.root,C.docked,c),ownerState:k,ref:n},w,{children:T}));const O=(0,Po.jsx)(g,(0,Lo.A)({in:h,direction:Zy[S],timeout:y,appear:E.current},v,{children:T}));return"persistent"===b?(0,Po.jsx)(Xy,(0,Lo.A)({className:(0,Ip.A)(C.root,C.docked,c),ownerState:k,ref:n},w,{children:O})):(0,Po.jsx)(Yy,(0,Lo.A)({BackdropProps:(0,Lo.A)({},s,p,{transitionDuration:y}),className:(0,Ip.A)(C.root,C.modal,c),open:h,ownerState:k,onClose:f,hideBackdrop:d,ref:n},w,x,{children:O}))}));function tb(e){return(0,cf.Ay)("MuiDivider",e)}const nb=(0,Qp.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),rb=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ob=(0,_p.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,Lo.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,Np.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,Lo.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,Lo.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,Lo.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,Lo.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),ab=(0,_p.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,Lo.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),ib=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=(0,Do.A)(n,rb),h=(0,Lo.A)({},n,{absolute:r,component:i,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,Pp.A)(c,tb,r)})(h);return(0,Po.jsx)(ob,(0,Lo.A)({as:i,className:(0,Ip.A)(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?(0,Po.jsx)(ab,{className:m.wrapper,ownerState:h,children:o}):null}))}));ib.muiSkipListHighlight=!0;const sb=ib,lb=(0,e.createContext)();function cb({children:t}){const n=(0,e.useRef)(),[r,o]=(0,e.useState)(),a=()=>{n.current&&o(n.current.offsetHeight)};return(0,e.useEffect)((()=>(a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a))),[]),e.createElement(lb.Provider,{value:r},t(n))}cb.propTypes={children:In().func.isRequired};const ub=(0,sh.A)((0,Po.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var db=o(4783),pb=o(9239),fb=o(9359),hb=o(7267);const mb=["onChange","maxRows","minRows","style","value"];function vb(e){return parseInt(e,10)||0}const gb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function yb(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const bb=e.forwardRef((function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=(0,Wo.A)(t,mb),{current:c}=e.useRef(null!=s),u=e.useRef(null),d=(0,dm.A)(n,u),p=e.useRef(null),f=e.useRef(0),[h,m]=e.useState({outerHeightStyle:0}),v=e.useCallback((()=>{const e=u.current,n=(0,fy.A)(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const r=p.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,s=vb(n.paddingBottom)+vb(n.paddingTop),l=vb(n.borderBottomWidth)+vb(n.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;a&&(f=Math.max(Number(a)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?s+l:0),overflow:Math.abs(f-c)<=1}}),[o,a,t.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},y=e.useCallback((()=>{const e=v();yb(e)||m((t=>g(t,e)))}),[v]);(0,Cy.A)((()=>{const e=()=>{f.current=0,(()=>{const e=v();yb(e)||Z.flushSync((()=>{m((t=>g(t,e)))}))})()};let t;const n=(0,hb.A)(e),r=u.current,o=(0,fy.A)(r);let a;return o.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(a=new ResizeObserver(e),a.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",n),a&&a.disconnect()}}),[v]),(0,Cy.A)((()=>{y()})),e.useEffect((()=>{f.current=0}),[s]);return(0,Po.jsxs)(e.Fragment,{children:[(0,Po.jsx)("textarea",(0,Fo.A)({value:s,onChange:e=>{f.current=0,c||y(),r&&r(e)},ref:d,rows:a,style:(0,Fo.A)({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},l)),(0,Po.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,Fo.A)({},gb,i,{paddingTop:0,paddingBottom:0})})]})}));function xb({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const wb=e.createContext(void 0);function Eb(){return e.useContext(wb)}function Sb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ab(e,t=!1){return e&&(Sb(e.value)&&""!==e.value||t&&Sb(e.defaultValue)&&""!==e.defaultValue)}function kb(e){return(0,cf.Ay)("MuiInputBase",e)}const Cb=(0,Qp.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Tb=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ob=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,mf.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Rb=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},_b=(0,_p.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ob})((({theme:e,ownerState:t})=>(0,Lo.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Cb.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,Lo.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ib=(0,_p.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rb})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,Lo.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,Lo.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Cb.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Cb.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Pb=(0,Po.jsx)(Aa,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nb=e.forwardRef((function(t,n){var r;const o=(0,Mp.A)({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:v,inputComponent:g="input",inputProps:y={},inputRef:b,maxRows:x,minRows:w,multiline:E=!1,name:S,onBlur:A,onChange:k,onClick:C,onFocus:T,onKeyDown:O,onKeyUp:R,placeholder:_,readOnly:I,renderSuffix:P,rows:N,slotProps:M={},slots:L={},startAdornment:D,type:F="text",value:j}=o,$=(0,Do.A)(o,Tb),z=null!=y.value?y.value:j,{current:B}=e.useRef(null!=z),V=e.useRef(),W=e.useCallback((e=>{0}),[]),U=(0,Lp.A)(V,b,y.ref,W),[q,H]=e.useState(!1),G=Eb();const Q=xb({props:o,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=G?G.focused:q,e.useEffect((()=>{!G&&p&&q&&(H(!1),A&&A())}),[G,p,q,A]);const K=G&&G.onFilled,Y=G&&G.onEmpty,X=e.useCallback((e=>{Ab(e)?K&&K():Y&&Y()}),[K,Y]);(0,Af.A)((()=>{B&&X({value:z})}),[z,X,B]);e.useEffect((()=>{X(V.current)}),[]);let J=g,Z=y;E&&"input"===J&&(Z=N?(0,Lo.A)({type:void 0,minRows:N,maxRows:N},Z):(0,Lo.A)({type:void 0,maxRows:x,minRows:w},Z),J=bb);e.useEffect((()=>{G&&G.setAdornedStart(Boolean(D))}),[G,D]);const ee=(0,Lo.A)({},o,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:h,error:Q.error,focused:Q.focused,formControl:G,fullWidth:m,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:D,type:F}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e,m={root:["root",`color${(0,mf.A)(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&"medium"!==p&&`size${(0,mf.A)(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,Pp.A)(m,kb,t)})(ee),ne=L.root||c.Root||_b,re=M.root||u.root||{},oe=L.input||c.Input||Ib;return Z=(0,Lo.A)({},Z,null!=(r=M.input)?r:u.input),(0,Po.jsxs)(e.Fragment,{children:[!f&&Pb,(0,Po.jsxs)(ne,(0,Lo.A)({},re,!Ef(ne)&&{ownerState:(0,Lo.A)({},ee,re.ownerState)},{ref:n,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),C&&C(e)}},$,{className:(0,Ip.A)(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[D,(0,Po.jsx)(wb.Provider,{value:null,children:(0,Po.jsx)(oe,(0,Lo.A)({ownerState:ee,"aria-invalid":Q.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:d,disabled:Q.disabled,id:v,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:S,placeholder:_,readOnly:I,required:Q.required,rows:N,value:z,onKeyDown:O,onKeyUp:R,type:F},Z,!Ef(oe)&&{as:J,ownerState:(0,Lo.A)({},ee,Z.ownerState)},{ref:U,className:(0,Ip.A)(te.input,Z.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{A&&A(e),y.onBlur&&y.onBlur(e),G&&G.onBlur?G.onBlur(e):H(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||V.current;if(null==t)throw new Error((0,fb.A)(1));X({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{Q.disabled?e.stopPropagation():(T&&T(e),y.onFocus&&y.onFocus(e),G&&G.onFocus?G.onFocus(e):H(!0))}}))}),h,P?P((0,Lo.A)({},Q,{startAdornment:D})):null]}))]})})),Mb=Nb;function Lb(e){return(0,cf.Ay)("MuiInput",e)}const Db=(0,Lo.A)({},Cb,(0,Qp.A)("MuiInput",["root","underline","input"])),Fb=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],jb=(0,_p.Ay)(_b,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ob(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,Lo.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Db.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Db.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Db.disabled}, .${Db.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Db.disabled}:before`]:{borderBottomStyle:"dotted"}})})),$b=(0,_p.Ay)(Ib,{name:"MuiInput",slot:"Input",overridesResolver:Rb})({}),zb=e.forwardRef((function(e,t){var n,r,o,a;const i=(0,Mp.A)({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=i,v=(0,Do.A)(i,Fb),g=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,Pp.A)(r,Lb,t);return(0,Lo.A)({},t,o)})(i),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:c)?(0,pb.A)(null!=f?f:c,y):y,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:jb,w=null!=(o=null!=(a=h.input)?a:l.Input)?o:$b;return(0,Po.jsx)(Mb,(0,Lo.A)({slots:{root:x,input:w},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},v,{classes:g}))}));zb.muiName="Input";const Bb=zb;function Vb(e){return(0,cf.Ay)("MuiFilledInput",e)}const Wb=(0,Lo.A)({},Cb,(0,Qp.A)("MuiFilledInput",["root","underline","input"])),Ub=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],qb=(0,_p.Ay)(_b,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ob(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Lo.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Wb.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Wb.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wb.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wb.disabled}, .${Wb.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wb.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,Lo.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Hb=(0,_p.Ay)(Ib,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rb})((({theme:e,ownerState:t})=>(0,Lo.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Gb=e.forwardRef((function(e,t){var n,r,o,a;const i=(0,Mp.A)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=i,m=(0,Do.A)(i,Ub),v=(0,Lo.A)({},i,{fullWidth:c,inputComponent:u,multiline:d,type:h}),g=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,Pp.A)(r,Vb,t);return(0,Lo.A)({},t,o)})(i),y={root:{ownerState:v},input:{ownerState:v}},b=(null!=p?p:l)?(0,pb.A)(y,null!=p?p:l):y,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:qb,w=null!=(o=null!=(a=f.input)?a:s.Input)?o:Hb;return(0,Po.jsx)(Mb,(0,Lo.A)({slots:{root:x,input:w},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:g}))}));Gb.muiName="Input";const Qb=Gb;var Kb;const Yb=["children","classes","className","label","notched"],Xb=(0,_p.Ay)("fieldset",{shouldForwardProp:_p.ep})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Jb=(0,_p.Ay)("legend",{shouldForwardProp:_p.ep})((({ownerState:e,theme:t})=>(0,Lo.A)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,Lo.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function Zb(e){return(0,cf.Ay)("MuiOutlinedInput",e)}const ex=(0,Lo.A)({},Cb,(0,Qp.A)("MuiOutlinedInput",["root","notchedOutline","input"])),tx=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nx=(0,_p.Ay)(_b,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ob})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Lo.A)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ex.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ex.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ex.focused} .${ex.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ex.error} .${ex.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ex.disabled} .${ex.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,Lo.A)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),rx=(0,_p.Ay)((function(e){const{className:t,label:n,notched:r}=e,o=(0,Do.A)(e,Yb),a=null!=n&&""!==n,i=(0,Lo.A)({},e,{notched:r,withLabel:a});return(0,Po.jsx)(Xb,(0,Lo.A)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,Po.jsx)(Jb,{ownerState:i,children:a?(0,Po.jsx)("span",{children:n}):Kb||(Kb=(0,Po.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),ox=(0,_p.Ay)(Ib,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rb})((({theme:e,ownerState:t})=>(0,Lo.A)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ax=e.forwardRef((function(t,n){var r,o,a,i,s;const l=(0,Mp.A)({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:v="text"}=l,g=(0,Do.A)(l,tx),y=(e=>{const{classes:t}=e,n=(0,Pp.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Zb,t);return(0,Lo.A)({},t,n)})(l),b=Eb(),x=xb({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=(0,Lo.A)({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:v}),E=null!=(r=null!=(o=m.root)?o:c.Root)?r:nx,S=null!=(a=null!=(i=m.input)?i:c.Input)?a:ox;return(0,Po.jsx)(Mb,(0,Lo.A)({slots:{root:E,input:S},renderSuffix:t=>(0,Po.jsx)(rx,{ownerState:w,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=(0,Po.jsxs)(e.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:u,inputComponent:d,multiline:f,ref:n,type:v},g,{classes:(0,Lo.A)({},y,{notchedOutline:null})}))}));ax.muiName="Input";const ix=ax;function sx(e){return(0,cf.Ay)("MuiFormLabel",e)}const lx=(0,Qp.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cx=["children","className","color","component","disabled","error","filled","focused","required"],ux=(0,_p.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Lo.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,Lo.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${lx.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${lx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lx.error}`]:{color:(e.vars||e).palette.error.main}}))),dx=(0,_p.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${lx.error}`]:{color:(e.vars||e).palette.error.main}}))),px=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:a="label"}=n,i=(0,Do.A)(n,cx),s=xb({props:n,muiFormControl:Eb(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Lo.A)({},n,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${(0,mf.A)(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,Pp.A)(l,sx,t)})(l);return(0,Po.jsxs)(ux,(0,Lo.A)({as:a,ownerState:l,className:(0,Ip.A)(c.root,o),ref:t},i,{children:[r,s.required&&(0,Po.jsxs)(dx,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}));function fx(e){return(0,cf.Ay)("MuiInputLabel",e)}(0,Qp.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const hx=["disableAnimation","margin","shrink","variant","className"],mx=(0,_p.Ay)(px,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lx.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,Lo.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,Lo.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,Lo.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,Lo.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),vx=e.forwardRef((function(e,t){const n=(0,Mp.A)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:a}=n,i=(0,Do.A)(n,hx),s=Eb();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=xb({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),u=(0,Lo.A)({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&"normal"!==r&&`size${(0,mf.A)(r)}`,i],asterisk:[s&&"asterisk"]},c=(0,Pp.A)(l,fx,t);return(0,Lo.A)({},t,c)})(u);return(0,Po.jsx)(mx,(0,Lo.A)({"data-shrink":l,ownerState:u,ref:t,className:(0,Ip.A)(d.root,a)},i,{classes:d}))}));function gx(e){return(0,cf.Ay)("MuiFormControl",e)}(0,Qp.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const yx=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],bx=(0,_p.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,Lo.A)({},t.root,t[`margin${(0,mf.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,Lo.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),xx=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:h=!1,size:m="medium",variant:v="outlined"}=r,g=(0,Do.A)(r,yx),y=(0,Lo.A)({},r,{color:i,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:f,required:h,size:m,variant:v}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&`margin${(0,mf.A)(n)}`,r&&"fullWidth"]};return(0,Pp.A)(o,gx,t)})(y),[x,w]=e.useState((()=>{let t=!1;return o&&e.Children.forEach(o,(e=>{if(!(0,Sf.A)(e,["Input","Select"]))return;const n=(0,Sf.A)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)})),t})),[E,S]=e.useState((()=>{let t=!1;return o&&e.Children.forEach(o,(e=>{(0,Sf.A)(e,["Input","Select"])&&(Ab(e.props,!0)||Ab(e.props.inputProps,!0))&&(t=!0)})),t})),[A,k]=e.useState(!1);l&&A&&k(!1);const C=void 0===u||l?A:u;let T;const O=e.useMemo((()=>({adornedStart:x,setAdornedStart:w,color:i,disabled:l,error:c,filled:E,focused:C,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{k(!0)},registerEffect:T,required:h,variant:v})),[x,i,l,c,E,C,d,p,T,h,m,v]);return(0,Po.jsx)(wb.Provider,{value:O,children:(0,Po.jsx)(bx,(0,Lo.A)({as:s,ownerState:y,className:(0,Ip.A)(b.root,a),ref:n},g,{children:o}))})}));function wx(e){return(0,cf.Ay)("MuiFormHelperText",e)}const Ex=(0,Qp.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Sx;const Ax=["children","className","component","disabled","error","filled","focused","margin","required","variant"],kx=(0,_p.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,mf.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,Lo.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ex.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ex.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Cx=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p"}=n,i=(0,Do.A)(n,Ax),s=xb({props:n,muiFormControl:Eb(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Lo.A)({},n,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${(0,mf.A)(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,Pp.A)(c,wx,t)})(l);return(0,Po.jsx)(kx,(0,Lo.A)({as:a,ownerState:l,className:(0,Ip.A)(c.root,o),ref:t},i,{children:" "===r?Sx||(Sx=(0,Po.jsx)("span",{className:"notranslate",children:"​"})):r}))}));var Tx=o(8230);function Ox(e){return(0,cf.Ay)("MuiList",e)}(0,Qp.A)("MuiList",["root","padding","dense","subheader"]);const Rx=["children","className","component","dense","disablePadding","subheader"],_x=(0,_p.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,Lo.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ix=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=(0,Do.A)(r,Rx),d=e.useMemo((()=>({dense:s})),[s]),p=(0,Lo.A)({},r,{component:i,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,a={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,Pp.A)(a,Ox,t)})(p);return(0,Po.jsx)(kf.Provider,{value:d,children:(0,Po.jsxs)(_x,(0,Lo.A)({as:i,className:(0,Ip.A)(f.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})})),Px=hy,Nx=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Lx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Dx(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Fx(e,t,n,r,o,a){let i=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Dx(s,a)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const jx=e.forwardRef((function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,p=(0,Do.A)(t,Nx),f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Af.A)((()=>{o&&f.current.focus()}),[o]),e.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Px((0,Tx.A)(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=(0,Lp.A)(f,n);let v=-1;e.Children.forEach(i,((t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===v)&&(v=n),v===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))):v===n&&(v+=1,v>=i.length&&(v=-1))}));const g=e.Children.map(i,((t,n)=>{if(n===v){const n={};return a&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return(0,Po.jsx)(Ix,(0,Lo.A)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=(0,Tx.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Fx(t,r,c,l,Mx);else if("ArrowUp"===n)e.preventDefault(),Fx(t,r,c,l,Lx);else if("Home"===n)e.preventDefault(),Fx(t,null,c,l,Mx);else if("End"===n)e.preventDefault(),Fx(t,null,c,l,Lx);else if(1===n.length){const o=h.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&Dx(r,o);o.previousKeyMatched&&(s||Fx(t,r,!1,l,Mx,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:o?0:-1},p,{children:g}))}));function $x(e){return(0,cf.Ay)("MuiPopover",e)}(0,Qp.A)("MuiPopover",["root","paper"]);const zx=["onEntering"],Bx=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vx=["slotProps"];function Wx(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ux(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function qx(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Hx(e){return"function"==typeof e?e():e}const Gx=(0,_p.Ay)(zy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qx=(0,_p.Ay)(bh,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Kx=e.forwardRef((function(t,n){var r,o,a;const i=(0,Mp.A)({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:v=16,open:g,PaperProps:y={},slots:b,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:E=Hh,transitionDuration:S="auto",TransitionProps:{onEntering:A}={},disableScrollLock:k=!1}=i,C=(0,Do.A)(i.TransitionProps,zx),T=(0,Do.A)(i,Bx),O=null!=(r=null==x?void 0:x.paper)?r:y,R=e.useRef(),_=(0,Lp.A)(R,O.ref),I=(0,Lo.A)({},i,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:v,externalPaperSlotProps:O,transformOrigin:w,TransitionComponent:E,transitionDuration:S,TransitionProps:C}),P=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"],paper:["paper"]},$x,t)})(I),N=e.useCallback((()=>{if("anchorPosition"===d)return u;const e=Hx(l),t=(e&&1===e.nodeType?e:(0,Tx.A)(R.current).body).getBoundingClientRect();return{top:t.top+Wx(t,c.vertical),left:t.left+Ux(t,c.horizontal)}}),[l,c.horizontal,c.vertical,u,d]),M=e.useCallback((e=>({vertical:Wx(e,w.vertical),horizontal:Ux(e,w.horizontal)})),[w.horizontal,w.vertical]),L=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===d)return{top:null,left:null,transformOrigin:qx(n)};const r=N();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=(0,Vy.A)(Hx(l)),u=c.innerHeight-v,p=c.innerWidth-v;if(null!==v&&o<v){const e=o-v;o-=e,n.vertical+=e}else if(null!==v&&i>u){const e=i-u;o-=e,n.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:qx(n)}}),[l,d,N,M,v]),[D,F]=e.useState(g),j=e.useCallback((()=>{const e=R.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[L]);e.useEffect((()=>(k&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[l,k,j]);e.useEffect((()=>{g&&j()})),e.useImperativeHandle(s,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),e.useEffect((()=>{if(!g)return;const e=(0,By.A)((()=>{j()})),t=(0,Vy.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,j]);let $=S;"auto"!==S||E.muiSupportAuto||($=void 0);const z=h||(l?(0,Tx.A)(Hx(l)).body:void 0),B=null!=(o=null==b?void 0:b.root)?o:Gx,V=null!=(a=null==b?void 0:b.paper)?a:Qx,W=vm({elementType:V,externalSlotProps:(0,Lo.A)({},O,{style:D?O.style:(0,Lo.A)({},O.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:I,className:(0,Ip.A)(P.paper,null==O?void 0:O.className)}),U=vm({elementType:B,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:T,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:(0,Ip.A)(P.root,f)}),{slotProps:q}=U,H=(0,Do.A)(U,Vx);return(0,Po.jsx)(B,(0,Lo.A)({},H,!Ef(B)&&{slotProps:q,disableScrollLock:k},{children:(0,Po.jsx)(E,(0,Lo.A)({appear:!0,in:g,onEntering:(e,t)=>{A&&A(e,t),j()},onExited:()=>{F(!1)},timeout:$},C,{children:(0,Po.jsx)(V,(0,Lo.A)({},W,{children:p}))}))}))}));function Yx(e){return(0,cf.Ay)("MuiMenu",e)}(0,Qp.A)("MuiMenu",["root","paper","list"]);const Xx=["onEntering"],Jx=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Zx={vertical:"top",horizontal:"right"},ew={vertical:"top",horizontal:"left"},tw=(0,_p.Ay)(Kx,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nw=(0,_p.Ay)(Qx,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rw=(0,_p.Ay)(jx,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ow=e.forwardRef((function(t,n){var r,o;const a=(0,Mp.A)({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:g="selectedMenu",slots:y={},slotProps:b={}}=a,x=(0,Do.A)(a.TransitionProps,Xx),w=(0,Do.A)(a,Jx),E=jh(),S="rtl"===E.direction,A=(0,Lo.A)({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:v,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:g}),k=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"],paper:["paper"],list:["list"]},Yx,t)})(A),C=i&&!c&&p,T=e.useRef(null);let O=-1;e.Children.map(s,((t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===g&&t.props.selected||-1===O)&&(O=n))}));const R=null!=(r=y.paper)?r:nw,_=null!=(o=b.paper)?o:f,I=vm({elementType:y.root,externalSlotProps:b.root,ownerState:A,className:[k.root,l]}),P=vm({elementType:R,externalSlotProps:_,ownerState:A,className:k.paper});return(0,Po.jsx)(tw,(0,Lo.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Zx:ew,slots:{paper:R,root:y.root},slotProps:{root:I,paper:P},open:p,ref:n,transitionDuration:m,TransitionProps:(0,Lo.A)({onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,E),v&&v(e,t)}},x),ownerState:A},w,{classes:h,children:(0,Po.jsx)(rw,(0,Lo.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:T,autoFocus:i&&(-1===O||c),autoFocusItem:C,variant:g},u,{className:(0,Ip.A)(k.list,u.className),children:s}))}))}));function aw(e){return(0,cf.Ay)("MuiNativeSelect",e)}const iw=(0,Qp.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),sw=["className","disabled","error","IconComponent","inputRef","variant"],lw=({ownerState:e,theme:t})=>(0,Lo.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Lo.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${iw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),cw=(0,_p.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_p.ep,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${iw.multiple}`]:t.multiple}]}})(lw),uw=({ownerState:e,theme:t})=>(0,Lo.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${iw.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),dw=(0,_p.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,mf.A)(n.variant)}`],n.open&&t.iconOpen]}})(uw),pw=e.forwardRef((function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=(0,Do.A)(t,sw),u=(0,Lo.A)({},t,{disabled:o,variant:l,error:a}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${(0,mf.A)(n)}`,a&&"iconOpen",r&&"disabled"]};return(0,Pp.A)(s,aw,t)})(u);return(0,Po.jsxs)(e.Fragment,{children:[(0,Po.jsx)(cw,(0,Lo.A)({ownerState:u,className:(0,Ip.A)(d.select,r),disabled:o,ref:s||n},c)),t.multiple?null:(0,Po.jsx)(dw,{as:i,ownerState:u,className:d.icon})]})}));var fw=o(6898);function hw(e){return(0,cf.Ay)("MuiSelect",e)}const mw=(0,Qp.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vw;const gw=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],yw=(0,_p.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${mw.select}`]:t.select},{[`&.${mw.select}`]:t[n.variant]},{[`&.${mw.error}`]:t.error},{[`&.${mw.multiple}`]:t.multiple}]}})(lw,{[`&.${mw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bw=(0,_p.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,mf.A)(n.variant)}`],n.open&&t.iconOpen]}})(uw),xw=(0,_p.Ay)("input",{shouldForwardProp:e=>(0,_p._n)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ww(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ew(e){return null==e||"string"==typeof e&&!e.trim()}const Sw=e.forwardRef((function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:v,labelId:g,MenuProps:y={},multiple:b,name:x,onBlur:w,onChange:E,onClose:S,onFocus:A,onOpen:k,open:C,readOnly:T,renderValue:O,SelectDisplayProps:R={},tabIndex:_,value:I,variant:P="standard"}=t,N=(0,Do.A)(t,gw),[M,L]=(0,fw.A)({controlled:I,default:d,name:"Select"}),[D,F]=(0,fw.A)({controlled:C,default:u,name:"Select"}),j=e.useRef(null),$=e.useRef(null),[z,B]=e.useState(null),{current:V}=e.useRef(null!=C),[W,U]=e.useState(),q=(0,Lp.A)(n,v),H=e.useCallback((e=>{$.current=e,e&&B(e)}),[]),G=null==z?void 0:z.parentNode;e.useImperativeHandle(q,(()=>({focus:()=>{$.current.focus()},node:j.current,value:M})),[M]),e.useEffect((()=>{u&&D&&z&&!V&&(U(s?null:G.clientWidth),$.current.focus())}),[z,s]),e.useEffect((()=>{i&&$.current.focus()}),[i]),e.useEffect((()=>{if(!g)return;const e=(0,Tx.A)($.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&$.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Q=(e,t)=>{e?k&&k(t):S&&S(t),V||(U(s?null:G.clientWidth),F(e))},K=e.Children.toArray(l),Y=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(M)?M.slice():[];const t=M.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),M!==n&&(L(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}b||Q(!1,t)}},X=null!==z&&D;let J,Z;delete N["aria-invalid"];const ee=[];let te=!1,ne=!1;(Ab({value:M})||f)&&(O?J=O(M):te=!0);const re=K.map((t=>{if(!e.isValidElement(t))return null;let n;if(b){if(!Array.isArray(M))throw new Error((0,fb.A)(2));n=M.some((e=>ww(e,t.props.value))),n&&te&&ee.push(t.props.children)}else n=ww(M,t.props.value),n&&te&&(Z=t.props.children);return n&&(ne=!0),e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:Y(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));te&&(J=b?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Z);let oe,ae=W;!s&&V&&z&&(ae=G.clientWidth),oe=void 0!==_?_:p?null:0;const ie=R.id||(x?`mui-component-select-${x}`:void 0),se=(0,Lo.A)({},t,{variant:P,value:M,open:X,error:h}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${(0,mf.A)(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,Pp.A)(s,hw,t)})(se),ce=(0,Lo.A)({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=(0,db.A)();return(0,Po.jsxs)(e.Fragment,{children:[(0,Po.jsx)(yw,(0,Lo.A)({ref:H,tabIndex:oe,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!T){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Q(!0,e))}},onMouseDown:p||T?null:e=>{0===e.button&&(e.preventDefault(),$.current.focus(),Q(!0,e))},onBlur:e=>{!X&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:x}}),w(e))},onFocus:A},R,{ownerState:se,className:(0,Ip.A)(R.className,le.select,c),id:ie,children:Ew(J)?vw||(vw=(0,Po.jsx)("span",{className:"notranslate",children:"​"})):J})),(0,Po.jsx)(xw,(0,Lo.A)({"aria-invalid":h,value:Array.isArray(M)?M.join(","):M,name:x,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(L(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:i,ownerState:se},N)),(0,Po.jsx)(bw,{as:m,className:le.icon,ownerState:se}),(0,Po.jsx)(ow,(0,Lo.A)({id:`menu-${x||""}`,anchorEl:G,open:X,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:(0,Lo.A)({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:(0,Lo.A)({},y.slotProps,{paper:(0,Lo.A)({},ce,{style:(0,Lo.A)({minWidth:ae},null!=ce?ce.style:null)})}),children:re}))]})})),Aw=(0,sh.A)((0,Po.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Cw=["root"],Tw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,_p.ep)(e)&&"variant"!==e,slot:"Root"},Ow=(0,_p.Ay)(Bb,Tw)(""),Rw=(0,_p.Ay)(ix,Tw)(""),_w=(0,_p.Ay)(Qb,Tw)(""),Iw=e.forwardRef((function(t,n){const r=(0,Mp.A)({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Aw,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:v,multiple:g=!1,native:y=!1,onClose:b,onOpen:x,open:w,renderValue:E,SelectDisplayProps:S,variant:A="outlined"}=r,k=(0,Do.A)(r,kw),C=y?pw:Sw,T=xb({props:r,muiFormControl:Eb(),states:["variant","error"]}),O=T.variant||A,R=(0,Lo.A)({},r,{variant:O,classes:i}),_=(e=>{const{classes:t}=e;return t})(R),I=(0,Do.A)(_,Cw),P=p||{standard:(0,Po.jsx)(Ow,{ownerState:R}),outlined:(0,Po.jsx)(Rw,{label:h,ownerState:R}),filled:(0,Po.jsx)(_w,{ownerState:R})}[O],N=(0,Lp.A)(n,P.ref);return(0,Po.jsx)(e.Fragment,{children:e.cloneElement(P,(0,Lo.A)({inputComponent:C,inputProps:(0,Lo.A)({children:a,error:T.error,IconComponent:u,variant:O,type:void 0,multiple:g},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:b,onOpen:x,open:w,renderValue:E,SelectDisplayProps:(0,Lo.A)({id:d},S)},f,{classes:f?(0,pb.A)(I,f.classes):I},p?p.props.inputProps:{})},g&&y&&"outlined"===O?{notched:!0}:{},{ref:N,className:(0,Ip.A)(P.props.className,s,_.root)},!p&&{variant:O},k))})}));Iw.muiName="Select";const Pw=Iw;function Nw(e){return(0,cf.Ay)("MuiTextField",e)}(0,Qp.A)("MuiTextField",["root"]);const Mw=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Lw={standard:Bb,filled:Qb,outlined:ix},Dw=(0,_p.Ay)(xx,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fw=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:h,InputLabelProps:m,inputProps:v,InputProps:g,inputRef:y,label:b,maxRows:x,minRows:w,multiline:E=!1,name:S,onBlur:A,onChange:k,onFocus:C,placeholder:T,required:O=!1,rows:R,select:_=!1,SelectProps:I,type:P,value:N,variant:M="outlined"}=n,L=(0,Do.A)(n,Mw),D=(0,Lo.A)({},n,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:p,multiline:E,required:O,select:_,variant:M}),F=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"]},Nw,t)})(D);const j={};"outlined"===M&&(m&&void 0!==m.shrink&&(j.notched=m.shrink),j.label=b),_&&(I&&I.native||(j.id=void 0),j["aria-describedby"]=void 0);const $=(0,db.A)(h),z=f&&$?`${$}-helper-text`:void 0,B=b&&$?`${$}-label`:void 0,V=Lw[M],W=(0,Po.jsx)(V,(0,Lo.A)({"aria-describedby":z,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:p,multiline:E,name:S,rows:R,maxRows:x,minRows:w,type:P,value:N,id:$,inputRef:y,onBlur:A,onChange:k,onFocus:C,placeholder:T,inputProps:v},j,g));return(0,Po.jsxs)(Dw,(0,Lo.A)({className:(0,Ip.A)(F.root,i),disabled:c,error:u,fullWidth:p,ref:t,required:O,color:s,variant:M,ownerState:D},L,{children:[null!=b&&""!==b&&(0,Po.jsx)(vx,(0,Lo.A)({htmlFor:$,id:B},m,{children:b})),_?(0,Po.jsx)(Pw,(0,Lo.A)({"aria-describedby":z,id:$,labelId:B,value:N,input:W},I,{children:a})):W,f&&(0,Po.jsx)(Cx,(0,Lo.A)({id:z},d,{children:f}))]}))}));function jw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $w(e){return e instanceof jw(e).Element||e instanceof Element}function zw(e){return e instanceof jw(e).HTMLElement||e instanceof HTMLElement}function Bw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof jw(e).ShadowRoot||e instanceof ShadowRoot)}var Vw=Math.max,Ww=Math.min,Uw=Math.round;function qw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Hw(){return!/^((?!chrome|android).)*safari/i.test(qw())}function Gw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&zw(e)&&(o=e.offsetWidth>0&&Uw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Uw(r.height)/e.offsetHeight||1);var i=($w(e)?jw(e):window).visualViewport,s=!Hw()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Qw(e){var t=jw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kw(e){return e?(e.nodeName||"").toLowerCase():null}function Yw(e){return(($w(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xw(e){return Gw(Yw(e)).left+Qw(e).scrollLeft}function Jw(e){return jw(e).getComputedStyle(e)}function Zw(e){var t=Jw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eE(e,t,n){void 0===n&&(n=!1);var r,o,a=zw(t),i=zw(t)&&function(e){var t=e.getBoundingClientRect(),n=Uw(t.width)/e.offsetWidth||1,r=Uw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Yw(t),l=Gw(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Kw(t)||Zw(s))&&(c=(r=t)!==jw(r)&&zw(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Qw(r)),zw(t)?((u=Gw(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Xw(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function tE(e){var t=Gw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nE(e){return"html"===Kw(e)?e:e.assignedSlot||e.parentNode||(Bw(e)?e.host:null)||Yw(e)}function rE(e){return["html","body","#document"].indexOf(Kw(e))>=0?e.ownerDocument.body:zw(e)&&Zw(e)?e:rE(nE(e))}function oE(e,t){var n;void 0===t&&(t=[]);var r=rE(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=jw(r),i=o?[a].concat(a.visualViewport||[],Zw(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(oE(nE(i)))}function aE(e){return["table","td","th"].indexOf(Kw(e))>=0}function iE(e){return zw(e)&&"fixed"!==Jw(e).position?e.offsetParent:null}function sE(e){for(var t=jw(e),n=iE(e);n&&aE(n)&&"static"===Jw(n).position;)n=iE(n);return n&&("html"===Kw(n)||"body"===Kw(n)&&"static"===Jw(n).position)?t:n||function(e){var t=/firefox/i.test(qw());if(/Trident/i.test(qw())&&zw(e)&&"fixed"===Jw(e).position)return null;var n=nE(e);for(Bw(n)&&(n=n.host);zw(n)&&["html","body"].indexOf(Kw(n))<0;){var r=Jw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var lE="top",cE="bottom",uE="right",dE="left",pE="auto",fE=[lE,cE,uE,dE],hE="start",mE="end",vE="clippingParents",gE="viewport",yE="popper",bE="reference",xE=fE.reduce((function(e,t){return e.concat([t+"-"+hE,t+"-"+mE])}),[]),wE=[].concat(fE,[pE]).reduce((function(e,t){return e.concat([t,t+"-"+hE,t+"-"+mE])}),[]),EE=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function SE(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function AE(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var kE={placement:"bottom",modifiers:[],strategy:"absolute"};function CE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function TE(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?kE:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},kE,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,s),o.scrollParents={reference:$w(e)?oE(e):e.contextElement?oE(e.contextElement):[],popper:oE(t)};var u,d,p=function(e){var t=SE(e);return EE.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,o.options.modifiers),d=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:o,name:t,instance:l,options:r}),c=function(){};i.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(CE(t,n)){o.rects={reference:eE(t,sE(n),"fixed"===o.options.strategy),popper:tE(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var a=o.orderedModifiers[r],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:AE((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!CE(e,t))return l;function c(){i.forEach((function(e){return e()})),i=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var OE={passive:!0};function RE(e){return e.split("-")[0]}function _E(e){return e.split("-")[1]}function IE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function PE(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?RE(o):null,i=o?_E(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case lE:t={x:s,y:n.y-r.height};break;case cE:t={x:s,y:n.y+n.height};break;case uE:t={x:n.x+n.width,y:l};break;case dE:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?IE(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case hE:t[c]=t[c]-(n[u]/2-r[u]/2);break;case mE:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var NE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ME(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,v="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=dE,x=lE,w=window;if(c){var E=sE(n),S="clientHeight",A="clientWidth";if(E===jw(n)&&"static"!==Jw(E=Yw(n)).position&&"absolute"===s&&(S="scrollHeight",A="scrollWidth"),o===lE||(o===dE||o===uE)&&a===mE)x=cE,m-=(d&&E===w&&w.visualViewport?w.visualViewport.height:E[S])-r.height,m*=l?1:-1;if(o===dE||(o===lE||o===cE)&&a===mE)b=uE,f-=(d&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-r.width,f*=l?1:-1}var k,C=Object.assign({position:s},c&&NE),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Uw(n*o)/o||0,y:Uw(r*o)/o||0}}({x:f,y:m},jw(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},C,((k={})[x]=y?"0":"",k[b]=g?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},C,((t={})[x]=y?m+"px":"",t[b]=g?f+"px":"",t.transform="",t))}var LE={left:"right",right:"left",bottom:"top",top:"bottom"};function DE(e){return e.replace(/left|right|bottom|top/g,(function(e){return LE[e]}))}var FE={start:"end",end:"start"};function jE(e){return e.replace(/start|end/g,(function(e){return FE[e]}))}function $E(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function BE(e,t,n){return t===gE?zE(function(e,t){var n=jw(e),r=Yw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Hw();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Xw(e),y:l}}(e,n)):$w(t)?function(e,t){var n=Gw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):zE(function(e){var t,n=Yw(e),r=Qw(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Vw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Vw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Xw(e),l=-r.scrollTop;return"rtl"===Jw(o||n).direction&&(s+=Vw(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Yw(e)))}function VE(e,t,n,r){var o="clippingParents"===t?function(e){var t=oE(nE(e)),n=["absolute","fixed"].indexOf(Jw(e).position)>=0&&zw(e)?sE(e):e;return $w(n)?t.filter((function(e){return $w(e)&&$E(e,n)&&"body"!==Kw(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=BE(e,n,r);return t.top=Vw(o.top,t.top),t.right=Ww(o.right,t.right),t.bottom=Ww(o.bottom,t.bottom),t.left=Vw(o.left,t.left),t}),BE(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function WE(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function UE(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function qE(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?vE:s,c=n.rootBoundary,u=void 0===c?gE:c,d=n.elementContext,p=void 0===d?yE:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=WE("number"!=typeof v?v:UE(v,fE)),y=p===yE?bE:yE,b=e.rects.popper,x=e.elements[h?y:p],w=VE($w(x)?x:x.contextElement||Yw(e.elements.popper),l,u,i),E=Gw(e.elements.reference),S=PE({reference:E,element:b,strategy:"absolute",placement:o}),A=zE(Object.assign({},b,S)),k=p===yE?A:E,C={top:w.top-k.top+g.top,bottom:k.bottom-w.bottom+g.bottom,left:w.left-k.left+g.left,right:k.right-w.right+g.right},T=e.modifiersData.offset;if(p===yE&&T){var O=T[o];Object.keys(C).forEach((function(e){var t=[uE,cE].indexOf(e)>=0?1:-1,n=[lE,cE].indexOf(e)>=0?"y":"x";C[e]+=O[n]*t}))}return C}function HE(e,t,n){return Vw(e,Ww(t,n))}function GE(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function QE(e){return[lE,uE,cE,dE].some((function(t){return e[t]>=0}))}var KE=TE({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=jw(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,OE)})),s&&l.addEventListener("resize",n.update,OE),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,OE)})),s&&l.removeEventListener("resize",n.update,OE)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=PE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:RE(t.placement),variation:_E(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ME(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ME(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];zw(o)&&Kw(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});zw(r)&&Kw(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=wE.reduce((function(e,n){return e[n]=function(e,t,n){var r=RE(e),o=[dE,lE].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[dE,uE].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,g=RE(v),y=l||(g===v||!h?[DE(v)]:function(e){if(RE(e)===pE)return[];var t=DE(e);return[jE(e),t,jE(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(RE(n)===pE?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?wE:l,u=_E(r),d=u?s?xE:xE.filter((function(e){return _E(e)===u})):fE,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=qE(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[RE(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,E=new Map,S=!0,A=b[0],k=0;k<b.length;k++){var C=b[k],T=RE(C),O=_E(C)===hE,R=[lE,cE].indexOf(T)>=0,_=R?"width":"height",I=qE(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=R?O?uE:dE:O?cE:lE;x[_]>w[_]&&(P=DE(P));var N=DE(P),M=[];if(a&&M.push(I[T]<=0),s&&M.push(I[P]<=0,I[N]<=0),M.every((function(e){return e}))){A=C,S=!1;break}E.set(C,M)}if(S)for(var L=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},D=h?3:1;D>0;D--){if("break"===L(D))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,v=qE(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=RE(t.placement),y=_E(t.placement),b=!y,x=IE(g),w="x"===x?"y":"x",E=t.modifiersData.popperOffsets,S=t.rects.reference,A=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(a){var R,_="y"===x?lE:dE,I="y"===x?cE:uE,P="y"===x?"height":"width",N=E[x],M=N+v[_],L=N-v[I],D=f?-A[P]/2:0,F=y===hE?S[P]:A[P],j=y===hE?-A[P]:-S[P],$=t.elements.arrow,z=f&&$?tE($):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=B[_],W=B[I],U=HE(0,S[P],z[P]),q=b?S[P]/2-D-U-V-C.mainAxis:F-U-V-C.mainAxis,H=b?-S[P]/2+D+U+W+C.mainAxis:j+U+W+C.mainAxis,G=t.elements.arrow&&sE(t.elements.arrow),Q=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,K=null!=(R=null==T?void 0:T[x])?R:0,Y=N+H-K,X=HE(f?Ww(M,N+q-K-Q):M,N,f?Vw(L,Y):L);E[x]=X,O[x]=X-N}if(s){var J,Z="x"===x?lE:dE,ee="x"===x?cE:uE,te=E[w],ne="y"===w?"height":"width",re=te+v[Z],oe=te-v[ee],ae=-1!==[lE,dE].indexOf(g),ie=null!=(J=null==T?void 0:T[w])?J:0,se=ae?re:te-S[ne]-A[ne]-ie+C.altAxis,le=ae?te+S[ne]+A[ne]-ie-C.altAxis:oe,ce=f&&ae?function(e,t,n){var r=HE(e,t,n);return r>n?n:r}(se,te,le):HE(f?se:re,te,f?le:oe);E[w]=ce,O[w]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=RE(n.placement),l=IE(s),c=[dE,uE].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return WE("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:UE(e,fE))}(o.padding,n),d=tE(a),p="y"===l?lE:dE,f="y"===l?cE:uE,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],v=sE(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=u[p],x=g-d[c]-u[f],w=g/2-d[c]/2+y,E=HE(b,w,x),S=l;n.modifiersData[r]=((t={})[S]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&$E(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=qE(t,{elementContext:"reference"}),s=qE(t,{altBoundary:!0}),l=GE(i,r),c=GE(s,o,a),u=QE(l),d=QE(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function YE(e){return(0,cf.Ay)("MuiPopper",e)}(0,Qp.A)("MuiPopper",["root"]);const XE={disableDefaultClasses:!1},JE=e.createContext(XE);const ZE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eS=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tS(e){return"function"==typeof e?e():e}function nS(e){return void 0!==e.nodeType}const rS=()=>(0,Pp.A)({root:["root"]},function(t){const{disableDefaultClasses:n}=e.useContext(JE);return e=>n?"":t(e)}(YE)),oS={},aS=e.forwardRef((function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:m}=t,v=(0,Wo.A)(t,ZE),g=e.useRef(null),y=(0,dm.A)(g,n),b=e.useRef(null),x=(0,dm.A)(b,p),w=e.useRef(x);(0,Cy.A)((()=>{w.current=x}),[x]),e.useImperativeHandle(p,(()=>b.current),[]);const E=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[S,A]=e.useState(E),[k,C]=e.useState(tS(o));e.useEffect((()=>{b.current&&b.current.forceUpdate()})),e.useEffect((()=>{o&&C(tS(o))}),[o]),(0,Cy.A)((()=>{if(!k||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{A(e.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=KE(k,g.current,(0,Fo.A)({placement:E},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[k,s,l,c,d,E]);const T={placement:S};null!==m&&(T.TransitionProps=m);const O=rS(),R=null!=(r=h.root)?r:"div",_=vm({elementType:R,externalSlotProps:f.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:O.root});return(0,Po.jsx)(R,(0,Fo.A)({},_,{children:"function"==typeof a?a(T):a}))})),iS=e.forwardRef((function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=oS,popperRef:f,style:h,transition:m=!1,slotProps:v={},slots:g={}}=t,y=(0,Wo.A)(t,eS),[b,x]=e.useState(!0);if(!l&&!u&&(!m||b))return null;let w;if(a)w=a;else if(r){const e=tS(r);w=e&&nS(e)?(0,uy.A)(e).body:(0,uy.A)(null).body}const E=u||!l||m&&!b?void 0:"none",S=m?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,Po.jsx)(Oy,{disablePortal:s,container:w,children:(0,Po.jsx)(aS,(0,Fo.A)({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:m?!b:u,placement:d,popperOptions:p,popperRef:f,slotProps:v,slots:g},y,{style:(0,Fo.A)({position:"fixed",top:0,left:0,display:E},h),TransitionProps:S,children:o}))})})),sS=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],lS=(0,_p.Ay)(iS,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cS=e.forwardRef((function(e,t){var n;const r=(0,Vo.A)(),o=(0,Mp.A)({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:v,transition:g,slots:y,slotProps:b}=o,x=(0,Do.A)(o,sS),w=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,E=(0,Lo.A)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:v,transition:g},x);return(0,Po.jsx)(lS,(0,Lo.A)({as:i,direction:null==r?void 0:r.direction,slots:{root:w},slotProps:null!=b?b:l},E,{ref:t}))}));var uS=o(9842);function dS(e){return(0,cf.Ay)("MuiTooltip",e)}const pS=(0,Qp.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),fS=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const hS=(0,_p.Ay)(cS,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,Lo.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${pS.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${pS.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${pS.arrow}`]:(0,Lo.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${pS.arrow}`]:(0,Lo.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),mS=(0,_p.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,mf.A)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,Lo.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Np.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${pS.popper}[data-popper-placement*="left"] &`]:(0,Lo.A)({transformOrigin:"right center"},t.isRtl?(0,Lo.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,Lo.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${pS.popper}[data-popper-placement*="right"] &`]:(0,Lo.A)({transformOrigin:"left center"},t.isRtl?(0,Lo.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,Lo.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${pS.popper}[data-popper-placement*="top"] &`]:(0,Lo.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${pS.popper}[data-popper-placement*="bottom"] &`]:(0,Lo.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),vS=(0,_p.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Np.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gS=!1,yS=null,bS={x:0,y:0};function xS(e,t){return n=>{t&&t(n),e(n)}}const wS=e.forwardRef((function(t,n){var r,o,a,i,s,l,c,u,d,p,f,h,m,v,g,y,b,x,w;const E=(0,Mp.A)({props:t,name:"MuiTooltip"}),{arrow:S=!1,children:A,components:k={},componentsProps:C={},describeChild:T=!1,disableFocusListener:O=!1,disableHoverListener:R=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:P=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:L=!1,id:D,leaveDelay:F=0,leaveTouchDelay:j=1500,onClose:$,onOpen:z,open:B,placement:V="bottom",PopperComponent:W,PopperProps:U={},slotProps:q={},slots:H={},title:G,TransitionComponent:Q=Hh,TransitionProps:K}=E,Y=(0,Do.A)(E,fS),X=e.isValidElement(A)?A:(0,Po.jsx)("span",{children:A}),J=jh(),Z="rtl"===J.direction,[ee,te]=e.useState(),[ne,re]=e.useState(null),oe=e.useRef(!1),ae=_||L,ie=e.useRef(),se=e.useRef(),le=e.useRef(),ce=e.useRef(),[ue,de]=(0,fw.A)({controlled:B,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=(0,uS.A)(D),he=e.useRef(),me=e.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(ce.current)}),[]);e.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(se.current),clearTimeout(le.current),me()}),[me]);const ve=e=>{clearTimeout(yS),gS=!0,de(!0),z&&!pe&&z(e)},ge=(0,Dp.A)((e=>{clearTimeout(yS),yS=setTimeout((()=>{gS=!1}),800+F),de(!1),$&&pe&&$(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{oe.current=!1}),J.transitions.duration.shortest)})),ye=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(se.current),clearTimeout(le.current),P||gS&&N?se.current=setTimeout((()=>{ve(e)}),gS?N:P):ve(e))},be=e=>{clearTimeout(se.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),F)},{isFocusVisibleRef:xe,onBlur:we,onFocus:Ee,ref:Se}=(0,Fp.A)(),[,Ae]=e.useState(!1),ke=e=>{we(e),!1===xe.current&&(Ae(!1),be(e))},Ce=e=>{ee||te(e.currentTarget),Ee(e),!0===xe.current&&(Ae(!0),ye(e))},Te=e=>{oe.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Oe=ye,Re=be,_e=e=>{Te(e),clearTimeout(le.current),clearTimeout(ie.current),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,ye(e)}),M)},Ie=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),j)};e.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,pe]);const Pe=(0,Lp.A)(X.ref,Se,te,n);G||0===G||(pe=!1);const Ne=e.useRef(),Me={},Le="string"==typeof G;T?(Me.title=pe||!Le||R?null:G,Me["aria-describedby"]=pe?fe:null):(Me["aria-label"]=Le?G:null,Me["aria-labelledby"]=pe&&!Le?fe:null);const De=(0,Lo.A)({},Me,Y,X.props,{className:(0,Ip.A)(Y.className,X.props.className),onTouchStart:Te,ref:Pe},L?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),bS={x:e.clientX,y:e.clientY},Ne.current&&Ne.current.update()}}:{});const Fe={};I||(De.onTouchStart=_e,De.onTouchEnd=Ie),R||(De.onMouseOver=xS(Oe,De.onMouseOver),De.onMouseLeave=xS(Re,De.onMouseLeave),ae||(Fe.onMouseOver=Oe,Fe.onMouseLeave=Re)),O||(De.onFocus=xS(Ce,De.onFocus),De.onBlur=xS(ke,De.onBlur),ae||(Fe.onFocus=Ce,Fe.onBlur=ke));const je=e.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=U.popperOptions)&&e.modifiers&&(t=t.concat(U.popperOptions.modifiers)),(0,Lo.A)({},U.popperOptions,{modifiers:t})}),[ne,U]),$e=(0,Lo.A)({},E,{isRtl:Z,arrow:S,disableInteractive:ae,placement:V,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,mf.A)(a.split("-")[0])}`],arrow:["arrow"]};return(0,Pp.A)(i,dS,t)})($e),Be=null!=(r=null!=(o=H.popper)?o:k.Popper)?r:hS,Ve=null!=(a=null!=(i=null!=(s=H.transition)?s:k.Transition)?i:Q)?a:Hh,We=null!=(l=null!=(c=H.tooltip)?c:k.Tooltip)?l:mS,Ue=null!=(u=null!=(d=H.arrow)?d:k.Arrow)?u:vS,qe=pm(Be,(0,Lo.A)({},U,null!=(p=q.popper)?p:C.popper,{className:(0,Ip.A)(ze.popper,null==U?void 0:U.className,null==(f=null!=(h=q.popper)?h:C.popper)?void 0:f.className)}),$e),He=pm(Ve,(0,Lo.A)({},K,null!=(m=q.transition)?m:C.transition),$e),Ge=pm(We,(0,Lo.A)({},null!=(v=q.tooltip)?v:C.tooltip,{className:(0,Ip.A)(ze.tooltip,null==(g=null!=(y=q.tooltip)?y:C.tooltip)?void 0:g.className)}),$e),Qe=pm(Ue,(0,Lo.A)({},null!=(b=q.arrow)?b:C.arrow,{className:(0,Ip.A)(ze.arrow,null==(x=null!=(w=q.arrow)?w:C.arrow)?void 0:x.className)}),$e);return(0,Po.jsxs)(e.Fragment,{children:[e.cloneElement(X,De),(0,Po.jsx)(Be,(0,Lo.A)({as:null!=W?W:cS,placement:V,anchorEl:L?{getBoundingClientRect:()=>({top:bS.y,left:bS.x,right:bS.x,bottom:bS.y,width:0,height:0})}:ee,popperRef:Ne,open:!!ee&&pe,id:fe,transition:!0},Fe,qe,{popperOptions:je,children:({TransitionProps:e})=>(0,Po.jsx)(Ve,(0,Lo.A)({timeout:J.transitions.duration.shorter},e,He,{children:(0,Po.jsxs)(We,(0,Lo.A)({},Ge,{children:[G,S?(0,Po.jsx)(Ue,(0,Lo.A)({},Qe,{ref:re})):null]}))}))}))]})}));var ES=o(6912);const SS=({enabled:t=!1,timeout:n=1e3,callback:r})=>{const[o,a]=(0,e.useState)(0),i=(0,e.useRef)((()=>{})),s=(0,e.useRef)((()=>{})),l=(0,e.useRef)((()=>{})),c=(0,e.useCallback)((()=>{o&&(clearTimeout(o),a(0))}),[o]),u=(0,e.useCallback)((()=>{l.current(),a(setTimeout((()=>{i.current()}),n))}),[n]),d=(0,e.useCallback)((()=>{o&&(r(),s.current())}),[o,r]);(0,e.useEffect)((()=>{s.current=u}),[u]),(0,e.useEffect)((()=>{l.current=c}),[c]),(0,e.useEffect)((()=>{i.current=d}),[d]),(0,e.useEffect)((()=>(t&&s.current(),()=>{l.current()})),[t])},AS=t=>{const[n,r]=(0,e.useState)(!1),[o,a]=(0,e.useState)(!1),[i,s]=(0,e.useState)(0),l=(0,e.useRef)((()=>{})),{conversation_id:c}=pe((e=>e.conversationState)),u=(()=>{const{liveChat:e}=pe((e=>e.messages)),[t]=Ov(Ng,{onError:e=>{console.error(e)}});return e?(e,n)=>{t({variables:{conversationId:e,draftMessage:n}})}:()=>{}})(),d=(0,e.useCallback)((()=>{u(c,t)}),[t]);(0,e.useEffect)((()=>{l.current=d}),[d]);(0,e.useEffect)((()=>{n?o||a(!0):o&&a(!1)}),[n]),SS({enabled:o,callback:()=>{l.current()},timeout:5e3}),(0,e.useEffect)((()=>()=>u(c,"")),[c]);return{handleTypingResponse:(0,e.useCallback)((()=>{n||r(!0),i&&clearTimeout(i),s(setTimeout((()=>{r(!1),s(0)}),2e3))}),[n,i]),onSubmitTyping:(0,e.useCallback)((()=>{i&&clearTimeout(i),s(0),r(!1),a(!1),l.current=()=>{}}),[i])}};var kS=function(){return kS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kS.apply(this,arguments)},CS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},TS=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},OS="ChatInputWrapper",RS={form:"".concat(OS,"-form"),inputWrapper:"".concat(OS,"-inputWrapper"),input:"".concat(OS,"-input"),formWrapper:"".concat(OS,"-formWrapper"),buttonWrapper:"".concat(OS,"-buttonWrapper"),hidden:"".concat(OS,"-hidden"),disconnected:"".concat(OS,"-disconnected")},_S=(0,_p.Ay)("div")((function(e){var t,n=e.theme;return(t={})["& .".concat(RS.form)]={position:"relative"},t["& .".concat(RS.inputWrapper)]={padding:n.spacing(1,2),display:"flex",alignItems:"center","& textarea":{boxShadow:"none"},transition:"opacity 500ms ease-in-out"},t["& .".concat(RS.input)]={"&::placeholder":{color:ES.A[600],opacity:1}},t["& .".concat(RS.formWrapper)]={flex:1},t["& .".concat(RS.buttonWrapper)]={flex:"0 auto",marginLeft:n.spacing(1)},t["& .".concat(RS.hidden)]={position:"absolute",left:"-10000em",width:"1px",height:"1px",overflow:"hidden"},t["& .".concat(RS.disconnected)]={position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",transition:"opacity 500ms ease-in-out",pointerEvents:"none"},t})),IS=function(){},PS=(0,e.forwardRef)((function(t,n){var r=t.onSubmit,o=t.outstanding,a=void 0!==o&&o,i=t.handleTypingResponse,s=void 0===i?IS:i,l=t.onSubmitTyping,c=void 0===l?IS:l,u=t.message,d=t.setMessage,p=t.wrapper,f=Um().LL,h=pe((function(e){return e.chatbotUi.placeholder})),m=pe((function(e){return!e.messages.liveChatUiConnected})),v=pe((function(e){return e.language.lang})),g=TS(Zg(),2)[1];(0,e.useEffect)((function(){g(u.length>0)}),[g,u]);var y=function(){!a&&u.trim()&&(r(u,v),d(""),c())},b="Ask a question"===h?f.ASK_QUESTION():h;return e.createElement(_S,null,e.createElement("form",{onSubmit:function(e){e.preventDefault(),y()},"data-testid":"chat-input-form",className:RS.form},e.createElement(em,{className:RS.inputWrapper,sx:{opacity:m?.33:1}},e.createElement("div",{className:RS.formWrapper},e.createElement(Fw,{id:"ask-a-question-input",autoComplete:"off",fullWidth:!0,inputProps:{className:RS.input,maxLength:500,"aria-label":b},multiline:!0,onChange:function(e){d(e.currentTarget.value),s()},onKeyPress:function(e){13===e.charCode&&(e.preventDefault(),y())},placeholder:b,minRows:1,maxRows:5,spellCheck:"false",value:u,inputRef:n,disabled:m,variant:"standard"})),e.createElement("div",{className:RS.buttonWrapper},e.createElement(wS,{title:m?f.SEND_DISCONNECTED():f.SEND_MESSAGE(),enterDelay:300,placement:"left",PopperProps:{container:p}},e.createElement("span",null,e.createElement(xf,{type:"submit","aria-label":f.SEND_MESSAGE(),disabled:m,size:"large"},e.createElement(ub,null)))))),e.createElement(em,{className:RS.disconnected,sx:{opacity:m?1:0}},e.createElement(Tm,null))))}));PS.displayName="ChatInput";var NS=(0,e.forwardRef)((function(t,n){var r=t.message,o=CS(t,["message"]),a=AS(r),i=a.handleTypingResponse,s=a.onSubmitTyping;return e.createElement(PS,kS({ref:n,message:r,handleTypingResponse:i,onSubmitTyping:s},o))}));NS.displayName="WithTypingInterval";var MS=(0,e.forwardRef)((function(t,n){var r=TS((0,e.useState)(""),2),o=r[0],a=r[1];return pe((function(e){return e.messages})).liveChat?e.createElement(NS,kS({message:o,setMessage:a},t)):e.createElement(PS,kS({ref:n,message:o,setMessage:a},t))}));MS.displayName="ChatInputWrapper";const LS=MS,DS=(0,sh.A)((0,Po.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function FS(e,t){const n=(0,Fo.A)({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,Fo.A)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=(0,Fo.A)({},a),Object.keys(o).forEach((e=>{n[r][e]=FS(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function jS(e){return(0,cf.Ay)("MuiButton",e)}const $S=(0,Qp.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const zS=e.createContext({});const BS=e.createContext(void 0),VS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],WS=e=>(0,Lo.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),US=(0,_p.Ay)(hf,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,mf.A)(n.color)}`],t[`size${(0,mf.A)(n.size)}`],t[`${n.variant}Size${(0,mf.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,Lo.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,Lo.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Np.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Np.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Np.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,Lo.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$S.focusVisible}`]:(0,Lo.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$S.disabled}`]:(0,Lo.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,Np.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${$S.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$S.disabled}`]:{boxShadow:"none"}})),qS=(0,_p.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,mf.A)(n.size)}`]]}})((({ownerState:e})=>(0,Lo.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},WS(e)))),HS=(0,_p.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,mf.A)(n.size)}`]]}})((({ownerState:e})=>(0,Lo.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},WS(e)))),GS=e.forwardRef((function(t,n){const r=e.useContext(zS),o=e.useContext(BS),a=FS(r,t),i=(0,Mp.A)({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:m,fullWidth:v=!1,size:g="medium",startIcon:y,type:b,variant:x="text"}=i,w=(0,Do.A)(i,VS),E=(0,Lo.A)({},i,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:v,size:g,type:b,variant:x}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${(0,mf.A)(t)}`,`size${(0,mf.A)(o)}`,`${a}Size${(0,mf.A)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,mf.A)(o)}`],endIcon:["endIcon",`iconSize${(0,mf.A)(o)}`]},l=(0,Pp.A)(s,jS,i);return(0,Lo.A)({},i,l)})(E),A=y&&(0,Po.jsx)(qS,{className:S.startIcon,ownerState:E,children:y}),k=h&&(0,Po.jsx)(HS,{className:S.endIcon,ownerState:E,children:h}),C=o||"";return(0,Po.jsxs)(US,(0,Lo.A)({ownerState:E,className:(0,Ip.A)(r.className,S.root,u,C),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:(0,Ip.A)(S.focusVisible,m),ref:n,type:b},w,{classes:S,children:[A,s,k]}))}));var QS=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},KS=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},YS=function(){var e=pe((function(e){return e.messages.items})),t=e.filter((function(e){return!0===e.highlight})),n=Um().LL;if(t.length>0){var r=QS(t.filter((function(e){return"user"!==e.type})),1)[0];if(r&&r.explore)return r.explore}else{var o=QS(KS([],QS(e),!1).reverse(),1)[0];if(o&&o.explore){var a=o.explore||{},i=a.links,s=void 0===i?[]:i,l=a.suggestions,c=void 0===l?[]:l,u=a.videos;return{links:s,suggestions:c,videos:void 0===u?[]:u,exploreLinksName:ir(o)?n.SOURCES():n.LINKS()}}}},XS=function(){var e=pe((function(e){return e.explore.backdropTab})),t=YS()||{},n=t.links,r=void 0===n?[]:n,o=t.suggestions,a=void 0===o?[]:o,i=t.videos,s=void 0===i?[]:i;switch(e){case 0:return{type:Ct.Suggestions,data:a};case 1:return{type:Ct.Videos,data:s};case 2:return{type:Ct.Links,data:r};default:return{type:void 0,data:void 0}}},JS=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},ZS=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},eA=300,tA="createBackdropWrapper",nA={backdropLayer:"".concat(tA,"-backdropLayer"),content:"".concat(tA,"-content"),contentInner:"".concat(tA,"-contentInner"),contentInnerOpened:"".concat(tA,"-contentInnerOpened"),trapFocusOpened:"".concat(tA,"-trapFocusOpened"),trapFocusClosed:"".concat(tA,"-trapFocusClosed"),closeButton:"".concat(tA,"-closeButton"),closeButtonWrapper:"".concat(tA,"-closeButtonWrapper"),curve:"".concat(tA,"-curve"),curveOpen:"".concat(tA,"-curveOpen"),topLayer:"".concat(tA,"-topLayer"),wrapper:"".concat(tA,"-wrapper"),colorAction:"".concat(tA,"-colorAction")},rA=(0,_p.Ay)("div")((function(e){var t,n=e.theme;return(t={})["& .".concat(nA.backdropLayer)]={position:"relative",width:"100%",top:"initial",right:"initial",bottom:"initial",left:"initial",transform:"initial"},t["& .".concat(nA.content)]={color:"#fff",display:"flex",flexDirection:"column",wordBreak:"break-word"},t["& .".concat(nA.contentInner)]={overflow:"hidden",transition:"all ".concat(eA,"ms ease-out"),visibility:"hidden"},t["& .".concat(nA.contentInnerOpened)]={visibility:"visible"},t["& .".concat(nA.trapFocusOpened)]={visibility:"visible"},t["& .".concat(nA.trapFocusClosed)]={visibility:"hidden"},t["& .".concat(nA.closeButton)]={padding:n.spacing(.5),"&:focus-visible":{border:"3px solid ".concat(n.palette.primary.contrastText)}},t["& .".concat(nA.closeButtonWrapper)]={display:"flex",justifyContent:"center",marginTop:n.spacing(1),width:"100%"},t["& .".concat(nA.curve)]={backgroundColor:"#fff",borderBottomLeftRadius:0,borderBottomRightRadius:0,height:0,transition:"all ".concat(eA,"ms ease-out")},t["& .".concat(nA.curveOpen)]={borderBottomLeftRadius:n.spacing(1),borderBottomRightRadius:n.spacing(1),height:"8px"},t["& .".concat(nA.topLayer)]={backgroundColor:"#fff",display:"flex",flexDirection:"column",flexGrow:1,overflowX:"hidden",overflowY:"auto",position:"relative",zIndex:1},t["&.".concat(nA.wrapper)]={backgroundColor:n.palette.primary.main,display:"flex",flexDirection:"column",flexGrow:1,minHeight:"0px",overflowX:"hidden",overflowY:"hidden",position:"relative"},t["& .".concat(nA.colorAction)]={color:n.palette.primary.contrastText},t})),oA=function(t,n){var r=JS((0,e.useState)(0),2),o=r[0],a=r[1],i=(0,e.useRef)(null),s=(0,e.useRef)(null),l=(0,e.useCallback)((function(){var e;if(null===(e=s.current)||void 0===e?void 0:e.offsetHeight){var t=s.current.offsetHeight;a(t),i.current!==t&&(i.current=t,setTimeout(l,50))}}),[]);(0,e.useEffect)((function(){setTimeout(l,50)}),ZS([t,l],JS(n),!1)),(0,e.useEffect)((function(){var e=function(){return setTimeout(l,eA)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[l]);var c=(0,e.useRef)(null),u=(0,e.useRef)(null),d=(0,e.useRef)(!1);return(0,e.useEffect)((function(){var e=function(){c.current&&(d.current||(u.current=c.current.scrollTop+c.current.offsetHeight))};return e(),c.current&&c.current.addEventListener("scroll",e),function(){c.current&&c.current.removeEventListener("scroll",e)}}),[]),(0,e.useEffect)((function(){!function(e,t,n,r){var o;e();var a=function(e){return void 0===e&&(e=!1),function(i){o||(o=i),t(),i<o+r?requestAnimationFrame(a()):e?n():setTimeout((function(){requestAnimationFrame(a(!0))}),50)}};requestAnimationFrame(a())}((function(){d.current=!0}),(function(){if(c.current&&u.current){var e=u.current-c.current.offsetHeight;c.current.scrollTo({top:e})}}),(function(){d.current=!1}),eA)}),[t]),{backdropHeight:o,detectHeightRef:s,foregroundRef:c}};const aA=function(t,n,r){return function(o){var a=e.forwardRef((function(a,i){var s,l,c=a.children,u=a.settings,d=t(),p=n(),f=oA(d,r()),h=f.backdropHeight,m=f.detectHeightRef,v=f.foregroundRef,g=(0,e.useRef)(null),y=(0,e.useContext)(lb),b=Um().LL,x=XS().type,w=d?nA.contentInnerOpened:"",E=d?nA.curveOpen:"";(0,e.useEffect)((function(){var e=function(e){"Escape"===e.key&&p()};return d&&window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[d,p]),(0,e.useEffect)((function(){d&&x===Ct.Videos&&setTimeout((function(){var e;null===(e=g.current)||void 0===e||e.focus()}),320)}),[d,x]);var S=((s={})[Ct.Links]=b.EXPLORE_LINKS(),s[Ct.Suggestions]=b.EXPLORE_SUGGESTIONS(),s[Ct.Videos]=b.EXPLORE_VIDEOS(),s),A=((l={})[Ct.Links]=b.CLOSE_LINKS(),l[Ct.Suggestions]=b.CLOSE_SUGGESTIONS(),l[Ct.Videos]=b.CLOSE_VIDEOS(),l);return e.createElement(rA,{className:nA.wrapper},e.createElement("div",{className:nA.topLayer,ref:i},c&&c(v)),e.createElement("div",{className:d?nA.trapFocusOpened:nA.trapFocusClosed},e.createElement(Fn,{open:d,isEnabled:function(){return d},getDoc:function(){return document},allowClickOutside:!0},e.createElement("div",{className:nA.backdropLayer,role:x?"dialog":void 0,"aria-label":x?S[x]:void 0,tabIndex:x?-1:void 0},e.createElement("div",{className:"".concat(nA.curve," ").concat(E)}),d&&e.createElement("div",{className:nA.closeButtonWrapper},e.createElement(GS,{className:nA.closeButton,onClick:p,size:"small","aria-label":x?A[x]:void 0,ref:g},e.createElement(DS,{color:"action",fontSize:"small",classes:{colorAction:nA.colorAction}}))),e.createElement("div",{className:nA.content},e.createElement(em,{sx:{height:d?"".concat(h+(64-y),"px"):0},className:"".concat(nA.contentInner," ").concat(w)},e.createElement(o,{ref:m,settings:u})))))))}));return a.displayName="Backdrop(".concat(o.displayName,")"),a}};var iA=o(5741);function sA(e){return(0,cf.Ay)("MuiCard",e)}(0,Qp.A)("MuiCard",["root"]);const lA=["className","raised"],cA=(0,_p.Ay)(bh,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),uA=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,a=(0,Do.A)(n,lA),i=(0,Lo.A)({},n,{raised:o}),s=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"]},sA,t)})(i);return(0,Po.jsx)(cA,(0,Lo.A)({className:(0,Ip.A)(s.root,r),elevation:o?8:void 0,ref:t,ownerState:i},a))}));function dA(e){return(0,cf.Ay)("MuiCardActions",e)}(0,Qp.A)("MuiCardActions",["root","spacing"]);const pA=["disableSpacing","className"],fA=(0,_p.Ay)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,Lo.A)({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),hA=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiCardActions"}),{disableSpacing:r=!1,className:o}=n,a=(0,Do.A)(n,pA),i=(0,Lo.A)({},n,{disableSpacing:r}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,Pp.A)(r,dA,t)})(i);return(0,Po.jsx)(fA,(0,Lo.A)({className:(0,Ip.A)(s.root,o),ownerState:i,ref:t},a))}));function mA(e){return(0,cf.Ay)("MuiCardContent",e)}(0,Qp.A)("MuiCardContent",["root"]);const vA=["className","component"],gA=(0,_p.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),yA=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiCardContent"}),{className:r,component:o="div"}=n,a=(0,Do.A)(n,vA),i=(0,Lo.A)({},n,{component:o}),s=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"]},mA,t)})(i);return(0,Po.jsx)(gA,(0,Lo.A)({as:o,className:(0,Ip.A)(s.root,r),ownerState:i,ref:t},a))}));function bA(e){return(0,cf.Ay)("MuiCardMedia",e)}(0,Qp.A)("MuiCardMedia",["root","media","img"]);const xA=["children","className","component","image","src","style"],wA=(0,_p.Ay)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})((({ownerState:e})=>(0,Lo.A)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),EA=["video","audio","picture","iframe","img"],SA=["picture","img"],AA=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiCardMedia"}),{children:r,className:o,component:a="div",image:i,src:s,style:l}=n,c=(0,Do.A)(n,xA),u=-1!==EA.indexOf(a),d=!u&&i?(0,Lo.A)({backgroundImage:`url("${i}")`},l):l,p=(0,Lo.A)({},n,{component:a,isMediaComponent:u,isImageComponent:-1!==SA.indexOf(a)}),f=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,o={root:["root",n&&"media",r&&"img"]};return(0,Pp.A)(o,bA,t)})(p);return(0,Po.jsx)(wA,(0,Lo.A)({className:(0,Ip.A)(f.root,o),as:a,role:!u&&i?"img":void 0,ref:t,style:d,ownerState:p,src:u?i||s:void 0},c,{children:r}))}));var kA="VideoResource",CA={aspectWrapper:"".concat(kA,"-aspectWrapper"),duration:"".concat(kA,"-duration"),videoCard:"".concat(kA,"-videoCard")},TA=(0,_p.Ay)("div")((function(e){var t,n=e.theme;return(t={})["& .".concat(CA.aspectWrapper)]={position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},t["& .".concat(CA.duration)]={display:"inline-block",paddingLeft:"6px"},t["& .".concat(CA.videoCard)]={marginBottom:n.spacing(3)},t}));const OA=function(t){var n=t.video,r=t.language,o=t.cbID,a=t.showVideo,i=Um().LL,s=[];n.nid?s.push(n.nid):s=n.nids||[];var l=Kt(n.title,r),c=i.OCELOT_VIDEO_PLAYER(),u='<iframe style="position: absolute !important;';return u+=" left: 0 !important; top: 0 !important;",u+=' width: 100% !important; height: 100% !important;"',u+='  src="'.concat("https://embed.ocelotbot.com","/cms/embed/cbvideo/"),u+=encodeURIComponent(s.join(" ")),u+="?thumbEmbed&language=".concat(r,"&current_entity=").concat(o,'"'),u+=' allowfullscreen="true"',u+=' width="100%" height="100%" scrolling="no" frameborder="0"',u+=' title="'.concat(c," | ").concat(l,'" />'),e.createElement(TA,null,e.createElement("div",{className:CA.videoCard},e.createElement(uA,null,e.createElement(AA,{src:"".concat("https://embed.ocelotbot.com","/api/thumbnail/").concat(s[0])},a&&e.createElement("div",{"aria-live":"off",className:CA.aspectWrapper,dangerouslySetInnerHTML:{__html:u}})),e.createElement(yA,null,e.createElement(Xf,{component:"p"},l,e.createElement(Xf,{variant:"caption",classes:{root:CA.duration},component:"span"},(e=>{const t=parseInt(e,10);return[Math.floor(t/3600)%24,Math.floor(t/60)%60,t%60].map((e=>e<10?`0${e}`:e)).filter(((e,t)=>"00"!==e||t>0)).join(":")})(n.duration)))))))},RA=(0,sh.A)((0,Po.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var _A=o(4349);function IA(e){return(0,cf.Ay)("MuiCollapse",e)}(0,Qp.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const PA=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],NA=(0,_p.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,Lo.A)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,Lo.A)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),MA=(0,_p.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,Lo.A)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),LA=(0,_p.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,Lo.A)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),DA=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:h,onExited:m,onExiting:v,orientation:g="vertical",style:y,timeout:b=_A.p0.standard,TransitionComponent:x=Fh}=r,w=(0,Do.A)(r,PA),E=(0,Lo.A)({},r,{orientation:g,collapsedSize:s}),S=(e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,Pp.A)(r,IA,n)})(E),A=jh(),k=e.useRef(),C=e.useRef(null),T=e.useRef(),O="number"==typeof s?`${s}px`:s,R="horizontal"===g,_=R?"width":"height";e.useEffect((()=>()=>{clearTimeout(k.current)}),[]);const I=e.useRef(null),P=(0,Lp.A)(n,I),N=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},M=()=>C.current?C.current[R?"clientWidth":"clientHeight"]:0,L=N(((e,t)=>{C.current&&R&&(C.current.style.position="absolute"),e.style[_]=O,d&&d(e,t)})),D=N(((e,t)=>{const n=M();C.current&&R&&(C.current.style.position="");const{duration:r,easing:o}=zh({style:y,timeout:b,easing:c},{mode:"enter"});if("auto"===b){const t=A.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,T.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[_]=`${n}px`,e.style.transitionTimingFunction=o,f&&f(e,t)})),F=N(((e,t)=>{e.style[_]="auto",p&&p(e,t)})),j=N((e=>{e.style[_]=`${M()}px`,h&&h(e)})),$=N(m),z=N((e=>{const t=M(),{duration:n,easing:r}=zh({style:y,timeout:b,easing:c},{mode:"exit"});if("auto"===b){const n=A.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,T.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[_]=O,e.style.transitionTimingFunction=r,v&&v(e)}));return(0,Po.jsx)(x,(0,Lo.A)({in:u,onEnter:L,onEntered:F,onEntering:D,onExit:j,onExited:$,onExiting:z,addEndListener:e=>{"auto"===b&&(k.current=setTimeout(e,T.current||0)),o&&o(I.current,e)},nodeRef:I,timeout:"auto"===b?null:b},w,{children:(e,t)=>(0,Po.jsx)(NA,(0,Lo.A)({as:l,className:(0,Ip.A)(S.root,i,{entered:S.entered,exited:!u&&"0px"===O&&S.hidden}[e]),style:(0,Lo.A)({[R?"minWidth":"minHeight"]:O},y),ownerState:(0,Lo.A)({},E,{state:e}),ref:P},t,{children:(0,Po.jsx)(MA,{ownerState:(0,Lo.A)({},E,{state:e}),className:S.wrapper,ref:C,children:(0,Po.jsx)(LA,{ownerState:(0,Lo.A)({},E,{state:e}),className:S.wrapperInner,children:a})})}))}))}));DA.muiSupportAuto=!0;const FA=DA;var jA="WebpageResource",$A={expand:"".concat(jA,"-expand"),expandOpen:"".concat(jA,"-expandOpen"),webpageCard:"".concat(jA,"-webpageCard")},zA=(0,_p.Ay)("div")((function(e){var t,n=e.theme;return(t={})["& .".concat($A.expand)]={transform:"rotate(0deg)",marginLeft:"auto",transition:n.transitions.create("transform",{duration:n.transitions.duration.shortest})},t["& .".concat($A.expandOpen)]={transform:"rotate(180deg)"},t["& .".concat($A.webpageCard)]={marginBottom:n.spacing(3),padding:n.spacing(0,3),"a.MuiButtonBase-root":{textDecoration:"underline",textDecorationColor:n.palette.link}},t}));const BA=e.forwardRef((function(t,n){var r=t.resource,o=t.handleTrackLink,a=t.singleWebsite,i=t.language,s=t.expanded,l=t.handleExpanded,c=t.id,u=r.url,d=null==u?void 0:u.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i),p=(d&&d[1])!==window.location.hostname,f=p?"_blank":"_self",h=p?"noopener":"",m=Um().LL;return e.createElement(zA,null,e.createElement("div",{className:$A.webpageCard},e.createElement(uA,{id:c},a&&e.createElement(yA,null,e.createElement("a",{href:r.url,tabIndex:0,ref:n,target:f,rel:h,onClick:o,onAuxClick:function(e){1===e.button&&o(e)}},e.createElement(Xf,{component:"div",variant:"h5"},Kt(r.title,i)),e.createElement(Xf,{component:"div",variant:"subtitle1"},Qt(r.url),p?e.createElement(RA,{fontSize:"small",style:{verticalAlign:"text-top"}}):null)),e.createElement(Xf,{component:"div",variant:"body2"},e.createElement("span",{dangerouslySetInnerHTML:{__html:r.snippet?Kt(r.snippet,i):""}}))),e.createElement(hA,null,a?e.createElement(GS,{color:"primary",component:"a",href:r.url,target:f,rel:h,onClick:o,onAuxClick:function(e){1===e.button&&o(e)},"data-testid":"descriptiveWebLink","aria-label":m.VISIT_URL({webpage:Kt(r.title,i)})},e.createElement(Xf,{variant:"button",sx:{color:function(e){return e.palette.link?e.palette.link:e.palette.primary.dark}}},r.actionLabel?Kt(r.actionLabel,i):m.VISIT_PAGE())):e.createElement(yA,null,e.createElement("a",{href:r.url},e.createElement(Xf,{component:"div",variant:"h5",color:"textPrimary"},Kt(r.title,i))),e.createElement("a",{href:r.url},e.createElement(Xf,{component:"div",variant:"subtitle1",color:"textSecondary"},Qt(r.url)))),!a&&e.createElement(xf,{className:"".concat($A.expand," ").concat(s?$A.expandOpen:""),onClick:l,"aria-expanded":s,"aria-label":"Show more",size:"large"},e.createElement(DS,null))),!a&&e.createElement(FA,{in:s,timeout:"auto",unmountOnExit:!0},e.createElement(yA,null,e.createElement(Xf,{component:"div",variant:"body2"},e.createElement("span",{dangerouslySetInnerHTML:{__html:r.snippet?"".concat(Kt(r.snippet,i),"..."):""}})))))))})),VA="Resource",WA={aspectWrapper:`${VA}-aspectWrapper`,duration:`${VA}-duration`,link:`${VA}-link`,expand:`${VA}-expand`,expandOpen:`${VA}-expandOpen`,imageRemoved:`${VA}-imageRemoved`,oneLine:`${VA}-oneLine`,imageCard:`${VA}-imageCard`,fileCard:`${VA}-fileCard`},UA=(0,_p.Ay)("div")((({theme:e})=>({[`& .${WA.aspectWrapper}`]:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},[`& .${WA.duration}`]:{display:"inline-block",paddingLeft:"6px"},[`& .${WA.link}`]:{color:e.palette.link?e.palette.link:e.palette.primary.dark},[`& .${WA.expand}`]:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},[`& .${WA.expandOpen}`]:{transform:"rotate(180deg)"},[`& .${WA.imageRemoved}`]:{backgroundColor:ES.A[200],color:ES.A[600],textAlign:"center"},[`& .${WA.oneLine}`]:{display:"flex",alignItems:"center","& > *":{marginRight:e.spacing(1)}},[`&.${WA.imageCard}`]:{marginBottom:e.spacing(3),padding:e.spacing(0,3)},[`& .${WA.fileCard}`]:{marginBottom:e.spacing(3),padding:e.spacing(0,3)}})));function qA({image:t,language:n,onDownload:r}){const o=(t=>{const[n,r]=(0,e.useState)(!0);return(0,e.useEffect)((()=>{const e=new Image;e.onload=()=>r(!0),e.onerror=()=>r(!1),e.src=t}),[t]),n})(t.url);return o?e.createElement("div",{className:WA.imageCard},e.createElement(uA,null,e.createElement(AA,{component:"img",image:t.url}),e.createElement(yA,null,e.createElement(Xf,{component:"div",variant:"h5",color:"textPrimary"},Kt(t.title,n))),e.createElement(hA,null,e.createElement(GS,{onClick:r},"Open Image")))):e.createElement(zf,{className:WA.imageRemoved,component:"div"},e.createElement(nh,{primary:"Image removed by operator"}))}qA.propTypes={image:In().object.isRequired,language:In().string.isRequired,onDownload:In().func.isRequired};const HA=e.forwardRef((({resource:t,cbID:n,language:r,showVideo:o,singleWebsite:a},i)=>{const[s,l]=(0,e.useState)(!1),c=(0,e.useCallback)((()=>{l(!s)}),[s]),u=(0,e.useContext)(bp);switch(t.type.toLowerCase()){case"video":return e.createElement(UA,null,e.createElement(OA,{video:t,language:r,classes:WA,cbID:n,showVideo:o,ref:i}));case"webpage":{const{url:n,conversationTurnId:o}=t,l=e=>{const t=new RegExp("https://ai.ocelotbot.com/attachment");e.currentTarget.getAttribute("tracked")||t.test(n)||(yr({url:n,chatbotId:u,conversationTurnId:o}),e.currentTarget.setAttribute("tracked",!0))};return e.createElement(BA,{resource:t,singleWebsite:a,language:r,expanded:s,handleExpanded:c,ref:i,handleTrackLink:l})}case"file":{const n=()=>{window.open(t.url)};return/image\//.test(t.contentType)?e.createElement(UA,null,e.createElement(qA,{image:t,classes:WA,language:r,onDownload:n})):e.createElement(UA,null,e.createElement("div",{className:WA.fileCard},e.createElement(uA,null,e.createElement(yA,null,e.createElement("div",{className:WA.oneLine},e.createElement(iA.A,null),e.createElement(Xf,{component:"div",variant:"h5",color:"textPrimary"},Kt(t.title,r)))),e.createElement(hA,null,e.createElement(GS,{onClick:n},"Open File")))))}default:return e.createElement("div",null,"Unsupported Media")}}));HA.propTypes={resource:In().object.isRequired,cbID:In().number.isRequired,language:In().string.isRequired,showVideo:In().bool,singleWebsite:In().bool},HA.defaultProps={showVideo:!0,singleWebsite:!0},HA.displayName="Resource";const GA=HA;function QA({cbid:t,data:n,language:r}){const{LL:o}=Um(),a=pe((e=>e.explore.backdropOpen)),i=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a&&setTimeout((()=>{var e;null===(e=i.current)||void 0===e||e.focus()}),320)}),[a,i]),e.createElement(Ix,{"aria-label":o.LINKS()},(n||[]).map(((n,o)=>e.createElement(GA,{cbID:t,key:n.title[r],language:r,resource:n,showVideo:!1,singleWebsite:!0,ref:0===o?i:null}))))}QA.propTypes={cbid:In().number.isRequired,data:In().array.isRequired,language:In().string.isRequired};const KA=QA;var YA=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},XA=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},JA=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},ZA=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};const ek=function(t){var n=ze(),r=(0,e.useContext)(Op).addHelloConfigTranslation,o=pe((function(e){return e.userPrefs})),a=o.campusId,i=o.officeId,s=(0,e.useCallback)((function(e){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return YA(void 0,ZA([e],JA(o),!1),Promise,(function(e,o){var s,l,c;return void 0===o&&(o={}),XA(this,(function(u){switch(u.label){case 0:return d=s=e,kn.includes(d)?[3,2]:[4,ny(s,t,a,i)];case 1:if(!(l=u.sent()))return[2];!function(e,t){kn.push(e),Cn[e]=t,Tn[e]={}}(s,l.i18nTranslation),r(s,l.config),u.label=2;case 2:return n(function(e){return{type:Nt.CHANGE_LANGUAGE,lang:e}}(s)),null===(c=o.successCallback)||void 0===c||c.call(o,s),[2]}var d}))}))}),[r,t,n,a,i]);return{fetchTranslation:s}};var tk=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},nk=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};const rk=function(){var t=yp(),n=ek(t).fetchTranslation,r=Um().setLocale;return{onLanguageChange:(0,e.useCallback)((function(e){return tk(void 0,void 0,Promise,(function(){return nk(this,(function(t){return n(e,{successCallback:function(e){r(e)}}),[2]}))}))}),[r,n])}},ok="Suggestions-list",ak=(0,_p.Ay)(Ix)((()=>({[`& .${ok}`]:{marginTop:0}}))),ik=(0,_p.Ay)(GS)((({theme:{palette:e}})=>({wordBreak:"break-word",width:"100%","&:focus-visible":{border:`3px solid ${e.primary.contrastText}`},"& .Mui-Button-Label":{fontWeight:500,color:e.primary.contrastText},color:e.primary.contrastText})));function sk({data:t,language:n,settings:r}){const o=ze(),a=(0,e.useContext)(bp),{onLanguageChange:i}=rk(),{LL:s}=Um(),l=pe((e=>e.explore.backdropOpen)),c=(0,e.useRef)(null);(0,e.useEffect)((()=>{l&&setTimeout((()=>{var e;null===(e=c.current)||void 0===e||e.focusVisible()}),320)}),[l]);return e.createElement(ak,{"aria-label":s.SUGGESTIONS()},(t||[]).map(((t,s)=>{const l=Kt(t,n);return e.createElement(zf,{key:l},e.createElement(ik,{onClick:()=>{return e=l,void("review"!==r.interfaceType&&o($r(a,e,{operations:{onLanguageChange:i},language:n,meta:{viaExplore:!0}})));var e},variant:"outlined",color:"inherit",action:0===s?c:null,ref:0===s?c:null},l))})))}sk.propTypes={data:In().array.isRequired,language:In().string.isRequired,settings:In().object.isRequired};const lk=sk;function ck({cbid:t,data:n,language:r}){return n.map(((n,o)=>e.createElement(GA,{key:Number(o),resource:n,singleWebsite:!1,cbID:t,language:r})))}ck.propTypes={cbid:In().number.isRequired,data:In().array.isRequired,language:In().string.isRequired};const uk=ck,dk="ExploreBackdrop",pk={tabBody:`${dk}-tabBody`,tabHeader:`${dk}-tabHeader`,tabLabel:`${dk}-tabLabel`},fk=(0,_p.Ay)("div")((({theme:e})=>({[`&.${pk.tabBody}`]:{maxHeight:`calc(100vh - 253px - ${e.spacing(1)})`,overflowY:"auto"},[`& .${pk.tabHeader}`]:{marginTop:e.spacing(1)},[`& .${pk.tabLabel}`]:{color:"#fff"}})));function hk({data:t,settings:n,language:r}){const{type:o,data:a}=t,{cbid:i}=n;switch(o){case Ct.Links:return e.createElement(KA,{cbid:i,data:a,key:"links",language:r});case Ct.Suggestions:return e.createElement(lk,{data:a,key:"suggestions",language:r,settings:n});case Ct.Videos:return e.createElement(uk,{cbid:i,data:a,key:"videos",language:r});default:return console.error(`Unknown explore data type: ${o}`),null}}hk.propTypes={data:In().object.isRequired,settings:In().object.isRequired,language:In().string.isRequired};const mk=e.forwardRef((({settings:t},n)=>{const r=XS(),o=pe((e=>e.language.lang));return e.createElement(fk,{className:pk.tabBody,ref:n},r&&r.type&&e.createElement(hk,{data:r,settings:t,language:o}))}));mk.displayName="ExplorePane",mk.propTypes={settings:In().object.isRequired};const vk=aA((()=>pe((e=>e.explore.backdropOpen))),(()=>{const e=ze();return()=>{return e((t=!1,{type:Ot.SetBackdropOpen,open:t}));var t}}),(()=>[pe((e=>e.explore.backdropTab))]))(mk);function gk(e){return(0,cf.Ay)("MuiBottomNavigation",e)}(0,Qp.A)("MuiBottomNavigation",["root"]);const yk=["children","className","component","onChange","showLabels","value"],bk=(0,_p.Ay)("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper}))),xk=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiBottomNavigation"}),{children:o,className:a,component:i="div",onChange:s,showLabels:l=!1,value:c}=r,u=(0,Do.A)(r,yk),d=(0,Lo.A)({},r,{component:i,showLabels:l}),p=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"]},gk,t)})(d);return(0,Po.jsx)(bk,(0,Lo.A)({as:i,className:(0,Ip.A)(p.root,a),ref:n,ownerState:d},u,{children:e.Children.map(o,((t,n)=>{if(!e.isValidElement(t))return null;const r=void 0===t.props.value?n:t.props.value;return e.cloneElement(t,{selected:r===c,showLabel:void 0!==t.props.showLabel?t.props.showLabel:l,value:r,onChange:s})}))}))}));function wk(e){return(0,cf.Ay)("MuiBottomNavigationAction",e)}const Ek=(0,Qp.A)("MuiBottomNavigationAction",["root","iconOnly","selected","label"]),Sk=["className","icon","label","onChange","onClick","selected","showLabel","value"],Ak=(0,_p.Ay)(hf,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.showLabel&&!n.selected&&t.iconOnly]}})((({theme:e,ownerState:t})=>(0,Lo.A)({transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(e.vars||e).palette.text.secondary,flexDirection:"column",flex:"1"},!t.showLabel&&!t.selected&&{paddingTop:14},!t.showLabel&&!t.selected&&!t.label&&{paddingTop:0},{[`&.${Ek.selected}`]:{color:(e.vars||e).palette.primary.main}}))),kk=(0,_p.Ay)("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e,ownerState:t})=>(0,Lo.A)({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!t.showLabel&&!t.selected&&{opacity:0,transitionDelay:"0s"},{[`&.${Ek.selected}`]:{fontSize:e.typography.pxToRem(14)}}))),Ck=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiBottomNavigationAction"}),{className:r,icon:o,label:a,onChange:i,onClick:s,value:l}=n,c=(0,Do.A)(n,Sk),u=n,d=(e=>{const{classes:t,showLabel:n,selected:r}=e,o={root:["root",!n&&!r&&"iconOnly",r&&"selected"],label:["label",!n&&!r&&"iconOnly",r&&"selected"]};return(0,Pp.A)(o,wk,t)})(u);return(0,Po.jsxs)(Ak,(0,Lo.A)({ref:t,className:(0,Ip.A)(d.root,r),focusRipple:!0,onClick:e=>{i&&i(e,l),s&&s(e)},ownerState:u},c,{children:[o,(0,Po.jsx)(kk,{className:d.label,ownerState:u,children:a})]}))})),Tk=(0,sh.A)((0,Po.jsx)("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7m2 16h-4v-1h4zm0-2h-4v-1h4zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71z"}),"EmojiObjects"),Ok=(0,sh.A)((0,Po.jsx)("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),Rk=(0,sh.A)((0,Po.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var _k=function(e,t){return null==e||null==e[t]?0:e[t].length},Ik=function(t,n,r,o){var a,i;return void 0===o&&(o=!1),[{count:_k(r,"suggestions"),icon:e.createElement(Tk,null),label:t.SUGGESTIONS(),type:"suggestions"},{count:_k(r,"videos"),icon:e.createElement(Ok,null),label:t.VIDEOS(),type:"videos",hidden:null===(a=null==n?void 0:n.featureFlags)||void 0===a?void 0:a[$t.VideoDisabled]},{count:_k(r,"links"),icon:e.createElement(Rk,null),type:"links",label:(null!==(i=null==r?void 0:r.exploreLinksName)&&void 0!==i?i:o)?t.SOURCES():t.LINKS()}]};const Pk="ExploreTabs",Nk={bottomNavRoot:`${Pk}-bottomNavRoot`,bottomNavActionWrapper:`${Pk}-bottomNavActionWrapper`,button:`${Pk}-button`},Mk=(0,_p.Ay)("div")((({theme:e})=>({"& .Mui-selected":{color:tr([e.palette.primary.main,e.palette.primary.dark])},"& .MuiBadge-badge":{color:e.palette.secondary.contrastText},[`& .${Nk.bottomNavRoot}`]:{margin:e.spacing(1,0)},[`& .${Nk.bottomNavActionWrapper}`]:{paddingTop:e.spacing(.5)},[`& .${Nk.button}`]:{"&:disabled":{opacity:.4}}})));function Lk({wrapper:t}){const n=ze(),{LL:r}=Um(),o=pe((e=>e.explore.backdropTab)),a=pe((e=>e.explore.backdropOpen)),i=YS(),{config:s}=(0,e.useContext)(Op),l=Ik(r,s,i);return l.reduce(((e,t)=>e+t.count),0)>0?e.createElement(Mk,null,e.createElement(sb,null),e.createElement(xk,{classes:{root:Nk.bottomNavRoot},showLabels:!0,value:a?o:null},l.map(((o,a)=>!o.hidden&&e.createElement(wS,{key:o.label,title:2===a&&0===o.count&&o.label===r.SOURCES()?"The sources used are private documents":void 0,placement:"top",arrow:!0,PopperProps:{container:t}},e.createElement(Ck,{classes:{wrapper:Nk.bottomNavActionWrapper,root:Nk.button},sx:0===o.count?{opacity:.5,color:"rgba(0, 0, 0, 0.26)",pointerEvents:"unset",cursor:"default"}:{},icon:o.count>0?e.createElement(Em,{badgeContent:o.count,color:o.count>0?"secondary":"error"},o.icon):o.icon,label:o.label,onClick:()=>{var e;0!==o.count&&n((e=a,{type:Ot.SetBackdropTab,tabIndex:e}))}})))))):e.createElement("span",null)}Lk.propTypes={wrapper:In().object};const Dk=Lk;function Fk(e){return e.substring(2).toLowerCase()}function jk(t){const{children:n,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),c=e.useRef(!1),u=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,dm.A)(n.ref,l),p=(0,dy.A)((e=>{const t=u.current;u.current=!1;const n=(0,uy.A)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),o||!r&&t||a(e)})),f=e=>t=>{u.current=!0;const r=n.props[e];r&&r(t)},h={ref:d};return!1!==i&&(h[i]=f(i)),e.useEffect((()=>{if(!1!==i){const e=Fk(i),t=(0,uy.A)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,i]),!1!==o&&(h[o]=f(o)),e.useEffect((()=>{if(!1!==o){const e=Fk(o),t=(0,uy.A)(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,Po.jsx)(e.Fragment,{children:e.cloneElement(n,h)})}function $k(e){return(0,cf.Ay)("MuiSnackbarContent",e)}(0,Qp.A)("MuiSnackbarContent",["root","message","action"]);const zk=["action","className","message","role"],Bk=(0,_p.Ay)(bh,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=(0,Np.tL)(e.palette.background.default,t);return(0,Lo.A)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),Vk=(0,_p.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Wk=(0,_p.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Uk=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert"}=n,s=(0,Do.A)(n,zk),l=n,c=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"],action:["action"],message:["message"]},$k,t)})(l);return(0,Po.jsxs)(Bk,(0,Lo.A)({role:i,square:!0,elevation:6,className:(0,Ip.A)(c.root,o),ownerState:l,ref:t},s,{children:[(0,Po.jsx)(Vk,{className:c.message,ownerState:l,children:a}),r?(0,Po.jsx)(Wk,{className:c.action,ownerState:l,children:r}):null]}))}));function qk(e){return(0,cf.Ay)("MuiSnackbar",e)}(0,Qp.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Hk=["onEnter","onExited"],Gk=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Qk=(0,_p.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,mf.A)(n.anchorOrigin.vertical)}${(0,mf.A)(n.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>(0,Lo.A)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,Lo.A)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})}))),Kk=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiSnackbar"}),o=jh(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:f,disableWindowBlurListener:h=!1,message:m,open:v,TransitionComponent:g=Hh,transitionDuration:y=a,TransitionProps:{onEnter:b,onExited:x}={}}=r,w=(0,Do.A)(r.TransitionProps,Hk),E=(0,Do.A)(r,Gk),S=(0,Lo.A)({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:h,TransitionComponent:g,transitionDuration:y}),A=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,mf.A)(n.vertical)}${(0,mf.A)(n.horizontal)}`]};return(0,Pp.A)(r,qk,t)})(S),{getRootProps:k,onClickAway:C}=function(t={}){const{autoHideDuration:n=null,disableWindowBlurListener:r=!1,onClose:o,open:a,resumeHideDuration:i}=t,s=e.useRef();e.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==o||o(e,"escapeKeyDown")}}),[a,o]);const l=(0,dy.A)(((e,t)=>{null==o||o(e,t)})),c=(0,dy.A)((e=>{o&&null!=e&&(clearTimeout(s.current),s.current=setTimeout((()=>{l(null,"timeout")}),e))}));e.useEffect((()=>(a&&c(n),()=>{clearTimeout(s.current)})),[a,n,c]);const u=()=>{clearTimeout(s.current)},d=e.useCallback((()=>{null!=n&&c(null!=i?i:.5*n)}),[n,i,c]),p=e=>t=>{const n=e.onFocus;null==n||n(t),u()},f=e=>t=>{const n=e.onMouseEnter;null==n||n(t),u()},h=e=>t=>{const n=e.onMouseLeave;null==n||n(t),d()};return e.useEffect((()=>{if(!r&&a)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[r,d,a]),{getRootProps:(e={})=>{const n=(0,Fo.A)({},fm(t),fm(e));return(0,Fo.A)({role:"presentation"},e,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),d()}),onFocus:p(n),onMouseEnter:f(n),onMouseLeave:h(n)});var r},onClickAway:e=>{null==o||o(e,"clickaway")}}}((0,Lo.A)({},S)),[T,O]=e.useState(!0),R=vm({elementType:Qk,getSlotProps:k,externalForwardedProps:E,ownerState:S,additionalProps:{ref:n},className:[A.root,d]});return!v&&T?null:(0,Po.jsx)(jk,(0,Lo.A)({onClickAway:C},p,{children:(0,Po.jsx)(Qk,(0,Lo.A)({},R,{children:(0,Po.jsx)(g,(0,Lo.A)({appear:!0,in:v,timeout:y,direction:"top"===s?"down":"up",onEnter:(e,t)=>{O(!1),b&&b(e,t)},onExited:e=>{O(!0),x&&x(e)}},w,{children:u||(0,Po.jsx)(Uk,(0,Lo.A)({message:m,action:i},f))}))}))}))}));function Yk(e){return(0,cf.Ay)("MuiDialogActions",e)}(0,Qp.A)("MuiDialogActions",["root","spacing"]);const Xk=["className","disableSpacing"],Jk=(0,_p.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,Lo.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),Zk=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,a=(0,Do.A)(n,Xk),i=(0,Lo.A)({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,Pp.A)(r,Yk,t)})(i);return(0,Po.jsx)(Jk,(0,Lo.A)({className:(0,Ip.A)(s.root,r),ownerState:i,ref:t},a))}));function eC(e){return(0,cf.Ay)("MuiDialogTitle",e)}const tC=(0,Qp.A)("MuiDialogTitle",["root"]);const nC=e.createContext({}),rC=["className","id"],oC=(0,_p.Ay)(Xf,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),aC=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=(0,Do.A)(r,rC),s=r,l=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"]},eC,t)})(s),{titleId:c=a}=e.useContext(nC);return(0,Po.jsx)(oC,(0,Lo.A)({component:"h2",className:(0,Ip.A)(l.root,o),ownerState:s,ref:n,variant:"h6",id:null!=a?a:c},i))}));var iC=o(4373);function sC(t,n,r,o,a){const[i,s]=e.useState((()=>a&&r?r(t).matches:o?o(t).matches:n));return(0,Af.A)((()=>{let e=!0;if(!r)return;const n=r(t),o=()=>{e&&s(n.matches)};return o(),n.addListener(o),()=>{e=!1,n.removeListener(o)}}),[t,r]),i}const lC=t.useSyncExternalStore;function cC(t,n,r,o,a){const i=e.useCallback((()=>n),[n]),s=e.useMemo((()=>{if(a&&r)return()=>r(t).matches;if(null!==o){const{matches:e}=o(t);return()=>e}return i}),[i,t,o,a,r]),[l,c]=e.useMemo((()=>{if(null===r)return[i,()=>()=>{}];const e=r(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[i,r,t]);return lC(c,l,s)}function uC(e,t={}){const n=(0,Vo.A)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(r?window.matchMedia:null),ssrMatchMedia:i=null,noSsr:s=!1}=(0,iC.A)({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==lC?cC:sC)(l,o,a,i,s)}function dC(e){return(0,cf.Ay)("MuiDialog",e)}const pC=(0,Qp.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),fC=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],hC=(0,_p.Ay)(Ly,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),mC=(0,_p.Ay)(zy,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),vC=(0,_p.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,mf.A)(n.scroll)}`]]}})((({ownerState:e})=>(0,Lo.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),gC=(0,_p.Ay)(bh,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,mf.A)(n.scroll)}`],t[`paperWidth${(0,mf.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,Lo.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${pC.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${pC.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${pC.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),yC=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiDialog"}),o=jh(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:f=!1,fullWidth:h=!1,maxWidth:m="sm",onBackdropClick:v,onClose:g,open:y,PaperComponent:b=bh,PaperProps:x={},scroll:w="paper",TransitionComponent:E=Iy,transitionDuration:S=a,TransitionProps:A}=r,k=(0,Do.A)(r,fC),C=(0,Lo.A)({},r,{disableEscapeKeyDown:p,fullScreen:f,fullWidth:h,maxWidth:m,scroll:w}),T=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${(0,mf.A)(n)}`],paper:["paper",`paperScroll${(0,mf.A)(n)}`,`paperWidth${(0,mf.A)(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,Pp.A)(i,dC,t)})(C),O=e.useRef(),R=(0,db.A)(s),_=e.useMemo((()=>({titleId:R})),[R]);return(0,Po.jsx)(mC,(0,Lo.A)({className:(0,Ip.A)(T.root,d),closeAfterTransition:!0,components:{Backdrop:hC},componentsProps:{backdrop:(0,Lo.A)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:e=>{O.current&&(O.current=null,v&&v(e),g&&g(e,"backdropClick"))},ownerState:C},k,{children:(0,Po.jsx)(E,(0,Lo.A)({appear:!0,in:y,timeout:S,role:"presentation"},A,{children:(0,Po.jsx)(vC,{className:(0,Ip.A)(T.container),onMouseDown:e=>{O.current=e.target===e.currentTarget},ownerState:C,children:(0,Po.jsx)(gC,(0,Lo.A)({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":R},x,{className:(0,Ip.A)(T.paper,x.className),ownerState:C,children:(0,Po.jsx)(nC.Provider,{value:_,children:u})}))})}))}))}));function bC(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function xC(e){return(0,cf.Ay)("MuiToggleButtonGroup",e)}const wC=(0,Qp.A)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth"]),EC=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],SC=(0,_p.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wC.grouped}`]:t.grouped},{[`& .${wC.grouped}`]:t[`grouped${(0,mf.A)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,Lo.A)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${wC.grouped}`]:(0,Lo.A)({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${wC.selected} + .${wC.grouped}.${wC.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${wC.selected} + .${wC.grouped}.${wC.selected}`]:{borderTop:0,marginTop:0}})}))),AC=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:a,color:i="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:p="medium",value:f}=r,h=(0,Do.A)(r,EC),m=(0,Lo.A)({},r,{disabled:s,fullWidth:c,orientation:d,size:p}),v=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,a={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${(0,mf.A)(n)}`,o&&"disabled"]};return(0,Pp.A)(a,xC,t)})(m),g=(e,t)=>{if(!u)return;const n=f&&f.indexOf(t);let r;f&&n>=0?(r=f.slice(),r.splice(n,1)):r=f?f.concat(t):[t],u(e,r)},y=(e,t)=>{u&&u(e,f===t?null:t)};return(0,Po.jsx)(SC,(0,Lo.A)({role:"group",className:(0,Ip.A)(v.root,a),ref:n,ownerState:m},h,{children:e.Children.map(o,(t=>e.isValidElement(t)?e.cloneElement(t,{className:(0,Ip.A)(v.grouped,t.props.className),onChange:l?y:g,selected:void 0===t.props.selected?bC(t.props.value,f):t.props.selected,size:t.props.size||p,fullWidth:c,color:t.props.color||i,disabled:t.props.disabled||s}):null))}))}));function kC(e){return(0,cf.Ay)("MuiToggleButton",e)}const CC=(0,Qp.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),TC=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],OC=(0,_p.Ay)(hf,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,mf.A)(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,r="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(r="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,Lo.A)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${CC.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Np.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${CC.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Np.X4)(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(r,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),RC=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiToggleButton"}),{children:r,className:o,color:a="standard",disabled:i=!1,disableFocusRipple:s=!1,fullWidth:l=!1,onChange:c,onClick:u,selected:d,size:p="medium",value:f}=n,h=(0,Do.A)(n,TC),m=(0,Lo.A)({},n,{color:a,disabled:i,disableFocusRipple:s,fullWidth:l,size:p}),v=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:a,color:i}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${(0,mf.A)(a)}`,i]};return(0,Pp.A)(s,kC,t)})(m);return(0,Po.jsx)(OC,(0,Lo.A)({className:(0,Ip.A)(v.root,o),disabled:i,focusRipple:!s,ref:t,onClick:e=>{u&&(u(e,f),e.defaultPrevented)||c&&c(e,f)},onChange:c,value:f,ownerState:m,"aria-pressed":d},h,{children:r}))})),_C="RatingOptions",IC={desktopContainer:`${_C}-desktopContainer`,desktopScoreLabel:`${_C}-desktopScoreLabel`,toggleButton:`${_C}-toggleButton`,mobileContainer:`${_C}-mobileContainer`,col:`${_C}-col`,mobileButtonWrapper:`${_C}-mobileButtonWrapper`,mobileButton:`${_C}-mobileButton`,mobileButtonPadding:`${_C}-mobileButtonPadding`,mobileSelected:`${_C}-mobileSelected`},PC=(0,_p.Ay)("div")((({theme:e})=>({[`& .${IC.desktopContainer}`]:{alignItems:"center",background:e.palette.background.default,display:"flex",justifyContent:"space-around",margin:e.spacing(1,0),padding:e.spacing(1,2),[e.breakpoints.down("md")]:{display:"none"}},[`& .${IC.desktopScoreLabel}`]:{margin:e.spacing(1)},[`& .${IC.toggleButton}`]:{width:65,[e.breakpoints.down("md")]:{display:"flex",margin:e.spacing(2),padding:e.spacing(2)}},[`& .${IC.mobileContainer}`]:{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",[e.breakpoints.up("md")]:{display:"none"}},[`& .${IC.col}`]:{flex:"0 0 auto",flexBasis:"100%",maxWidth:"100%",padding:e.spacing(0,1.5)},[`& .${IC.mobileButtonWrapper}`]:{margin:e.spacing(.5,0),width:"100%"},[`& .${IC.mobileButton}`]:{color:"#999",padding:e.spacing(1,0)},[`& .${IC.mobileButtonPadding}`]:{padding:e.spacing(.5,0)},[`& .${IC.mobileSelected}`]:{color:e.palette.primary.main}}))),NC=new Array(11).fill(null).map(((e,t)=>t+0));function MC({handleOnChange:t}){const{LL:n}=Um(),[r,o]=(0,e.useState)(null),[a,i]=(0,e.useState)(""),s=(e,n)=>{o(n),t({score:n,additionalFeedback:a})};return e.createElement(PC,null,e.createElement("div",{className:IC.desktopContainer},e.createElement("span",{className:IC.desktopScoreLabel},n.FEEDBACK_NOT_AT_ALL()),e.createElement(AC,{value:r,exclusive:!0},NC.map((t=>e.createElement(RC,{key:`score-${t}`,className:IC.toggleButton,value:t,onClick:e=>s(0,t)},e.createElement(Xf,{variant:"button",color:"inherit"},t))))),e.createElement("span",{className:IC.desktopScoreLabel},n.FEEDBACK_VERY_LIKELY())),e.createElement("div",{className:IC.mobileContainer},NC.slice().reverse().map((t=>{const o=r===+t,a=o?"primary":"inherit",i=o?IC.mobileSelected:"";return e.createElement(bh,{className:IC.mobileButtonWrapper,key:`score-mobile-${t}`},e.createElement(GS,{color:a,className:`${IC.mobileButton} ${i}`,fullWidth:!0,onClick:e=>s(0,t),variant:"outlined"},(e=>{switch(+e){case 10:return`10 – ${n.FEEDBACK_VERY_LIKELY()}`;case 0:return`0 – ${n.FEEDBACK_NOT_AT_ALL()}`;default:return e}})(t)))}))),e.createElement(Fw,{id:"outlined-helperText",fullWidth:!0,multiline:!0,rows:3,helperText:n.FEEDBACK_OTHER(),margin:"normal",variant:"outlined",onChange:e=>{i(e.target.value),t({score:r,additionalFeedback:e.target.value})}}))}MC.propTypes={handleOnChange:In().func.isRequired};const LC=MC,DC="RatingDialog",FC={paperWidthLg:`${DC}-paperWidthLg`,ratingOptionsContainer:`${DC}-ratingOptionsContainer`,root:`${DC}-root`},jC=(0,_p.Ay)(yC)((({theme:e})=>({zIndex:e.zIndex.chatbotDrawerMenu,[`& .${FC.paperWidthLg}`]:{overflowX:"hidden"},[`& .${FC.ratingOptionsContainer}`]:{margin:e.spacing(0,5)},[`& .${FC.root}`]:{textAlign:"center"}}))),$C=e=>null==e;function zC({open:t,handleClose:n,onUpdateRating:r,rating:o,sendFeedback:a,wrapper:i,settingsName:s}){const[l,c]=(0,e.useState)($C(o.score)),{LL:u}=Um(),d=uC(jh().breakpoints.down("md"));return e.createElement(jC,{container:i,open:t,maxWidth:"lg",onClose:n,classes:{paperWidthLg:FC.paperWidthLg},"aria-labelledby":"rating-dialog-title",fullScreen:d},e.createElement(aC,{id:"rating-dialog-title",className:FC.root},u.LIKELY_TO_RECOMMEND({bot:s})),e.createElement("div",{className:FC.ratingOptionsContainer},e.createElement(LC,{handleOnChange:({score:e,additionalFeedback:t})=>{c($C(e)),r({score:e,additionalFeedback:t})}})),e.createElement(Zk,null,e.createElement(GS,{onClick:e=>{e.preventDefault(),n()}},e.createElement(Xf,{variant:"button",color:"inherit"},u.CANCEL())),e.createElement(GS,{onClick:e=>{e.preventDefault(),(()=>{const{score:e}=o;null!=e&&(a(o),n())})()},disabled:l,color:"primary"},e.createElement(Xf,{variant:"button",color:"inherit"},u.SUBMIT()))))}zC.propTypes={handleClose:In().func.isRequired,onUpdateRating:In().func.isRequired,rating:In().object.isRequired,open:In().bool.isRequired,sendFeedback:In().func.isRequired,settingsName:In().string.isRequired,wrapper:In().object},zC.defaultProps={wrapper:null};const BC=zC;function VC(){return VC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VC.apply(this,arguments)}function WC({apiKey:t,wrapper:n,...r}){const[o,a]=(0,e.useState)({score:null,additionalFeedback:""}),i=ze();return n&&e.createElement(BC,VC({onUpdateRating:a,rating:o,sendFeedback:e=>{i(Ur(e,t))},wrapper:n},r))}WC.propTypes={apiKey:In().string.isRequired,handleClose:In().func.isRequired,open:In().bool.isRequired,settingsName:In().string.isRequired,wrapper:In().object},WC.defaultProps={wrapper:null};const UC=WC,qC="FeedbackSnackbar",HC={snackbar:`${qC}-snackbar`,snackbarContent:`${qC}-snackbarContent`},GC=(0,_p.Ay)("div")((({theme:e})=>({[`& .${HC.snackbar}`]:{left:e.spacing(2),position:"absolute",right:e.spacing(2),transform:"none",top:e.spacing(9)},[`& .${HC.snackbarContent}`]:{opacity:.85,width:"100%"}})));function QC(){const{LL:t}=Um();return e.createElement("span",{id:"maxai-client-snackbar"},t.FEEDBACK_PROMPT())}function KC({environment:t,hasUserProvidedFeedback:n,wrapper:r,chatInput:o}){const{LL:a}=Um(),i=ze(),s=(0,e.useContext)(bp),{config:l}=(0,e.useContext)(Op),[c,u]=(0,e.useState)(null),[d,p]=(0,e.useState)(null),[f,h]=(0,e.useState)(null),m="admin"!==t&&!!l.collectFeedback;const{showRatingDialog:v,hasFeedbackPromptOpened:g,openSnackbar:y,displayThanksNotification:b}=pe((e=>e.feedback)),x=pe((e=>e.messages.items)),w=x.length,E=x.filter((e=>"user"===e.type)).length,[S]=Zg(),A=(0,e.useRef)(null),k=(0,e.useRef)(null),C=(0,e.useRef)(null),T=e=>{A.current||(A.current=setTimeout((()=>{var e;m&&!g&&(i(Vr(!0)),i((e=!0,{type:_t.FEEDBACK_PROMPT_SHOWN,open:e}))),clearTimeout(A.current),A.current=null}),e))};(0,e.useEffect)((()=>{A.current&&(clearTimeout(A.current),A.current=null,T(5e3))}),[S]);const O=()=>{i(Wr()),o&&o.focus()};return(0,e.useEffect)((()=>{if(!m||g||A.current)return;const e=d?E-d+1:0;!c&&!!f&&w>f&&(u(Date.now()),p(E)),null!=c&&(Date.now()-c>75e3?T(1e3):e>=2&&T(5e3)),h(w)})),(0,e.useEffect)((()=>{m&&!n&&y&&setTimeout((()=>{k.current&&k.current.focus()}),0)}),[m,n,y]),(0,e.useEffect)((()=>{b&&C.current&&C.current.focus()}),[b]),e.createElement(GC,null,m&&e.createElement(e.Fragment,null,!n&&e.createElement(Kk,{className:HC.snackbar,key:"feedback",anchorOrigin:{vertical:"top",horizontal:"center"},open:y,TransitionComponent:Iy,ContentProps:{"aria-describedby":"message-id"}},e.createElement(Uk,{"aria-describedby":"maxai-client-snackbar","aria-label":a.RATE_BOT({bot:l.name}),role:"alertdialog",className:HC.snackbarContent,message:e.createElement(QC,null),action:[e.createElement(GS,{buttonRef:k,key:"rate",color:"inherit",onClick:()=>{i(Vr(!1)),i(Br(!0))},sx:{textTransform:"none"}},a.RATE_BOT({bot:l.name})),e.createElement(GS,{key:"dismiss",color:"inherit",onClick:()=>{i(Vr(!1)),o&&o.focus()},sx:{textTransform:"none"}},a.DISMISS())]})),e.createElement(Kk,{autoHideDuration:7e3,className:HC.snackbar,key:"thanks",TransitionComponent:Iy,onClose:O,anchorOrigin:{vertical:"top",horizontal:"center"},open:b},e.createElement(Uk,{action:[e.createElement(GS,{buttonRef:C,key:"dismiss",color:"inherit",onClick:O},a.DISMISS())],"aria-describedby":"maxai-client-snackbar",className:HC.snackbarContent,message:e.createElement("span",{id:"maxai-client-snackbar"},a.FEEDBACK_THANKS())})),e.createElement(UC,{apiKey:s,dispatch:i,handleClose:()=>{i(Br(!1)),o&&o.focus()},open:v,settingsName:l.name,wrapper:r})))}KC.propTypes={environment:In().oneOf(["admin","embedded"]).isRequired,hasUserProvidedFeedback:In().string,wrapper:In().object,chatInput:In().object},KC.defaultProps={hasUserProvidedFeedback:null,wrapper:null,chatInput:null};const YC=KC;var XC=o(314);const JC=(0,Qp.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function ZC(e){return(0,cf.Ay)("MuiMenuItem",e)}const eT=(0,Qp.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tT=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],nT=(0,_p.Ay)(hf,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,Lo.A)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${eT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${eT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${eT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${eT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nb.inset}`]:{marginLeft:52},[`& .${Zf.root}`]:{marginTop:0,marginBottom:0},[`& .${Zf.inset}`]:{paddingLeft:36},[`& .${JC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,Lo.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${JC.root} svg`]:{fontSize:"1.25rem"}})))),rT=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=r,f=(0,Do.A)(r,tT),h=e.useContext(kf),m=e.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),v=e.useRef(null);(0,Af.A)((()=>{o&&v.current&&v.current.focus()}),[o]);const g=(0,Lo.A)({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},l=(0,Pp.A)(s,ZC,i);return(0,Lo.A)({},i,l)})(r),b=(0,Lp.A)(v,n);let x;return r.disabled||(x=void 0!==d?d:-1),(0,Po.jsx)(kf.Provider,{value:m,children:(0,Po.jsx)(nT,(0,Lo.A)({ref:b,role:u,tabIndex:x,component:a,focusVisibleClassName:(0,Ip.A)(y.focusVisible,c),className:(0,Ip.A)(y.root,p)},f,{ownerState:g,classes:y}))})}));var oT=o(8966);function aT(e){return(0,cf.Ay)("MuiDialogContent",e)}(0,Qp.A)("MuiDialogContent",["root","dividers"]);const iT=["className","dividers"],sT=(0,_p.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,Lo.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${tC.root} + &`]:{paddingTop:0}}))),lT=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,a=(0,Do.A)(n,iT),i=(0,Lo.A)({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,Pp.A)(r,aT,t)})(i);return(0,Po.jsx)(sT,(0,Lo.A)({className:(0,Ip.A)(s.root,r),ownerState:i,ref:t},a))}));function cT(e){return(0,cf.Ay)("MuiDialogContentText",e)}(0,Qp.A)("MuiDialogContentText",["root"]);const uT=["children","className"],dT=(0,_p.Ay)(Xf,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pT=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiDialogContentText"}),{className:r}=n,o=(0,Do.A)(n,uT),a=(e=>{const{classes:t}=e,n=(0,Pp.A)({root:["root"]},cT,t);return(0,Lo.A)({},t,n)})(o);return(0,Po.jsx)(dT,(0,Lo.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,Ip.A)(a.root,r)},n,{classes:a}))}));var fT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},hT="AboutDialog",mT={dialogText:"".concat(hT,"-dialogText"),logoWrapper:"".concat(hT,"-logoWrapper")},vT=(0,_p.Ay)(yC)((function(e){var t,n=e.theme;return(t={zIndex:n.zIndex.chatbotDrawerMenu})["& .".concat(mT.dialogText)]={textAlign:"center"},t["& .".concat(mT.logoWrapper)]={padding:n.spacing(6,5,2,5)},t}));const gT=function(t){var n,r=t.open,o=void 0!==r&&r,a=t.handleClose,i=void 0===a?function(){}:a,s=t.wrapper,l=void 0===s?void 0:s,c=Um().LL,u=jh(),d=uC(u.breakpoints.down("md")),p=fT((0,e.useState)(null),2),f=p[0],h=p[1];(0,e.useEffect)((function(){f&&f.focus()}),[o,f]);var m=null!==(n="5.227.0")?n:"",v=c.VERSION({version:m});return e.createElement(vT,{container:l,fullScreen:d,open:o,onClose:i,TransitionProps:{role:"dialog","aria-label":c.ABOUT_ME()},PaperProps:{ref:h,tabIndex:-1}},e.createElement(lT,null,e.createElement("div",{className:mT.dialogText},e.createElement(pT,{className:mT.logoWrapper},e.createElement("a",{href:"https://www.fatv.us",target:"_blank",rel:"noopener noreferrer"},e.createElement("img",{style:{width:"333px"},src:"https://mkt-files.ocelotbot.com/ocelot-sig.png",alt:"Powered by Ocelot. Featuring FATV."}))),e.createElement(Xf,{variant:"subtitle1",component:"p",paragraph:!0},c.CREATED_BY()),e.createElement(Xf,{variant:"caption",component:"p",paragraph:!0},v),e.createElement(Xf,{variant:"caption",component:"p",paragraph:!0},e.createElement("a",{href:"https://www.ocelotbot.com/privacy-policy/",target:"_blank",rel:"noopener noreferrer"},c.PRIVACY_POLICY())," | ",e.createElement("a",{href:"https://www.ocelotbot.com/terms-of-use/",target:"_blank",rel:"noopener noreferrer"},c.TERMS_OF_USE())," | ",e.createElement("a",{href:"https://mkt-files.ocelotbot.com/Accessibility%20Policy%20-%20Chatbot%202021.01.22.pdf",target:"_blank",rel:"noopener noreferrer"},c.A11Y_POLICY())),e.createElement(Xf,{component:"p",variant:"caption",paragraph:!0},c.COPYRIGHT({years:"2005-2023"}),e.createElement("br",null),c.PATENT({number:"11,151,195"})))),e.createElement(Zk,null,e.createElement(GS,{onClick:function(e){e.preventDefault(),i()},color:"primary",className:"aboutdialog-close-button"},e.createElement(Xf,{variant:"button",sx:{color:tr([u.palette.primary.main,u.palette.primary.dark])}},c.CLOSE()))))},yT={menuButton:"SettingsMenu-menuButton"},bT=(0,_p.Ay)("div")((({theme:e})=>({[`& .${yT.menuButton}`]:{marginRight:e.spacing(-2)}})));function xT({wrapper:t,chatbotName:n,showLogOut:r,handleLogOut:o}){const a=ze(),{LL:i}=Um(),[s,l]=(0,e.useState)(null),[c,u]=(0,e.useState)(!1),d=Tp(),p=(0,e.useRef)(null),{config:f}=(0,e.useContext)(Op),h=()=>{p.current&&setTimeout((()=>{p.current.focus()}),200)},m=e=>{l(null),e&&h()},v=Boolean(s),g=r?i.CLEAR_AND_LOGOUT():i.CLEAR();return e.createElement(bT,null,e.createElement(xf,{"aria-owns":v?"menu-appbar":null,"aria-haspopup":"true",onClick:e=>{l(e.currentTarget)},color:"inherit",className:yT.menuButton,"aria-label":i.OPEN_MENU(),"aria-expanded":v,ref:p,size:"large"},e.createElement(oT.A,null)),e.createElement(ow,{id:"menu-appbar",container:t,open:v,anchorEl:s,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"right",vertical:"top"},onClose:m,sx:{zIndex:e=>e.zIndex.chatbotDrawerMenu}},e.createElement(rT,{onClick:e=>{e.preventDefault(),m(!1),a(Dr(f.context)),r&&o()}},g),e.createElement(rT,{onClick:e=>{e.preventDefault(),Rn(n,!!d.SettingsMenuItems),m()}},i.DOWNLOAD_TRANSCRIPT()),e.createElement(rT,{onClick:e=>{e.preventDefault(),u(!0),m()}},i.ABOUT()),d.SettingsMenuItems?e.createElement(d.SettingsMenuItems,{wrapper:t}):null),e.createElement(gT,{handleClose:()=>{u(!1),h()},open:c,wrapper:t}))}xT.propTypes={wrapper:In().object.isRequired,chatbotName:In().string.isRequired,showLogOut:In().bool.isRequired,handleLogOut:In().func.isRequired};const wT=xT;var ET=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},ST=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},AT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},kT=function(){return ET(void 0,void 0,void 0,(function(){return ST(this,(function(e){return Ke.clearSession(),window.location.replace("/logout/saml"),[2]}))}))};"undefined"!=typeof window&&(window._logout=kT);var CT=function(){var t=AT((0,e.useState)(!1),2),n=t[0],r=t[1];return(0,e.useEffect)((function(){var e=new URL(window.location.href),t=Ke.getItem(Ge.BOTAUTH_SSO_TOK),n=Ke.getItem(Ge.BOTAUTH_SSO_CID),o=e.searchParams.get("cid");t&&r(!0),t&&n===o||(Ke.clearSession(),o&&(e.searchParams.delete("cid"),window.history.replaceState({},"",e.toString())))}),[]),function(t){var n,r,o=(0,e.useRef)(null),a=document.body.getAttribute("data-context");if(a){var i=JSON.parse(decodeURIComponent(a));0===(r=null===(n=null==i?void 0:i.auth)||void 0===n?void 0:n.loginTimeoutMs)&&(r=void 0)}(0,e.useEffect)((function(){var e=function(){o.current&&clearTimeout(o.current)},n=function(){e(),o.current=setTimeout((function(){var e;t&&(null===(e=null===window||void 0===window?void 0:window._logout)||void 0===e||e.call(window))}),r)},a=function(){e(),n()};return t&&r&&r>0&&(n(),window.addEventListener("mousemove",a),window.addEventListener("keydown",a)),function(){e(),window.removeEventListener("mousemove",a),window.removeEventListener("keydown",a)}}),[r,t])}(n),{showLogOutButton:n}};const TT=(0,sh.A)((0,Po.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language"),OT=(0,sh.A)((0,Po.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done");function RT(e){return(0,cf.Ay)("MuiInputAdornment",e)}const _T=(0,Qp.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var IT;const PT=["children","className","component","disablePointerEvents","disableTypography","position","variant"],NT=(0,_p.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,mf.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,Lo.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${_T.positionStart}&:not(.${_T.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),MT=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,d=(0,Do.A)(r,PT),p=Eb()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const h=(0,Lo.A)({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${(0,mf.A)(o)}`,i,r&&"hiddenLabel",a&&`size${(0,mf.A)(a)}`]};return(0,Pp.A)(s,RT,t)})(h);return(0,Po.jsx)(wb.Provider,{value:null,children:(0,Po.jsx)(NT,(0,Lo.A)({as:i,ownerState:h,className:(0,Ip.A)(m.root,a),ref:n},d,{children:"string"!=typeof o||l?(0,Po.jsxs)(e.Fragment,{children:["start"===c?IT||(IT=(0,Po.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,Po.jsx)(Xf,{color:"text.secondary",children:o})}))})})),LT=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],DT=(0,_p.Ay)(hf,{shouldForwardProp:e=>(0,_p.ep)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,Lo.A)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Rf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Np.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),FT=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:i="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:f}=r,h=(0,Do.A)(r,LT),m=e.useContext(kf),v=e.useMemo((()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:c})),[o,m.dense,l,c]),g=e.useRef(null);(0,Af.A)((()=>{a&&g.current&&g.current.focus()}),[a]);const y=(0,Lo.A)({},r,{alignItems:o,dense:v.dense,disableGutters:c,divider:u,selected:p}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:i,selected:s}=e,l={root:["root",r&&"dense",!a&&"gutters",i&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},c=(0,Pp.A)(l,Of,n);return(0,Lo.A)({},n,c)})(y),x=(0,Lp.A)(g,n);return(0,Po.jsx)(kf.Provider,{value:v,children:(0,Po.jsx)(DT,(0,Lo.A)({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:(0,Ip.A)(b.focusVisible,d),ownerState:y,className:(0,Ip.A)(b.root,f)},h,{classes:b,children:s}))})})),jT=(0,sh.A)((0,Po.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var $T=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};function zT(e){return e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase():""}const BT=function(t){var n=t.languages,r=t.handleLanguageChange,o=$T((0,e.useState)(""),2),a=o[0],i=o[1],s=$T((0,e.useState)(a),2),l=s[0],c=s[1],u=pe((function(e){return e.language.lang})),d=$T((0,e.useState)(null),2),p=d[0],f=d[1],h=(0,e.useRef)(null),m=(0,e.useRef)(null),v=Um().LL;(0,e.useEffect)((function(){var e;null===(e=m.current)||void 0===e||e.scrollIntoView()}),[]),(0,e.useEffect)((function(){var e=setTimeout((function(){c(a)}),300);return function(){clearTimeout(e)}}),[a]);var g=(0,e.useMemo)((function(){var e=zT(l);return(null!=n?n:[]).filter((function(t){var n,r=zT(t.text),o=zT(t.code),a=zT(null!==(n=t.nativeName)&&void 0!==n?n:"");return r.includes(e)||o.includes(e)||a.includes(e)}))}),[n,l]),y=(0,e.useMemo)((function(){return function(e){"Tab"===e.key&&(e.preventDefault(),e.stopPropagation()),"ArrowDown"===e.key||"Tab"===e.key&&!e.shiftKey?f((function(e){var t,n=(null!=e?e:-1)+1;return n>=g.length?(null===(t=h.current)||void 0===t||t.focus(),null):n})):("ArrowUp"===e.key||"Tab"===e.key&&e.shiftKey)&&f((function(e){var t,n=(null!=e?e:g.length)-1;return n<0?(null===(t=h.current)||void 0===t||t.focus(),null):n}))}}),[g]);return e.createElement(e.Fragment,null,e.createElement(Fw,{"aria-label":v.SEARCH(),placeholder:v.SEARCH(),variant:"standard",id:"language-search-input",value:a,onChange:function(e){return i(e.target.value)},sx:{mx:2},InputProps:{startAdornment:e.createElement(MT,{position:"start"},e.createElement(jT,{color:"disabled"}))},inputRef:h,onKeyDown:y,autoFocus:null==p}),e.createElement(Ix,{sx:{maxHeight:300,overflowY:"auto"}},g.length>0?g.map((function(t,n){var o,a=u===t.code;return e.createElement(FT,{key:t.code,onClick:r(t.code),tabIndex:0,autoFocus:n===p,onKeyDown:y,ref:a?m:null},null!==(o=t.nativeName)&&void 0!==o?o:t.text,e.createElement(OT,{color:"success",style:{visibility:a?"visible":"hidden"}}))})):e.createElement(Xf,{variant:"body1",sx:{padding:2}},"No languages found.")))};var VT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},WT=VT(["ChatAppHeaderId-root","ChatAppHeaderId-selected"],2),UT=WT[0],qT=WT[1],HT=(0,_p.Ay)(rT)((function(e){var t,n=e.theme;return(t={display:"flex",justifyContent:"space-between",justifyItems:"center"})["&.".concat(UT)]={"&:focus":{backgroundColor:n.palette.action.selected},"&$selected":{backgroundColor:n.palette.primary.main,"&:focus":{backgroundColor:n.palette.action.selected}}},t["&.".concat(qT)]={},t}));const GT=function(t){var n,r=t.languages,o=t.wrapper,a=VT((0,e.useState)(),2),i=a[0],s=a[1],l=VT((0,e.useState)(!1),2),c=l[0],u=l[1],d=Um().LL,p=rk().onLanguageChange,f=jh(),h=pe((function(e){return e.language.lang})),m=pe((function(e){return e.messages})).liveChat,v=(0,e.useContext)(Op).config,g=m&&!(null==v?void 0:v.featureFlags.additionalLanguages),y=d.NO_TRANSLATE_LC(),b=function(){s(void 0),u(!1)},x=function(e){return function(){e!==h?(p(e),b()):b()}};return!r||r.length<=1?null:e.createElement(e.Fragment,null,e.createElement(wS,{title:g?y:d.CHANGE_LANGUAGE(),enterDelay:300,placement:g?"left":"bottom",PopperProps:{container:o}},e.createElement("span",null,e.createElement(xf,{color:"inherit","aria-owns":i?"language-menu":void 0,"aria-haspopup":"true","aria-label":d.LANGUAGE(),onClick:function(e){s(e.currentTarget),u(!0)},disabled:g,"aria-expanded":c},e.createElement(TT,null)))),e.createElement(ow,{id:"language-menu",anchorEl:i,anchorOrigin:{horizontal:"center",vertical:"top"},transformOrigin:{horizontal:"center",vertical:"top"},open:Boolean(i),onClose:b,container:o,sx:{zIndex:f.zIndex.chatbotDrawerMenu}},(null===(n=null==v?void 0:v.featureFlags)||void 0===n?void 0:n.additionalLanguages)?e.createElement(BT,{languages:r,handleLanguageChange:x}):r.map((function(t){var n;return e.createElement(HT,{key:t.code,selected:h===t.code,"aria-current":h===t.code,onClick:x(t.code),classes:{root:UT,selected:qT}},null!==(n=t.nativeName)&&void 0!==n?n:t.text,e.createElement(OT,{color:"success",style:{visibility:h===t.code?"visible":"hidden"}}))}))))},QT="ChatAppHeaderId",KT={root:`${QT}-root`,selected:`${QT}-selected`,appBar:`${QT}-appBar`,flex:`${QT}-flex`,menuButton:`${QT}-menuButton`,textLeft:`${QT}-textLeft`,toolBar:`${QT}-toolBar`},YT=(0,_p.Ay)("div")((({theme:e})=>({zIndex:10,[`& .${KT.flex}`]:{flex:1},[`& .${KT.menuButton}`]:{marginLeft:e.spacing(-2),marginRight:0},[`& .${KT.textLeft}`]:{textAlign:"left"},[`& .${KT.toolBar}`]:{margin:0}}))),XT="chat-app-header",JT=e.forwardRef(((t,n)=>{const{languages:r,settings:o,toggle:a,wrapper:i,isCollapsible:s}=t,{LL:l}=Um(),c=pe((e=>{var t;return null===(t=e.configOverrides)||void 0===t?void 0:t.name})),{showLogOutButton:u}=CT(),d=c||o.name;return e.createElement(YT,{ref:n},e.createElement(Ah,{component:"div",position:"static",color:"primary"},e.createElement(Oh,{className:KT.toolBar},s&&e.createElement(xf,{color:"inherit",onClick:a(void 0),className:KT.menuButton,"aria-label":l.CLOSE_BOT({bot:d}),size:"large"},e.createElement(wf.A,null)),e.createElement(Xf,{variant:"h6",component:"div",color:"inherit",className:`${KT.flex} ${KT.textLeft}`,id:XT},l.APPBAR_HEADER({bot:d})),e.createElement(wS,{hidden:!u,title:l.LOG_OUT(),enterDelay:300,placement:"bottom",PopperProps:{container:i}},e.createElement("span",null,e.createElement(xf,{color:"inherit",onClick:kT,"aria-label":l.LOG_OUT()},e.createElement(XC.A,null)))),e.createElement(GT,{languages:r,wrapper:i}),e.createElement(wT,{wrapper:i,chatbotName:d,showLogOut:u,handleLogOut:kT}))))}));JT.displayName="Header",JT.propTypes={languages:In().arrayOf(In().object).isRequired,settings:In().object.isRequired,toggle:In().func.isRequired,wrapper:In().object.isRequired,isCollapsible:In().bool},JT.defaultProps={isCollapsible:!0};const ZT=JT;var eO=o(845),tO=o(2790),nO=o(1095),rO=o(7856);const oO=(0,sh.A)((0,Po.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),aO=(0,sh.A)((0,Po.jsx)("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"}),"Explore"),iO=(0,sh.A)((0,Po.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),sO=(0,sh.A)((0,Po.jsx)("path",{d:"M18 11v2h4v-2zm-2 6.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61M20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4M4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9zm11.5 3c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34"}),"Campaign"),lO=(0,sh.A)((0,Po.jsx)("path",{d:"M20 6h-1v8c0 .55-.45 1-1 1H6v1c0 1.1.9 2 2 2h10l4 4V8c0-1.1-.9-2-2-2m-3 5V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v13l4-4h9c1.1 0 2-.9 2-2"}),"QuestionAnswerRounded"),cO=e=>e,uO=(()=>{let e=cO;return{configure(t){e=t},generate:t=>e(t),reset(){e=cO}}})(),dO={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};const pO=(0,o(5069).Ay)();var fO=o(3447),hO=o(4942),mO=o(1832),vO=o(4636);const gO=["component","direction","spacing","divider","children","className","useFlexGap"],yO=(0,hO.A)(),bO=pO("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xO(e){return(0,fO.A)({props:e,name:"MuiStack",defaultTheme:yO})}function wO(t,n){const r=e.Children.toArray(t).filter(Boolean);return r.reduce(((t,o,a)=>(t.push(o),a<r.length-1&&t.push(e.cloneElement(n,{key:`separator-${a}`})),t)),[])}const EO=({ownerState:e,theme:t})=>{let n=(0,Fo.A)({display:"flex",flexDirection:"column"},(0,mO.NI)({theme:t},(0,mO.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=(0,vO.LX)(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=(0,mO.kW)({values:e.direction,base:o}),i=(0,mO.kW)({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));const s=(t,n)=>{return e.useFlexGap?{gap:(0,vO._W)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,vO._W)(r,t)}};var o};n=(0,Bf.A)(n,(0,mO.NI)({theme:t},i,s))}return n=(0,mO.iZ)(t.breakpoints,n),n};const SO=function(t={}){const{createStyledComponent:n=bO,useThemeProps:r=xO,componentName:o="MuiStack"}=t,a=()=>function(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}({root:["root"]},(e=>function(e,t,n="Mui"){const r=dO[t];return r?`${n}-${r}`:`${uO.generate(e)}-${t}`}(o,e)),{}),i=n(EO);return e.forwardRef((function(e,t){const n=qf(r(e)),{component:o="div",direction:s="column",spacing:l=0,divider:c,children:u,className:d,useFlexGap:p=!1}=n,f=(0,Wo.A)(n,gO),h={direction:s,spacing:l,useFlexGap:p},m=a();return(0,Po.jsx)(i,(0,Fo.A)({as:o,ownerState:h,ref:t,className:(0,Ip.A)(m.root,d)},f,{children:c?wO(u,c):u}))}))}({createStyledComponent:(0,_p.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Mp.A)({props:e,name:"MuiStack"})});var AO="#808080";function kO(t){var n,r,o,a=t.message,i=t.clientName,s=t.language,l=t.wrapper,c=jh(),u=(0,e.useContext)(Op).config,d=a.source===pt.CampaignSMS,p=a.source===pt.CampaignUnsolicitedSms,f=d||p,h=null!==(n=a.campaign_name)&&void 0!==n?n:"";return e.createElement(em,{display:"flex",width:"100%"},e.createElement(em,{flexGrow:1},e.createElement(nh,{"aria-live":"polite",primary:e.createElement(e.Fragment,null,a.reviewMode&&e.createElement(Xf,{component:"span",variant:"caption","aria-hidden":!0,sx:{fontSize:".625rem",color:ES.A[600],position:"absolute",top:c.spacing(.25),left:c.spacing(1.5),display:"inline-flex"}},a.time&&e.createElement(wS,{title:null!==(r=a.timeZone)&&void 0!==r?r:"No time zone",PopperProps:{container:l},placement:"top"},e.createElement(em,{component:"span",sx:{display:"inline-flex"}},a.time)),a.isConcerningInteraction&&(null===(o=null==u?void 0:u.featureFlags)||void 0===o?void 0:o.concerningInteractionsSettings)&&e.createElement(wS,{title:"This may be a concerning interaction",arrow:!0,placement:"top",PopperProps:{container:l}},e.createElement(oO,{color:"error",sx:{ml:1,display:"inline-flex",fontSize:"1rem"}}))),e.createElement("span",{style:{position:"absolute",opacity:0,pointerEvents:"none"}},"You said: "),e.createElement(SO,{direction:"row",alignItems:"center",gap:1},Kt(a.output,s),a.reviewMode&&a.viaExplore&&e.createElement(wS,{title:"This interaction is from a suggestion in the explore bar",PopperProps:{container:l}},e.createElement(aO,{sx:{marginLeft:c.spacing(1)},color:"secondary"})))),primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"}})),e.createElement(em,null,e.createElement(ih,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-end"}},i?e.createElement(wS,{title:i,PopperProps:{container:l}},e.createElement(e.Fragment,null,e.createElement(hh,{alt:"".concat(i," avatar"),"aria-hidden":"true",sx:{color:c.palette.getContrastText(c.palette.secondary.dark),backgroundColor:c.palette.secondary.dark}},(i||"").split(/\s/).map((function(e){return e.substr(0,1)})).slice(0,2).join("")),e.createElement(Xf,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:c.spacing(10),padding:c.spacing(.5),wordBreak:"break-word"}},i))):e.createElement(e.Fragment,null,e.createElement(hh,{"aria-hidden":"true",sx:{color:c.palette.getContrastText(c.palette.secondary.dark),backgroundColor:c.palette.secondary.dark}},e.createElement(iO,null)),e.createElement(Xf,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:c.spacing(10),padding:c.spacing(.5),wordBreak:"break-word"}},"You")))),a.reviewMode&&f&&e.createElement(wS,{title:d?"".concat(h," Campaign"):"1:1 Text",PopperProps:{container:l,disablePortal:!0},placement:"left"},d?e.createElement(sO,{style:{fill:AO}}):e.createElement(lO,{style:{fill:AO}})))}kO.displayName="UserMessage";const CO=e.memo(kO);function TO(e){return(0,cf.Ay)("MuiLink",e)}const OO=(0,Qp.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var RO=o(741);const _O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},IO=({theme:e,ownerState:t})=>{const n=(e=>_O[e]||e)(t.color),r=(0,RO.Yn)(e,`palette.${n}`,!1)||t.color,o=(0,RO.Yn)(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:(0,Np.X4)(r,.4)},PO=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],NO=(0,_p.Ay)(Xf,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,mf.A)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,Lo.A)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,Lo.A)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:IO({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${OO.focusVisible}`]:{outline:"auto"}}))),MO=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=r,f=(0,Do.A)(r,PO),{isFocusVisibleRef:h,onBlur:m,onFocus:v,ref:g}=(0,Fp.A)(),[y,b]=e.useState(!1),x=(0,Lp.A)(n,g),w=(0,Lo.A)({},r,{color:a,component:i,focusVisible:y,underline:u,variant:d}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${(0,mf.A)(o)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,Pp.A)(a,TO,t)})(w);return(0,Po.jsx)(NO,(0,Lo.A)({color:a,className:(0,Ip.A)(E.root,o),classes:c,component:i,onBlur:e=>{m(e),!1===h.current&&b(!1),s&&s(e)},onFocus:e=>{v(e),!0===h.current&&b(!0),l&&l(e)},ref:x,ownerState:w,variant:d,sx:[...Object.keys(_O).includes(a)?[]:[{color:a}],...Array.isArray(p)?p:[p]]},f))}));var LO=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},DO=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},FO=7,jO=500,$O=(0,_p.Ay)(Ix)((function(){return{listStyle:"none",margin:0,padding:0,"& li":{listStyle:"none",display:"inline",margin:0,padding:0}}})),zO=(0,_p.Ay)(GS)((function(){return{margin:"0 10px 10px 0",textAlign:"left",backgroundColor:ES.A[300],color:"black","&:hover":{backgroundColor:ES.A[300]},"&:focus":{border:"1px solid black"}}})),BO=(0,_p.Ay)(GS)((function(){return{margin:"0 10px 10px 0",textAlign:"left","&:focus":{border:"1px solid black"}}})),VO=function(e,t,n){return e>t+(n+1)?t+n:Math.ceil(e/n)*n};function WO(t){var n=t.turnIndex,r=t.actions,o=t.ignoreViewMoreActions,a=t.handleActionClick,i=t.language,s=t.viewMoreText,l=t.actionsDisplayedToViewMore,c=void 0===l?FO:l,u=(null==r?void 0:r.length)||0,d=o?u:VO(u,0,c),p=jh(),f=LO((0,e.useState)(d),2),h=f[0],m=f[1],v=LO((0,e.useState)(!0),2),g=v[0],y=v[1],b=(0,e.useMemo)((function(){return(r||[]).map((function(){return(0,e.createRef)()}))}),[r]);(0,e.useEffect)((function(){y(!1)}),[]);var x=(0,e.useCallback)((function(){var e=VO(u,h,c);m(e),setTimeout((function(){var e,t;null===(t=null===(e=b[h])||void 0===e?void 0:e.current)||void 0===t||t.focus()}),0)}),[u,h,b,c]),w=DO([],LO(r||[]),!1).slice(0,h),E=h<(r||[]).length;return u?e.createElement($O,{"aria-label":"Actions","data-testid":"actionList-".concat(Number(n))},w.map((function(t,r){return e.createElement(zf,{key:"actionListItem-".concat(Number(n),"-").concat(Number(r))},e.createElement(Iy,{in:!0,appear:!g,timeout:jO},e.createElement(zO,{id:"operator-button-".concat(n,"-").concat(r),ref:b[r],size:"small",variant:"contained",key:Number(r),"data-testid":"actionButton-".concat(Number(n),"-").concat(Number(r)),disabled:"string"!=typeof t&&t.disabled,onClick:function(){return a(t)}},e.createElement(Xf,{variant:"button",color:"inherit"},Xt(t,i)))))})),E&&e.createElement(zf,{key:"actionListItem-".concat(Number(n),"-view-more-").concat(h)},e.createElement(Iy,{in:!0,appear:!g,timeout:jO},e.createElement(BO,{id:"operator-button-".concat(n,"-view-more-").concat(h),size:"small","data-testid":"actionButton-".concat(Number(n),"--view-more-").concat(h),onClick:x,sx:{color:tr([p.palette.primary.main,p.palette.primary.dark])}},e.createElement(Xf,{variant:"button"},s))))):null}const UO=function(t){var n,r,o=t.handleSendMessage,a=t.turnIndex,i=t.message,s=t.language,l=Um().LL,c=jg().buildCallback,u=ze(),d=(0,e.useContext)(Op).config,p=(0,e.useCallback)((function(e){var t,n=function(e,t){var n,r;(null===(n=i.auth)||void 0===n?void 0:n.original_question)&&(null===(r=i.auth)||void 0===r?void 0:r.uri)&&"yes"===Kt(e).toLowerCase()?Fr(i.auth.uri,null==d?void 0:d.context,u):o(e,"User sent message to chatbot",t,{sentThroughActionButton:!0})};if("string"==typeof e)n(e);else switch(e.type){case ut.SendResponse:n(e.text);break;case ut.Callback:var r=e;if(!r.callback&&r.callbackData){var a=c(r.callbackData);if(!a){console.error("Callback action missing callback field");break}r.callback=a}var s=LO(function(e){var t="en";return t in e?[e[t],t]:e.text&&t in e.text?[e.text[t],t]:[e.text,t]}(r),2);n(s[0],s[1]),null===(t=r.callback)||void 0===t||t.call(r);break;default:console.error('Unknown conversation action type "'.concat(e.type,'"'))}}),[c,null==d?void 0:d.context,u,o,null===(n=i.auth)||void 0===n?void 0:n.original_question,null===(r=i.auth)||void 0===r?void 0:r.uri]);return e.createElement(WO,{turnIndex:a,actions:i.actions,handleActionClick:p,ignoreViewMoreActions:i.ignoreViewMoreActions,viewMoreText:l.VIEW_MORE(),language:s})};var qO=o(9113),HO=o(6180);const GO="openNewWindow",QO=new RegExp("https://ai.ocelotbot.com/attachment"),KO=(t,n,r)=>{const o=(0,e.useContext)(bp),a=e=>{if(1===e.which||2===e.which){const t=e.target.getAttribute("href");!t||e.target.getAttribute("tracked")||((e="")=>{switch(e){case ht.OperatorTurn:case ht.ClientTurn:case ht.QueueTurn:case ht.CampaignOperatorTurn:case ht.CampaignClientTurn:case at.TemporaryDisconnect:case at.Reconnect:case at.Logout:return!0;default:return!1}})(n)||(yr({url:t,chatbotId:o,conversationTurnId:r}),e.target.setAttribute("tracked",!0))}},i=()=>{t.current&&Array.from(t.current.getElementsByTagName("a")).forEach((t=>{const n=t.getAttribute("href");if(n&&(t.target="_blank",t.rel="noopener",!t.getAttribute("aria-describedby")&&!n.includes("tel:")&&!n.includes("mailto:"))){t.setAttribute("aria-describedby",GO);[].some.call(t.parentElement.classList,(e=>/(MuiCardContent-.|MuiButton-.)*/.test(e)))||(t.innerHTML=`${t.innerHTML} ${(0,HO.F0)(e.createElement(qO.A,{style:{fontSize:"1rem",verticalAlign:"text-top",fill:"currentColor",width:"1em",height:"1em"}}))}`)}const r=((e="")=>QO.test(e))(n);t.getAttribute("trackerAdded")||r||(t.setAttribute("trackerAdded",!0),t.addEventListener("mouseup",a))}))};(0,e.useEffect)((()=>(i(),()=>{t.current&&Array.from(t.current.getElementsByTagName("a")).forEach((e=>{e.getAttribute("trackerAdded")&&(e.removeAttribute("trackerAdded"),e.removeEventListener("mouseup",a))}))})))};function YO(e){return(0,cf.Ay)("MuiAlert",e)}const XO=(0,Qp.A)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),JO=(0,sh.A)((0,Po.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ZO=(0,sh.A)((0,Po.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),eR=(0,sh.A)((0,Po.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),tR=(0,sh.A)((0,Po.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),nR=(0,sh.A)((0,Po.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),rR=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],oR=(0,_p.Ay)(bh,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,mf.A)(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?Np.e$:Np.a,r="light"===e.palette.mode?Np.a:Np.e$,o=t.color||t.severity;return(0,Lo.A)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${XO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&"outlined"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${XO.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&"filled"===t.variant&&(0,Lo.A)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))})),aR=(0,_p.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),iR=(0,_p.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),sR=(0,_p.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),lR={success:(0,Po.jsx)(JO,{fontSize:"inherit"}),warning:(0,Po.jsx)(ZO,{fontSize:"inherit"}),error:(0,Po.jsx)(eR,{fontSize:"inherit"}),info:(0,Po.jsx)(tR,{fontSize:"inherit"})},cR=e.forwardRef((function(e,t){var n,r,o,a,i,s;const l=(0,Mp.A)({props:e,name:"MuiAlert"}),{action:c,children:u,className:d,closeText:p="Close",color:f,components:h={},componentsProps:m={},icon:v,iconMapping:g=lR,onClose:y,role:b="alert",severity:x="success",slotProps:w={},slots:E={},variant:S="standard"}=l,A=(0,Do.A)(l,rR),k=(0,Lo.A)({},l,{color:f,severity:x,variant:S}),C=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`${t}${(0,mf.A)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,Pp.A)(a,YO,o)})(k),T=null!=(n=null!=(r=E.closeButton)?r:h.CloseButton)?n:xf,O=null!=(o=null!=(a=E.closeIcon)?a:h.CloseIcon)?o:nR,R=null!=(i=w.closeButton)?i:m.closeButton,_=null!=(s=w.closeIcon)?s:m.closeIcon;return(0,Po.jsxs)(oR,(0,Lo.A)({role:b,elevation:0,ownerState:k,className:(0,Ip.A)(C.root,d),ref:t},A,{children:[!1!==v?(0,Po.jsx)(aR,{ownerState:k,className:C.icon,children:v||g[x]||lR[x]}):null,(0,Po.jsx)(iR,{ownerState:k,className:C.message,children:u}),null!=c?(0,Po.jsx)(sR,{ownerState:k,className:C.action,children:c}):null,null==c&&y?(0,Po.jsx)(sR,{ownerState:k,className:C.action,children:(0,Po.jsx)(T,(0,Lo.A)({size:"small","aria-label":p,title:p,color:"inherit",onClick:y},R,{children:(0,Po.jsx)(O,(0,Lo.A)({fontSize:"small"},_))}))}):null]}))})),uR=(0,sh.A)((0,Po.jsx)("path",{d:"M21 8h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2m0 4-3 7H9V9l4.34-4.34L12.23 10H21zM1 9h4v12H1z"}),"ThumbUpAltOutlined"),dR=(0,sh.A)((0,Po.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp"),pR=(0,sh.A)((0,Po.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.58-6.59c.37-.36.59-.86.59-1.41V5c0-1.1-.9-2-2-2m0 12-4.34 4.34L11.77 14H3v-2l3-7h9zm4-12h4v12h-4z"}),"ThumbDownAltOutlined"),fR=(0,sh.A)((0,Po.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown"),hR=(0,sh.A)((0,Po.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),mR=(0,sh.A)((0,Po.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Mail"),vR=(0,sh.A)((0,Po.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),gR=(0,sh.A)([(0,Po.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),(0,Po.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber");var yR=function(){return yR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yR.apply(this,arguments)},bR=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},xR=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},wR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ER=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},SR=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},AR=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},kR=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},CR=qe.ButtonGray,TR=qe.GrayTextBox,OR=(0,_p.Ay)(em)((function(e){var t=e.theme;return{".MuiAlert-message":{width:"100%"},marginLeft:t.spacing(7),width:"100%",display:"flex",flexDirection:"column",gap:t.spacing(2)}}));const RR=function(t){var n,r,o,a,i=this,s=t.message,l=t.i,c=t.isLastMessage,u=t.wrapper,d=t.boxSx,p=t.idPrefix,f=(0,e.useContext)(bp),h=(0,e.useContext)(Op).config,m=s.allowFeedback,v=s.reviewMode,g=s.feedback,y="".concat(p,"-positive-feedback-button"),b="".concat(p,"-negative-feedback-button"),x=kR((0,e.useState)((null==g?void 0:g.reaction)||Bt.None),2),w=x[0],E=x[1],S=kR((0,e.useState)(!1),2),A=S[0],k=S[1],C=kR((0,e.useState)((null==g?void 0:g.comment)||""),2),T=C[0],O=C[1],R=kR((0,e.useState)(!1),2),_=R[0],I=R[1],P=kR((0,e.useState)(),2),N=P[0],M=P[1],L=kR((0,e.useState)(!0),2),D=L[0],F=L[1],j=kR((0,e.useState)(),2),$=j[0],z=j[1],B=(0,e.useRef)(null),V=(0,e.useRef)(null),W=Um().LL,U=function(e){c&&setTimeout((function(){e.current&&e.current.scrollIntoView({block:"center",inline:"nearest",behavior:"smooth"})}),200)},q=function(t){var n=t.message,r=n.conversationTurnId,o=n.feedback,a=void 0===o?{}:o,i=n.conversationId,s=t.i,l=t.apiKey,c=wR(t,["message","i","apiKey"]),u=ze(),d=ER((0,e.useState)(!1),2),p=d[0],f=d[1],h=ER((0,e.useState)(!1),2),m=h[0],v=h[1],g=ER(Ov(Ig,c),2),y=g[0],b=g[1].loading,x=ER(Ov(Pg),2),w=x[0],E=x[1].loading,S=b||E,A=(0,e.useCallback)((function(e){return bR(void 0,void 0,void 0,(function(){return xR(this,(function(t){switch(t.label){case 0:return f(!1),v(!1),[4,y({variables:{data:{reaction:e,conversationTurnId:r,conversationId:i,chatbotId:l}},onCompleted:function(t){t.saveResponseFeedback.success?u(Ar(s,{feedback:yR(yR({},a),{reaction:e})})):f(!0)},onError:function(e){console.error("An error occurred saving feedback reaction:",e),f(e)}})];case 1:return[2,t.sent()]}}))}))}),[r,u,y,a,s,i,l]),k=(0,e.useCallback)((function(e){return bR(void 0,void 0,void 0,(function(){return xR(this,(function(t){switch(t.label){case 0:return f(!1),v(!1),[4,w({variables:{data:{comment:e,conversationTurnId:r,conversationId:i,chatbotId:l}},onCompleted:function(t){t.saveResponseFeedbackComment.success?u(Ar(s,{feedback:yR(yR({},a),{comment:e})})):v(!0)},onError:function(e){console.error("An error occurred saving feedback comment:",e),v(e)}})];case 1:return[2,t.sent()]}}))}))}),[i,r,u,w,a,s,l]);return{sendFeedback:A,sendComment:k,isSendingFeedback:S,errorFeedback:p,errorComment:m}}({message:s,i:l,apiKey:f,onError:function(){E((null==g?void 0:g.reaction)||Bt.None),U(V)}}),H=q.sendFeedback,G=q.sendComment,Q=q.isSendingFeedback,K=q.errorFeedback,Y=q.errorComment,X=function(){k(!1),F(!1),I(!0),U(B),M(setTimeout((function(){I(!1),z(setTimeout((function(){F(!0)}),300))}),3e3))},J=w===Bt.Positive?W.FEEDBACK_THANKS():W.FEEDBACK_THANKS_NEGATIVE(),Z=function(e){return SR(i,void 0,void 0,(function(){var t,n,r;return AR(this,(function(o){switch(o.label){case 0:return v?[2]:((t=e)===w&&(t=Bt.None),E(t),I(!1),k(!1),F(!0),clearTimeout(N),clearTimeout($),[4,H(t)]);case 1:return n=o.sent(),(null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.saveResponseFeedback.success)&&(t===Bt.Positive?X():t===Bt.Negative&&(k(!0),U(V))),[2]}}))}))};if(!m)return e.createElement(e.Fragment,null);var ee=e.createElement(xf,{"data-id-tag":y,disableRipple:!0,disableFocusRipple:!0,disabled:Q,size:"small",sx:{"&:hover":{color:v?{cursor:"default"}:{color:We.Positive}},color:w!==Bt.Positive?CR:We.Positive,"&:focus-visible":v?{}:{color:We.Positive},transform:"scale(0.9)"},onClick:function(){return Z(Bt.Positive)},"aria-label":"Thumbs up"},w!==Bt.Positive?e.createElement(uR,null):e.createElement(dR,null)),te=e.createElement(xf,{"data-id-tag":b,disableRipple:!0,disableFocusRipple:!0,disabled:Q,size:"small",sx:{"&:hover":v?{cursor:"default"}:{color:We.Negative},color:w!==Bt.Negative?CR:We.Negative,"&:focus-visible":v?{}:{color:We.Negative},transform:"scale(0.9)"},onClick:function(){return Z(Bt.Negative)},"aria-label":"Thumbs down"},w!==Bt.Negative?e.createElement(pR,null):e.createElement(fR,null));return e.createElement(OR,{sx:d,"aria-live":"polite"},e.createElement("div",null,e.createElement(Xf,{component:"label","aria-label":"".concat(W.DID_I_HELP()),tabIndex:0},W.DID_I_HELP()),(null===(n=null==h?void 0:h.featureFlags)||void 0===n?void 0:n[$t.SwitchFeedbackButtons])?e.createElement(e.Fragment,null,ee,te):e.createElement(e.Fragment,null,te,ee)),!v&&!D&&e.createElement(e.Fragment,null,e.createElement(Iy,{className:"ocelot-transcript-hide",in:_,timeout:300,unmountOnExit:!0},e.createElement(cR,{icon:!1,role:"alert","aria-live":"assertive",sx:{borderRadius:"12px",backgroundColor:TR,width:"auto",color:"black"}},J)),e.createElement("span",{ref:B})),!v&&A&&e.createElement(Iy,{className:"ocelot-transcript-hide",in:!0},e.createElement(cR,{action:e.createElement(xf,{"aria-label":W.CLOSE_FEEDBACK_COMMENT(),color:"inherit",size:"small",onClick:X},e.createElement(hR,{fontSize:"inherit"})),icon:!1,sx:{backgroundColor:TR,color:"black",borderRadius:"12px"},role:"alert","aria-live":"assertive"},e.createElement(Xf,{variant:"h6"},W.SORRY_TO_HEAR()),e.createElement(Xf,{variant:"subtitle2",sx:{color:"#5F5F5F",marginBottom:function(e){return e.spacing(1)}}},W.DO_YOU_HAVE_COMMENTS()),e.createElement(xx,{fullWidth:!0},e.createElement(Fw,{disabled:Q,placeholder:W.YOUR_COMMENT_OPTIONAL(),sx:{backgroundColor:"#FFF"},autoFocus:!0,multiline:!0,fullWidth:!0,value:T,onChange:function(e){return O(e.target.value)}})),T&&e.createElement(GS,{disabled:Q,sx:{color:"#000",mt:1},startIcon:e.createElement(mR,null),onClick:function(){return SR(i,void 0,void 0,(function(){var e,t;return AR(this,(function(n){switch(n.label){case 0:return[4,G(T)];case 1:return e=n.sent(),(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.saveResponseFeedbackComment.success)&&X(),[2]}}))}))}},W.SUBMIT_FEEDBACK()))),(K||Y)&&e.createElement(Xf,{className:"ocelot-transcript-hide",color:"#E31B0C",display:"inline-flex",fontSize:14},e.createElement(vR,{sx:{mr:1},fontSize:"small"}),W.FAILED_TO_SEND()),(null===(o=null===(r=s.feedback)||void 0===r?void 0:r.comment)||void 0===o?void 0:o.trim())&&e.createElement(em,{className:"ocelot-transcript-show",style:v?{display:"flex",flexDirection:"column"}:{display:"none",flexDirection:"column"}},e.createElement(em,{sx:{display:"inline-flex"}},v&&w!==Bt.Negative&&e.createElement(wS,{title:"This user provided a negative feedback reaction and a comment, and then ".concat(w===Bt.Positive?"changed their feedback reaction to positive.":"revoked their feedback reaction."),PopperProps:{container:u}},e.createElement(gR,null)),e.createElement("strong",null,v?W.COMMENT():W.YOUR_COMMENT())),e.createElement(Xf,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"}},'"'.concat(null===(a=s.feedback)||void 0===a?void 0:a.comment.trim(),'"'))),e.createElement("span",{ref:V}))},_R=(0,sh.A)((0,Po.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),IR=(0,sh.A)((0,Po.jsx)("path",{d:"m18 7-1.41-1.41-6.34 6.34 1.41 1.41zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12zM.41 13.41 6 19l1.41-1.41L1.83 12z"}),"DoneAll"),PR=e=>{if(!("string"!=typeof e||e.length<1))return 0===e.indexOf("#")?e:`#${e}`},NR=e=>"string"==typeof e?PR(e):"object"==typeof e&&e.color?PR(e.color):void 0,MR=e=>{const t={typography:np?{htmlFontSize:parseFloat(window.getComputedStyle(document.body.parentElement).getPropertyValue("font-size"))}:{},zIndex:{mobileStepper:1e6,appBar:11e5,drawer:12e5,modal:13e5,snackbar:14e5,chatbotDrawer:16e5,chatbotDrawerMenu:17e5,tooltip:18e5},palette:{contrastThreshold:4.5},components:{MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:{".Mui-focusVisible":{border:"1px solid currentColor"},"&:focus-visible":{border:"1px solid currentColor"}}}},MuiButtonGroup:{defaultProps:{disableRipple:!0}}}},n=NR(e.primary),r=NR(e.secondary);let o,a;if(e.link){const t=(i=e.link,or(i));if(o=NR(t),o){const e=function(e){var t=rr(e,60);return er(t)?t:rr(e,-40)}(t);a=NR(e)}}var i;return n&&(t.palette.primary={main:n}),r&&(t.palette.secondary={main:r}),o&&(t.palette.link=o),a&&(t.palette.linkLight=a),(0,Xh.A)(t)};var LR={fontSize:"18px",marginBottom:"-5px",marginRight:"3px",fill:rO.A[700]};const DR=function(t){var n=t.deliveryStatus,r=t.wrapper,o=e.createElement(_R,{style:LR}),a=n;switch(n){case yt.Sent:a="Sent";break;case yt.Delivered:o=e.createElement(IR,{style:LR}),a="Delivered";break;case yt.Failed:case yt.Sending:return null;default:!function(e){throw new Error("Unhandled discriminated union member: ".concat(JSON.stringify(e)))}(n)}return e.createElement(wS,{title:a,PopperProps:{disablePortal:!0,container:r},placement:"top"},o)};var FR=function(t){var n,r=t.message,o=t.wrapper,a=jh();return e.createElement(Xf,{variant:"caption","aria-hidden":!0,sx:{fontSize:".625rem",color:ES.A[600],position:"absolute",top:a.spacing(.25),right:a.spacing(2.25)}},r.status&&e.createElement(DR,{deliveryStatus:r.status,wrapper:o}),r.time&&e.createElement(wS,{title:null!==(n=r.timeZone)&&void 0!==n?n:"No time zone",PopperProps:{container:o},placement:"top"},e.createElement(em,{component:"span"},r.time)))};const jR=(0,sh.A)((0,Po.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function $R(e){return(0,cf.Ay)("MuiChip",e)}const zR=(0,Qp.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),BR=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],VR=(0,_p.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${zR.avatar}`]:t.avatar},{[`& .${zR.avatar}`]:t[`avatar${(0,mf.A)(s)}`]},{[`& .${zR.avatar}`]:t[`avatarColor${(0,mf.A)(r)}`]},{[`& .${zR.icon}`]:t.icon},{[`& .${zR.icon}`]:t[`icon${(0,mf.A)(s)}`]},{[`& .${zR.icon}`]:t[`iconColor${(0,mf.A)(o)}`]},{[`& .${zR.deleteIcon}`]:t.deleteIcon},{[`& .${zR.deleteIcon}`]:t[`deleteIcon${(0,mf.A)(s)}`]},{[`& .${zR.deleteIcon}`]:t[`deleteIconColor${(0,mf.A)(r)}`]},{[`& .${zR.deleteIcon}`]:t[`deleteIcon${(0,mf.A)(l)}Color${(0,mf.A)(r)}`]},t.root,t[`size${(0,mf.A)(s)}`],t[`color${(0,mf.A)(r)}`],a&&t.clickable,a&&"default"!==r&&t[`clickableColor${(0,mf.A)(r)})`],i&&t.deletable,i&&"default"!==r&&t[`deletableColor${(0,mf.A)(r)}`],t[l],t[`${l}${(0,mf.A)(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,Lo.A)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${zR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${zR.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${zR.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${zR.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${zR.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${zR.icon}`]:(0,Lo.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,Lo.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${zR.deleteIcon}`]:(0,Lo.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,Np.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,Np.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,Np.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${zR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Np.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${zR.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,Lo.A)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Np.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${zR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Np.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${zR.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,Lo.A)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${zR.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${zR.avatar}`]:{marginLeft:4},[`& .${zR.avatarSmall}`]:{marginLeft:2},[`& .${zR.icon}`]:{marginLeft:4},[`& .${zR.iconSmall}`]:{marginLeft:2},[`& .${zR.deleteIcon}`]:{marginRight:5},[`& .${zR.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Np.X4)(e.palette[t.color].main,.7)}`,[`&.${zR.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Np.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${zR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Np.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${zR.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Np.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),WR=(0,_p.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,mf.A)(r)}`]]}})((({ownerState:e})=>(0,Lo.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function UR(e){return"Backspace"===e.key||"Delete"===e.key}const qR=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:f,onDelete:h,onKeyDown:m,onKeyUp:v,size:g="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:x=!1}=r,w=(0,Do.A)(r,BR),E=e.useRef(null),S=(0,Lp.A)(E,n),A=e=>{e.stopPropagation(),h&&h(e)},k=!(!1===i||!f)||i,C=k||h?hf:l||"div",T=(0,Lo.A)({},r,{component:C,disabled:u,size:g,color:s,iconColor:e.isValidElement(d)&&d.props.color||s,onDelete:!!h,clickable:k,variant:y}),O=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${(0,mf.A)(r)}`,`color${(0,mf.A)(o)}`,s&&"clickable",s&&`clickableColor${(0,mf.A)(o)}`,i&&"deletable",i&&`deletableColor${(0,mf.A)(o)}`,`${l}${(0,mf.A)(o)}`],label:["label",`label${(0,mf.A)(r)}`],avatar:["avatar",`avatar${(0,mf.A)(r)}`,`avatarColor${(0,mf.A)(o)}`],icon:["icon",`icon${(0,mf.A)(r)}`,`iconColor${(0,mf.A)(a)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,mf.A)(r)}`,`deleteIconColor${(0,mf.A)(o)}`,`deleteIcon${(0,mf.A)(l)}Color${(0,mf.A)(o)}`]};return(0,Pp.A)(c,$R,t)})(T),R=C===hf?(0,Lo.A)({component:l||"div",focusVisibleClassName:O.focusVisible},h&&{disableRipple:!0}):{};let _=null;h&&(_=c&&e.isValidElement(c)?e.cloneElement(c,{className:(0,Ip.A)(c.props.className,O.deleteIcon),onClick:A}):(0,Po.jsx)(jR,{className:(0,Ip.A)(O.deleteIcon),onClick:A}));let I=null;o&&e.isValidElement(o)&&(I=e.cloneElement(o,{className:(0,Ip.A)(O.avatar,o.props.className)}));let P=null;return d&&e.isValidElement(d)&&(P=e.cloneElement(d,{className:(0,Ip.A)(O.icon,d.props.className)})),(0,Po.jsxs)(VR,(0,Lo.A)({as:C,className:(0,Ip.A)(O.root,a),disabled:!(!k||!u)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&UR(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(h&&UR(e)?h(e):"Escape"===e.key&&E.current&&E.current.blur()),v&&v(e)},ref:S,tabIndex:x&&u?-1:b,ownerState:T},R,w,{children:[I||P,(0,Po.jsx)(WR,{className:(0,Ip.A)(O.label),ownerState:T,children:p}),_]}))}));var HR=function(){return HR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HR.apply(this,arguments)},GR="UserAvatarBadge",QR={avatar:"".concat(GR,"-avatar"),badge:"".concat(GR,"-badge")},KR=(0,_p.Ay)("div")((function(){var e;return(e={display:"inline-flex",alignSelf:"center"})["& .".concat(QR.avatar)]={height:24,width:24,backgroundColor:"transparent"},e["& .".concat(QR.badge)]={minHeight:32,backgroundColor:"#fff",height:"auto","& .MuiChip-label":{display:"block",whiteSpace:"nowrap"}},e}));function YR(t){var n=t.additionalTooltipProps,r=t.boxSx,o=t.titleOverride,a=t.labelOverride,i=Um().LL;return e.createElement(em,{sx:r},e.createElement(wS,HR({title:null!=o?o:i.GENERATIVE_AI_DISCLAIMER(),placement:"top",arrow:!0},n),e.createElement(KR,null,e.createElement(qR,{variant:"outlined",className:QR.badge,label:null!=a?a:i.GENERATIVE_AI(),avatar:e.createElement(hh,{src:"".concat("https://ai.ocelotbot.com","/static/ocelot_avatar.png"),alt:null!=a?a:i.GENERATIVE_AI(),className:QR.avatar})}))))}var XR=function(){return XR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XR.apply(this,arguments)};function JR(t){var n=t.titleOverride,r=t.disclaimer,o=t.containerSxProps,a=t.additionalTooltipProps;return e.createElement(em,{sx:XR({pt:1,display:"flex",width:"100%",gap:1,alignItems:"center"},o)},e.createElement(YR,{additionalTooltipProps:a,titleOverride:n}),e.createElement(Xf,{sx:{fontSize:"12px",fontWeight:400},variant:"caption"},r))}var ZR=function(){return ZR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZR.apply(this,arguments)},e_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},t_=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},n_="#808080",r_={video:1,webpage:2,file:3};function o_(t){var n,r,o,a=t.message,i=t.turnIndex,s=t.cbID,l=t.name,c=t.avatarUrl,u=t.language,d=t.wrapper,p=t.editNid,f=t.canEditOrAdd,h=t.displayActions,m=t.question,v=t.listClass,g=t.AddOrEditQuestionButton,y=t.isLastMessage,b=jh(),x=Um().LL,w=a.actions?a.actions.length:0,E=zn()===jn.Mac,S=rk().onLanguageChange,A=(0,e.useRef)(null);KO(A,a.type,a.conversationTurnId);var k=null===(n=a.resources)||void 0===n?void 0:n.filter((function(e){return"webpage"===e.type})),C=k?k.length:0,T=[ht.OperatorTurn,ht.CampaignOperatorTurn],O=ir(ZR({},a)),R=a.operatorName&&(T.includes(a.type)||a.convoType&&T.includes(a.convoType))?e.createElement(wS,{title:a.operatorName,PopperProps:{container:d}},e.createElement(e.Fragment,null,e.createElement(hh,{src:a.operatorAvatar||void 0,alt:"".concat(a.operatorName," avatar"),"aria-hidden":"true",sx:{color:b.palette.getContrastText(b.palette.secondary.dark),backgroundColor:b.palette.secondary.dark}},function(e){return(e||"").split(/\s/).map((function(e){return e.substr(0,1)})).slice(0,2).join("")}(a.operatorName)),e.createElement(Xf,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:b.spacing(10),padding:b.spacing(.5),wordBreak:"break-word"}},a.operatorName))):e.createElement(e.Fragment,null,e.createElement(hh,{src:c,alt:"".concat(l," avatar"),"aria-hidden":"true",sx:{color:b.palette.getContrastText(b.palette.secondary.dark),backgroundColor:b.palette.secondary.dark}}),e.createElement(Xf,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:b.spacing(10),padding:b.spacing(.5),wordBreak:"break-word"}},l)),_=a.operatorName||l,I="".concat(x.USER_SAID({name:_}).trim(),": "),P=Kt(a.output,u),N=E||0!==i?void 0:"alert",M="alert"!==N?"polite":void 0;M=P.includes("href=")?"assertive":M;var L,D=a.source===pt.CampaignSMS,F=a.source===pt.CampaignUnsolicitedSms,j=D||F,$=null!==(r=a.campaign_name)&&void 0!==r?r:"",z=u===(null===(o=a.switchLanguageBackPrompt)||void 0===o?void 0:o.to);return e.createElement(e.Fragment,null,a.output?e.createElement(e.Fragment,null,"system"!==a.type&&e.createElement(e.Fragment,null,e.createElement(ih,{sx:a.reviewMode&&j?{display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:"0px"}:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},R),a.reviewMode&&j&&e.createElement(wS,{title:D?"".concat($," Campaign"):"1:1 Text",PopperProps:{container:d,disablePortal:!0},placement:"right"},D?e.createElement(sO,{style:{fill:n_},sx:{marginRight:"15px"}}):e.createElement(lO,{style:{fill:n_},sx:{marginRight:"15px"}}))),e.createElement(nh,{sx:{flex:"1 1 50%",margin:0},"aria-live":M,role:N,primary:e.createElement(e.Fragment,null,a.reviewMode&&e.createElement(FR,{message:a,wrapper:d}),e.createElement("span",{style:{position:"absolute",opacity:0,pointerEvents:"none"}},I," "),e.createElement(em,{sx:ZR({"& a:focus,a:focus-visible":{border:"2px solid",borderColor:"primary.main",outline:"none"}},a.reviewMode&&!w&&{"& p:last-child":{display:"inline"}}),dangerouslySetInnerHTML:{__html:P},ref:A})),secondary:e.createElement(e.Fragment,null,!h||a.resources&&0!==a.resources.length?void 0:e.createElement(UO,ZR({},t))),primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"}})):e.createElement("div",{className:"emptyMessage"}),a.resources&&!!a.resources.length&&e.createElement(Ix,{sx:{listStyle:"none",flex:"1 1 100%",width:"100%"},"aria-label":"Resources"},e.createElement(e.Fragment,null,h&&a.output&&w>0&&e.createElement(zf,{classes:{root:v}},e.createElement(nh,{sx:{margin:0},secondary:e.createElement(UO,ZR({},t)),secondaryTypographyProps:{component:"div"}})),(L=a.resources||[],t_([],e_(L),!1).sort((function(e,t){return r_[e.type]-r_[t.type]}))).map((function(t,n){return e.createElement(zf,{sx:{pr:0,pl:7,"& > div":{width:"100%"}},key:Number(n)},e.createElement(GA,{resource:t,singleWebsite:t.actions&&1===C,cbID:s,language:u}))})))),g&&f&&e.createElement("div",{style:{flex:"1 1 100%",textAlign:"right"}},e.createElement(g,{editType:p?"update":"add",questionObject:{nidToFetch:p,question:m,index:Number(i)},htmlResponse:O&&!p?P:void 0,wrapper:d})),e.createElement(RR,{message:a,i,isLastMessage:y,wrapper:d}),O&&e.createElement(JR,{disclaimer:x.GENERATIVE_AI_MISTAKES(),containerSxProps:{pl:7},additionalTooltipProps:{PopperProps:{container:d}}}),a.switchLanguageBackPrompt&&e.createElement(em,{sx:{pl:7,flex:"1 1 100%",width:"100%"}},e.createElement(MO,{component:"button",variant:"body2",underline:"none",sx:{color:b.palette.link},onClick:function(){if(a.switchLanguageBackPrompt){var e=z?a.switchLanguageBackPrompt.from:a.switchLanguageBackPrompt.to;S(e)}}},z?a.switchLanguageBackPrompt.switchBackTextFrom:a.switchLanguageBackPrompt.switchBackTextTo)))}o_.displayName="OperatorMessage";const a_=e.memo(o_);const i_=e.createContext({});function s_(e){return(0,cf.Ay)("MuiAccordion",e)}const l_=(0,Qp.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),c_=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],u_=(0,_p.Ay)(bh,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${l_.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${l_.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${l_.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,Lo.A)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${l_.expanded}`]:{margin:"16px 0"}}))),d_=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,TransitionComponent:p=FA,TransitionProps:f}=r,h=(0,Do.A)(r,c_),[m,v]=(0,fw.A)({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=e.useCallback((e=>{v(!m),u&&u(e,!m)}),[m,u,v]),[y,...b]=e.Children.toArray(o),x=e.useMemo((()=>({expanded:m,disabled:s,disableGutters:l,toggle:g})),[m,s,l,g]),w=(0,Lo.A)({},r,{square:d,disabled:s,disableGutters:l,expanded:m}),E=(e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e,i={root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]};return(0,Pp.A)(i,s_,t)})(w);return(0,Po.jsxs)(u_,(0,Lo.A)({className:(0,Ip.A)(E.root,a),ref:n,ownerState:w,square:d},h,{children:[(0,Po.jsx)(i_.Provider,{value:x,children:y}),(0,Po.jsx)(p,(0,Lo.A)({in:m,timeout:"auto"},f,{children:(0,Po.jsx)("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:E.region,children:b})}))]}))}));function p_(e){return(0,cf.Ay)("MuiAccordionSummary",e)}const f_=(0,Qp.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),h_=["children","className","expandIcon","focusVisibleClassName","onClick"],m_=(0,_p.Ay)(hf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return(0,Lo.A)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${f_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${f_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${f_.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${f_.expanded}`]:{minHeight:64}})})),v_=(0,_p.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,Lo.A)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${f_.expanded}`]:{margin:"20px 0"}}))),g_=(0,_p.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${f_.expanded}`]:{transform:"rotate(180deg)"}}))),y_=e.forwardRef((function(t,n){const r=(0,Mp.A)({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=(0,Do.A)(r,h_),{disabled:u=!1,disableGutters:d,expanded:p,toggle:f}=e.useContext(i_),h=(0,Lo.A)({},r,{expanded:p,disabled:u,disableGutters:d}),m=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e,a={root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,Pp.A)(a,p_,t)})(h);return(0,Po.jsxs)(m_,(0,Lo.A)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:(0,Ip.A)(m.root,a),focusVisibleClassName:(0,Ip.A)(m.focusVisible,s),onClick:e=>{f&&f(e),l&&l(e)},ref:n,ownerState:h},c,{children:[(0,Po.jsx)(v_,{className:m.content,ownerState:h,children:o}),i&&(0,Po.jsx)(g_,{className:m.expandIconWrapper,ownerState:h,children:i})]}))}));function b_(e){return(0,cf.Ay)("MuiAccordionDetails",e)}(0,Qp.A)("MuiAccordionDetails",["root"]);const x_=["className"],w_=(0,_p.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),E_=e.forwardRef((function(e,t){const n=(0,Mp.A)({props:e,name:"MuiAccordionDetails"}),{className:r}=n,o=(0,Do.A)(n,x_),a=n,i=(e=>{const{classes:t}=e;return(0,Pp.A)({root:["root"]},b_,t)})(a);return(0,Po.jsx)(w_,(0,Lo.A)({className:(0,Ip.A)(i.root,r),ref:t,ownerState:a},o))}));var S_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},A_=(0,_p.Ay)(zf)((function(){return{".MuiAccordionSummary-root.Mui-focusVisible":{backgroundColor:"inherit"}}}));const k_=function(t){var n=t.explore,r=t.highlight,o=t.language,a=t.cbID,i=t.turnIndex,s=t.reviewMode,l=t.onClickSuggestion,c=t.actionTextSx,u=void 0===c?{}:c,d=t.idPrefix,p=t.isGenAi,f=void 0!==p&&p,h=n.links.filter((function(e){return e.url})),m=S_((0,e.useState)(null!=r&&r),2),v=m[0],g=m[1],y=S_((0,e.useState)(),2),b=y[0],x=y[1],w=(0,e.useContext)(Op).config,E=Um().LL,S=!!n.suggestions.length&&("suggestions"===b||s),A=!!n.videos.length&&("videos"===b||s),k=!!h.length&&("links"===b||s),C=Ik(E,w,n,f);return e.createElement(A_,{key:"OperatorExplore-".concat(i),disableGutters:!0,sx:{padding:0,maxHeight:"100%"}},e.createElement(d_,{elevation:0,sx:{width:"100%",maxHeight:"100%",overflowY:"auto"},expanded:v},e.createElement(y_,{expandIcon:e.createElement(DS,{onClick:function(){(b||s)&&g(!v)},id:"".concat(d?"".concat(d,"-"):"","expand-icon")}),sx:{backgroundColor:r?Jt:"",borderTop:s?void 0:"1px solid ".concat(qe.DividerGray),maxHeight:"100%"}},e.createElement(xk,{showLabels:!0,sx:{backgroundColor:r?Jt:"",width:"100%"}},C.map((function(t){return e.createElement(Ck,{key:t.type,sx:{color:t.count?"#000":""},icon:e.createElement(Em,{color:t.count>0?"secondary":"error",badgeContent:t.count},t.icon),onClick:function(){var e;e=t.type,s&&g(!v),0!==n[e].length&&(x(e),b&&b!==e?b!==e&&g(!0):g(!v))},label:e.createElement(Xf,{sx:u},t.label),id:"".concat(d?"".concat(d,"-"):"").concat(t.type,"-action")})})))),e.createElement(E_,{sx:{backgroundColor:function(e){return e.palette.primary.main},maxHeight:"100%"}},e.createElement(e.Fragment,null,S&&e.createElement(Ix,null,s&&e.createElement(zf,{key:"suggestions"},e.createElement(Xf,{variant:"h4",sx:{color:function(e){return e.palette.primary.contrastText}}},E.SUGGESTIONS())),n.suggestions.filter(Boolean).map((function(t,n){var r=Kt(t,o),a="".concat(d?"".concat(d,"-"):"","suggestion");return e.createElement(zf,{key:"suggestion-".concat(n)},e.createElement(ik,{variant:"outlined",color:"inherit",onClick:function(){l&&(l(r),g(!1))},id:"".concat(a,"-").concat(n),"data-id-tag":a},r))}))),A&&e.createElement(Ix,null,s&&e.createElement(zf,{key:"videos"},e.createElement(Xf,{variant:"h4",sx:{color:function(e){return e.palette.primary.contrastText}}},"$",E.VIDEOS())),n.videos.map((function(t){var n=Kt(t.title,o);return e.createElement(em,{sx:{px:3},id:"".concat(d?"".concat(d,"-"):"","video-resource-").concat(n)},e.createElement(OA,{key:"videoResource-".concat(n),video:t,cbID:a,language:o,showVideo:!0}))}))),k&&e.createElement(Ix,null,s&&e.createElement(zf,{key:"links"},e.createElement(Xf,{variant:"h4",sx:{color:function(e){return e.palette.primary.contrastText}}},f?E.SOURCES():E.LINKS())),h.map((function(t){return e.createElement(BA,{key:"webpageResource-".concat(t.url),resource:t,handleTrackLink:function(){},ref:null,singleWebsite:!0,language:o,expanded:!1,handleExpanded:function(){},id:"".concat(d?"".concat(d,"-"):"","link-").concat(t.url)})})))))))},C_="MemoMessages",T_={listRootCommon:`${C_}-listRootCommon`,listRoot:`${C_}-listRoot`,editWrapper:`${C_}-editWrapper`,listRootHl:`${C_}-listRootHl`,listRootSystemMessage:`${C_}-listRootSystemMessage`,actionButton:`${C_}-actionButton`,aspectVideo:`${C_}-aspectVideo`,leftAvatar:`${C_}-leftAvatar`,rightAvatar:`${C_}-rightAvatar`,avatarIcon:`${C_}-avatarIcon`,avatarName:`${C_}-avatarName`,actionList:`${C_}-actionList`,systemMessage:`${C_}-systemMessage`,dividerBorder:`${C_}-dividerBorder`},O_=(0,_p.Ay)("div")((({theme:e})=>({[`& .${T_.listRootCommon}`]:{overflowWrap:"break-word","& p":{padding:0,margin:"0 0 1em"},"& table":{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:e.shape.borderRadius,width:"100%","& tr":{display:"flex",borderTop:"1px solid rgba(0, 0, 0, 0.15)",marginBottom:e.spacing(.5),paddingTop:e.spacing(.5),"&:first-of-type":{borderTop:"none",marginTop:0},"& td, th":{borderLeft:"1px solid rgba(0, 0, 0, 0.15)",flex:1,margin:e.spacing(0,.5,0,.25),paddingLeft:e.spacing(1),"&:first-of-type":{borderLeft:"none",flex:2,paddingLeft:e.spacing(.25)}}}},"& img":{maxWidth:"100%"}},[`& .${T_.listRoot}`]:{alignItems:"flex-start",flexWrap:"wrap",margin:0,"&:hover $editWrapper":{opacity:"1",transition:"opacity .5s"},paddingTop:e.spacing(2),paddingBottom:e.spacing(1.5)},[`& .${T_.editWrapper}`]:{flex:"1 1 100%",textAlign:"right"},[`& .${T_.listRootHl}`]:{alignItems:"flex-start",flexWrap:"wrap",margin:0,background:Jt,"&:hover $editWrapper":{opacity:"1",transition:"opacity .5s"},paddingTop:e.spacing(1.5),paddingBottom:e.spacing(1.5)},[`& .${T_.listRootSystemMessage}`]:{paddingTop:e.spacing(2.5)},[`& .${T_.actionButton}`]:{margin:"0 10px 10px 0",textAlign:"left"},[`& .${T_.aspectVideo}`]:{position:"absolute",width:"100%",height:"100%",left:0,top:0},[`& .${T_.leftAvatar}`]:{display:"flex",flexDirection:"column",alignItems:"flex-start"},[`& .${T_.rightAvatar}`]:{display:"flex",flexDirection:"column",alignItems:"flex-end"},[`& .${T_.avatarIcon}`]:{color:e.palette.getContrastText(e.palette.secondary.dark),backgroundColor:e.palette.secondary.dark},[`& .${T_.avatarName}`]:{display:"none",maxWidth:e.spacing(10),padding:e.spacing(.5),wordBreak:"break-word"},[`& .${T_.actionList}`]:{listStyle:"none",margin:0,padding:0,"& li":{listStyle:"none",display:"inline",margin:0,padding:0}},[`& .${T_.systemMessage}`]:{backgroundColor:ES.A[200],color:ES.A[600],textAlign:"center"},[`& .${T_.dividerBorder}`]:{borderTop:"1px solid rgba(0, 0, 0, 0.12)"}}))),R_=e=>e.convoType!==ht.ClientTurn&&e.convoType!==ht.CampaignClientTurn,__=e=>["user",ht.ClientTurn].includes(e.type),I_=e.forwardRef(((t,n)=>{var r,o;const{messages:a,cbID:i,avatar:s,name:l,clientName:c,AddOrEditQuestionButton:u,language:d,wrapper:p,handleSendMessage:f,liveChatEnded:h}=t,m=(0,e.useRef)(null),v=a.filter(R_),g=pe((e=>e.chatbotUi)),y=pe((e=>e.conversations)),b=null!==(r=null==y?void 0:y.conversation_id)&&void 0!==r?r:null==y||null===(o=y.reviewingConversation)||void 0===o?void 0:o.id,x=(0,e.useRef)(!1);(0,e.useEffect)((()=>{let e;return a&&a.length&&m.current&&(e=setTimeout((()=>{m.current.scrollIntoView()}),200)),()=>clearTimeout(e)}),[m,g.open,a]),(0,e.useEffect)((()=>{!x.current&&g.open&&(x.current=!0)}),[g.open]);const w=x.current||g.open,E=zn();let S;return w&&(S=v.map(((t,r)=>{const o=`${t._id}-${t.conversationTurnId}-${t.utcTime}-${b}-${Number(r)}`,a=r===v.length-1,g=[t.highlight?T_.listRootHl:T_.listRoot,T_.listRootCommon,0===r?void 0:T_.dividerBorder,xr(t.convoType)&&t.reviewMode?T_.listRootSystemMessage:void 0].filter(Boolean).join(" ");if((t.convoType||t.type)===lt.FormNoResponse)return e.createElement(e.Fragment,{key:o});if(xr(t.convoType)&&!t.reviewMode||__(t)&&!Kt(t.output)||t.convoType===at.TemporaryDisconnect&&a&&h&&t.utcTime&&Math.abs(new Date(h).getTime()-new Date(t.utcTime).getTime())<3e4)return null;if(t.convoType===st.Logout)return e.createElement(zf,{classes:{root:g},key:`system-message-${o}`,tabIndex:"0"},e.createElement(em,{sx:{backgroundColor:qe.GrayTextBox,display:"flex",p:2,gap:1,width:"100%",borderRadius:2}},e.createElement(nh,{primary:Kt(t.output,d),primaryTypographyProps:{fontSize:"14px"}})));if(xr(t.convoType)){let n=null,[r,a]=[ES.A[800].toString(),ES.A[200].toString()];const i={alignSelf:"center"};switch(t.convoType){case at.TemporaryDisconnect:case at.Logout:n=e.createElement(nO.A,{sx:i});break;case at.Reconnect:case at.Login:[r,a]=[rO.A[800],rO.A[50]],n=e.createElement(tO.A,{sx:i})}return e.createElement(zf,{classes:{root:g},key:`system-message-${o}`,tabIndex:"0"},e.createElement(em,{sx:{backgroundColor:a,color:r,display:"flex",p:1,gap:1,width:"100%",borderRadius:2}},n,e.createElement(nh,{primary:e.createElement(e.Fragment,null,t.reviewMode&&e.createElement(FR,{message:t,wrapper:p}),t.output),primaryTypographyProps:{fontSize:"14px"}})))}if(__(t))return e.createElement(zf,{classes:{root:g},key:`user-message-${o}`,tabIndex:"0"},t.highlight?e.createElement("span",{ref:m}):"",a&&e.createElement("div",{ref:n}),e.createElement(CO,{message:t,clientName:c,language:d,wrapper:p}));const y=t.nid&&parseInt(t.nid,10)?t.nid:null,x=[lt.NoIntent,lt.Idk,lt.Suggestion,lt.Search,lt.AutoGeneratedResponse],w=r>=2&&v[r-2]&&v[r-2].actions&&!!v[r-2].actions.length&&t.convoType===lt.NoIntent,E=t.convoType===lt.Slot,S=r===v.length-1&&t.actions&&t.actions.length||t.actions&&t.reviewMode,A=t.reviewMode&&t.explore&&(t.explore.suggestions.length>0||t.explore.links.length>0||t.explore.videos.length>0),k=y&&!E||!w&&x.includes(v[r].convoType);let C;var T;u&&k&&(C=null===(T=v[r-1])||void 0===T?void 0:T.output);const O="system"===t.type?T_.systemMessage:"";return e.createElement(e.Fragment,{key:`operator-message-${o}`},e.createElement(zf,{classes:{root:g},className:O,tabIndex:"0"},a&&e.createElement("div",{ref:n}),e.createElement(a_,{message:t,turnIndex:r,cbID:i,name:l,avatarUrl:s,language:d,wrapper:p,editNid:y,canEditOrAdd:k,displayActions:!!S,question:C,listClass:g,handleSendMessage:f,AddOrEditQuestionButton:u,isLastMessage:a})),A&&e.createElement(e.Fragment,null,e.createElement(sb,{sx:{borderStyle:"dashed"}}),e.createElement(k_,{cbID:i,language:d,reviewMode:t.reviewMode,explore:t.explore,highlight:t.highlight,turnIndex:r,isGenAi:ir(t)}),e.createElement(sb,null)))}))),e.createElement(O_,null,e.createElement(Ix,{"aria-live":E!==jn.Mac?"polite":void 0,"aria-relevant":"additions","aria-atomic":E===jn.Mac&&void 0},S),e.createElement("div",{hidden:!0},e.createElement("span",{id:GO},"Opens in a new window")))}));I_.displayName="Messages",I_.propTypes={messages:In().array.isRequired,AddOrEditQuestionButton:In().func,avatar:In().string.isRequired,cbID:In().number.isRequired,language:In().string.isRequired,name:In().string.isRequired,clientName:In().string.isRequired,wrapper:In().object.isRequired,handleSendMessage:In().func.isRequired,liveChatEnded:In().string},I_.defaultProps={AddOrEditQuestionButton:null,liveChatEnded:null};const P_=e.memo(I_),N_=(t,n)=>{(0,e.useEffect)((()=>(t.current&&t.current.addEventListener("scroll",n,{passive:!0}),()=>{t.current&&t.current.removeEventListener("scroll",n)})),[t])};var M_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};const L_=function(t,n,r,o){var a,i=M_((0,e.useState)(!1),2),s=i[0],l=i[1],c=M_((0,e.useState)(!1),2),u=c[0],d=c[1],p=M_((0,e.useState)(!1),2),f=p[0],h=p[1],m=M_((0,e.useState)(!1),2),v=m[0],g=m[1],y=pe((function(e){return e.messages.fresh})),b=function(){var e=r.current;if(e){var t=e.scrollHeight-e.scrollTop<=e.clientHeight+10;l(!t)}};(0,e.useEffect)((function(){return b()})),N_(r,(function(){b(),u||d(!0)})),(0,e.useEffect)((function(){v||s||g(!0)}),[v,s]);var x=(0,e.useCallback)((function(e){var t;if(!f&&!v&&!u&&e&&"review"!==n.interfaceType){if(e.scrollIntoView(),y&&e.parentElement){var r=e.parentElement.querySelectorAll('button, [href], input, select, textarea, iframe, [tabindex]:not([tabindex="-1"])');r.length&&(null===(t=r[0])||void 0===t||t.focus())}h(!0)}}),[n.interfaceType,y,f,v,u]);(0,e.useEffect)((function(){d(!1),g(!1),h(!1)}),[null===(a=null==t?void 0:t.items)||void 0===a?void 0:a.length,o]);return[x,M_(sy(s&&!v,300),1)[0],function(){s&&r.current&&r.current.scrollBy({behavior:"smooth",top:r.current.clientHeight})}]};var D_="TypingPreview",F_={typingWrapper:"".concat(D_,"-typingWrapper"),dotsContainer:"".concat(D_,"-dotsContainer"),dot:"".concat(D_,"-dot"),hidden:"".concat(D_,"-hidden")},j_=(0,_p.Ay)("div")((function(e){var t,n=e.theme,r=n.palette.secondary;return(t={backgroundColor:r.light,willChange:"transform",width:"auto",borderRadius:40,padding:16,display:"table",margin:n.spacing(2,0,2,3),position:"relative",animation:"3s bulge infinite ease-out","&::before, &::after":{content:"''",position:"absolute",bottom:-1.5,left:-1.5,height:16,width:16,borderRadius:"50%",backgroundColor:r.light},"&::after":{height:8,width:8,left:-8,bottom:-8}})["& .".concat(F_.hidden)]={position:"absolute",opacity:0,pointerEvents:"none"},t["& .".concat(F_.dotsContainer)]={alignItems:"center",display:"flex"},t["& .".concat(F_.dot)]={backgroundColor:r.contrastText,borderRadius:2,display:"inline-block",height:4,width:4,marginRight:2,animation:"1.5s typingAnimation infinite ease-in-out","&:nth-of-type(1)":{animationDelay:"200ms"},"&:nth-of-type(2)":{animationDelay:"300ms"},"&:nth-of-type(3)":{animationDelay:"400ms"}},t}));const $_=function(t){var n=t.isTypingResponse,r=t.isAssignedToOperator;return e.createElement("div",{"aria-live":"polite"},n&&e.createElement(e.Fragment,null,e.createElement(sb,null),e.createElement(j_,null,r&&e.createElement("span",{className:F_.hidden},"User is typing"),e.createElement("div",{className:F_.dotsContainer},e.createElement("div",{className:F_.dot}),e.createElement("div",{className:F_.dot}),e.createElement("div",{className:F_.dot})))))};var z_="\n390 x 844\n414 x 896\n375 x 812\n428 x 926\n375 x 667\n412 x 915\n360 x 800\n385 x 854\n412 x 869\n412 x 846\n360 x 740\n360 x 640\n414 x 736\n360 x 780\n412 x 892\n384 x 854\n360 x 760\n320 x 568\n320 x 693\n412 x 883\n\niPhone 14 Pro Max 430 x 932\niPhone 14 Pro     393 x 852\niPhone 14 Plus    428 x 926\niPhone 14         390 x 844\niPhone 13 Pro     390 x 844\niPhone 12 Pro Max 428 x 926\niPhone 12 Pro     390 x 844\niPhone 12         414 x 895\niPhone XR         414 x 896\niPhone XS         375 x 812\niPhone XS Max     414 x 896\niPhone X          375 x 812\niPhone 8 Plus     414 x 736\niPhone 8          375 x 667\niPhone 7 Plus     414 x 736\niPhone 7          375 x 667\niPhone 6 Plus/6S  414 x 736\niPhone 6/6S       375 x 667\niPhone 5          320 x 568\niPod Touch        320 x 568\n\nSamsung Galaxy S23        360 x 780\nSamsung Galaxy S22        360 x 780\nSamsung Galaxy S21        360 x 800\nSamsung Galaxy S20        360 x 800\nSamsung Galaxy S10        360 x 740\nSamsung Galaxy S10 Lite   360 x 800\nSamsung Galaxy S9         360 x 740\nSamsung Galaxy S8         360 x 740\nSamsung Galaxy S7         360 x 640\nSamsung Galaxy Note 10+   412 x 869\nSamsung Galaxy Note 10    412 x 869\nSamsung Galaxy Note 9     360 x 740\nSamsung Galaxy Note 5     480 x 853\n\nGoogle Pixel 7 Pro        412 x 771\nGoogle Pixel 7            412 x 732\nGoogle Pixel 6 Pro        412 x 892\nGoogle Pixel 6            412 x 915\nGoogle Pixel 5 Pro        393 x 851\nGoogle Pixel 5            393 x 851\nGoogle Pixel 4 XL         412 x 869\nGoogle Pixel 4            412 x 869\nGoogle Pixel 3a XL        412 x 824\nGoogle Pixel 3a           412 x 846\nGoogle Pixel 3 XL         412 x 847\nGoogle Pixel 3            412 x 824\nGoogle Pixel 2 XL         412 x 732\nGoogle Pixel XL           412 x 732\nGoogle Pixel              412 x 732\n",B_=new Set;Array.from(z_.matchAll(/(\d+) x (\d+)/g)).forEach((function(e){B_.add(parseInt(e[1],10)),B_.add(parseInt(e[2],10))}));var V_=/(BlackBerry|webOS|iPhone|IEMobile|Android|Windows Phone|iPad|iPod)/;function W_(){var e;if(null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.mobile)return!0;if(V_.test(window.navigator.userAgent))return!0;if(window.navigator.maxTouchPoints>0){if(B_.has(window.innerWidth))return!0;if(/(Mac OS)/.test(window.navigator.userAgent))return!0}return!1}const U_="MessagesWrapper",q_={bottomAlignMessages:`${U_}-bottomAlignMessages`,container:`${U_}-container`,end:`${U_}-end`,icon:`${U_}-icon`,seeMoreButton:`${U_}-seeMoreButton`,seeMoreCentered:`${U_}-seeMoreCentered`,seeMoreText:`${U_}-seeMoreText`,seeMoreWrap:`${U_}-seeMoreWrap`,transcriptElement:`${U_}-transcriptElement`},H_=(0,_p.Ay)("div")((({theme:e})=>({[`&.${q_.bottomAlignMessages}`]:{marginTop:"auto !important"},[`& .${q_.container}`]:{flex:"1 1 auto",minHeight:"0px",overflowX:"hidden",overflowY:"auto"},[`& .${q_.end}`]:{clear:"both",float:"left"},[`& .${q_.icon}`]:{fontSize:"1.2rem"},[`& .${q_.seeMoreButton}`]:{backgroundColor:e.palette.link,color:"#fff",pointerEvents:"all","&:hover":{backgroundColor:e.palette.link,color:"#fff"},"&:focus-visible":{border:`1px solid ${e.palette.primary.contrastText}`}},[`& .${q_.seeMoreCentered}`]:{display:"flex",justifyContent:"center"},[`& .${q_.seeMoreText}`]:{fontSize:"0.8rem",margin:e.spacing(0,.5)},[`& .${q_.seeMoreWrap}`]:{bottom:e.spacing(10),pointerEvents:"none",position:"absolute",width:"100%",zIndex:1},[`& .${q_.transcriptElement}`]:{display:"none"}}))),G_=e.forwardRef((({browser:t,cbid:n,language:r,messages:o,clientName:a,wrapper:i,handleSendMessage:s},l)=>{var c;const{LL:u}=Um(),{AddOrEditQuestionButton:d,LoadCompleteConversation:p,PostConversation:f,ReviewStatusPane:h}=Tp(),{config:m}=(0,e.useContext)(Op),v=(0,e.useRef)(null),g=(0,e.useRef)(null),y=l||g,b=(0,e.useRef)(null),{name:x,avatar:w}=pe((e=>e.configOverrides)),E=void 0!==w?w:m.avatar,S=x||m.name,A=(0,e.useRef)(p&&e.createElement(p,null)),k=pe((e=>e.conversations));(0,e.useEffect)((()=>{var e;(e=b.current)&&Array.from(e.getElementsByClassName("aspectRatio")).forEach((e=>{const t=(e.getAttribute("class")||"").split(/\s+/i),[n]=t.map((e=>/aspectRatio-(\d+(?:\.\d+)?)/i.exec(e))).filter((e=>!!e)).map((e=>e[1]));n&&e.parentElement&&"FIGURE"===e.parentElement.tagName&&(e.parentElement.style=`\n          position: relative;\n          padding-bottom: ${1/n*100}% !important;\n          height: 0;\n          width: 100%;\n          margin: 0;\n          overflow: hidden;\n          background-color: rgba(0, 0, 0, 0.1) !important;\n        `,e.style="\n          position: absolute;\n          top: 0;\n          left: 0;\n          width: 100%;\n          height: 100%;\n        ")}))}),[o.items]);const[C,T,O]=L_(o,m,y,o.typingResponse),R=(0,e.useRef)((new Date).toLocaleString());return e.createElement(H_,{className:W_()?q_.bottomAlignMessages:""},h&&e.createElement(h,null),A.current,e.createElement("div",{className:q_.seeMoreWrap},T&&e.createElement("div",{className:q_.seeMoreCentered},e.createElement(im,{"aria-label":"More",className:q_.seeMoreButton,onClick:O,size:"small",variant:"extended"},e.createElement(eO.A,{className:q_.icon}),e.createElement(Xf,{className:q_.seeMoreText,variant:"button"},u.MORE())))),e.createElement("article",{className:q_.container,ref:y},e.createElement("div",{id:"ocelotbot-message-container",ref:b},e.createElement("div",null,e.createElement(Xf,{variant:"h3",component:"div",className:`${q_.transcriptElement} ocelot-transcript-show`,id:"ocelotbot-transcript-header"},`Transcript with ${S} on ${R.current}`),e.createElement(P_,{liveChatEnded:null==k||null===(c=k.reviewingConversation)||void 0===c?void 0:c.liveChatEnded,messages:o.items,avatar:E,cbID:n,AddOrEditQuestionButton:d||null,mobile:t.lessThan.medium,name:S,language:r,ref:C,clientName:a,wrapper:i,handleSendMessage:s})),e.createElement($_,{isTypingResponse:o.typingResponse,isAssignedToOperator:!!o.liveChatAssignee}),f&&e.createElement(e.Fragment,null,e.createElement(sb,null),e.createElement(f,null)),e.createElement("div",{className:q_.end,ref:v}))))}));G_.displayName="MessagesWrapper",G_.propTypes={browser:In().object.isRequired,cbid:In().number.isRequired,language:In().string.isRequired,messages:In().object.isRequired,clientName:In().string.isRequired,wrapper:In().object.isRequired,handleSendMessage:In().func.isRequired};const Q_=G_;var K_=[Wt.ExitChatbot.toLowerCase(),"exit","no"],Y_="ChatbotDrawer",X_={conversation:"".concat(Y_,"-conversation"),drawerPaper40:"".concat(Y_,"-drawerPaper40"),drawerPaper30:"".concat(Y_,"-drawerPaper30"),drawerPaper55:"".concat(Y_,"-drawerPaper55"),drawerPaper100:"".concat(Y_,"-drawerPaper100")},J_=(0,_p.Ay)(eb)((function(e){var t;return(t={zIndex:e.theme.zIndex.chatbotDrawer})["& .".concat(X_.conversation)]={display:"flex",flexDirection:"column",height:"100%"},t["& .".concat(X_.drawerPaper40)]={width:"40%",height:"100%",msOverflowStyle:"none"},t["& .".concat(X_.drawerPaper30)]={width:"35%",height:"100%",msOverflowStyle:"none"},t["& .".concat(X_.drawerPaper55)]={width:"55%",height:"100%",msOverflowStyle:"none"},t["& .".concat(X_.drawerPaper100)]={width:"100%",height:"100%",msOverflowStyle:"none"},t}));const Z_=function(t){var n=t.aiRef,r=t.chatInputRef,o=t.environment,a=t.settings,i=t.toggle,s=t.isCollapsible,l=void 0===s||s,c=ze(),u=(0,e.useContext)(bp),d=(0,e.useContext)(Op).config,p=pe((function(e){return e.browser})),f=pe((function(e){return e.chatbotUi})),h=pe((function(e){return e.language.lang})),m=pe((function(e){return e.messages})),v=rk().onLanguageChange,g=pe((function(e){return e.conversationState})),y=pe((function(e){return e.explore.backdropOpen})),b=a.languages,x=m.isLeadCaptureComplete,w=m.items.filter((function(e){return"watson"===e.type})),E=w[w.length-1],S=(0,e.useCallback)((function(e,t,n,r){var o,s=(void 0===r?{sentThroughActionButton:!1}:r).sentThroughActionButton,l=!!(null===(o=null==E?void 0:E.actions)||void 0===o?void 0:o.length)&&E.actions.some((function(e){return Xt(e)===Wt.ExitChatbot})),p=Xt(e);l&&p.toLowerCase()===Wt.ExitChatbot.toLowerCase()||(null==d?void 0:d.isLeadCapture)&&!x&&l&&K_.includes(p.toLowerCase())?i()():"review"!==a.interfaceType&&u&&d&&(gr("message_send",t),c($r(u,e,{operations:{onLanguageChange:v},config:d,language:n,meta:{sentThroughActionButton:s}})))}),[u,d,c,x,E,v,a.interfaceType,i]),A=(0,e.useCallback)((function(e,t){var n;S(e,null===(n=null===window||void 0===window?void 0:window.location)||void 0===n?void 0:n.href,t)}),[S]),k=X_.drawerPaper30;k=p.lessThan.medium?X_.drawerPaper100:p.is.medium?X_.drawerPaper55:X_.drawerPaper40;var C=1===m.items.length;return(0,e.useEffect)((function(){f.open&&C&&r.current&&!W_()&&r.current.focus()}),[r,f.open,C]),e.createElement(J_,{open:!l||f.open,anchor:"right",classes:{paper:k},onClose:i(),container:n.current,ModalProps:{disableEscapeKeyDown:!l||y,keepMounted:!0},transitionDuration:l?void 0:0},e.createElement("section",{"aria-labelledby":XT,className:X_.conversation},e.createElement(cb,null,(function(t){return e.createElement(e.Fragment,null,e.createElement(ZT,{languages:b,ref:t,settings:a,toggle:i,wrapper:n.current,isCollapsible:l}),e.createElement(vk,{settings:a},(function(t){return e.createElement(Q_,{browser:p,cbid:a.cbid,language:h,messages:m,clientName:g.name||"",ref:t,wrapper:n.current,handleSendMessage:S})})),e.createElement(YC,{environment:o,wrapper:n.current,chatInput:r.current}),"review"!==a.interfaceType?e.createElement(e.Fragment,null,e.createElement(Dk,{wrapper:n.current}),e.createElement("footer",null,e.createElement(sb,null),e.createElement(LS,{onSubmit:A,outstanding:m.outstanding,ref:r,wrapper:n.current}))):"")}))))};var eI,tI=xg(eI||(eI=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}(["\n  subscription onPublicAsyncResponse($asyncResponseIds: [String!]!, $chatbotId: String!) {\n    onPublicAsyncResponseV2(asyncResponseIds: $asyncResponseIds, chatbotId: $chatbotId) {\n      id\n      conversationId\n      failure\n      response {\n        allowFeedback\n        language\n        type\n        output {\n          drivenBy\n          conversationTurnId\n          text {\n            translations {\n              language\n              text\n            }\n          }\n          actions {\n            text {\n              translations {\n                language\n                text\n              }\n            }\n            type\n          }\n          resources {\n            nids\n            nid\n            type\n            autoplay\n            title {\n              translations {\n                language\n                text\n              }\n            }\n            duration\n            url\n            snippet {\n              translations {\n                language\n                text\n              }\n            }\n            actionLabel {\n              translations {\n                language\n                text\n              }\n            }\n          }\n        }\n        context {\n          conversation_id\n          explore {\n            links {\n              nids\n              nid\n              type\n              autoplay\n              title {\n                translations {\n                  language\n                  text\n                }\n              }\n              duration\n              url\n              snippet {\n                translations {\n                  language\n                  text\n                }\n              }\n              actionLabel {\n                translations {\n                  language\n                  text\n                }\n              }\n            }\n            suggestions {\n              translations {\n                language\n                text\n              }\n            }\n            videos {\n              nids\n              nid\n              type\n              autoplay\n              title {\n                translations {\n                  language\n                  text\n                }\n              }\n              duration\n              url\n              snippet {\n                translations {\n                  language\n                  text\n                }\n              }\n              actionLabel {\n                translations {\n                  language\n                  text\n                }\n              }\n            }\n          }\n        }\n        switchLanguageBackPrompt {\n          from\n          to\n          switchBackTextFrom\n          switchBackTextTo\n        }\n      }\n    }\n  }\n"],["\n  subscription onPublicAsyncResponse($asyncResponseIds: [String!]!, $chatbotId: String!) {\n    onPublicAsyncResponseV2(asyncResponseIds: $asyncResponseIds, chatbotId: $chatbotId) {\n      id\n      conversationId\n      failure\n      response {\n        allowFeedback\n        language\n        type\n        output {\n          drivenBy\n          conversationTurnId\n          text {\n            translations {\n              language\n              text\n            }\n          }\n          actions {\n            text {\n              translations {\n                language\n                text\n              }\n            }\n            type\n          }\n          resources {\n            nids\n            nid\n            type\n            autoplay\n            title {\n              translations {\n                language\n                text\n              }\n            }\n            duration\n            url\n            snippet {\n              translations {\n                language\n                text\n              }\n            }\n            actionLabel {\n              translations {\n                language\n                text\n              }\n            }\n          }\n        }\n        context {\n          conversation_id\n          explore {\n            links {\n              nids\n              nid\n              type\n              autoplay\n              title {\n                translations {\n                  language\n                  text\n                }\n              }\n              duration\n              url\n              snippet {\n                translations {\n                  language\n                  text\n                }\n              }\n              actionLabel {\n                translations {\n                  language\n                  text\n                }\n              }\n            }\n            suggestions {\n              translations {\n                language\n                text\n              }\n            }\n            videos {\n              nids\n              nid\n              type\n              autoplay\n              title {\n                translations {\n                  language\n                  text\n                }\n              }\n              duration\n              url\n              snippet {\n                translations {\n                  language\n                  text\n                }\n              }\n              actionLabel {\n                translations {\n                  language\n                  text\n                }\n              }\n            }\n          }\n        }\n        switchLanguageBackPrompt {\n          from\n          to\n          switchBackTextFrom\n          switchBackTextTo\n        }\n      }\n    }\n  }\n"]))),nI=function(){return nI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nI.apply(this,arguments)},rI=function(e){var t={en:""};return e.forEach((function(e){t[e.language]=e.text})),t},oI=function(e){var t=e.actionLabel?rI(e.actionLabel.translations):{en:""},n=Array.isArray(t.en)?t.en.join(" "):t.en,r=rI(e.title.translations),o=e.snippet?rI(e.snippet.translations):{en:""};return nI(nI({},e),{title:r,snippet:o,actionLabel:n})},aI=function(){return aI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aI.apply(this,arguments)},iI=function(){var t=ze(),n=yp(),r=rk().onLanguageChange,o=On(pe((function(e){return e.language.lang}))),a=pe((function(e){return e.messages})).asyncResponseIdsWaiting,i=pe((function(e){return e.conversationState.conversation_id})),s=(0,e.useRef)(),l=function(){t(Sr({output:{text:[o.API_FAILED()],resources:[],actions:[]}}))};Rv(tI,{variables:{asyncResponseIds:(null==a?void 0:a.map((function(e){return e.id})))||[],chatbotId:n},skip:!a||0===a.length,shouldResubscribe:!0,onError:function(e){console.error("".concat(e.message).concat(e.graphQLErrors?"\n\nGraphQLErrors: ".concat(JSON.stringify(e.graphQLErrors)):"","\n\n").concat(e.stack))},onData:function(e){var n=e.data;if(n.data){var o=n.data.onPublicAsyncResponseV2,a=o.response,i=o.failure;if(a){var s=a.language,c=a.output,u=a.context,d=c.text,p=c.resources,f=c.actions,h={language:s,output:aI(aI({},c),{text:rI(d.translations),resources:p.map(oI),actions:f.map((function(e){return aI(aI({},e),{text:rI(e.text.translations)})}))}),context:aI(aI({},u),{explore:aI(aI({},u.explore),{links:u.explore.links.map(oI),suggestions:u.explore.suggestions.map((function(e){return rI(e.translations)})),videos:u.explore.videos.map(oI)})})},m=aI(aI({},a),h);t(Sr(m)),a.language&&r(a.language),t(an(aI({},a.context)))}else i&&l();t(kr(!1)),t(Tr(n.data.onPublicAsyncResponseV2.id))}else console.error("Could not get subscription data for async response")}}),(0,e.useEffect)((function(){return a&&a.length>0?s.current=setInterval((function(){if(a&&a.length>0)for(var e=0;e<a.length;e+=1){var r=a[e].idAddedTime;Date.now()-r>18e4&&(l(),t(Tr(a[e].id)),t(kr(!1)),o={chatbotId:n,conversationId:i,error:"Async response timed out",info:{asyncResponseId:a[e].id,asyncResponseOtelTraceId:a[e].otelTraceId}},fetch("".concat("https://ai.ocelotbot.com","/api/error-track"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}).catch((function(e){console.error(e)})))}var o}),5e3):s.current&&clearInterval(s.current),function(){s.current&&clearInterval(s.current)}}),[a])};function sI(){return iI(),e.createElement("span",null)}const lI=function(){var t=pe((function(e){return e.language.langEvent})),n=rk().onLanguageChange;(0,e.useEffect)((function(){null!=t&&n(t)}),[t,n])};function cI({adminComponents:t,environment:n,options:r}){lI();const{config:o}=(0,e.useContext)(Op),a=pe((e=>e.chatbotUi)),{onLanguageChange:i}=rk(),s=pe((e=>e.messages)),l=pe((e=>e.conversationState)),c=pe((e=>e.conversationState.knowledgebaseEnvironment)),{locale:u}=Um(),d=ry(),{language:p}=ay(),{showRatingDialog:f}=pe((e=>e.feedback)),[h,m]=(0,e.useState)(!1),v=ze(),g=(0,e.useRef)(null),y=(0,e.useRef)(null);cy();const[b,x]=(0,e.useState)({loaded:!0,cbid:o.cbid?parseInt(o.cbid,10):parseInt(o.id,10),name:o.name,languages:o.languages,launch_button_text:o.launch_button_text,avatar:o.avatar,hello:o.hello,helloActions:o.helloActions,launcherType:o.launcherType,interfaceType:o.interfaceType,editing:null});(0,e.useEffect)((()=>{v(tn()),"#bot"===window.location.hash&&(br(g.current,!1),v(nn(!0)))}),[v]),(0,e.useEffect)((()=>{p!==u&&i(p)}),[p]),(0,e.useEffect)((()=>{if((!r.isCollapsible||a.open)&&!s.items.length){const e={output:{text:b.hello,resources:[],actions:b.helloActions}};v(Sr(e))}}),[s,a,v,r.isCollapsible,b.hello,b.helloActions,c]),(0,e.useEffect)((()=>{b.loaded&&b.name===o.name&&b.languages===o.languages&&b.launch_button_text===o.launch_button_text&&b.avatar===o.avatar&&b.launcherType===o.launcherType&&b.interfaceType===o.interfaceType&&b.cbid===parseInt(o.cbid,10)&&b.hello===o.hello&&b.helloActions===o.helloActions||(x({loaded:!0,name:o.name,languages:o.languages,launch_button_text:o.launch_button_text,avatar:o.avatar,launcherType:o.launcherType,interfaceType:o.interfaceType,cbid:o.cbid?parseInt(o.cbid,10):parseInt(o.id,10),hello:o.hello,helloActions:o.helloActions,editing:null}),d||b.hello===o.hello&&b.helloActions===o.helloActions||v(Ar(0,{actions:o.helloActions,output:o.hello})))}),[b,o,d,v]),(0,e.useEffect)((()=>{d||"review"===b.interfaceType||v(Dr(o.context))}),[b.interfaceType,o.context,d,v]),(0,e.useEffect)((()=>{let e;const t=g.current;return!h&&g.current&&(e=()=>{y&&y.current&&y.current!==document.activeElement&&!f&&y.current.focus()},g.current.addEventListener("keypress",e),m(!0)),()=>{t&&t.removeEventListener("keypress",e)}}),[f,h]);const w=(0,e.useRef)(!1),E=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{var e,t,n,r;w.current&&(a.open?gr("chatbot_open",null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href):gr("chatbot_close",null===(n=window)||void 0===n||null===(r=n.location)||void 0===r?void 0:r.href));w.current=!0,!E.current&&a.open&&(E.current=!0)}),[a.open]),e.createElement(Cp,{value:t},e.createElement(Jg,null,e.createElement(Ta,{ref:g,environment:n,lang:p},e.createElement(Ap,null,s.liveChat&&e.createElement(Ug,null),s.isCampaign&&e.createElement(Yg,null),l.agent_campaign&&e.createElement(Kg,null),e.createElement(sI,null),g.current&&!a.open&&"none"!==b.launcherType?e.createElement(xv,{options:r,root:g.current,autoFocus:E.current}):"",e.createElement(Am,null,((t,{close:o})=>e.createElement(Z_,{aiRef:g,chatInputRef:y,environment:n,settings:b,toggle:o,isCollapsible:r.isCollapsible})))))))}cI.propTypes={adminComponents:In().object,environment:In().oneOf(["admin","embedded"]),options:In().object},cI.defaultProps={options:Rp({}),adminComponents:{},environment:"embedded"};const uI=cI;var dI={en:{A11Y_POLICY:"Accessibility Policy",ABOUT:"About",ABOUT_ME:"About me",APPBAR_HEADER:"Ask {bot:string}",API_FAILED:"Sorry! There appears to be a connectivity issue. Please try again shortly.",ANSWER_QUESTION:"Answer question",ASK_QUESTION:"Ask a question",CANCEL:"Cancel",CHANGE_LANGUAGE:"Change language",CHINESE:"Chinese (Simplified)",CLEAR:"Clear conversation",CLEAR_AND_LOGOUT:"Clear conversation and log out",CLOSE:"Close",CLOSE_BOT:"Close {bot:string}",CLOSE_FEEDBACK_COMMENT:"Close feedback comment",CLOSE_LINKS:"Close links",CLOSE_SUGGESTIONS:"Close suggestions",CLOSE_VIDEOS:"Close videos",COMMENT:"Comment",COPYRIGHT:"Copyright ©{years:string} CareerAmerica, LLC",CREATED_BY:"Created by the financial aid and student services experts\n  \tat Ocelot in Boulder, CO and Evanston, IL.",DEFAULT_LAUNCHER:"Questions? Ask {bot:string}",DID_I_HELP:"Did this answer your question?",DISMISS:"Dismiss",DO_YOU_HAVE_COMMENTS:"Do you have any comment you'd like to add?",DOWNLOAD_TRANSCRIPT:"Download transcript",DOWNLOAD_TRANSCRIPT_QUESTION:"Would you like to download a copy of your chat transcript?",EXPLORE_SUGGESTIONS:"Explore suggestions",EXPLORE_VIDEOS:"Explore videos",EXPLORE_LINKS:"Explore links",FAILED_TO_SEND:"Failed to send. Please try again.",FEEDBACK_FAILED:"I'm sorry, I wasn't able to receive your feedback. Try again later.",FEEDBACK_NOT_AT_ALL:"Not at all likely",FEEDBACK_OTHER:"Do you have any other feedback about your experience?",FEEDBACK_PROMPT:"Enjoying your chat? We'd love your feedback.",FEEDBACK_THANKS:"Thank you for your feedback!",FEEDBACK_THANKS_NEGATIVE:"Thank you for your feedback! We are going to consider it to improve the answer.",FEEDBACK_VERY_LIKELY:"Very likely",GENERATIVE_AI:"Generative AI",GENERATIVE_AI_DISCLAIMER:"This response was created using Generative AI and may contain inaccurate or incomplete information.",GENERATIVE_AI_MISTAKES:"Generative AI can make mistakes. Check important info.",IM_BACK:"I'm back",LANGUAGE:"Language",LANGUAGE_SELECTED:"{lang:string} is currently selected",LIKELY_TO_RECOMMEND:"How likely are you to recommend speaking with {bot:string} to a friend?",LINKS:"Links",LIVECHAT_AGENT_LEFT:"{operator:string} has left the conversation.",LIVECHAT_BOT_SPEAKING:"You are now speaking with {bot:string} again.",LIVECHAT_CONNECTED:"You are now speaking with {operator:string}.",LIVECHAT_LEFT_QUEUE:"You've left the queue. You are now speaking with {bot:string} again.",LIVECHAT_OFFICE_CHANGED:"Operator has transferred this conversation to {office:string}.",LOG_OUT:"Log Out",MORE:"More",NO:"No",NO_TRANSLATE_LC:"Translation unavailable during live agent conversation",OCELOT_VIDEO_PLAYER:"Ocelot Video Player",OPEN_MENU:"Open Menu",PATENT:"U.S. Patent No. {number:string}",PRIVACY_POLICY:"Privacy Policy",RATE_BOT:"Rate {bot:string}",SEND_DISCONNECTED:"Cannot send while disconnected",SEND_MESSAGE:"Send Message",SESSION_EXPIRED:"Your session expired. Please try again.",SORRY_TO_HEAR:"Sorry to hear that!",SOURCES:"Sources",SPANISH:"Spanish",SUBMIT:"Submit",SUBMIT_FEEDBACK:"Submit feedback",SUGGESTIONS:"Suggestions",TERMS_OF_USE:"Terms of Use",UNKNOWN_OPERATOR:"Unknown Operator",USER_SAID:"{name:string} said",VERSION_OLD:"Chatbot v{version:string}",VERSION:"Virtual Assistant v{version:string}",VIETNAMESE:"Vietnamese",VIEW_MORE:"View more...",VIDEOS:"Videos",VISIT_PAGE:"Visit Page",VISIT_URL:"Visit {webpage:string}",YES:"Yes",YOU_SAID:"You said",YOUR_COMMENT:"Your comment",YOUR_COMMENT_OPTIONAL:"Your comment (optional)",SEARCH:"Search languages"}},pI=function(e){Cn[e]||(Cn[e]=dI[e],fI(e))},fI=function(e){Tn[e]={}},hI=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},mI=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},vI=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};const gI=function(t){var n=ay(),r=n.language,o=n.defaultLanguage,a=ek(t).fetchTranslation,i=vI((0,e.useState)(!1),2),s=i[0],l=i[1];return(0,e.useEffect)((function(){hI(void 0,void 0,void 0,(function(){return mI(this,(function(e){switch(e.label){case 0:return r===o?[3,2]:[4,a(r)];case 1:e.sent(),e.label=2;case 2:return kn.forEach(pI),l(!0),[2]}}))}))}),[]),{wasLoaded:s,locale:r}},yI=(0,Io.A)({key:"oclt",stylisPlugins:[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ra:return void(e.return=fa(e.value,e.length,n));case"@keyframes":return pa([da(e,{value:ia(e.value,"@","@"+ta)})],r);case na:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(aa(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pa([da(e,{props:[ia(t,/:(read-\w+)/,":"+ea+"$1")]})],r);case"::placeholder":return pa([da(e,{props:[ia(t,/:(plac\w+)/,":"+ta+"input-$1")]}),da(e,{props:[ia(t,/:(plac\w+)/,":"+ea+"$1")]}),da(e,{props:[ia(t,/:(plac\w+)/,Zo+"input-$1")]})],r)}return""}))}},function(e){e.type===na&&Array.isArray(e.props)&&(e.props=e.props.map((function(e){return 1!==e.indexOf("MaxAI")?".MaxAI ".concat(e):e})))},function(e){e.type!==ra||/!important/.test(e.return)||"string"!=typeof e.props||["height","width","top","left","right","bottom","opacity","transition","animation","transform"].includes(e.props)||(e.return=e.return.replaceAll(";"," !important;"))}],prepend:!0});function bI({apiKey:t,theme:n,...r}){const{wasLoaded:o,locale:a}=gI(t);return o?e.createElement(Mo,{injectFirst:!0},e.createElement(_o.C,{value:yI},e.createElement(Jo,{theme:n},e.createElement(qm,{locale:a},e.createElement(uI,r))))):null}bI.propTypes={theme:In().object.isRequired,apiKey:In().string.isRequired};const xI=bI;var wI=function(){return wI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wI.apply(this,arguments)},EI=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};const SI=function(t){var n=t.children,r=t.inputConfig,o=EI((0,e.useState)({hello:r.hello,helloActions:r.helloActions}),2),a=o[0],i=o[1];(0,e.useEffect)((function(){i({hello:r.hello,helloActions:r.helloActions})}),[r.hello,r.helloActions]);var s=(0,e.useMemo)((function(){return wI(wI({},r),{hello:a.hello,helloActions:a.helloActions})}),[r,a]);return e.createElement(Op.Provider,{value:{config:s,addHelloConfigTranslation:function(e,t){i((function(n){var r,o=wI(wI({},n.hello),((r={})[e]=t.hello[e],r)),a=n.helloActions.map((function(n,r){var o,a;return{type:n.type,text:wI(wI({},n.text),(o={},o[e]=null===(a=t.helloActions.at(r))||void 0===a?void 0:a.text[e],o))}}));return{hello:o,helloActions:a}}))}}},n)};function AI(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var kI=AI();kI.withExtraArgument=AI;const CI=kI,TI=(e,{dev:t=!1}={})=>{const n=L(e,void 0,(t&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||D)(io,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(_(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=D.apply(void 0,a)(n.dispatch),R(R({},n),{},{dispatch:r})}}}(...[CI])));return n};var OI=function(){return OI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OI.apply(this,arguments)};const RI=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.whitelist||null,o=n.blacklist||null;function a(e){return!(!r||-1!==r.indexOf(e))||!(!o||-1===o.indexOf(e))}return{in:function(t,n,r){return!a(n)&&e?e(t,n,r):t},out:function(e,n,r){return!a(n)&&t?t(e,n,r):e}}}((function(e){return e}),(function(e,t){return"messages"===t&&"object"==typeof e?OI(OI({},e),{outstanding:!1}):e}),{whitelist:["messages"]}),_I={new:t=>{let r=t.apiKey;try{const e=new URLSearchParams(window.location.search).get("cid");e&&(r+=`:conversation:${e}`)}catch(e){console.error("Unable to get conversation id from query params.",e)}const o=k({key:r,storage:Y.A,blacklist:["chatbotUi"],transforms:[RI]},Ro),a=TI(o);return{setToken:e=>{a.dispatch(rn(e.clientToken))},removeToken:()=>{a.dispatch({type:tt.CLIENT_AUTH_SET_TOKEN,clientToken:void 0})},render:r=>{let o=t.campusId,p=t.officeId;if((!o||!p)&&t.officePatterns){const e=fr(t.officePatterns,window.location.href)||{};o=e.campusId,p=e.officeId}var f;r.apiKey&&a.dispatch((f=r.apiKey,{type:Pt.SET_KEY,key:f})),r.clientToken&&a.dispatch(rn(r.clientToken));const h=function(e,t,n){var r=n||!1,o=L(V,B,t&&t.enhancer?t.enhancer:void 0),a=function(e){o.dispatch({type:d,key:e})},p=function(t,n,a){var i={type:s,payload:n,err:a,key:t};e.dispatch(i),o.dispatch(i),r&&f.getState().bootstrapped&&(r(),r=!1)},f=$({},o,{purge:function(){var t=[];return e.dispatch({type:u,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:i,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:l})},persist:function(){e.dispatch({type:c,register:a,rehydrate:p})}});return t&&t.manualPersist||f.persist(),f}(a),m={key:r.apiKey?r.apiKey:t.apiKey,domain:window.location.hostname};o&&(m.campusId=o),p&&(m.officeId=p);const v=Object.entries(m).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&");fetch(`https://ai.ocelotbot.com/api/config?${v}`).then((e=>e.json())).then((i=>{const s=MR(i),l=ur(r.uiParams,(u=[],(c=i).embedPosition&&(u=c.embedPosition.split("_")),lr(lr(lr(lr({},2===u.length&&{va:u[0],ha:u[1]}),void 0!==c.embedRoaming&&null!==c.embedRoaming&&{ts:c.embedRoaming?1:0}),void 0!==c.embedButtonStyle&&null!==c.embedButtonStyle&&{bs:c.embedButtonStyle}),void 0!==c.embedAvatar&&null!==c.embedAvatar&&{av:c.embedAvatar?1:0})));var c,u;r.conversation&&(i.interfaceType="review",i.launcherType="none",a.dispatch(Er(r.conversation)),a.dispatch(nn(!0)));const d=()=>{const e=(a.getState().messages.items||[]).filter((e=>"system"===e.type)),t=(r.preload.conversation||[]).concat(e);t.sort(((e,t)=>new Date(e.startTime)-new Date(t.startTime))),a.dispatch(Er(t))};if(r.preload&&r.preload.conversation&&!r.preload.context&&d(),r.preload&&r.preload.conversation&&r.preload.context){d();const e=r.preload.context;a.dispatch(an(e)),a.dispatch(tn()),a.dispatch(function(e,t){return function(n,r){var o=r().conversationState.auth;o&&o.original_question&&n($r(e,o.original_question,{operations:{onLanguageChange:t}}))}}(r.apiKey?r.apiKey:t.apiKey));const n=a.getState().messages.liveChat;e.livechat_approved&&!n&&a.dispatch(Pr(!0,e.livechat_initial_operator)),a.dispatch((f=!!r.preload.context.campaign_id,{type:Dt.TOGGLE_CAMPAIGN,isCampaign:f}))}var f,m;i.placeholder&&a.dispatch((m=i.placeholder,{type:et.CONFIGURE_PLACEHOLDER,placeholder:m})),a.dispatch(function(e,t){return{type:Ft.SET_CAMPUS_OFFICE_PREFERENCE,campusId:e,officeId:t}}(o,p));const v=(0,n.H)(document.querySelector(r.target?r.target:t.target)),g=r.apiKey?r.apiKey:t.apiKey;v.render(e.createElement(De,{store:a},e.createElement(K,{loading:null,persistor:h},e.createElement(bp.Provider,{value:g},e.createElement(SI,{inputConfig:i},e.createElement(xI,{apiKey:g,theme:s,options:l}))))))}))}}}}})(),OcelotAI=a.default})();
      function loadOcelotAI() {
        // Deprecated alias. Backward compatibility
        window.FATVAi = OcelotAI;
        var domId = 'ocelot_ai';
        if(document.getElementById('fatv_ai')) {
          console.warn('Usage of "fatv_ai" is deprecated now. Please, use "ocelot_ai" instead')
        }
        if (document.getElementById(domId) || document.getElementById('fatv_ai')) return;
        var wrap=document.createElement('div');
        wrap.id=domId;wrap.role='region';wrap.ariaLabel='Chat Window';
        var skipLink = document.querySelector('#skip-link, .skip-navigation, .skip-link');
        var targetContainer = document.querySelector('[data-ocelot-target]');
        if (targetContainer) {
          targetContainer.insertBefore(wrap, targetContainer.firstChild);
        } else if (skipLink) {
          skipLink.parentNode.insertBefore(wrap, skipLink.nextSibling);
        } else {
          document.body.insertBefore(wrap, document.body.firstChild);
        }
        var link = document.createElement('link');
        link.setAttribute('rel', 'stylesheet');link.setAttribute('type', 'text/css');
        link.setAttribute('href', 'https://ai.ocelotbot.com/static/fatvai-v5.227.0.css');
        document.getElementsByTagName('head')[0].appendChild(link);
        var ocelotai = OcelotAI.new({
          apiKey:'9c1b977a-ded6-4112-b81e-37c3d693045c',
          campusId: undefined,
          officeId: undefined,
          officePatterns: [{"pattern":"https://www.ycp.edu/offices-departments/student-success/academic-advising-center","campusId":7687,"officeId":7686},{"pattern":"https://www.ycp.edu/admissions/","campusId":7687,"officeId":7764},{"pattern":"https://www.ycp.edu/admissions/cost-and-financial-aid/","campusId":7687,"officeId":7690},{"pattern":"https://www.ycp.edu/about-us/offices-and-departments/student-development-and-campus-life/residence-life-and-housing/","campusId":7687,"officeId":7691},{"pattern":"https://www.ycp.edu/offices-departments/student-development-campus-life/student-activities-orientation","campusId":7687,"officeId":7765}]
        });
        ocelotai.render({
          target:'#'+domId,
          uiParams: {
            
            
            
            
            
            
            
            
          },
          
        });
      }
      if (document.readyState === "complete" ||
      document.readyState === "loaded" || document.readyState === "interactive") {
        loadOcelotAI();
      } else { document.addEventListener('DOMContentLoaded', loadOcelotAI, false); }