/*! For license information please see main.b011484fbe4d694ad1ca.js.LICENSE.txt */
var OcelotAI;(()=>{var e,t,n={7086:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});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,E="";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 x(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=y>0?u(E,--y):0,v--,10===b&&(v=1,m--),b}function k(){return b=y<g?u(E,y++):0,v++,10===b&&(v=1,m++),b}function C(){return u(E,y)}function O(){return y}function T(e,t){return d(E,e,t)}function _(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(E=e),y=0,[]}function P(e){return E="",e}function I(e){return s(T(y-1,L(91===e?e+2:40===e?e+1:e)))}function N(e){for(;(b=C())&&b<33;)k();return _(e)>2||_(b)>3?"":" "}function A(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,O()+(t<6&&32==C()&&32==k()))}function L(e){for(;k();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&L(b);break;case 40:41===e&&L(e);break;case 92:k()}return y}function D(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==C()););return"/*"+T(t,y-1)+"*"+a(47===e?e:k())}function M(e){for(;!_(C());)k();return T(e,y)}var Z="-ms-",F="-moz-",j="-webkit-",$="comm",B="rule",z="decl",V="@import",q="@keyframes";function W(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function U(e,t,n,r){switch(e.type){case V:case z:return e.return=e.return||e.value;case $:return"";case q:return e.return=e.value+"{"+W(e.children,r)+"}";case B:e.value=e.props.join(",")}return p(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function H(e,t){switch(function(e,t){return(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3)}(e,t)){case 5103:return j+"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 j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+F+e+Z+e+e;case 6828:case 4268:return j+e+Z+e+e;case 6165:return j+e+Z+"flex-"+e+e;case 5187:return j+e+l(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return j+e+Z+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return j+e+Z+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+Z+l(e,"shrink","negative")+e;case 5292:return j+e+Z+l(e,"basis","preferred-size")+e;case 6060:return j+"box-"+l(e,"-grow","")+j+e+Z+l(e,"grow","positive")+e;case 4554:return j+l(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,j+"$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"+j+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?H(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,":",":"+j)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(45===u(e,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+Z+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return j+e+Z+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+Z+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+Z+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+Z+e+e}return e}function Q(e){return P(G("",null,null,null,[""],e=R(e),0,[0],e))}function G(e,t,n,r,o,i,s,u,d){for(var f=0,m=0,v=s,g=0,y=0,b=0,E=1,w=1,x=1,T=0,_="",R=o,P=i,L=r,Z=_;w;)switch(b=T,T=k()){case 40:if(108!=b&&58==Z.charCodeAt(v-1)){-1!=c(Z+=l(I(T),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:Z+=I(T);break;case 9:case 10:case 13:case 32:Z+=N(b);break;case 92:Z+=A(O()-1,7);continue;case 47:switch(C()){case 42:case 47:h(Y(D(k(),O()),t,n),d);break;default:Z+="/"}break;case 123*E:u[f++]=p(Z)*x;case 125*E:case 59:case 0:switch(T){case 0:case 125:w=0;case 59+m:y>0&&p(Z)-v&&h(y>32?X(Z+";",r,n,v-1):X(l(Z," ","")+";",r,n,v-2),d);break;case 59:Z+=";";default:if(h(L=K(Z,t,n,f,m,o,u,_,R=[],P=[],v),i),123===T)if(0===m)G(Z,t,L,L,R,i,v,u,P);else switch(g){case 100:case 109:case 115:G(e,L,L,r&&h(K(e,L,L,0,0,o,u,_,o,R=[],v),P),o,P,v,u,r?R:P);break;default:G(Z,L,L,L,[""],P,0,u,P)}}f=m=y=0,E=x=1,_=Z="",v=s;break;case 58:v=1+p(Z),y=b;default:if(E<1)if(123==T)--E;else if(125==T&&0==E++&&125==S())continue;switch(Z+=a(T),T*E){case 38:x=m>0?1:(Z+="\f",-1);break;case 44:u[f++]=(p(Z)-1)*x,x=1;break;case 64:45===C()&&(Z+=I(k())),g=C(),m=v=p(_=Z+=M(O())),T++;break;case 45:45===b&&2==p(Z)&&(E=0)}}return i}function K(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,E=0,x=0;b<r;++b)for(var S=0,k=d(e,v+1,v=o(E=c[b])),C=e;S<y;++S)(C=s(E>0?g[S]+" "+k:l(k,/&\f/g,g[S])))&&(p[x++]=C);return w(e,t,n,0===a?B:u,p,h,m)}function Y(e,t,n){return w(e,t,n,$,a(b),d(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,z,d(e,0,r),d(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=C(),38===r&&12===o&&(t[n]=1),!_(o);)k();return T(e,y)},ee=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(_(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=J(y-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=k());return e}(R(e),t))},te=new WeakMap,ne=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)||te.get(n))&&!r){te.set(e,!0);for(var o=[],a=ee(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]}}},re=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},oe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=H(e.value,e.length);break;case q:return W([x(e,{value:l(e.value,"@","@"+j)})],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 W([x(e,{props:[l(t,/:(read-\w+)/,":"+F+"$1")]})],r);case"::placeholder":return W([x(e,{props:[l(t,/:(plac\w+)/,":"+j+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":"+F+"$1")]}),x(e,{props:[l(t,/:(plac\w+)/,Z+"input-$1")]})],r)}return""}))}}];const ae=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||oe;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=[U,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(u=[ne,re].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,W(Q(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}},9557:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},8129:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,T:()=>l,w:()=>s});var r=n(7169),o=n(7086),a=(n(5837),n(330),(0,r.createContext)("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null));var i=a.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(a);return e(t,o,n)}))},l=(0,r.createContext)({})},5837:(e,t,n)=>{"use strict";n.d(t,{O:()=>m});const r=function(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)};const o={animationIterationCount: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};var a=n(9557),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.Z)((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[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:r(a)+c,styles:a,next:f}}},330:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>i,j:()=>s});var o=n(7169),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},2422:(e,t,n)=>{"use strict";n.d(t,{My:()=>a,fp:()=>r,hC:()=>o});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)}}},6581:(e,t,n)=>{"use strict";var r=n(7818);t.Z=void 0;var o=r(n(557)),a=n(2879),i=(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-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.Z=i},557:(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(8639)},9660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>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"}},8603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var r=n(9e3),o=n(4107),a=n(8633),i=n(6466),s=n(5215);var l=n(8615);const c={black:"#000",white:"#fff"};var u=n(9660);const d={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"},p={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"},f={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"},h={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"},m={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"},v={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"},g=["mode","contrastThreshold","tonalOffset"],y={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:c.white,default:c.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}},b={text:{primary:c.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:c.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,l.$n)(e.main,o):"dark"===t&&(e.dark=(0,l._j)(e.main,a)))}function w(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,w=(0,o.Z)(e,g),x=e.primary||function(e="light"){return"dark"===e?{main:h[200],light:h[50],dark:h[400]}:{main:h[700],light:h[400],dark:h[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:d[200],light:d[50],dark:d[400]}:{main:d[500],light:d[300],dark:d[700]}}(t),k=e.error||function(e="light"){return"dark"===e?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),C=e.info||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(t),O=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),T=e.warning||function(e="light"){return"dark"===e?{main:f[400],light:f[300],dark:f[700]}:{main:"#ed6c02",light:f[500],dark:f[900]}}(t);function _(e){return(0,l.mi)(e,b.text.primary)>=n?b.text.primary:y.text.primary}const R=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,a.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,a.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return E(e,"light",o,s),E(e,"dark",i,s),e.contrastText||(e.contrastText=_(e.main)),e},P={dark:b,light:y};return(0,i.Z)((0,r.Z)({common:(0,r.Z)({},c),mode:t,primary:R({color:x,name:"primary"}),secondary:R({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:k,name:"error"}),warning:R({color:T,name:"warning"}),info:R({color:C,name:"info"}),success:R({color:O,name:"success"}),grey:u.Z,contrastThreshold:n,getContrastText:_,augmentColor:R,tonalOffset:s},P[t]),w)}const x=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const S={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){const n="function"==typeof t?t(e):t,{fontFamily:a=k,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.Z)(n,x);const v=s/14,g=h||(e=>e/p*v+"rem"),y=(e,t,n,o,i)=>{return(0,r.Z)({fontFamily:a,fontWeight:e,fontSize:g(t),lineHeight:n},a===k?{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,S),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,S)};return(0,i.Z)((0,r.Z)({htmlFontSize:p,pxToRem:g,fontFamily:a,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}const O=.2,T=.14,_=.12;function R(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${O})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${T})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${_})`].join(",")}const P=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)];var I=n(1815);const N={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},A=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function L(e={},...t){const{mixins:n={},palette:l={},transitions:c={},typography:u={}}=e,d=(0,o.Z)(e,A);if(e.vars)throw new Error((0,a.Z)(18));const p=w(l),f=(0,s.Z)(e);let h=(0,i.Z)(f,{mixins:(m=f.breakpoints,v=n,(0,r.Z)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},v)),palette:p,shadows:P.slice(),typography:C(p,u),transitions:(0,I.ZP)(c),zIndex:(0,r.Z)({},N)});var m,v;return h=(0,i.Z)(h,d),h=t.reduce(((e,t)=>(0,i.Z)(e,t)),h),h}const D=L},1815:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,x9:()=>s});var r=n(4107),o=n(9e3);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.Z)({},i,e.easing),n=(0,o.Z)({},s,e.duration);return(0,o.Z)({getAutoHeightDuration:c,create:(e=["all"],o={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:c=0}=o;(0,r.Z)(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})}},5303:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(8603).Z)()},5388:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>C,FO:()=>x,Dz:()=>S});var r=n(2308),o=n(8970),a=n(6091),i=n(5215),s=n(1920);const l=["variant"];function c(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,r.Z)(e,l);let o=t||"";return Object.keys(n).sort().forEach((t=>{o+="color"===t?c(o)?e[t]:(0,s.Z)(e[t]):`${c(o)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),o}var d=n(4625);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],f=["theme"],h=["theme"];function m(e){return 0===Object.keys(e).length}const v=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,g=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r},y=(e,t,n,r)=>{var o,a;const{ownerState:i={}}=e,s=[],l=null==n||null==(o=n.components)||null==(a=o[r])?void 0:a.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s};function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const E=(0,i.Z)();var w=n(5303);const x=e=>b(e)&&"classes"!==e,S=b,k=function(e={}){const{defaultTheme:t=E,rootShouldForwardProp:n=b,slotShouldForwardProp:i=b,styleFunctionSx:s=d.Z}=e,l=e=>{const n=m(e.theme)?t:e.theme;return s((0,o.Z)({},e,{theme:n}))};return l.__mui_systemSx=!0,(e,s={})=>{(0,a.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:c,slot:u,skipVariantsResolver:d,skipSx:E,overridesResolver:w}=s,x=(0,r.Z)(s,p),S=void 0!==d?d:u&&"Root"!==u||!1,k=E||!1;let C=b;"Root"===u?C=n:u?C=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const O=(0,a.ZP)(e,(0,o.Z)({shouldForwardProp:C,label:undefined},x)),T=(e,...n)=>{const a=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:a}=n,i=(0,r.Z)(n,f);return e((0,o.Z)({theme:m(a)?t:a},i))}:e)):[];let i=e;c&&w&&a.push((e=>{const n=m(e.theme)?t:e.theme,r=v(c,n);if(r){const t={};return Object.entries(r).forEach((([r,a])=>{t[r]="function"==typeof a?a((0,o.Z)({},e,{theme:n})):a})),w(e,t)}return null})),c&&!S&&a.push((e=>{const n=m(e.theme)?t:e.theme;return y(e,g(c,n),n,c)})),k||a.push(l);const s=a.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");i=[...e,...t],i.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(i=n=>{let{theme:a}=n,i=(0,r.Z)(n,h);return e((0,o.Z)({theme:m(a)?t:a},i))});return O(i,...a)};return O.withConfig&&(T.withConfig=O.withConfig),T}}({defaultTheme:w.Z,rootShouldForwardProp:x}),C=k},8502:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1650),o=n(8784);var a=n(5303);function i({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){const a=(0,o.Z)(n);return(0,r.Z)({theme:a,name:t,props:e})}({props:e,name:t,defaultTheme:a.Z})}},6483:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(1920).Z},3351:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(9e3),o=n(7169),a=n(4107),i=n(8668),s=n(2862),l=n(6483),c=n(8502),u=n(5388),d=n(9428);function p(e){return(0,d.Z)("MuiSvgIcon",e)}(0,n(2368).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(2879);const h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.Z)(n.color)}`],t[`fontSize${(0,l.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,d,p,f,h,m,v,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(v=m.action)?void 0:v.active,disabled:null==(g=(e.vars||e).palette)||null==(y=g.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),v=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:d="inherit",component:v="svg",fontSize:g="medium",htmlColor:y,inheritViewBox:b=!1,titleAccess:E,viewBox:w="0 0 24 24"}=n,x=(0,a.Z)(n,h),S=(0,r.Z)({},n,{color:d,component:v,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:b,viewBox:w}),k={};b||(k.viewBox=w);const C=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,l.Z)(t)}`,`fontSize${(0,l.Z)(n)}`]};return(0,s.Z)(o,p,r)})(S);return(0,f.jsxs)(m,(0,r.Z)({as:v,className:(0,i.Z)(C.root,u),ownerState:S,focusable:"false",color:y,"aria-hidden":!E||void 0,role:E?"img":void 0,ref:t},k,x,{children:[o,E?(0,f.jsx)("title",{children:E}):null]}))}));v.muiName="SvgIcon";const g=v;function y(e,t){const n=(n,o)=>(0,f.jsx)(g,(0,r.Z)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=g.muiName,o.memo(o.forwardRef(n))}},3425:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(2078).Z},8639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.Z,createChainedFunction:()=>a,createSvgIcon:()=>i.Z,debounce:()=>s.Z,deprecatedPropType:()=>l,isMuiElement:()=>c.Z,ownerDocument:()=>u.Z,ownerWindow:()=>d.Z,requirePropFactory:()=>p,setRef:()=>f,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>h.Z,unstable_useId:()=>m.Z,unsupportedProp:()=>v,useControlled:()=>g.Z,useEventCallback:()=>y.Z,useForkRef:()=>b.Z,useIsFocusVisible:()=>E.Z});var r=n(7714),o=n(6483);const a=n(8002).Z;var i=n(3351),s=n(3425);const l=function(e,t){return()=>null};var c=n(4991),u=n(6388),d=n(1206);n(8970);const p=function(e,t){return()=>null};const f=n(7322).Z;var h=n(7575),m=n(1326);const v=function(e,t,n,r,o){return null};var g=n(6766),y=n(7225),b=n(8594),E=n(7037);const w={configure:e=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),r.Z.configure(e)}}},4991:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7169);const o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},6388:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9387).Z},1206:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9783).Z},6766:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7169);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)}),[])]}},7575:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(77).Z},7225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(2381).Z},8594:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(9576).Z},1326:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(2068).Z},7037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7169);let o,a=!0,i=!1;const s={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 l(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function c(){a=!1}function u(){"hidden"===this.visibilityState&&i&&(a=!0)}function d(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||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const p=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,window.clearTimeout(o),o=window.setTimeout((()=>{i=!1}),100),t.current=!1,!0)},ref:e}}},6666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(7169).createContext(null)},198:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7169),o=n(6666);function a(){return r.useContext(o.Z)}},6091:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>E,Co:()=>w});var r=n(7169),o=n(9e3),a=n(9557),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|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)-.*))$/;const s=(0,a.Z)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var l=n(8129),c=n(2422),u=n(5837),d=n(330),p=s,f=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:f},m=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},v=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,c.hC)(t,n,r);(0,d.L)((function(){return(0,c.My)(t,n,r)}));return null};const g=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=m(t,n,s),f=p||h(d),g=!f("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var E=y.length,w=1;w<E;w++)b.push(y[w],y[0][w])}var x=(0,l.w)((function(e,t,n){var o=g&&e.as||d,a="",s=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=(0,r.useContext)(l.T)}"string"==typeof e.className?a=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var E=(0,u.O)(b.concat(s),t.registered,m);a+=t.key+"-"+E.name,void 0!==i&&(a+=" "+i);var w=g&&void 0===p?h(o):f,x={};for(var S in e)g&&"as"===S||w(S)&&(x[S]=e[S]);return x.className=a,x.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(v,{cache:t,serialized:E,isStringTag:"string"==typeof o}),(0,r.createElement)(o,x))}));return x.displayName=void 0!==a?a:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=d,x.__emotion_styles=b,x.__emotion_forwardProp=p,Object.defineProperty(x,"toString",{value:function(){return"."+i}}),x.withComponent=function(t,r){return e(t,(0,o.Z)({},n,r,{shouldForwardProp:m(x,r,!0)})).apply(void 0,b)},x}};var y=g.bind();["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){y[e]=y(e)}));const b=y;function E(e,t){return b(e,t)}const w=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},7878:(e,t,n)=>{"use strict";n.d(t,{L7:()=>s,VO:()=>r,W8:()=>i,k9:()=>a});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function a(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const e=a.breakpoints||o;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=a.breakpoints||o;return Object.keys(t).reduce(((o,a)=>{if(-1!==Object.keys(e.values||r).indexOf(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}return o}),{})}return n(t)}function i(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},8615:(e,t,n)=>{"use strict";n.d(t,{$n:()=>d,Fq:()=>c,_4:()=>p,_j:()=>u,mi:()=>l});var r=n(8633);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(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.Z)(9,e));let o,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),o=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:o}}function i(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 s(e){let t="hsl"===(e=a(e)).type?a(function(e){e=a(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-s*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])),i({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 l(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,i(e)}function u(e,t){if(e=a(e),t=o(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 i(e)}function d(e,t){if(e=a(e),t=o(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 i(e)}function p(e,t=.15){return s(e)>.5?u(e,t):d(e,t)}},5215:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(8970),o=n(2308),a=n(6466);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.Z)({},e,{[t.key]:t.val})),{})};const l={borderRadius:4};var c=n(1953);const u=["breakpoints","palette","spacing","shape"];const d=function(e={},...t){const{breakpoints:n={},palette:d={},spacing:p,shape:f={}}=e,h=(0,o.Z)(e,u),m=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.Z)(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.Z)({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),v=function(e=8){if(e.mui)return e;const t=(0,c.hB)({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}(p);let g=(0,a.Z)({breakpoints:m,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},d),spacing:v,shape:(0,r.Z)({},l,f)},h);return g=t.reduce(((e,t)=>(0,a.Z)(e,t)),g),g}},1766:(e,t,n)=>{"use strict";n.d(t,{Gc:()=>G,G$:()=>Q});var r=n(9026),o=n(6805);const a=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,o.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var i=n(1953),s=n(7878);function l(e){return"number"!=typeof e?e:`${e}px solid`}const c=(0,r.Z)({prop:"border",themeKey:"borders",transform:l}),u=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:l}),p=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:l}),f=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:l}),h=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),m=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),g=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,i.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,i.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};b.propTypes={},b.filterProps=["borderRadius"];const E=a(c,u,d,p,f,h,m,v,g,y,b),w=a((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"})),x=a((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"})),S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,i.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,i.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const k=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,i.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,i.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};k.propTypes={},k.filterProps=["columnGap"];const C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,i.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,i.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};C.propTypes={},C.filterProps=["rowGap"];const O=a(S,k,C,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"})),T=a((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"})),_=a((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"})),R=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function P(e){return e<=1&&0!==e?100*e+"%":e}const I=(0,r.Z)({prop:"width",transform:P}),N=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||P(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};N.filterProps=["maxWidth"];const A=(0,r.Z)({prop:"minWidth",transform:P}),L=(0,r.Z)({prop:"height",transform:P}),D=(0,r.Z)({prop:"maxHeight",transform:P}),M=(0,r.Z)({prop:"minHeight",transform:P}),Z=((0,r.Z)({prop:"size",cssProperty:"width",transform:P}),(0,r.Z)({prop:"size",cssProperty:"height",transform:P}),a(I,N,A,L,D,M,(0,r.Z)({prop:"boxSizing"}))),F=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),j=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),$=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),B=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),z=(0,r.Z)({prop:"letterSpacing"}),V=(0,r.Z)({prop:"textTransform"}),q=(0,r.Z)({prop:"lineHeight"}),W=(0,r.Z)({prop:"textAlign"}),U=a((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),F,j,$,B,z,q,W,V),H={borders:E.filterProps,display:w.filterProps,flexbox:x.filterProps,grid:O.filterProps,positions:T.filterProps,palette:_.filterProps,shadows:R.filterProps,sizing:Z.filterProps,spacing:i.ZP.filterProps,typography:U.filterProps},Q={borders:E,display:w,flexbox:x,grid:O,positions:T,palette:_,shadows:R,sizing:Z,spacing:i.ZP,typography:U},G=Object.keys(H).reduce(((e,t)=>(H[t].forEach((n=>{e[n]=Q[t]})),e)),{})},6805:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6466);const o=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},1953:(e,t,n)=>{"use strict";n.d(t,{hB:()=>h,eI:()=>f,ZP:()=>w,NA:()=>m});var r=n(7878),o=n(9026),a=n(6805);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.D)(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.k9)(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.Z,{})}function y(e){return g(e,u)}function b(e){return g(e,d)}function E(e){return g(e,p)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,E.propTypes={},E.filterProps=p;const w=E},9026:(e,t,n)=>{"use strict";n.d(t,{D:()=>a,Z:()=>s});var r=n(1920),o=n(7878);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)),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.k9)(e,c,(e=>{let o=i(u,l,e);return e===o&&"string"==typeof e&&(o=i(u,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},4625:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6805),o=n(1766),a=n(7878);const i=function(e=o.G$){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},a=t[e];return a?a(o):{[e]:n}}return function e(o){const{sx:i,theme:s={}}=o||{};if(!i)return null;function l(o){let i=o;if("function"==typeof o)i=o(s);else if("object"!=typeof o)return o;if(!i)return null;const l=(0,a.W8)(s.breakpoints),c=Object.keys(l);let u=l;return Object.keys(i).forEach((o=>{const l=(c=i[o],d=s,"function"==typeof c?c(d):c);var c,d;if(null!=l)if("object"==typeof l)if(t[o])u=(0,r.Z)(u,n(o,l,s));else{const t=(0,a.k9)({theme:s},l,(e=>({[o]: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))}(t,l)?u=(0,r.Z)(u,t):u[o]=e({sx:l,theme:s})}else u=(0,r.Z)(u,n(o,l,s))})),(0,a.L7)(c,u)}return Array.isArray(i)?i.map(l):l(i)}}();i.filterProps=["sx"];const s=i},8784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5215),o=n(1559);const a=(0,r.Z)();const i=function(e=a){return(0,o.Z)(e)}},1650:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6663);function o(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},1559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(198);const o=function(e=null){const t=(0,r.Z)();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},7714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},1920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8633);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2862:(e,t,n)=>{"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}n.d(t,{Z:()=>r})},8002:(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,{Z:()=>r})},2078:(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,{Z:()=>r})},6466:(e,t,n)=>{"use strict";n.d(t,{P:()=>o,Z:()=>a});var r=n(8970);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function a(e,t,n={clone:!0}){const i=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},8633:(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,{Z:()=>r})},9428:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7714);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function a(e,t,n="Mui"){const a=o[t];return a?`${n}-${a}`:`${r.Z.generate(e)}-${t}`}},2368:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9428);function o(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=(0,r.Z)(e,t,n)})),o}},9387:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},9783:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9387);function o(e){return(0,r.Z)(e).defaultView||window}},6663:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8970);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},7322:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},77:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7169);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},2381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7169),o=n(77);function a(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},9576:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7169),o=n(7322);function a(e,t){return r.useMemo((()=>null==e&&null==t?null:n=>{(0,o.Z)(e,n),(0,o.Z)(t,n)}),[e,t])}},2068:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>s});var o=n(7169);let a=0;const i=(r||(r=n.t(o,2))).useId;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)}},8668:(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))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:()=>o});const o=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},5730:(e,t,n)=>{"use strict";var r=n(7851),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}},6325:(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(){}))}))},4288:(e,t,n)=>{var r=n(5327).Symbol;e.exports=r},8081: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}},571:(e,t,n)=>{var r=n(4288),o=n(7883),a=n(1713),i="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:l&&l in Object(e)?o(e):a(e)}},9198:(e,t,n)=>{var r=n(4288),o=n(8081),a=n(4866),i=n(8995),s=1/0,l=r?r.prototype:void 0,c=l?l.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 c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},8451:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7883:(e,t,n)=>{var r=n(4288),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}},1713:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5327:(e,t,n)=>{var r=n(8451),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},1218:(e,t,n)=>{var r=n(8482),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(o,"\\$&"):e}},4866:e=>{var t=Array.isArray;e.exports=t},5793:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8995:(e,t,n)=>{var r=n(571),o=n(5793),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},8482:(e,t,n)=>{var r=n(9198);e.exports=function(e){return null==e?"":r(e)}},2883:(e,t,n)=>{e.exports=n(4144)},4144:(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)},7819:(e,t,n)=>{"use strict";var r=n(1727);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}},9913:(e,t,n)=>{e.exports=n(7819)()},1727:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3237:(e,t,n)=>{"use strict";var r=n(7169);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-/,E=Array.isArray;function w(e,t){return{insertionMode:e,selectedValue:t}}var x=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=x.get(s);void 0!==l||(l=g(s.replace(y,"-$1").toLowerCase().replace(b,"-ms-")),x.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 k(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 C(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 O(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:k(e,r,o,s)}}return e.push(">"),C(e,i,n),"string"==typeof n?(e.push(g(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_=new Map;function R(e){var t=_.get(e);if(void 0===t){if(!T.test(e))throw Error(o(65,e));t="<"+e,_.set(e,t)}return t}function P(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:k(e,i,h,d)}}return e.push(">"),C(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:k(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),E(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(">"),C(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:k(e,i,d,p)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=h){if(null!=l)throw Error(o(92));if(E(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:k(e,i,u,f)}return null!==h?k(e,i,"checked",h):null!==p&&k(e,i,"checked",p),null!==l?k(e,i,"value",l):null!==d&&k(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:k(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:k(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:k(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:k(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 O(e,n,t,i);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),O(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return O(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(">"),C(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 N=/[<\u2028\u2029]/g;function A(e){return JSON.stringify(e).replace(N,(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 L(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 D=Object.assign,M=Symbol.for("react.element"),Z=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Q=Symbol.for("react.scope"),G=Symbol.for("react.debug_trace_mode"),K=Symbol.for("react.legacy_hidden"),Y=Symbol.for("react.default_value"),X=Symbol.iterator;function J(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 F:return"Fragment";case Z:return"Portal";case $:return"Profiler";case j:return"StrictMode";case q:return"Suspense";case W:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case B:return(e._context.displayName||"Context")+".Provider";case V:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:J(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return J(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:D({},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=D({},a,s)):D(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,Ee=null,we=!1,xe=!1,Se=0,ke=null,Ce=0;function Oe(){if(null===ge)throw Error(o(321));return ge}function Te(){if(0<Ce)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function _e(){return null===Ee?null===be?(we=!1,be=Ee=Te()):(we=!0,Ee=be):null===Ee.next?(we=!1,Ee=Ee.next=Te()):(we=!0,Ee=Ee.next),Ee}function Re(){ye=ge=null,xe=!1,be=null,Ce=0,Ee=ke=null}function Pe(e,t){return"function"==typeof t?t(e):t}function Ie(e,t,n){if(ge=Oe(),Ee=_e(),we){var r=Ee.queue;if(t=r.dispatch,null!==ke&&void 0!==(n=ke.get(r))){ke.delete(r),r=Ee.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Ee.memoizedState=r,[r,t]}return[Ee.memoizedState,t]}return e=e===Pe?"function"==typeof t?t():t:void 0!==n?n(t):t,Ee.memoizedState=e,e=(e=Ee.queue={last:null,dispatch:null}).dispatch=Ae.bind(null,ge,e),[Ee.memoizedState,e]}function Ne(e,t){if(ge=Oe(),t=void 0===t?null:t,null!==(Ee=_e())){var n=Ee.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(),Ee.memoizedState=[e,t],e}function Ae(e,t,n){if(25<=Ce)throw Error(o(301));if(e===ge)if(xe=!0,e={action:n,next:null},null===ke&&(ke=new Map),void 0===(n=ke.get(t)))ke.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Le(){throw Error(o(394))}function De(){}var Me={readContext:function(e){return e._currentValue2},useContext:function(e){return Oe(),e._currentValue2},useMemo:Ne,useReducer:Ie,useRef:function(e){ge=Oe();var t=(Ee=_e()).memoizedState;return null===t?(e={current:e},Ee.memoizedState=e):t},useState:function(e){return Ie(Pe,e)},useInsertionEffect:De,useLayoutEffect:function(){},useCallback:function(e,t){return Ne((function(){return e}),t)},useImperativeHandle:De,useEffect:De,useDebugValue:De,useDeferredValue:function(e){return Oe(),e},useTransition:function(){return Oe(),[!1,Le]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-fe(e)-1)).toString(32)+t;var n=Ze;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 Oe(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Ze=null,Fe=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function je(e){return console.error(e),null}function $e(){}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 ze(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 Ve(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 qe(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 We(e,t,n,r,o){for(ge={},ye=t,Se=0,e=n(r,o);xe;)xe=!1,Se=0,Ce+=1,Ee=null,e=n(r,o);return Re(),e}function Ue(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,J(r)||"Unknown",l));r=D({},s,n)}t.legacyContext=r,Ge(e,t,a),t.legacyContext=s}else Ge(e,t,a)}function He(e,t){if(e&&e.defaultProps){for(var n in t=D({},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),Ue(e,t,i,n)}else{a=We(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),Ue(e,t,a,n);else if(s){r=t.treeContext,t.treeContext=pe(r,1,0);try{Ge(e,t,a)}finally{t.treeContext=r}}else Ge(e,t,a)}else{if("string"!=typeof n){switch(n){case K:case G:case j:case $:case F:case W:return void Ge(e,t,r.children);case Q:throw Error(o(343));case q: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=ze(0,a.chunks.length,l,a.formatContext,!1,!1);a.children.push(c),a.lastPushedText=!1;var u=ze(0,0,null,a.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Ye(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=Ve(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 V:if(r=We(e,t,n.render,r,a),0!==Se){n=t.treeContext,t.treeContext=pe(n,1,0);try{Ge(e,t,r)}finally{t.treeContext=n}}else Ge(e,t,r);return;case U:return void Qe(e,t,n=n.type,r=He(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,Ge(e,t,a),null===(e=ne))throw Error(o(403));return r=e.parentValue,e.context._currentValue2=r===Y?e.context._defaultValue:r,e=ne=e.parent,void(t.context=e);case z:return void Ge(e,t,r=(r=r.children)(n._currentValue2));case H:return void Qe(e,t,n=(a=n._init)(n._payload),r=He(n,r),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(i=P((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),Ye(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 Ge(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case M:return void Qe(e,t,n.type,n.props,n.ref);case Z:throw Error(o(257));case H:var r=n._init;return void Ge(e,t,n=r(n._payload))}if(E(n))return void Ke(e,t,n);if(null===n||"object"!=typeof n?r=null:r="function"==typeof(r=X&&n[X]||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);Ke(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=L(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ke(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=pe(a,r,o);try{Ye(e,t,n[o])}finally{t.treeContext=a}}}function Ye(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return Ge(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=ze(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 Xe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function Je(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 Je(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=$e,(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(Xe,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=Fe.current;Fe.current=Me;var r=Ze;Ze=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{Ge(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=Ve(s,d);if(null===u?qe(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){Ve(e,t),qe(e,t)}finally{Ze=r,Fe.current=n,n===Me&&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=A(u||"");r.push(f)}if(d||p){r.push(",");var h=A(d||"");r.push(h)}if(p){r.push(",");var m=A(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 E=!1;break e}b.splice(0,l),E=!0}if(!E)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 Je(n,e,t)})),n.clear(),null!==e.destination&&lt(e,e.destination)}catch(t){Ve(e,t),qe(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=ze(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?je:o,onAllReady:void 0===a?$e:a,onShellReady:void 0===i?$e:i,onShellError:void 0===s?$e:s,onFatalError:void 0===l?$e: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){Ve(e,t),qe(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"},1826:(e,t,n)=>{"use strict";var r=n(7169);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 E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){E[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];E[t]=new b(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){E[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){E[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){E[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){E[e]=new b(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){E[e]=new b(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){E[e]=new b(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){E[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var w=/[\-:]([a-z])/g;function x(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,x);E[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,x);E[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,x);E[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){E[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){E[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},k=["Webkit","ms","Moz","O"];Object.keys(S).forEach((function(e){k.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),S[t]=S[e]}))}));var C=/["'&<>]/;function O(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=C.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,_=/^ms-/,R=Array.isArray,P=p("<script>"),I=p("<\/script>"),N=p('<script src="'),A=p('<script type="module" src="'),L=p('" async=""><\/script>'),D=/(<\/|<)(s)(cript)/gi;function M(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function Z(e,t){return{insertionMode:e,selectedValue:t}}var F=p("\x3c!-- --\x3e");function j(e,t,n,r){return""===t?r:(r&&e.push(F),e.push(d(O(t))),!0)}var $=new Map,B=p(' style="'),z=p(":"),V=p(";");function q(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(O(r));a=d(O((""+a).trim()))}else{i=r;var s=$.get(i);void 0!==s||(s=p(O(i.replace(T,"-$1").toLowerCase().replace(_,"-ms-"))),$.set(i,s)),i=s,a="number"==typeof a?0===a||h.call(S,r)?d(""+a):d(a+"px"):d(O((""+a).trim()))}t?(t=!1,e.push(B,i,z,a)):e.push(V,i,z,a)}}t||e.push(H)}var W=p(" "),U=p('="'),H=p('"'),Q=p('=""');function G(e,t,n,r){switch(n){case"style":return void q(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=E.hasOwnProperty(n)?E[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(W,n,Q);break;case 4:!0===r?e.push(W,n,Q):!1!==r&&e.push(W,n,U,d(O(r)),H);break;case 5:isNaN(r)||e.push(W,n,U,d(O(r)),H);break;case 6:!isNaN(r)&&1<=r&&e.push(W,n,U,d(O(r)),H);break;default:t.sanitizeURL&&(r=""+r),e.push(W,n,U,d(O(r)),H)}}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(W,d(n),U,d(O(r)),H)}}var K=p(">"),Y=p("/>");function X(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 J=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:G(e,r,o,i)}}return e.push(K),X(e,a,n),"string"==typeof n?(e.push(d(O(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:G(e,a,f,c)}}return e.push(K),X(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:G(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(J);break}}else""+l===n&&e.push(J);else p&&e.push(J);return e.push(K),X(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:G(e,a,c,u)}if(null===s&&null!==l&&(s=l),e.push(K),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(O(""+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:G(e,a,l,p)}return null!==f?G(e,a,"checked",f):null!==u&&G(e,a,"checked",u),null!==s?G(e,a,"value",s):null!==c&&G(e,a,"value",c),e.push(Y),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:G(e,a,v,s)}return e.push(K),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:G(e,a,m,l)}return e.push(K),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:G(e,a,u,c)}if(e.push(K),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:G(e,a,g,s)}return e.push(Y),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":q(e,a,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(p)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push(W,d(p),U,d(O(c)),H)}return e.push(K),X(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 Ee(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="'),xe=p('">'),Se=p("</div>"),ke=p('<svg aria-hidden="true" style="display:none" id="'),Ce=p('">'),Oe=p("</svg>"),Te=p('<math aria-hidden="true" style="display:none" id="'),_e=p('">'),Re=p("</math>"),Pe=p('<table hidden id="'),Ie=p('">'),Ne=p("</table>"),Ae=p('<table hidden><tbody id="'),Le=p('">'),De=p("</tbody></table>"),Me=p('<table hidden><tr id="'),Ze=p('">'),Fe=p("</tr></table>"),je=p('<table hidden><colgroup id="'),$e=p('">'),Be=p("</colgroup></table>");var ze=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("'),Ve=p('$RS("'),qe=p('","'),We=p('")<\/script>'),Ue=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("'),He=p('$RC("'),Qe=p('","'),Ge=p('")<\/script>'),Ke=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("'),Ye=p('$RX("'),Xe=p('"'),Je=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"),Et=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 xt={};function St(e,t){if(!(e=e.contextTypes))return xt;var n,r={};for(n in e)r[n]=t[n];return r}var kt=null;function Ct(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));Ct(e,n)}t.context._currentValue=t.value}}function Ot(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ot(e)}function Tt(e){var t=e.parent;null!==t&&Tt(t),e.context._currentValue=e.value}function _t(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?Ct(e,t):_t(e,t)}function Rt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?Ct(e,n):Rt(e,n),t.context._currentValue=t.value}function Pt(e){var t=kt;t!==e&&(null===t?Tt(e):null===e?Ot(t):t.depth===e.depth?Ct(t,e):t.depth>e.depth?_t(t,e):Rt(t,e),kt=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 Nt(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 At={id:1,overflow:""};function Lt(e,t,n){var r=e.id;e=e.overflow;var o=32-Dt(r)-1;r&=~(1<<o),n+=1;var a=32-Dt(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-Dt(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var Dt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Mt(e)/Zt|0)|0},Mt=Math.log,Zt=Math.LN2;var Ft="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},jt=null,$t=null,Bt=null,zt=null,Vt=!1,qt=!1,Wt=0,Ut=null,Ht=0;function Qt(){if(null===jt)throw Error(o(321));return jt}function Gt(){if(0<Ht)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return null===zt?null===Bt?(Vt=!1,Bt=zt=Gt()):(Vt=!0,zt=Bt):null===zt.next?(Vt=!1,zt=zt.next=Gt()):(Vt=!0,zt=zt.next),zt}function Yt(){$t=jt=null,qt=!1,Bt=null,Ht=0,zt=Ut=null}function Xt(e,t){return"function"==typeof t?t(e):t}function Jt(e,t,n){if(jt=Qt(),zt=Kt(),Vt){var r=zt.queue;if(t=r.dispatch,null!==Ut&&void 0!==(n=Ut.get(r))){Ut.delete(r),r=zt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return zt.memoizedState=r,[r,t]}return[zt.memoizedState,t]}return e=e===Xt?"function"==typeof t?t():t:void 0!==n?n(t):t,zt.memoizedState=e,e=(e=zt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,jt,e),[zt.memoizedState,e]}function en(e,t){if(jt=Qt(),t=void 0===t?null:t,null!==(zt=Kt())){var n=zt.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(!Ft(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),zt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=Ht)throw Error(o(301));if(e===jt)if(qt=!0,e={action:n,next:null},null===Ut&&(Ut=new Map),void 0===(n=Ut.get(t)))Ut.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:Jt,useRef:function(e){jt=Qt();var t=(zt=Kt()).memoizedState;return null===t?(e={current:e},zt.memoizedState=e):t},useState:function(e){return Jt(Xt,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=$t.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Dt(e)-1)).toString(32)+t;var n=an;if(null===n)throw Error(o(404));return t=Wt++,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&&Cn(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(jt={},$t=t,Wt=0,e=n(r,o);qt;)qt=!1,Wt=0,Ht+=1,zt=null,e=n(r,o);return Yt(),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;Nt(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!==Wt;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)Nt(a,n,r,i),mn(e,t,a,n);else if(s){r=t.treeContext,t.treeContext=Lt(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(En(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(F),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!==Wt){n=t.treeContext,t.treeContext=Lt(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,kt=r={parent:s=kt,depth:null===s?0:s.depth+1,context:n,parentValue:i,value:r},t.context=r,yn(e,t,a),null===(e=kt))throw Error(o(403));return r=e.parentValue,e.context._currentValue=r===bt?e.context._defaultValue:r,e=kt=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 Z(1,null!=n.value?n.value:n.defaultValue);case"svg":return Z(2,null);case"math":return Z(3,null);case"foreignObject":return Z(1,null);case"table":return Z(4,null);case"thead":case"tbody":case"tfoot":return Z(5,null);case"colgroup":return Z(7,null);case"tr":return Z(6,null)}return 4<=e.insertionMode||0===e.insertionMode?Z(1,null):e}(s,n,r),En(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=Et&&n[Et]||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=j(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=j(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=Lt(a,r,o);try{En(e,t,n[o])}finally{t.treeContext=a}}}function En(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return yn(e,t,n)}catch(l){if(Yt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,Pt(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,Pt(a)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,kn(this,t,e)}function xn(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 xn(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 kn(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 Cn(e){if(2!==e.status){var t=kt,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){Pt(i.context);try{yn(s,i,i.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(F),i.abortSet.delete(i),l.status=1,kn(s,i.blockedBoundary,l)}catch(e){if(Yt(),"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&&Pt(t)}}}function On(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 On(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(O(r))),s(t,ge)),l(t,be),On(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,Ee(t,e.responseState,r),On(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),Ee(t,e.responseState,r.id),On(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 _n(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,xe);case 2:return s(e,ke),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ce);case 3:return s(e,Te),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,_e);case 4:return s(e,Pe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ie);case 5:return s(e,Ae),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Le);case 6:return s(e,Me),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ze);case 7:return s(e,je),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,$e);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,Oe);case 3:return l(e,Re);case 4:return l(e,Ne);case 5:return l(e,De);case 6:return l(e,Fe);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++)Pn(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,He):(e.sentCompleteBoundaryFunction=!0,s(t,Ue)),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,Ge)}function Pn(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 _n(e,t,r)}return _n(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,Ve):(e.sentCompleteSegmentFunction=!0,s(t,ze)),s(t,e.segmentPrefix),s(t,a=d(a.toString(16))),s(t,qe),s(t,e.placeholderPrefix),s(t,a),l(t,We)}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,Ye):(h.sentClientRenderFunction=!0,s(r,Ke)),null===m)throw Error(o(395));if(s(r,m),s(r,Xe),(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,Je))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 E=e.partialBoundaries;for(u=0;u<E.length;u++){var w=E[u];e:{p=e,f=t;var x=w.completedSegments;for(h=0;h<x.length;h++)if(!Pn(p,f,w,x[h])){h++,x.splice(0,h);var S=!1;break e}x.splice(0,h),S=!0}if(!S)return e.destination=null,u++,void E.splice(0,u)}E.splice(0,u);var k=e.completedBoundaries;for(u=0;u<k.length;u++)if(!Rn(e,t,k[u]))return e.destination=null,u++,void k.splice(0,u);k.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Nn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return xn(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,xt,null,At),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?P:p('<script nonce="'+O(t)+'">');var a=[];if(void 0!==n&&a.push(t,d((""+n).replace(D,M)),I),void 0!==r)for(n=0;n<r.length;n++)a.push(N,d(O(r[n])),L);if(void 0!==o)for(r=0;r<o.length;r++)a.push(A,d(O(o[r])),L);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 Z("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(){Nn(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(){Nn(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}Cn(s)}))},t.version="18.2.0"},9070:(e,t,n)=>{"use strict";var r=n(7169),o=n(2656);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 E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,Z=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var j=!1;function $(e,t){if(!e||j)return"";j=!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{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function B(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 1:return e=$(e.type,!0);default:return""}}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 S:return"Fragment";case x:return"Portal";case C:return"Profiler";case k:return"StrictMode";case R:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case _: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:z(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function V(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 z(t);case 8:return t===k?"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 q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 H(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(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 G(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(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 Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=q(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,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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=""+q(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 Z({},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:q(n)}}function ae(e,t){var n=q(t.value),r=q(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=Z({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 Ee=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,ke=null;function Ce(e){if(e=Eo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Te(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function _e(e,t){return e(t)}function Re(){}var Pe=!1;function Ie(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return _e(e,t,n)}finally{Pe=!1,(null!==Se||null!==ke)&&(Re(),Te())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(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 Ae=!1;if(u)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ue){Ae=!1}function De(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 Me=!1,Ze=null,Fe=!1,je=null,$e={onError:function(e){Me=!0,Ze=e}};function Be(e,t,n,r,o,a,i,s,l){Me=!1,Ze=null,De.apply($e,arguments)}function ze(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 Ve(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 qe(e){if(ze(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(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 qe(o),e;if(i===r)return qe(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))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var He=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=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 Et(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,xt,St,kt,Ct,Ot=!1,Tt=[],_t=null,Rt=null,Pt=null,It=new Map,Nt=new Map,At=[],Lt="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 Dt(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Mt(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=Eo(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Zt(e){var t=bo(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(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 Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Eo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ee=r,n.target.dispatchEvent(r),Ee=null,t.shift()}return!0}function jt(e,t,n){Ft(e)&&n.delete(t)}function $t(){Ot=!1,null!==_t&&Ft(_t)&&(_t=null),null!==Rt&&Ft(Rt)&&(Rt=null),null!==Pt&&Ft(Pt)&&(Pt=null),It.forEach(jt),Nt.forEach(jt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,$t)))}function zt(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!==_t&&Bt(_t,e),null!==Rt&&Bt(Rt,e),null!==Pt&&Bt(Pt,e),It.forEach(t),Nt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Zt(n),null===n.blockedOn&&At.shift()}var Vt=E.ReactCurrentBatchConfig,qt=!0;function Wt(e,t,n,r){var o=bt,a=Vt.transition;Vt.transition=null;try{bt=1,Ht(e,t,n,r)}finally{bt=o,Vt.transition=a}}function Ut(e,t,n,r){var o=bt,a=Vt.transition;Vt.transition=null;try{bt=4,Ht(e,t,n,r)}finally{bt=o,Vt.transition=a}}function Ht(e,t,n,r){if(qt){var o=Gt(e,t,n,r);if(null===o)qr(e,t,r,Qt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return _t=Mt(_t,e,t,n,r,o),!0;case"dragenter":return Rt=Mt(Rt,e,t,n,r,o),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return It.set(a,Mt(It.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Nt.set(a,Mt(Nt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var a=Eo(o);if(null!==a&&wt(a),null===(a=Gt(e,t,n,r))&&qr(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Qt=null;function Gt(e,t,n,r){if(Qt=null,null!==(e=bo(e=we(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(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 Kt(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(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.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 Jt=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 Z(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=Z({},cn,{view:0,detail:0}),pn=on(dn),fn=Z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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(Z({},fn,{dataTransfer:0})),vn=on(Z({},dn,{relatedTarget:0})),gn=on(Z({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=Z({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),En=on(Z({},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"},xn={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 kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return kn}var On=Z({},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?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,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(On),_n=on(Z({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(Z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=on(Z({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=Z({},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}),Nn=on(In),An=[9,13,27,32],Ln=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var Mn=u&&"TextEvent"in window&&!Dn,Zn=u&&(!Ln||Dn&&8<Dn&&11>=Dn),Fn=String.fromCharCode(32),jn=!1;function $n(e,t){switch(e){case"keyup":return-1!==An.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 zn=!1;var Vn={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){Oe(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Hn=null;function Qn(e){Fr(e,0)}function Gn(e){if(H(wo(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Hn=Un=null)}function nr(e){if("value"===e.propertyName&&Gn(Hn)){var t=[];Wn(t,Hn,e,we(e)),Ie(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Hn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Hn)}function ar(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(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 Er(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=Ur(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 xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},kr={};function Cr(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Or=Cr("animationend"),Tr=Cr("animationiteration"),_r=Cr("animationstart"),Rr=Cr("transitionend"),Pr=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 Nr(e,t){Pr.set(e,t),l(t,[e])}for(var Ar=0;Ar<Ir.length;Ar++){var Lr=Ir[Ar];Nr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Nr(Or,"onAnimationEnd"),Nr(Tr,"onAnimationIteration"),Nr(_r,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(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 Dr="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(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Zr(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),Me){if(!Me)throw Error(a(198));var u=Ze;Me=!1,Ze=null,Fe||(Fe=!0,je=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(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;Zr(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;Zr(o,s,c),a=l}}}if(Fe)throw e=je,Fe=!1,je=null,e}function jr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function $r(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Br]){e[Br]=!0,i.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||$r(t,!1,e),$r(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,$r("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Kt(t)){case 1:var o=Wt;break;case 4:o=Ut;break;default:o=Ht}n=o.bind(null,t,n,e),o=void 0,!Ae||"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 qr(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=Pr.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 Or:case Tr:case _r:l=gn;break;case Rr:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=Nn;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=_n}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=Ne(h,p))&&u.push(Wr(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===Ee||!(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=ze(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=_n,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=Hr(f))h++;for(f=0,m=p;m;m=Hr(m))f++;for(;0<h-f;)u=Hr(u),h--;for(;0<f-h;)p=Hr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Hr(u),p=Hr(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=Kn;else if(qn(s))if(Yn)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))?Wn(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":(qn(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,Er(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Er(i,n,o)}var y;if(Ln)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 zn?$n(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Zn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=en()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,zn=!0)),0<(g=Ur(r,b)).length&&(b=new En(b,e,null,n,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(jn=!0,Fn);case"textInput":return(e=t.data)===Fn&&jn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Ln&&$n(e,t)?(e=en(),Jt=Xt=Yt=null,zn=!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 Zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Fr(i,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(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=Ne(e,n))&&r.unshift(Wr(e,a,o)),null!=(a=Ne(e,t))&&r.push(Wr(e,a,o))),e=e.return}return r}function Hr(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=Ne(n,a))&&i.unshift(Wr(n,l,s)):o||null!=(l=Ne(n,a))&&i.push(Wr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Kr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(a(425))}function Jr(){}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 zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(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 Eo(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 xo(e){return e[ho]||null}var So=[],ko=-1;function Co(e){return{current:e}}function Oo(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function To(e,t){ko++,So[ko]=e.current,e.current=t}var _o={},Ro=Co(_o),Po=Co(!1),Io=_o;function No(e,t){var n=e.type.contextTypes;if(!n)return _o;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 Ao(e){return null!=(e=e.childContextTypes)}function Lo(){Oo(Po),Oo(Ro)}function Do(e,t,n){if(Ro.current!==_o)throw Error(a(168));To(Ro,t),To(Po,n)}function Mo(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,V(e)||"Unknown",o));return Z({},n,r)}function Zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,Io=Ro.current,To(Ro,e),To(Po,Po.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mo(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Oo(Po),Oo(Ro),To(Ro,e)):Oo(Po),To(Po,n)}var jo=null,$o=!1,Bo=!1;function zo(e){null===jo?jo=[e]:jo.push(e)}function Vo(){if(!Bo&&null!==jo){Bo=!0;var e=0,t=bt;try{var n=jo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,$o=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),He(Je,Vo),t}finally{bt=t,Bo=!1}}return null}var qo=[],Wo=0,Uo=null,Ho=0,Qo=[],Go=0,Ko=null,Yo=1,Xo="";function Jo(e,t){qo[Wo++]=Ho,qo[Wo++]=Uo,Uo=e,Ho=t}function ea(e,t,n){Qo[Go++]=Yo,Qo[Go++]=Xo,Qo[Go++]=Ko,Ko=e;var r=Yo;e=Xo;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,Yo=1<<32-it(t)+o|n<<o|r,Xo=a+e}else Yo=1<<a|n<<o|r,Xo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===Uo;)Uo=qo[--Wo],qo[Wo]=null,Ho=qo[--Wo],qo[Wo]=null;for(;e===Ko;)Ko=Qo[--Go],Qo[Go]=null,Xo=Qo[--Go],Qo[Go]=null,Yo=Qo[--Go],Qo[Go]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=Nc(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!==Ko?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nc(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=E.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var n in t=Z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Co(null),ba=null,Ea=null,wa=null;function xa(){wa=Ea=ba=null}function Sa(e){var t=ya.current;Oo(ya),e._currentValue=t}function ka(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 Ca(e,t){ba=e,wa=Ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Es=!0),e.firstContext=null)}function Oa(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===Ea){if(null===ba)throw Error(a(308));Ea=e,ba.dependencies={lanes:0,firstContext:e}}else Ea=Ea.next=e;return t}var Ta=null;function _a(e){null===Ta?Ta=[e]:Ta.push(e)}function Ra(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,_a(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pa(e,r)}function Pa(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 Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Aa(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 La(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(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,Pa(e,n)}return null===(o=r.interleaved)?(t.next=t,_a(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pa(e,n)}function Ma(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 Za(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 Fa(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=Z({},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);Zl|=i,e.lanes=i,e.memoizedState=d}}function ja(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 $a=(new r.Component).refs;function Ba(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var za={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=La(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Da(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=La(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Da(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=La(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Da(e,o,r))&&(rc(t,e,r,n),Ma(t,e,r))}};function Va(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 qa(e,t,n){var r=!1,o=_o,a=t.contextType;return"object"==typeof a&&null!==a?a=Oa(a):(o=Ao(t)?Io:Ro.current,a=(r=null!=(r=t.contextTypes))?No(e,o):_o),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Wa(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&&za.enqueueReplaceState(t,t.state,null)}function Ua(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=$a,Na(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Oa(a):(a=Ao(t)?Io:Ro.current,o.context=No(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&&za.enqueueReplaceState(o,o.state,null),Fa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ha(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===$a&&(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 Ga(e){return(0,e._init)(e._payload)}function Ka(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=Lc(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=Fc(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===N&&Ga(a)===t.type)?((r=o(t,n.props)).ref=Ha(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Ha(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=jc(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=Mc(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=Fc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Ha(e,null,t),n.return=e,n;case x:return(t=jc(t,e.mode,n)).return=e,t;case N:return p(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Mc(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 x:return n.key===o?u(e,t,n,r):null;case N:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||D(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 x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case N:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||D(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&&Jo(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&&Jo(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&&Jo(o,m),c}function v(o,s,l,c){var u=D(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&&Jo(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&&Jo(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&&Jo(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===N&&Ga(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=Ha(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((a=Mc(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Dc(i.type,i.key,i.props,null,r.mode,l)).ref=Ha(r,a,i),l.return=r,r=l)}return s(r);case x: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=jc(i,r.mode,l)).return=r,r=a}return s(r);case N:return e(r,a,(u=i._init)(i._payload),l)}if(te(i))return m(r,a,i,l);if(D(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=Fc(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var Ya=Ka(!0),Xa=Ka(!1),Ja={},ei=Co(Ja),ti=Co(Ja),ni=Co(Ja);function ri(e){if(e===Ja)throw Error(a(174));return e}function oi(e,t){switch(To(ni,t),To(ti,e),To(ei,Ja),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)}Oo(ei),To(ei,t)}function ai(){Oo(ei),Oo(ti),Oo(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&&(Oo(ei),Oo(ti))}var li=Co(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=E.ReactCurrentDispatcher,fi=E.ReactCurrentBatchConfig,hi=0,mi=null,vi=null,gi=null,yi=!1,bi=!1,Ei=0,wi=0;function xi(){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 ki(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,Ei=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 Ci(){var e=0!==Ei;return Ei=0,e}function Oi(){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 _i(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,Zl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(Es=!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,Zl|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pi(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)||(Es=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ii(){}function Ni(e,t){var n=mi,r=Ti(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,Es=!0),r=r.queue,qi(Di.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(n.flags|=2048,ji(9,Li.bind(null,n,r,o,t),void 0,null),null===Pl)throw Error(a(349));0!=(30&hi)||Ai(n,t,o)}return o}function Ai(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 Li(e,t,n,r){t.value=n,t.getSnapshot=r,Mi(t)&&Zi(e)}function Di(e,t,n){return n((function(){Mi(t)&&Zi(e)}))}function Mi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Zi(e){var t=Pa(e,1);null!==t&&rc(t,e,1,-1)}function Fi(e){var t=Oi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mi,e),[t.memoizedState,e]}function ji(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 $i(){return Ti().memoizedState}function Bi(e,t,n,r){var o=Oi();mi.flags|=e,o.memoizedState=ji(1|t,n,void 0,void 0===r?null:r)}function zi(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=ji(t,n,a,r))}mi.flags|=e,o.memoizedState=ji(1|t,n,a,r)}function Vi(e,t){return Bi(8390656,8,e,t)}function qi(e,t){return zi(2048,8,e,t)}function Wi(e,t){return zi(4,2,e,t)}function Ui(e,t){return zi(4,4,e,t)}function Hi(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,zi(4,4,Hi.bind(null,t,e),n)}function Gi(){}function Ki(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 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]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 0==(21&hi)?(e.baseState&&(e.baseState=!1,Es=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mi.lanes|=n,Zl|=n,e.baseState=!0),t)}function Ji(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,_a(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:Oa,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ss={readContext:Oa,useCallback:function(e,t){return Oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Vi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4194308,4,Hi.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=Oi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oi();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},Oi().memoizedState=e},useState:Fi,useDebugValue:Gi,useDeferredValue:function(e){return Oi().memoizedState=e},useTransition:function(){var e=Fi(!1),t=e[0];return e=Ji.bind(null,e[1]),Oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,o=Oi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Pl)throw Error(a(349));0!=(30&hi)||Ai(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Vi(Di.bind(null,r,i,e),[e]),r.flags|=2048,ji(9,Li.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Oi(),t=Pl.identifierPrefix;if(aa){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-it(Yo)-1)).toString(32)+n),0<(n=Ei++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Oa,useCallback:Ki,useContext:Oa,useEffect:qi,useImperativeHandle:Qi,useInsertionEffect:Wi,useLayoutEffect:Ui,useMemo:Yi,useReducer:Ri,useRef:$i,useState:function(){return Ri(_i)},useDebugValue:Gi,useDeferredValue:function(e){return Xi(Ti(),vi.memoizedState,e)},useTransition:function(){return[Ri(_i)[0],Ti().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Ni,useId:es,unstable_isNewReconciler:!1},cs={readContext:Oa,useCallback:Ki,useContext:Oa,useEffect:qi,useImperativeHandle:Qi,useInsertionEffect:Wi,useLayoutEffect:Ui,useMemo:Yi,useReducer:Pi,useRef:$i,useState:function(){return Pi(_i)},useDebugValue:Gi,useDeferredValue:function(e){var t=Ti();return null===vi?t.memoizedState=e:Xi(t,vi.memoizedState,e)},useTransition:function(){return[Pi(_i)[0],Ti().memoizedState]},useMutableSource:Ii,useSyncExternalStore:Ni,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=La(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Ul=r),ps(0,t)},n}function ms(e,t,n){(n=La(-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===Hl?Hl=new Set([this]):Hl.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=Oc.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=La(-1,1)).tag=2,Da(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=E.ReactCurrentOwner,Es=!1;function ws(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ya(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=ki(e,t,n,r,a,o),n=Ci(),null===e||Es?(aa&&n&&ta(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ac(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ks(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 Ws(e,t,o)}return t.flags|=1,(e=Lc(a,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(Es=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Ws(e,t,o);0!=(131072&e.flags)&&(Es=!0)}}return Ts(e,t,n,r,o)}function Cs(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(Ll,Al),Al|=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(Ll,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,To(Ll,Al),Al|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,To(Ll,Al),Al|=r;return ws(e,t,o,n),t.child}function Os(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=Ao(n)?Io:Ro.current;return a=No(t,a),Ca(t,o),n=ki(e,t,n,r,a,o),r=Ci(),null===e||Es?(aa&&r&&ta(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function _s(e,t,n,r,o){if(Ao(n)){var a=!0;Zo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)qs(e,t),qa(t,n,r),Ua(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=Oa(c):c=No(t,c=Ao(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)&&Wa(t,i,r,c),Ia=!1;var p=t.memoizedState;i.state=p,Fa(t,r,i,o),l=t.memoizedState,s!==r||p!==l||Po.current||Ia?("function"==typeof u&&(Ba(t,n,u,r),l=t.memoizedState),(s=Ia||Va(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,Aa(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=Oa(l):l=No(t,l=Ao(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)&&Wa(t,i,r,l),Ia=!1,p=t.memoizedState,i.state=p,Fa(t,r,i,o);var h=t.memoizedState;s!==d||p!==h||Po.current||Ia?("function"==typeof f&&(Ba(t,n,f,r),h=t.memoizedState),(c=Ia||Va(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){Os(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Fo(t,n,!1),Ws(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=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):ws(e,t,s,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Do(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Do(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 Ns,As,Ls,Ds,Ms={dehydrated:null,treeContext:null,retryLane:0};function Zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(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=Zc(l,o,0,null),e=Mc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Zs(n),t.memoizedState=Ms,e):js(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,$s(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=Zc({mode:"visible",children:r.children},o,0,null),(i=Mc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ya(t,e.child,null,s),t.child.memoizedState=Zs(s),t.memoizedState=Ms,i);if(0==(1&t.mode))return $s(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,$s(e,t,s,r=ds(i=Error(a(419)),r,void 0))}if(l=0!=(s&e.childLanes),Es||l){if(null!==(r=Pl)){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,Pa(e,o),rc(r,e,o,-1))}return vc(),$s(e,t,s,r=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_c.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Qo[Go++]=Yo,Qo[Go++]=Xo,Qo[Go++]=Ko,Yo=e.id,Xo=e.overflow,Ko=t),t=js(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=Lc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Lc(r,s):(s=Mc(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)?Zs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Lc(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 js(e,t){return(t=Zc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function $s(e,t,n,r){return null!==r&&ma(r),Ya(t,e.child,null,n),(e=js(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),ka(e.return,t,n)}function zs(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 Vs(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),zs(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}zs(t,!0,n,null,a);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Zl|=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=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(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 Hs(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 Hs(t),null;case 1:case 17:return Ao(t.type)&&Lo(),Hs(t),null;case 3:return r=t.stateNode,ai(),Oo(Po),Oo(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))),As(e,t),Hs(t),null;case 5:si(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Ls(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 Hs(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":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(o=0;o<Dr.length;o++)jr(Dr[o],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":K(r,i),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},jr("invalid",r);break;case"textarea":oe(r,i),jr("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&&Xr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jr("scroll",r)}switch(n){case"input":U(r),J(r,i,!0);break;case"textarea":U(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}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,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":jr("cancel",e),jr("close",e),o=r;break;case"iframe":case"object":case"embed":jr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)jr(Dr[o],e);o=r;break;case"source":jr("error",e),o=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),o=r;break;case"details":jr("toggle",e),o=r;break;case"input":K(e,r),o=G(e,r),jr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Z({},r,{value:void 0}),jr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),jr("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&&jr("scroll",e):null!=u&&b(e,i,u,l))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(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=Jr)}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 Hs(t),null;case 6:if(e&&null!=t.stateNode)Ds(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:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(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 Hs(t),null;case 13:if(Oo(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;Hs(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===Dl&&(Dl=3):vc())),null!==t.updateQueue&&(t.flags|=4),Hs(t),null);case 4:return ai(),As(e,t),null===e&&zr(t.stateNode.containerInfo),Hs(t),null;case 10:return Sa(t.type._context),Hs(t),null;case 19:if(Oo(li),null===(i=t.memoizedState))return Hs(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Us(i,!1);else{if(0!==Dl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Us(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&&Ye()>Vl&&(t.flags|=128,r=!0,Us(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),Us(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Hs(t),null}else 2*Ye()-i.renderingStartTime>Vl&&1073741824!==n&&(t.flags|=128,r=!0,Us(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=Ye(),t.sibling=null,n=li.current,To(li,r?1&n|2:1&n),t):(Hs(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&Al)&&(Hs(t),6&t.subtreeFlags&&(t.flags|=8192)):Hs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gs(e,t){switch(na(t),t.tag){case 1:return Ao(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Oo(Po),Oo(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(Oo(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 Oo(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}}Ns=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}},As=function(){},Ls=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=G(e,o),r=G(e,r),i=[];break;case"select":o=Z({},o,{value:void 0}),r=Z({},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=Jr)}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&&jr("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)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Ys=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Cc(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=Jr));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:Ys||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),zt(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(!Ys&&(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(!Ys&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=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 Xs),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){Cc(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){Cc(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Cc(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){Cc(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&&Y(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":X(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){Cc(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){Cc(e,e.return,t)}}break;case 3:if(vl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){Cc(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||(zl=Ye())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||d,vl(t,e),Ys=u):vl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(h=(f=Js).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){Cc(r,n,e)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){xl(p);continue}}null!==h?(h.return=f,Js=h):xl(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){Cc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Cc(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){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,El(e,t,n)}function El(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var o=Js,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ks;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var c=Ys;if(Ks=i,(Ys=l)&&!c)for(Js=o;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?Sl(o):null!==l?(l.return=i,Js=l):Sl(o);for(;null!==a;)Js=a,El(a,t,n),a=a.sibling;Js=o,Ks=s,Ys=c}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Js=a):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)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&&ja(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}ja(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&&zt(p)}}}break;default:throw Error(a(163))}Ys||512&t.flags&&al(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var a=t.return;try{al(t)}catch(e){Cc(t,a,e)}break;case 5:var i=t.return;try{al(t)}catch(e){Cc(t,i,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var kl,Cl=Math.ceil,Ol=E.ReactCurrentDispatcher,Tl=E.ReactCurrentOwner,_l=E.ReactCurrentBatchConfig,Rl=0,Pl=null,Il=null,Nl=0,Al=0,Ll=Co(0),Dl=0,Ml=null,Zl=0,Fl=0,jl=0,$l=null,Bl=null,zl=0,Vl=1/0,ql=null,Wl=!1,Ul=null,Hl=null,Ql=!1,Gl=null,Kl=0,Yl=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!=(6&Rl)?Ye():-1!==Jl?Jl:Jl=Ye()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Rl)&&0!==Nl?Nl&-Nl:null!==va.transition?(0===ec&&(ec=mt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function rc(e,t,n,r){if(50<Yl)throw Yl=0,Xl=null,Error(a(185));gt(e,n,r),0!=(2&Rl)&&e===Pl||(e===Pl&&(0==(2&Rl)&&(Fl|=n),4===Dl&&lc(e,Nl)),oc(e,r),1===n&&0===Rl&&0==(1&t.mode)&&(Vl=Ye()+500,$o&&Vo()))}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===Pl?Nl: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){$o=!0,zo(e)}(cc.bind(null,e)):zo(cc.bind(null,e)),io((function(){0==(6&Rl)&&Vo()})),n=null;else{switch(Et(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Jl=-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===Pl?Nl: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(Pl===e&&Nl===t||(ql=null,Vl=Ye()+500,fc(e,t));;)try{bc();break}catch(t){hc(e,t)}xa(),Ol.current=i,Rl=o,null!==Il?t=0:(Pl=null,Nl=0,t=Dl)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=Ml,fc(e,0),lc(e,r),oc(e,Ye()),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=Ml,fc(e,0),lc(e,r),oc(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xc(e,Bl,ql);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=zl+500-Ye())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Bl,ql),t);break}xc(e,Bl,ql);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=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Bl,ql),r);break}xc(e,Bl,ql);break;default:throw Error(a(329))}}}return oc(e,Ye()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=$l;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&=~jl,t&=~Fl,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,Ye()),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=Ml,fc(e,0),lc(e,t),oc(e,Ye()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,ql),oc(e,Ye()),null}function uc(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{0===(Rl=n)&&(Vl=Ye()+500,$o&&Vo())}}function dc(e){null!==Gl&&0===Gl.tag&&0==(6&Rl)&&Sc();var t=Rl;Rl|=1;var n=_l.transition,r=bt;try{if(_l.transition=null,bt=1,e)return e()}finally{bt=r,_l.transition=n,0==(6&(Rl=t))&&Vo()}}function pc(){Al=Ll.current,Oo(Ll)}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)&&Lo();break;case 3:ai(),Oo(Po),Oo(Ro),di();break;case 5:si(r);break;case 4:ai();break;case 13:case 19:Oo(li);break;case 10:Sa(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Pl=e,Il=e=Lc(e.current,null),Nl=Al=t,Dl=0,Ml=null,jl=Fl=Zl=0,Bl=$l=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(xa(),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,Ei=0,Tl.current=null,null===n||null===n.return){Dl=1,Ml=t,Il=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Nl,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!==Dl&&(Dl=2),null===$l?$l=[i]:$l.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Za(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===Hl||!Hl.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Za(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=Ol.current;return Ol.current=is,null===e?is:e}function vc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Pl||0==(268435455&Zl)&&0==(268435455&Fl)||lc(Pl,Nl)}function gc(e,t){var n=Rl;Rl|=2;var r=mc();for(Pl===e&&Nl===t||(ql=null,fc(e,t));;)try{yc();break}catch(t){hc(e,t)}if(xa(),Rl=n,Ol.current=r,null!==Il)throw Error(a(261));return Pl=null,Nl=0,Dl}function yc(){for(;null!==Il;)Ec(Il)}function bc(){for(;null!==Il&&!Ge();)Ec(Il)}function Ec(e){var t=kl(e.alternate,e,Al);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,Al)))return void(Il=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Dl=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===Dl&&(Dl=5)}function xc(e,t,n){var r=bt,o=_l.transition;try{_l.transition=null,bt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);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===Pl&&(Il=Pl=null,Nl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Ql||(Ql=!0,Pc(tt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=_l.transition,_l.transition=null;var s=bt;bt=1;var l=Rl;Rl|=4,Tl.current=null,function(e,t){if(eo=qt,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},qt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;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 E=t.stateNode.containerInfo;1===E.nodeType?E.textContent="":9===E.nodeType&&E.documentElement&&E.removeChild(E.documentElement);break;default:throw Error(a(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),gl(n,e),hr(to),qt=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ke(),Rl=l,bt=s,_l.transition=i}else e.current=n;if(Ql&&(Ql=!1,Gl=e,Kl=o),i=e.pendingLanes,0===i&&(Hl=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,Ye()),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(Wl)throw Wl=!1,e=Ul,Ul=null,e;0!=(1&Kl)&&0!==e.tag&&Sc(),i=e.pendingLanes,0!=(1&i)?e===Xl?Yl++:(Yl=0,Xl=e):Yl=0,Vo()}(e,t,n,r)}finally{_l.transition=o,bt=r}return null}function Sc(){if(null!==Gl){var e=Et(Kl),t=_l.transition,n=bt;try{if(_l.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Kl=0,0!=(6&Rl))throw Error(a(331));var o=Rl;for(Rl|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!=(16&Js.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var f=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==f){f.return=h,Js=f;break}Js=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)}}Js=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!=(2048&(i=Js).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,Js=y;break e}Js=i.return}}var b=e.current;for(Js=b;null!==Js;){var E=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==E)E.return=s,Js=E;else e:for(s=b;null!==Js;){if(0!=(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Cc(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Rl=o,Vo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,_l.transition=t}}return!1}function kc(e,t,n){e=Da(e,t=hs(0,t=us(n,t),1),1),t=tc(),null!==e&&(gt(e,1,t),oc(e,t))}function Cc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hl||!Hl.has(r))){t=Da(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 Oc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Nl&n)===n&&(4===Dl||3===Dl&&(130023424&Nl)===Nl&&500>Ye()-zl?fc(e,0):jl|=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=Pa(e,t))&&(gt(e,t,n),oc(e,n))}function _c(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 Pc(e,t){return He(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 Nc(e,t,n,r){return new Ic(e,t,n,r)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Nc(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 Dc(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Ac(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Mc(n.children,o,i,t);case k:s=8,o|=8;break;case C:return(e=Nc(12,n,t,2|o)).elementType=C,e.lanes=i,e;case R:return(e=Nc(13,n,t,o)).elementType=R,e.lanes=i,e;case P:return(e=Nc(19,n,t,o)).elementType=P,e.lanes=i,e;case A:return Zc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case T:s=9;break e;case _:s=11;break e;case I:s=14;break e;case N:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Nc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Mc(e,t,n,r){return(e=Nc(7,e,r,t)).lanes=n,e}function Zc(e,t,n,r){return(e=Nc(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Nc(6,e,null,t)).lanes=n,e}function jc(e,t,n){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $c(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 $c(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Nc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(a),e}function zc(e){if(!e)return _o;e:{if(ze(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(Ao(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(Ao(n))return Mo(e,n,t)}return t}function Vc(e,t,n,r,o,a,i,s,l){return(e=Bc(n,r,!0,e,0,a,0,s,l)).context=zc(null),n=e.current,(a=La(r=tc(),o=nc(n))).callback=null!=t?t:null,Da(n,a,o),e.current.lanes=o,gt(e,o,r),oc(e,r),e}function qc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=La(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Da(o,t,i))&&(rc(e,o,i,a),Ma(e,o,i)),i}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Hc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)Es=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Es=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),ha();break;case 5:ii(t);break;case 1:Ao(t.type)&&Zo(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)?Fs(e,t,n):(To(li,1&li.current),null!==(e=Ws(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 Vs(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,Cs(e,t,n)}return Ws(e,t,n)}(e,t,n);Es=0!=(131072&e.flags)}else Es=!1,aa&&0!=(1048576&t.flags)&&ea(t,Ho,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qs(e,t),e=t.pendingProps;var o=No(t,Ro.current);Ca(t,n),o=ki(null,t,r,e,o,n);var i=Ci();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,Ao(r)?(i=!0,Zo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Na(t),o.updater=za,t.stateNode=o,o._reactInternals=t,Ua(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(qs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ac(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)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=_s(null,t,r,e,n);break e;case 11:t=xs(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,_s(e,t,r,o=t.elementType===r?o:ga(r,o),n);case 3:e:{if(Ps(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Aa(e,t),Fa(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=Xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===o){t=Ws(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),Os(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Fs(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ya(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(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&&!Po.current){t=Ws(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=La(-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),ka(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),ka(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,Ca(t,n),r=r(o=Oa(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 ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ga(r,o),qs(e,t),t.tag=1,Ao(r)?(e=!0,Zo(t)):e=!1,Ca(t,n),qa(t,r,o),Ua(t,r,o,n),Rs(null,t,r,!0,e,n);case 19:return Vs(e,t,n);case 22:return Cs(e,t,n)}throw Error(a(156,t.tag))};var Qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}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=Wc(i);s.call(e)}}qc(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=Wc(i);a.call(e)}}var i=Vc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[mo]=i.current,zr(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=Wc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,zr(8===e.nodeType?e.parentNode:e),dc((function(){qc(t,l,n,r)})),l}(n,t,e,o,r);return Wc(i)}Kc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));qc(e,t,null,null)},Kc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){qc(null,e,null,null)})),t[mo]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Zt(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,Ye()),0==(6&Rl)&&(Vl=Ye()+500,Vo()))}break;case 13:dc((function(){var t=Pa(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Hc(e,1)}},xt=function(e){if(13===e.tag){var t=Pa(e,134217728);if(null!==t)rc(t,e,134217728,tc());Hc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Pa(e,t);if(null!==n)rc(n,e,t,tc());Hc(e,t)}},kt=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(X(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=xo(r);if(!o)throw Error(a(90));H(r),X(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=uc,Re=dc;var tu={usingClientEntryPoint:!1,Events:[Eo,wo,xo,Oe,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:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(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(!Yc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(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,zr(8===e.nodeType?e.parentNode:e),new Gc(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=We(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(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=Vc(t,null,e,1,null!=n?n:null,o,0,i,s),e[mo]=t.current,zr(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 Kc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(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(!Xc(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"},6594:(e,t,n)=>{"use strict";var r=n(2545);t.s=r.createRoot,r.hydrateRoot},2545:(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(9070)},2333:(e,t,n)=>{"use strict";var r,o;r=n(3237),o=n(1826),r.version,t.Dq=r.renderToString,r.renderToStaticMarkup,r.renderToNodeStream,r.renderToStaticNodeStream,o.renderToReadableStream},7792:(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,E=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 x(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 x(e)||w(e)===u},t.isConcurrentMode=x,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===E||e.$$typeof===g)},t.typeOf=w},7851:(e,t,n)=>{"use strict";e.exports=n(7792)},1126:(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}},9123:(e,t,n)=>{"use strict";e.exports=n(1126)},4575:(e,t,n)=>{"use strict";var r=n(7169),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},5334:(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 E=b.prototype=new y;E.constructor=b,m(E,g.prototype),E.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(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)x.call(t,o)&&!k.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 O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function _(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?"."+_(l,0):a,w(i)?(o="",null!=e&&(o=e.replace(T,"$&/")+"/"),R(i,t,o,"",(function(e){return e}))):null!=i&&(O(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+_(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+_(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 P(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 N={current:null},A={transition:null},L={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:A,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(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=L,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)x.call(t,c)&&!k.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=C,t.createFactory=function(e){var t=C.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=O,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=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},7169:(e,t,n)=>{"use strict";e.exports=n(5334)},2879:(e,t,n)=>{"use strict";e.exports=n(4575)},8303:(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(2937))&&r.__esModule?r:{default:r}},2937:(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}},7563:(e,t,n)=>{"use strict";var r;t.Z=void 0;var o=(0,((r=n(8303))&&r.__esModule?r:{default:r}).default)("session");t.Z=o},2938:(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 E(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,E(e),!m)if(null!==r(c))m=!0,A(x);else{var t=r(u);null!==t&&L(w,t.startTime-e)}}function x(e,n){m=!1,v&&(v=!1,y(O),O=-1),h=!0;var a=f;try{for(E(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),E(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&L(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,k=!1,C=null,O=-1,T=5,_=-1;function R(){return!(t.unstable_now()-_<T)}function P(){if(null!==C){var e=t.unstable_now();_=e;var n=!0;try{n=C(!0,e)}finally{n?S():(k=!1,C=null)}}else k=!1}if("function"==typeof b)S=function(){b(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,N=I.port2;I.port1.onmessage=P,S=function(){N.postMessage(null)}}else S=function(){g(P,0)};function A(e){C=e,k||(k=!0,S())}function L(e,n){O=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,A(x))},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(O),O=-1):v=!0,L(w,a-i))):(e.sortIndex=s,n(c,e),m||h||(m=!0,A(x))),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}}}},2656:(e,t,n)=>{"use strict";e.exports=n(2938)},8861:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={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",CLOSE:"Close",CLOSE_BOT:"Close {bot:string}",CLOSE_LINKS:"Close links",CLOSE_SUGGESTIONS:"Close suggestions",CLOSE_VIDEOS:"Close videos",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}",DISMISS:"Dismiss",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",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_VERY_LIKELY:"Very likely",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}.",MORE:"More",NO:"No",NO_TRANSLATE_IF:"Translation unavailable during inquiry form",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.",SPANISH:"Spanish",SUBMIT:"Submit",SUGGESTIONS:"Suggestions",TERMS_OF_USE:"Terms of Use",UNKNOWN_OPERATOR:"Unknown Operator",USER_SAID:"{name:string} said",VERSION:"Chatbot 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"}},2962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={A11Y_POLICY:"Política de accesibilidad",ABOUT:"Acerca de",ABOUT_ME:"Información sobre este software de Chatbot",APPBAR_HEADER:"Pregúntale a {bot}",API_FAILED:"¡Lo sentimos! Parece que hay un problema de conectividad.\n    Por favor intente nuevamente más tarde.",ANSWER_QUESTION:"Responder pregunta",ASK_QUESTION:"Haz una pregunta",CANCEL:"Cancelar",CHANGE_LANGUAGE:"Cambiar el idioma",CHINESE:"Chinese (Simplified)",CLEAR:"Limpiar la conversación",CLOSE:"Cerrar",CLOSE_BOT:"Cerrar {bot}",CLOSE_LINKS:"Cerrar enlaces",CLOSE_SUGGESTIONS:"Cerrar sugerencias",CLOSE_VIDEOS:"Cerrar videos",COPYRIGHT:"© Derechos de autor {years}. CareerAmerica, LLC",CREATED_BY:"Creado por expertos en ayuda financiera y servicios estudiantiles\n    en Ocelot en Boulder, CO y Evanston, IL.",DEFAULT_LAUNCHER:"Preguntas? Pregúntale a {bot}",DISMISS:"Descartar",DOWNLOAD_TRANSCRIPT:"Descargar transcripción",DOWNLOAD_TRANSCRIPT_QUESTION:"¿Le gustaría descargar una copia de su transcripción?",EXPLORE_SUGGESTIONS:"Explorar sugerencias",EXPLORE_VIDEOS:"Explorar videos",EXPLORE_LINKS:"Explorar enlaces",FEEDBACK_FAILED:"Lo siento, no pude recibir tus comentarios. Inténtalo de nuevo más tarde.",FEEDBACK_NOT_AT_ALL:"Para nada probable",FEEDBACK_OTHER:"¿Tienes algún otro comentario sobre tu experiencia?",FEEDBACK_PROMPT:"¿Estás disfrutando de tu conversa? Nos encantaría saber tus comentarios.",FEEDBACK_THANKS:"¡Gracias por tus comentarios!",FEEDBACK_VERY_LIKELY:"Muy probable",IM_BACK:"He vuelto",LANGUAGE:"Idioma",LANGUAGE_SELECTED:"{lang} está actualmente seleccionado",LIKELY_TO_RECOMMEND:"¿Qué tan probable es que recomiendes hablar con\n    {bot} a un amigo?",LINKS:"Enlaces",LIVECHAT_AGENT_LEFT:"{operator} ha dejado la conversación.",LIVECHAT_BOT_SPEAKING:"Ahora estás hablando con {bot} nuevamente.",LIVECHAT_CONNECTED:"Ahora estás hablando con {operator}.",LIVECHAT_LEFT_QUEUE:"Has abandonado la cola de espera. Ahora estás hablando con {bot} nuevamente.",LIVECHAT_OFFICE_CHANGED:"El operador ha transferido esta conversación a {office}.",MORE:"Más",NO:"No",NO_TRANSLATE_LC:"Traducción no disponible durante la conversación con el agente en vivo",NO_TRANSLATE_IF:"Traducción no disponible durante el formulario de consulta",OCELOT_VIDEO_PLAYER:"Reproductor de vídeo Ocelot",OPEN_MENU:"Menú abierto",PATENT:"U.S. Patent No. {number}",PRIVACY_POLICY:"Política de privacidad",RATE_BOT:"Califica a {bot}",SEND_DISCONNECTED:"No se puede enviar mensaje sin conexión",SEND_MESSAGE:"Enviar mensaje",SESSION_EXPIRED:"¡Lo siento! Tu sesión ha expirado. Por favor intenta nuevamente más tarde.",SUGGESTIONS:"Sugerencias",SPANISH:"Español",SUBMIT:"Enviar",TERMS_OF_USE:"Términos de Uso",UNKNOWN_OPERATOR:"Operador desconocido",USER_SAID:"{name} dijo",VERSION:"Chatbot v{version}",VIETNAMESE:"Vietnamese",VIEW_MORE:"Ver más...",VIDEOS:"Videos",VISIT_PAGE:"Visita la página",VISIT_URL:"Vista la Pagina {webpage}",YES:"Sí",YOU_SAID:"Dijiste"}},97:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={A11Y_POLICY:"Chính sách trợ năng",ABOUT:"Về",ABOUT_ME:"Thông tin về phần mềm Chatbot này",APPBAR_HEADER:"Hỏi {bot}",API_FAILED:"Xin lỗi! Dường như có sự cố kết nối. Vui lòng thử lại trong thời gian ngắn.",ANSWER_QUESTION:"Trả lời câu hỏi",ASK_QUESTION:"Đặt một câu hỏi",CANCEL:"Huỷ bỏ",CHANGE_LANGUAGE:"Cambiar el idioma",CHINESE:"Chinese (Simplified)",CLEAR:"Xóa cuộc trò chuyện",CLOSE:"Đóng lại",CLOSE_BOT:"Đóng lại {bot}",CLOSE_LINKS:"Đóng các liên kết",CLOSE_SUGGESTIONS:"Đóng các đề xuất",CLOSE_VIDEOS:"Đóng video",COPYRIGHT:"© Bản quyền {years}. CareerAmerica, LLC",CREATED_BY:"Được tạo ra bởi các chuyên gia hỗ trợ tài chính và dịch vụ sinh viên tại\n    Ocelot ở Boulder, CO và Evanston, IL.",DEFAULT_LAUNCHER:"Câu hỏi? Hỏi {bot}",DISMISS:"Loại bỏ",DOWNLOAD_TRANSCRIPT:"Tải xuống bảng điểm",DOWNLOAD_TRANSCRIPT_QUESTION:"Bạn có muốn tải xuống bản sao bảng điểm của mình không?",EXPLORE_SUGGESTIONS:"Khám phá các đề xuất",EXPLORE_VIDEOS:"Khám phá video",EXPLORE_LINKS:"Khám phá các liên kết",FEEDBACK_FAILED:"Tôi xin lỗi, tôi không thể nhận được phản hồi của bạn. Hãy thử lại\n    sau.",FEEDBACK_NOT_AT_ALL:"Không có khả năng",FEEDBACK_OTHER:"Bạn có phản hồi nào khác về trải nghiệm của mình không?",FEEDBACK_PROMPT:"Thích trò chuyện của bạn? Chúng tôi\n    rất thích phản hồi của bạn.",FEEDBACK_THANKS:"Cảm ơn bạn đã phản hồi!",FEEDBACK_VERY_LIKELY:"Rất có thể",IM_BACK:"Tôi trở lại",LANGUAGE:"Ngôn ngữ",LANGUAGE_SELECTED:"{lang} hiện đã được chọn",LIKELY_TO_RECOMMEND:"Bạn có khả năng giới thiệu trò chuyện bằng {{bot}} với một\n    người bạn không?",LINKS:"Liên kết",LIVECHAT_AGENT_LEFT:"{operator} đã rời khỏi cuộc trò chuyện.",LIVECHAT_BOT_SPEAKING:"Bây giờ bạn đang nói chuyện với {bot} một lần nữa.",LIVECHAT_CONNECTED:"Bây giờ bạn đang nói chuyện với {operator}.",LIVECHAT_LEFT_QUEUE:"Bạn đã rời khỏi hàng đợi. Bây giờ bạn đang nói chuyện với {bot} một lần nữa.",LIVECHAT_OFFICE_CHANGED:"Người điều hành đã chuyển cuộc trò chuyện này đến {office}.",MORE:"Hơn",NO:"Không",NO_TRANSLATE_LC:"Không có bản dịch trong cuộc trò chuyện trực tiếp với đại lý",NO_TRANSLATE_IF:"Bản dịch không có sẵn trong biểu mẫu yêu cầu",OCELOT_VIDEO_PLAYER:"Trình phát video Ocelot",OPEN_MENU:"Mở menu",PATENT:"U.S. Patent No. {number}",PRIVACY_POLICY:"Chính sách quyền riêng tư",RATE_BOT:"Xếp hạng {bot}",SEND_DISCONNECTED:"Không thể gửi khi bị ngắt kết nối",SEND_MESSAGE:"Gửi tin nhắn",SESSION_EXPIRED:"Xin lỗi! Phiên của bạn đã hết hạn. Vui lòng thử lại trong thời gian ngắn.",SUGGESTIONS:"Gợi ý",SPANISH:"Español",SUBMIT:"Nộp",TERMS_OF_USE:"Điều khoản sử dụng",UNKNOWN_OPERATOR:"Nhà điều hành không xác định",USER_SAID:"{name} đã nói",VERSION:"Chatbot v{version}",VIETNAMESE:"Việt nam",VIEW_MORE:"Xem thêm...",VIDEOS:"Video",VISIT_PAGE:"Truy cập trang",VISIT_URL:"Truy cập trang {webpage}",YES:"Vâng",YOU_SAID:"Bạn đã nói"}},5881:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={A11Y_POLICY:"无障碍政策",ABOUT:"关于",ABOUT_ME:"有关此聊天机器人软件的信息",APPBAR_HEADER:"询问 {bot}",API_FAILED:"抱歉! 似乎存在连接问题。 请稍后再试。",ANSWER_QUESTION:"回答问题",ASK_QUESTION:"询问问题",CANCEL:"取消",CHANGE_LANGUAGE:"更改语言",CHINESE:"中文",CLEAR:"清楚的对话",CLOSE:"关闭",CLOSE_BOT:"关闭 {bot}",CLOSE_LINKS:"关闭连结",CLOSE_SUGGESTIONS:"亲密建议",CLOSE_VIDEOS:"关闭影片",COPYRIGHT:"© 版权 {years}. CareerAmerica, LLC",CREATED_BY:"由位于科罗拉多州博尔德市和伊利诺伊州埃文斯顿市的Ocelot的财政资助和学生服务专家创建。",DEFAULT_LAUNCHER:"有任何疑问？询问 {bot}",DISMISS:"解雇",DOWNLOAD_TRANSCRIPT:"下载成绩单",DOWNLOAD_TRANSCRIPT_QUESTION:"您要下载成绩单吗？",EXPLORE_SUGGESTIONS:"探索建议",EXPLORE_VIDEOS:"探索影片",EXPLORE_LINKS:"探索链接",FEEDBACK_FAILED:"很抱歉，我没能收到您的反馈。请稍后再试。",FEEDBACK_NOT_AT_ALL:"根本不可能",FEEDBACK_OTHER:"关于你的经历还有什么其他的反馈吗？",FEEDBACK_PROMPT:"您是否喜欢这次对话？我们希望得到您的反馈。",FEEDBACK_THANKS:"感谢您的反馈意见！",FEEDBACK_VERY_LIKELY:"非常有可能（推荐）",IM_BACK:"我回来了",LANGUAGE:"语言",LANGUAGE_SELECTED:"当前选择了{lang}",LIKELY_TO_RECOMMEND:"您有多大的可能性向朋友推荐与 {bot} 进行沟通？",LINKS:"网页",LIVECHAT_AGENT_LEFT:"{operator}已离开对话。",LIVECHAT_BOT_SPEAKING:"您现在再次与{bot}交谈。",LIVECHAT_CONNECTED:"您现在正在与{operator}对话。",LIVECHAT_LEFT_QUEUE:"您已离开队列。 您现在再次与{bot}交谈。",LIVECHAT_OFFICE_CHANGED:"接线员已将此对话转移到{office}。",MORE:"更多的",NO:"没有",NO_TRANSLATE_LC:"实时座席对话期间无法翻译",NO_TRANSLATE_IF:"查询表格期间无法翻译",OCELOT_VIDEO_PLAYER:"Ocelot 视频播放器",OPEN_MENU:"打开菜单。",PATENT:"U.S. Patent No. {number}",PRIVACY_POLICY:"隐私权保护政策",RATE_BOT:"请对{bot}进行评分。",SEND_DISCONNECTED:"断开连接时无法发送",SEND_MESSAGE:"发送信息",SESSION_EXPIRED:"抱歉! 您的会话已过期。请稍后再试。",SUGGESTIONS:"意见建议",SPANISH:"Español",SUBMIT:"提交",TERMS_OF_USE:"服务条款",UNKNOWN_OPERATOR:"未知运算子",USER_SAID:"{name}说",VERSION:"聊天机器人 v{version}",VIEW_MORE:"查看更多...",VIDEOS:"影片",VIETNAMESE:"Vietnamese",VISIT_PAGE:"访问页面",VISIT_URL:"访问页面 {webpage}",YES:"是的",YOU_SAID:"你说"}},737:(e,t,n)=>{"use strict";var r=n(7169);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},7349:(e,t,n)=>{"use strict";var r=n(7169),o=n(8100);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}},8100:(e,t,n)=>{"use strict";e.exports=n(737)},9700:(e,t,n)=>{"use strict";e.exports=n(7349)},7818:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},9e3:(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,{Z:()=>r})},4107:(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,{Z:()=>r})},8970:(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,{Z:()=>r})},2308:(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,{Z:()=>r})}},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:()=>VT});var e=o(7169),t=o.t(e,2),n=o(6594),r="persist:",i="persist/FLUSH",s="persist/REHYDRATE",l="persist/PAUSE",c="persist/PERSIST",u="persist/PURGE",d="persist/REGISTER",p=-1;function f(e){return f="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},f(e)}function h(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 m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(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?h(n,!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return e&&"object"===f(e)&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function g(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:y;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(g))}function v(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function g(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 y(e){return JSON.stringify(e)}function b(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:E,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 E(e){return JSON.parse(e)}function w(e){0}function x(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 S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(n,!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(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}var O=5e3;function T(e,t){var n=void 0!==e.version?e.version:p,o=(e.debug,void 0===e.stateReconciler?v:e.stateReconciler),a=e.getStoredState||b,d=void 0!==e.timeout?e.timeout:O,f=null,h=!1,m=!0,y=function(e){return e._persist.rehydrated&&f&&!m&&f.update(e),e};return function(p,v){var b=p||{},E=b._persist,x=C(b,["_persist"]);if(v.type===c){var k=!1,O=function(t,n){k||(v.rehydrate(e.key,t,n),k=!0)};if(d&&setTimeout((function(){!k&&O(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),d),m=!1,f||(f=g(e)),E)return S({},t(x,v),{_persist:E});if("function"!=typeof v.rehydrate||"function"!=typeof v.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 v.register(e.key),a(e).then((function(t){var r=e.migrate||function(e,t){return Promise.resolve(e)};r(t,n).then((function(e){O(e)}),(function(e){O(void 0,e)}))}),(function(e){O(void 0,e)})),S({},t(x,v),{_persist:{version:n,rehydrated:!1}})}if(v.type===u)return h=!0,v.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key);return t.removeItem(n,w)}(e)),S({},t(x,v),{_persist:E});if(v.type===i)return v.result(f&&f.flush()),S({},t(x,v),{_persist:E});if(v.type===l)m=!0;else if(v.type===s){if(h)return S({},x,{_persist:S({},E,{rehydrated:!0})});if(v.key===e.key){var T=t(x,v),_=v.payload,R=S({},!1!==o&&void 0!==_?o(_,p,T,e):T,{_persist:S({},E,{rehydrated:!0})});return y(R)}}if(!E)return t(p,v);var P=t(x,v);return P===x?p:y(S({},P,{_persist:E}))}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(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 N="function"==typeof Symbol&&Symbol.observable||"@@observable",A=function(){return Math.random().toString(36).substring(7).split("").join(".")},L={INIT:"@@redux/INIT"+A(),REPLACE:"@@redux/REPLACE"+A(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+A()}};function D(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 M(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(I(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(I(1));return n(M)(e,t)}if("function"!=typeof e)throw new Error(I(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(I(3));return a}function d(e){if("function"!=typeof e)throw new Error(I(4));if(l)throw new Error(I(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(I(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),i=null}}}function p(e){if(!D(e))throw new Error(I(7));if(void 0===e.type)throw new Error(I(8));if(l)throw new Error(I(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:L.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(I(10));o=e,p({type:L.REPLACE})}})[N]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(I(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[N]=function(){return this},e},r}function Z(){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){B(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 B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z={registry:[],bootstrapped:!1},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,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 q(e){return q="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},q(e)}function W(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 U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e,t){return Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Q(e,t)}function G(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"!==q(t)&&"function"!=typeof t?H(e):t}(this,(e=U(t)).call.apply(e,[this].concat(o))),G(H(n),"state",{bootstrapped:!1}),G(H(n),"_unsubscribe",void 0),G(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&&Q(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}}])&&W(n.prototype,r),o&&W(n,o),t}(e.PureComponent);G(K,"defaultProps",{children:null,loading:null});var Y=o(7563),X=o(8100),J=o(9700),ee=o(2545);let te=function(e){e()};const ne=()=>te,re=e.createContext(null);function oe(){return(0,e.useContext)(re)}const ae=()=>{throw new Error("uSES not initialized!")};let ie=ae;const se=(e,t)=>e===t;function le(t=re){const n=t===re?oe:()=>(0,e.useContext)(t);return function(t,r=se){const{store:o,subscription:a,getServerState:i}=n(),s=ie(a.addNestedSub,o.getState,i||o.getState,t,r);return(0,e.useDebugValue)(s),s}}const ce=le();function ue(){return ue=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},ue.apply(this,arguments)}function de(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 pe=o(5730),fe=o.n(pe),he=o(9123);const me=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ve(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);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 ge(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function ye(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function be(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=ye(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=ye(o),o=r(t,n)),o},r}}function Ee(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function we(e,t,n){return ue({},n,e,t)}const xe={notify(){},get:()=>[]};function Se(e,t){let n,r=xe;function o(){i.onStateChange&&i.onStateChange()}function a(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){const e=ne();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)}}}}())}const i={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=xe)},getListeners:()=>r};return i}const ke=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?e.useLayoutEffect:e.useEffect;function Ce(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Oe(e,t){if(Ce(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])||!Ce(e[n[r]],t[n[r]]))return!1;return!0}const Te=["reactReduxForwardedRef"];let _e=ae;const Re=[null,null];function Pe(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function Ie(e,t){return e===t}const Ne=function(t,n,r,{pure:o,areStatesEqual:a=Ie,areOwnPropsEqual:i=Oe,areStatePropsEqual:s=Oe,areMergedPropsEqual:l=Oe,forwardRef:c=!1,context:u=re}={}){const d=u,p=function(e){return e?"function"==typeof e?be(e):Ee(e,"mapStateToProps"):ge((()=>({})))}(t),f=function(e){return e&&"object"==typeof e?ge((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?be(e):Ee(e,"mapDispatchToProps"):ge((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):Ee(e,"mergeProps"):()=>we}(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]=(0,e.useMemo)((()=>{const{reactReduxForwardedRef:e}=n,t=de(n,Te);return[n.context,e,t]}),[n]),s=(0,e.useMemo)((()=>r&&r.Consumer&&(0,he.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),l=(0,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=(0,e.useMemo)((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,a=de(t,me);return ve(n(e,a),r(e,a),o(e,a),e,a)}(p.dispatch,o)),[p]),[v,g]=(0,e.useMemo)((()=>{if(!m)return Re;const e=Se(p,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,l]),y=(0,e.useMemo)((()=>c?l:ue({},l,{subscription:v})),[c,l,v]),b=(0,e.useRef)(),E=(0,e.useRef)(i),w=(0,e.useRef)(),x=(0,e.useRef)(!1),S=((0,e.useRef)(!1),(0,e.useRef)(!1)),k=(0,e.useRef)();ke((()=>(S.current=!0,()=>{S.current=!1})),[]);const C=(0,e.useMemo)((()=>()=>w.current&&i===E.current?w.current:h(p.getState(),i)),[p,i]),O=(0,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,E,b,x,S,w,g,e):()=>{}),[v]);var T,_,R;let P;T=Pe,_=[E,b,x,i,w,g],ke((()=>T(..._)),R);try{P=_e(O,C,f?()=>h(f(),i):C)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}ke((()=>{k.current=void 0,w.current=void 0,b.current=P}));const I=(0,e.useMemo)((()=>e.createElement(t,ue({},P,{ref:a}))),[a,t,P]);return(0,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,ue({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,fe()(n,t)}return fe()(v,t)}};const Ae=function({store:t,context:n,children:r,serverState:o}){const a=(0,e.useMemo)((()=>{const e=Se(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0}}),[t,o]),i=(0,e.useMemo)((()=>t.getState()),[t]);ke((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,i]);const s=n||re;return e.createElement(s.Provider,{value:a},r)};function Le(t=re){const n=t===re?oe:()=>(0,e.useContext)(t);return function(){const{store:e}=n();return e}}const De=Le();function Me(e=re){const t=e===re?De:Le(e);return function(){return t().dispatch}}const Ze=Me();var Fe,je;Fe=J.useSyncExternalStoreWithSelector,ie=Fe,(e=>{_e=e})(X.useSyncExternalStore),je=ee.unstable_batchedUpdates,te=je;var $e=o(1218),Be=o.n($e);const ze=(e,t)=>{const n=e.map((e=>{let t=e.pattern;return t=t.replace(/^(https?:)/,""),"/"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),e.pattern=t,e}));let r;return n.sort(((e,t)=>t.pattern.length-e.pattern.length)).some((e=>{const n=((e,t)=>{const n=Be()(e.pattern);return t.match(new RegExp(n))})(e,t);return!!n&&(r=e,!0)})),r},Ve=e=>{if("object"!=typeof e||Array.isArray(e))return JSON.stringify(e);const t=Object.keys(e).map((t=>`${t}:${Ve(e[t])}`)).join(",");return`{${t}}`},qe={ha:"right",hv:"16px",va:"bottom",vv:"16px",ts:0,bs:"simple",av:0,ic:1},We=e=>{const t=e=>/^-?\d+(?:px|%|rem|em){1}$/.test(e),n=e=>t=>e.includes(t),r=e=>[1,0].includes(e),o={ha:n(["left","right"]),hv:t,va:n(["top","bottom"]),vv:t,ts:r,bs:n(["simple","calloutBubble"]),av:r,ic:r};return Object.keys(e).reduce(((t,n)=>({...t,...o[n]&&o[n](e[n])?{[n]:e[n]}:{}})),{})},Ue=function(){const e={...qe,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},t={};return e.va&&(t[e.va]=e.vv),e.ha&&(t[e.ha]=e.hv),{launcherStyles:t,buttonStyle:e.bs||"",includeAvatar:e.av||0,topScroll:e.ts||0,isCollapsible:!!e.ic}},He=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Ue(We(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e);return t?Ve(n):n};var Qe,Ge,Ke,Ye,Xe,Je;!function(e){e.AuthRequest="auth_request",e.Form="form",e.FormNoResponse="form_no_response",e.Idk="idk",e.Knowledgebase="kb",e.NoIntent="noIntent",e.Search="search",e.Slot="slot",e.Smalltalk="smalltalk",e.Suggestion="suggestion",e.WatchVideo="watchvideo",e.Welcome="welcome",e.OptInOptOutNoResponse="opt_in_opt_out_no_response"}(Qe||(Qe={})),function(e){e.OcelotAdmin="ocelotRead",e.Client="clientRead"}(Ge||(Ge={})),function(e){e.OperatorTurn="livechat:operator",e.ClientTurn="livechat:client",e.QueueTurn="livechat:queue",e.CampaignBotTurn="campaign:bot",e.CampaignOperatorTurn="campaign:operator",e.CampaignClientTurn="campaign:client"}(Ke||(Ke={})),function(e){e.Web="web",e.CampaignSMS="campaign_sms",e.CampaignEmail="campaign_email",e.CampaignUnsolicitedSms="campaign_unsolicited_sms",e.InboundSMS="inbound_sms"}(Ye||(Ye={})),function(e){e.SendResponse="SendResponse",e.Callback="Callback"}(Xe||(Xe={})),function(e){e.Ai="ai",e.LiveChat="livechat",e.Campaign="campaign"}(Je||(Je={}));const et="Answer question";var tt;!function(e){e.AnswerQuestions="Answer Question(s)",e.ExitChatbot="Exit Chatbot",e.SkipQuestions="Skip Question(s)"}(tt||(tt={}));tt.AnswerQuestions,tt.ExitChatbot,tt.AnswerQuestions,tt.SkipQuestions,tt.AnswerQuestions.toLowerCase(),tt.SkipQuestions.toLowerCase();const nt=[tt.ExitChatbot.toLowerCase(),"exit","no"];var rt;!function(e){e.Default="Default",e.On="On",e.Off="Off"}(rt||(rt={}));var ot=o(6325),at=o.n(ot);const it=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,st=e=>e.substring(1,e.length-1),lt=(e,t=!0,n="",r="")=>e.split(it).map((e=>{if(!e.match(it))return e;const t=st(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}})(st(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})),ct=/^\{.*\}$/,ut=/\?\?/g,dt=(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 o;case"many":return a;default:return i}})(t,e,i))||"").replace(ut,i);const s=a.length?((e,t,n)=>t.reduce(((t,n)=>{var r,o;return null!==(o=n.match(ct)?(()=>{var e;const r=Object.fromEntries(st(n).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)),[]));return null!==(e=r[t])&&void 0!==e?e:r["*"]})():null===(r=e[n])||void 0===r?void 0:r.call(e,t))&&void 0!==o?o:t}),n))(n,a,i):i;return(""+(null!=s?s:"")).trim()})).join(""),pt=(e,t)=>e[t]||(e[t]=lt(t)),ft=(e,t)=>{const n={},r=new Intl.PluralRules(e);return(e,...o)=>((e,t,n,r)=>{const o=r[0],a=o&&"object"==typeof o&&o.constructor===Object,i=1===r.length&&a?o:r;return dt(e,t,n,i)})(pt(n,e),r,t,o)};const ht=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty((()=>""),"name",{writable:!0}),e),mt=(e,t)=>new Proxy(ht(e,t),{get:(e,n)=>n===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map((e=>ht(e,t)))):mt(e[n],t)});var vt=e=>!!e,gt=(e,t,...n)=>{for(let e of n){let n=yt(t,e);if(n)return n}return e},yt=(e,t)=>{let n=t().map((e=>e.toLowerCase())),r=(e=>Array.from(new Set(e)))(n.flatMap((e=>[e,e.split("-")[0]]))),o=e.map((e=>e.toLowerCase()));return r.map((t=>{let n=o.findIndex((e=>e===t));return n>=0&&e[n]})).find(vt)},bt=(((e="lang")=>{})(),e=>!!e),Et=((e="lang")=>()=>{var t;return[null==(t=null==window?void 0:window.localStorage)?void 0:t.getItem(e)].filter(bt)})(),wt=(((e="lang")=>{})(),e=>!!e),xt=(((e="lang")=>{})(),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}),St=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))},kt="en",Ct=["en","es","vi","zh-hans"],Ot=function(e){return Ct.includes(e)},Tt={},_t={},Rt=function(e){return function(e,t,n={}){return mt(t,ft(e,n))}(e,Tt[e],_t[e])};class Pt{constructor(){this._data=new Map}setItem(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._data.set(e,t)}getItem(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._data.get(e)}removeItem(e){this._data.delete(e)}clear(){this._data.clear()}}const It=new class{constructor(){try{var e,t;this._storage=null!==(e=window)&&void 0!==e&&e.sessionStorage?null===(t=window)||void 0===t?void 0:t.sessionStorage:new Pt}catch(e){this._storage=new Pt}}getItem(e){try{const t=this._storage.getItem(e);return JSON.parse(t)}catch(t){return console.warn("SessionStorage: Failed to get key",e),null}}setItem(e,t){try{const n=JSON.stringify(t);this._storage.setItem(e,n)}catch(t){console.warn("SessionStorage: Failed to set key",e)}}removeItem(e){try{this._storage.removeItem(e)}catch(t){console.warn("SessionStorage: Failed to remove key",e)}}clear(){try{this._storage.clear()}catch(e){console.warn("SessionStorage: Failed to clear storage")}}},Nt=(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):(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"))}));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()},At=e=>{const t=document.createElement("a");return t.href=e,t.hostname},Lt=(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},Dt=(e,t)=>t in e?e[t]:e.text,Mt=(e,t)=>Lt(((e,t)=>{if("string"==typeof e)return e;if(!("type"in e))return Dt(e,t);switch(e.type){case Xe.SendResponse:case Xe.Callback:return Dt(e,t);default:return console.error(`getActionLabel: unknown action type "${e.type}"`),""}})(e,t),t),Zt=e=>(e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,r)=>t+t+n+n+r+r)),e),Ft=(e,t,n)=>{const r=[e,t,n].map((e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*r[0]+.7152*r[1]+.0722*r[2]},jt=e=>{const t=(e=>{e=Zt(e);const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null})(e),n=Ft(t.r,t.g,t.b),r=Ft(255,255,255);return(n>r?(r+.05)/(n+.05):(n+.05)/(r+.05))<1/4.5},$t=(e,t)=>{const n=Zt(e);let r=parseInt(n.substring(0,2),16),o=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);r=parseInt(r*(100+t)/100,10),o=parseInt(o*(100+t)/100,10),a=parseInt(a*(100+t)/100,10),r=r<255?r:255,o=o<255?o:255,a=a<255?a:255;return`${1===r.toString(16).length?`0${r.toString(16)}`:r.toString(16)}${1===o.toString(16).length?`0${o.toString(16)}`:o.toString(16)}${1===a.toString(16).length?`0${a.toString(16)}`:a.toString(16)}`},Bt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(10===t)return e;if(jt(e))return e;const n=$t(e,-10);return Bt(n,t+1)};var zt,Vt,qt=function(e){return{type:"AUTH_SET_TOKEN",token:e}},Wt=function(e){return{type:"AUTH_SET_DATA",data:e}};!function(e){e.AUTH_SET_TOKEN="AUTH_SET_TOKEN",e.AUTH_SET_DATA="AUTH_SET_DATA"}(zt||(zt={})),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"}(Vt||(Vt={}));const Ut=e=>({type:"REPLACE_MESSAGES",messages:e}),Ht=e=>({type:"UPDATE_CONVERSATION_CONTEXT",context:e}),Qt=e=>({type:"SEND_MESSAGE",text:e}),Gt=(e,t)=>({type:"RECEIVE_MESSAGE",data:e,messageType:t,receivedAt:Date.now()}),Kt=e=>({type:"TYPING_RESPONSE",state:e}),Yt=e=>t=>{var n;e&&t({type:"READ_MESSAGES",state:n}),t({type:"TOGGLE_DISPLAY",open:e})},Xt=e=>({type:"SET_PLACEHOLDER",placeholder:e}),Jt=()=>({type:"RESET_PLACEHOLDER"}),en=e=>(t,n)=>{const r=Rt(n().language),o=e||r.UNKNOWN_OPERATOR();t(Gt({output:{text:r.LIVECHAT_CONNECTED({operator:o}),resources:[],actions:[]},startTime:new Date},"system")),t({type:"UPDATE_LIVE_CHAT_ASSIGNEE",assignee:o})},tn=e=>(t,n)=>{const r=Rt(n().language);t(Gt({output:{text:r.LIVECHAT_OFFICE_CHANGED({office:e}),resources:[],actions:[]},startTime:new Date},"system"))},nn=(e,t)=>n=>{n({type:"TOGGLE_LIVE_CHAT",status:e}),!0===e&&t&&n(en(t))},rn=e=>(t,n)=>{const{messages:{liveChat:r,liveChatConnected:o}}=n();r&&e!==o&&t({type:"TOGGLE_LIVE_CHAT_CONNECTED",status:e})},on=e=>(t,n)=>{const{chatbotUi:r}=n(),{messageType:o,message:a,actions:i,operatorAvatarUrl:s,operatorName:l,resources:c}=e;var u;t(Kt(!1)),t(Gt({output:{text:a,resources:c,actions:i||[]},operatorName:l,operatorAvatar:s},o||Ke.OperatorTurn)),r.open||t({type:"NEW_UNREAD_MESSAGE",state:u})},an=(e,t,n)=>({output:{text:t,resources:[],actions:[{type:Xe.Callback,callback:()=>Nt(e),text:{en:n.YES()}},{type:Xe.SendResponse,text:{en:n.NO()}}]}}),sn=e=>(t,n)=>{const{chatbotUi:r}=n(),{configPlaceholder:o}=r;return t(Xt(o)),t({type:"CLEAR_HISTORY",context:e||{}})},ln=(e,t,n,r)=>{const o=Rt(r.language);return{output:{text:e,resources:[],actions:[{type:Xe.Callback,callback:t,text:{en:o.YES()}},{type:Xe.Callback,callback:n,text:{en:o.NO()}}]}}},cn=(e,t,n)=>{n(sn(t||{})),window.location.href=e},un=e=>(t,n)=>{const{messages:r,language:o}=n(),a=Rt(o),i=null==r.liveChatAssignee,s=i?a.LIVECHAT_LEFT_QUEUE({bot:e.name}):`${a.LIVECHAT_AGENT_LEFT({operator:r.liveChatAssignee})} ${a.LIVECHAT_BOT_SPEAKING({bot:e.name})}`;t(nn(!1)),t(Kt(!1)),t(Gt({output:{text:s,resources:[],actions:[]},startTime:new Date},"system")),i||(t(Gt(an(e.name,`<p>${a.IM_BACK()}</p>\n           <p>${a.DOWNLOAD_TRANSCRIPT_QUESTION()}</p>`,a))),t(Ht({})),t({type:"UPDATE_LIVE_CHAT_ASSIGNEE",assignee:null}))},dn=e=>({type:"OPEN_FEEDBACK_DIALOG",open:e}),pn=e=>({type:"FEEDBACK_PROMPT_OPEN",open:e}),fn=e=>({type:"FEEDBACK_PROMPT_SHOWN",open:e}),hn=e=>({type:"CHANGE_LANGUAGE",lang:e}),mn=(e,t)=>{fetch("https://ai.ocelotbot.com/api/click-track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,chatbotId:t})})},vn=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{retrying:!1},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return(i,s)=>{const l=Rt(s().language);if(t){o.retrying||i(Qt(t));const c=(e,t)=>{e&&clearTimeout(e);const{messages:{typingResponse:n}}=s();n?setTimeout((()=>{i(Kt(!1)),t()}),250):t()},u=s(),{origin:d,pathname:p}=window.location,f={"Content-Type":"application/json","X-Referer":d+p};u.clientAuthToken.clientToken?f["Client-Auth-Token"]=u.clientAuthToken.clientToken:u.auth.token&&(f["X-Auth-Token"]=u.auth.token);const h=!u.messages.liveChat&&setTimeout((()=>i(Kt(!0))),750);fetch("https://ai.ocelotbot.com/api/message",{method:"POST",headers:f,body:JSON.stringify({key:e,input:{text:t,meta:a,language:n},language:u.language,context:{...u.conversationState,campus_id:u.userPrefs.campusId,office_id:u.userPrefs.officeId}})}).then((e=>e.json())).then((s=>"UnauthorizedError"===s.name?(i(qt("")),i(Wt({})),It.removeItem("botauth:sso:tok"),c(h,(()=>o.retrying?i(Gt({output:{text:[l.SESSION_EXPIRED()],resources:[],actions:[]}})):i(vn(e,t,n,r,{...o,retrying:!0},a))))):c(h,(()=>{var e,t;u.auth.token||null===(e=s.context.auth)||void 0===e||!e.uri||null!==(t=s.context.auth)&&void 0!==t&&t.original_question?(i(Gt(s)),s.context.formcomplete&&(i(Gt(an(r.name,`${l.DOWNLOAD_TRANSCRIPT_QUESTION()}`,l))),delete s.context.formcomplete),!s.context.formComplete&&!s.context.formcomplete||s.context.formStarted||i(Jt()),s.context.formStarted&&i(Xt(et)),i(Ht(s.context)),s.context.livechat_approved&&!u.messages.liveChat&&i(nn(!0,s.context.livechat_initial_operator)),s.language&&s.language!==u.language&&i(hn(s.language))):cn(s.context.auth.uri,r.context,i)})))).catch((e=>{console.error("Error occurred when sending a message",e),c(h,(()=>{i(Gt({output:{text:[l.API_FAILED()],resources:[],actions:[]}}))}))}))}}},gn=()=>({type:"CLEAR_FEEDBACK"}),yn=(e,t)=>(n,r)=>{const o=r(),a=Rt(o.language);return fetch("https://ai.ocelotbot.com/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:t,conversation_id:o.conversationState.conversation_id,...e})}).then((e=>{if(!e.ok)throw new Error;return e.json()})).then((t=>(at().set("feedback_ratings",e,{expires:30}),n((e=>({type:"FEEDBACK_SAVED_SUCCESSFULLY",data:e}))(t)),setTimeout((()=>{gn()}),5e3),t))).catch((()=>{at().set("feedback_ratings",e,{expires:1/24}),n(Gt({output:{text:[a.FEEDBACK_FAILED()],resources:[],actions:[]}}))})),{type:"SEND_FEEDBACK",ratingsData:e}},bn=()=>e=>{const t=It.getItem("botauth:sso:tok"),n=(e=>{try{const t=e.split(".")[1],n=atob(t);return JSON.parse(n)}catch(e){return null}})(t);n&&(e(qt(t)),e(Wt(n)))},En={SetBackdropOpen:"[explore] SET_BACKDROP_OPEN",SetBackdopTab:"[explore] SET_BACKDROP_TAB"},wn=e=>({type:En.SetBackdopTab,tabIndex:e}),xn=e=>({type:"CLIENT_AUTH_SET_TOKEN",clientToken:e});var Sn=o(2883),kn=o.n(Sn);const Cn="redux-responsive/CALCULATE_RESPONSIVE_STATE";var On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn={extraSmall:480,small:768,medium:992,large:1200},_n="infinity",Rn=null,Pn=function(e,t){var n={};return Object.keys(e).forEach((function(r){return t(n,e[r],r)})),n};function In(e,t){return Pn(t,(function(t,n,r){t[r]=r===e}))}function Nn(e,t){var n=t[e];return Pn(t,(function(e,r,o){e[o]="number"==typeof r&&n>t[o]}))}var An="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 Ln(e,t){return"function"==typeof e.getIn?e.getIn(t):t.reduce((function(e,t){return e[t]}),e)}function Dn(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=Ln(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":An(a)))return a.v}return!1}const Mn=function(e){var t=e.getState(),n=Dn(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 Ln(t,n).breakpoints},Zn=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:Cn,innerWidth:t,innerHeight:n,matchMedia:r}}(n))},a=kn().asObject(Mn(t));Object.keys(a).forEach((function(e){n.matchMedia(a[e]).addListener((function(e){e.matches&&o()}))})),n.addEventListener("orientationchange",o),r&&o()};var Fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialMediaType,r=t.infinity,o=void 0===r?_n:r,a=t.extraFields,i=void 0===a?function(){return{}}:a;e||(e=Tn),e[o]=1/0;var s=kn().asObject(e),l=function(e){var t=Object.keys(e).sort((function(t,n){var r=e[t],o=e[n];return"number"==typeof r&&"string"==typeof o?-1:"number"==typeof o&&"string"==typeof r||r>=o?1:-1}));return Pn(e,(function(e,n,r){var o=t.indexOf(r);-1!==o&&(e[r]=o)}))}(e);return function(t,r){var a,c,u,d=r.type,p=r.matchMedia;if(d===Cn||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,s,o),h=function(e){if(void 0===e)return Rn;var t={portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};return Object.keys(t).reduce((function(n,r){return e(t[r]).matches?r:n}),Rn)}(p),m={_responsiveState:!0,lessThan:(a=f,c=l,u=c[a],Pn(c,(function(e,t,n){"number"==typeof t&&c[n]?e[n]=u<c[n]:e[n]=!1}))),greaterThan:Nn(f,l),is:In(f,e),mediaType:f,orientation:h,breakpoints:e};return On({},m,i(m))}return t}},jn=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&&Zn({store:n,window,calculateInitialState:t}),n}}},$n=Fn(),Bn=jn(),zn=function(){return zn=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},zn.apply(this,arguments)},Vn={token:void 0,data:void 0};var qn=function(){return qn=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},qn.apply(this,arguments)},Wn="Ask a question";const Un=()=>({backdropOpen:!1,backdropTab:null}),Hn="suggestions",Qn="videos",Gn="links",Kn=e=>{const t=e.messages.items,n=t.filter((e=>!0===e.highlight));if(n.length>0){const[e]=n.filter((e=>"user"!==e.type));if(e&&e.explore)return e.explore}else{const[e]=[...t].reverse();if(e&&e.explore){const{links:t=[],suggestions:n=[],videos:r=[]}=e.explore;return{links:t,suggestions:n,videos:r}}}},Yn=e=>e.explore&&e.explore.backdropTab,Xn={getBackdropOpen:e=>e.explore&&e.explore.backdropOpen,getBackdropTab:Yn,getExploreResults:Kn,getExploreContent:e=>{const t=Yn(e),{links:n=[],suggestions:r=[],videos:o=[]}=Kn(e)||{};return[{type:Hn,suggestions:r},{type:Qn,videos:o},{type:Gn,links:n}][t]}},Jn=e=>{at().set("hasFeedbackPromptOpened",e,{expires:3})},er=e=>({showRatingDialog:!1,openSnackbar:!1,hasFeedbackPromptOpened:e||at().get("hasFeedbackPromptOpened")||!1,conversationId:"",score:"",additionalFeedback:"",status:"",displayThanksNotification:!1}),tr=()=>({unread:0,liveChat:!1,liveChatConnected:!1,liveChatReconnecting:!1,liveChatHasDisconnected:!1,isCampaign:!1,liveChatAssignee:null,fresh:!1,items:[],outstanding:!1,typingResponse:!1}),nr={calloutBubbleOpen:!0},rr={clientToken:null},or={key:null},ar={name:void 0,avatar:void 0},ir=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:L.INIT}))throw new Error(I(12));if(void 0===n(void 0,{type:L.PROBE_UNKNOWN_ACTION()}))throw new Error(I(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(I(14))}o[l]=d,r=r||d!==u}return(r=r||i.length!==Object.keys(e).length)?o:e}}({auth:function(e,t){switch(void 0===e&&(e=Vn),t.type){case zt.AUTH_SET_TOKEN:return zn(zn({},e),{token:t.token});case zt.AUTH_SET_DATA:return zn(zn({},e),{data:t.data});default:return e}},browser:$n,chatbotUi:function(e,t){switch(void 0===e&&(e={open:!1,showViewMoreButton:!1,configPlaceholder:Wn,placeholder:Wn,conversationStarted:!1}),t.type){case Vt.TOGGLE_DISPLAY:return qn(qn({},e),{open:t.open});case Vt.CONFIGURE_PLACEHOLDER:return qn(qn({},e),{configPlaceholder:t.placeholder,placeholder:t.placeholder});case Vt.SET_PLACEHOLDER:return qn(qn({},e),{placeholder:t.placeholder});case Vt.RESET_PLACEHOLDER:return qn(qn({},e),{placeholder:Wn});case Vt.SET_CONVERSATION_STARTED:return qn(qn({},e),{conversationStarted:t.conversationStarted});default:return e}},explore:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Un(),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SEND_MESSAGE":case"TOGGLE_DISPLAY":case"CLEAR_HISTORY":return{...e,backdropOpen:!1};case En.SetBackdropOpen:return{...e,backdropOpen:t.open};case En.SetBackdopTab:return{...e,backdropOpen:t.tabIndex!==e.backdropTab||!e.backdropOpen,backdropTab:t.tabIndex};default:return e}},feedback:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er(),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_FEEDBACK_DIALOG":return{...e,showRatingDialog:t.open};case"FEEDBACK_PROMPT_OPEN":return{...e,openSnackbar:t.open};case"FEEDBACK_PROMPT_SHOWN":return Jn(t.open),{...e,hasFeedbackPromptOpened:t.open};case"SEND_FEEDBACK":return{...e,...t.data};case"FEEDBACK_SAVED_SUCCESSFULLY":return{...e,...t.data,displayThanksNotification:!0};case"CLEAR_FEEDBACK":return er(!0);default:return e}},language:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=arguments.length>1?arguments[1]:void 0;return"CHANGE_LANGUAGE"===t.type?t.lang:e},messages:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tr(),n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"SEND_MESSAGE":return{...t,outstanding:!0,items:[...t.items,{type:"user",output:n.text}]};case"RECEIVE_MESSAGE":return{...t,fresh:!0,outstanding:!1,isLeadCaptureComplete:null===(e=n.data.context)||void 0===e?void 0:e.formComplete,items:[...t.items,{id:n.data.id||null,type:n.messageType||"watson",auth:n.data.context?n.data.context.auth:null,output:n.data.output.text,resources:n.data.output.resources,actions:n.data.output.actions,nid:n.data.output.nid||null,convoType:n.data.type,explore:n.data.context?n.data.context.explore:null,operatorAvatar:n.data.operatorAvatar,operatorName:n.data.operatorName,startTime:n.data.startTime||null}]};case"TYPING_RESPONSE":return{...t,typingResponse:n.state};case"REPLACE_MESSAGES":return{...t,items:n.messages};case"CLEAR_HISTORY":return tr();case"TOGGLE_LIVE_CHAT":return{...t,liveChat:n.status};case"TOGGLE_LIVE_CHAT_CONNECTED":return{...t,liveChatConnected:n.status,liveChatReconnecting:!1,liveChatHasDisconnected:!n.status||t.liveChatHasDisconnected};case"TOGGLE_LIVE_CHAT_RECONNECTING":return{...t,liveChatReconnecting:n.status};case"TOGGLE_CAMPAIGN":return{...t,isCampaign:n.isCampaign};case"UPDATE_LIVE_CHAT_ASSIGNEE":return{...t,liveChatAssignee:n.assignee};case"NEW_UNREAD_MESSAGE":return{...t,unread:t.unread+1};case"READ_MESSAGES":return{...t,unread:0};default:return t}},userPrefs:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_CALLOUT_BUBBLE_STATUS":return{...e,calloutBubbleOpen:t.open};case"SET_CAMPUS_OFFICE_PREFERENCE":return{...e,campusId:t.campusId,officeId:t.officeId};default:return e}},conversationState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_CONVERSATION_CONTEXT":return t.context;case"CLEAR_HISTORY":return t.context||{};default:return e}},clientAuthToken:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rr,t=arguments.length>1?arguments[1]:void 0;return"CLIENT_AUTH_SET_TOKEN"===t.type?{...e,clientToken:t.clientToken}:e},configOverrides:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CONFIG_OVERRIDES":return{...e,name:t.name,avatar:t.avatar};case"RESET_CONFIG_OVERRIDES":return ar;default:return e}},key:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:or,t=arguments.length>1?arguments[1]:void 0;return"SET_KEY"===t.type?{...e,key:t.key}:e}}),sr=ir;var lr=o(9913),cr=o.n(lr);"object"==typeof navigator&&navigator.userAgent&&navigator.userAgent.includes("jsdom"),"object"==typeof process&&!!process.versions&&process.versions.node;const ur="object"==typeof window&&"object"==typeof document&&9===document.nodeType;var dr=o(8129);var pr=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}(),fr=Math.abs,hr=String.fromCharCode,mr=Object.assign;function vr(e){return e.trim()}function gr(e,t,n){return e.replace(t,n)}function yr(e,t){return e.indexOf(t)}function br(e,t){return 0|e.charCodeAt(t)}function Er(e,t,n){return e.slice(t,n)}function wr(e){return e.length}function xr(e){return e.length}function Sr(e,t){return t.push(e),e}var kr=1,Cr=1,Or=0,Tr=0,_r=0,Rr="";function Pr(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:kr,column:Cr,length:i,return:""}}function Ir(e,t){return mr(Pr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Nr(){return _r=Tr>0?br(Rr,--Tr):0,Cr--,10===_r&&(Cr=1,kr--),_r}function Ar(){return _r=Tr<Or?br(Rr,Tr++):0,Cr++,10===_r&&(Cr=1,kr++),_r}function Lr(){return br(Rr,Tr)}function Dr(){return Tr}function Mr(e,t){return Er(Rr,e,t)}function Zr(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 Fr(e){return kr=Cr=1,Or=wr(Rr=e),Tr=0,[]}function jr(e){return Rr="",e}function $r(e){return vr(Mr(Tr-1,Vr(91===e?e+2:40===e?e+1:e)))}function Br(e){for(;(_r=Lr())&&_r<33;)Ar();return Zr(e)>2||Zr(_r)>3?"":" "}function zr(e,t){for(;--t&&Ar()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return Mr(e,Dr()+(t<6&&32==Lr()&&32==Ar()))}function Vr(e){for(;Ar();)switch(_r){case e:return Tr;case 34:case 39:34!==e&&39!==e&&Vr(_r);break;case 40:41===e&&Vr(e);break;case 92:Ar()}return Tr}function qr(e,t){for(;Ar()&&e+_r!==57&&(e+_r!==84||47!==Lr()););return"/*"+Mr(t,Tr-1)+"*"+hr(47===e?e:Ar())}function Wr(e){for(;!Zr(Lr());)Ar();return Mr(e,Tr)}var Ur="-ms-",Hr="-moz-",Qr="-webkit-",Gr="comm",Kr="rule",Yr="decl",Xr="@import",Jr="@keyframes";function eo(e,t){for(var n="",r=xr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function to(e,t,n,r){switch(e.type){case Xr:case Yr:return e.return=e.return||e.value;case Gr:return"";case Jr:return e.return=e.value+"{"+eo(e.children,r)+"}";case Kr:e.value=e.props.join(",")}return wr(n=eo(e.children,r))?e.return=e.value+"{"+n+"}":""}function no(e){return jr(ro("",null,null,null,[""],e=Fr(e),0,[0],e))}function ro(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,v=1,g=1,y=0,b="",E=o,w=a,x=r,S=b;v;)switch(h=y,y=Ar()){case 40:if(108!=h&&58==br(S,d-1)){-1!=yr(S+=gr($r(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=$r(y);break;case 9:case 10:case 13:case 32:S+=Br(h);break;case 92:S+=zr(Dr()-1,7);continue;case 47:switch(Lr()){case 42:case 47:Sr(ao(qr(Ar(),Dr()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=wr(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:f>0&&wr(S)-d&&Sr(f>32?io(S+";",r,n,d-1):io(gr(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Sr(x=oo(S,t,n,c,u,o,s,b,E=[],w=[],d),a),123===y)if(0===u)ro(S,t,x,x,E,a,d,s,w);else switch(99===p&&110===br(S,3)?100:p){case 100:case 109:case 115:ro(e,x,x,r&&Sr(oo(e,x,x,0,0,o,s,b,o,E=[],d),w),o,w,d,s,r?E:w);break;default:ro(S,x,x,x,[""],w,0,s,w)}}c=u=f=0,m=g=1,b=S="",d=i;break;case 58:d=1+wr(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Nr())continue;switch(S+=hr(y),y*m){case 38:g=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(wr(S)-1)*g,g=1;break;case 64:45===Lr()&&(S+=$r(Ar())),p=Lr(),u=d=wr(b=S+=Wr(Dr())),y++;break;case 45:45===h&&2==wr(S)&&(m=0)}}return a}function oo(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],f=xr(p),h=0,m=0,v=0;h<r;++h)for(var g=0,y=Er(e,d+1,d=fr(m=i[h])),b=e;g<f;++g)(b=vr(m>0?p[g]+" "+y:gr(y,/&\f/g,p[g])))&&(l[v++]=b);return Pr(e,t,n,0===o?Kr:s,l,c,u)}function ao(e,t,n){return Pr(e,t,n,Gr,hr(_r),Er(e,2,-2),0)}function io(e,t,n,r){return Pr(e,t,n,Yr,Er(e,0,r),Er(e,r+1,-1),r)}var so=function(e,t,n){for(var r=0,o=0;r=o,o=Lr(),38===r&&12===o&&(t[n]=1),!Zr(o);)Ar();return Mr(e,Tr)},lo=function(e,t){return jr(function(e,t){var n=-1,r=44;do{switch(Zr(r)){case 0:38===r&&12===Lr()&&(t[n]=1),e[n]+=so(Tr-1,t,n);break;case 2:e[n]+=$r(r);break;case 4:if(44===r){e[++n]=58===Lr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=hr(r)}}while(r=Ar());return e}(Fr(e),t))},co=new WeakMap,uo=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)||co.get(n))&&!r){co.set(e,!0);for(var o=[],a=lo(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]}}},po=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function fo(e,t){switch(function(e,t){return 45^br(e,0)?(((t<<2^br(e,0))<<2^br(e,1))<<2^br(e,2))<<2^br(e,3):0}(e,t)){case 5103:return Qr+"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 Qr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qr+e+Hr+e+Ur+e+e;case 6828:case 4268:return Qr+e+Ur+e+e;case 6165:return Qr+e+Ur+"flex-"+e+e;case 5187:return Qr+e+gr(e,/(\w+).+(:[^]+)/,Qr+"box-$1$2"+Ur+"flex-$1$2")+e;case 5443:return Qr+e+Ur+"flex-item-"+gr(e,/flex-|-self/,"")+e;case 4675:return Qr+e+Ur+"flex-line-pack"+gr(e,/align-content|flex-|-self/,"")+e;case 5548:return Qr+e+Ur+gr(e,"shrink","negative")+e;case 5292:return Qr+e+Ur+gr(e,"basis","preferred-size")+e;case 6060:return Qr+"box-"+gr(e,"-grow","")+Qr+e+Ur+gr(e,"grow","positive")+e;case 4554:return Qr+gr(e,/([^-])(transform)/g,"$1"+Qr+"$2")+e;case 6187:return gr(gr(gr(e,/(zoom-|grab)/,Qr+"$1"),/(image-set)/,Qr+"$1"),e,"")+e;case 5495:case 3959:return gr(e,/(image-set\([^]*)/,Qr+"$1$`$1");case 4968:return gr(gr(e,/(.+:)(flex-)?(.*)/,Qr+"box-pack:$3"+Ur+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qr+e+e;case 4095:case 3583:case 4068:case 2532:return gr(e,/(.+)-inline(.+)/,Qr+"$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(wr(e)-1-t>6)switch(br(e,t+1)){case 109:if(45!==br(e,t+4))break;case 102:return gr(e,/(.+:)(.+)-([^]+)/,"$1"+Qr+"$2-$3$1"+Hr+(108==br(e,t+3)?"$3":"$2-$3"))+e;case 115:return~yr(e,"stretch")?fo(gr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==br(e,t+1))break;case 6444:switch(br(e,wr(e)-3-(~yr(e,"!important")&&10))){case 107:return gr(e,":",":"+Qr)+e;case 101:return gr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qr+(45===br(e,14)?"inline-":"")+"box$3$1"+Qr+"$2$3$1"+Ur+"$2box$3")+e}break;case 5936:switch(br(e,t+11)){case 114:return Qr+e+Ur+gr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qr+e+Ur+gr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qr+e+Ur+gr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qr+e+Ur+e+e}return e}var ho=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Yr:e.return=fo(e.value,e.length);break;case Jr:return eo([Ir(e,{value:gr(e.value,"@","@"+Qr)})],r);case Kr: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 eo([Ir(e,{props:[gr(t,/:(read-\w+)/,":"+Hr+"$1")]})],r);case"::placeholder":return eo([Ir(e,{props:[gr(t,/:(plac\w+)/,":"+Qr+"input-$1")]}),Ir(e,{props:[gr(t,/:(plac\w+)/,":"+Hr+"$1")]}),Ir(e,{props:[gr(t,/:(plac\w+)/,Ur+"input-$1")]})],r)}return""}))}}];const mo=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 r=e.stylisPlugins||ho;var o,a,i={},s=[];o=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++)i[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[to,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[uo,po].concat(r,p),u=xr(c),function(e,t,n,r){for(var o="",a=0;a<u;a++)o+=c[a](e,t,n,r)||"";return o});a=function(e,t,n,r){l=n,function(e){eo(no(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new pr({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:a};return h.sheet.hydrate(s),h};var vo=o(2879);const go=mo({key:"css",prepend:!0});function yo(e){const{injectFirst:t,children:n}=e;return t?(0,vo.jsx)(dr.C,{value:go,children:n}):n}var bo=o(8970),Eo=o(6666),wo=o(198);const xo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const So=function(t){const{children:n,theme:r}=t,o=(0,wo.Z)(),a=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return(0,bo.Z)({},e,t)}(o,r);return null!=e&&(e[xo]=null!==o),e}),[r,o]);return(0,vo.jsx)(Eo.Z.Provider,{value:a,children:n})};var ko=o(8784);function Co(e){const t=(0,ko.Z)();return(0,vo.jsx)(dr.T.Provider,{value:"object"==typeof t?t:{},children:e.children})}const Oo=function(e){const{children:t,theme:n}=e;return(0,vo.jsx)(So,{theme:n,children:(0,vo.jsx)(Co,{children:t})})};var To=o(7086),_o="-ms-",Ro="-moz-",Po="-webkit-",Io="rule",No="decl",Ao="@keyframes",Lo=(Math.abs,String.fromCharCode,Object.assign);function Do(e,t){return(e=t.exec(e))?e[0]:e}function Mo(e,t,n){return e.replace(t,n)}function Zo(e,t){return e.indexOf(t)}function Fo(e,t){return 0|e.charCodeAt(t)}var jo=1,$o=1;function Bo(e,t){return Lo(function(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:jo,column:$o,length:i,return:""}}("",null,null,"",null,null,0),e,{length:-e.length},t)}function zo(e,t){for(var n="",r=e.length,o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Vo(e,t,n){switch(function(e,t){return(((t<<2^Fo(e,0))<<2^Fo(e,1))<<2^Fo(e,2))<<2^Fo(e,3)}(e,t)){case 5103:return Po+"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 Po+e+e;case 4789:return Ro+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Po+e+Ro+e+_o+e+e;case 6828:case 4268:return Po+e+_o+e+e;case 6165:return Po+e+_o+"flex-"+e+e;case 5187:return Po+e+Mo(e,/(\w+).+(:[^]+)/,Po+"box-$1$2"+_o+"flex-$1$2")+e;case 5443:return Po+e+_o+"flex-item-"+Mo(e,/flex-|-self/g,"")+(Do(e,/flex-|baseline/)?"":_o+"grid-row-"+Mo(e,/flex-|-self/g,""))+e;case 4675:return Po+e+_o+"flex-line-pack"+Mo(e,/align-content|flex-|-self/g,"")+e;case 5548:return Po+e+_o+Mo(e,"shrink","negative")+e;case 5292:return Po+e+_o+Mo(e,"basis","preferred-size")+e;case 6060:return Po+"box-"+Mo(e,"-grow","")+Po+e+_o+Mo(e,"grow","positive")+e;case 4554:return Po+Mo(e,/([^-])(transform)/g,"$1"+Po+"$2")+e;case 6187:return Mo(Mo(Mo(e,/(zoom-|grab)/,Po+"$1"),/(image-set)/,Po+"$1"),e,"")+e;case 5495:case 3959:return Mo(e,/(image-set\([^]*)/,Po+"$1$`$1");case 4968:return Mo(Mo(e,/(.+:)(flex-)?(.*)/,Po+"box-pack:$3"+_o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Po+e+e;case 4200:if(!Do(e,/flex-|baseline/))return _o+"grid-column-align"+function(e,t,n){return e.slice(t,n)}(e,t)+e;break;case 2592:case 3360:return _o+Mo(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Do(e.props,/grid-\w+-end/)}))?~Zo(e+(n=n[t].value),"span")?e:_o+Mo(e,"-start","")+e+_o+"grid-row-span:"+(~Zo(n,"span")?Do(n,/\d+/):+Do(n,/\d+/)-+Do(e,/\d+/))+";":_o+Mo(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Do(e.props,/grid-\w+-start/)}))?e:_o+Mo(Mo(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Mo(e,/(.+)-inline(.+)/,Po+"$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(Fo(e,t+1)){case 109:if(45!==Fo(e,t+4))break;case 102:return Mo(e,/(.+:)(.+)-([^]+)/,"$1"+Po+"$2-$3$1"+Ro+(108==Fo(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Zo(e,"stretch")?Vo(Mo(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Mo(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,a,i,s){return _o+n+":"+r+s+(o?_o+n+"-span:"+(a?i:+i-+r)+s:"")+e}));case 4949:if(121===Fo(e,t+6))return Mo(e,":",":"+Po)+e;break;case 6444:switch(Fo(e,45===Fo(e,14)?18:11)){case 120:return Mo(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Po+(45===Fo(e,14)?"inline-":"")+"box$3$1"+Po+"$2$3$1"+_o+"$2box$3")+e;case 100:return Mo(e,":",":"+_o)+e}break;case 5936:switch(Fo(e,t+11)){case 114:return Po+e+_o+Mo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Po+e+_o+Mo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Po+e+_o+Mo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 2903:return Po+e+_o+e+e;case 5719:case 2647:case 2135:case 3927:case 2391:return Mo(e,"scroll-","scroll-snap-")+e}return e}var qo=o(9e3),Wo=o(2422),Uo=o(5837),Ho=o(330),Qo=(0,dr.w)((function(t,n){var r=t.styles,o=(0,Uo.O)([r],void 0,(0,e.useContext)(dr.T)),a=(0,e.useRef)();return(0,Ho.j)((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,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),t.hydrate([i])),a.current=[t,r],function(){t.flush()}}),[n]),(0,Ho.j)((function(){var e=a.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,Wo.My)(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 Go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,Uo.O)(t)}var Ko=function(){var e=Go.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 Yo(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,vo.jsx)(Qo,{styles:r})}var Xo=o(5303);const Jo=function(e){return(0,vo.jsx)(Yo,(0,qo.Z)({},e,{defaultTheme:Xo.Z}))},ea=e.createElement(Jo,{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"}})}),ta=e.forwardRef(((t,n)=>{let{children:r,environment:o,lang:a}=t;return e.createElement("div",{ref:n,className:"MaxAI",lang:a},"admin"!==o&&ea,e.createElement("div",null,r))}));ta.displayName="MaxAIWrapper",ta.propTypes={children:cr().oneOfType([cr().arrayOf(cr().node),cr().node]).isRequired,environment:cr().string,lang:cr().string.isRequired},ta.defaultProps={environment:"standard"};const na=ta;var ra=function(e,t){return ra=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])},ra(e,t)};function oa(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}ra(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aa=function(){return aa=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},aa.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 sa(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 la(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 ca(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;var ua=function(e,t){return ua=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])},ua(e,t)};Object.create;Object.create;var da="Invariant Violation",pa=Object.setPrototypeOf,fa=void 0===pa?function(e,t){return e.__proto__=t,e}:pa,ha=function(e){function t(n){void 0===n&&(n=da);var r=e.call(this,"number"==typeof n?da+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=da,fa(r,t.prototype),r}return function(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}ua(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function ma(e,t){if(!e)throw new ha(t)}var va=["debug","log","warn","error","silent"],ya=va.indexOf("log");function ba(e){return function(){if(va.indexOf(e)>=ya)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=ba("debug"),e.log=ba("log"),e.warn=ba("warn"),e.error=ba("error")}(ma||(ma={}));function Ea(e){try{return e()}catch(e){}}const wa=Ea((function(){return globalThis}))||Ea((function(){return window}))||Ea((function(){return self}))||Ea((function(){return global}))||Ea((function(){return Ea.constructor("return this")()}));var xa="__",Sa=[xa,xa].join("DEV");const ka=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(wa,Sa,{value:"production"!==Ea((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),wa[Sa]}}();function Ca(e){try{return e()}catch(e){}}var Oa=Ca((function(){return globalThis}))||Ca((function(){return window}))||Ca((function(){return self}))||Ca((function(){return global}))||Ca((function(){return Ca.constructor("return this")()})),Ta=!1;function _a(){Ta&&(delete Oa.process,Ta=!1)}function Ra(e,t){if(!Boolean(e))throw new Error(t)}!Oa||Ca((function(){return"production"}))||Ca((function(){return process}))||(Object.defineProperty(Oa,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Ta=!0);const Pa=10,Ia=2;function Na(e){return Aa(e,[])}function Aa(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:Aa(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Ia)return"[Array]";const n=Math.min(Pa,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(Aa(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>Ia)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+": "+Aa(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const La=function(e,t){return e instanceof t};class Da{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Ra(!1,`Body must be a string. Received: ${Na(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Ra(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ra(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Ma(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 Za(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 Za(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 Za(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 Fa(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 ja(e,t,n){return t&&Fa(e.prototype,t),n&&Fa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}_a(),__DEV__?ma("boolean"==typeof ka,ka):ma("boolean"==typeof ka,38);var $a=function(){return"function"==typeof Symbol},Ba=function(e){return $a()&&Boolean(Symbol[e])},za=function(e){return Ba(e)?Symbol[e]:"@@"+e};$a()&&!Ba("observable")&&(Symbol.observable=Symbol("observable"));var Va=za("iterator"),qa=za("observable"),Wa=za("species");function Ua(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Ha(e){var t=e.constructor;return void 0!==t&&null===(t=t[Wa])&&(t=void 0),void 0!==t?t:ri}function Qa(e){return e instanceof ri}function Ga(e){Ga.log?Ga.log(e):setTimeout((function(){throw e}))}function Ka(e){Promise.resolve().then((function(){try{e()}catch(e){Ga(e)}}))}function Ya(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Ua(t,"unsubscribe");n&&n.call(t)}}catch(e){Ga(e)}}function Xa(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Ja(e,t,n){e._state="running";var r=e._observer;try{var o=Ua(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(Xa(e),!o)throw n;o.call(r,n);break;case"complete":Xa(e),o&&o.call(r)}}catch(e){Ga(e)}"closed"===e._state?Ya(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 Ka((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Ja(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void Ja(e,t,n);e._queue.push({type:t,value:n})}}var ti=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new ni(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&&(Xa(this),Ya(this))},ja(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ni=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")},ja(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ri=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 ti(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(Ha(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(Ha(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=Ha(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=Ha(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=Ha(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[qa]=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=Ua(t,qa);if(r){var o=r.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return Qa(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(Ba("iterator")&&(r=Ua(t,Va)))return new n((function(e){Ka((function(){if(!e.closed){for(var n,o=Ma(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){Ka((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){Ka((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},ja(e,null,[{key:Wa,get:function(){return this}}]),e}();function oi(e){return null!==e&&"object"==typeof e}function ai(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new ha("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new ha(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?ma(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):ma(1===r.length,44),n=r[0].name.value),aa(aa({},e),{definitions:ca([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function ii(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function si(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 __DEV__?ma(r,"No fragment named ".concat(n)):ma(r,45),r||null;default:return null}}function li(e){return{__ref:String(e)}}function ci(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ui(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 ui(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 ui(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 __DEV__?new ha('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new ha(54);e[t.value]=null}}$a()&&Object.defineProperty(ri,Symbol("extensions"),{value:{symbol:qa,hostReportError:Ga},configurable:!0});var di=["connection","include","skip","client","rest","export"],pi=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(fi(o),")")}return n.connection.key}var a=e;if(t){var i=fi(t);a+="(".concat(i,")")}return n&&Object.keys(n).forEach((function(e){-1===di.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(fi(n[e]),")"):a+="@".concat(e))})),a}),{setStringify:function(e){var t=fi;return fi=e,t}}),fi=function(e){return JSON.stringify(e,hi)};function hi(e,t){return oi(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function mi(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return ui(n,r,o,t)})),n}return null}function vi(e){return e.alias?e.alias.value:e.name.value}function gi(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,o=t.selections;r<o.length;r++){var a=o[r];if(yi(a)){if("__typename"===a.name.value)return e[vi(a)]}else{var i=gi(e,si(a,n).selectionSet,n);if("string"==typeof i)return i}}}function yi(e){return"Field"===e.kind}function bi(e){return"InlineFragment"===e.kind}function Ei(e){__DEV__?ma(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ma(e&&"Document"===e.kind,46);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new ha('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new ha(47);return e}));return __DEV__?ma(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):ma(t.length<=1,48),e}function wi(e){return Ei(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function xi(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Si(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function ki(e){var t=wi(e);return __DEV__?ma(t&&"query"===t.operation,"Must contain a query definition."):ma(t&&"query"===t.operation,49),t}function Ci(e){var t;Ei(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 __DEV__?new ha("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new ha(53)}function Oi(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&ui(t,e.variable.name,e.defaultValue)})),t}function Ti(e,t){return t?t(e):ri.of()}function _i(e){return"function"==typeof e?new Ii(e):e}function Ri(e){return e.request.length<=1}var Pi=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return oa(t,e),t}(Error),Ii=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return ri.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(_i).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var o=_i(n),a=_i(r||new e(Ti));return Ri(o)&&Ri(a)?new e((function(e){return t(e)?o.request(e)||ri.of():a.request(e)||ri.of()})):new e((function(e,n){return t(e)?o.request(e,n)||ri.of():a.request(e,n)||ri.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=aa({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=aa(aa({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return aa({},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?xi(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 __DEV__?new ha("illegal argument: ".concat(o)):new ha(26)}return e}(t))))||ri.of()},e.concat=function(t,n){var r=_i(t);if(Ri(r))return __DEV__&&ma.warn(new Pi("You are calling concat on a terminating link, which will have no effect",r)),r;var o=_i(n);return Ri(o)?new e((function(e){return r.request(e,(function(e){return o.request(e)||ri.of()}))||ri.of()})):new e((function(e,t){return r.request(e,(function(e){return o.request(e,t)||ri.of()}))||ri.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Ti)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new ha("request is not implemented"):new ha(21)},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}();class Ni{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 Ai{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 Li={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"]},Di=new Set(Object.keys(Li));function Mi(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Di.has(t)}var Zi,Fi;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Zi||(Zi={})),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"}(Fi||(Fi={}));const ji=Object.freeze({});function $i(e,t,n=Li){const r=new Map;for(const e of Object.values(Fi))r.set(e,Bi(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;Mi(d)||Ra(!1,`Invalid AST Node: ${Na(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===ji)break;if(!1===y){if(!e){p.pop();continue}}else if(void 0!==y&&(u.push([a,y]),!e)){if(!Mi(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 Bi(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 zi(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;__DEV__?ma(n&&1===n.length,"Incorrect number of arguments for the @".concat(r," directive.")):ma(n&&1===n.length,40);var o=n[0];__DEV__?ma(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(r," directive.")):ma(o.name&&"if"===o.name.value,41);var a=o.value;__DEV__?ma(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(r," directive must be a variable or a boolean value.")):ma(a&&("Variable"===a.kind||"BooleanValue"===a.kind),42),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],__DEV__?ma(void 0!==o,"Invalid variable referenced in @".concat(n.name.value," directive.")):ma(void 0!==o,39)):o=r.value.value,"skip"===n.name.value?!o:o}))}function Vi(e,t,n){var r=new Set(e),o=r.size;return $i(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return ji}}),n?!r.size:r.size<o}function qi(e){return e&&Vi(["client","export"],e,!0)}var Wi=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new ha("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new ha(23);throw r.parseError=e,r}return n},Ui="function"==typeof WeakMap&&"ReactNative"!==Ea((function(){return navigator.product})),Hi="function"==typeof WeakSet,Qi="function"==typeof Symbol&&"function"==typeof Symbol.for,Gi=Qi&&Symbol.asyncIterator;Ea((function(){return window.document.createElement})),Ea((function(){return navigator.userAgent.indexOf("jsdom")>=0}));function Ki(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 Gi&&(c[Symbol.asyncIterator]=function(){return this}),c}function Yi(e){var t={next:function(){return e.read()}};return Gi&&(t[Symbol.asyncIterator]=function(){return this}),t}function Xi(e){var t,n,r,o=e;if(e.body&&(o=e.body),function(e){return!(!Gi||!e[Symbol.asyncIterator])}(o))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(o);if(function(e){return!!e.getReader}(o))return Yi(o.getReader());if(function(e){return!!e.stream}(o))return Yi(o.stream().getReader());if(function(e){return!!e.arrayBuffer}(o))return t=o.arrayBuffer(),n=!1,r={next:function(){return n?Promise.resolve({value:void 0,done:!0}):(n=!0,new Promise((function(e,n){t.then((function(t){e({value:t,done:!1})})).catch(n)})))}},Gi&&(r[Symbol.asyncIterator]=function(){return this}),r;if(function(e){return!!e.pipe}(o))return Ki(o);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Ji=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},es=Object.prototype.hasOwnProperty;function ts(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 ns(e,t){if(e.status>=300){Ji(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 rs(e,t){var n,r;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(n=t.next)||void 0===n||n.call(t,e.result)),null===(r=t.error)||void 0===r||r.call(t,e))}function os(e,t,n){var r;(r=t,function(e){return e.text().then((function(t){return ns(e,t)})).then((function(t){return e.status>=300&&Ji(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||es.call(t,"data")||es.call(t,"errors")||Ji(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map((function(e){return e.operationName})):r.operationName,"'.")),t}))})(e).then((function(e){var t,r;null===(t=n.next)||void 0===t||t.call(n,e),null===(r=n.complete)||void 0===r||r.call(n)})).catch((function(e){return rs(e,n)}))}function as(e){return 9===e||32===e}function is(e){return e>=48&&e<=57}function ss(e){return e>=97&&e<=122||e>=65&&e<=90}function ls(e){return ss(e)||95===e}function cs(e){return ss(e)||is(e)||95===e}function us(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=ds(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 ds(e){let t=0;for(;t<e.length&&as(e.charCodeAt(t));)++t;return t}const ps=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function fs(e){return hs[e.charCodeAt(0)]}const hs=["\\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"];function ms(e){return $i(e,vs)}const vs={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>gs(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=bs("(",gs(e.variableDefinitions,", "),")"),n=gs([e.operation,gs([e.name,t]),gs(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+bs(" = ",n)+bs(" ",gs(r," "))},SelectionSet:{leave:({selections:e})=>ys(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const a=bs("",e,": ")+t;let i=a+bs("(",gs(n,", "),")");return i.length>80&&(i=a+bs("(\n",Es(gs(n,"\n")),"\n)")),gs([i,gs(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+bs(" ",gs(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>gs(["...",bs("on ",e),gs(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${e}${bs("(",gs(n,", "),")")} on ${t} ${bs("",gs(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||as(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&&as(e.charCodeAt(0));return(u&&!p||a)&&(d+="\n"),d+=n,(u||c)&&(d+="\n"),'"""'+d+'"""'}(e):`"${e.replace(ps,fs)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+gs(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+gs(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+bs("(",gs(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>bs("",e,"\n")+gs(["schema",gs(t," "),ys(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>bs("",e,"\n")+gs(["scalar",t,gs(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>bs("",e,"\n")+gs(["type",t,bs("implements ",gs(n," & ")),gs(r," "),ys(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>bs("",e,"\n")+t+(ws(n)?bs("(\n",Es(gs(n,"\n")),"\n)"):bs("(",gs(n,", "),")"))+": "+r+bs(" ",gs(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>bs("",e,"\n")+gs([t+": "+n,bs("= ",r),gs(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>bs("",e,"\n")+gs(["interface",t,bs("implements ",gs(n," & ")),gs(r," "),ys(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>bs("",e,"\n")+gs(["union",t,gs(n," "),bs("= ",gs(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>bs("",e,"\n")+gs(["enum",t,gs(n," "),ys(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>bs("",e,"\n")+gs([t,gs(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>bs("",e,"\n")+gs(["input",t,gs(n," "),ys(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:o})=>bs("",e,"\n")+"directive @"+t+(ws(n)?bs("(\n",Es(gs(n,"\n")),"\n)"):bs("(",gs(n,", "),")"))+(r?" repeatable":"")+" on "+gs(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>gs(["extend schema",gs(e," "),ys(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>gs(["extend scalar",e,gs(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>gs(["extend type",e,bs("implements ",gs(t," & ")),gs(n," "),ys(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>gs(["extend interface",e,bs("implements ",gs(t," & ")),gs(n," "),ys(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>gs(["extend union",e,gs(t," "),bs("= ",gs(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>gs(["extend enum",e,gs(t," "),ys(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>gs(["extend input",e,gs(t," "),ys(n)]," ")}};function gs(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function ys(e){return bs("{\n",Es(gs(e,"\n")),"\n}")}function bs(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Es(e){return bs("  ",e.replace(/\n/g,"\n  "))}function ws(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var xs={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Ss=function(e,t){return t(e)};function ks(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={},a={};n.forEach((function(e){o=aa(aa(aa({},o),e.options),{headers:aa(aa({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=aa(aa({},a),e.http)})),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,ms)),{options:o,body:u}}function Cs(e){return new ri((function(t){t.error(e)}))}var Os=Ea((function(){return fetch})),Ts=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?Ss: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"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new ha("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new ha(22)}(r||Os);var p={http:{includeExtensions:i,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Ii((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,h=aa(aa({},i),o.headers),m={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:h},v=ks(e,a,xs,p,m),g=v.options,y=v.body;if(y.variables&&!u){var b=new Set(Object.keys(y.variables));$i(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.size&&(y.variables=aa({},y.variables),b.forEach((function(e){delete y.variables[e]})))}if(!g.signal){var E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),w=E.controller,x=E.signal;(f=w)&&(g.signal=x)}if(l&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(g.method="GET"),Vi(["defer"],e.query)&&(g.headers.accept="multipart/mixed; deferSpec=20220824, application/json"),"GET"===g.method){var S=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=Wi(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",o)}if(t.extensions){var a=void 0;try{a=Wi(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,y),k=S.newURI,C=S.parseError;if(C)return Cs(C);t=k}else try{g.body=Wi(y,"Payload")}catch(C){return Cs(C)}return new ri((function(n){return(r||Ea((function(){return fetch}))||Os)(t,g).then((function(t){var r;e.setContext({response:t});var o=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){var n,r,o;return sa(this,void 0,void 0,(function(){var a,i,s,l,c,u,d,p,f,h,m,v,g,y,b,E,w,x,S,k;return la(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.");a=new TextDecoder("utf-8"),i=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),s="boundary=",l=(null==i?void 0:i.includes(s))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(s))+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="--".concat(l),u="",d=Xi(e),p=!0,C.label=1;case 1:return p?[4,d.next()]:[3,3];case 2:for(f=C.sent(),h=f.value,m=f.done,v="string"==typeof h?h:a.decode(h),p=!m,g=(u+=v).indexOf(c);g>-1;){if(y=void 0,k=[u.slice(0,g),u.slice(g+c.length)],u=k[1],(y=k[0]).trim()){if(b=y.indexOf("\r\n\r\n"),E=ts(y.slice(0,b)),(w=E["content-type"])&&-1===w.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");x=y.slice(b);try{S=ns(e,x.replace("\r\n","")),(Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S)&&(null===(r=t.next)||void 0===r||r.call(t,S))}catch(e){rs(e,t)}}g=u.indexOf(c)}return[3,1];case 3:return null===(o=t.complete)||void 0===o||o.call(t),[2]}}))}))}(t,n):os(t,e,n)})).catch((function(e){return rs(e,n)})),function(){f&&f.abort()}}))}))},_s=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Ts(t).request)||this;return n.options=t,n}return oa(t,e),t}(Ii),Rs=Ii.split,Ps=function(){return Object.create(null)},Is=Array.prototype,Ns=Is.forEach,As=Is.slice,Ls=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Ps),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return Ns.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(As.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}();var Ds=null,Ms={},Zs=1,Fs="@wry/context:Slot",js=Array,$s=js[Fs]||function(){var e=function(){function e(){this.id=["slot",Zs++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Ds;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Ms)break;return e!==Ds&&(Ds.slots[this.id]=t),!0}return Ds&&(Ds.slots[this.id]=Ms),!1},e.prototype.getValue=function(){if(this.hasValue())return Ds.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var o,a=((o={__proto__:null})[this.id]=e,o),i=Ds;Ds={parent:i,slots:a};try{return t.apply(r,n)}finally{Ds=i}},e.bind=function(e){var t=Ds;return function(){var n=Ds;try{return Ds=t,e.apply(this,arguments)}finally{Ds=n}}},e.noContext=function(e,t,n){if(!Ds)return e.apply(n,t);var r=Ds;try{return Ds=null,e.apply(n,t)}finally{Ds=r}},e}();try{Object.defineProperty(js,Fs,{value:js[Fs]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();$s.bind,$s.noContext;function Bs(){}var zs,Vs=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Bs),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var 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)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var 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)},e}(),qs=new $s,Ws=Object.prototype.hasOwnProperty,Us=void 0===(zs=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:zs;function Hs(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Qs=[],Gs=100;function Ks(e,t){if(!e)throw new Error(t||"assertion failure")}function Ys(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Xs=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!tl(this))return Js(this),this.value[0]},e.prototype.recompute=function(e){return Ks(!this.recomputing,"already recomputing"),Js(this),tl(this)?function(e,t){ll(e),qs.withValue(e,el,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Hs(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,tl(e))return;rl(e)}(e);return Ys(e.value)}(this,e):Ys(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,nl(this),Hs(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),ll(this),ol(this,(function(t,n){t.setDirty(),cl(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Qs.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Us(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Qs.push(this.deps),this.deps=null)},e.count=0,e}();function Js(e){var t=qs.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tl(e)?al(t,e):il(t,e),t}function el(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function tl(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function nl(e){ol(e,al)}function rl(e){ol(e,il)}function ol(e,t){var n=e.parents.size;if(n)for(var r=Us(e.parents),o=0;o<n;++o)t(r[o],e)}function al(e,t){Ks(e.childValues.has(t)),Ks(tl(t));var n=!tl(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Qs.pop()||new Set;e.dirtyChildren.add(t),n&&nl(e)}function il(e,t){Ks(e.childValues.has(t)),Ks(!tl(t));var n,r,o,a=e.childValues.get(t);0===a.length?e.childValues.set(t,t.value.slice(0)):(n=a,r=t.value,(o=n.length)>0&&o===r.length&&n[o-1]===r[o-1]||e.setDirty()),sl(e,t),tl(e)||rl(e)}function sl(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Qs.length<Gs&&Qs.push(n),e.dirtyChildren=null))}function ll(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){cl(e,n)})),e.forgetDeps(),Ks(null===e.dirtyChildren)}function cl(e,t){t.parents.delete(e),e.childValues.delete(t),sl(e,t)}var ul={setDirty:!0,dispose:!0,forget:!0};function dl(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=qs.getValue();if(r){var o=t.get(e);o||t.set(e,o=new Set),r.dependOn(o),"function"==typeof n&&(Hs(o),o.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var o=n&&Ws.call(ul,n)?n:"setDirty";Us(r).forEach((function(e){return e[o]()})),t.delete(e),Hs(r)}},r}function pl(){var e=new Ls("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}pl();var fl=new Set;function hl(e,t){void 0===t&&(t=Object.create(null));var n=new Vs(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,o=t.makeCacheKey||pl(),a=function(){var a=o.apply(null,r?r.apply(null,arguments):arguments);if(void 0===a)return e.apply(null,arguments);var i=n.get(a);i||(n.set(a,i=new Xs(e)),i.subscribe=t.subscribe,i.forget=function(){return n.delete(a)});var s=i.recompute(Array.prototype.slice.call(arguments));return n.set(a,i),fl.add(n),qs.hasValue()||(fl.forEach((function(e){return e.clean()})),fl.clear()),s};function i(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),a.dirtyKey=i,a.dirty=function(){i(o.apply(null,arguments))},a.peekKey=s,a.peek=function(){return s(o.apply(null,arguments))},a.forgetKey=l,a.forget=function(){return l(o.apply(null,arguments))},a.makeCacheKey=o,a.getKey=r?function(){return o.apply(null,r.apply(null,arguments))}:o,Object.freeze(a)}var ml=Object.prototype,vl=ml.toString,gl=ml.hasOwnProperty,yl=Function.prototype.toString,bl=new Map;function El(e,t){try{return wl(e,t)}finally{bl.clear()}}function wl(e,t){if(e===t)return!0;var n,r,o,a=vl.call(e);if(a!==vl.call(t))return!1;switch(a){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Cl(e,t))return!0;var i=xl(e),s=xl(t),l=i.length;if(l!==s.length)return!1;for(var c=0;c<l;++c)if(!gl.call(t,i[c]))return!1;for(c=0;c<l;++c){var u=i[c];if(!wl(e[u],t[u]))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(Cl(e,t))return!0;for(var d=e.entries(),p="[object Map]"===a;;){var f=d.next();if(f.done)break;var h=f.value,m=h[0],v=h[1];if(!t.has(m))return!1;if(p&&!wl(v,t.get(m)))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]":var g=e.byteLength;if(g===t.byteLength)for(;g--&&e[g]===t[g];);return-1===g;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var y=yl.call(e);return y===yl.call(t)&&(r=kl,!((o=(n=y).length-r.length)>=0&&n.indexOf(r,o)===o))}return!1}function xl(e){return Object.keys(e).filter(Sl,e)}function Sl(e){return void 0!==this[e]}var kl="{ [native code] }";function Cl(e,t){var n=bl.get(e);if(n){if(n.has(t))return!0}else bl.set(e,n=new Set);return n.add(t),!1}var Ol=function(){function e(){this.getFragmentDoc=hl(ai)}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(aa(aa({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(aa(aa({},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(aa(aa({},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(aa(aa({},e),{data:o})),o)}})},e}(),Tl=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 oa(t,e),t}(Error);function _l(e,t,n){var r=0;return e.forEach((function(n,o){t.call(this,n,o,e)&&(e[r++]=n)}),n),e.length=r,e}var Rl={kind:"Field",name:{kind:"Name",value:"__typename"}};function Pl(e,t){return!e||e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Pl(t[e.name.value],t)}))}function Il(e){return Pl(wi(e)||function(e){__DEV__?ma("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ma("Document"===e.kind,50),__DEV__?ma(e.definitions.length<=1,"Fragment must have exactly one definition."):ma(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?ma("FragmentDefinition"===t.kind,"Must be a fragment definition."):ma("FragmentDefinition"===t.kind,52),t}(e),ii(Si(e)))?null:e}function Nl(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Al(e,t){var n=Object.create(null),r=[],o=Object.create(null),a=[],i=Il($i(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Nl(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&Ml(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(Nl(e)(t))return null}}}));return i&&_l(r,(function(e){return!!e.name&&!n[e.name]})).length&&(i=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return Il($i(t,{OperationDefinition:{enter:function(t){return aa(aa({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,i)),i&&_l(a,(function(e){return!!e.name&&!o[e.name]})).length&&(i=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return Il($i(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(a,i)),i}var Ll=Object.assign((function(e){return $i(e,{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return yi(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var o=n;if(!(yi(o)&&o.directives&&o.directives.some((function(e){return"export"===e.name.value}))))return aa(aa({},e),{selections:ca(ca([],r,!0),[Rl],!1)})}}}}})}),{added:function(e){return e===Rl}}),Dl={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&ma.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function Ml(e){var t=[];return e.selections.forEach((function(e){(yi(e)||bi(e))&&e.selectionSet?Ml(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function Zl(e){if("query"===Ci(e).operation)return e;var t=$i(e,{OperationDefinition:{enter:function(e){return aa(aa({},e),{operation:"query"})}}});return t}function Fl(){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}var jl=Object.prototype.hasOwnProperty;function $l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Bl(e)}function Bl(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Vl,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var zl=function(e,t,n){return this.merge(e[n],t[n])},Vl=function(){function e(e){void 0===e&&(e=zl),this.reconciler=e,this.isObject=oi,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 oi(t)&&oi(e)?(Object.keys(t).forEach((function(o){if(jl.call(e,o)){var a=e[o];if(t[o]!==a){var i=n.reconciler.apply(n,ca([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 oi(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):aa({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function ql(e){var t=new Set([e]);return t.forEach((function(e){oi(e)&&function(e){if(__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){oi(e[n])&&t.add(e[n])}))})),e}function Wl(e){return __DEV__&&ql(e),e}var Ul=Object.prototype.hasOwnProperty;function Hl(e){return null==e}var Ql=Array.isArray;function Gl(e,t){var n=e.__typename,r=e.id,o=e._id;if("string"==typeof n&&(t&&(t.keyObject=Hl(r)?Hl(o)?void 0:{_id:o}:{id:r}),Hl(r)&&!Hl(o)&&(r=o),!Hl(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Kl={dataIdFromObject:Gl,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Yl(e){var t=e.canonizeResults;return void 0===t?Kl.canonizeResults:t}var Xl=/^[_a-z][_0-9a-z]*/i;function Jl(e){var t=e.match(Xl);return t?t[0]:e}function ec(e,t,n){return!!oi(t)&&(Ql(t)?t.every((function(t){return ec(e,t,n)})):e.selections.every((function(e){if(yi(e)&&zi(e,n)){var r=vi(e);return Ul.call(t,r)&&(!e.selectionSet||ec(e.selectionSet,t[r],n))}return!0})))}function tc(e){return oi(e)&&!ci(e)&&!Ql(e)}function nc(e,t){var n=ii(Si(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var rc=Object.create(null),oc=function(){return rc},ac=Object.create(null),ic=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 Wl(ci(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ci(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return li(e);if(ci(e))return e;var r=n.policies.identify(e)[0];if(r){var o=li(r);return t&&n.merge(r,e),o}}}return e.prototype.toObject=function(){return aa({},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),Ul.call(this.data,e)){var n=this.data[e];if(n&&Ul.call(n,t))return n[t]}return"__typename"===t&&Ul.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof uc?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Ul.call(this.data,e)?this.data[e]:this instanceof uc?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;ci(e)&&(e=e.__ref),ci(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){__DEV__?ma("string"==typeof n,"store.merge expects a string ID"):ma("string"==typeof n,1);var i=new Vl(pc).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=Jl(e);t===e||r.policies.hasKeyArgs(i.__typename,t)||(s[t]=1),void 0!==i[e]||r instanceof uc||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:rc,INVALIDATE:ac,isReference:ci,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||li(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(l){var c=Jl(l),u=r[l];if(void 0!==u){var d="function"==typeof t?t:t[l]||t[c];if(d){var p=d===oc?rc:d(Wl(u),aa(aa({},s),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));p===ac?n.group.dirty(e,l):(p===rc&&(p=void 0),p!==u&&(o[l]=p,a=!0,u=p))}void 0!==u&&(i=!1)}})),a)return this.merge(e,o),i&&(this instanceof uc?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]=oc,r):oc)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Ul.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof uc&&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){Ul.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&&Ul.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 uc?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){Ul.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 uc;)o=o.parent;r.forEach((function(e){return o.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Ul.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){ci(e)&&(t[e.__ref]=!0),oi(e)&&Object.keys(e).forEach((function(t){var n=e[t];oi(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),sc=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?dl():null,this.keyMaker=new Ls(Ui)},e.prototype.depend=function(e,t){if(this.d){this.d(lc(e,t));var n=Jl(t);n!==t&&this.d(lc(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(lc(e,t),"__exists"===t?"forget":"setDirty")},e}();function lc(e,t){return t+"#"+e}function cc(e,t){fc(e)&&e.group.depend(t,"__exists")}!function(e){var t=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 sc(o))||this;return i.stump=new dc(i),i.storageTrie=new Ls(Ui),a&&i.replace(a),i}return oa(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}(e);e.Root=t}(ic||(ic={}));var uc=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 oa(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){El(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 aa(aa({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Ul.call(this.data,t)?aa(aa({},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}(ic),dc=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new sc(t.group.caching,t.group))||this}return oa(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(uc);function pc(e,t,n){var r=e[n],o=t[n];return El(r,o)?r:o}function fc(e){return!!(e instanceof ic&&e.group.caching)}var hc,mc,vc=function(){function e(){this.known=new(Hi?WeakSet:Set),this.pool=new Ls(Ui),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return oi(e)&&this.known.has(e)},e.prototype.pass=function(e){if(oi(e)){var t=function(e){return oi(e)?Ql(e)?e.slice(0):aa({__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(oi(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),__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]})),__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}(),gc=Object.assign((function(e){if(oi(e)){void 0===hc&&yc();var t=hc.admit(e),n=mc.get(t);return void 0===n&&mc.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:yc});function yc(){hc=new vc,mc=new(Ui?WeakMap:Map)}function bc(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Ec=function(){function e(e){var t=this;this.knownResults=new(Ui?WeakMap:Map),this.config=Fl(e,{addTypename:!1!==e.addTypename,canonizeResults:Yl(e)}),this.canon=e.canon||new vc,this.executeSelectionSet=hl((function(e){var n,r=e.context.canonizeResults,o=bc(e);o[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?r?aa(aa({},a),{result:t.canon.admit(a.result)}):a:(cc(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:bc,makeCacheKey:function(e,t,n,r){if(fc(n.store))return n.store.makeCacheKey(e,ci(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=hl((function(e){return cc(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(fc(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new vc},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=aa(aa({},Oi(ki(n))),a);var d,p=li(o),f=this.executeSelectionSet({selectionSet:Ci(n).selectionSet,objectOrReference:p,enclosingRef:p,context:aa({store:t,query:n,policies:u,variables:a,varString:gc(a),canonizeResults:c},nc(n,this.config.fragments))});if(f.missing&&(d=[new Tl(wc(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(fc(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(ci(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 Vl;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(zi(e,s))if(yi(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),v=vi(e);void 0===m?Ll.added(e)||(i=d.merge(i,((n={})[v]="Can't find field '".concat(e.name.value,"' on ").concat(ci(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):Ql(m)?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:ci(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=si(e,a.lookupFragment);if(!g&&e.kind===Fi.FRAGMENT_SPREAD)throw __DEV__?new ha("No fragment named ".concat(e.name.value)):new ha(5);g&&l.fragmentMatches(g,c)&&g.selectionSet.selections.forEach(f.add,f)}}));var h={result:Bl(u),missing:i},m=a.canonizeResults?this.canon.admit(h):Wl(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 Vl;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:Ql(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:i}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:ci(e)?e:a,context:i}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){oi(n)&&(__DEV__?ma(!ci(n),"Missing selection set for object of type ".concat(function(e,t){return ci(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):ma(!ci(n),6),Object.values(n).forEach(r.add,r))}))}}(i.store,r,e),e)})),{result:i.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function wc(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var xc=Object.prototype.toString;function Sc(e){return kc(e)}function kc(e,t){switch(xc.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]=kc(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]=kc(e[n],t)})),r;default:return e}}function Cc(e){return Array.isArray(e)&&e.length>0}var Oc=new Map;function Tc(e){var t=Oc.get(e)||1;return Oc.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}var _c=null,Rc={},Pc=1;function Ic(e){try{return e()}catch(e){}}var Nc="@wry/context:Slot",Ac=Ic((function(){return globalThis}))||Ic((function(){return o.g}))||Object.create(null),Lc=Ac[Nc]||Array[Nc]||function(e){try{Object.defineProperty(Ac,Nc,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(function(){function e(){this.id=["slot",Pc++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=_c;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Rc)break;return e!==_c&&(_c.slots[this.id]=t),!0}return _c&&(_c.slots[this.id]=Rc),!1},e.prototype.getValue=function(){if(this.hasValue())return _c.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var o,a=((o={__proto__:null})[this.id]=e,o),i=_c;_c={parent:i,slots:a};try{return t.apply(r,n)}finally{_c=i}},e.bind=function(e){var t=_c;return function(){var n=_c;try{return _c=t,e.apply(this,arguments)}finally{_c=n}}},e.noContext=function(e,t,n){if(!_c)return e.apply(n,t);var r=_c;try{return _c=null,e.apply(n,t)}finally{_c=r}},e}());Lc.bind,Lc.noContext;var Dc=new Lc,Mc=new WeakMap;function Zc(e){var t=Mc.get(e);return t||Mc.set(e,t={vars:new Set,dep:dl()}),t}function Fc(e){Zc(e).vars.forEach((function(t){return t.forgetCache(e)}))}function jc(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){Zc(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=Dc.getValue();s&&(o(s),Zc(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),Zc(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var $c=Object.create(null);function Bc(e){var t=JSON.stringify(e);return $c[t]||($c[t]=Object.create(null))}function zc(e){var t=Bc(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=qc(e,(function(e){var o=Hc(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&Ul.call(t,e[0])&&(o=Hc(t,e,Uc)),__DEV__?ma(void 0!==o,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):ma(void 0!==o,2),o}));return"".concat(n.typename,":").concat(JSON.stringify(o))})}function Vc(e){var t=Bc(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,o=n.variables,a=n.fieldName,i=qc(e,(function(e){var n=e[0],a=n.charAt(0);if("@"!==a)if("$"!==a){if(t)return Hc(t,e)}else{var i=n.slice(1);if(o&&Ul.call(o,i)){var s=e.slice(0);return s[0]=i,Hc(o,s)}}else if(r&&Cc(r.directives)){var l=n.slice(1),c=r.directives.find((function(e){return e.name.value===l})),u=c&&mi(c,o);return u&&Hc(u,e.slice(1))}})),s=JSON.stringify(i);return(t||"{}"!==s)&&(a+=":"+s),a})}function qc(e,t){var n=new Vl;return Wc(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 Wc(e){var t=Bc(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,o){Ql(t)?(Wc(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),Ql(e[o+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function Uc(e,t){return e[t]}function Hc(e,t,n){return n=n||Uc,Qc(t.reduce((function e(t,r){return Ql(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function Qc(e){return oi(e)?Ql(e)?e.map(Qc):qc(Object.keys(e).sort(),(function(t){return Hc(e,t)})):e}function Gc(e){return void 0!==e.args?e.args:e.field?mi(e.field,e.variables):null}pi.setStringify(gc);var Kc=function(){},Yc=function(e,t){return t.fieldName},Xc=function(e,t,n){return(0,n.mergeObjects)(e,t)},Jc=function(e,t){return t},eu=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=aa({dataIdFromObject:Gl},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=aa(aa({},t),{typename:o,storeObject:i,readField:t&&t.readField||function(){var e=nu(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(e,s);if(!Ql(u)){a=u;break}c=zc(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),Ul.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?Xc:!1===t?Jc:e.merge}i(r,t.merge),r.keyFn=!1===o?Kc:Ql(o)?zc(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?Yc:Ql(s)?Vc(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),i(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Yc)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?ma(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):ma(!r||r===e,3),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(Xl);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Ul.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(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&&__DEV__&&ma.warn("Inferring subtype ".concat(t," of supertype ").concat(a)),i.add(a)),!0;p.forEach(l),c&&d===s.length-1&&ec(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=Gc(e);a;){var l=a(s,i);if(!Ql(l)){t=l||r;break}a=Vc(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 ui(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 ui(r,n,o,t)}))),pi(e.name.value,r,n)}(e.field,e.variables):pi(r,Gc(e))),!1===t?r:r===Jl(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=Jl(o),i=t.store.getFieldValue(n,o),s=this.getFieldPolicy(e.typename,a,!1),l=s&&s.read;if(l){var c=tu(this,n,e,t,t.store.getStorage(ci(n)?n.__ref:n,o));return Dc.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===Xc?ru(r.store)(e,t):s===Jc?t:(r.overwrite&&(e=void 0),s(e,t,tu(this,void 0,{typename:i,fieldName:a.name.value,field:a,variables:r.variables},r,o||Object.create(null))))},e}();function tu(e,t,n,r,o){var a=e.getStoreFieldName(n),i=Jl(a),s=n.variables||r.variables,l=r.store,c=l.toReference,u=l.canRead;return{args:Gc(n),field:n.field||null,fieldName:i,storeFieldName:a,variables:s,isReference:ci,toReference:c,storage:o,cache:e.cache,canRead:u,readField:function(){return e.readField(nu(arguments,t,s),r)},mergeObjects:ru(r.store)}}function nu(e,t,n){var r,o,a,i=e[0],s=e[1],l=e.length;return"string"==typeof i?r={fieldName:i,from:l>1?s:t}:(r=aa({},i),Ul.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&ma.warn("Undefined 'from' passed to readField with arguments ".concat((o=Array.from(e),a=Tc("stringifyForDisplay"),JSON.stringify(o,(function(e,t){return void 0===t?a:t})).split(JSON.stringify(a)).join("<undefined>")))),void 0===r.variables&&(r.variables=n),r}function ru(e){return function(t,n){if(Ql(t)||Ql(n))throw __DEV__?new ha("Cannot automatically merge arrays"):new ha(4);if(oi(t)&&oi(n)){var r=e.getFieldValue(t,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(ci(t)&&tc(n))return e.merge(t.__ref,n),t;if(tc(t)&&ci(n))return e.merge(t,n.__ref),n;if(tc(t)&&tc(n))return aa(aa({},t),n)}return n}}function ou(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:aa(aa({},e),{clientOnly:t,deferred:n})),o}var au=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=wi(r),c=new Vl;i=aa(aa({},Oi(l)),i);var u=aa(aa({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:i,varString:gc(i)},nc(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(!ci(d))throw __DEV__?new ha("Could not identify object ".concat(JSON.stringify(o))):new ha(7);return u.incomingById.forEach((function(t,r){var o=t.storeObject,a=t.mergeTree,i=t.fieldNodeSet,s=li(r);if(a&&a.map.size){var l=n.applyMerges(a,s,o,u);if(ci(l))return;o=l}if(__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[Jl(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(ci(a))return;if(El(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=Jl(n),c="".concat(s,".").concat(l);if(du.has(c))return;du.add(c);var u=[];Ql(a)||Ql(i)||[a,i].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)}));__DEV__&&ma.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(a).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(i).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(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]||gi(r,o,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof c&&(l.__typename=c);var u=function(){var e=nu(arguments,l,a.variables);if(ci(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=s.readField(aa(aa({},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=vi(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=su(i,f),m=t.processFieldValue(p,n,n.selectionSet?ou(e,!1,!1):e,h),v=void 0;n.selectionSet&&(ci(m)||tc(m))&&(v=u("__typename",m));var g=s.getMergeFunction(c,n.name.value,v);g?h.info={field:n,typename:c,merge:g}:uu(i,f),l=e.merge(l,((o={})[f]=m,o))}else!__DEV__||e.clientOnly||e.deferred||Ll.added(n)||s.getReadFunction(c,n.name.value)||__DEV__&&ma.error("Missing field '".concat(vi(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));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=li(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=lu(g.mergeTree,i),d.forEach((function(e){return g.fieldNodeSet.add(e)}))):a.incomingById.set(n,{storeObject:l,mergeTree:cu(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?Ql(e)?e.map((function(e,a){var i=o.processFieldValue(e,t,n,su(r,a));return uu(r,a),i})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?Sc(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=gi(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,i=new Ls(!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(zi(i,n.variables)){var s=l.clientOnly,c=l.deferred;if(s&&c||!Cc(i.directives)||i.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=mi(e,n.variables);r&&!1===r.if||(c=!0)}})),yi(i)){var u=o.get(i);u&&(s=s&&u.clientOnly,c=c&&u.deferred),o.set(i,ou(n,s,c))}else{var d=si(i,n.lookupFragment);if(!d&&i.kind===Fi.FRAGMENT_SPREAD)throw __DEV__?new ha("No fragment named ".concat(i.name.value)):new ha(8);d&&a.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,ou(n,s,c))}}})))}(e,n),o},e.prototype.applyMerges=function(e,t,n,r,o){var a,i=this;if(e.map.size&&!ci(n)){var s,l=Ql(n)||!ci(t)&&!tc(t)?void 0:t,c=n;l&&!o&&(o=[ci(l)?l.__ref:l]);var u=function(e,t){return Ql(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&&ma(o.pop()===t)}})),s&&(n=Ql(c)?c.slice(0):aa({},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}(),iu=[];function su(e,t){var n=e.map;return n.has(t)||n.set(t,iu.pop()||{map:new Map}),n.get(t)}function lu(e,t){if(e===t||!t||cu(t))return e;if(!e||cu(e))return t;var n=e.info&&t.info?aa(aa({},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,lu(e,t.map.get(n))),a.delete(n)})),a.forEach((function(n){o.map.set(n,lu(t.map.get(n),e.map.get(n)))}))}return o}function cu(e){return!e||!(e.info||e.map.size)}function uu(e,t){var n=e.map,r=n.get(t);r&&cu(r)&&(iu.push(r),n.delete(t))}var du=new Set;var pu=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=jc,n.txCount=0,n.config=function(e){return Fl(Kl,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new eu({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return oa(t,e),t.prototype.init=function(){var e=this.data=new ic.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 au(this,this.storeReader=new Ec({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Yl(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=hl((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(fc(n)){var r=e.optimistic,o=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,gc({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(aa(aa({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Tl)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(Ul.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(aa(aa({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){Zc(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Fc(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){gc.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},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(ci(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&ma.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(Ul.call(e,"id"))return!1;e=aa(aa({},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(),gc.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Fc(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(aa(aa({},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(aa(aa({},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){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Ll(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,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&&El(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Ol),fu=Ii.execute,hu="3.7.2";function mu(e,t,n){return new ri((function(r){var o=r.next,a=r.error,i=r.complete,s=0,l=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function u(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,o&&o.call(r,e),l&&d.complete()}),(function(e){throw--s,e})).catch((function(e){a&&a.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:u(t,o),error:u(n,a),complete:function(){l=!0,s||i&&i.call(r)}},p=e.subscribe(d);return function(){return p.unsubscribe()}}))}function vu(e){return e.errors&&e.errors.length>0||!1}function gu(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function yu(e){function t(t){Object.defineProperty(e,t,{value:ri})}return Qi&&Symbol.species&&t(Symbol.species),t("@@species"),e}function bu(e){return e&&"function"==typeof e.then}var Eu=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),gu(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),gu(n.observers,"error",e))},complete:function(){var e=n.sub;if(null!==e){var t=n.sources.shift();t?bu(t)?t.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=t.subscribe(n.handlers):(e&&setTimeout((function(){return e.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),gu(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 ri(t)]),bu(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return oa(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}(ri);yu(Eu);var wu,xu=function(e){var t="";(Cc(e.graphQLErrors)||Cc(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")}));return e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")},Su=function(e){function t(n){var r=n.graphQLErrors,o=n.clientErrors,a=n.networkError,i=n.errorMessage,s=n.extraInfo,l=e.call(this,i)||this;return l.name="ApolloError",l.graphQLErrors=r||[],l.clientErrors=o||[],l.networkError=a||null,l.message=i||xu(l),l.extraInfo=s,l.__proto__=t.prototype,l}return oa(t,e),t}(Error);function ku(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(wu||(wu={}));var Cu=Object.assign,Ou=Object.hasOwnProperty,Tu=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=Ru)}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.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=aa(aa({},o),{initialFetchPolicy:p,fetchPolicy:u}),a.queryId=r.queryId||n.generateQueryId();var f=wi(a.query);return a.queryName=f&&f.name&&f.name.value,a}return oa(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},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.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||wu.ready,r=aa(aa({},t),{loading:ku(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var i=this.queryInfo.getDiff();(i.complete||this.options.returnPartialData)&&(r.data=i.result),El(r.data,{})&&(r.data=void 0),i.complete?(delete r.partial,!i.complete||r.networkStatus!==wu.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=wu.ready,r.loading=!1)):r.partial=!0,!__DEV__||i.complete||this.options.partialRefetch||r.loading||r.data||r.error||Pu(i.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!El(this.last.result,e)||t&&!El(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||El(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",__DEV__&&e&&Ou.call(e,"variables")){var o=ki(this.query),a=o.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&ma.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=o.name)||void 0===t?void 0:t.value)||JSON.stringify(o),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!El(this.options.variables,e)&&(n.variables=this.options.variables=aa(aa({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,wu.refetch)},t.prototype.fetchMore=function(e){var t=this,n=aa(aa({},e.query?e:aa(aa(aa(aa({},this.options),{query:this.query}),e),{variables:aa(aa({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=wu.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var i=new Set;return this.queryManager.fetchQuery(r,n,wu.fetchMore).then((function(s){return t.queryManager.removeQuery(r),o.networkStatus===wu.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)||_u(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):__DEV__&&ma.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return El(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},wu.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){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},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){__DEV__?ma(n,"Attempted to start a polling query without a polling interval."):ma(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(ku(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},wu.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){return void 0===t&&(t=this.variables),this.last=aa(aa({},this.last),{result:this.queryManager.assumeImmutableResults?e:Sc(e),variables:t}),Cc(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===wu.refetch||t===wu.fetchMore||t===wu.poll,o=this.options.variables,a=this.options.fetchPolicy,i=Fl(this.options,e||{}),s=r?i:Cu(this.options,i);r||(this.updatePolling(),e&&e.variables&&!El(e.variables,o)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=wu.setVariables)));var l=s.variables&&aa({},s.variables),c=this.fetch(s,t),u={next:function(e){n.reportResult(e,l)},error:function(e){n.reportError(e,l)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=c,this.observer=u),c.addObserver(u),c.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e,t))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),gu(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=aa(aa({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:wu.error,loading:!1});this.updateLastResult(n,t),gu(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}(ri);function _u(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(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function Ru(e){__DEV__&&ma.error("Unhandled error",e.message,e.stack)}function Pu(e){__DEV__&&e&&__DEV__&&ma.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}yu(Tu);var Iu=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,o=e.fragmentMatcher;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=$l(t.resolvers,e)})):this.resolvers=$l(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){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,a=e.onlyRunForcedResolvers,i=void 0!==a&&a;return sa(this,void 0,void 0,(function(){return la(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,i).then((function(e){return aa(aa({},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 Vi(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Ei(e);var t=Al([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=$i(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return yi(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return aa(aa({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),sa(this,void 0,void 0,(function(){return la(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return aa(aa({},t),e.exportedVariables)}))]:[2,aa({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return $i(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 ji}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Zl(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,o,a){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),sa(this,void 0,void 0,(function(){var i,s,l,c,u,d,p,f,h;return la(this,(function(m){return i=Ci(e),s=Si(e),l=ii(s),c=i.operation,u=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",p=(d=this).cache,f=d.client,h={fragmentMap:l,context:aa(aa({},n),{cache:p,client:f}),variables:r,fragmentMatcher:o,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(i.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return sa(this,void 0,void 0,(function(){var r,o,a,i,s,l=this;return la(this,(function(c){return r=n.fragmentMap,o=n.context,a=n.variables,i=[t],s=function(e){return sa(l,void 0,void 0,(function(){var s,l;return la(this,(function(c){return zi(e,a)?yi(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&i.push(((n={})[vi(e)]=t,n))}))]:(bi(e)?s=e:(s=r[e.name.value],__DEV__?ma(s,"No fragment named ".concat(e.name.value)):ma(s,11)),s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(t,l,o))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){i.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Bl(i)}))]}))}))},e.prototype.resolveField=function(e,t,n){return sa(this,void 0,void 0,(function(){var r,o,a,i,s,l,c,u,d,p=this;return la(this,(function(f){return r=n.variables,o=e.name.value,a=vi(e),i=o!==a,s=t[a]||t[o],l=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(u=this.resolvers&&this.resolvers[c])&&(d=u[i?o:a])&&(l=Promise.resolve(Dc.withValue(this.cache,d,[t,mi(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=s),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&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),Nu=new(Ui?WeakMap:Map);function Au(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Nu.set(e,(Nu.get(e)+1)%1e15),n.apply(this,arguments)})}function Lu(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Du=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.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Nu.has(n)||(Nu.set(n,0),Au(n,"evict"),Au(n,"modify"),Au(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||wu.loading;return this.variables&&this.networkStatus!==wu.loading&&!El(this.variables,e.variables)&&(t=wu.setVariables),El(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(){Lu(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&El(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},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=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||El(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.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():_u(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Lu(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(ku(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,this.subscriptions.forEach((function(e){return e.unsubscribe()}));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=aa(aa({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&El(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===Nu.get(this.cache)&&El(t,n.variables)&&El(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var o=this,a=Cc(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&Cc(e.incremental)){var i=this.getDiff().result,s=new Vl;e.incremental.forEach((function(e){for(var t=e.data,n=e.path,r=e.errors,o=n.length-1;o>=0;--o){var l=n[o],c=!isNaN(+l)?[]:{};c[l]=t,t=c}r&&a.push.apply(a,r),i=s.merge(i,t)})),e.data=i}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(Mu(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:Nu.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||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=wu.ready},e.prototype.markError=function(e){return this.networkStatus=wu.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Mu(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!vu(e);return!r&&n&&e.data&&(r=!0),r}var Zu=Object.prototype.hasOwnProperty,Fu=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,o=e.queryDeduplication,a=void 0!==o&&o,i=e.onBroadcast,s=e.ssrMode,l=void 0!==s&&s,c=e.clientAwareness,u=void 0===c?{}:c,d=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ui?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=a,this.clientAwareness=u,this.localState=d||new Iu({cache:t}),this.ssrMode=l,this.assumeImmutableResults=!!p,(this.onBroadcast=i)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new ha("QueryManager stopped while query was in flight"):new ha(13))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,o=e.variables,a=e.optimisticResponse,i=e.updateQueries,s=e.refetchQueries,l=void 0===s?[]:s,c=e.awaitRefetchQueries,u=void 0!==c&&c,d=e.update,p=e.onQueryUpdated,f=e.fetchPolicy,h=void 0===f?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":f,m=e.errorPolicy,v=void 0===m?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":m,g=e.keepRootFields,y=e.context;return sa(this,void 0,void 0,(function(){var e,t,n,s,c,f;return la(this,(function(m){switch(m.label){case 0:return __DEV__?ma(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):ma(r,14),__DEV__?ma("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):ma("network-only"===h||"no-cache"===h,15),e=this.generateMutationId(),t=this.transform(r),n=t.document,s=t.hasClientExports,r=this.cache.transformForLink(n),o=this.getVariables(r,o),s?[4,this.localState.addExportedVariables(r,o,y)]:[3,2];case 1:o=m.sent(),m.label=2;case 2:return c=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:o,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:e,document:r,variables:o,fetchPolicy:h,errorPolicy:v,context:y,updateQueries:i,update:d,keepRootFields:g}),this.broadcastQueries(),f=this,[2,new Promise((function(t,n){return mu(f.getObservableFromLink(r,aa(aa({},y),{optimisticResponse:a}),o,!1),(function(t){if(vu(t)&&"none"===v)throw new Su({graphQLErrors:t.errors});c&&(c.loading=!1,c.error=null);var n=aa({},t);return"function"==typeof l&&(l=l(n)),"ignore"===v&&vu(n)&&delete n.errors,f.markMutationResult({mutationId:e,result:n,document:r,variables:o,fetchPolicy:h,errorPolicy:v,context:y,update:d,updateQueries:i,awaitRefetchQueries:u,refetchQueries:l,removeOptimistic:a?e:void 0,onQueryUpdated:p,keepRootFields:g})})).subscribe({next:function(e){f.broadcastQueries(),t(e)},error:function(t){c&&(c.loading=!1,c.error=t),a&&f.cache.removeOptimistic(e),f.broadcastQueries(),n(t instanceof Su?t:new Su({networkError:t}))}})}))]}}))}))},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&&Mu(r,e.errorPolicy)){o.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var i=e.updateQueries;i&&this.queries.forEach((function(e,a){var s=e.observableQuery,l=s&&s.queryName;if(l&&Zu.call(i,l)){var c=i[l],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&&xi(d)||void 0,queryVariables:p});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var i=e.update;if(i){if(!a){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&!r.incremental&&(r=aa(aa({},r),{data:s.result}))}i(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||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 s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(aa(aa({},t),{result:{data:r}}),e)}catch(e){__DEV__&&ma.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).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){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=Al([Dl],Ei(n)),o=this.localState.clientQuery(n),a=r&&this.localState.serverQuery(r),i={document:n,hasClientExports:qi(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Oi(wi(n)),asQuery:aa(aa({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?aa(aa({},e),{operation:"query"}):e}))})},s=function(e){e&&!t.has(e)&&t.set(e,i)};s(e),s(n),s(o),s(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return aa(aa({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=aa(aa({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Du(this),n=new Tu({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?ma(e.query,"query option is required. You must specify your GraphQL document in the query option."):ma(e.query,16),__DEV__?ma("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):ma("Document"===e.query.kind,17),__DEV__?ma(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):ma(!e.returnPartialData,18),__DEV__?ma(!e.pollInterval,"pollInterval option only supported on watchQuery."):ma(!e.pollInterval,19),this.fetchQuery(t,e).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(__DEV__?new ha("Store reset while query was in flight (not completed in link chain)"):new ha(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=wu.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):oi(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):oi(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=Tc("legacyOneTimeQuery"),o=t.getQuery(r).init({document:e.query,variables:e.variables}),a=new Tu({queryManager:t,queryInfo:o,options:aa(aa({},e),{fetchPolicy:"network-only"})});ma(a.queryId===r),o.setObservableQuery(a),n.set(r,a)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&ma.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),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=e.variables,i=e.context,s=void 0===i?{}:i;n=this.transform(n).document,a=this.getVariables(n,a);var l=function(e){return t.getObservableFromLink(n,s,e).map((function(a){if("no-cache"!==r&&(Mu(a,o)&&t.cache.write({query:n,result:a.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),vu(a))throw new Su({graphQLErrors:a.errors});return a}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,a,s).then(l);return new ri((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(a)},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.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,c=this.link,u={query:s,variables:n,operationName:xi(s)||void 0,context:this.prepareContext(aa(aa({},t),{forceFetch:!r}))};if(t=u.context,r){var d=l.get(s)||new Map;l.set(s,d);var p=gc(n);if(!(a=d.get(p))){var f=new Eu([fu(c,u)]);d.set(p,a=f),f.beforeNext((function(){d.delete(p)&&d.size<1&&l.delete(s)}))}}else a=new Eu([fu(c,u)])}else a=new Eu([ri.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(a=mu(a,(function(e){return i.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(this.transform(e.document).document);return mu(this.getObservableFromLink(o,n.context,n.variables),(function(a){var i=Cc(a.errors)?a.errors.slice(0):[];"incremental"in a&&Cc(a.incremental)&&a.incremental.forEach((function(e){e.errors&&i.push.apply(i,e.errors)}));var s=Cc(i);if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new Su({graphQLErrors:i}));e.markResult(a,o,n,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:wu.ready};return s&&"ignore"!==n.errorPolicy&&(l.errors=i,l.networkStatus=wu.error),l}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Su({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=wu.loading);var o=this.transform(t.query).document,a=this.getVariables(o,t.variables),i=this.getQuery(e),s=this.defaultOptions.watchQuery,l=t.fetchPolicy,c=void 0===l?s&&s.fetchPolicy||"cache-first":l,u=t.errorPolicy,d=void 0===u?s&&s.errorPolicy||"none":u,p=t.returnPartialData,f=void 0!==p&&p,h=t.notifyOnNetworkStatusChange,m=void 0!==h&&h,v=t.context,g=void 0===v?{}:v,y=Object.assign({},t,{query:o,variables:a,fetchPolicy:c,errorPolicy:d,returnPartialData:f,notifyOnNetworkStatusChange:m,context:g}),b=function(e){y.variables=e;var o=r.fetchQueryByPolicy(i,y,n);return"standby"!==y.fetchPolicy&&o.length>0&&i.observableQuery&&i.observableQuery.applyNextFetchPolicy("after-fetch",t),o},E=function(){return r.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,(function(e){E(),setTimeout((function(){return w.cancel(e)}))}));var w=new Eu(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(b):b(y.variables));return w.promise.then(E,E),w},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?Tc("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 Du&&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:this.transform(o).document,variables:a,networkStatus:n});var f=function(){return e.getDiff(a)},h=function(t,n){void 0===n&&(n=e.networkStatus||wu.loading);var i=t.result;!__DEV__||c||El(i,{})||Pu(t.missing);var s=function(e){return ri.of(aa({data:e,loading:ku(n),networkStatus:n},t.complete?null:{partial:!0}))};return i&&r.transform(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)})):s(i)},m="no-cache"===i?0:n===wu.refetch&&"merge"!==s?1:2,v=function(){return r.getResultsFromLink(e,m,{variables:a,context:u,fetchPolicy:i,errorPolicy:l})},g=d&&"number"==typeof p&&p!==n&&ku(n);switch(i){default:case"cache-first":return(y=f()).complete?[h(y,e.markReady())]:c||g?[h(y),v()]:[v()];case"cache-and-network":var y;return(y=f()).complete||c||g?[h(y),v()]:[v()];case"cache-only":return[h(f(),e.markReady())];case"network-only":return g?[h(f()),v()]:[v()];case"no-cache":return g?[h(e.getDiff()),v()]:[v()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Du(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return aa(aa({},t),{clientAwareness:this.clientAwareness})},e}();function ju(e,t){return Fl(e,t,t.variables&&{variables:aa(aa({},e&&e.variables),t.variables)})}var $u=!1,Bu=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,o=e.headers,a=e.cache,i=e.ssrMode,s=void 0!==i&&i,l=e.ssrForceFetchDelay,c=void 0===l?0:l,u=e.connectToDevTools,d=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,p=e.queryDeduplication,f=void 0===p||p,h=e.defaultOptions,m=e.assumeImmutableResults,v=void 0!==m&&m,g=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,E=e.name,w=e.version,x=e.link;if(x||(x=n?new _s({uri:n,credentials:r,headers:o}):Ii.empty()),!a)throw __DEV__?new ha("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new ha(9);if(this.link=x,this.cache=a,this.disableNetworkFetches=s||c>0,this.queryDeduplication=f,this.defaultOptions=h||Object.create(null),this.typeDefs=y,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),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),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!$u&&d&&__DEV__&&($u=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,k=S&&S.userAgent,C=void 0;"string"==typeof k&&(k.indexOf("Chrome/")>-1?C="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(C="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),C&&__DEV__&&ma.log("Download the Apollo DevTools for a better development experience: "+C)}this.version=hu,this.localState=new Iu({cache:a,client:this,resolvers:g,fragmentMatcher:b}),this.queryManager=new Fu({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:f,ssrMode:s,clientAwareness:{name:E,version:w},localState:this.localState,assumeImmutableResults:v,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ju(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=aa(aa({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ju(this.defaultOptions.query,e)),__DEV__?ma("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):ma("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=aa(aa({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ju(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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return fu(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){__DEV__&&ma.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(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},e}(),zu=Qi?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Vu(){var t=e.createContext[zu];return t||(Object.defineProperty(e.createContext,zu,{value:t=e.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}var qu=function(t){var n=t.client,r=t.children,o=Vu();return e.createElement(o.Consumer,null,(function(t){return void 0===t&&(t={}),n&&t.client!==n&&(t=Object.assign({},t,{client:n})),__DEV__?ma(t.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):ma(t.client,28),e.createElement(o.Provider,{value:t},r)}))};var Wu=function(e){function t(t){var n=e.call(this)||this;return n.client=t,n}return oa(t,e),t.prototype.request=function(e){var t=this;return new ri((function(n){return t.client.subscribe(aa(aa({},e),{query:ms(e.query)}),{next:n.next.bind(n),complete:n.complete.bind(n),error:function(e){return e instanceof Error?n.error(e):oi(t=e)&&"code"in t&&"reason"in t?n.error(new Error("Socket closed with event ".concat(e.code," ").concat(e.reason||""))):n.error(new Su({graphQLErrors:Array.isArray(e)?e:[e]}));var t}})}))},t}(Ii);function Uu(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function Hu(e){return"object"===Uu(e)}function Qu(e,t){return e.length<124?e:t}const Gu="graphql-transport-ws";var Ku,Yu;function Xu(e){if(!Hu(e))throw new Error(`Message is expected to be an object, but got ${Uu(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 ${Uu(e.type)}`);switch(e.type){case Yu.ConnectionInit:case Yu.ConnectionAck:case Yu.Ping:case Yu.Pong:if("payload"in e&&!Hu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or missing, but got "${e.payload}"`);break;case Yu.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Uu(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Hu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Uu(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 ${Uu(e.payload.query)}`);if(null!=e.payload.variables&&!Hu(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 ${Uu(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==Uu(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Uu(e.payload.operationName)}`);if(null!=e.payload.extensions&&!Hu(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 ${Uu(e.payload.extensions)}`);break;case Yu.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Uu(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Hu(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Uu(e.payload)}`);break;case Yu.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Uu(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 Yu.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Uu(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 Ju(e,t){return Xu(e),JSON.stringify(e,t)}function ed(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=td,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 E=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 x(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,k,C=0,O=!1,T=0,_=!1;async function R(){clearTimeout(k);const[e,r]=await(null!=S?S:S=new Promise(((e,r)=>(async()=>{if(O){if(await u(T),!C)return S=void 0,r({code:1e3,reason:"All Subscriptions Gone"});T++}w.emit("connecting");const o=new E("function"==typeof t?await t():t,Gu);let a,c;function d(){isFinite(i)&&i>0&&(clearTimeout(c),c=setTimeout((()=>{o.readyState===E.OPEN&&(o.send(Ju({type:Yu.Ping})),w.emit("ping",!1,void 0))}),i))}x((e=>{S=void 0,clearTimeout(a),clearTimeout(c),r(e),td(e)&&4499===e.code&&(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!==E.OPEN)return;o.send(Ju(e?{type:Yu.ConnectionInit,payload:e}:{type:Yu.ConnectionInit},v)),isFinite(l)&&l>0&&(a=setTimeout((()=>{o.close(Ku.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),l)),d()}catch(e){w.emit("error",e),o.close(Ku.InternalClientError,Qu(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 Xu("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(Ju(n.payload?{type:Yu.Pong,payload:n.payload}:{type:Yu.Pong})),w.emit("pong",!1,n.payload)));if(p)return;if(n.type!==Yu.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(a),p=!0,w.emit("connected",o,n.payload),O=!1,T=0,e([o,new Promise(((e,t)=>x(t)))])}catch(e){o.onmessage=null,w.emit("error",e),o.close(Ku.BadResponse,Qu(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})())));e.readyState===E.CLOSING&&await r;let o=()=>{};const c=new Promise((e=>o=e));return[e,o,Promise.race([c.then((()=>{if(!C){const t=()=>e.close(1e3,"Normal Closure");isFinite(a)&&a>0?k=setTimeout((()=>{e.readyState===E.OPEN&&t()}),a):t()}})),r])]}function P(e){if(td(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(t)&&t>=1e3&&t<=1999||[Ku.InternalServerError,Ku.InternalClientError,Ku.BadRequest,Ku.BadResponse,Ku.Unauthorized,Ku.SubprotocolNotAcceptable,Ku.SubscriberAlreadyExists,Ku.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(_)return!1;if(td(e)&&1e3===e.code)return C>0;if(!c||T>=c)throw e;if(!d(e))throw e;if(null==p?void 0:p(e))throw e;return O=!0}return r||(async()=>{for(C++;;)try{const[,,e]=await R();await e}catch(e){try{if(!P(e))return}catch(e){return null==o?void 0:o(e)}}})(),{on:w.on,subscribe(e,t){const n=m(e);let r=!1,o=!1,a=()=>{C--,r=!0};return(async()=>{for(C++;;)try{const[i,s,l]=await R();if(r)return s();const c=w.onMessage(n,(e=>{switch(e.type){case Yu.Next:return void t.next(e.payload);case Yu.Error:return o=!0,r=!0,t.error(e.payload),void a();case Yu.Complete:return r=!0,void a()}}));return i.send(Ju({id:n,type:Yu.Subscribe,payload:e},v)),a=()=>{r||i.readyState!==E.OPEN||i.send(Ju({id:n,type:Yu.Complete},v)),C--,r=!0,s()},void await l.finally(c)}catch(e){if(!P(e))return}})().then((()=>{o||t.complete()})).catch((e=>{t.error(e)})),()=>{r||a()}},async dispose(){if(_=!0,S){const[e]=await S;e.close(1e3,"Normal Closure")}},terminate(){S&&w.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}function td(e){return Hu(e)&&"code"in e&&"reason"in e}!function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(Ku||(Ku={})),function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(Yu||(Yu={}));const nd=e.createContext(null);let rd;const od=(e,t,n)=>{const r=new _s({uri:"https://ai.ocelotbot.com/graphql"}),o=(a=async()=>({headers:{"x-contextual-entity":e}}),new Ii((function(e,t){var n=ia(e,[]);return new ri((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=Ii.from([o,r]),s=ur?Rs((e=>{let{query:t}=e;const n=Ci(t);return"OperationDefinition"===n.kind&&"subscription"===n.operation}),(rd||(rd=ed({url:"wss://ai.ocelotbot.com/graphql",connectionParams:()=>t.current(),lazy:!0,keepAlive:3e4,retryAttempts:1/0,retryWait:(l={start:1e3,ceiling:16e3},async function(e){let t=2**e*l.start;t>l.ceiling&&(t=l.ceiling),await new Promise((e=>setTimeout(e,t+Math.floor(2700*Math.random()+300))))}),shouldRetry:()=>!0}),rd.on("connected",(()=>{n(rn(!0))})),rd.on("connecting",(()=>{var e;n((e=!0,(t,n)=>{const{messages:{liveChat:r,liveChatReconnecting:o}}=n();r&&e!==o&&t({type:"TOGGLE_LIVE_CHAT_RECONNECTING",status:e})}))})),rd.on("closed",(()=>{n(rn(!1))}))),new Wu(rd)),i):i;var l;const c=new pu({possibleTypes:{LiveChatConversationSystemEventPayload:["ConversationSupersededPayload","ConversationQueueChanged","StartTypingOperatorPayload","StopTypingOperatorPayload","ClientAuthenticatedPayload"]}});return[new Bu({link:s,cache:c}),rd]},ad=()=>{const t=ce((e=>e.conversationState.conversation_id)),n=(0,e.useRef)((()=>({conversationId:t,clientVersion:"5.28.0",role:"Client"})));return(0,e.useEffect)((()=>{n.current=()=>({conversationId:t,clientVersion:"5.28.0",role:"Client"})}),[t]),n};function id(t){let{children:n}=t;const r=Ze(),o=(0,e.useContext)(nd),a=ce((e=>e.messages.liveChat)),i=(0,e.useRef)(a),s=ad(),l=(0,e.useRef)();if((0,e.useContext)(Vu()).client)return n;let c,u;return l.current&&([c,u]=l.current),l.current&&i.current===a||(i.current=a,u&&u.terminate(),l.current=od(o,s,r),[c,u]=l.current),c?e.createElement(qu,{client:c},n):n}id.propTypes={children:cr().any.isRequired};const sd=(0,e.createContext)(null),ld=sd.Provider,cd=()=>(0,e.useContext)(sd);const ud=e.createContext(null),dd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{e=JSON.parse(void 0)}catch(e){}return He(e)};var pd=o(5388),fd=o(3351);const hd=(0,fd.Z)((0,vo.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");var md=o(4107),vd=o(2308);function gd(e,t){return gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gd(e,t)}function yd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gd(e,t)}const bd=!1,Ed=e.createContext(null);var wd="unmounted",xd="exited",Sd="entering",kd="entered",Cd="exiting",Od=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=xd,r.appearStatus=Sd):o=kd:o=e.unmountOnExit||e.mountOnEnter?wd:xd,r.state={status:o},r.nextCallback=null,r}yd(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wd?{status:xd}: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!==Sd&&n!==kd&&(t=Sd):n!==Sd&&n!==kd||(t=Cd)}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===Sd){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ee.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xd&&this.setState({status:wd})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ee.findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||bd?this.safeSetState({status:kd},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Sd},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:kd},(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:ee.findDOMNode(this);t&&!bd?(this.props.onExit(r),this.safeSetState({status:Cd},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:xd},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:xd},(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:ee.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===wd)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,vd.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Ed.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function Td(){}Od.contextType=Ed,Od.propTypes={},Od.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Td,onEntering:Td,onEntered:Td,onExit:Td,onExiting:Td,onExited:Td},Od.UNMOUNTED=wd,Od.EXITED=xd,Od.ENTERING=Sd,Od.ENTERED=kd,Od.EXITING=Cd;const _d=Od;function Rd(){return(0,ko.Z)(Xo.Z)}const Pd=e=>e.scrollTop;function Id(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}}var Nd=o(8594);const Ad=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ld(e){return`scale(${e}, ${e**2})`}const Dd={entering:{opacity:1,transform:Ld(1)},entered:{opacity:1,transform:"none"}},Md="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zd=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=_d}=t,g=(0,md.Z)(t,Ad),y=e.useRef(),b=e.useRef(),E=Rd(),w=e.useRef(null),x=(0,Nd.Z)(a.ref,n),S=(0,Nd.Z)(w,x),k=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},C=k(u),O=k(((e,t)=>{Pd(e);const{duration:n,delay:r,easing:o}=Id({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=E.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[E.transitions.create("opacity",{duration:a,delay:r}),E.transitions.create("transform",{duration:Md?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),T=k(c),_=k(f),R=k((e=>{const{duration:t,delay:n,easing:r}=Id({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=E.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[E.transitions.create("opacity",{duration:o,delay:n}),E.transitions.create("transform",{duration:Md?o:.666*o,delay:Md?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ld(.75),d&&d(e)})),P=k(p);return e.useEffect((()=>()=>{clearTimeout(y.current)}),[]),(0,vo.jsx)(v,(0,qo.Z)({appear:o,in:s,nodeRef:w,onEnter:O,onEntered:T,onEntering:C,onExit:R,onExited:P,onExiting:_,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,qo.Z)({style:(0,qo.Z)({opacity:0,transform:Ld(.75),visibility:"exited"!==t||s?void 0:"hidden"},Dd[t],h,a.props.style),ref:S},n))}))}));Zd.muiSupportAuto=!0;const Fd=Zd;var jd=o(8668),$d=o(2862),Bd=o(8502),zd=o(6483),Vd=o(8615),qd=o(9428),Wd=o(2368);function Ud(e){return(0,qd.Z)("MuiPaper",e)}(0,Wd.Z)("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 Hd=["className","component","elevation","square","variant"],Qd=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Gd=(0,pd.ZP)("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,qo.Z)({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,qo.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Vd.Fq)("#fff",Qd(t.elevation))}, ${(0,Vd.Fq)("#fff",Qd(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Kd=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=n,l=(0,md.Z)(n,Hd),c=(0,qo.Z)({},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,$d.Z)(a,Ud,o)})(c);return(0,vo.jsx)(Gd,(0,qo.Z)({as:o,ownerState:c,className:(0,jd.Z)(u.root,r),ref:t},l))})),Yd=Kd;function Xd(e){return(0,qd.Z)("MuiAppBar",e)}(0,Wd.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Jd=["className","color","enableColorOnDark","position"],ep=(e,t)=>`${null==e?void 0:e.replace(")","")}, ${t})`,tp=(0,pd.ZP)(Yd,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,zd.Z)(n.position)}`],t[`color${(0,zd.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,qo.Z)({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,qo.Z)({},"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,qo.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,qo.Z)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ep(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ep(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:ep(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ep(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"}))})),np=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=n,s=(0,md.Z)(n,Jd),l=(0,qo.Z)({},n,{color:o,position:i,enableColorOnDark:a}),c=(e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${(0,zd.Z)(t)}`,`position${(0,zd.Z)(n)}`]};return(0,$d.Z)(o,Xd,r)})(l);return(0,vo.jsx)(tp,(0,qo.Z)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,jd.Z)(c.root,r,"fixed"===i&&"mui-fixed"),ref:t},s))})),rp=np;function op(e){return(0,qd.Z)("MuiToolbar",e)}(0,Wd.Z)("MuiToolbar",["root","gutters","regular","dense"]);const ap=["className","component","disableGutters","variant"],ip=(0,pd.ZP)("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,qo.Z)({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)),sp=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular"}=n,s=(0,md.Z)(n,ap),l=(0,qo.Z)({},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,$d.Z)(o,op,t)})(l);return(0,vo.jsx)(ip,(0,qo.Z)({as:o,className:(0,jd.Z)(c.root,r),ref:t,ownerState:l},s))})),lp=sp;var cp=o(6466),up=o(1766);const dp=["sx"],pp=e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{up.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t};function fp(e){const{sx:t}=e,n=(0,vd.Z)(e,dp),{systemProps:r,otherProps:o}=pp(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,cp.P)(n)?(0,bo.Z)({},r,n):r}:(0,bo.Z)({},r,t),(0,bo.Z)({},o,{sx:a})}function hp(e){return(0,qd.Z)("MuiTypography",e)}(0,Wd.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const mp=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vp=(0,pd.ZP)("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,zd.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,qo.Z)({margin:0},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}))),gp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bp=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiTypography"}),r=(e=>yp[e]||e)(n.color),o=fp((0,qo.Z)({},n,{color:r})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=gp}=o,f=(0,md.Z)(o,mp),h=(0,qo.Z)({},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]||gp[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,zd.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,$d.Z)(s,hp,i)})(h);return(0,vo.jsx)(vp,(0,qo.Z)({as:m,ref:t,ownerState:h,className:(0,jd.Z)(v.root,i)},f))})),Ep=bp;var wp=o(7225),xp=o(7037);function Sp(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 kp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Cp(t,n,r){var o=Sp(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:kp(s,"exit",t),enter:kp(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:kp(s,"exit",t),enter:kp(s,"enter",t)})}})),a}var Op=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Tp=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}yd(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,Sp(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:kp(t,"appear",r),enter:kp(t,"enter",r),exit:kp(t,"exit",r)})}))):Cp(t,a,i),firstRender:!1}},r.handleExited=function(e,t){var n=Sp(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,bo.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=(0,vd.Z)(t,["component","childFactory"]),a=this.state.contextValue,i=Op(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(Ed.Provider,{value:a},i):e.createElement(Ed.Provider,{value:a},e.createElement(n,o,i))},n}(e.Component);Tp.propTypes={},Tp.defaultProps={component:"div",childFactory:function(e){return e}};const _p=Tp;const Rp=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,jd.Z)(n,r.ripple,r.rippleVisible,o&&r.ripplePulsate),h={width:s,height:s,top:-s/2+i,left:-s/2+a},m=(0,jd.Z)(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,vo.jsx)("span",{className:f,style:h,children:(0,vo.jsx)("span",{className:m})})};const Pp=(0,Wd.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ip=["center","classes","className"];let Np,Ap,Lp,Dp,Mp=e=>e;const Zp=Ko(Np||(Np=Mp`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),Fp=Ko(Ap||(Ap=Mp`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),jp=Ko(Lp||(Lp=Mp`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),$p=(0,pd.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Bp=(0,pd.ZP)(Rp,{name:"MuiTouchRipple",slot:"Ripple"})(Dp||(Dp=Mp`
  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;
  }
`),Pp.rippleVisible,Zp,550,(({theme:e})=>e.transitions.easing.easeInOut),Pp.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Pp.child,Pp.childLeaving,Fp,550,(({theme:e})=>e.transitions.easing.easeInOut),Pp.childPulsate,jp,(({theme:e})=>e.transitions.easing.easeInOut)),zp=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=(0,md.Z)(r,Ip),[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(null),h=e.useRef(null),m=e.useRef(null);e.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const v=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;c((e=>[...e,(0,vo.jsx)(Bp,{classes:{ripple:(0,jd.Z)(a.ripple,Pp.ripple),rippleVisible:(0,jd.Z)(a.rippleVisible,Pp.rippleVisible),ripplePulsate:(0,jd.Z)(a.ripplePulsate,Pp.ripplePulsate),child:(0,jd.Z)(a.child,Pp.child),childLeaving:(0,jd.Z)(a.childLeaving,Pp.childLeaving),childPulsate:(0,jd.Z)(a.childPulsate,Pp.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,vo.jsx)($p,(0,qo.Z)({className:(0,jd.Z)(Pp.root,a.root,i),ref:m},s,{children:(0,vo.jsx)(_p,{component:null,exit:!0,children:l})}))})),Vp=zp;function qp(e){return(0,qd.Z)("MuiButtonBase",e)}const Wp=(0,Wd.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Up=["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"],Hp=(0,pd.ZP)("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"},[`&.${Wp.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qp=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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:E,onKeyUp:w,onMouseDown:x,onMouseLeave:S,onMouseUp:k,onTouchEnd:C,onTouchMove:O,onTouchStart:T,tabIndex:_=0,TouchRippleProps:R,touchRippleRef:P,type:I}=r,N=(0,md.Z)(r,Up),A=e.useRef(null),L=e.useRef(null),D=(0,Nd.Z)(L,P),{isFocusVisibleRef:M,onFocus:Z,onBlur:F,ref:j}=(0,xp.Z)(),[$,B]=e.useState(!1);c&&$&&B(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{B(!0),A.current.focus()}})),[]);const[z,V]=e.useState(!1);e.useEffect((()=>{V(!0)}),[]);const q=z&&!u&&!c;function W(e,t,n=d){return(0,wp.Z)((r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0}))}e.useEffect((()=>{$&&p&&!u&&z&&L.current.pulsate()}),[u,p,$,z]);const U=W("start",x),H=W("stop",v),Q=W("stop",g),G=W("stop",k),K=W("stop",(e=>{$&&e.preventDefault(),S&&S(e)})),Y=W("start",T),X=W("stop",C),J=W("stop",O),ee=W("stop",(e=>{F(e),!1===M.current&&B(!1),h&&h(e)}),!1),te=(0,wp.Z)((e=>{A.current||(A.current=e.currentTarget),Z(e),!0===M.current&&(B(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),oe=(0,wp.Z)((e=>{p&&!re.current&&$&&L.current&&" "===e.key&&(re.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),ae=(0,wp.Z)((e=>{p&&" "===e.key&&L.current&&$&&!e.defaultPrevented&&(re.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),w&&w(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(N.href||N.to)&&(ie=f);const se={};"button"===ie?(se.type=void 0===I?"button":I,se.disabled=c):(N.href||N.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=(0,Nd.Z)(j,A),ce=(0,Nd.Z)(n,le);const ue=(0,qo.Z)({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:_,focusVisible:$}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a={root:["root",t&&"disabled",n&&"focusVisible"]},i=(0,$d.Z)(a,qp,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return(0,vo.jsxs)(Hp,(0,qo.Z)({as:ie,className:(0,jd.Z)(de.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:H,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:U,onMouseLeave:K,onMouseUp:G,onDragLeave:Q,onTouchEnd:X,onTouchMove:J,onTouchStart:Y,ref:ce,tabIndex:c?-1:_,type:I},se,N,{children:[i,q?(0,vo.jsx)(Vp,(0,qo.Z)({ref:D,center:a},R)):null]}))})),Gp=Qp;function Kp(e){return(0,qd.Z)("MuiIconButton",e)}const Yp=(0,Wd.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Xp=["edge","children","className","color","disabled","disableFocusRipple","size"],Jp=(0,pd.ZP)(Gp,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,zd.Z)(n.color)}`],n.edge&&t[`edge${(0,zd.Z)(n.edge)}`],t[`size${(0,zd.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,qo.Z)({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,Vd.Fq)(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})=>(0,qo.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,qo.Z)({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Vd.Fq)(e.palette[t.color].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)},{[`&.${Yp.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),ef=e.forwardRef((function(e,t){const n=(0,Bd.Z)({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,md.Z)(n,Xp),d=(0,qo.Z)({},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,zd.Z)(r)}`,o&&`edge${(0,zd.Z)(o)}`,`size${(0,zd.Z)(a)}`]};return(0,$d.Z)(i,Kp,t)})(d);return(0,vo.jsx)(Jp,(0,qo.Z)({className:(0,jd.Z)(p.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},u,{children:o}))})),tf=ef;const nf=function(e){return"string"==typeof e};var rf=o(4991),of=o(7575);const af=e.createContext({});function sf(e){return(0,qd.Z)("MuiListItem",e)}const lf=(0,Wd.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const cf=(0,Wd.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function uf(e){return(0,qd.Z)("MuiListItemSecondaryAction",e)}(0,Wd.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);const df=["className"],pf=(0,pd.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,qo.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),ff=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=(0,md.Z)(r,df),i=e.useContext(af),s=(0,qo.Z)({},r,{disableGutters:i.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,$d.Z)(r,uf,n)})(s);return(0,vo.jsx)(pf,(0,qo.Z)({className:(0,jd.Z)(l.root,o),ownerState:s,ref:n},a))}));ff.muiName="ListItemSecondaryAction";const hf=ff,mf=["className"],vf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],gf=(0,pd.ZP)("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,qo.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,qo.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${cf.root}`]:{paddingRight:48}},{[`&.${lf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Vd.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Vd.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lf.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"}},[`&.${lf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Vd.Fq)(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,Vd.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),yf=(0,pd.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),bf=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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:E,selected:w=!1}=r,x=(0,md.Z)(r.ContainerProps,mf),S=(0,md.Z)(r,vf),k=e.useContext(af),C={dense:h||k.dense||!1,alignItems:o,disableGutters:v},O=e.useRef(null);(0,of.Z)((()=>{a&&O.current&&O.current.focus()}),[a]);const T=e.Children.toArray(s),_=T.length&&(0,rf.Z)(T[T.length-1],["ListItemSecondaryAction"]),R=(0,qo.Z)({},r,{alignItems:o,autoFocus:a,button:i,dense:C.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,$d.Z)(d,sf,r)})(R),I=(0,Nd.Z)(O,n),N=u.Root||gf,A=d.root||{},L=(0,qo.Z)({className:(0,jd.Z)(P.root,A.className,l),disabled:m},S);let D=c||"li";return i&&(L.component=c||"div",L.focusVisibleClassName=(0,jd.Z)(lf.focusVisible,b),D=Gp),_?(D=L.component||c?D:"div","li"===p&&("li"===D?D="div":"li"===L.component&&(L.component="div")),(0,vo.jsx)(af.Provider,{value:C,children:(0,vo.jsxs)(yf,(0,qo.Z)({as:p,className:(0,jd.Z)(P.container,f),ref:I,ownerState:R},x,{children:[(0,vo.jsx)(N,(0,qo.Z)({},A,!nf(N)&&{as:D,ownerState:(0,qo.Z)({},R,A.ownerState)},L,{children:T})),T.pop()]}))})):(0,vo.jsx)(af.Provider,{value:C,children:(0,vo.jsxs)(N,(0,qo.Z)({},A,{as:D,ref:I,ownerState:R},!nf(N)&&{ownerState:(0,qo.Z)({},R,A.ownerState)},L,{children:[T,E&&(0,vo.jsx)(hf,{children:E})]}))})})),Ef=bf;function wf(e){return(0,qd.Z)("MuiListItemAvatar",e)}(0,Wd.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);const xf=["className"],Sf=(0,pd.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({ownerState:e})=>(0,qo.Z)({minWidth:56,flexShrink:0},"flex-start"===e.alignItems&&{marginTop:8}))),kf=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=(0,md.Z)(r,xf),i=e.useContext(af),s=(0,qo.Z)({},r,{alignItems:i.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,$d.Z)(r,wf,n)})(s);return(0,vo.jsx)(Sf,(0,qo.Z)({className:(0,jd.Z)(l.root,o),ownerState:s,ref:n},a))})),Cf=kf,Of=(0,fd.Z)((0,vo.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 Tf(e){return(0,qd.Z)("MuiAvatar",e)}(0,Wd.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const _f=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Rf=(0,pd.ZP)("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,qo.Z)({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,qo.Z)({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]})))),Pf=(0,pd.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),If=(0,pd.ZP)(Of,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const Nf=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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,md.Z)(r,_f);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,qo.Z)({},l,{src:u,srcSet:d})),v=u||d,g=v&&"error"!==m,y=(0,qo.Z)({},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,$d.Z)(o,Tf,t)})(y);return h=g?(0,vo.jsx)(Pf,(0,qo.Z)({alt:o,src:u,srcSet:d,sizes:c,ownerState:y,className:b.img},l)):null!=a?a:v&&o?o[0]:(0,vo.jsx)(If,{className:b.fallback}),(0,vo.jsx)(Rf,(0,qo.Z)({as:s,ownerState:y,className:(0,jd.Z)(b.root,i),ref:n},f,{children:h}))})),Af=Nf;function Lf(e){return(0,qd.Z)("MuiListItemText",e)}const Df=(0,Wd.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Mf=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Zf=(0,pd.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Df.primary}`]:t.primary},{[`& .${Df.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,qo.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),Ff=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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,md.Z)(r,Mf),{dense:f}=e.useContext(af);let h=null!=l?l:o,m=u;const v=(0,qo.Z)({},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,$d.Z)(i,Lf,t)})(v);return null==h||h.type===Ep||i||(h=(0,vo.jsx)(Ep,(0,qo.Z)({variant:f?"body2":"body1",className:g.primary,component:"span",display:"block"},c,{children:h}))),null==m||m.type===Ep||i||(m=(0,vo.jsx)(Ep,(0,qo.Z)({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,vo.jsxs)(Zf,(0,qo.Z)({className:(0,jd.Z)(g.root,a),ownerState:v,ref:n},p,{children:[h,m]}))})),jf=Ff,$f=(0,fd.Z)((0,vo.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"QuestionAnswer");function Bf(e){return(0,qd.Z)("MuiFab",e)}const zf=(0,Wd.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Vf=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],qf=(0,pd.ZP)(Gp,{name:"MuiFab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,zd.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,t[(0,zd.Z)(n.size)],t[n.color]]}})((({theme:e,ownerState:t})=>{var n,r;return(0,qo.Z)({},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"},[`&.${zf.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${zf.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}},"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,qo.Z)({},"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}}}))),Wf=e.forwardRef((function(e,t){const n=(0,Bd.Z)({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,md.Z)(n,Vf),f=(0,qo.Z)({},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,zd.Z)(o)}`,"inherit"===t?"colorInherit":t]};return(0,$d.Z)(a,Bf,r)})(f);return(0,vo.jsx)(qf,(0,qo.Z)({className:(0,jd.Z)(h.root,o),component:i,disabled:s,focusRipple:!l,focusVisibleClassName:(0,jd.Z)(h.focusVisible,c),ownerState:f,ref:t},p,{children:r}))})),Uf=Wf,Hf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qf={entering:{transform:"none"},entered:{transform:"none"}},Gf=e.forwardRef((function(t,n){const r=Rd(),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=_d}=t,b=(0,md.Z)(t,Hf),E=e.useRef(null),w=(0,Nd.Z)(s.ref,n),x=(0,Nd.Z)(E,w),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},k=S(p),C=S(((e,t)=>{Pd(e);const n=Id({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)})),O=S(d),T=S(m),_=S((e=>{const t=Id({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)})),R=S(h);return(0,vo.jsx)(y,(0,qo.Z)({appear:i,in:c,nodeRef:E,onEnter:C,onEntered:O,onEntering:k,onExit:_,onExited:R,onExiting:T,addEndListener:e=>{a&&a(E.current,e)},timeout:g},b,{children:(t,n)=>e.cloneElement(s,(0,qo.Z)({style:(0,qo.Z)({transform:"scale(0)",visibility:"exited"!==t||c?void 0:"hidden"},Qf[t],v,s.props.style),ref:x},n))}))})),Kf=Gf,Yf=t=>{const n=e.useRef({});return e.useEffect((()=>{n.current=t})),n.current};function Xf(e){return(0,qd.Z)("BaseBadge",e)}(0,Wd.Z)("BaseBadge",["root","badge","invisible"]);var Jf=o(9576);function eh(e,t={},n){return nf(e)?t:(0,bo.Z)({},t,{ownerState:(0,bo.Z)({},t.ownerState,n)})}function th(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}function nh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,jd.Z)(null==o?void 0:o.className,null==r?void 0:r.className,a,null==n?void 0:n.className),t=(0,bo.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=(0,bo.Z)({},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=function(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}((0,bo.Z)({},o,r)),s=th(r),l=th(o),c=t(i),u=(0,jd.Z)(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,bo.Z)({},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,bo.Z)({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function rh(e,t){return"function"==typeof e?e(t):e}const oh=["elementType","externalSlotProps","ownerState"];function ah(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=(0,vd.Z)(e,oh),i=rh(r,o),{props:s,internalRef:l}=nh((0,bo.Z)({},a,{externalSlotProps:i})),c=(0,Jf.Z)(l,(0,Jf.Z)(null==i?void 0:i.ref,null==(t=e.additionalProps)?void 0:t.ref));return eh(n,(0,bo.Z)({},s,{ref:c}),o)}const ih=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],sh=e.forwardRef((function(e,t){const{component:n,children:r,components:o={},componentsProps:a={},max:i=99,showZero:s=!1}=e,l=(0,vd.Z)(e,ih),{badgeContent:c,max:u,displayValue:d,invisible:p}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=Yf({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}}((0,bo.Z)({},e,{max:i})),f=(0,bo.Z)({},e,{badgeContent:c,invisible:p,max:u,showZero:s}),h=(e=>{const{invisible:t}=e,n={root:["root"],badge:["badge",t&&"invisible"]};return(0,$d.Z)(n,Xf,void 0)})(f),m=n||o.Root||"span",v=ah({elementType:m,externalSlotProps:a.root,externalForwardedProps:l,additionalProps:{ref:t},ownerState:f,className:h.root}),g=o.Badge||"span",y=ah({elementType:g,externalSlotProps:a.badge,ownerState:f,className:h.badge});return(0,vo.jsxs)(m,(0,bo.Z)({},v,{children:[r,(0,vo.jsx)(g,(0,bo.Z)({},y,{children:d}))]}))})),lh=sh,ch=e=>!e||!nf(e);function uh(e){return(0,qd.Z)("MuiBadge",e)}const dh=(0,Wd.Z)("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"]),ph=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],fh=(0,pd.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),hh=(0,pd.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,zd.Z)(n.anchorOrigin.vertical)}${(0,zd.Z)(n.anchorOrigin.horizontal)}${(0,zd.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,zd.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,qo.Z)({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%",[`&.${dh.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%",[`&.${dh.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%",[`&.${dh.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%",[`&.${dh.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%",[`&.${dh.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%",[`&.${dh.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%",[`&.${dh.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%",[`&.${dh.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),mh=e.forwardRef((function(e,t){var n,r,o,a;const i=(0,Bd.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:s={vertical:"top",horizontal:"right"},className:l,component:c="span",components:u={},componentsProps:d={},overlap:p="rectangular",color:f="default",invisible:h=!1,max:m,badgeContent:v,showZero:g=!1,variant:y="standard"}=i,b=(0,md.Z)(i,ph),E=Yf({anchorOrigin:s,color:f,overlap:p,variant:y});let w=h;!1===h&&(0===v&&!g||null==v&&"dot"!==y)&&(w=!0);const{color:x=f,overlap:S=p,anchorOrigin:k=s,variant:C=y}=w?E:i,O=(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,zd.Z)(n.vertical)}${(0,zd.Z)(n.horizontal)}`,`anchorOrigin${(0,zd.Z)(n.vertical)}${(0,zd.Z)(n.horizontal)}${(0,zd.Z)(o)}`,`overlap${(0,zd.Z)(o)}`,"default"!==t&&`color${(0,zd.Z)(t)}`]};return(0,$d.Z)(s,uh,i)})((0,qo.Z)({},i,{anchorOrigin:k,invisible:w,color:x,overlap:S,variant:C}));let T;return"dot"!==C&&(T=v&&Number(v)>m?`${m}+`:v),(0,vo.jsx)(lh,(0,qo.Z)({invisible:h,badgeContent:T,showZero:g,max:m},b,{components:(0,qo.Z)({Root:fh,Badge:hh},u),className:(0,jd.Z)(null==(n=d.root)?void 0:n.className,O.root,l),componentsProps:{root:(0,qo.Z)({},d.root,ch(u.Root)&&{as:c,ownerState:(0,qo.Z)({},null==(r=d.root)?void 0:r.ownerState,{anchorOrigin:k,color:x,overlap:S,variant:C})}),badge:(0,qo.Z)({},d.badge,{className:(0,jd.Z)(O.badge,null==(o=d.badge)?void 0:o.className)},ch(u.Badge)&&{ownerState:(0,qo.Z)({},null==(a=d.badge)?void 0:a.ownerState,{anchorOrigin:k,color:x,overlap:S,variant:C})})},ref:t}))})),vh=mh;var gh=function(e,t){return function(n){return function(){!function(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)}}(n,e),Yt(!e)(t),e&&t({type:"RESET_CONFIG_OVERRIDES"})}}};const yh=Z(Ne((function(e){return{chatbotUi:e.chatbotUi}})))((function(t){var n=t.chatbotUi,r=t.children,o=t.dispatch,a=(0,e.useCallback)(gh(n.open,o),[o,n.open]),i=(0,e.useCallback)(gh(!0,o),[o]);return e.createElement(e.Fragment,null,r(a,{close:i}))})),bh=(0,fd.Z)((0,vo.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.96zM3 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 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"}),"CloudOff");var Eh=(0,pd.ZP)("div")((function(){return{"@keyframes pulse":{"0%":{transform:"scale(0.1)",opacity:0},"50%":{opacity:1},"100%":{transform:"scale(1.2)",opacity:1}}}}));const wh=function(t){var n=t.iconClassName,r={animation:ce((function(e){return e.messages.liveChatReconnecting}))?"$pulse 2s infinite":void 0};return e.createElement(Eh,null,e.createElement(bh,{className:"".concat(n),sx:r}))};var xh=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,Sh=e=>e.substring(1,e.length-1),kh=(e,t=!0,n="",r="")=>e.split(xh).map((e=>{if(!e.match(xh))return e;const t=Sh(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}})(Sh(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})),Ch=/^\{.*\}$/,Oh=/\?\?/g,Th=(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 o;case"many":return a;default:return i}})(t,e,i))||"").replace(Oh,i);const s=a.length?((e,t,n)=>t.reduce(((t,n)=>{var r,o;return null!=(o=n.match(Ch)?(()=>{var e;const r=Object.fromEntries(Sh(n).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)),[]));return null!=(e=r[t])?e:r["*"]})():null==(r=e[n])?void 0:r.call(e,t))?o:t}),n))(n,a,i):i;return(""+(null!=s?s:"")).trim()})).join(""),_h=()=>new Proxy(Object.assign((()=>""),{}),{get:(e,t)=>"length"===t?0:_h()}),Rh=(e,t)=>{const n={},r=new Intl.PluralRules(e);return(e,...o)=>((e,t,n,r)=>{const o=r[0],a=o&&"object"==typeof o&&o.constructor===Object,i=1===r.length&&a?o:r;return Th(e,t,n,i)})(((e,t)=>e[t]||(e[t]=kh(t)))(n,e),r,t,o)};var Ph=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty((()=>""),"name",{writable:!0}),e),Ih=(e,t)=>new Proxy(Ph(e,t),{get:(e,n)=>n===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map((e=>Ph(e,t)))):Ih(e[n],t)}),Nh=e,Ah=((e,t={})=>{const n=Nh.createContext({});return{component:r=>{const[o,a]=Nh.useState(null),[i,s]=Nh.useState(_h()),l=n=>{a(n),s((()=>function(e,t,n={}){return Ih(t,Rh(e,n))}(n,e[n],t[n])))};!o&&l(r.locale);const c={setLocale:l,locale:o,LL:i};return Nh.createElement(n.Provider,{value:c},r.children)},context:n}})(Tt,_t),Lh=Ah.component,Dh=Ah.context,Mh=function(){return(0,e.useContext)(Dh)};const Zh=Lh;var Fh=function(){return Fh=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},Fh.apply(this,arguments)},jh=function(e,t){return e?e.launch_button_text?e.launch_button_text:t.DEFAULT_LAUNCHER({bot:e.name}):""},$h="Fab",Bh={avatar:"".concat($h,"-avatar"),button:"".concat($h,"-button"),buttonCollapsed:"".concat($h,"-buttonCollapsed"),buttonContent:"".concat($h,"-buttonContent"),text:"".concat($h,"-text"),textCollapsed:"".concat($h,"-textCollapsed"),textExpanded:"".concat($h,"-textExpanded"),zoomContainer:"".concat($h,"-zoomContainer"),unread:"".concat($h,"-unread"),disconnectedIcon:"".concat($h,"-disconnectedIcon")},zh=(0,pd.ZP)("div")((function(e){var t,n=e.theme;return(t={})["& .".concat(Bh.avatar)]={height:"24px",width:"24px"},t["& .".concat(Bh.button)]={height:"auto",margin:n.spacing(1),"&:focus-visible":{border:"1px solid ".concat(n.palette.primary.contrastText)}},t["& .".concat(Bh.buttonCollapsed)]={padding:0},t["& .".concat(Bh.buttonContent)]={alignItems:"center",display:"flex",padding:n.spacing(1.5,0)},t["& .".concat(Bh.text)]={overflow:"hidden"},t["& .".concat(Bh.textCollapsed)]={display:"none"},t["& .".concat(Bh.textExpanded)]={margin:n.spacing(0,1),maxWidth:function(e){var t=e.config,n=e.LL;return 13*jh(t,n).length}},t["& .".concat(Bh.zoomContainer)]={display:"inline-block"},t["& .".concat(Bh.unread)]={top:n.spacing(1.5),right:n.spacing(1.5),zIndex:1051},t["& .".concat(Bh.disconnectedIcon)]={fontSize:"14px"},t}));function Vh(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=Mh().LL,p=jh(n,d),f=s?p:"Click to open ".concat(null==n?void 0:n.name,", an interactive chatbot here to answer your questions."),h=(0,e.useRef)(null);return(0,e.useEffect)((function(){u&&(null==h?void 0:h.current)&&setTimeout((function(){h.current&&h.current.focus()}),500)}),[u]),e.createElement(Uf,{"aria-label":f,className:"".concat(Bh.button," ").concat(s?"":Bh.buttonCollapsed),color:"secondary",onClick:l(r),role:"button",tabIndex:0,variant:"extended",ref:h,id:"launchChatbot"},e.createElement("div",{className:Bh.buttonContent},a?e.createElement(Af,{alt:null==n?void 0:n.name,"aria-hidden":"true",classes:{root:Bh.avatar},src:null==n?void 0:n.avatar}):e.createElement($f,null),e.createElement(Ep,{variant:"button",color:"inherit",role:"heading","aria-level":1,className:"".concat(Bh.text," ").concat(s?Bh.textExpanded:Bh.textCollapsed)},p)))}function qh(t){var n=t.unread,r=t.disconnected,o=r||n>0;return e.createElement(yh,null,(function(a){return e.createElement(Kf,{in:!0,timeout:750},e.createElement(zh,{className:Bh.zoomContainer},o?e.createElement(vh,{classes:{badge:Bh.unread},color:"primary",badgeContent:r?e.createElement(wh,{iconClassName:Bh.disconnectedIcon}):n},e.createElement(Vh,Fh({toggle:a},t))):e.createElement(Vh,Fh({toggle:a},t))))}))}const Wh=function(t){return e.createElement(ud.Consumer,null,(function(n){return e.createElement(qh,Fh({config:n},t))}))},Uh="Callout",Hh={listRoot:`${Uh}-listRoot`,listText:`${Uh}-listText`,calloutHeading:`${Uh}-calloutHeading`,container:`${Uh}-container`,toolbar:`${Uh}-toolbar`,labelGrow:`${Uh}-labelGrow`,launcher:`${Uh}-launcher`,leftIcon:`${Uh}-leftIcon`,speechBubble:`${Uh}-speechBubble`,speechBubbleLeft:`${Uh}-speechBubbleLeft`,speechBubbleRight:`${Uh}-speechBubbleRight`},Qh=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${Hh.listRoot}`]:{alignItems:"flex-start",margin:0,paddingTop:t.spacing(2.5),paddingBottom:t.spacing(2.5)},[`& .${Hh.listText}`]:{margin:0,color:t.palette.text.primary},[`& .${Hh.calloutHeading}`]:{flex:1,lineHeight:"40px",padding:t.spacing(0,1)},[`& .${Hh.container}`]:{borderRadius:t.spacing(2,2,0,0)},[`& .${Hh.toolbar}`]:{padding:t.spacing(0,1.5)},[`& .${Hh.labelGrow}`]:{transitionDelay:"1s",transitionDuration:"350ms",transitionProperty:"marginRight",transitionTimingFunction:"cubic-bezier(1, 0.07, 0.58, 1)"},[`& .${Hh.launcher}`]:{position:"fixed",zIndex:1299,maxWidth:"75%"},[`& .${Hh.leftIcon}`]:{marginRight:t.spacing(1)},[`& .${Hh.speechBubble}`]:{backgroundColor:"#fff",borderRadius:t.spacing(2),boxShadow:"0px 0px 20px 0px rgba(0,0,0,0.3)",display:"inline-block",maxWidth:320,cursor:"pointer",position:"relative"},[`& .${Hh.speechBubbleLeft}`]:{marginLeft:t.spacing(2),"&::after":{background:"radial-gradient(circle at bottom right, transparent 58%, #fff 60%)",bottom:t.spacing(3),content:'""',height:t.spacing(3),position:"absolute",left:-22,transform:"rotate(180deg)",width:t.spacing(4)}},[`& .${Hh.speechBubbleRight}`]:{marginRight:t.spacing(1.5),"&::after":{background:"radial-gradient(circle at top right, transparent 58%, #fff 60%)",bottom:t.spacing(3),content:'""',height:t.spacing(3),position:"absolute",right:-24,width:t.spacing(4)}}}}));function Gh(t){let{position:n,onClose:r,root:o,toggle:a,autoFocus:i}=t;const s=(0,e.useContext)(ud),l=(0,e.useRef)(null);(0,e.useEffect)((()=>{i&&l.current&&setTimeout((()=>l.current.focus()),500)}),[i]);const c="left"===n?Hh.speechBubbleLeft:Hh.speechBubbleRight;return e.createElement(Fd,{in:!0,timeout:1200},e.createElement(Qh,null,e.createElement("span",{role:"button","aria-labelledby":"bubbleCalloutHeading bubbleCalloutBody",tabIndex:0,onClick:a(o),onKeyUp:e=>{"Space"!==e.code&&"Enter"!==e.code||(a(o)(),e.preventDefault())},onKeyDown:e=>{"Space"===e.code&&e.preventDefault()},className:`${Hh.speechBubble} ${c}`,ref:l},e.createElement("div",{className:Hh.speechBubbleInner},e.createElement(rp,{position:"relative",className:Hh.container},e.createElement(lp,{className:Hh.toolbar},e.createElement(Ep,{id:"bubbleCalloutHeading",className:Hh.calloutHeading,variant:"h6",component:"div",color:"inherit",role:"heading","aria-level":"1"},s.callout_heading),e.createElement(tf,{color:"inherit",onClick:r,"aria-label":"Collapse the chatbot",role:"application",onKeyDown:e=>{"Space"!==e.code&&"Enter"!==e.code||(r(e),e.preventDefault())},size:"large"},e.createElement(hd,null)))),e.createElement(Ef,{classes:{root:Hh.listRoot},component:"div"},e.createElement(Cf,null,e.createElement(Af,{src:s.avatar,alt:s.name,"aria-hidden":"true"})),e.createElement(jf,{primaryTypographyProps:{id:"bubbleCalloutBody"},role:"contentinfo",classes:{root:Hh.listText},primary:s.callout_body}))))))}function Kh(t){let{onClose:n,options:r,root:o,showHelpChat:a,mobile:i,unread:s,disconnected:l,autoFocus:c}=t;return e.createElement(yh,null,(t=>e.createElement(e.Fragment,null,a&&r.launcherStyles.right&&e.createElement(Gh,{classes:Hh,position:"right",onClose:n,root:o,toggle:t,autoFocus:c}),e.createElement(Wh,{root:o,showText:!i&&!a,unread:s,disconnected:l}),a&&r.launcherStyles.left&&e.createElement(Gh,{classes:Hh,position:"left",onClose:n,root:o,toggle:t}))))}Gh.propTypes={position:cr().string.isRequired,onClose:cr().func.isRequired,root:cr().any.isRequired,toggle:cr().func.isRequired,autoFocus:cr().bool.isRequired},Kh.propTypes={mobile:cr().bool,onClose:cr().func.isRequired,options:cr().object.isRequired,root:cr().any.isRequired,showHelpChat:cr().bool.isRequired,unread:cr().number.isRequired,disconnected:cr().bool.isRequired,autoFocus:cr().bool},Kh.defaultProps={mobile:!1,autoFocus:!1};const Yh=Kh,Xh=(e,t,n)=>Math.min(Math.max(e,t),n);class Jh 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=Xh(i/(r-o),0,1),t=r>a?i+a-l.height-s-r:Math.floor(e*o)-l.height-s;c=Xh(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}}Jh.propTypes={absMargin:cr().string.isRequired,align:cr().string.isRequired,launcherRef:cr().object},Jh.defaultProps={launcherRef:null};const em=Jh;function tm(){return tm=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},tm.apply(this,arguments)}const nm=e=>()=>{const t={transform:"translateZ(0)"},{top:n,...r}=e.launcherStyles;return n?{...t,...r,bottom:n}:{...t,...e.launcherStyles}},rm={launcher:"ChatbotLauncher-launcher"},om=(0,pd.ZP)("div")((()=>({[`&.${rm.launcher}`]:{alignItems:"flex-end",display:"flex",position:"fixed",zIndex:1e6,maxWidth:"85%"}}))),am=e.forwardRef(((t,n)=>{const{adaptLauncherStylesForTopScroll:r,updateCalloutBubbleStatus:o,options:a,root:i,userPrefs:s,browser:l,messages:c,disconnected:u,autoFocus:d}=t;return e.createElement(om,{className:rm.launcher,ref:n,style:a.topScroll?r():a.launcherStyles},((t,n,r,o,a,i,s,l)=>"calloutBubble"===r.buttonStyle?e.createElement(Yh,{onClose:e=>{n(!1),e.stopPropagation()},options:r,root:t,showHelpChat:o.calloutBubbleOpen,mobile:a.lessThan.medium,unread:i.unread,disconnected:s,autoFocus:l}):e.createElement(Wh,{showText:!a.lessThan.medium,root:t,showAvatar:1===r.includeAvatar,unread:i.unread,disconnected:s,autoFocus:l}))(i,o,a,s,l,c,u,d))}));am.displayName="ChatbotLauncher",am.propTypes={adaptLauncherStylesForTopScroll:cr().func.isRequired,browser:cr().object.isRequired,messages:cr().object.isRequired,options:cr().object,updateCalloutBubbleStatus:cr().func.isRequired,root:cr().any.isRequired,userPrefs:cr().object.isRequired,disconnected:cr().bool.isRequired,autoFocus:cr().bool},am.defaultProps={options:dd({}),autoFocus:!1};const im=Z((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,tm({ref:n,adaptLauncherStylesForTopScroll:nm(o)},r)),1===o.topScroll&&e.createElement(em,{launcherRef:n,absMargin:o.launcherStyles[a],align:a}))}return r.displayName=`Roaming(${t.displayName})`,r.propTypes={options:cr().object.isRequired},r}),Ne((e=>({browser:e.browser,userPrefs:e.userPrefs,messages:e.messages,disconnected:e.messages.liveChat&&e.messages.liveChatHasDisconnected&&!e.messages.liveChatConnected||!1})),{updateCalloutBubbleStatus:e=>({type:"UPDATE_CALLOUT_BUBBLE_STATUS",open:e})},null,{forwardRef:!0}))(am);var sm;!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(sm||(sm={}));var lm=new Map;function cm(e){var t;switch(e){case sm.Query:t="Query";break;case sm.Mutation:t="Mutation";break;case sm.Subscription:t="Subscription"}return t}function um(e,t){var n=function(e){var t,n,r=lm.get(e);if(r)return r;__DEV__?ma(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):ma(!!e&&!!e.kind,32);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)}__DEV__?ma(!o.length||a.length||i.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):ma(!o.length||a.length||i.length||s.length,33),__DEV__?ma(a.length+i.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(a.length," queries, ").concat(s.length," ")+"subscriptions and ".concat(i.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):ma(a.length+i.length+s.length<=1,34),n=a.length?sm.Query:sm.Mutation,a.length||i.length||(n=sm.Subscription);var d=a.length?a:i.length?i:s;__DEV__?ma(1===d.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(d.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):ma(1===d.length,35);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 lm.set(e,f),f}(e),r=cm(t),o=cm(n.type);__DEV__?ma(n.type===t,"Running a ".concat(r," requires a graphql ")+"".concat(r,", but a ").concat(o," was used instead.")):ma(n.type===t,36)}function dm(t){var n=(0,e.useContext)(Vu()),r=t||n.client;return __DEV__?ma(!!r,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):ma(!!r,31),r}function pm(t,n){var r=(0,e.useRef)(!1),o=dm(null==n?void 0:n.client);um(t,sm.Subscription);var a=(0,e.useState)({loading:!(null==n?void 0:n.skip),error:void 0,data:void 0,variables:null==n?void 0:n.variables}),i=a[0],s=a[1];r.current||(r.current=!0,(null==n?void 0:n.onSubscriptionData)&&__DEV__&&ma.warn(n.onData?"'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used.":"'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."),(null==n?void 0:n.onSubscriptionComplete)&&__DEV__&&ma.warn(n.onComplete?"'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used.":"'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."));var l=(0,e.useState)((function(){return(null==n?void 0:n.skip)?null:o.subscribe({query:t,variables:null==n?void 0:n.variables,fetchPolicy:null==n?void 0:n.fetchPolicy,context:null==n?void 0:n.context})})),c=l[0],u=l[1],d=(0,e.useRef)(!1);(0,e.useEffect)((function(){return function(){d.current=!0}}),[]);var p=(0,e.useRef)({client:o,subscription:t,options:n});return(0,e.useEffect)((function(){var e,r,a,i,l=null==n?void 0:n.shouldResubscribe;"function"==typeof l&&(l=!!l(n)),(null==n?void 0:n.skip)?(!(null==n?void 0:n.skip)!=!(null===(e=p.current.options)||void 0===e?void 0:e.skip)||d.current)&&(s({loading:!1,data:void 0,error:void 0,variables:null==n?void 0:n.variables}),u(null),d.current=!1):(!1===l||o===p.current.client&&t===p.current.subscription&&(null==n?void 0:n.fetchPolicy)===(null===(r=p.current.options)||void 0===r?void 0:r.fetchPolicy)&&!(null==n?void 0:n.skip)==!(null===(a=p.current.options)||void 0===a?void 0:a.skip)&&El(null==n?void 0:n.variables,null===(i=p.current.options)||void 0===i?void 0:i.variables))&&!d.current||(s({loading:!0,data:void 0,error:void 0,variables:null==n?void 0:n.variables}),u(o.subscribe({query:t,variables:null==n?void 0:n.variables,fetchPolicy:null==n?void 0:n.fetchPolicy,context:null==n?void 0:n.context})),d.current=!1),Object.assign(p.current,{client:o,subscription:t,options:n})}),[o,t,n,d.current]),(0,e.useEffect)((function(){if(c){var e=c.subscribe({next:function(e){var t,r,a={loading:!1,data:e.data,error:void 0,variables:null==n?void 0:n.variables};s(a),(null===(t=p.current.options)||void 0===t?void 0:t.onData)?p.current.options.onData({client:o,data:a}):(null===(r=p.current.options)||void 0===r?void 0:r.onSubscriptionData)&&p.current.options.onSubscriptionData({client:o,subscriptionData:a})},error:function(e){var t,r;s({loading:!1,data:void 0,error:e,variables:null==n?void 0:n.variables}),null===(r=null===(t=p.current.options)||void 0===t?void 0:t.onError)||void 0===r||r.call(t,e)},complete:function(){var e,t;(null===(e=p.current.options)||void 0===e?void 0:e.onComplete)?p.current.options.onComplete():(null===(t=p.current.options)||void 0===t?void 0:t.onSubscriptionComplete)&&p.current.options.onSubscriptionComplete()}});return function(){e.unsubscribe()}}}),[c]),i}function fm(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const hm=/\r\n|[\n\r]/g;function mm(e,t){let n=0,r=1;for(const o of e.body.matchAll(hm)){if("number"==typeof o.index||fm(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function vm(e){return gm(e.source,mm(e.source,e.start))}function gm(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+ym([[`${i} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+ym([[i-1+" |",u[o-1]],[`${i} |`,d],["|","^".padStart(l)],[`${i+1} |`,u[o+1]]])}function ym(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 bm 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=Em(Array.isArray(a)?a:a?[a]:void 0);const d=Em(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=>mm(i,e))):null==d?void 0:d.map((e=>mm(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,bm):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"+vm(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+gm(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 Em(e){return void 0===e||0===e.length?void 0:e}function wm(e,t,n){return new bm(`Syntax Error: ${n}`,{source:e,positions:[t]})}var xm,Sm;!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(xm||(xm={})),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"}(Sm||(Sm={}));class km{constructor(e){const t=new Ai(Sm.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!==Sm.EOF)do{if(e.next)e=e.next;else{const t=Im(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Sm.COMMENT);return e}}function Cm(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Om(e,t){return Tm(e.charCodeAt(t))&&_m(e.charCodeAt(t+1))}function Tm(e){return e>=55296&&e<=56319}function _m(e){return e>=56320&&e<=57343}function Rm(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return Sm.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Pm(e,t,n,r,o){const a=e.line,i=1+n-e.lineStart;return new Ai(t,n,r,a,i,o)}function Im(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 Nm(e,o);case 33:return Pm(e,Sm.BANG,o,o+1);case 36:return Pm(e,Sm.DOLLAR,o,o+1);case 38:return Pm(e,Sm.AMP,o,o+1);case 40:return Pm(e,Sm.PAREN_L,o,o+1);case 41:return Pm(e,Sm.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return Pm(e,Sm.SPREAD,o,o+3);break;case 58:return Pm(e,Sm.COLON,o,o+1);case 61:return Pm(e,Sm.EQUALS,o,o+1);case 64:return Pm(e,Sm.AT,o,o+1);case 91:return Pm(e,Sm.BRACKET_L,o,o+1);case 93:return Pm(e,Sm.BRACKET_R,o,o+1);case 123:return Pm(e,Sm.BRACE_L,o,o+1);case 124:return Pm(e,Sm.PIPE,o,o+1);case 125:return Pm(e,Sm.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?Bm(e,o):Dm(e,o)}if(is(t)||45===t)return Am(e,o,t);if(ls(t))return zm(e,o);throw wm(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Cm(t)||Om(n,o)?`Unexpected character: ${Rm(e,o)}.`:`Invalid character: ${Rm(e,o)}.`)}return Pm(e,Sm.EOF,r,r)}function Nm(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(Cm(e))++o;else{if(!Om(n,o))break;o+=2}}return Pm(e,Sm.COMMENT,t,o,n.slice(t+1,o))}function Am(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),is(a))throw wm(e.source,o,`Invalid number, unexpected digit after 0: ${Rm(e,o)}.`)}else o=Lm(e,o,a),a=r.charCodeAt(o);if(46===a&&(i=!0,a=r.charCodeAt(++o),o=Lm(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=Lm(e,o,a),a=r.charCodeAt(o)),46===a||ls(a))throw wm(e.source,o,`Invalid number, expected digit but got: ${Rm(e,o)}.`);return Pm(e,i?Sm.FLOAT:Sm.INT,t,o,r.slice(t,o))}function Lm(e,t,n){if(!is(n))throw wm(e.source,t,`Invalid number, expected digit but got: ${Rm(e,t)}.`);const r=e.source.body;let o=t+1;for(;is(r.charCodeAt(o));)++o;return o}function Dm(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),Pm(e,Sm.STRING,t,o+1,i);if(92!==r){if(10===r||13===r)break;if(Cm(r))++o;else{if(!Om(n,o))throw wm(e.source,o,`Invalid character within String: ${Rm(e,o)}.`);o+=2}}else{i+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?Mm(e,o):Zm(e,o):$m(e,o);i+=t.value,o+=t.size,a=o}}throw wm(e.source,o,"Unterminated string.")}function Mm(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||!Cm(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|jm(e),r<0)break}throw wm(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function Zm(e,t){const n=e.source.body,r=Fm(n,t+2);if(Cm(r))return{value:String.fromCodePoint(r),size:6};if(Tm(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=Fm(n,t+8);if(_m(e))return{value:String.fromCodePoint(r,e),size:12}}throw wm(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Fm(e,t){return jm(e.charCodeAt(t))<<12|jm(e.charCodeAt(t+1))<<8|jm(e.charCodeAt(t+2))<<4|jm(e.charCodeAt(t+3))}function jm(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $m(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 wm(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Bm(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=Pm(e,Sm.BLOCK_STRING,t,a+3,us(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(Cm(r))++a;else{if(!Om(n,a))throw wm(e.source,a,`Invalid character within String: ${Rm(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 wm(e.source,a,"Unterminated string.")}function zm(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){if(!cs(n.charCodeAt(o)))break;++o}return Pm(e,Sm.NAME,t,o,n.slice(t,o))}class Vm{constructor(e,t={}){const n=function(e){return La(e,Da)}(e)?e:new Da(e);this._lexer=new km(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(Sm.NAME);return this.node(e,{kind:Fi.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Fi.DOCUMENT,definitions:this.many(Sm.SOF,this.parseDefinition,Sm.EOF)})}parseDefinition(){if(this.peek(Sm.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===Sm.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 wm(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(Sm.BRACE_L))return this.node(e,{kind:Fi.OPERATION_DEFINITION,operation:Zi.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(Sm.NAME)&&(n=this.parseName()),this.node(e,{kind:Fi.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Sm.NAME);switch(e.value){case"query":return Zi.QUERY;case"mutation":return Zi.MUTATION;case"subscription":return Zi.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Sm.PAREN_L,this.parseVariableDefinition,Sm.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Fi.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Sm.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Sm.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Sm.DOLLAR),this.node(e,{kind:Fi.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Fi.SELECTION_SET,selections:this.many(Sm.BRACE_L,this.parseSelection,Sm.BRACE_R)})}parseSelection(){return this.peek(Sm.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(Sm.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:Fi.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Sm.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Sm.PAREN_L,t,Sm.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(Sm.COLON),this.node(t,{kind:Fi.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Sm.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(Sm.NAME)?this.node(e,{kind:Fi.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Fi.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:Fi.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:Fi.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 Sm.BRACKET_L:return this.parseList(e);case Sm.BRACE_L:return this.parseObject(e);case Sm.INT:return this.advanceLexer(),this.node(t,{kind:Fi.INT,value:t.value});case Sm.FLOAT:return this.advanceLexer(),this.node(t,{kind:Fi.FLOAT,value:t.value});case Sm.STRING:case Sm.BLOCK_STRING:return this.parseStringLiteral();case Sm.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:Fi.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Fi.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Fi.NULL});default:return this.node(t,{kind:Fi.ENUM,value:t.value})}case Sm.DOLLAR:if(e){if(this.expectToken(Sm.DOLLAR),this._lexer.token.kind===Sm.NAME){const e=this._lexer.token.value;throw wm(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:Fi.STRING,value:e.value,block:e.kind===Sm.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:Fi.LIST,values:this.any(Sm.BRACKET_L,(()=>this.parseValueLiteral(e)),Sm.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:Fi.OBJECT,fields:this.any(Sm.BRACE_L,(()=>this.parseObjectField(e)),Sm.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(Sm.COLON),this.node(t,{kind:Fi.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Sm.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Sm.AT),this.node(t,{kind:Fi.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(Sm.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Sm.BRACKET_R),t=this.node(e,{kind:Fi.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(Sm.BANG)?this.node(e,{kind:Fi.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Fi.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Sm.STRING)||this.peek(Sm.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(Sm.BRACE_L,this.parseOperationTypeDefinition,Sm.BRACE_R);return this.node(e,{kind:Fi.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Sm.COLON);const n=this.parseNamedType();return this.node(e,{kind:Fi.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:Fi.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:Fi.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Sm.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Sm.BRACE_L,this.parseFieldDefinition,Sm.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Sm.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:Fi.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(Sm.PAREN_L,this.parseInputValueDef,Sm.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Sm.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(Sm.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:Fi.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:Fi.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:Fi.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(Sm.EQUALS)?this.delimitedMany(Sm.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:Fi.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(Sm.BRACE_L,this.parseEnumValueDefinition,Sm.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Fi.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 wm(this._lexer.source,this._lexer.token.start,`${qm(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:Fi.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(Sm.BRACE_L,this.parseInputValueDef,Sm.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Sm.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(Sm.BRACE_L,this.parseOperationTypeDefinition,Sm.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Fi.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:Fi.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:Fi.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:Fi.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:Fi.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:Fi.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:Fi.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Sm.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:Fi.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(Sm.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(xm,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Ni(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 wm(this._lexer.source,t.start,`Expected ${Wm(e)}, found ${qm(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Sm.NAME||t.value!==e)throw wm(this._lexer.source,t.start,`Expected "${e}", found ${qm(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Sm.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return wm(this._lexer.source,t.start,`Unexpected ${qm(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!==Sm.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw wm(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function qm(e){const t=e.value;return Wm(e.kind)+(null!=t?` "${t}"`:"")}function Wm(e){return function(e){return e===Sm.BANG||e===Sm.DOLLAR||e===Sm.AMP||e===Sm.PAREN_L||e===Sm.PAREN_R||e===Sm.SPREAD||e===Sm.COLON||e===Sm.EQUALS||e===Sm.AT||e===Sm.BRACKET_L||e===Sm.BRACKET_R||e===Sm.BRACE_L||e===Sm.PIPE||e===Sm.BRACE_R}(e)?`"${e}"`:e}var Um=new Map,Hm=new Map,Qm=!0,Gm=!1;function Km(e){return e.replace(/[\s,]+/g," ").trim()}function Ym(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,o=Km((i=e.loc).source.body.substring(i.start,i.end)),a=Hm.get(r);a&&!a.has(o)?Qm&&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||Hm.set(r,a=new Set),a.add(o),t.has(o)||(t.add(o),n.push(e))}else n.push(e);var i})),aa(aa({},e),{definitions:n})}function Xm(e){var t=Km(e);if(!Um.has(t)){var n=function(e,t){return new Vm(e,t).parseDocument()}(e,{experimentalFragmentVariables:Gm,allowLegacyFragmentVariables:Gm});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Um.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}(Ym(n)))}return Um.get(t)}function Jm(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]})),Xm(r)}var ev,tv=Jm,nv=function(){Um.clear(),Hm.clear()},rv=function(){Qm=!1},ov=function(){Gm=!0},av=function(){Gm=!1};(ev=Jm||(Jm={})).gql=tv,ev.resetCaches=nv,ev.disableFragmentWarnings=rv,ev.enableExperimentalFragmentVariables=ov,ev.disableExperimentalFragmentVariables=av,Jm.default=Jm;const iv=Jm`
  subscription OnMessage($conversationId: String!) {
    onMessage(conversationId: $conversationId) {
      messageType
      message
      actions {
        type
        text {
          en
          es
        }
      }
      operatorAvatarUrl
      operatorName
      resources {
        nids
        nid
        type
        autoplay
        title {
          en
        }
        duration
        url
        snippet {
          en
          es
        }
        actionLabel
        contentType
      }
    }
  }
`,sv=Jm`
  subscription SystemEvent($chatbotIds: [String!]!, $conversationId: String) {
    onLiveChatConversationSystemEvent(chatbotIds: $chatbotIds, conversationId: $conversationId) {
      event
      payload {
        ... on StartTypingOperatorPayload {
          conversationId
        }
        ... on StopTypingOperatorPayload {
          conversationId
        }
        ... on ConversationClientNameChangedPayload {
          conversationId
          clientName
        }
        ... on ConversationSupersededPayload {
          conversationId
          newConversation {
            authUri
            _id
            last_turn
            operatorId
            operatorName
            mode
            audience {
              campus
              office
            }
            lastMessage
            firstMessage {
              messageType
              message
              actions {
                type
                text {
                  en
                  es
                }
              }
              operatorAvatarUrl
              operatorName
              resources {
                nids
                nid
                type
                autoplay
                title {
                  en
                }
                duration
                url
                snippet {
                  en
                  es
                }
                actionLabel
                contentType
              }
            }
          }
        }
      }
    }
  }
`,lv=()=>{const e=Ze(),t=ce((e=>e.conversationState));pm(iv,{variables:{conversationId:t.conversation_id},shouldResubscribe:!0,onError:e=>{console.error(e)},onData:t=>{let{data:n}=t;const r=n&&n.data&&n.data.onMessage&&n.data.onMessage;r&&e(on(r))}})},cv=()=>{const t=Ze(),n=(0,e.useContext)(ud),r=(0,e.useContext)(nd),o=ce((e=>e.conversationState));pm(sv,{variables:{conversationId:o.conversation_id,chatbotIds:[r]},shouldResubscribe:!0,fetchPolicy:"no-cache",onError:e=>{console.error(e)},onData:e=>{let{data:r}=e;const o=r&&r.data&&r.data.onLiveChatConversationSystemEvent;o&&t(((e,t)=>(n,r)=>{const{conversationState:o}=r();switch(t.event){case"LiveConversationStartTypingOperator":n(Kt(!0));break;case"LiveConversationStopTypingOperator":n(Kt(!1));break;case"LiveConversationClientNameChanged":n(Ht({...o,name:t.payload.clientName}));break;case"LiveConversationSuperseded":if(t.payload.conversationId===o.conversation_id){const a=t.payload.newConversation,i=()=>{n(un(e)),n(Ht({conversation_id:a._id}))},s="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(a.mode===Je.LiveChat){if(a.operatorId)if(a.authUri){const t=()=>{n(en(a.operatorName)),cn(a.authUri,e.context,n)};n(Gt(ln(s,t,i,r())))}else n(en(a.operatorName));else{const t=`${a.audience.office} (${a.audience.campus})`;if(a.authUri){const o=()=>{n(tn(t)),n({type:"UPDATE_LIVE_CHAT_ASSIGNEE",assignee:null}),cn(a.authUri,e.context,n)};n(Gt(ln(s,o,i,r())))}else n(tn(t)),n({type:"UPDATE_LIVE_CHAT_ASSIGNEE",assignee:null})}n(Ht({...o,conversation_id:a._id,campus:a.audience.campus,office:a.audience.office})),a.firstMessage&&n(on(a.firstMessage))}else n(un(e)),n(Ht({conversation_id:a._id}))}}})(n,o))}})};const uv=function(){return lv(),cv(),e.createElement("span",null)},dv=Jm`
  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
      }
    }
  }
`,pv=Jm`
  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
    }
  }
`,fv=()=>{const t=Ze(),n=ce((e=>e.conversationState)),r=(0,e.useContext)(nd);pm(dv,{variables:{conversationId:n.conversation_id,chatbotId:r},shouldResubscribe:!0,onError:e=>{console.error(e)},onData:e=>{let{data:n}=e;const r=n&&n.data&&n.data.onCampaignConversationMessage;r&&t(on(r))}})},hv=()=>{const t=Ze(),n=(0,e.useContext)(nd),r=ce((e=>e.conversationState));pm(pv,{variables:{conversationId:r.conversation_id,chatbotId:n},shouldResubscribe:!0,fetchPolicy:"no-cache",onError:e=>{console.error(e)},onData:e=>{let{data:n}=e;const r=n&&n.data&&n.data.onCampaignConversationSystemEvent;r&&t((e=>(t,n)=>{const{conversationState:r}=n();switch(e.event){case"ConversationModeChanged":{const{mode:n,firstMessage:o}=e.payload;t(Ht({...r,agent_campaign:n===Je.Campaign})),o&&t(on(o));break}}})(r))}})};function mv(){return fv(),e.createElement("span",null)}function vv(){return hv(),e.createElement("span",null)}const gv=(0,e.createContext)();function yv(t){let{children:n}=t;return e.createElement(gv.Provider,{value:(0,e.useState)(!1)},n)}yv.propTypes={children:cr().node.isRequired};const bv=()=>(0,e.useContext)(gv);var Ev=o(9387),wv=o(2381),xv=o(8002),Sv=o(77),kv=o(7322);const Cv=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[i,s]=e.useState(null),l=(0,Jf.Z)(e.isValidElement(r)?r.ref:null,n);return(0,Sv.Z)((()=>{a||s(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,a]),(0,Sv.Z)((()=>{if(i&&!a)return(0,kv.Z)(n,i),()=>{(0,kv.Z)(n,null)}}),[n,i,a]),a?e.isValidElement(r)?e.cloneElement(r,{ref:l}):r:i?ee.createPortal(r,i):i}));var Ov=o(9783);function Tv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function _v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rv(e){return parseInt((0,Ov.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Pv(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&&_v(e,o)}))}function Iv(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Nv(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Ev.Z)(e);return t.body===e?(0,Ov.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Tv((0,Ev.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Rv(r)+e}px`;const t=(0,Ev.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Rv(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Ev.Z)(r).body;else{const t=r.parentElement,n=(0,Ov.Z)(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 Av=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Lv(e){const t=[],n=[];return Array.from(e.querySelectorAll(Av)).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 Dv(){return!0}const Mv=function(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:i=Lv,isEnabled:s=Dv,open:l}=t,c=e.useRef(),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,Jf.Z)(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,Ev.Z)(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,Ev.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!o&&s()&&!c.current){if(!n.contains(e.activeElement)){if(t&&f.current!==t.target||e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let o=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(o=i(m.current)),o.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=o[0],n=o[o.length-1];e?n.focus():t.focus()}else n.focus()}}else c.current=!1},n=t=>{g.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.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,s,l,i]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return(0,vo.jsxs)(e.Fragment,{children:[(0,vo.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,vo.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})};function Zv(e){return(0,qd.Z)("MuiModal",e)}(0,Wd.Z)("MuiModal",["root","hidden"]);const Fv=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];const jv=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&&_v(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);Pv(t,e.mount,e.modalRef,r,!0);const o=Iv(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=Iv(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Nv(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Iv(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&&_v(e.modalRef,t),Pv(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&&_v(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},$v=e.forwardRef((function(t,n){var r;const{children:o,classes:a,closeAfterTransition:i=!1,component:s="div",components:l={},componentsProps:c={},container:u,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:f=!1,disablePortal:h=!1,disableRestoreFocus:m=!1,disableScrollLock:v=!1,hideBackdrop:g=!1,keepMounted:y=!1,manager:b=jv,onBackdropClick:E,onClose:w,onKeyDown:x,open:S,onTransitionEnter:k,onTransitionExited:C}=t,O=(0,vd.Z)(t,Fv),[T,_]=e.useState(!0),R=e.useRef({}),P=e.useRef(null),I=e.useRef(null),N=(0,Jf.Z)(I,n),A=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(t),L=null==(r=t["aria-hidden"])||r,D=()=>(R.current.modalRef=I.current,R.current.mountNode=P.current,R.current),M=()=>{b.mount(D(),{disableScrollLock:v}),I.current.scrollTop=0},Z=(0,wv.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(u)||(0,Ev.Z)(P.current).body;b.add(D(),e),I.current&&M()})),F=e.useCallback((()=>b.isTopModal(D())),[b]),j=(0,wv.Z)((e=>{P.current=e,e&&(S&&F()?M():_v(I.current,L))})),$=e.useCallback((()=>{b.remove(D(),L)}),[b,L]);e.useEffect((()=>()=>{$()}),[$]),e.useEffect((()=>{S?Z():A&&i||$()}),[S,$,A,i,Z]);const B=(0,bo.Z)({},t,{classes:a,closeAfterTransition:i,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:f,disablePortal:h,disableRestoreFocus:m,disableScrollLock:v,exited:T,hideBackdrop:g,keepMounted:y}),z=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"]};return(0,$d.Z)(o,Zv,r)})(B),V=()=>{_(!1),k&&k()},q=()=>{_(!0),C&&C(),i&&$()},W={};void 0===o.props.tabIndex&&(W.tabIndex="-1"),A&&(W.onEnter=(0,xv.Z)(V,o.props.onEnter),W.onExited=(0,xv.Z)(q,o.props.onExited));const U=l.Root||s,H=ah({elementType:U,externalSlotProps:c.root,externalForwardedProps:O,additionalProps:{ref:N,role:"presentation",onKeyDown:e=>{x&&x(e),"Escape"===e.key&&F()&&(f||(e.stopPropagation(),w&&w(e,"escapeKeyDown")))}},className:z.root,ownerState:B}),Q=l.Backdrop,G=ah({elementType:Q,externalSlotProps:c.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(E&&E(e),w&&w(e,"backdropClick"))},open:S},ownerState:B});return y||S||A&&!T?(0,vo.jsx)(Cv,{ref:j,container:u,disablePortal:h,children:(0,vo.jsxs)(U,(0,bo.Z)({},H,{children:[!g&&Q?(0,vo.jsx)(Q,(0,bo.Z)({},G)):null,(0,vo.jsx)(Mv,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:m,isEnabled:F,open:S,children:e.cloneElement(o,W)})]}))}):null})),Bv=$v,zv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Vv={entering:{opacity:1},entered:{opacity:1}},qv=e.forwardRef((function(t,n){const r=Rd(),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=_d}=t,b=(0,md.Z)(t,zv),E=e.useRef(null),w=(0,Nd.Z)(s.ref,n),x=(0,Nd.Z)(E,w),S=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},k=S(p),C=S(((e,t)=>{Pd(e);const n=Id({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)})),O=S(d),T=S(m),_=S((e=>{const t=Id({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)})),R=S(h);return(0,vo.jsx)(y,(0,qo.Z)({appear:i,in:c,nodeRef:E,onEnter:C,onEntered:O,onEntering:k,onExit:_,onExited:R,onExiting:T,addEndListener:e=>{a&&a(E.current,e)},timeout:g},b,{children:(t,n)=>e.cloneElement(s,(0,qo.Z)({style:(0,qo.Z)({opacity:0,visibility:"exited"!==t||c?void 0:"hidden"},Vv[t],v,s.props.style),ref:x},n))}))})),Wv=qv;function Uv(e){return(0,qd.Z)("MuiBackdrop",e)}(0,Wd.Z)("MuiBackdrop",["root","invisible"]);const Hv=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],Qv=(0,pd.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,qo.Z)({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"}))),Gv=e.forwardRef((function(e,t){var n,r;const o=(0,Bd.Z)({props:e,name:"MuiBackdrop"}),{children:a,component:i="div",components:s={},componentsProps:l={},className:c,invisible:u=!1,open:d,transitionDuration:p,TransitionComponent:f=Wv}=o,h=(0,md.Z)(o,Hv),m=(0,qo.Z)({},o,{component:i,invisible:u}),v=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,$d.Z)(r,Uv,t)})(m);return(0,vo.jsx)(f,(0,qo.Z)({in:d,timeout:p},h,{children:(0,vo.jsx)(Qv,{"aria-hidden":!0,as:null!=(n=s.Root)?n:i,className:(0,jd.Z)(v.root,c),ownerState:(0,qo.Z)({},m,null==(r=l.root)?void 0:r.ownerState),classes:v,ref:t,children:a})}))})),Kv=Gv,Yv=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],Xv=(0,pd.ZP)("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,qo.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Jv=(0,pd.ZP)(Kv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eg=e.forwardRef((function(t,n){var r,o;const a=(0,Bd.Z)({name:"MuiModal",props:t}),{BackdropComponent:i=Jv,BackdropProps:s,closeAfterTransition:l=!1,children:c,component:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:y=!1,hideBackdrop:b=!1,keepMounted:E=!1,theme:w}=a,x=(0,md.Z)(a,Yv),[S,k]=e.useState(!0),C={closeAfterTransition:l,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:g,disableScrollLock:y,hideBackdrop:b,keepMounted:E},O=(0,qo.Z)({},a,C,{exited:S}),T=(e=>e.classes)(O),_=null!=(r=null!=(o=d.Root)?o:u)?r:Xv;return(0,vo.jsx)(Bv,(0,qo.Z)({components:(0,qo.Z)({Root:_,Backdrop:i},d),componentsProps:{root:()=>(0,qo.Z)({},rh(p.root,O),!nf(_)&&{as:u,theme:w}),backdrop:()=>(0,qo.Z)({},s,rh(p.backdrop,O))},onTransitionEnter:()=>k(!1),onTransitionExited:()=>k(!0),ref:n},x,{classes:T},C,{children:c}))})),tg=eg;var ng=o(3425),rg=o(1206);const og=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ag(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=(0,rg.Z)(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 ig=e.forwardRef((function(t,n){const r=Rd(),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:E=a,TransitionComponent:w=_d}=t,x=(0,md.Z)(t,og),S=e.useRef(null),k=(0,Nd.Z)(l.ref,S),C=(0,Nd.Z)(k,n),O=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},T=O(((e,t)=>{ag(u,e,c),Pd(e),f&&f(e,t)})),_=O(((e,t)=>{const n=Id({timeout:E,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,qo.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,qo.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),R=O(h),P=O(y),I=O((e=>{const t=Id({timeout:E,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),ag(u,e,c),v&&v(e)})),N=O((e=>{e.style.webkitTransition="",e.style.transition="",g&&g(e)})),A=e.useCallback((()=>{S.current&&ag(u,S.current,c)}),[u,c]);return e.useEffect((()=>{if(p||"down"===u||"right"===u)return;const e=(0,ng.Z)((()=>{S.current&&ag(u,S.current,c)})),t=(0,rg.Z)(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,p,c]),e.useEffect((()=>{p||A()}),[p,A]),(0,vo.jsx)(w,(0,qo.Z)({nodeRef:S,onEnter:T,onEntered:R,onEntering:_,onExit:I,onExited:N,onExiting:P,addEndListener:e=>{i&&i(S.current,e)},appear:s,in:p,timeout:E},x,{children:(t,n)=>e.cloneElement(l,(0,qo.Z)({ref:C,style:(0,qo.Z)({visibility:"exited"!==t||p?void 0:"hidden"},b,l.props.style)},n))}))})),sg=ig;function lg(e){return(0,qd.Z)("MuiDrawer",e)}(0,Wd.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const cg=["BackdropProps"],ug=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],dg=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},pg=(0,pd.ZP)(tg,{name:"MuiDrawer",slot:"Root",overridesResolver:dg})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),fg=(0,pd.ZP)("div",{shouldForwardProp:pd.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:dg})({flex:"0 0 auto"}),hg=(0,pd.ZP)(Yd,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,zd.Z)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,zd.Z)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,qo.Z)({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}`}))),mg={left:"right",right:"left",top:"down",bottom:"up"};const vg=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiDrawer"}),o=Rd(),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=sg,transitionDuration:y=a,variant:b="temporary"}=r,E=(0,md.Z)(r.ModalProps,cg),w=(0,md.Z)(r,ug),x=e.useRef(!1);e.useEffect((()=>{x.current=!0}),[]);const S=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?mg[t]:t}(o,i),k=i,C=(0,qo.Z)({},r,{anchor:k,elevation:u,open:h,variant:b},w),O=(e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,zd.Z)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,zd.Z)(n)}`]};return(0,$d.Z)(o,lg,t)})(C),T=(0,vo.jsx)(hg,(0,qo.Z)({elevation:"temporary"===b?u:0,square:!0},m,{className:(0,jd.Z)(O.paper,m.className),ownerState:C,children:l}));if("permanent"===b)return(0,vo.jsx)(fg,(0,qo.Z)({className:(0,jd.Z)(O.root,O.docked,c),ownerState:C,ref:n},w,{children:T}));const _=(0,vo.jsx)(g,(0,qo.Z)({in:h,direction:mg[S],timeout:y,appear:x.current},v,{children:T}));return"persistent"===b?(0,vo.jsx)(fg,(0,qo.Z)({className:(0,jd.Z)(O.root,O.docked,c),ownerState:C,ref:n},w,{children:_})):(0,vo.jsx)(pg,(0,qo.Z)({BackdropProps:(0,qo.Z)({},s,p,{transitionDuration:y}),className:(0,jd.Z)(O.root,O.modal,c),open:h,ownerState:C,onClose:f,hideBackdrop:d,ref:n},w,E,{children:_}))})),gg=vg;function yg(e){return(0,qd.Z)("MuiDivider",e)}const bg=(0,Wd.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Eg=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wg=(0,pd.ZP)("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,qo.Z)({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,Vd.Fq)(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"})),(({theme:e,ownerState:t})=>(0,qo.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,qo.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,qo.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),xg=(0,pd.ZP)("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,qo.Z)({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)`}))),Sg=e.forwardRef((function(e,t){const n=(0,Bd.Z)({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,md.Z)(n,Eg),h=(0,qo.Z)({},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,$d.Z)(c,yg,r)})(h);return(0,vo.jsx)(wg,(0,qo.Z)({as:i,className:(0,jd.Z)(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?(0,vo.jsx)(xg,{className:m.wrapper,ownerState:h,children:o}):null}))})),kg=Sg,Cg=(0,e.createContext)();function Og(t){let{children:n}=t;const r=(0,e.useRef)(),[o,a]=(0,e.useState)(),i=()=>{r.current&&a(r.current.offsetHeight)};return(0,e.useEffect)((()=>(i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i))),[]),e.createElement(Cg.Provider,{value:o},n(r))}Og.propTypes={children:cr().func.isRequired};const Tg=(0,fd.Z)((0,vo.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _g=o(6091),Rg=o(4625);const Pg=["className","component"];var Ig=o(7714),Ng=o(8603);const Ag=function(t={}){const{defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o,styleFunctionSx:a=Rg.Z}=t,i=(0,_g.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(a),s=e.forwardRef((function(e,t){const a=(0,ko.Z)(n),s=fp(e),{className:l,component:c="div"}=s,u=(0,vd.Z)(s,Pg);return(0,vo.jsx)(i,(0,bo.Z)({as:c,ref:t,className:(0,jd.Z)(l,o?o(r):r),theme:a},u))}));return s}({defaultTheme:(0,Ng.Z)(),defaultClassName:"MuiBox-root",generateClassName:Ig.Z.generate}),Lg=Ag;var Dg=o(2068),Mg=o(8633),Zg=o(2078);const Fg=["onChange","maxRows","minRows","style","value"];function jg(e,t){return parseInt(e[t],10)||0}const $g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Bg(e){return null==e||0===Object.keys(e).length}const zg=e.forwardRef((function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=(0,vd.Z)(t,Fg),{current:c}=e.useRef(null!=s),u=e.useRef(null),d=(0,Jf.Z)(n,u),p=e.useRef(null),f=e.useRef(0),[h,m]=e.useState({}),v=e.useCallback((()=>{const e=u.current,n=(0,Ov.Z)(e).getComputedStyle(e);if("0px"===n.width)return{};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["box-sizing"],s=jg(n,"padding-bottom")+jg(n,"padding-top"),l=jg(n,"border-bottom-width")+jg(n,"border-top-width"),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();Bg(e)||m((t=>g(t,e)))}),[v]);e.useEffect((()=>{const e=(0,Zg.Z)((()=>{f.current=0,u.current&&(()=>{const e=v();Bg(e)||(0,ee.flushSync)((()=>{m((t=>g(t,e)))}))})()})),t=(0,Ov.Z)(u.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(u.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),(0,Sv.Z)((()=>{y()})),e.useEffect((()=>{f.current=0}),[s]);return(0,vo.jsxs)(e.Fragment,{children:[(0,vo.jsx)("textarea",(0,bo.Z)({value:s,onChange:e=>{f.current=0,c||y(),r&&r(e)},ref:d,rows:a,style:(0,bo.Z)({height:h.outerHeightStyle,overflow:h.overflow?"hidden":null},i)},l)),(0,vo.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,bo.Z)({},$g,i,{padding:0})})]})}));function Vg({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 qg=e.createContext();function Wg(){return e.useContext(qg)}function Ug(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Hg(e,t=!1){return e&&(Ug(e.value)&&""!==e.value||t&&Ug(e.defaultValue)&&""!==e.defaultValue)}function Qg(e){return(0,qd.Z)("MuiInputBase",e)}const Gg=(0,Wd.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Kg=["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","startAdornment","type","value"],Yg=(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,zd.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xg=(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]},Jg=(0,pd.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yg})((({theme:e,ownerState:t})=>(0,qo.Z)({},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",[`&.${Gg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,qo.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),ey=(0,pd.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xg})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,qo.Z)({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,qo.Z)({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] + .${Gg.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},[`&.${Gg.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"})})),ty=(0,vo.jsx)(Jo,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ny=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:v="input",inputProps:g={},inputRef:y,maxRows:b,minRows:E,multiline:w=!1,name:x,onBlur:S,onChange:k,onClick:C,onFocus:O,onKeyDown:T,onKeyUp:_,placeholder:R,readOnly:P,renderSuffix:I,rows:N,startAdornment:A,type:L="text",value:D}=r,M=(0,md.Z)(r,Kg),Z=null!=g.value?g.value:D,{current:F}=e.useRef(null!=Z),j=e.useRef(),$=e.useCallback((e=>{0}),[]),B=(0,Nd.Z)(g.ref,$),z=(0,Nd.Z)(y,B),V=(0,Nd.Z)(j,z),[q,W]=e.useState(!1),U=Wg();const H=Vg({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=U?U.focused:q,e.useEffect((()=>{!U&&d&&q&&(W(!1),S&&S())}),[U,d,q,S]);const Q=U&&U.onFilled,G=U&&U.onEmpty,K=e.useCallback((e=>{Hg(e)?Q&&Q():G&&G()}),[Q,G]);(0,of.Z)((()=>{F&&K({value:Z})}),[Z,K,F]);e.useEffect((()=>{K(j.current)}),[]);let Y=v,X=g;w&&"input"===Y&&(X=N?(0,qo.Z)({type:void 0,minRows:N,maxRows:N},X):(0,qo.Z)({type:void 0,maxRows:b,minRows:E},X),Y=zg);e.useEffect((()=>{U&&U.setAdornedStart(Boolean(A))}),[U,A]);const J=(0,qo.Z)({},r,{color:H.color||"primary",disabled:H.disabled,endAdornment:f,error:H.error,focused:H.focused,formControl:U,fullWidth:h,hiddenLabel:H.hiddenLabel,multiline:w,size:H.size,startAdornment:A,type:L}),ee=(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,zd.Z)(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl","small"===p&&"sizeSmall",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,$d.Z)(m,Qg,t)})(J),te=l.Root||Jg,ne=c.root||{},re=l.Input||ey;return X=(0,qo.Z)({},X,c.input),(0,vo.jsxs)(e.Fragment,{children:[!p&&ty,(0,vo.jsxs)(te,(0,qo.Z)({},ne,!nf(te)&&{ownerState:(0,qo.Z)({},J,ne.ownerState)},{ref:n,onClick:e=>{j.current&&e.currentTarget===e.target&&j.current.focus(),C&&C(e)}},M,{className:(0,jd.Z)(ee.root,ne.className,s),children:[A,(0,vo.jsx)(qg.Provider,{value:null,children:(0,vo.jsx)(re,(0,qo.Z)({ownerState:J,"aria-invalid":H.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:H.disabled,id:m,onAnimationStart:e=>{K("mui-auto-fill-cancel"===e.animationName?j.current:{value:"x"})},name:x,placeholder:R,readOnly:P,required:H.required,rows:N,value:Z,onKeyDown:T,onKeyUp:_,type:L},X,!nf(re)&&{as:Y,ownerState:(0,qo.Z)({},J,X.ownerState)},{ref:V,className:(0,jd.Z)(ee.input,X.className),onBlur:e=>{S&&S(e),g.onBlur&&g.onBlur(e),U&&U.onBlur?U.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||j.current;if(null==t)throw new Error((0,Mg.Z)(1));K({value:t.value})}g.onChange&&g.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{H.disabled?e.stopPropagation():(O&&O(e),g.onFocus&&g.onFocus(e),U&&U.onFocus?U.onFocus(e):W(!0))}}))}),f,I?I((0,qo.Z)({},H,{startAdornment:A})):null]}))]})})),ry=ny;function oy(e){return(0,qd.Z)("MuiInput",e)}const ay=(0,qo.Z)({},Gg,(0,Wd.Z)("MuiInput",["root","underline","input"])),iy=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],sy=(0,pd.ZP)(Jg,{shouldForwardProp:e=>(0,pd.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yg(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,qo.Z)({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"},[`&.${ay.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ay.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${ay.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ay.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ly=(0,pd.ZP)(ey,{name:"MuiInput",slot:"Input",overridesResolver:Xg})({}),cy=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiInput"}),{disableUnderline:r,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:s="input",multiline:l=!1,type:c="text"}=n,u=(0,md.Z)(n,iy),d=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,$d.Z)(r,oy,t);return(0,qo.Z)({},t,o)})(n),p={root:{ownerState:{disableUnderline:r}}},f=a?(0,cp.Z)(a,p):p;return(0,vo.jsx)(ry,(0,qo.Z)({components:(0,qo.Z)({Root:sy,Input:ly},o),componentsProps:f,fullWidth:i,inputComponent:s,multiline:l,ref:t,type:c},u,{classes:d}))}));cy.muiName="Input";const uy=cy;function dy(e){return(0,qd.Z)("MuiFilledInput",e)}const py=(0,qo.Z)({},Gg,(0,Wd.Z)("MuiFilledInput",["root","underline","input"])),fy=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],hy=(0,pd.ZP)(Jg,{shouldForwardProp:e=>(0,pd.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yg(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,qo.Z)({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}},[`&.${py.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${py.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"},[`&.${py.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${py.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${py.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${py.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,qo.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),my=(0,pd.ZP)(ey,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xg})((({theme:e,ownerState:t})=>(0,qo.Z)({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),vy=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiFilledInput"}),{components:r={},componentsProps:o,fullWidth:a=!1,inputComponent:i="input",multiline:s=!1,type:l="text"}=n,c=(0,md.Z)(n,fy),u=(0,qo.Z)({},n,{fullWidth:a,inputComponent:i,multiline:s,type:l}),d=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,$d.Z)(r,dy,t);return(0,qo.Z)({},t,o)})(n),p={root:{ownerState:u},input:{ownerState:u}},f=o?(0,cp.Z)(o,p):p;return(0,vo.jsx)(ry,(0,qo.Z)({components:(0,qo.Z)({Root:hy,Input:my},r),componentsProps:f,fullWidth:a,inputComponent:i,multiline:s,ref:t,type:l},c,{classes:d}))}));vy.muiName="Input";const gy=vy;var yy;const by=["children","classes","className","label","notched"],Ey=(0,pd.ZP)("fieldset")({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%"}),wy=(0,pd.ZP)("legend")((({ownerState:e,theme:t})=>(0,qo.Z)({float:"unset",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,qo.Z)({display:"block",width:"auto",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 xy(e){return(0,qd.Z)("MuiOutlinedInput",e)}const Sy=(0,qo.Z)({},Gg,(0,Wd.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),ky=["components","fullWidth","inputComponent","label","multiline","notched","type"],Cy=(0,pd.ZP)(Jg,{shouldForwardProp:e=>(0,pd.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yg})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,qo.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Sy.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Sy.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Sy.focused} .${Sy.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Sy.error} .${Sy.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Sy.disabled} .${Sy.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,qo.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Oy=(0,pd.ZP)((function(e){const{className:t,label:n,notched:r}=e,o=(0,md.Z)(e,by),a=null!=n&&""!==n,i=(0,qo.Z)({},e,{notched:r,withLabel:a});return(0,vo.jsx)(Ey,(0,qo.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,vo.jsx)(wy,{ownerState:i,children:a?(0,vo.jsx)("span",{children:n}):yy||(yy=(0,vo.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}})),Ty=(0,pd.ZP)(ey,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xg})((({theme:e,ownerState:t})=>(0,qo.Z)({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}))),_y=e.forwardRef((function(t,n){var r;const o=(0,Bd.Z)({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,type:d="text"}=o,p=(0,md.Z)(o,ky),f=(e=>{const{classes:t}=e,n=(0,$d.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xy,t);return(0,qo.Z)({},t,n)})(o),h=Wg(),m=Vg({props:o,muiFormControl:h,states:["required"]}),v=(0,qo.Z)({},o,{color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:i,hiddenLabel:m.hiddenLabel,multiline:c,size:m.size,type:d});return(0,vo.jsx)(ry,(0,qo.Z)({components:(0,qo.Z)({Root:Cy,Input:Ty},a),renderSuffix:t=>(0,vo.jsx)(Oy,{ownerState:v,className:f.notchedOutline,label:null!=l&&""!==l&&m.required?r||(r=(0,vo.jsxs)(e.Fragment,{children:[l," ","*"]})):l,notched:void 0!==u?u:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:n,type:d},p,{classes:(0,qo.Z)({},f,{notchedOutline:null})}))}));_y.muiName="Input";const Ry=_y;function Py(e){return(0,qd.Z)("MuiFormLabel",e)}const Iy=(0,Wd.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ny=["children","className","color","component","disabled","error","filled","focused","required"],Ay=(0,pd.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,qo.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,qo.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Iy.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Iy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Iy.error}`]:{color:(e.vars||e).palette.error.main}}))),Ly=(0,pd.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Iy.error}`]:{color:(e.vars||e).palette.error.main}}))),Dy=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:a="label"}=n,i=(0,md.Z)(n,Ny),s=Vg({props:n,muiFormControl:Wg(),states:["color","required","focused","disabled","error","filled"]}),l=(0,qo.Z)({},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,zd.Z)(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,$d.Z)(l,Py,t)})(l);return(0,vo.jsxs)(Ay,(0,qo.Z)({as:a,ownerState:l,className:(0,jd.Z)(c.root,o),ref:t},i,{children:[r,s.required&&(0,vo.jsxs)(Ly,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),My=Dy;function Zy(e){return(0,qd.Z)("MuiInputLabel",e)}(0,Wd.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fy=["disableAnimation","margin","shrink","variant"],jy=(0,pd.ZP)(My,{shouldForwardProp:e=>(0,pd.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Iy.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,qo.Z)({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,qo.Z)({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,qo.Z)({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,qo.Z)({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% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),$y=e.forwardRef((function(e,t){const n=(0,Bd.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o}=n,a=(0,md.Z)(n,Fy),i=Wg();let s=o;void 0===s&&i&&(s=i.filled||i.focused||i.adornedStart);const l=Vg({props:n,muiFormControl:i,states:["size","variant","required"]}),c=(0,qo.Z)({},n,{disableAnimation:r,formControl:i,shrink:s,size:l.size,variant:l.variant,required:l.required}),u=(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","small"===r&&"sizeSmall",i],asterisk:[s&&"asterisk"]},c=(0,$d.Z)(l,Zy,t);return(0,qo.Z)({},t,c)})(c);return(0,vo.jsx)(jy,(0,qo.Z)({"data-shrink":s,ownerState:c,ref:t},a,{classes:u}))})),By=$y;function zy(e){return(0,qd.Z)("MuiFormControl",e)}(0,Wd.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Vy=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],qy=(0,pd.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,qo.Z)({},t.root,t[`margin${(0,zd.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,qo.Z)({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%"}))),Wy=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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,md.Z)(r,Vy),y=(0,qo.Z)({},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,zd.Z)(n)}`,r&&"fullWidth"]};return(0,$d.Z)(o,zy,t)})(y),[E,w]=e.useState((()=>{let t=!1;return o&&e.Children.forEach(o,(e=>{if(!(0,rf.Z)(e,["Input","Select"]))return;const n=(0,rf.Z)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)})),t})),[x,S]=e.useState((()=>{let t=!1;return o&&e.Children.forEach(o,(e=>{(0,rf.Z)(e,["Input","Select"])&&Hg(e.props,!0)&&(t=!0)})),t})),[k,C]=e.useState(!1);l&&k&&C(!1);const O=void 0===u||l?k:u;const T=e.useCallback((()=>{S(!0)}),[]),_={adornedStart:E,setAdornedStart:w,color:i,disabled:l,error:c,filled:x,focused:O,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{C(!1)},onEmpty:e.useCallback((()=>{S(!1)}),[]),onFilled:T,onFocus:()=>{C(!0)},registerEffect:undefined,required:h,variant:v};return(0,vo.jsx)(qg.Provider,{value:_,children:(0,vo.jsx)(qy,(0,qo.Z)({as:s,ownerState:y,className:(0,jd.Z)(b.root,a),ref:n},g,{children:o}))})})),Uy=Wy;function Hy(e){return(0,qd.Z)("MuiFormHelperText",e)}const Qy=(0,Wd.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Gy;const Ky=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Yy=(0,pd.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,zd.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,qo.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Qy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qy.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Xy=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p"}=n,i=(0,md.Z)(n,Ky),s=Vg({props:n,muiFormControl:Wg(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,qo.Z)({},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,zd.Z)(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,$d.Z)(c,Hy,t)})(l);return(0,vo.jsx)(Yy,(0,qo.Z)({as:a,ownerState:l,className:(0,jd.Z)(c.root,o),ref:t},i,{children:" "===r?Gy||(Gy=(0,vo.jsx)("span",{className:"notranslate",children:"​"})):r}))})),Jy=Xy;var eb=o(6388);function tb(e){return(0,qd.Z)("MuiList",e)}(0,Wd.Z)("MuiList",["root","padding","dense","subheader"]);const nb=["children","className","component","dense","disablePadding","subheader"],rb=(0,pd.ZP)("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,qo.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ob=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=(0,md.Z)(r,nb),d=e.useMemo((()=>({dense:s})),[s]),p=(0,qo.Z)({},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,$d.Z)(a,tb,t)})(p);return(0,vo.jsx)(af.Provider,{value:d,children:(0,vo.jsxs)(rb,(0,qo.Z)({as:i,className:(0,jd.Z)(f.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})})),ab=ob,ib=Tv,sb=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function cb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ub(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 db(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")&&ub(s,a)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const pb=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,md.Z)(t,sb),f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,of.Z)((()=>{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=`${ib((0,eb.Z)(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=(0,Nd.Z)(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))}));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,vo.jsx)(ab,(0,qo.Z)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=(0,eb.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),db(t,r,c,l,lb);else if("ArrowUp"===n)e.preventDefault(),db(t,r,c,l,cb);else if("Home"===n)e.preventDefault(),db(t,null,c,l,lb);else if("End"===n)e.preventDefault(),db(t,null,c,l,cb);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&&ub(r,o);o.previousKeyMatched&&(s||db(t,r,!1,l,lb,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:o?0:-1},p,{children:g}))})),fb=pb;function hb(e){return(0,qd.Z)("MuiPopover",e)}(0,Wd.Z)("MuiPopover",["root","paper"]);const mb=["onEntering"],vb=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function gb(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yb(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bb(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Eb(e){return"function"==typeof e?e():e}const wb=(0,pd.ZP)(tg,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xb=(0,pd.ZP)(Yd,{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}),Sb=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:g=Fd,transitionDuration:y="auto",TransitionProps:{onEntering:b}={}}=r,E=(0,md.Z)(r.TransitionProps,mb),w=(0,md.Z)(r,vb),x=e.useRef(),S=(0,Nd.Z)(x,m.ref),k=(0,qo.Z)({},r,{anchorOrigin:i,anchorReference:l,elevation:p,marginThreshold:f,PaperProps:m,transformOrigin:v,TransitionComponent:g,transitionDuration:y,TransitionProps:E}),C=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"],paper:["paper"]},hb,t)})(k),O=e.useCallback((()=>{if("anchorPosition"===l)return s;const e=Eb(a),t=(e&&1===e.nodeType?e:(0,eb.Z)(x.current).body).getBoundingClientRect();return{top:t.top+gb(t,i.vertical),left:t.left+yb(t,i.horizontal)}}),[a,i.horizontal,i.vertical,s,l]),T=e.useCallback((e=>({vertical:gb(e,v.vertical),horizontal:yb(e,v.horizontal)})),[v.horizontal,v.vertical]),_=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===l)return{top:null,left:null,transformOrigin:bb(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const s=o+t.height,c=i+t.width,u=(0,rg.Z)(Eb(a)),d=u.innerHeight-f,p=u.innerWidth-f;if(o<f){const e=o-f;o-=e,n.vertical+=e}else if(s>d){const e=s-d;o-=e,n.vertical+=e}if(i<f){const e=i-f;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:bb(n)}}),[a,l,O,T,f]),R=e.useCallback((()=>{const e=x.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[_]);e.useEffect((()=>{h&&R()})),e.useImperativeHandle(o,(()=>h?{updatePosition:()=>{R()}}:null),[h,R]),e.useEffect((()=>{if(!h)return;const e=(0,ng.Z)((()=>{R()})),t=(0,rg.Z)(a);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[a,h,R]);let P=y;"auto"!==y||g.muiSupportAuto||(P=void 0);const I=d||(a?(0,eb.Z)(Eb(a)).body:void 0);return(0,vo.jsx)(wb,(0,qo.Z)({BackdropProps:{invisible:!0},className:(0,jd.Z)(C.root,u),container:I,open:h,ref:n,ownerState:k},w,{children:(0,vo.jsx)(g,(0,qo.Z)({appear:!0,in:h,onEntering:(e,t)=>{b&&b(e,t),R()},timeout:P},E,{children:(0,vo.jsx)(xb,(0,qo.Z)({elevation:p},m,{ref:S,className:(0,jd.Z)(C.paper,m.className),children:c}))}))}))})),kb=Sb;function Cb(e){return(0,qd.Z)("MuiMenu",e)}(0,Wd.Z)("MuiMenu",["root","paper","list"]);const Ob=["onEntering"],Tb=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],_b={vertical:"top",horizontal:"right"},Rb={vertical:"top",horizontal:"left"},Pb=(0,pd.ZP)(kb,{shouldForwardProp:e=>(0,pd.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ib=(0,pd.ZP)(Yd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nb=(0,pd.ZP)(fb,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ab=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,disableAutoFocusItem:i=!1,MenuListProps:s={},onClose:l,open:c,PaperProps:u={},PopoverClasses:d,transitionDuration:p="auto",TransitionProps:{onEntering:f}={},variant:h="selectedMenu"}=r,m=(0,md.Z)(r.TransitionProps,Ob),v=(0,md.Z)(r,Tb),g=Rd(),y="rtl"===g.direction,b=(0,qo.Z)({},r,{autoFocus:o,disableAutoFocusItem:i,MenuListProps:s,onEntering:f,PaperProps:u,transitionDuration:p,TransitionProps:m,variant:h}),E=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"],paper:["paper"],list:["list"]},Cb,t)})(b),w=o&&!i&&c,x=e.useRef(null);let S=-1;return e.Children.map(a,((t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===h&&t.props.selected||-1===S)&&(S=n))})),(0,vo.jsx)(Pb,(0,qo.Z)({classes:d,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?_b:Rb,PaperProps:(0,qo.Z)({component:Ib},u,{classes:(0,qo.Z)({},u.classes,{root:E.paper})}),className:E.root,open:c,ref:n,transitionDuration:p,TransitionProps:(0,qo.Z)({onEntering:(e,t)=>{x.current&&x.current.adjustStyleForScrollbar(e,g),f&&f(e,t)}},m),ownerState:b},v,{children:(0,vo.jsx)(Nb,(0,qo.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:x,autoFocus:o&&(-1===S||i),autoFocusItem:w,variant:h},s,{className:(0,jd.Z)(E.list,s.className),children:a}))}))})),Lb=Ab;function Db(e){return(0,qd.Z)("MuiNativeSelect",e)}const Mb=(0,Wd.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Zb=["className","disabled","IconComponent","inputRef","variant"],Fb=({ownerState:e,theme:t})=>(0,qo.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${Mb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),jb=(0,pd.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pd.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${Mb.multiple}`]:t.multiple}]}})(Fb),$b=({ownerState:e,theme:t})=>(0,qo.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${Mb.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Bb=(0,pd.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,zd.Z)(n.variant)}`],n.open&&t.iconOpen]}})($b),zb=e.forwardRef((function(t,n){const{className:r,disabled:o,IconComponent:a,inputRef:i,variant:s="standard"}=t,l=(0,md.Z)(t,Zb),c=(0,qo.Z)({},t,{disabled:o,variant:s}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,zd.Z)(n)}`,a&&"iconOpen",r&&"disabled"]};return(0,$d.Z)(i,Db,t)})(c);return(0,vo.jsxs)(e.Fragment,{children:[(0,vo.jsx)(jb,(0,qo.Z)({ownerState:c,className:(0,jd.Z)(u.select,r),disabled:o,ref:i||n},l)),t.multiple?null:(0,vo.jsx)(Bb,{as:a,ownerState:c,className:u.icon})]})})),Vb=zb;var qb=o(6766);function Wb(e){return(0,qd.Z)("MuiSelect",e)}const Ub=(0,Wd.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Hb;const Qb=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Gb=(0,pd.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ub.select}`]:t.select},{[`&.${Ub.select}`]:t[n.variant]},{[`&.${Ub.multiple}`]:t.multiple}]}})(Fb,{[`&.${Ub.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Kb=(0,pd.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,zd.Z)(n.variant)}`],n.open&&t.iconOpen]}})($b),Yb=(0,pd.ZP)("input",{shouldForwardProp:e=>(0,pd.Dz)(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 Xb(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Jb(e){return null==e||"string"==typeof e&&!e.trim()}const eE=e.forwardRef((function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:i,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,IconComponent:f,inputRef:h,labelId:m,MenuProps:v={},multiple:g,name:y,onBlur:b,onChange:E,onClose:w,onFocus:x,onOpen:S,open:k,readOnly:C,renderValue:O,SelectDisplayProps:T={},tabIndex:_,value:R,variant:P="standard"}=t,I=(0,md.Z)(t,Qb),[N,A]=(0,qb.Z)({controlled:R,default:u,name:"Select"}),[L,D]=(0,qb.Z)({controlled:k,default:c,name:"Select"}),M=e.useRef(null),Z=e.useRef(null),[F,j]=e.useState(null),{current:$}=e.useRef(null!=k),[B,z]=e.useState(),V=(0,Nd.Z)(n,h),q=e.useCallback((e=>{Z.current=e,e&&j(e)}),[]);e.useImperativeHandle(V,(()=>({focus:()=>{Z.current.focus()},node:M.current,value:N})),[N]),e.useEffect((()=>{c&&L&&F&&!$&&(z(i?null:F.clientWidth),Z.current.focus())}),[F,i]),e.useEffect((()=>{a&&Z.current.focus()}),[a]),e.useEffect((()=>{if(!m)return;const e=(0,eb.Z)(Z.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&Z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const W=(e,t)=>{e?S&&S(t):w&&w(t),$||(z(i?null:F.clientWidth),D(e))},U=e.Children.toArray(s),H=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(g){n=Array.isArray(N)?N.slice():[];const t=N.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),N!==n&&(A(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),E(o,e)}g||W(!1,t)}},Q=null!==F&&L;let G,K;delete I["aria-invalid"];const Y=[];let X=!1,J=!1;(Hg({value:N})||p)&&(O?G=O(N):X=!0);const ee=U.map(((t,n,r)=>{if(!e.isValidElement(t))return null;let o;if(g){if(!Array.isArray(N))throw new Error((0,Mg.Z)(2));o=N.some((e=>Xb(e,t.props.value))),o&&X&&Y.push(t.props.children)}else o=Xb(N,t.props.value),o&&X&&(K=t.props.children);if(o&&(J=!0),void 0===t.props.value)return e.cloneElement(t,{"aria-readonly":!0,role:"option"});return e.cloneElement(t,{"aria-selected":o?"true":"false",onClick:H(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:void 0===r[0].props.value||!0===r[0].props.disabled?(()=>{if(N)return o;const e=r.find((e=>void 0!==e.props.value&&!0!==e.props.disabled));return t===e||o})():o,value:void 0,"data-value":t.props.value})}));X&&(G=g?0===Y.length?null:Y.reduce(((e,t,n)=>(e.push(t),n<Y.length-1&&e.push(", "),e)),[]):K);let te,ne=B;!i&&$&&F&&(ne=F.clientWidth),te=void 0!==_?_:d?null:0;const re=T.id||(y?`mui-component-select-${y}`:void 0),oe=(0,qo.Z)({},t,{variant:P,value:N,open:Q}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,zd.Z)(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,$d.Z)(i,Wb,t)})(oe);return(0,vo.jsxs)(e.Fragment,{children:[(0,vo.jsx)(Gb,(0,qo.Z)({ref:q,tabIndex:te,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,re].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),W(!0,e))}},onMouseDown:d||C?null:e=>{0===e.button&&(e.preventDefault(),Z.current.focus(),W(!0,e))},onBlur:e=>{!Q&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:y}}),b(e))},onFocus:x},T,{ownerState:oe,className:(0,jd.Z)(T.className,ae.select,l),id:re,children:Jb(G)?Hb||(Hb=(0,vo.jsx)("span",{className:"notranslate",children:"​"})):G})),(0,vo.jsx)(Yb,(0,qo.Z)({value:Array.isArray(N)?N.join(","):N,name:y,ref:M,"aria-hidden":!0,onChange:e=>{const t=U.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=U[t];A(n.props.value),E&&E(e,n)},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:a,ownerState:oe},I)),(0,vo.jsx)(Kb,{as:f,className:ae.icon,ownerState:oe}),(0,vo.jsx)(Lb,(0,qo.Z)({id:`menu-${y||""}`,anchorEl:F,open:Q,onClose:e=>{W(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:(0,qo.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:(0,qo.Z)({},v.PaperProps,{style:(0,qo.Z)({minWidth:ne},null!=v.PaperProps?v.PaperProps.style:null)}),children:ee}))]})})),tE=eE,nE=(0,fd.Z)((0,vo.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var rE,oE;const aE=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],iE={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,pd.FO)(e)&&"variant"!==e,slot:"Root"},sE=(0,pd.ZP)(uy,iE)(""),lE=(0,pd.ZP)(Ry,iE)(""),cE=(0,pd.ZP)(gy,iE)(""),uE=e.forwardRef((function(t,n){const r=(0,Bd.Z)({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=nE,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:v,multiple:g=!1,native:y=!1,onClose:b,onOpen:E,open:w,renderValue:x,SelectDisplayProps:S,variant:k="outlined"}=r,C=(0,md.Z)(r,aE),O=y?Vb:tE,T=Vg({props:r,muiFormControl:Wg(),states:["variant"]}).variant||k,_=p||{standard:rE||(rE=(0,vo.jsx)(sE,{})),outlined:(0,vo.jsx)(lE,{label:h}),filled:oE||(oE=(0,vo.jsx)(cE,{}))}[T],R=(e=>{const{classes:t}=e;return t})((0,qo.Z)({},r,{variant:T,classes:i})),P=(0,Nd.Z)(n,_.ref);return e.cloneElement(_,(0,qo.Z)({inputComponent:O,inputProps:(0,qo.Z)({children:a,IconComponent:u,variant:T,type:void 0,multiple:g},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:b,onOpen:E,open:w,renderValue:x,SelectDisplayProps:(0,qo.Z)({id:d},S)},f,{classes:f?(0,cp.Z)(R,f.classes):R},p?p.props.inputProps:{})},g&&y&&"outlined"===T?{notched:!0}:{},{ref:P,className:(0,jd.Z)(_.props.className,s)},!p&&{variant:T},C))}));uE.muiName="Select";const dE=uE;function pE(e){return(0,qd.Z)("MuiTextField",e)}(0,Wd.Z)("MuiTextField",["root"]);const fE=["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"],hE={standard:uy,filled:gy,outlined:Ry},mE=(0,pd.ZP)(Uy,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vE=e.forwardRef((function(e,t){const n=(0,Bd.Z)({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:E,minRows:w,multiline:x=!1,name:S,onBlur:k,onChange:C,onFocus:O,placeholder:T,required:_=!1,rows:R,select:P=!1,SelectProps:I,type:N,value:A,variant:L="outlined"}=n,D=(0,md.Z)(n,fE),M=(0,qo.Z)({},n,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:p,multiline:x,required:_,select:P,variant:L}),Z=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"]},pE,t)})(M);const F={};"outlined"===L&&(m&&void 0!==m.shrink&&(F.notched=m.shrink),F.label=b),P&&(I&&I.native||(F.id=void 0),F["aria-describedby"]=void 0);const j=(0,Dg.Z)(h),$=f&&j?`${j}-helper-text`:void 0,B=b&&j?`${j}-label`:void 0,z=hE[L],V=(0,vo.jsx)(z,(0,qo.Z)({"aria-describedby":$,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:p,multiline:x,name:S,rows:R,maxRows:E,minRows:w,type:N,value:A,id:j,inputRef:y,onBlur:k,onChange:C,onFocus:O,placeholder:T,inputProps:v},F,g));return(0,vo.jsxs)(mE,(0,qo.Z)({className:(0,jd.Z)(Z.root,i),disabled:c,error:u,fullWidth:p,ref:t,required:_,color:s,variant:L,ownerState:M},D,{children:[null!=b&&""!==b&&(0,vo.jsx)(By,(0,qo.Z)({htmlFor:j,id:B},m,{children:b})),P?(0,vo.jsx)(dE,(0,qo.Z)({"aria-describedby":$,id:j,labelId:B,value:A,input:V},I,{children:a})):V,f&&(0,vo.jsx)(Jy,(0,qo.Z)({id:$},d,{children:f}))]}))})),gE=vE;function yE(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bE(e){return e instanceof yE(e).Element||e instanceof Element}function EE(e){return e instanceof yE(e).HTMLElement||e instanceof HTMLElement}function wE(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yE(e).ShadowRoot||e instanceof ShadowRoot)}var xE=Math.max,SE=Math.min,kE=Math.round;function CE(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function OE(){return!/^((?!chrome|android).)*safari/i.test(CE())}function TE(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&EE(e)&&(o=e.offsetWidth>0&&kE(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&kE(r.height)/e.offsetHeight||1);var i=(bE(e)?yE(e):window).visualViewport,s=!OE()&&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 _E(e){var t=yE(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function RE(e){return e?(e.nodeName||"").toLowerCase():null}function PE(e){return((bE(e)?e.ownerDocument:e.document)||window.document).documentElement}function IE(e){return TE(PE(e)).left+_E(e).scrollLeft}function NE(e){return yE(e).getComputedStyle(e)}function AE(e){var t=NE(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function LE(e,t,n){void 0===n&&(n=!1);var r=EE(t),o=EE(t)&&function(e){var t=e.getBoundingClientRect(),n=kE(t.width)/e.offsetWidth||1,r=kE(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=PE(t),i=TE(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==RE(t)||AE(a))&&(s=function(e){return e!==yE(e)&&EE(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:_E(e);var t}(t)),EE(t)?((l=TE(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=IE(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function DE(e){var t=TE(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 ME(e){return"html"===RE(e)?e:e.assignedSlot||e.parentNode||(wE(e)?e.host:null)||PE(e)}function ZE(e){return["html","body","#document"].indexOf(RE(e))>=0?e.ownerDocument.body:EE(e)&&AE(e)?e:ZE(ME(e))}function FE(e,t){var n;void 0===t&&(t=[]);var r=ZE(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=yE(r),i=o?[a].concat(a.visualViewport||[],AE(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(FE(ME(i)))}function jE(e){return["table","td","th"].indexOf(RE(e))>=0}function $E(e){return EE(e)&&"fixed"!==NE(e).position?e.offsetParent:null}function BE(e){for(var t=yE(e),n=$E(e);n&&jE(n)&&"static"===NE(n).position;)n=$E(n);return n&&("html"===RE(n)||"body"===RE(n)&&"static"===NE(n).position)?t:n||function(e){var t=/firefox/i.test(CE());if(/Trident/i.test(CE())&&EE(e)&&"fixed"===NE(e).position)return null;var n=ME(e);for(wE(n)&&(n=n.host);EE(n)&&["html","body"].indexOf(RE(n))<0;){var r=NE(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 zE="top",VE="bottom",qE="right",WE="left",UE="auto",HE=[zE,VE,qE,WE],QE="start",GE="end",KE="clippingParents",YE="viewport",XE="popper",JE="reference",ew=HE.reduce((function(e,t){return e.concat([t+"-"+QE,t+"-"+GE])}),[]),tw=[].concat(HE,[UE]).reduce((function(e,t){return e.concat([t,t+"-"+QE,t+"-"+GE])}),[]),nw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rw(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 ow(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var aw={placement:"bottom",modifiers:[],strategy:"absolute"};function iw(){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 sw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?aw:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},aw,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:bE(e)?FE(e):e.contextElement?FE(e.contextElement):[],popper:FE(t)};var u=function(e){var t=rw(e);return nw.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.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}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=u.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(iw(t,n)){o.rects={reference:LE(t,BE(n),"fixed"===o.options.strategy),popper:DE(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:ow((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!iw(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 lw={passive:!0};function cw(e){return e.split("-")[0]}function uw(e){return e.split("-")[1]}function dw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?cw(o):null,i=o?uw(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case zE:t={x:s,y:n.y-r.height};break;case VE:t={x:s,y:n.y+n.height};break;case qE:t={x:n.x+n.width,y:l};break;case WE:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?dw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case QE:t[c]=t[c]-(n[u]/2-r[u]/2);break;case GE:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var fw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hw(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=WE,E=zE,w=window;if(c){var x=BE(n),S="clientHeight",k="clientWidth";if(x===yE(n)&&"static"!==NE(x=PE(n)).position&&"absolute"===s&&(S="scrollHeight",k="scrollWidth"),o===zE||(o===WE||o===qE)&&a===GE)E=VE,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[S])-r.height,m*=l?1:-1;if(o===WE||(o===zE||o===VE)&&a===GE)b=qE,f-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[k])-r.width,f*=l?1:-1}var C,O=Object.assign({position:s},c&&fw),T=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:kE(t*r)/r||0,y:kE(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},O,((C={})[E]=y?"0":"",C[b]=g?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[E]=y?m+"px":"",t[b]=g?f+"px":"",t.transform="",t))}const mw={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=tw.reduce((function(e,n){return e[n]=function(e,t,n){var r=cw(e),o=[WE,zE].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,[WE,qE].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}};var vw={left:"right",right:"left",bottom:"top",top:"bottom"};function gw(e){return e.replace(/left|right|bottom|top/g,(function(e){return vw[e]}))}var yw={start:"end",end:"start"};function bw(e){return e.replace(/start|end/g,(function(e){return yw[e]}))}function Ew(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ww(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xw(e,t,n){return t===YE?ww(function(e,t){var n=yE(e),r=PE(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=OE();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+IE(e),y:l}}(e,n)):bE(t)?function(e,t){var n=TE(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):ww(function(e){var t,n=PE(e),r=_E(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=xE(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=xE(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+IE(e),l=-r.scrollTop;return"rtl"===NE(o||n).direction&&(s+=xE(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(PE(e)))}function Sw(e,t,n,r){var o="clippingParents"===t?function(e){var t=FE(ME(e)),n=["absolute","fixed"].indexOf(NE(e).position)>=0&&EE(e)?BE(e):e;return bE(n)?t.filter((function(e){return bE(e)&&Ew(e,n)&&"body"!==RE(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=xw(e,n,r);return t.top=xE(o.top,t.top),t.right=SE(o.right,t.right),t.bottom=SE(o.bottom,t.bottom),t.left=xE(o.left,t.left),t}),xw(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 kw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Cw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ow(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?KE:s,c=n.rootBoundary,u=void 0===c?YE:c,d=n.elementContext,p=void 0===d?XE:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=kw("number"!=typeof v?v:Cw(v,HE)),y=p===XE?JE:XE,b=e.rects.popper,E=e.elements[h?y:p],w=Sw(bE(E)?E:E.contextElement||PE(e.elements.popper),l,u,i),x=TE(e.elements.reference),S=pw({reference:x,element:b,strategy:"absolute",placement:o}),k=ww(Object.assign({},b,S)),C=p===XE?k:x,O={top:w.top-C.top+g.top,bottom:C.bottom-w.bottom+g.bottom,left:w.left-C.left+g.left,right:C.right-w.right+g.right},T=e.modifiersData.offset;if(p===XE&&T){var _=T[o];Object.keys(O).forEach((function(e){var t=[qE,VE].indexOf(e)>=0?1:-1,n=[zE,VE].indexOf(e)>=0?"y":"x";O[e]+=_[n]*t}))}return O}const Tw={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=cw(v),y=l||(g===v||!h?[gw(v)]:function(e){if(cw(e)===UE)return[];var t=gw(e);return[bw(e),t,bw(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(cw(n)===UE?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?tw:l,u=uw(r),d=u?s?ew:ew.filter((function(e){return uw(e)===u})):HE,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]=Ow(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[cw(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)}),[]),E=t.rects.reference,w=t.rects.popper,x=new Map,S=!0,k=b[0],C=0;C<b.length;C++){var O=b[C],T=cw(O),_=uw(O)===QE,R=[zE,VE].indexOf(T)>=0,P=R?"width":"height",I=Ow(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),N=R?_?qE:WE:_?VE:zE;E[P]>w[P]&&(N=gw(N));var A=gw(N),L=[];if(a&&L.push(I[T]<=0),s&&L.push(I[N]<=0,I[A]<=0),L.every((function(e){return e}))){k=O,S=!1;break}x.set(O,L)}if(S)for(var D=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},M=h?3:1;M>0;M--){if("break"===D(M))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _w(e,t,n){return xE(e,SE(t,n))}const Rw={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=Ow(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=cw(t.placement),y=uw(t.placement),b=!y,E=dw(g),w="x"===E?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(x){if(a){var R,P="y"===E?zE:WE,I="y"===E?VE:qE,N="y"===E?"height":"width",A=x[E],L=A+v[P],D=A-v[I],M=f?-k[N]/2:0,Z=y===QE?S[N]:k[N],F=y===QE?-k[N]:-S[N],j=t.elements.arrow,$=f&&j?DE(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[P],V=B[I],q=_w(0,S[N],$[N]),W=b?S[N]/2-M-q-z-O.mainAxis:Z-q-z-O.mainAxis,U=b?-S[N]/2+M+q+V+O.mainAxis:F+q+V+O.mainAxis,H=t.elements.arrow&&BE(t.elements.arrow),Q=H?"y"===E?H.clientTop||0:H.clientLeft||0:0,G=null!=(R=null==T?void 0:T[E])?R:0,K=A+U-G,Y=_w(f?SE(L,A+W-G-Q):L,A,f?xE(D,K):D);x[E]=Y,_[E]=Y-A}if(s){var X,J="x"===E?zE:WE,ee="x"===E?VE:qE,te=x[w],ne="y"===w?"height":"width",re=te+v[J],oe=te-v[ee],ae=-1!==[zE,WE].indexOf(g),ie=null!=(X=null==T?void 0:T[w])?X:0,se=ae?re:te-S[ne]-k[ne]-ie+O.altAxis,le=ae?te+S[ne]+k[ne]-ie-O.altAxis:oe,ce=f&&ae?function(e,t,n){var r=_w(e,t,n);return r>n?n:r}(se,te,le):_w(f?se:re,te,f?le:oe);x[w]=ce,_[w]=ce-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};var Pw=function(e,t){return kw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Cw(e,HE))};const Iw={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=cw(n.placement),l=dw(s),c=[WE,qE].indexOf(s)>=0?"height":"width";if(a&&i){var u=Pw(o.padding,n),d=DE(a),p="y"===l?zE:WE,f="y"===l?VE:qE,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],v=BE(a),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=u[p],E=g-d[c]-u[f],w=g/2-d[c]/2+y,x=_w(b,w,E),S=l;n.modifiersData[r]=((t={})[S]=x,t.centerOffset=x-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)))&&Ew(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nw(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 Aw(e){return[zE,qE,VE,WE].some((function(t){return e[t]>=0}))}var Lw=sw({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=yE(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,lw)})),s&&l.addEventListener("resize",n.update,lw),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,lw)})),s&&l.removeEventListener("resize",n.update,lw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=pw({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:cw(t.placement),variation:uw(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,hw(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,hw(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];EE(o)&&RE(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}),{});EE(r)&&RE(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},mw,Tw,Rw,Iw,{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=Ow(t,{elementContext:"reference"}),s=Ow(t,{altBoundary:!0}),l=Nw(i,r),c=Nw(s,o,a),u=Aw(l),d=Aw(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 Dw(e){return(0,qd.Z)("MuiPopperUnstyled",e)}(0,Wd.Z)("MuiPopperUnstyled",["root"]);const Mw=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Zw=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Fw(e){return"function"==typeof e?e():e}const jw={},$w=e.forwardRef((function(t,n){var r;const{anchorEl:o,children:a,component:i,components:s={},componentsProps:l={},direction:c,disablePortal:u,modifiers:d,open:p,ownerState:f,placement:h,popperOptions:m,popperRef:v,TransitionProps:g}=t,y=(0,vd.Z)(t,Mw),b=e.useRef(null),E=(0,Jf.Z)(b,n),w=e.useRef(null),x=(0,Jf.Z)(w,v),S=e.useRef(x);(0,Sv.Z)((()=>{S.current=x}),[x]),e.useImperativeHandle(v,(()=>w.current),[]);const k=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}}(h,c),[C,O]=e.useState(k);e.useEffect((()=>{w.current&&w.current.forceUpdate()})),(0,Sv.Z)((()=>{if(!o||!p)return;Fw(o);let e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{O(e.placement)}}];null!=d&&(e=e.concat(d)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=Lw(Fw(o),b.current,(0,bo.Z)({placement:k},m,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[o,u,d,p,m,k]);const T={placement:C};null!==g&&(T.TransitionProps=g);const _=(0,$d.Z)({root:["root"]},Dw,{}),R=null!=(r=null!=i?i:s.Root)?r:"div",P=ah({elementType:R,externalSlotProps:l.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:E},ownerState:(0,bo.Z)({},t,f),className:_.root});return(0,vo.jsx)(R,(0,bo.Z)({},P,{children:"function"==typeof a?a(T):a}))})),Bw=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=jw,popperRef:f,style:h,transition:m=!1}=t,v=(0,vd.Z)(t,Zw),[g,y]=e.useState(!0);if(!l&&!u&&(!m||g))return null;const b=a||(r?(0,Ev.Z)(Fw(r)).body:void 0);return(0,vo.jsx)(Cv,{disablePortal:s,container:b,children:(0,vo.jsx)($w,(0,bo.Z)({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:m?!g:u,placement:d,popperOptions:p,popperRef:f},v,{style:(0,bo.Z)({position:"fixed",top:0,left:0,display:u||!l||m&&!g?null:"none"},h),TransitionProps:m?{in:u,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:null,children:o}))})}));var zw=o(1559);const Vw=(0,pd.ZP)(Bw,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qw=e.forwardRef((function(e,t){const n=(0,zw.Z)(),r=(0,Bd.Z)({props:e,name:"MuiPopper"});return(0,vo.jsx)(Vw,(0,qo.Z)({direction:null==n?void 0:n.direction},r,{ref:t}))})),Ww=qw;var Uw=o(1326);function Hw(e){return(0,qd.Z)("MuiTooltip",e)}const Qw=(0,Wd.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Gw=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];const Kw=(0,pd.ZP)(Ww,{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,qo.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Qw.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qw.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qw.arrow}`]:(0,qo.Z)({},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"] .${Qw.arrow}`]:(0,qo.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Yw=(0,pd.ZP)("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,zd.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,qo.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Vd.Fq)(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},{[`.${Qw.popper}[data-popper-placement*="left"] &`]:(0,qo.Z)({transformOrigin:"right center"},t.isRtl?(0,qo.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,qo.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Qw.popper}[data-popper-placement*="right"] &`]:(0,qo.Z)({transformOrigin:"left center"},t.isRtl?(0,qo.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,qo.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Qw.popper}[data-popper-placement*="top"] &`]:(0,qo.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Qw.popper}[data-popper-placement*="bottom"] &`]:(0,qo.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Xw=(0,pd.ZP)("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,Vd.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Jw=!1,ex=null;function tx(e,t){return n=>{t&&t(n),e(n)}}const nx=e.forwardRef((function(t,n){var r,o,a,i,s,l;const c=(0,Bd.Z)({props:t,name:"MuiTooltip"}),{arrow:u=!1,children:d,components:p={},componentsProps:f={},describeChild:h=!1,disableFocusListener:m=!1,disableHoverListener:v=!1,disableInteractive:g=!1,disableTouchListener:y=!1,enterDelay:b=100,enterNextDelay:E=0,enterTouchDelay:w=700,followCursor:x=!1,id:S,leaveDelay:k=0,leaveTouchDelay:C=1500,onClose:O,onOpen:T,open:_,placement:R="bottom",PopperComponent:P,PopperProps:I={},title:N,TransitionComponent:A=Fd,TransitionProps:L}=c,D=(0,md.Z)(c,Gw),M=Rd(),Z="rtl"===M.direction,[F,j]=e.useState(),[$,B]=e.useState(null),z=e.useRef(!1),V=g||x,q=e.useRef(),W=e.useRef(),U=e.useRef(),H=e.useRef(),[Q,G]=(0,qb.Z)({controlled:_,default:!1,name:"Tooltip",state:"open"});let K=Q;const Y=(0,Uw.Z)(S),X=e.useRef(),J=e.useCallback((()=>{void 0!==X.current&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),clearTimeout(H.current)}),[]);e.useEffect((()=>()=>{clearTimeout(q.current),clearTimeout(W.current),clearTimeout(U.current),J()}),[J]);const ee=e=>{clearTimeout(ex),Jw=!0,G(!0),T&&!K&&T(e)},te=(0,wp.Z)((e=>{clearTimeout(ex),ex=setTimeout((()=>{Jw=!1}),800+k),G(!1),O&&K&&O(e),clearTimeout(q.current),q.current=setTimeout((()=>{z.current=!1}),M.transitions.duration.shortest)})),ne=e=>{z.current&&"touchstart"!==e.type||(F&&F.removeAttribute("title"),clearTimeout(W.current),clearTimeout(U.current),b||Jw&&E?W.current=setTimeout((()=>{ee(e)}),Jw?E:b):ee(e))},re=e=>{clearTimeout(W.current),clearTimeout(U.current),U.current=setTimeout((()=>{te(e)}),k)},{isFocusVisibleRef:oe,onBlur:ae,onFocus:ie,ref:se}=(0,xp.Z)(),[,le]=e.useState(!1),ce=e=>{ae(e),!1===oe.current&&(le(!1),re(e))},ue=e=>{F||j(e.currentTarget),ie(e),!0===oe.current&&(le(!0),ne(e))},de=e=>{z.current=!0;const t=d.props;t.onTouchStart&&t.onTouchStart(e)},pe=ne,fe=re,he=e=>{de(e),clearTimeout(U.current),clearTimeout(q.current),J(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",H.current=setTimeout((()=>{document.body.style.WebkitUserSelect=X.current,ne(e)}),w)},me=e=>{d.props.onTouchEnd&&d.props.onTouchEnd(e),J(),clearTimeout(U.current),U.current=setTimeout((()=>{te(e)}),C)};e.useEffect((()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||te(e)}}),[te,K]);const ve=(0,Nd.Z)(j,n),ge=(0,Nd.Z)(se,ve),ye=(0,Nd.Z)(d.ref,ge);""===N&&(K=!1);const be=e.useRef({x:0,y:0}),Ee=e.useRef(),we={},xe="string"==typeof N;h?(we.title=K||!xe||v?null:N,we["aria-describedby"]=K?Y:null):(we["aria-label"]=xe?N:null,we["aria-labelledby"]=K&&!xe?Y:null);const Se=(0,qo.Z)({},we,D,d.props,{className:(0,jd.Z)(D.className,d.props.className),onTouchStart:de,ref:ye},x?{onMouseMove:e=>{const t=d.props;t.onMouseMove&&t.onMouseMove(e),be.current={x:e.clientX,y:e.clientY},Ee.current&&Ee.current.update()}}:{});const ke={};y||(Se.onTouchStart=he,Se.onTouchEnd=me),v||(Se.onMouseOver=tx(pe,Se.onMouseOver),Se.onMouseLeave=tx(fe,Se.onMouseLeave),V||(ke.onMouseOver=pe,ke.onMouseLeave=fe)),m||(Se.onFocus=tx(ue,Se.onFocus),Se.onBlur=tx(ce,Se.onBlur),V||(ke.onFocus=ue,ke.onBlur=ce));const Ce=e.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean($),options:{element:$,padding:4}}];return null!=(e=I.popperOptions)&&e.modifiers&&(t=t.concat(I.popperOptions.modifiers)),(0,qo.Z)({},I.popperOptions,{modifiers:t})}),[$,I]),Oe=(0,qo.Z)({},c,{isRtl:Z,arrow:u,disableInteractive:V,placement:R,PopperComponentProp:P,touch:z.current}),Te=(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,zd.Z)(a.split("-")[0])}`],arrow:["arrow"]};return(0,$d.Z)(i,Hw,t)})(Oe),_e=null!=(r=p.Popper)?r:Kw,Re=null!=(o=null!=(a=p.Transition)?a:A)?o:Fd,Pe=null!=(i=p.Tooltip)?i:Yw,Ie=null!=(s=p.Arrow)?s:Xw,Ne=eh(_e,(0,qo.Z)({},I,f.popper),Oe),Ae=eh(Re,(0,qo.Z)({},L,f.transition),Oe),Le=eh(Pe,(0,qo.Z)({},f.tooltip),Oe),De=eh(Ie,(0,qo.Z)({},f.arrow),Oe);return(0,vo.jsxs)(e.Fragment,{children:[e.cloneElement(d,Se),(0,vo.jsx)(_e,(0,qo.Z)({as:null!=P?P:Ww,placement:R,anchorEl:x?{getBoundingClientRect:()=>({top:be.current.y,left:be.current.x,right:be.current.x,bottom:be.current.y,width:0,height:0})}:F,popperRef:Ee,open:!!F&&K,id:Y,transition:!0},ke,Ne,{className:(0,jd.Z)(Te.popper,null==I?void 0:I.className,null==(l=f.popper)?void 0:l.className),popperOptions:Ce,children:({TransitionProps:e})=>{var t,n;return(0,vo.jsx)(Re,(0,qo.Z)({timeout:M.transitions.duration.shorter},e,Ae,{children:(0,vo.jsxs)(Pe,(0,qo.Z)({},Le,{className:(0,jd.Z)(Te.tooltip,null==(t=f.tooltip)?void 0:t.className),children:[N,u?(0,vo.jsx)(Ie,(0,qo.Z)({},De,{className:(0,jd.Z)(Te.arrow,null==(n=f.arrow)?void 0:n.className),ref:B})):null]}))}))}}))]})})),rx=nx;var ox=o(9660);const ax=Jm`
  mutation TypingClient($conversationId: String!, $draftMessage: String!) {
    typingClient(conversationId: $conversationId, draftMessage: $draftMessage) {
      _id
    }
  }
`,ix=t=>{let{enabled:n=!1,timeout:r=1e3,callback:o}=t;const[a,i]=(0,e.useState)(0),s=(0,e.useRef)((()=>{})),l=(0,e.useRef)((()=>{})),c=(0,e.useRef)((()=>{})),u=(0,e.useCallback)((()=>{a&&(clearTimeout(a),i(0))}),[a]),d=(0,e.useCallback)((()=>{c.current(),i(setTimeout((()=>{s.current()}),r))}),[r]),p=(0,e.useCallback)((()=>{a&&(o(),l.current())}),[a,o]);(0,e.useEffect)((()=>{l.current=d}),[d]),(0,e.useEffect)((()=>{c.current=u}),[u]),(0,e.useEffect)((()=>{s.current=p}),[p]),(0,e.useEffect)((()=>(n&&l.current(),()=>{c.current()})),[n])},sx=()=>{const{liveChat:t}=ce((e=>e.messages)),[n]=function(t,n){var r=dm(null==n?void 0:n.client);um(t,sm.Mutation);var o=(0,e.useState)({called:!1,loading:!1,client:r}),a=o[0],i=o[1],s=(0,e.useRef)({result:a,mutationId:0,isMounted:!0,client:r,mutation:t,options:n});Object.assign(s.current,{client:r,options:n,mutation:t});var l=(0,e.useCallback)((function(e){void 0===e&&(e={});var t=s.current,n=t.client,r=t.options,o=t.mutation,a=aa(aa({},r),{mutation:o});s.current.result.loading||a.ignoreResults||!s.current.isMounted||i(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});var l=++s.current.mutationId,c=ju(a,e);return n.mutate(c).then((function(t){var r,o,a,u=t.data,d=t.errors,p=d&&d.length>0?new Su({graphQLErrors:d}):void 0;if(l===s.current.mutationId&&!c.ignoreResults){var f={called:!0,loading:!1,data:u,error:p,client:n};s.current.isMounted&&!El(s.current.result,f)&&i(s.current.result=f)}return null===(o=null===(r=s.current.options)||void 0===r?void 0:r.onCompleted)||void 0===o||o.call(r,t.data,c),null===(a=e.onCompleted)||void 0===a||a.call(e,t.data,c),t})).catch((function(t){var r,o,a,u;if(l===s.current.mutationId&&s.current.isMounted){var d={loading:!1,error:t,data:void 0,called:!0,client:n};El(s.current.result,d)||i(s.current.result=d)}if((null===(r=s.current.options)||void 0===r?void 0:r.onError)||c.onError)return null===(a=null===(o=s.current.options)||void 0===o?void 0:o.onError)||void 0===a||a.call(o,t,c),null===(u=e.onError)||void 0===u||u.call(e,t,c),{data:void 0,errors:t};throw t}))}),[]),c=(0,e.useCallback)((function(){s.current.isMounted&&i({called:!1,loading:!1,client:r})}),[]);return(0,e.useEffect)((function(){return s.current.isMounted=!0,function(){s.current.isMounted=!1}}),[]),[l,aa({reset:c},a)]}(ax,{onError:e=>{console.error(e)}});return t?(e,t)=>{n({variables:{conversationId:e,draftMessage:t}})}:()=>{}},lx=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}=ce((e=>e.conversationState)),u=sx(),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]),ix({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])}};function cx(){return cx=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},cx.apply(this,arguments)}const ux="ChatInputWrapper",dx={form:`${ux}-form`,inputWrapper:`${ux}-inputWrapper`,input:`${ux}-input`,formWrapper:`${ux}-formWrapper`,buttonWrapper:`${ux}-buttonWrapper`,hidden:`${ux}-hidden`,disconnected:`${ux}-disconnected`},px=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${dx.form}`]:{position:"relative"},[`& .${dx.inputWrapper}`]:{padding:t.spacing(1,2),display:"flex",alignItems:"center","& textarea":{boxShadow:"none"},transition:"opacity 500ms ease-in-out"},[`& .${dx.input}`]:{"&::placeholder":{color:ox.Z[600],opacity:1}},[`& .${dx.formWrapper}`]:{flex:1},[`& .${dx.buttonWrapper}`]:{flex:"0 auto",marginLeft:t.spacing(1)},[`& .${dx.hidden}`]:{position:"absolute",left:"-10000em",width:"1px",height:"1px",overflow:"hidden"},[`& .${dx.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"}}})),fx=(0,e.forwardRef)(((t,n)=>{let{onSubmit:r,outstanding:o,handleTypingResponse:a,onSubmitTyping:i,message:s,setMessage:l,disconnected:c,wrapper:u}=t;const{LL:d}=Mh(),p=ce((e=>e.chatbotUi.placeholder)),[,f]=bv();(0,e.useEffect)((()=>{f(s.length>0)}),[s]);const h=()=>{!o&&s.trim()&&(r(s),l(""),i())},m="Ask a question"===p?d.ASK_QUESTION():p;return e.createElement(px,null,e.createElement("form",{onSubmit:e=>{e.preventDefault(),h()},"data-testid":"chat-input-form",className:dx.form},e.createElement(Lg,{className:dx.inputWrapper,sx:{opacity:c?.33:1}},e.createElement("div",{className:dx.formWrapper},e.createElement(gE,{id:"ask-a-question-input",autoComplete:"off",autoFocus:!0,fullWidth:!0,inputProps:{className:dx.input,maxLength:500,"aria-label":m},multiline:!0,onChange:e=>{l(e.currentTarget.value),a()},onKeyPress:e=>{13===e.charCode&&(e.preventDefault(),h())},placeholder:m,minRows:1,maxRows:5,spellCheck:"false",value:s,inputRef:n,disabled:c,variant:"standard"})),e.createElement("div",{className:dx.buttonWrapper},e.createElement(rx,{title:c?d.SEND_DISCONNECTED():d.SEND_MESSAGE(),enterDelay:300,placement:"left",PopperProps:{container:u}},e.createElement("span",null,e.createElement(tf,{type:"submit","aria-label":d.SEND_MESSAGE(),disabled:c,size:"large"},e.createElement(Tg,null)))))),e.createElement(Lg,{className:dx.disconnected,sx:{opacity:c?1:0}},e.createElement(wh,null))))}));fx.displayName="ChatInput",fx.propTypes={onSubmit:cr().func.isRequired,outstanding:cr().bool,handleTypingResponse:cr().func.isRequired,onSubmitTyping:cr().func.isRequired,message:cr().string.isRequired,setMessage:cr().func.isRequired,disconnected:cr().bool.isRequired,wrapper:cr().object.isRequired},fx.defaultProps={outstanding:!1};const hx=(0,e.forwardRef)(((t,n)=>{let{message:r,...o}=t;const{handleTypingResponse:a,onSubmitTyping:i}=lx(r);return e.createElement(fx,cx({ref:n,message:r,handleTypingResponse:a,onSubmitTyping:i},o))}));hx.displayName="WithTypingInterval",hx.propTypes={message:cr().string.isRequired};const mx=(0,e.forwardRef)(((t,n)=>{const[r,o]=(0,e.useState)(""),{liveChat:a}=ce((e=>e.messages)),i=ce((e=>{const{liveChatConnected:t,liveChatHasDisconnected:n}=e.messages;return a&&n&&!t||!1}));if(a)return e.createElement(hx,cx({message:r,disconnected:i,setMessage:o},t));return e.createElement(fx,cx({ref:n,handleTypingResponse:()=>{},onSubmitTyping:()=>{},message:r,setMessage:o,disconnected:i},t))}));mx.displayName="ChatInputWrapper";const vx=mx,gx=(0,fd.Z)((0,vo.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var yx=o(6663);function bx(e){return(0,qd.Z)("MuiButton",e)}const Ex=(0,Wd.Z)("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 wx=e.createContext({}),xx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Sx=["root"],kx=e=>(0,qo.Z)({},"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}}),Cx=(0,pd.ZP)(Gp,{shouldForwardProp:e=>(0,pd.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,zd.Z)(n.color)}`],t[`size${(0,zd.Z)(n.size)}`],t[`${n.variant}Size${(0,zd.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return(0,qo.Z)({},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,qo.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Vd.Fq)(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,Vd.Fq)(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,Vd.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,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,qo.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ex.focusVisible}`]:(0,qo.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ex.disabled}`]:(0,qo.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},"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,Vd.Fq)(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).palette.grey[300],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"},[`&.${Ex.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ex.disabled}`]:{boxShadow:"none"}})),Ox=(0,pd.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,zd.Z)(n.size)}`]]}})((({ownerState:e})=>(0,qo.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kx(e)))),Tx=(0,pd.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,zd.Z)(n.size)}`]]}})((({ownerState:e})=>(0,qo.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kx(e)))),_x=e.forwardRef((function(t,n){const r=e.useContext(wx),o=(0,yx.Z)(r,t),a=(0,Bd.Z)({props:o,name:"MuiButton"}),{children:i,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:v="medium",startIcon:g,type:y,variant:b="text"}=a,E=(0,md.Z)(a,xx),w=(0,qo.Z)({},a,{color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:v,type:y,variant:b}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${(0,zd.Z)(t)}`,`size${(0,zd.Z)(o)}`,`${a}Size${(0,zd.Z)(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,zd.Z)(o)}`],endIcon:["endIcon",`iconSize${(0,zd.Z)(o)}`]},l=(0,$d.Z)(s,bx,i);return(0,qo.Z)({},i,l)})(w),{root:S}=x,k=(0,md.Z)(x,Sx),C=g&&(0,vo.jsx)(Ox,{className:k.startIcon,ownerState:w,children:g}),O=f&&(0,vo.jsx)(Tx,{className:k.endIcon,ownerState:w,children:f});return(0,vo.jsxs)(Cx,(0,qo.Z)({ownerState:w,className:(0,jd.Z)(r.className,S,c),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:(0,jd.Z)(k.focusVisible,h),ref:n,type:y},E,{classes:k,children:[C,i,O]}))})),Rx=_x;function Px(e){return e&&e.ownerDocument||document}function Ix(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Nx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ax(e){const t=[],n=[];return Array.from(e.querySelectorAll(Nx)).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 Lx(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getDoc:i,getTabbable:s=Ax,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,E=g,e.useMemo((()=>null==b&&null==E?null:e=>{Ix(b,e),Ix(E,e)}),[b,E]));var b,E;const w=e.useRef(null),x=e.useRef();e.useEffect((()=>{x.current=c}),[c]),x.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=Px(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,k]=e.useState(!1),C=e.useCallback((e=>{const t=g.current.contains(e.target);k(!t)}),[S]);e.useEffect((()=>{const e=Px(g.current);return u&&c&&e.addEventListener("mouseup",C),()=>{e.removeEventListener("mouseup",C)}}),[c,u]),e.useEffect((()=>{c||k(!1)}),[c]),e.useEffect((()=>{if(!c||!g.current||S)return;const e=Px(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 O=e=>{v.current||(h.current=e.relatedTarget),v.current=!0};return e.createElement(e.Fragment,null,e.createElement("div",{tabIndex:0,onFocus:O,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:O,ref:f,"data-test":"sentinelEnd"}))}Lx.propTypes={children:cr().element,disableAutoFocus:cr().bool,disableEnforceFocus:cr().bool,disableRestoreFocus:cr().bool,getDoc:cr().func.isRequired,getTabbable:cr().func,isEnabled:cr().func.isRequired,open:cr().bool.isRequired,allowClickOutside:cr().bool},Lx.defaultProps={children:null,disableAutoFocus:!1,disableEnforceFocus:!1,disableRestoreFocus:!1,getTabbable:Ax,allowClickOutside:!1};const Dx=Lx;var Mx="iosKeyboardFix--height-ref";const Zx=function(t,n,r){var o=(0,e.useRef)(0),a=/iP(ad|od|hone)/i.test(window.navigator.userAgent),i=(0,e.useCallback)((function(){if(t.current&&n.current){var e=(null===visualViewport||void 0===visualViewport?void 0:visualViewport.offsetTop)||0;if(o.current!==e){o.current=e;var a=document.querySelector(".".concat(Mx)),i=n.current,s=a.offsetHeight-i.clientHeight-i.clientTop,l=function(e,t){var n,r=e.offsetTop,o=e.offsetParent;do{r+=null!==(n=null==o?void 0:o.offsetTop)&&void 0!==n?n:0,o=o.offsetParent}while(o&&o!==t);return r}(t.current,r),c=Math.min(s,e)-l;c=Math.max(c,0),t.current.style.top="".concat(c,"px")}}}),[t,r,n]);(0,e.useEffect)((function(){if(a)return null===visualViewport||void 0===visualViewport||visualViewport.addEventListener("resize",i),function(){return null===visualViewport||void 0===visualViewport?void 0:visualViewport.removeEventListener("resize",i)}}),[i,a])};var Fx=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},jx=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))},$x=300,Bx=320,zx="createBackdropWrapper",Vx={backdropLayer:"".concat(zx,"-backdropLayer"),content:"".concat(zx,"-content"),contentInner:"".concat(zx,"-contentInner"),contentInnerOpened:"".concat(zx,"-contentInnerOpened"),trapFocusOpened:"".concat(zx,"-trapFocusOpened"),trapFocusClosed:"".concat(zx,"-trapFocusClosed"),closeButton:"".concat(zx,"-closeButton"),closeButtonWrapper:"".concat(zx,"-closeButtonWrapper"),curve:"".concat(zx,"-curve"),curveOpen:"".concat(zx,"-curveOpen"),topLayer:"".concat(zx,"-topLayer"),wrapper:"".concat(zx,"-wrapper"),colorAction:"".concat(zx,"-colorAction")},qx=(0,pd.ZP)("div")((function(e){var t,n=e.theme;return(t={})["& .".concat(Vx.backdropLayer)]={position:"relative",width:"100%",top:"initial",right:"initial",bottom:"initial",left:"initial",transform:"initial"},t["& .".concat(Vx.content)]={color:"#fff",display:"flex",flexDirection:"column",wordBreak:"break-word"},t["& .".concat(Vx.contentInner)]={overflow:"hidden",transition:"all ".concat($x,"ms ease-out"),visibility:"hidden"},t["& .".concat(Vx.contentInnerOpened)]={visibility:"visible"},t["& .".concat(Vx.trapFocusOpened)]={visibility:"visible"},t["& .".concat(Vx.trapFocusClosed)]={visibility:"hidden"},t["& .".concat(Vx.closeButton)]={padding:n.spacing(.5)},t["& .".concat(Vx.closeButtonWrapper)]={display:"flex",justifyContent:"center",marginTop:n.spacing(1),width:"100%"},t["& .".concat(Vx.curve)]={backgroundColor:"#fff",borderBottomLeftRadius:0,borderBottomRightRadius:0,height:0,transition:"all ".concat($x,"ms ease-out")},t["& .".concat(Vx.curveOpen)]={borderBottomLeftRadius:n.spacing(1),borderBottomRightRadius:n.spacing(1),height:"8px"},t["& .".concat(Vx.topLayer)]={backgroundColor:"#fff",display:"flex",flexDirection:"column",flexGrow:1,overflowX:"hidden",overflowY:"auto",position:"relative",zIndex:1},t["&.".concat(Vx.wrapper)]={backgroundColor:n.palette.primary.main,display:"flex",flexDirection:"column",flexGrow:1,minHeight:"0px",overflowX:"hidden",overflowY:"hidden",position:"relative"},t["& .".concat(Vx.colorAction)]={color:n.palette.primary.contrastText},t})),Wx=function(t,n){var r=Fx((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)}),jx([t,l],Fx(n),!1)),(0,e.useEffect)((function(){var e=function(){return setTimeout(l,$x)};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}),$x)}),[t]),{backdropHeight:o,detectHeightRef:s,foregroundRef:c}};const Ux=function(t,n,r){return function(o){var a=e.forwardRef((function(a,i){var s,l,c,u,d=a.children,p=a.settings,f=t(),h=n(),m=Wx(f,r()),v=m.backdropHeight,g=m.detectHeightRef,y=m.foregroundRef,b=(0,e.useRef)(null),E=(0,e.useContext)(Cg),w=Mh().LL,x=ce(Xn.getExploreContent),S=null==x?void 0:x.type,k=f?Vx.contentInnerOpened:"",C=f?Vx.curveOpen:"";(0,e.useEffect)((function(){var e=function(e){"Escape"===e.key&&h()};return f&&window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[f,h]),(0,e.useEffect)((function(){f&&S===Qn&&setTimeout((function(){var e;null===(e=b.current)||void 0===e||e.focus()}),Bx)}),[f,S]);var O=((s={})["".concat(Gn)]=w.EXPLORE_LINKS(),s["".concat(Hn)]=w.EXPLORE_SUGGESTIONS(),s["".concat(Qn)]=w.EXPLORE_VIDEOS(),s),T=((l={})["".concat(Gn)]=w.CLOSE_LINKS(),l["".concat(Hn)]=w.CLOSE_SUGGESTIONS(),l["".concat(Qn)]=w.CLOSE_VIDEOS(),l);return e.createElement(qx,{className:"".concat(Vx.wrapper," ").concat(Mx)},e.createElement("div",{className:Vx.topLayer,ref:i},d&&d(y)),e.createElement("div",{className:f?Vx.trapFocusOpened:Vx.trapFocusClosed},e.createElement(Dx,{open:f,isEnabled:function(){return f},getDoc:function(){return document},allowClickOutside:!0},e.createElement("div",{className:Vx.backdropLayer,role:"dialog","aria-label":null!==(c=O[S])&&void 0!==c?c:void 0,tabIndex:-1},e.createElement("div",{className:"".concat(Vx.curve," ").concat(C)}),f&&e.createElement("div",{className:Vx.closeButtonWrapper},e.createElement(Rx,{className:Vx.closeButton,onClick:h,size:"small","aria-label":null!==(u=T[S])&&void 0!==u?u:void 0,ref:b},e.createElement(gx,{color:"action",fontSize:"small",classes:{colorAction:Vx.colorAction}}))),e.createElement("div",{className:Vx.content},e.createElement(Lg,{sx:{height:f?"".concat(v+(64-E),"px"):0},className:"".concat(Vx.contentInner," ").concat(k)},e.createElement(o,{ref:g,settings:p})))))))}));return a.displayName="Backdrop(".concat(o.displayName,")"),a}},Hx=(0,fd.Z)((0,vo.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.5z"}),"Attachment");function Qx(e){return(0,qd.Z)("MuiCard",e)}(0,Wd.Z)("MuiCard",["root"]);const Gx=["className","raised"],Kx=(0,pd.ZP)(Yd,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),Yx=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,a=(0,md.Z)(n,Gx),i=(0,qo.Z)({},n,{raised:o}),s=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"]},Qx,t)})(i);return(0,vo.jsx)(Kx,(0,qo.Z)({className:(0,jd.Z)(s.root,r),elevation:o?8:void 0,ref:t,ownerState:i},a))})),Xx=Yx;function Jx(e){return(0,qd.Z)("MuiCardMedia",e)}(0,Wd.Z)("MuiCardMedia",["root","media","img"]);const eS=["children","className","component","image","src","style"],tS=(0,pd.ZP)("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,qo.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),nS=["video","audio","picture","iframe","img"],rS=["picture","img"],oS=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiCardMedia"}),{children:r,className:o,component:a="div",image:i,src:s,style:l}=n,c=(0,md.Z)(n,eS),u=-1!==nS.indexOf(a),d=!u&&i?(0,qo.Z)({backgroundImage:`url("${i}")`},l):l,p=(0,qo.Z)({},n,{component:a,isMediaComponent:u,isImageComponent:-1!==rS.indexOf(a)}),f=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,o={root:["root",n&&"media",r&&"img"]};return(0,$d.Z)(o,Jx,t)})(p);return(0,vo.jsx)(tS,(0,qo.Z)({className:(0,jd.Z)(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}))})),aS=oS;function iS(e){return(0,qd.Z)("MuiCardContent",e)}(0,Wd.Z)("MuiCardContent",["root"]);const sS=["className","component"],lS=(0,pd.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),cS=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiCardContent"}),{className:r,component:o="div"}=n,a=(0,md.Z)(n,sS),i=(0,qo.Z)({},n,{component:o}),s=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"]},iS,t)})(i);return(0,vo.jsx)(lS,(0,qo.Z)({as:o,className:(0,jd.Z)(s.root,r),ownerState:i,ref:t},a))})),uS=cS;function dS(e){return(0,qd.Z)("MuiCardActions",e)}(0,Wd.Z)("MuiCardActions",["root","spacing"]);const pS=["disableSpacing","className"],fS=(0,pd.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,qo.Z)({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),hS=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiCardActions"}),{disableSpacing:r=!1,className:o}=n,a=(0,md.Z)(n,pS),i=(0,qo.Z)({},n,{disableSpacing:r}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,$d.Z)(r,dS,t)})(i);return(0,vo.jsx)(fS,(0,qo.Z)({className:(0,jd.Z)(s.root,o),ownerState:i,ref:t},a))})),mS=hS;var vS=o(1815);function gS(e){return(0,qd.Z)("MuiCollapse",e)}(0,Wd.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const yS=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],bS=(0,pd.ZP)("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,qo.Z)({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,qo.Z)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),ES=(0,pd.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,qo.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),wS=(0,pd.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,qo.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),xS=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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=vS.x9.standard,TransitionComponent:E=_d}=r,w=(0,md.Z)(r,yS),x=(0,qo.Z)({},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,$d.Z)(r,gS,n)})(x),k=Rd(),C=e.useRef(),O=e.useRef(null),T=e.useRef(),_="number"==typeof s?`${s}px`:s,R="horizontal"===g,P=R?"width":"height";e.useEffect((()=>()=>{clearTimeout(C.current)}),[]);const I=e.useRef(null),N=(0,Nd.Z)(n,I),A=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},L=()=>O.current?O.current[R?"clientWidth":"clientHeight"]:0,D=A(((e,t)=>{O.current&&R&&(O.current.style.position="absolute"),e.style[P]=_,d&&d(e,t)})),M=A(((e,t)=>{const n=L();O.current&&R&&(O.current.style.position="");const{duration:r,easing:o}=Id({style:y,timeout:b,easing:c},{mode:"enter"});if("auto"===b){const t=k.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,T.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[P]=`${n}px`,e.style.transitionTimingFunction=o,f&&f(e,t)})),Z=A(((e,t)=>{e.style[P]="auto",p&&p(e,t)})),F=A((e=>{e.style[P]=`${L()}px`,h&&h(e)})),j=A(m),$=A((e=>{const t=L(),{duration:n,easing:r}=Id({style:y,timeout:b,easing:c},{mode:"exit"});if("auto"===b){const n=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,T.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[P]=_,e.style.transitionTimingFunction=r,v&&v(e)}));return(0,vo.jsx)(E,(0,qo.Z)({in:u,onEnter:D,onEntered:Z,onEntering:M,onExit:F,onExited:j,onExiting:$,addEndListener:e=>{"auto"===b&&(C.current=setTimeout(e,T.current||0)),o&&o(I.current,e)},nodeRef:I,timeout:"auto"===b?null:b},w,{children:(e,t)=>(0,vo.jsx)(bS,(0,qo.Z)({as:l,className:(0,jd.Z)(S.root,i,{entered:S.entered,exited:!u&&"0px"===_&&S.hidden}[e]),style:(0,qo.Z)({[R?"minWidth":"minHeight"]:_},y),ownerState:(0,qo.Z)({},x,{state:e}),ref:N},t,{children:(0,vo.jsx)(ES,{ownerState:(0,qo.Z)({},x,{state:e}),className:S.wrapper,ref:O,children:(0,vo.jsx)(wS,{ownerState:(0,qo.Z)({},x,{state:e}),className:S.wrapperInner,children:a})})}))}))}));xS.muiSupportAuto=!0;const SS=xS;var kS=o(6581);const CS="Resource",OS={aspectWrapper:`${CS}-aspectWrapper`,duration:`${CS}-duration`,link:`${CS}-link`,expand:`${CS}-expand`,expandOpen:`${CS}-expandOpen`,imageRemoved:`${CS}-imageRemoved`,oneLine:`${CS}-oneLine`,webpageCard:`${CS}-webpageCard`,videoCard:`${CS}-videoCard`,imageCard:`${CS}-imageCard`,fileCard:`${CS}-fileCard`},TS=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${OS.aspectWrapper}`]:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden"},[`& .${OS.duration}`]:{display:"inline-block",paddingLeft:"6px"},[`& .${OS.link}`]:{color:t.palette.link?t.palette.link:t.palette.primary.dark},[`& .${OS.expand}`]:{transform:"rotate(0deg)",marginLeft:"auto",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest})},[`& .${OS.expandOpen}`]:{transform:"rotate(180deg)"},[`& .${OS.imageRemoved}`]:{backgroundColor:ox.Z[200],color:ox.Z[600],textAlign:"center"},[`& .${OS.oneLine}`]:{display:"flex",alignItems:"center","& > *":{marginRight:t.spacing(1)}},[`& .${OS.webpageCard}`]:{marginBottom:t.spacing(3),padding:t.spacing(0,3),"& a":{textDecoration:"none"}},[`& .${OS.videoCard}`]:{marginBottom:t.spacing(3),padding:t.spacing(0,3)},[`&.${OS.imageCard}`]:{marginBottom:t.spacing(3),padding:t.spacing(0,3)},[`& .${OS.fileCard}`]:{marginBottom:t.spacing(3),padding:t.spacing(0,3)}}})),_S=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};function RS(t){let{image:n,language:r,onDownload:o}=t;return _S(n.url)?e.createElement("div",{className:OS.imageCard},e.createElement(Xx,null,e.createElement(aS,{component:"img",image:n.url}),e.createElement(uS,null,e.createElement(Ep,{component:"div",variant:"h5",color:"textPrimary"},Lt(n.title,r))),e.createElement(mS,null,e.createElement(Rx,{onClick:o},"Open Image")))):e.createElement(Ef,{className:OS.imageRemoved,component:"div"},e.createElement(jf,{primary:"Image removed by operator"}))}RS.propTypes={image:cr().object.isRequired,language:cr().string.isRequired,onDownload:cr().func.isRequired};const PS=e.forwardRef(((t,n)=>{let{resource:r,cbID:o,language:a,showVideo:i,singleWebsite:s}=t;const{LL:l}=Mh(),[c,u]=(0,e.useState)(!1),d=(0,e.useCallback)((()=>{u(!c)}),[c]),p=(0,e.useContext)(nd);switch(r.type.toLowerCase()){case"video":{let t=[];r.nid?t.push(r.nid):t=r.nids;const n=Lt(r.title,a),s=l.OCELOT_VIDEO_PLAYER();let c='<iframe style="position: absolute !important;';return c+=" left: 0 !important; top: 0 !important;",c+=' width: 100% !important; height: 100% !important;"',c+='  src="https://embed.ocelotbot.com/cms/embed/cbvideo/',c+=encodeURIComponent(t.join(" ")),c+=`?thumbEmbed&language=${a}&current_entity=${o}"`,c+=' allowfullscreen="true"',c+=' width="100%" height="100%" scrolling="no" frameborder="0"',c+=` title="${s} | ${n}" />`,e.createElement(TS,null,e.createElement("div",{className:OS.videoCard},e.createElement(Xx,null,e.createElement(aS,{src:`https://embed.ocelotbot.com/api/thumbnail/${t[0]}`},i&&e.createElement("div",{"aria-live":"off",className:OS.aspectWrapper,dangerouslySetInnerHTML:{__html:c}})),e.createElement(uS,null,e.createElement(Ep,{component:"p"},n,e.createElement(Ep,{varient:"caption",classes:{root:OS.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(":")})(r.duration)))))))}case"webpage":{const{url:t}=r,o=null==t?void 0:t.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i),i=(o&&o[1])!==window.location.hostname,u=i?"_blank":"_self",f=i?"noopener":"",h=e=>{const n=new RegExp("https://ai.ocelotbot.com/attachment");e.currentTarget.getAttribute("tracked")||n.test(t)||(mn(t,p),e.currentTarget.setAttribute("tracked",!0))};return e.createElement(TS,null,e.createElement("div",{className:OS.webpageCard},e.createElement(Xx,null,s&&e.createElement(uS,null,e.createElement("a",{href:r.url,ref:n,tabIndex:"0",target:u,rel:f,onClick:h},e.createElement(Ep,{component:"div",variant:"h5",color:"textPrimary"},Lt(r.title,a)),e.createElement(Ep,{component:"div",variant:"subtitle1",color:"textSecondary"},At(r.url),i?e.createElement(kS.Z,{fontSize:"small",style:{verticalAlign:"text-top"}}):null)),e.createElement(Ep,{component:"div",variant:"body2"},e.createElement("span",{dangerouslySetInnerHTML:{__html:r.snippet?Lt(r.snippet,a):""}}))),e.createElement(mS,null,s?e.createElement(Rx,{color:"primary",component:"a",href:r.url,target:u,rel:f,onClick:h,"data-testid":"descriptiveWebLink","aria-label":l.VISIT_URL({webpage:Lt(r.title,a)})},e.createElement(Ep,{variant:"button",className:OS.link},r.actionLabel?Lt(r.actionLabel,a):l.VISIT_PAGE())):e.createElement(uS,null,e.createElement("a",{href:r.url},e.createElement(Ep,{component:"div",variant:"h5",color:"textPrimary"},Lt(r.title,a))),e.createElement("a",{href:r.url},e.createElement(Ep,{component:"div",variant:"subtitle1",color:"textSecondary"},At(r.url)))),!s&&e.createElement(tf,{className:`${OS.expand} ${c?OS.expandOpen:""}`,onClick:d,"aria-expanded":c,"aria-label":"Show more",size:"large"},e.createElement(gx,null))),!s&&e.createElement(SS,{in:c,timeout:"auto",unmountOnExit:!0},e.createElement(uS,null,e.createElement(Ep,{component:"div",variant:"body2"},e.createElement("span",{dangerouslySetInnerHTML:{__html:r.snippet?`${Lt(r.snippet,a)}...`:""}})))))))}case"file":{const t=()=>{window.open(r.url)};return/image\//.test(r.contentType)?e.createElement(TS,null,e.createElement(RS,{image:r,classes:OS,language:a,onDownload:t})):e.createElement(TS,null,e.createElement("div",{className:OS.fileCard},e.createElement(Xx,null,e.createElement(uS,null,e.createElement("div",{className:OS.oneLine},e.createElement(Hx,null),e.createElement(Ep,{component:"div",variant:"h5",color:"textPrimary"},Lt(r.title,a)))),e.createElement(mS,null,e.createElement(Rx,{onClick:t},"Open File")))))}default:return e.createElement("div",null,"Unsupported Media")}}));PS.propTypes={resource:cr().object.isRequired,cbID:cr().number.isRequired,language:cr().string.isRequired,showVideo:cr().bool,singleWebsite:cr().bool},PS.defaultProps={showVideo:!0,singleWebsite:!0},PS.displayName="Resource";const IS=PS;function NS(t){let{cbid:n,data:r,language:o}=t;const{LL:a}=Mh(),i=ce(Xn.getBackdropOpen),s=(0,e.useRef)(null);return(0,e.useEffect)((()=>{i&&setTimeout((()=>{var e;null===(e=s.current)||void 0===e||e.focus()}),Bx)}),[i,s]),e.createElement(ab,{"aria-label":a.LINKS()},(r||[]).map(((t,r)=>e.createElement(IS,{cbID:n,key:t.title[o],language:o,resource:t,showVideo:!1,singleWebsite:!0,ref:0===r?s:null}))))}NS.propTypes={cbid:cr().number.isRequired,data:cr().array.isRequired,language:cr().string.isRequired};const AS=NS,LS="Suggestions",DS={list:`${LS}-list`,button:`${LS}-button`,buttonLabel:`${LS}-buttonLabel`},MS=(0,pd.ZP)(ab)((e=>{let{theme:{palette:t}}=e;return{[`& .${DS.list}`]:{marginTop:0},[`& .${DS.button}`]:{wordBreak:"break-word",width:"100%","&:focus-visible":{border:`1px solid ${t.primary.contrastText}`}},[`& .${DS.buttonLabel}`]:{fontWeight:500,color:t.primary.contrastText}}}));function ZS(t){let{data:n,language:r,settings:o}=t;const a=Ze(),i=(0,e.useContext)(nd),{LL:s}=Mh(),l=ce(Xn.getBackdropOpen),c=(0,e.useRef)(null);(0,e.useEffect)((()=>{l&&setTimeout((()=>{var e;null===(e=c.current)||void 0===e||e.focusVisible()}),Bx)}),[l]);return e.createElement(MS,{"aria-label":s.SUGGESTIONS()},(n||[]).map(((t,n)=>{const s=Lt(t,r);return e.createElement(Ef,{key:s},e.createElement(Rx,{classes:{root:DS.button,label:DS.buttonLabel},onClick:()=>{return e=s,void("review"!==o.interfaceType&&a(vn(i,e,void 0,void 0,void 0,{viaExplore:!0})));var e},variant:"outlined",color:"inherit",action:0===n?c:null,ref:0===n?c:null},s))})))}ZS.propTypes={data:cr().array.isRequired,language:cr().string.isRequired,settings:cr().object.isRequired};const FS=ZS;function jS(t){let{cbid:n,data:r,language:o}=t;return r.map(((t,r)=>e.createElement(IS,{key:Number(r),resource:t,singleWebsite:!1,cbID:n,language:o})))}jS.propTypes={cbid:cr().number.isRequired,data:cr().array.isRequired,language:cr().string.isRequired};const $S=jS,BS="ExploreBackdrop",zS={tabBody:`${BS}-tabBody`,tabHeader:`${BS}-tabHeader`,tabLabel:`${BS}-tabLabel`},VS=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`&.${zS.tabBody}`]:{maxHeight:`calc(100vh - 253px - ${t.spacing(1)})`,overflowY:"auto"},[`& .${zS.tabHeader}`]:{marginTop:t.spacing(1)},[`& .${zS.tabLabel}`]:{color:"#fff"}}})),qS=e.forwardRef(((t,n)=>{let{settings:r}=t;const o=ce(Xn.getExploreContent),a=ce((e=>e.language));return e.createElement(VS,{className:zS.tabBody,ref:n},o&&((t,n,r)=>{switch(t.type){case Gn:return e.createElement(AS,{cbid:n.cbid,data:t.links,key:"links",language:r});case Hn:return e.createElement(FS,{data:t.suggestions,key:"suggestions",language:r,settings:n});case Qn:return e.createElement($S,{cbid:n.cbid,data:t.videos,key:"videos",language:r});default:return console.error(`Unknown explore data type: ${t.type}`),null}})(o,r,a))}));qS.displayName="ExplorePane",qS.propTypes={settings:cr().object.isRequired};const WS=Ux((()=>ce(Xn.getBackdropOpen)),(()=>{const e=Ze();return()=>{return e((t=!1,{type:En.SetBackdropOpen,open:t}));var t}}),(()=>[ce(Xn.getBackdropTab)]))(qS),US=(0,fd.Z)((0,vo.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-7zm2 16h-4v-1h4v1zm0-2h-4v-1h4v1zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71-1.83 1.82z"}),"EmojiObjects"),HS=(0,fd.Z)((0,vo.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-11l-4 4z"}),"Videocam"),QS=(0,fd.Z)((0,vo.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.1zM8 13h8v-2H8v2zm9-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-5z"}),"Link");function GS(e){return(0,qd.Z)("MuiBottomNavigation",e)}(0,Wd.Z)("MuiBottomNavigation",["root"]);const KS=["children","className","component","onChange","showLabels","value"],YS=(0,pd.ZP)("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}))),XS=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiBottomNavigation"}),{children:o,className:a,component:i="div",onChange:s,showLabels:l=!1,value:c}=r,u=(0,md.Z)(r,KS),d=(0,qo.Z)({},r,{component:i,showLabels:l}),p=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"]},GS,t)})(d);return(0,vo.jsx)(YS,(0,qo.Z)({as:i,className:(0,jd.Z)(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})}))}))})),JS=XS;function ek(e){return(0,qd.Z)("MuiBottomNavigationAction",e)}const tk=(0,Wd.Z)("MuiBottomNavigationAction",["root","iconOnly","selected","label"]),nk=["className","icon","label","onChange","onClick","selected","showLabel","value"],rk=(0,pd.ZP)(Gp,{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,qo.Z)({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},{[`&.${tk.selected}`]:{color:(e.vars||e).palette.primary.main}}))),ok=(0,pd.ZP)("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e,ownerState:t})=>(0,qo.Z)({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"},{[`&.${tk.selected}`]:{fontSize:e.typography.pxToRem(14)}}))),ak=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiBottomNavigationAction"}),{className:r,icon:o,label:a,onChange:i,onClick:s,value:l}=n,c=(0,md.Z)(n,nk),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,$d.Z)(o,ek,t)})(u);return(0,vo.jsxs)(rk,(0,qo.Z)({ref:t,className:(0,jd.Z)(d.root,r),focusRipple:!0,onClick:e=>{i&&i(e,l),s&&s(e)},ownerState:u},c,{children:[o,(0,vo.jsx)(ok,{className:d.label,ownerState:u,children:a})]}))})),ik=ak,sk="ExploreTabs",lk={bottomNavRoot:`${sk}-bottomNavRoot`,bottomNavActionWrapper:`${sk}-bottomNavActionWrapper`,button:`${sk}-button`},ck=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${lk.bottomNavRoot}`]:{margin:t.spacing(1,0)},[`& .${lk.bottomNavActionWrapper}`]:{paddingTop:t.spacing(.5)},[`& .${lk.button}`]:{"&:disabled":{opacity:.4}}}})),uk=(e,t)=>e&&e[t]?e[t].length:0,dk=(t,n,r)=>[{count:uk(t,"suggestions"),icon:e.createElement(US,null),label:r.SUGGESTIONS()},{count:uk(t,"videos"),icon:e.createElement(HS,null),label:r.VIDEOS(),hidden:n.video_disabled},{count:uk(t,"links"),icon:e.createElement(QS,null),label:r.LINKS()}];const pk=function(){const t=Ze(),{LL:n}=Mh(),r=ce(Xn.getBackdropTab),o=ce(Xn.getBackdropOpen),a=ce(Xn.getExploreResults),i=(0,e.useContext)(ud),s=dk(a,i,n),l=(e,n)=>{t(wn(n))};return s.reduce(((e,t)=>e+t.count),0)>0?e.createElement(ck,null,e.createElement(kg,null),e.createElement(JS,{classes:{root:lk.bottomNavRoot},onChange:l,showLabels:!0,value:o?r:null},s.map((t=>!t.hidden&&e.createElement(ik,{classes:{wrapper:lk.bottomNavActionWrapper,root:lk.button},disabled:0===t.count,icon:t.count>0?e.createElement(vh,{badgeContent:t.count,color:t.count>0?"secondary":"error"},t.icon):t.icon,key:t.label,label:t.label}))))):e.createElement("span",null)};function fk(e){return e.substring(2).toLowerCase()}const hk=function(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,Jf.Z)(n.ref,l),p=(0,wv.Z)((e=>{const t=u.current;u.current=!1;const n=(0,Ev.Z)(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,Ev.Z)(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,Ev.Z)(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,vo.jsx)(e.Fragment,{children:e.cloneElement(n,h)})};function mk(e){return(0,qd.Z)("MuiSnackbarContent",e)}(0,Wd.Z)("MuiSnackbarContent",["root","message","action"]);const vk=["action","className","message","role"],gk=(0,pd.ZP)(Yd,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=(0,Vd._4)(e.palette.background.default,t);return(0,qo.Z)({},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}})})),yk=(0,pd.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),bk=(0,pd.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ek=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert"}=n,s=(0,md.Z)(n,vk),l=n,c=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"],action:["action"],message:["message"]},mk,t)})(l);return(0,vo.jsxs)(gk,(0,qo.Z)({role:i,square:!0,elevation:6,className:(0,jd.Z)(c.root,o),ownerState:l,ref:t},s,{children:[(0,vo.jsx)(yk,{className:c.message,ownerState:l,children:a}),r?(0,vo.jsx)(bk,{className:c.action,ownerState:l,children:r}):null]}))})),wk=Ek;function xk(e){return(0,qd.Z)("MuiSnackbar",e)}(0,Wd.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Sk=["onEnter","onExited"],kk=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Ck=(0,pd.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,zd.Z)(n.anchorOrigin.vertical)}${(0,zd.Z)(n.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>(0,qo.Z)({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,qo.Z)({},"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"})}))),Ok=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiSnackbar"}),o=Rd(),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,onBlur:v,onClose:g,onFocus:y,onMouseEnter:b,onMouseLeave:E,open:w,resumeHideDuration:x,TransitionComponent:S=Fd,transitionDuration:k=a,TransitionProps:{onEnter:C,onExited:O}={}}=r,T=(0,md.Z)(r.TransitionProps,Sk),_=(0,md.Z)(r,kk),R=(0,qo.Z)({},r,{anchorOrigin:{vertical:s,horizontal:l}}),P=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,zd.Z)(n.vertical)}${(0,zd.Z)(n.horizontal)}`]};return(0,$d.Z)(r,xk,t)})(R),I=e.useRef(),[N,A]=e.useState(!0),L=(0,wp.Z)(((...e)=>{g&&g(...e)})),D=(0,wp.Z)((e=>{g&&null!=e&&(clearTimeout(I.current),I.current=setTimeout((()=>{L(null,"timeout")}),e))}));e.useEffect((()=>(w&&D(c),()=>{clearTimeout(I.current)})),[w,c,D]);const M=()=>{clearTimeout(I.current)},Z=e.useCallback((()=>{null!=c&&D(null!=x?x:.5*c)}),[c,x,D]);return e.useEffect((()=>{if(!h&&w)return window.addEventListener("focus",Z),window.addEventListener("blur",M),()=>{window.removeEventListener("focus",Z),window.removeEventListener("blur",M)}}),[h,Z,w]),e.useEffect((()=>{if(w)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||g&&g(e,"escapeKeyDown")}}),[N,w,g]),!w&&N?null:(0,vo.jsx)(hk,(0,qo.Z)({onClickAway:e=>{g&&g(e,"clickaway")}},p,{children:(0,vo.jsx)(Ck,(0,qo.Z)({className:(0,jd.Z)(P.root,d),onBlur:e=>{v&&v(e),Z()},onFocus:e=>{y&&y(e),M()},onMouseEnter:e=>{b&&b(e),M()},onMouseLeave:e=>{E&&E(e),Z()},ownerState:R,ref:n,role:"presentation"},_,{children:(0,vo.jsx)(S,(0,qo.Z)({appear:!0,in:w,timeout:k,direction:"top"===s?"down":"up",onEnter:(e,t)=>{A(!1),C&&C(e,t)},onExited:e=>{A(!0),O&&O(e)}},T,{children:u||(0,vo.jsx)(wk,(0,qo.Z)({message:m,action:i},f))}))}))}))})),Tk=Ok;function _k(e){return(0,qd.Z)("MuiDialog",e)}const Rk=(0,Wd.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Pk=(0,e.createContext)({}),Ik=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Nk=(0,pd.ZP)(Kv,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ak=(0,pd.ZP)(tg,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Lk=(0,pd.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,zd.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,qo.Z)({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"}}))),Dk=(0,pd.ZP)(Yd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,zd.Z)(n.scroll)}`],t[`paperWidth${(0,zd.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,qo.Z)({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):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${Rk.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}`,[`&.${Rk.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,[`&.${Rk.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),Mk=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiDialog"}),o=Rd(),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=Yd,PaperProps:E={},scroll:w="paper",TransitionComponent:x=Wv,transitionDuration:S=a,TransitionProps:k}=r,C=(0,md.Z)(r,Ik),O=(0,qo.Z)({},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,zd.Z)(n)}`],paper:["paper",`paperScroll${(0,zd.Z)(n)}`,`paperWidth${(0,zd.Z)(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,$d.Z)(i,_k,t)})(O),_=e.useRef(),R=(0,Dg.Z)(s),P=e.useMemo((()=>({titleId:R})),[R]);return(0,vo.jsx)(Ak,(0,qo.Z)({className:(0,jd.Z)(T.root,d),closeAfterTransition:!0,components:{Backdrop:Nk},componentsProps:{backdrop:(0,qo.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:e=>{_.current&&(_.current=null,v&&v(e),g&&g(e,"backdropClick"))},ownerState:O},C,{children:(0,vo.jsx)(x,(0,qo.Z)({appear:!0,in:y,timeout:S,role:"presentation"},k,{children:(0,vo.jsx)(Lk,{className:(0,jd.Z)(T.container),onMouseDown:e=>{_.current=e.target===e.currentTarget},ownerState:O,children:(0,vo.jsx)(Dk,(0,qo.Z)({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":R},E,{className:(0,jd.Z)(T.paper,E.className),ownerState:O,children:(0,vo.jsx)(Pk.Provider,{value:P,children:u})}))})}))}))})),Zk=Mk;var Fk=o(1650);function jk(t,n,r,o,a){const i="undefined"!=typeof window&&void 0!==window.matchMedia,[s,l]=e.useState((()=>a&&i?r(t).matches:o?o(t).matches:n));return(0,of.Z)((()=>{let e=!0;if(!i)return;const n=r(t),o=()=>{e&&l(n.matches)};return o(),n.addListener(o),()=>{e=!1,n.removeListener(o)}}),[t,r,i]),s}const $k=t.useSyncExternalStore;function Bk(t,n,r,o){const a=e.useCallback((()=>n),[n]),i=e.useMemo((()=>{if(null!==o){const{matches:e}=o(t);return()=>e}return a}),[a,t,o]),[s,l]=e.useMemo((()=>{if(null===r)return[a,()=>()=>{}];const e=r(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[a,r,t]);return $k(l,s,i)}function zk(e,t={}){const n=(0,zw.Z)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(r?window.matchMedia:null),ssrMatchMedia:i=null,noSsr:s}=(0,Fk.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==$k?Bk:jk)(l,o,a,i,s)}function Vk(e){return(0,qd.Z)("MuiDialogTitle",e)}const qk=(0,Wd.Z)("MuiDialogTitle",["root"]),Wk=["className","id"],Uk=(0,pd.ZP)(Ep,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Hk=e.forwardRef((function(t,n){const r=(0,Bd.Z)({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=(0,md.Z)(r,Wk),s=r,l=(e=>{const{classes:t}=e;return(0,$d.Z)({root:["root"]},Vk,t)})(s),{titleId:c=a}=e.useContext(Pk);return(0,vo.jsx)(Uk,(0,qo.Z)({component:"h2",className:(0,jd.Z)(l.root,o),ownerState:s,ref:n,variant:"h6",id:c},i))})),Qk=Hk;function Gk(e){return(0,qd.Z)("MuiDialogActions",e)}(0,Wd.Z)("MuiDialogActions",["root","spacing"]);const Kk=["className","disableSpacing"],Yk=(0,pd.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,qo.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),Xk=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,a=(0,md.Z)(n,Kk),i=(0,qo.Z)({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,$d.Z)(r,Gk,t)})(i);return(0,vo.jsx)(Yk,(0,qo.Z)({className:(0,jd.Z)(s.root,r),ownerState:i,ref:t},a))})),Jk=Xk;function eC(e){return(0,qd.Z)("MuiToggleButton",e)}const tC=(0,Wd.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),nC=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],rC=(0,pd.ZP)(Gp,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,zd.Z)(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,qo.Z)({},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%"},{[`&.${tC.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,Vd.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tC.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Vd.Fq)(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Vd.Fq)(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Vd.Fq)(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)})})),oC=e.forwardRef((function(e,t){const n=(0,Bd.Z)({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,md.Z)(n,nC),m=(0,qo.Z)({},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,zd.Z)(a)}`,i]};return(0,$d.Z)(s,eC,t)})(m);return(0,vo.jsx)(rC,(0,qo.Z)({className:(0,jd.Z)(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}))})),aC=oC;function iC(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function sC(e){return(0,qd.Z)("MuiToggleButtonGroup",e)}const lC=(0,Wd.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),cC=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],uC=(0,pd.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lC.grouped}`]:t.grouped},{[`& .${lC.grouped}`]:t[`grouped${(0,zd.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,qo.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${lC.grouped}`]:(0,qo.Z)({},"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},[`&.${lC.selected} + .${lC.grouped}.${lC.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},[`&.${lC.selected} + .${lC.grouped}.${lC.selected}`]:{borderTop:0,marginTop:0}})}))),dC=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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,md.Z)(r,cC),m=(0,qo.Z)({},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,zd.Z)(n)}`,o&&"disabled"]};return(0,$d.Z)(a,sC,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,vo.jsx)(uC,(0,qo.Z)({role:"group",className:(0,jd.Z)(v.root,a),ref:n,ownerState:m},h,{children:e.Children.map(o,(t=>e.isValidElement(t)?e.cloneElement(t,{className:(0,jd.Z)(v.grouped,t.props.className),onChange:l?y:g,selected:void 0===t.props.selected?iC(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))}))})),pC=dC,fC="RatingOptions",hC={desktopContainer:`${fC}-desktopContainer`,desktopScoreLabel:`${fC}-desktopScoreLabel`,toggleButton:`${fC}-toggleButton`,mobileContainer:`${fC}-mobileContainer`,col:`${fC}-col`,mobileButtonWrapper:`${fC}-mobileButtonWrapper`,mobileButton:`${fC}-mobileButton`,mobileButtonPadding:`${fC}-mobileButtonPadding`,mobileSelected:`${fC}-mobileSelected`},mC=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${hC.desktopContainer}`]:{alignItems:"center",background:t.palette.background.default,display:"flex",justifyContent:"space-around",margin:t.spacing(1,0),padding:t.spacing(1,2),[t.breakpoints.down("md")]:{display:"none"}},[`& .${hC.desktopScoreLabel}`]:{margin:t.spacing(1)},[`& .${hC.toggleButton}`]:{width:65,[t.breakpoints.down("md")]:{display:"flex",margin:t.spacing(2),padding:t.spacing(2)}},[`& .${hC.mobileContainer}`]:{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",[t.breakpoints.up("md")]:{display:"none"}},[`& .${hC.col}`]:{flex:"0 0 auto",flexBasis:"100%",maxWidth:"100%",padding:t.spacing(0,1.5)},[`& .${hC.mobileButtonWrapper}`]:{margin:t.spacing(.5,0),width:"100%"},[`& .${hC.mobileButton}`]:{color:"#999",padding:t.spacing(1,0)},[`& .${hC.mobileButtonPadding}`]:{padding:t.spacing(.5,0)},[`& .${hC.mobileSelected}`]:{color:t.palette.primary.main}}})),vC=new Array(11).fill(null).map(((e,t)=>t+0));function gC(t){let{handleOnChange:n}=t;const{LL:r}=Mh(),[o,a]=(0,e.useState)(null),[i,s]=(0,e.useState)(""),l=(e,t)=>{a(t),n({score:t,additionalFeedback:i})};return e.createElement(mC,null,e.createElement("div",{className:hC.desktopContainer},e.createElement("span",{className:hC.desktopScoreLabel},r.FEEDBACK_NOT_AT_ALL()),e.createElement(pC,{value:`${o}`,exclusive:!0},vC.map((t=>e.createElement(aC,{key:`score-${t}`,className:hC.toggleButton,value:`${t}`,onClick:e=>l(0,t)},e.createElement(Ep,{variant:"button",color:"inherit"},t))))),e.createElement("span",{className:hC.desktopScoreLabel},r.FEEDBACK_VERY_LIKELY())),e.createElement("div",{className:hC.mobileContainer},vC.slice().reverse().map((t=>{const n=o===+t,a=n?"primary":"inherit",i=n?hC.mobileSelected:"";return e.createElement(Yd,{className:hC.mobileButtonWrapper,key:`score-mobile-${t}`},e.createElement(Rx,{color:a,className:`${hC.mobileButton} ${i}`,fullWidth:!0,onClick:e=>l(0,t),variant:"outlined"},(e=>{switch(+e){case 10:return`10 – ${r.FEEDBACK_VERY_LIKELY()}`;case 0:return`0 – ${r.FEEDBACK_NOT_AT_ALL()}`;default:return e}})(t)))}))),e.createElement(gE,{id:"outlined-helperText",fullWidth:!0,multiline:!0,rows:3,helperText:r.FEEDBACK_OTHER(),margin:"normal",variant:"outlined",onChange:e=>{s(e.target.value),n({score:o,additionalFeedback:e.target.value})}}))}gC.propTypes={handleOnChange:cr().func.isRequired};const yC=gC,bC="RatingDialog",EC={paperWidthLg:`${bC}-paperWidthLg`,ratingOptionsContainer:`${bC}-ratingOptionsContainer`,root:`${bC}-root`},wC=(0,pd.ZP)(Zk)((e=>{let{theme:t}=e;return{zIndex:t.zIndex.chatbotDrawerMenu,[`& .${EC.paperWidthLg}`]:{overflowX:"hidden"},[`& .${EC.ratingOptionsContainer}`]:{margin:t.spacing(0,5)},[`& .${EC.root}`]:{textAlign:"center"}}})),xC=e=>null==e;function SC(t){let{open:n,handleClose:r,onUpdateRating:o,rating:a,sendFeedback:i,wrapper:s,settingsName:l}=t;const[c,u]=(0,e.useState)(xC(a.score)),{LL:d}=Mh(),p=zk(Rd().breakpoints.down("md"));return e.createElement(wC,{container:s,open:n,maxWidth:"lg",onClose:r,classes:{paperWidthLg:EC.paperWidthLg},"aria-labelledby":"rating-dialog-title",fullScreen:p},e.createElement(Qk,{id:"rating-dialog-title",className:EC.root},d.LIKELY_TO_RECOMMEND({bot:l})),e.createElement("div",{className:EC.ratingOptionsContainer},e.createElement(yC,{handleOnChange:e=>{let{score:t,additionalFeedback:n}=e;u(xC(t)),o({score:t,additionalFeedback:n})}})),e.createElement(Jk,null,e.createElement(Rx,{onClick:e=>{e.preventDefault(),r()}},e.createElement(Ep,{variant:"button",color:"inherit"},d.CANCEL())),e.createElement(Rx,{onClick:e=>{e.preventDefault(),(()=>{const{score:e}=a;null!=e&&(i(a),r())})()},disabled:c,color:"primary"},e.createElement(Ep,{variant:"button",color:"inherit"},d.SUBMIT()))))}SC.propTypes={handleClose:cr().func.isRequired,onUpdateRating:cr().func.isRequired,rating:cr().object.isRequired,open:cr().bool.isRequired,sendFeedback:cr().func.isRequired,settingsName:cr().string.isRequired,wrapper:cr().object},SC.defaultProps={wrapper:null};const kC=SC;function CC(){return CC=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},CC.apply(this,arguments)}function OC(t){let{apiKey:n,wrapper:r,...o}=t;const[a,i]=(0,e.useState)({score:null,additionalFeedback:""}),s=Ze();return r&&e.createElement(kC,CC({onUpdateRating:i,rating:a,sendFeedback:e=>{s(yn(e,n))},wrapper:r},o))}OC.propTypes={apiKey:cr().string.isRequired,handleClose:cr().func.isRequired,open:cr().bool.isRequired,settingsName:cr().string.isRequired,wrapper:cr().object},OC.defaultProps={wrapper:null};const TC=OC,_C="FeedbackSnackbar",RC={snackbar:`${_C}-snackbar`,snackbarContent:`${_C}-snackbarContent`},PC=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${RC.snackbar}`]:{left:t.spacing(2),position:"absolute",right:t.spacing(2),transform:"none",top:t.spacing(9)},[`& .${RC.snackbarContent}`]:{opacity:.85,width:"100%"}}})),IC=75e3,NC=5e3,AC=2,LC=e=>"admin"!==e;function DC(){const{LL:t}=Mh();return e.createElement("span",{id:"maxai-client-snackbar"},t.FEEDBACK_PROMPT())}function MC(t){let{environment:n,hasUserProvidedFeedback:r,wrapper:o,chatInput:a}=t;const{LL:i}=Mh(),s=Ze(),l=(0,e.useContext)(nd),c=(0,e.useContext)(ud),[u,d]=(0,e.useState)(null),[p,f]=(0,e.useState)(null),[h,m]=(0,e.useState)(null),v=LC(n)&&!!c.collectFeedback,{showRatingDialog:g,hasFeedbackPromptOpened:y,openSnackbar:b,displayThanksNotification:E}=ce((e=>e.feedback)),w=ce((e=>e.messages.items)),x=w.length,S=w.filter((e=>"user"===e.type)).length,[k]=bv(),C=(0,e.useRef)(null),O=(0,e.useRef)(null),T=(0,e.useRef)(null),_=e=>{C.current||(C.current=setTimeout((()=>{v&&!y&&(s(pn(!0)),s(fn(!0))),clearTimeout(C.current),C.current=null}),e))};(0,e.useEffect)((()=>{C.current&&(clearTimeout(C.current),C.current=null,_(NC))}),[k]);const R=()=>{s(gn()),a&&a.focus()};return(0,e.useEffect)((()=>{if(!v||y||C.current)return;const e=p?S-p+1:0;!u&&!!h&&x>h&&(d(Date.now()),f(S)),null!=u&&(Date.now()-u>IC?_(1e3):e>=AC&&_(NC)),m(x)})),(0,e.useEffect)((()=>{v&&!r&&b&&setTimeout((()=>{O.current&&O.current.focus()}),0)}),[v,r,b]),(0,e.useEffect)((()=>{E&&T.current&&T.current.focus()}),[E]),e.createElement(PC,null,v&&e.createElement(e.Fragment,null,!r&&e.createElement(Tk,{className:RC.snackbar,key:"feedback",anchorOrigin:{vertical:"top",horizontal:"center"},open:b,TransitionComponent:Wv,ContentProps:{"aria-describedby":"message-id"}},e.createElement(wk,{"aria-describedby":"maxai-client-snackbar","aria-label":i.RATE_BOT({bot:c.name}),role:"alertdialog",className:RC.snackbarContent,message:e.createElement(DC,null),action:[e.createElement(Rx,{buttonRef:O,key:"rate",color:"inherit",onClick:()=>{s(pn(!1)),s(dn(!0))},sx:{textTransform:"none"}},i.RATE_BOT({bot:c.name})),e.createElement(Rx,{key:"dismiss",color:"inherit",onClick:()=>{s(pn(!1)),a&&a.focus()},sx:{textTransform:"none"}},i.DISMISS())]})),e.createElement(Tk,{autoHideDuration:7e3,className:RC.snackbar,key:"thanks",TransitionComponent:Wv,onClose:R,anchorOrigin:{vertical:"top",horizontal:"center"},open:E},e.createElement(wk,{action:[e.createElement(Rx,{buttonRef:T,key:"dismiss",color:"inherit",onClick:R},i.DISMISS())],"aria-describedby":"maxai-client-snackbar",className:RC.snackbarContent,message:e.createElement("span",{id:"maxai-client-snackbar"},i.FEEDBACK_THANKS())})),e.createElement(TC,{apiKey:l,dispatch:s,handleClose:()=>{s(dn(!1)),a&&a.focus()},open:g,settingsName:c.name,wrapper:o})))}MC.propTypes={environment:cr().oneOf(["admin","embedded"]).isRequired,hasUserProvidedFeedback:cr().string,wrapper:cr().object,chatInput:cr().object},MC.defaultProps={hasUserProvidedFeedback:null,wrapper:null,chatInput:null};const ZC=MC;const FC=(0,Wd.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function jC(e){return(0,qd.Z)("MuiMenuItem",e)}const $C=(0,Wd.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),BC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],zC=(0,pd.ZP)(Gp,{shouldForwardProp:e=>(0,pd.FO)(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,qo.Z)({},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"}},[`&.${$C.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Vd.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$C.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Vd.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$C.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Vd.Fq)(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,Vd.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$C.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$C.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${bg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${bg.inset}`]:{marginLeft:52},[`& .${Df.root}`]:{marginTop:0,marginBottom:0},[`& .${Df.inset}`]:{paddingLeft:36},[`& .${FC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,qo.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${FC.root} svg`]:{fontSize:"1.25rem"}})))),VC=e.forwardRef((function(t,n){const r=(0,Bd.Z)({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}=r,p=(0,md.Z)(r,BC),f=e.useContext(af),h={dense:i||f.dense||!1,disableGutters:l},m=e.useRef(null);(0,of.Z)((()=>{o&&m.current&&m.current.focus()}),[o]);const v=(0,qo.Z)({},r,{dense:h.dense,divider:s,disableGutters:l}),g=(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,$d.Z)(s,jC,i);return(0,qo.Z)({},i,l)})(r),y=(0,Nd.Z)(m,n);let b;return r.disabled||(b=void 0!==d?d:-1),(0,vo.jsx)(af.Provider,{value:h,children:(0,vo.jsx)(zC,(0,qo.Z)({ref:y,role:u,tabIndex:b,component:a,focusVisibleClassName:(0,jd.Z)(g.focusVisible,c)},p,{ownerState:v,classes:g}))})})),qC=VC,WC=(0,fd.Z)((0,vo.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 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 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.96zM4.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 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.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 2zm.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.56zM16.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 2h-3.38z"}),"Language"),UC=(0,fd.Z)((0,vo.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function HC(e){return(0,qd.Z)("MuiDialogContent",e)}(0,Wd.Z)("MuiDialogContent",["root","dividers"]);const QC=["className","dividers"],GC=(0,pd.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,qo.Z)({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}`}:{[`.${qk.root} + &`]:{paddingTop:0}}))),KC=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,a=(0,md.Z)(n,QC),i=(0,qo.Z)({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,$d.Z)(r,HC,t)})(i);return(0,vo.jsx)(GC,(0,qo.Z)({className:(0,jd.Z)(s.root,r),ownerState:i,ref:t},a))})),YC=KC;function XC(e){return(0,qd.Z)("MuiDialogContentText",e)}(0,Wd.Z)("MuiDialogContentText",["root"]);const JC=["children"],eO=(0,pd.ZP)(Ep,{shouldForwardProp:e=>(0,pd.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tO=e.forwardRef((function(e,t){const n=(0,Bd.Z)({props:e,name:"MuiDialogContentText"}),r=(0,md.Z)(n,JC),o=(e=>{const{classes:t}=e,n=(0,$d.Z)({root:["root"]},XC,t);return(0,qo.Z)({},t,n)})(r);return(0,vo.jsx)(eO,(0,qo.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:r},n,{classes:o}))})),nO=tO;var rO=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},oO="AboutDialog",aO={dialogText:"".concat(oO,"-dialogText"),logoWrapper:"".concat(oO,"-logoWrapper")},iO=(0,pd.ZP)(Zk)((function(e){var t,n=e.theme;return(t={zIndex:n.zIndex.chatbotDrawerMenu})["& .".concat(aO.dialogText)]={textAlign:"center"},t["& .".concat(aO.logoWrapper)]={padding:n.spacing(6,5,2,5)},t}));const sO=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=Mh().LL,u=zk(Rd().breakpoints.down("md")),d=rO((0,e.useState)(null),2),p=d[0],f=d[1];return(0,e.useEffect)((function(){p&&p.focus()}),[o,p]),e.createElement(iO,{container:l,fullScreen:u,open:o,onClose:i,TransitionProps:{role:"dialog","aria-label":c.ABOUT_ME()},PaperProps:{ref:f,tabIndex:-1}},e.createElement(YC,null,e.createElement("div",{className:aO.dialogText},e.createElement(nO,{className:aO.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"}))),e.createElement(Ep,{variant:"subtitle1",component:"p",paragraph:!0},c.CREATED_BY()),e.createElement(Ep,{variant:"caption",component:"p",paragraph:!0},c.VERSION({version:null!==(n="5.28.0")?n:""})),e.createElement(Ep,{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(Ep,{component:"p",variant:"caption",paragraph:!0},c.COPYRIGHT({years:"2005-2023"}),e.createElement("br",null),c.PATENT({number:"11,151,195"})))),e.createElement(Jk,null,e.createElement(Rx,{onClick:function(e){e.preventDefault(),i()},color:"primary",className:"aboutdialog-close-button"},e.createElement(Ep,{variant:"button",color:"inherit"},c.CLOSE()))))},lO={menuButton:"SettingsMenu-menuButton"},cO=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${lO.menuButton}`]:{marginRight:t.spacing(-2)}}}));function uO(t){let{wrapper:n,chatbotName:r}=t;const o=Ze(),{LL:a}=Mh(),[i,s]=(0,e.useState)(null),[l,c]=(0,e.useState)(!1),u=cd(),d=(0,e.useRef)(null),p=(0,e.useContext)(ud),f=()=>{d.current&&setTimeout((()=>{d.current.focus()}),200)},h=e=>{s(null),e&&f()},m=Boolean(i);return e.createElement(cO,null,e.createElement(tf,{"aria-owns":m?"menu-appbar":null,"aria-haspopup":"true",onClick:e=>{s(e.currentTarget)},color:"inherit",className:lO.menuButton,"aria-label":a.OPEN_MENU(),ref:d,size:"large"},e.createElement(UC,null)),e.createElement(Lb,{id:"menu-appbar",container:n,open:m,anchorEl:i,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"right",vertical:"top"},onClose:h,sx:{zIndex:e=>e.zIndex.chatbotDrawerMenu}},e.createElement(qC,{onClick:e=>{e.preventDefault(),h(!1),o(sn(p.context))}},a.CLEAR()),e.createElement(qC,{onClick:e=>{e.preventDefault(),Nt(r,!!u.SettingsMenuItems),h()}},a.DOWNLOAD_TRANSCRIPT()),e.createElement(qC,{onClick:e=>{e.preventDefault(),c(!0),h()}},a.ABOUT()),u.SettingsMenuItems?e.createElement(u.SettingsMenuItems,null):null),e.createElement(sO,{handleClose:()=>{c(!1),f()},open:l,wrapper:n}))}uO.propTypes={wrapper:cr().object.isRequired,chatbotName:cr().string.isRequired};const dO=uO,pO="ChatAppHeaderId",fO={root:`${pO}-root`,selected:`${pO}-selected`,appBar:`${pO}-appBar`,flex:`${pO}-flex`,menuButton:`${pO}-menuButton`,textLeft:`${pO}-textLeft`,toolBar:`${pO}-toolBar`},hO=(0,pd.ZP)("header")((e=>{let{theme:t}=e;return{zIndex:10,[`& .${fO.flex}`]:{flex:1},[`& .${fO.menuButton}`]:{marginLeft:t.spacing(-2),marginRight:0},[`& .${fO.textLeft}`]:{textAlign:"left"},[`& .${fO.toolBar}`]:{margin:0}}})),mO=(0,pd.ZP)(qC)((e=>{let{theme:t}=e;return{[`&.${fO.root}`]:{"&:focus":{backgroundColor:t.palette.action.selected},"&$selected":{backgroundColor:t.palette.primary.main,"&:focus":{backgroundColor:t.palette.action.selected}}},[`&.${fO.selected}`]:{}}})),vO="chat-app-header",gO=e.forwardRef(((t,n)=>{const{languages:r,settings:o,toggle:a,wrapper:i,isCollapsible:s}=t,{LL:l}=Mh(),c=Ze(),u=ce((e=>e.language)),d=ce((e=>{var t;return null===(t=e.configOverrides)||void 0===t?void 0:t.name})),{liveChat:p,isLeadCaptureComplete:f}=ce((e=>e.messages)),[h,m]=(0,e.useState)(),[v,g]=(0,e.useState)(!1),y=d||o.name,b=(0,e.useContext)(ud),E=p||b.isLeadCapture&&!f;let w=l.NO_TRANSLATE_LC();b.isLeadCapture&&!f&&(w=l.NO_TRANSLATE_IF());const x=()=>{m(void 0),g(!1)},S={Spanish:l.SPANISH()};return e.createElement(hO,{ref:n},e.createElement(rp,{position:"static",color:"primary"},e.createElement(lp,{className:fO.toolBar},s&&e.createElement(tf,{color:"inherit",onClick:a(void 0),className:fO.menuButton,"aria-label":l.CLOSE_BOT({bot:y}),size:"large"},e.createElement(hd,null)),e.createElement(Ep,{variant:"h6",component:"div",color:"inherit",className:`${fO.flex} ${fO.textLeft}`,id:vO},l.APPBAR_HEADER({bot:y})),r&&r.length>1&&e.createElement(e.Fragment,null,e.createElement(rx,{title:E?w:"Change language",enterDelay:300,placement:E?"left":"bottom",PopperProps:{container:i}},e.createElement("span",null,e.createElement(tf,{color:"inherit","aria-owns":h?"language-menu":void 0,"aria-haspopup":"true","aria-label":l.LANGUAGE(),onClick:e=>{m(e.currentTarget),g(!0)},disabled:E,"aria-expanded":v},e.createElement(WC,null)))),e.createElement(Lb,{id:"language-menu",anchorEl:h,anchorOrigin:{horizontal:"center",vertical:"top"},transformOrigin:{horizontal:"center",vertical:"top"},open:Boolean(h),onClose:x,container:i,sx:{zIndex:e=>e.zIndex.chatbotDrawerMenu}},r.map((t=>{var n,r;return e.createElement(mO,{key:t.code,selected:u===t.code,onClick:(r=t.code,()=>{r!==u&&c(hn(r)),x()}),classes:{root:fO.root,selected:fO.selected}},null!==(n=S[t.text])&&void 0!==n?n:t.text)})))),e.createElement(dO,{wrapper:i,chatbotName:y}))))}));gO.displayName="Header",gO.propTypes={languages:cr().arrayOf(cr().object).isRequired,settings:cr().object.isRequired,toggle:cr().func.isRequired,wrapper:cr().object.isRequired,isCollapsible:cr().bool},gO.defaultProps={isCollapsible:!0};const yO=gO,bO=(0,fd.Z)((0,vo.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),EO=(0,fd.Z)((0,vo.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"),wO=(0,fd.Z)((0,vo.jsx)("path",{d:"M20 6h-1v8c0 .55-.45 1-1 1H6v1c0 1.1.9 2 2 2h10l4 4V8c0-1.1-.9-2-2-2zm-3 5V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v13l4-4h9c1.1 0 2-.9 2-2z"}),"QuestionAnswerRounded"),xO=(0,fd.Z)(e.createElement("path",{d:"M18 11V13H22V11H18ZM16 17.61C16.96 18.32 18.21 19.26 19.2 20C19.6 19.47 20 18.93 20.4 18.4C19.41 17.66 18.16 16.72 17.2 16C16.8 16.54 16.4 17.08 16 17.61ZM20.4 5.6C20 5.07 19.6 4.53 19.2 4C18.21 4.74 16.96 5.68 16 6.4C16.4 6.93 16.8 7.47 17.2 8C18.16 7.28 19.41 6.35 20.4 5.6ZM4 9C2.9 9 2 9.9 2 11V13C2 14.1 2.9 15 4 15H5V19H7V15H8L13 18V6L8 9H4ZM15.5 12C15.5 10.67 14.92 9.47 14 8.65V15.34C14.92 14.53 15.5 13.33 15.5 12Z"}),"CampaignIcon");var SO="#808080",kO=function(e){return(e||"").split(/\s/).map((function(e){return e.substr(0,1)})).slice(0,2).join("")};function CO(t){var n,r=t.message,o=t.clientName,a=t.language,i=t.wrapper,s=Rd(),l=r.source===Ye.CampaignSMS,c=r.source===Ye.CampaignUnsolicitedSms,u=l||c,d=null!==(n=r.campaign_name)&&void 0!==n?n:"";return e.createElement(Lg,{display:"flex",width:"100%"},e.createElement(Lg,{flexGrow:1},e.createElement(jf,{primary:e.createElement(e.Fragment,null,e.createElement("span",{style:{position:"absolute",opacity:0,pointerEvents:"none"}},"You said: "),Lt(r.output,a)),secondary:r.reviewMode&&r.time&&e.createElement(rx,{title:r.timeZone,PopperProps:{container:i}},e.createElement(Lg,{component:"span"},r.time)),primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"}})),e.createElement(Lg,null,e.createElement(Cf,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-end"}},o?e.createElement(rx,{title:o,PopperProps:{container:i}},e.createElement(e.Fragment,null,e.createElement(Af,{alt:"".concat(o," avatar"),"aria-hidden":"true",sx:{color:s.palette.getContrastText(s.palette.secondary.dark),backgroundColor:s.palette.secondary.dark}},kO(o)),e.createElement(Ep,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:s.spacing(10),padding:s.spacing(.5),wordBreak:"break-word"}},o))):e.createElement(e.Fragment,null,e.createElement(Af,{"aria-hidden":"true",sx:{color:s.palette.getContrastText(s.palette.secondary.dark),backgroundColor:s.palette.secondary.dark}},e.createElement(EO,null)),e.createElement(Ep,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:s.spacing(10),padding:s.spacing(.5),wordBreak:"break-word"}},"You")))),r.reviewMode&&u&&e.createElement(rx,{title:l?"".concat(d," Campaign"):"1:1 Text",PopperProps:{container:i,disablePortal:!0},placement:"left"},l?e.createElement(xO,{style:{fill:SO}}):e.createElement(wO,{style:{fill:SO}})))}CO.displayName="UserMessage";const OO=e.memo(CO);var TO=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},_O=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))},RO=500,PO=(0,pd.ZP)(ab)((function(){return{listStyle:"none",margin:0,padding:0,"& li":{listStyle:"none",display:"inline",margin:0,padding:0}}})),IO=(0,pd.ZP)(Rx)((function(){return{margin:"0 10px 10px 0",textAlign:"left",backgroundColor:ox.Z[300],color:"black","&:hover":{backgroundColor:ox.Z[300]},"&:focus":{border:"1px solid black"}}})),NO=(0,pd.ZP)(Rx)((function(){return{margin:"0 10px 10px 0",textAlign:"left","&:focus":{border:"1px solid black"}}})),AO=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]},LO=function(e,t){return e>t+8?t+7:e};const DO=function(t){var n,r,o=t.handleSendMessage,a=t.i,i=t.message,s=t.language,l=i.actions,c=i.ignoreViewMoreActions,u=l?l.length:0,d=c?u:LO(u,0),p=TO((0,e.useState)(d),2),f=p[0],h=p[1],m=TO((0,e.useState)(!0),2),v=m[0],g=m[1],y=Mh().LL,b=(0,e.useMemo)((function(){return l.map((function(){return(0,e.createRef)()}))}),[l]),E=Ze(),w=(0,e.useContext)(ud),x=(0,e.useCallback)((function(e){var t=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"===Lt(e).toLowerCase()?cn(i.auth.uri,null==w?void 0:w.context,E):o(Lt(e,s),"User sent message to chatbot",t)};if("string"==typeof e)t(e);else switch(e.type){case Xe.SendResponse:var n=TO(AO(e),2);t(n[0],n[1]);break;case Xe.Callback:if(!e.callback){console.error("Callback action missing callback field");break}var r=TO(AO(e),2);t(r[0],r[1]),e.callback();break;default:console.error('Unknown conversation action type "'.concat(e.type,'"'))}}),[null==w?void 0:w.context,E,o,s,null===(n=i.auth)||void 0===n?void 0:n.original_question,null===(r=i.auth)||void 0===r?void 0:r.uri]);(0,e.useEffect)((function(){g(!1)}),[]);var S=(0,e.useCallback)((function(){h(LO(u,f)),setTimeout((function(){var e,t;null===(t=null===(e=b[f])||void 0===e?void 0:e.current)||void 0===t||t.focus()}),0)}),[u,f,b]),k=_O([],TO(l),!1),C=!1;return f<k.length&&(k=k.slice(0,f),C=!0),u?e.createElement(PO,{"aria-label":"Actions","data-testid":"actionList-".concat(Number(a))},k.map((function(t,n){return e.createElement(Ef,{key:"actionListItem-".concat(Number(a),"-").concat(Number(n))},e.createElement(Wv,{in:!0,appear:!v,timeout:RO},e.createElement(IO,{id:"operator-button-".concat(a,"-").concat(n),ref:b[n],size:"small",variant:"contained",key:Number(n),"data-testid":"actionButton-".concat(Number(a),"-").concat(Number(n)),disabled:"string"!=typeof t&&t.disabled,onClick:function(){return x(t)}},e.createElement(Ep,{variant:"button",color:"inherit"},Mt(t,s)))))})),C&&e.createElement(Ef,{key:"actionListItem-".concat(Number(a),"-view-more-").concat(f)},e.createElement(Wv,{in:!0,appear:!v,timeout:RO},e.createElement(NO,{id:"operator-button-".concat(a,"-view-more-").concat(f),size:"small","data-testid":"actionButton-".concat(Number(a),"--view-more-").concat(f),onClick:S},e.createElement(Ep,{variant:"button"},y.VIEW_MORE()))))):null};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)},ZO="#808080",FO=function(e){return(e||"").split(/\s/).map((function(e){return e.substr(0,1)})).slice(0,2).join("")},jO={video:1,webpage:2,file:3},$O=function(e){return e.sort((function(e,t){return jO[e.type]-jO[t.type]})),e};function BO(t){var n,r=t.message,o=t.i,a=t.cbID,i=t.name,s=t.avatarUrl,l=t.language,c=t.wrapper,u=t.editNid,d=t.canEditOrAdd,p=t.displayActions,f=t.question,h=t.listClass,m=t.AddOrEditQuestionButton,v=Rd(),g=Mh().LL,y=r.actions?r.actions.length:0,b=r.resources.filter((function(e){return"webpage"===e.type})),E=b?b.length:0,w=[Ke.OperatorTurn,Ke.CampaignOperatorTurn],x=w.includes(r.type)||w.includes(r.convoType)?e.createElement(rx,{title:r.operatorName,PopperProps:{container:c}},e.createElement(e.Fragment,null,e.createElement(Af,{src:r.operatorAvatar,alt:"".concat(r.operatorName," avatar"),"aria-hidden":"true",sx:{color:v.palette.getContrastText(v.palette.secondary.dark),backgroundColor:v.palette.secondary.dark}},FO(r.operatorName)),e.createElement(Ep,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:v.spacing(10),padding:v.spacing(.5),wordBreak:"break-word"}},r.operatorName))):e.createElement(e.Fragment,null,e.createElement(Af,{src:s,alt:"".concat(i," avatar"),"aria-hidden":"true",sx:{color:v.palette.getContrastText(v.palette.secondary.dark),backgroundColor:v.palette.secondary.dark}}),e.createElement(Ep,{variant:"caption","aria-hidden":"true",className:"ocelot-transcript-show",sx:{display:"none",maxWidth:v.spacing(10),padding:v.spacing(.5),wordBreak:"break-word"}},i)),S=r.operatorName||i,k="".concat(g.USER_SAID({name:S}).trim(),": "),C=Lt(r.output,l),O=C.includes("href=")?"assertive":void 0,T=r.source===Ye.CampaignSMS,_=r.source===Ye.CampaignUnsolicitedSms,R=T||_,P=null!==(n=r.campaign_name)&&void 0!==n?n:"";return e.createElement(e.Fragment,null,r.output?e.createElement(e.Fragment,null,"system"!==r.type&&e.createElement(e.Fragment,null,e.createElement(Cf,{sx:r.reviewMode&&R?{display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:"0px"}:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},x),r.reviewMode&&R&&e.createElement(rx,{title:T?"".concat(P," Campaign"):"1:1 Text",PopperProps:{container:c,disablePortal:!0},placement:"right"},T?e.createElement(xO,{style:{fill:ZO},sx:{marginRight:"15px"}}):e.createElement(wO,{style:{fill:ZO},sx:{marginRight:"15px"}}))),e.createElement(jf,{sx:{flex:"1 1 50%",margin:0},"aria-live":O,primary:e.createElement(e.Fragment,null,e.createElement("span",{style:{position:"absolute",opacity:0,pointerEvents:"none"}},k," "),e.createElement(Lg,{sx:r.reviewMode&&!y?{"& p:last-child":{display:"inline"}}:void 0,dangerouslySetInnerHTML:{__html:C}})),secondary:e.createElement(e.Fragment,null,!p||r.resources&&0!==r.resources.length?void 0:e.createElement(DO,MO({},t)),r.reviewMode&&r.time&&e.createElement(rx,{title:r.timeZone,PopperProps:{container:c}},e.createElement(Lg,{component:"span"},r.time))),primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"}})):e.createElement("div",{className:"emptyMessage"}),r.resources&&!!r.resources.length&&e.createElement(ab,{sx:{listStyle:"none",flex:"1 1 100%",width:"100%"},"aria-label":"Resources"},e.createElement(e.Fragment,null,p&&r.output&&y>0&&e.createElement(Ef,{classes:{root:h}},e.createElement(jf,{sx:{margin:0},secondary:e.createElement(DO,MO({},t)),secondaryTypographyProps:{component:"div"}})),$O(r.resources||[]).map((function(t,n){return e.createElement(Ef,{sx:{"& > div":{width:"100%"}},key:Number(n)},e.createElement(IS,{resource:t,singleWebsite:t.actions&&1===E,cbID:a,language:l}))})))),m&&d&&e.createElement("div",{style:{flex:"1 1 100%",textAlign:"right"}},e.createElement(m,{editType:u?"update":"add",questionObject:{nidToFetch:u,question:f,index:Number(o)},wrapper:c})))}BO.displayName="OperatorMessage";const zO=e.memo(BO);var VO=o(2333);const qO="openNewWindow",WO=new RegExp("https://ai.ocelotbot.com/attachment"),UO=t=>{const n=(0,e.useContext)(nd),r=e=>{const t=e.target.getAttribute("href"),r=e.target.closest('[data-message-type]:not([data-message-type=""])'),o=null==r?void 0:r.getAttribute("data-message-type");!t||e.target.getAttribute("tracked")||function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""){case"livechat:operator":case"livechat:client":case"livechat:queue":case"campaign:operator":case"campaign:client":return!0;default:return!1}}(o)||(mn(t,n),e.target.setAttribute("tracked",!0))},o=()=>{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",qO);[].some.call(t.parentElement.classList,(e=>/(MuiCardContent-.|MuiButton-.)*/.test(e)))||(t.innerHTML=`${t.innerHTML} ${(0,VO.Dq)(e.createElement(kS.Z,{style:{fontSize:"1rem",verticalAlign:"text-top",fill:"currentColor",width:"1em",height:"1em"}}))}`)}const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return WO.test(e)}(n);t.getAttribute("trackerAdded")||o||(t.setAttribute("trackerAdded",!0),t.addEventListener("click",r))}))};(0,e.useEffect)((()=>(o(),()=>{t.current&&Array.from(t.current.getElementsByTagName("a")).forEach((e=>{e.getAttribute("trackerAdded")&&(e.removeAttribute("trackerAdded"),e.removeEventListener("click",r))}))})))};var HO;!function(e){e.Windows="Win",e.Mac="Mac",e.Unknown="Unknown"}(HO||(HO={}));var QO=function(){return-1!==window.navigator.userAgent.indexOf(HO.Windows)?HO.Windows:-1!==window.navigator.userAgent.indexOf(HO.Mac)?HO.Mac:HO.Unknown};const GO="MemoMessages",KO={listRootCommon:`${GO}-listRootCommon`,listRoot:`${GO}-listRoot`,editWrapper:`${GO}-editWrapper`,listRootHl:`${GO}-listRootHl`,actionButton:`${GO}-actionButton`,aspectVideo:`${GO}-aspectVideo`,leftAvatar:`${GO}-leftAvatar`,rightAvatar:`${GO}-rightAvatar`,avatarIcon:`${GO}-avatarIcon`,avatarName:`${GO}-avatarName`,actionList:`${GO}-actionList`,systemMessage:`${GO}-systemMessage`,dividerBorder:`${GO}-dividerBorder`,resourceList:`${GO}-resourceList`,resourceListItem:`${GO}-resourceListItem`},YO=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${KO.listRootCommon}`]:{overflowWrap:"break-word","& p":{padding:0,margin:"0 0 1em"},"& table":{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:t.shape.borderRadius,width:"100%","& tr":{display:"flex",borderTop:"1px solid rgba(0, 0, 0, 0.15)",marginBottom:t.spacing(.5),paddingTop:t.spacing(.5),"&:first-of-type":{borderTop:"none",marginTop:0},"& td, th":{borderLeft:"1px solid rgba(0, 0, 0, 0.15)",flex:1,margin:t.spacing(0,.5,0,.25),paddingLeft:t.spacing(1),"&:first-of-type":{borderLeft:"none",flex:2,paddingLeft:t.spacing(.25)}}}},"& img":{maxWidth:"100%"}},[`& .${KO.listRoot}`]:{alignItems:"flex-start",flexWrap:"wrap",margin:0,"&:hover $editWrapper":{opacity:"1",transition:"opacity .5s"},paddingTop:t.spacing(1.5),paddingBottom:t.spacing(1.5)},[`& .${KO.editWrapper}`]:{flex:"1 1 100%",textAlign:"right"},[`& .${KO.listRootHl}`]:{alignItems:"flex-start",margin:0,background:"#ffee58","&:hover $editWrapper":{opacity:"1",transition:"opacity .5s"},paddingTop:t.spacing(1.5),paddingBottom:t.spacing(1.5)},[`& .${KO.actionButton}`]:{margin:"0 10px 10px 0",textAlign:"left"},[`& .${KO.aspectVideo}`]:{position:"absolute",width:"100%",height:"100%",left:0,top:0},[`& .${KO.leftAvatar}`]:{display:"flex",flexDirection:"column",alignItems:"flex-start"},[`& .${KO.rightAvatar}`]:{display:"flex",flexDirection:"column",alignItems:"flex-end"},[`& .${KO.avatarIcon}`]:{color:t.palette.getContrastText(t.palette.secondary.dark),backgroundColor:t.palette.secondary.dark},[`& .${KO.avatarName}`]:{display:"none",maxWidth:t.spacing(10),padding:t.spacing(.5),wordBreak:"break-word"},[`& .${KO.actionList}`]:{listStyle:"none",margin:0,padding:0,"& li":{listStyle:"none",display:"inline",margin:0,padding:0}},[`& .${KO.systemMessage}`]:{backgroundColor:ox.Z[200],color:ox.Z[600],textAlign:"center"},[`& .${KO.dividerBorder}`]:{borderTop:"1px solid rgba(0, 0, 0, 0.12)"},[`& .${KO.resourceList}`]:{listStyle:"none",flex:"1 1 100%",width:"100%"},[`& .${KO.resourceListItem}`]:{"& > div":{width:"100%"}}}})),XO=e=>e.convoType!==Ke.ClientTurn&&e.convoType!==Ke.CampaignClientTurn,JO=e.forwardRef(((t,n)=>{const{messages:r,cbID:o,avatar:a,name:i,clientName:s,AddOrEditQuestionButton:l,language:c,wrapper:u,handleSendMessage:d}=t,p=(0,e.useRef)(null),f=(0,e.useRef)(null),h=r.filter(XO),m=QO()===HO.Mac,v=ce((e=>e.chatbotUi)),g=(0,e.useRef)(!1);(0,e.useEffect)((()=>{let e;return r&&r.length&&p.current&&(e=setTimeout((()=>{p.current.scrollIntoView()}),200)),()=>clearTimeout(e)}),[p,v.open,r]),(0,e.useEffect)((()=>{!g.current&&v.open&&(g.current=!0)}),[v.open]),UO(f);const y=g.current||v.open,b=QO();let E;return y&&(E=h.map(((t,r)=>{const f=Number(r),v=r===h.length-1,g=`${t.highlight?KO.listRootHl:KO.listRoot} ${KO.listRootCommon} ${0===r?"":KO.dividerBorder}`,y=t.convoType||t.type;if(y===Qe.FormNoResponse)return e.createElement(e.Fragment,{key:f});if(["user",Ke.ClientTurn].includes(t.type))return e.createElement(Ef,{classes:{root:g},key:f,"aria-live":"polite","data-message-type":y,tabIndex:"0"},t.highlight?e.createElement("span",{ref:p}):"",v&&e.createElement("div",{ref:n}),e.createElement(OO,{message:t,clientName:s,language:c,wrapper:u}));const b=t.nid&&parseInt(t.nid,10)?t.nid:null,E=r>=2&&h[r-2]&&h[r-2].actions&&!!h[r-2].actions.length&&"noIntent"===t.convoType,w="slot"===t.convoType,x=r===h.length-1&&t.actions&&t.actions.length||t.actions&&t.reviewMode,S=b&&!w||!E&&["noIntent","idk"].includes(h[r].convoType);let k;var C;l&&S&&(k=null===(C=h[r-1])||void 0===C?void 0:C.output);const O="system"===t.type?KO.systemMessage:"",T=m||0!==r?void 0:"alert";return e.createElement(Ef,{key:f,classes:{root:g},className:O,"aria-live":"polite",role:T,"data-message-type":y,tabIndex:"0"},v&&e.createElement("div",{ref:n}),e.createElement(zO,{message:t,i:r,cbID:o,name:i,avatarUrl:a,language:c,wrapper:u,editNid:b,canEditOrAdd:S,displayActions:!!x,question:k,listClass:g,handleSendMessage:d,AddOrEditQuestionButton:l}))}))),e.createElement(YO,null,e.createElement(ab,{role:b!==HO.Mac?"log":void 0,"aria-live":b!==HO.Mac?"polite":void 0,"aria-atomic":b===HO.Mac&&void 0,ref:f},E),e.createElement("div",{hidden:!0},e.createElement("span",{id:qO},"Opens in a new window")))}));JO.displayName="Messages",JO.propTypes={messages:cr().array.isRequired,AddOrEditQuestionButton:cr().func,avatar:cr().string.isRequired,cbID:cr().number.isRequired,language:cr().string.isRequired,name:cr().string.isRequired,clientName:cr().string.isRequired,wrapper:cr().object.isRequired,handleSendMessage:cr().func.isRequired},JO.defaultProps={AddOrEditQuestionButton:null};const eT=e.memo(JO);function tT(e,t){return e===t}function nT(e){return"function"==typeof e?function(){return e}:e}function rT(t,n,r){var o=r&&r.equalityFn||tT,a=function(t){var n=(0,e.useState)(nT(t)),r=n[0],o=n[1];return[r,(0,e.useCallback)((function(e){return o(nT(e))}),[])]}(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]),E=(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]),x=(0,e.useCallback)((function(){var e=Date.now();if(E(e))return w(e);if(p.current){var t=e-a.current,r=e-i.current,o=n-t,s=v?Math.min(o,g-r):o;b(x,s)}}),[g,v,E,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]),k=(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 C=(0,e.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Date.now(),d=E(r);if(l.current=e,c.current=o,a.current=r,d){if(!s.current&&p.current)return i.current=a.current,b(x,n),h?y(a.current):u.current;if(v)return b(x,n),y(a.current)}return s.current||b(x,n),u.current}),[y,h,v,E,b,x,n]),O=(0,e.useCallback)((function(){return!!s.current}),[]);return(0,e.useMemo)((function(){return{callback:C,cancel:S,flush:k,pending:O}}),[C,S,k,O])}((0,e.useCallback)((function(e){return s(e)}),[s]),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}]}const oT=(t,n)=>{(0,e.useEffect)((()=>(t.current&&t.current.addEventListener("scroll",n,{passive:!0}),()=>{t.current&&t.current.removeEventListener("scroll",n)})),[t])},aT=(t,n,r,o)=>{const[a,i]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(!1),f=ce((e=>e.messages.fresh)),h=()=>{const e=r.current;if(e){const t=e.scrollHeight-e.scrollTop<=e.clientHeight+10;i(!t)}};(0,e.useEffect)((()=>h())),oT(r,(()=>{h(),s||l(!0)})),(0,e.useEffect)((()=>{d||a||p(!0)}),[d,a]),(0,e.useEffect)((()=>{if(!c&&!d&&!s&&o.current&&"review"!==n.interfaceType){if(o.current.scrollIntoView(),f){const e=o.current.parentElement.querySelectorAll('button, [href], input, select, textarea, iframe, [tabindex]:not([tabindex="-1"])');e.length&&e[0].focus()}u(!0)}})),(0,e.useEffect)((()=>{l(!1),p(!1),u(!1)}),[t]);const[m]=rT(a&&!d,300);return[m,()=>{a&&r.current&&r.current.scrollBy({behavior:"smooth",top:r.current.clientHeight})}]};var iT="TypingPreview",sT={typingWrapper:"".concat(iT,"-typingWrapper"),dotsContainer:"".concat(iT,"-dotsContainer"),dot:"".concat(iT,"-dot"),hidden:"".concat(iT,"-hidden")},lT=(0,pd.ZP)("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(sT.hidden)]={position:"absolute",opacity:0,pointerEvents:"none"},t["& .".concat(sT.dotsContainer)]={alignItems:"center",display:"flex"},t["& .".concat(sT.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 cT=function(t){var n=t.isTypingResponse,r=t.isAssignedToOperator;return e.createElement("div",{"aria-live":"polite"},n&&e.createElement(e.Fragment,null,e.createElement(kg,null),e.createElement(lT,null,r&&e.createElement("span",{className:sT.hidden},"User is typing"),e.createElement("div",{className:sT.dotsContainer},e.createElement("div",{className:sT.dot}),e.createElement("div",{className:sT.dot}),e.createElement("div",{className:sT.dot})))))},uT="MessagesWrapper",dT={container:`${uT}-container`,end:`${uT}-end`,icon:`${uT}-icon`,seeMoreButton:`${uT}-seeMoreButton`,seeMoreCentered:`${uT}-seeMoreCentered`,seeMoreText:`${uT}-seeMoreText`,seeMoreWrap:`${uT}-seeMoreWrap`,transcriptElement:`${uT}-transcriptElement`},pT=(0,pd.ZP)("div")((e=>{let{theme:t}=e;return{[`& .${dT.container}`]:{flex:"1 1 auto",minHeight:"0px",overflowX:"hidden",overflowY:"auto"},[`& .${dT.end}`]:{clear:"both",float:"left"},[`& .${dT.icon}`]:{fontSize:"1.2rem"},[`& .${dT.seeMoreButton}`]:{backgroundColor:t.palette.link,color:"#fff",pointerEvents:"all","&:hover":{backgroundColor:t.palette.link,color:"#fff"},"&:focus-visible":{border:`1px solid ${t.palette.primary.contrastText}`}},[`& .${dT.seeMoreCentered}`]:{display:"flex",justifyContent:"center"},[`& .${dT.seeMoreText}`]:{fontSize:"0.8rem",margin:t.spacing(0,.5)},[`& .${dT.seeMoreWrap}`]:{bottom:t.spacing(10),pointerEvents:"none",position:"absolute",width:"100%",zIndex:1},[`& .${dT.transcriptElement}`]:{display:"none"}}})),fT=e.forwardRef(((t,n)=>{let{browser:r,cbid:o,language:a,messages:i,clientName:s,wrapper:l,handleSendMessage:c}=t;const{LL:u}=Mh(),{AddOrEditQuestionButton:d,LoadCompleteConversation:p,PostConversation:f,ReviewStatusPane:h}=cd(),m=(0,e.useContext)(ud),v=(0,e.useRef)(null),g=(0,e.useRef)(null),y=(0,e.useRef)(null),b=n||y,E=(0,e.useRef)(null),{name:w,avatar:x}=ce((e=>e.configOverrides)),S=void 0!==x?x:m.avatar,k=w||m.name,C=(0,e.useRef)(p&&e.createElement(p,null));Zx(b,E,l),(0,e.useEffect)((()=>{var e;(e=E.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        ")}))}),[i.items]);const[O,T]=aT(i,m,b,v),_=(0,e.useRef)((new Date).toLocaleString());return e.createElement(pT,null,h&&e.createElement(h,null),C.current,e.createElement("div",{className:dT.seeMoreWrap},O&&e.createElement("div",{className:dT.seeMoreCentered},e.createElement(Uf,{"aria-label":"More",className:dT.seeMoreButton,onClick:T,size:"small",variant:"extended"},e.createElement(bO,{className:dT.icon}),e.createElement(Ep,{className:dT.seeMoreText,variant:"button"},u.MORE())))),e.createElement("article",{className:dT.container,ref:b},e.createElement("div",{id:"ocelotbot-message-container",ref:E},e.createElement("div",null,e.createElement(Ep,{variant:"h3",component:"div",className:`${dT.transcriptElement} ocelot-transcript-show`,id:"ocelotbot-transcript-header"},`Transcript with ${k} on ${_.current}`),e.createElement(eT,{messages:i.items,avatar:S,cbID:o,AddOrEditQuestionButton:d||null,mobile:r.lessThan.medium,name:k,language:a,ref:v,clientName:s,wrapper:l,handleSendMessage:c})),e.createElement(cT,{isTypingResponse:i.typingResponse,isAssignedToOperator:!!i.liveChatAssignee}),f&&e.createElement(f,null),e.createElement("div",{className:dT.end,ref:g}))))}));fT.displayName="MessagesWrapper",fT.propTypes={browser:cr().object.isRequired,cbid:cr().number.isRequired,language:cr().string.isRequired,messages:cr().object.isRequired,clientName:cr().string.isRequired,wrapper:cr().object.isRequired,handleSendMessage:cr().func.isRequired};const hT=fT;const mT=function(e,t,n,r){void 0===r&&(r="Ocelot");try{window.ga&&"function"==typeof window.ga?window.ga((function(){ga.getAll().forEach((function(o){o.send("event",r,e,t,n)}))})):window.gtag&&"function"==typeof window.gtag?window.gtag("event",e,{event_category:r,event_label:t,value:n}):window._trackEvent&&"function"==typeof window._trackEvent&&window._trackEvent(r,e,t,n)}catch(e){console.warn("Ocelot failed to track event: Incompatible Google Analytics tag detected.")}},vT="ChatbotDrawer",gT={conversation:`${vT}-conversation`,drawerPaper40:`${vT}-drawerPaper40`,drawerPaper30:`${vT}-drawerPaper30`,drawerPaper55:`${vT}-drawerPaper55`,drawerPaper100:`${vT}-drawerPaper100`},yT=(0,pd.ZP)(gg)((e=>{let{theme:t}=e;return{zIndex:t.zIndex.chatbotDrawer,[`& .${gT.conversation}`]:{display:"flex",flexDirection:"column",height:"100%"},[`& .${gT.drawerPaper40}`]:{width:"40%",height:"100%",msOverflowStyle:"none"},[`& .${gT.drawerPaper30}`]:{width:"35%",height:"100%",msOverflowStyle:"none"},[`& .${gT.drawerPaper55}`]:{width:"55%",height:"100%",msOverflowStyle:"none"},[`& .${gT.drawerPaper100}`]:{width:"100%",height:"100%",msOverflowStyle:"none"}}}));function bT(t){const{aiRef:n,chatInputRef:r,environment:o,settings:a,toggle:i,isCollapsible:s}=t,l=Ze(),c=(0,e.useContext)(nd),u=(0,e.useContext)(ud),d=ce((e=>e.browser)),p=ce((e=>e.chatbotUi)),f=ce((e=>e.language)),h=ce((e=>e.messages)),m=ce((e=>e.conversationState)),v=ce(Xn.getBackdropOpen),{languages:g}=a,{isLeadCaptureComplete:y,items:b}=h,E=b.filter((e=>"watson"===e.type)),w=E[E.length-1],x=(0,e.useCallback)(((e,t,n)=>{var r;const o=!(null==w||null===(r=w.actions)||void 0===r||!r.length)&&w.actions.some((e=>Mt(e,f)===tt.ExitChatbot)),{isLeadCapture:s}=u;s&&!y&&o&&nt.includes(e.toLowerCase())?i()():"review"!==a.interfaceType&&(mT("message_send",t),l(vn(c,e,n,u)))}),[c,u,l,y,f,w,a.interfaceType,i]),S=(0,e.useCallback)(((e,t)=>{var n,r;x(e,null===(n=window)||void 0===n||null===(r=n.location)||void 0===r?void 0:r.href,t)}),[x]);let k=gT.drawerPaper30;return k=d.lessThan.medium?gT.drawerPaper100:d.is.medium?gT.drawerPaper55:gT.drawerPaper40,(0,e.useEffect)((()=>{(p.open||1===h.items.length)&&r.current&&r.current.focus()}),[r,p.open,h.items]),e.createElement(yT,{open:!s||p.open,anchor:"right",classes:{paper:k},onClose:i(this),container:n.current,ModalProps:{disableEscapeKeyDown:!s||v,keepMounted:!0},transitionDuration:s?void 0:0},e.createElement("section",{"aria-labelledby":vO,className:gT.conversation},e.createElement(Og,null,(t=>e.createElement(e.Fragment,null,e.createElement(yO,{languages:g,ref:t,settings:a,toggle:i,wrapper:n.current,isCollapsible:s}),e.createElement(WS,{settings:a},(t=>e.createElement(hT,{browser:d,cbid:a.cbid,language:f,messages:h,clientName:m.name||"",ref:t,wrapper:n.current,handleSendMessage:x}))),e.createElement(ZC,{environment:o,wrapper:n.current,chatInput:r.current}),"review"!==a.interfaceType?e.createElement(e.Fragment,null,e.createElement(pk,{settings:a}),e.createElement("footer",null,e.createElement(kg,null),e.createElement(vx,{onSubmit:S,outstanding:h.outstanding,ref:r,wrapper:n.current}))):"")))))}bT.propTypes={aiRef:cr().object.isRequired,chatInputRef:cr().object.isRequired,environment:cr().string.isRequired,settings:cr().object.isRequired,toggle:cr().func.isRequired,isCollapsible:cr().bool},bT.defaultProps={isCollapsible:!0};const ET=bT;function wT(t){let{adminComponents:n,environment:r,options:o}=t;const{setLocale:a,locale:i}=Mh(),s=(0,e.useContext)(ud),l=ce((e=>e.chatbotUi)),c=ce((e=>e.language)),u=ce((e=>e.messages)),d=ce((e=>e.conversationState)),{showRatingDialog:p}=ce((e=>e.feedback)),[f,h]=(0,e.useState)(!1),m=Ze(),v=(0,e.useRef)(null),g=(0,e.useRef)(null),[y,b]=(0,e.useState)({loaded:!0,cbid:s.cbid?parseInt(s.cbid,10):parseInt(s.id,10),name:s.name,languages:s.languages,launch_button_text:s.launch_button_text,avatar:s.avatar,hello:s.hello,helloActions:s.helloActions,launcherType:s.launcherType,interfaceType:s.interfaceType,editing:null});(0,e.useEffect)((()=>{m(bn()),"#bot"===window.location.hash&&m(Yt(!0));const e=(window.navigator.userLanguage||window.navigator.language).split("-");"en"!==e[0]&&Ot(e[0])&&m(hn(e[0]))}),[m]),(0,e.useEffect)((()=>{c!==i&&a(c)}),[c,i,a]),(0,e.useEffect)((()=>{if((!o.isCollapsible||l.open)&&!u.items.length){const e={output:{text:y.hello,resources:[],actions:y.helloActions}};m(Gt(e))}}),[u,l,m,o.isCollapsible,y.hello,y.helloActions]),(0,e.useEffect)((()=>{y.loaded&&y.name===s.name&&y.languages===s.languages&&y.launch_button_text===s.launch_button_text&&y.avatar===s.avatar&&y.launcherType===s.launcherType&&y.interfaceType===s.interfaceType&&y.cbid===parseInt(s.cbid,10)&&y.hello===s.hello&&y.helloActions===s.helloActions||b({loaded:!0,name:s.name,languages:s.languages,launch_button_text:s.launch_button_text,avatar:s.avatar,launcherType:s.launcherType,interfaceType:s.interfaceType,cbid:s.cbid?parseInt(s.cbid,10):parseInt(s.id,10),hello:s.hello,helloActions:s.helloActions,editing:null})}),[y,s]);const E=l.conversationStarted||u.items.length>1;(0,e.useEffect)((()=>{E||"review"===y.interfaceType||m(sn(s.context))}),[y,s.context,E,m]),(0,e.useEffect)((()=>{let e;const t=v.current;return!f&&v.current&&(e=()=>{g&&g.current&&g.current!==document.activeElement&&!p&&g.current.focus()},v.current.addEventListener("keypress",e),h(!0)),()=>{t&&t.removeEventListener("keypress",e)}}),[p,f]);const w=(0,e.useRef)(!1),x=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{var e,t,n,r;w.current&&(l.open?mT("chatbot_open",null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href):mT("chatbot_close",null===(n=window)||void 0===n||null===(r=n.location)||void 0===r?void 0:r.href));w.current=!0,!x.current&&l.open&&(x.current=!0)}),[l.open]),e.createElement(ld,{value:n},e.createElement(yv,null,e.createElement(na,{ref:v,environment:r,lang:c},e.createElement(id,null,u.liveChat&&e.createElement(uv,null),u.isCampaign&&e.createElement(vv,null),d.agent_campaign&&e.createElement(mv,null),v.current&&!l.open&&"none"!==y.launcherType?e.createElement(im,{options:o,root:v.current,autoFocus:x.current}):"",e.createElement(yh,null,((t,n)=>{let{close:a}=n;return e.createElement(ET,{aiRef:v,chatInputRef:g,environment:r,settings:y,toggle:a,isCollapsible:o.isCollapsible})}))))))}wT.propTypes={adminComponents:cr().object,environment:cr().oneOf(["admin","embedded"]),options:cr().object},wT.defaultProps={options:dd({}),adminComponents:{},environment:"embedded"};const xT=wT;var ST=function(){return ST=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},ST.apply(this,arguments)},kT=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())}))},CT=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(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},OT={en:function(){return Promise.resolve().then(o.bind(o,8861))},es:function(){return Promise.resolve().then(o.bind(o,2962))},vi:function(){return Promise.resolve().then(o.bind(o,97))},"zh-hans":function(){return Promise.resolve().then(o.bind(o,5881))}},TT=function(e,t){return Tt[e]=ST(ST({},Tt[e]),t)},_T=function(e){return kT(void 0,void 0,Promise,(function(){return CT(this,(function(t){switch(t.label){case 0:return[4,OT[e]()];case 1:return[2,t.sent().default]}}))}))},RT=function(e){return kT(void 0,void 0,Promise,(function(){var t,n;return CT(this,(function(r){switch(r.label){case 0:return t=TT,n=[e],[4,_T(e)];case 1:return t.apply(void 0,n.concat([r.sent()])),IT(e),[2]}}))}))},PT=function(){return Promise.all(Ct.map(RT))},IT=function(e){_t[e]={}};const NT=(0,To.Z)({key:"oclt",stylisPlugins:[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case No:return void(e.return=Vo(e.value,e.length,n));case Ao:return zo([Bo(e,{value:Mo(e.value,"@","@"+Po)})],r);case Io:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(Do(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zo([Bo(e,{props:[Mo(t,/:(read-\w+)/,":"+Ro+"$1")]})],r);case"::placeholder":return zo([Bo(e,{props:[Mo(t,/:(plac\w+)/,":"+Po+"input-$1")]}),Bo(e,{props:[Mo(t,/:(plac\w+)/,":"+Ro+"$1")]}),Bo(e,{props:[Mo(t,/:(plac\w+)/,_o+"input-$1")]})],r)}return""}))}},function(e){e.type===Io&&Array.isArray(e.props)&&(e.props=e.props.map((function(e){return 1!==e.indexOf("MaxAI")?".MaxAI ".concat(e):e})))},function(e){e.type!==No||/!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}),AT=ur?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gt.apply(void 0,St([kt,Ct],xt(e),!1))}(Et):"en";function LT(t){let{theme:n,...r}=t;const[o,a]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{PT(AT).then((()=>a(!0)))}),[]),o?e.createElement(yo,{injectFirst:!0},e.createElement(dr.C,{value:NT},e.createElement(Oo,{theme:n},e.createElement(Zh,{locale:AT},e.createElement(xT,r))))):null}LT.propTypes={theme:cr().object.isRequired};const DT=LT;function MT(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 ZT=MT();ZT.withExtraArgument=MT;const FT=ZT,jT=function(e){let{dev:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=M(e,void 0,(t&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Z)(Bn,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(I(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=Z.apply(void 0,a)(n.dispatch),P(P({},n),{},{dispatch:r})}}}(...[FT])));return n},$T=e=>{if(!("string"!=typeof e||e.length<1))return 0===e.indexOf("#")?e:`#${e}`},BT=e=>"string"==typeof e?$T(e):"object"==typeof e&&e.color?$T(e.color):void 0,zT=e=>{const t={typography:ur?{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:{},components:{MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:{".Mui-focusVisible":{border:"1px solid currentColor"},"&:focus-visible":{border:"1px solid currentColor"}}}},MuiButtonGroup:{defaultProps:{disableRipple:!0}}}},n=BT(e.primary),r=BT(e.secondary);let o,a;if(e.link){const t=(i=e.link,Bt(i));if(o=BT(t),o){const e=(e=>{const t=$t(e,60);return jt(t)?t:$t(e,-40)})(t);a=BT(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,Ng.Z)(t)},VT={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=T({key:r,storage:Y.Z,blacklist:["chatbotUi"]},sr),a=jT(o);return{setToken:e=>{a.dispatch(xn(e.clientToken))},removeToken:()=>{a.dispatch({type:"CLIENT_AUTH_SET_TOKEN",clientToken:null})},render:r=>{let o=t.campusId,p=t.officeId;if((!o||!p)&&t.officePatterns){const e=ze(t.officePatterns,window.location.href);e&&(o=e.campusId,p=e.officeId)}r.apiKey&&a.dispatch((e=>({type:"SET_KEY",key:e}))(r.apiKey)),r.clientToken&&a.dispatch(xn(r.clientToken));const f=function(e,t,n){var r=n||!1,o=M(V,z,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),h={key:r.apiKey?r.apiKey:t.apiKey,domain:window.location.hostname};o&&(h.campusId=o),p&&(h.officeId=p);const m=Object.entries(h).map((e=>{let[t,n]=e;return`${encodeURIComponent(t)}=${encodeURIComponent(n)}`})).join("&");fetch(`https://ai.ocelotbot.com/api/config?${m}`).then((e=>e.json())).then((i=>{const s=zT(i),l=He(r.uiParams,(e=>{let t=[];return e.embedPosition&&(t=e.embedPosition.split("_")),{...2===t.length&&{va:t[0],ha:t[1]},...void 0!==e.embedRoaming&&null!==e.embedRoaming&&{ts:e.embedRoaming?1:0},...void 0!==e.embedButtonStyle&&null!==e.embedButtonStyle&&{bs:e.embedButtonStyle},...void 0!==e.embedAvatar&&null!==e.embedAvatar&&{av:e.embedAvatar?1:0}}})(i));if(r.conversation&&(i.interfaceType="review",i.launcherType="none",a.dispatch(Ut(r.conversation)),a.dispatch(Yt(!0))),r.preload&&r.preload.conversation&&r.preload.context){const e=r.preload.context,n=(a.getState().messages.items||[]).filter((e=>"system"===e.type)),o=(r.preload.conversation||[]).concat(n);o.sort(((e,t)=>new Date(e.startTime)-new Date(t.startTime))),a.dispatch(Ut(o)),a.dispatch(Ht(e)),a.dispatch(bn()),a.dispatch((u=r.apiKey?r.apiKey:t.apiKey,(e,t)=>{const n=t().conversationState.auth;n&&n.original_question&&e(vn(u,n.original_question))}));const i=a.getState().messages.liveChat;e.livechat_approved&&!i&&a.dispatch(nn(!0,e.livechat_initial_operator)),a.dispatch((c=!!r.preload.context.campaign_id,e=>{e({type:"TOGGLE_CAMPAIGN",isCampaign:c})}))}var c,u,d;i.placeholder&&a.dispatch({type:"CONFIGURE_PLACEHOLDER",configPlaceholder:d=i.placeholder,placeholder:d}),o&&p&&a.dispatch(((e,t)=>({type:"SET_CAMPUS_OFFICE_PREFERENCE",campusId:e,officeId:t}))(o,p));(0,n.s)(document.querySelector(r.target?r.target:t.target)).render(e.createElement(Ae,{store:a},e.createElement(K,{loading:null,persistor:f},e.createElement(nd.Provider,{value:r.apiKey?r.apiKey:t.apiKey},e.createElement(ud.Provider,{value:i},e.createElement(DT,{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.28.0.css');
        document.getElementsByTagName('head')[0].appendChild(link);
        var ocelotai = OcelotAI.new({
          apiKey:'8eb20a6e-e006-4a8b-a267-abbb1c047310',
          campusId: undefined,
          officeId: undefined,
          officePatterns: []
        });
        ocelotai.render({
          target:'#'+domId,
          uiParams: {
            
            
            
            
            
            
            
            
          },
          
        });
      }
      if (document.readyState === "complete" ||
      document.readyState === "loaded" || document.readyState === "interactive") {
        loadOcelotAI();
      } else { document.addEventListener('DOMContentLoaded', loadOcelotAI, false); }