HEX
Server: LiteSpeed
System: Linux server490.bertina.biz 5.14.0-687.31.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Aug 1 05:38:01 EDT 2026 x86_64
User: parskavirpaya (1252)
PHP: 8.1.34
Disabled: mail, show_source, system, shell_exec, passthru, exec, popen
Upload Files
File: /home/parskavirpaya/public_html/wp-content/plugins/site-mailer/assets/build/admin.js
(()=>{var e={910(e,t,r){const n={"./de/assets-whatsnew.json":[3015,[44]],"./de/common.json":[1045,[45]],"./de/send-feedback.json":[3178,[178]],"./en/assets-whatsnew.json":[3263,[263]],"./en/common.json":[7821,[821]],"./en/send-feedback.json":[5698,[698]],"./es/assets-whatsnew.json":[3020,[20]],"./es/common.json":[9556,[556]],"./es/send-feedback.json":[4897,[897]],"./fr/assets-whatsnew.json":[5208,[208]],"./fr/common.json":[7856,[856]],"./fr/send-feedback.json":[973,[973]],"./he-IL/assets-whatsnew.json":[8263,[501]],"./he-IL/common.json":[37,[37]],"./he-IL/send-feedback.json":[4330,[330]],"./id-ID/assets-whatsnew.json":[9165,[165]],"./id-ID/common.json":[6715,[715]],"./id-ID/send-feedback.json":[5882,[644]],"./it/assets-whatsnew.json":[7245,[245]],"./it/common.json":[539,[539]],"./it/send-feedback.json":[9140,[140]],"./nl/assets-whatsnew.json":[2174,[174]],"./nl/common.json":[2934,[934]],"./nl/send-feedback.json":[7335,[335]],"./pl-PL/assets-whatsnew.json":[547,[547]],"./pl-PL/common.json":[5425,[425]],"./pl-PL/send-feedback.json":[2870,[870]],"./pt-BR/assets-whatsnew.json":[575,[575]],"./pt-BR/common.json":[8829,[829]],"./pt-BR/send-feedback.json":[2978,[978]],"./pt-PT/assets-whatsnew.json":[6963,[963]],"./pt-PT/common.json":[9009,[9]],"./pt-PT/send-feedback.json":[9478,[478]],"./tr-TR/assets-whatsnew.json":[6719,[719]],"./tr-TR/common.json":[1805,[805]],"./tr-TR/send-feedback.json":[5874,[874]]};function i(e){try{if(!r.o(n,e))return Promise.resolve().then((()=>{const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}catch(e){return Promise.reject(e)}const t=n[e],i=t[0];return r.e(t[1][0]).then((()=>r.t(i,19)))}i.keys=()=>Object.keys(n),i.id=910,e.exports=i},9695(e,t,r){"use strict";r.d(t,{A:()=>ne});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=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{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,x="";function w(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:m,column:g,length:s,return:""}}function C(e,t){return s(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function _(){return b=y>0?u(x,--y):0,g--,10===b&&(g=1,m--),b}function k(){return b=y<v?u(x,y++):0,g++,10===b&&(g=1,m++),b}function S(){return u(x,y)}function A(){return y}function E(e,t){return d(x,e,t)}function R(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 I(e){return m=g=1,v=p(x=e),y=0,[]}function O(e){return x="",e}function M(e){return a(E(y-1,P(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(b=S())&&b<33;)k();return R(e)>2||R(b)>3?"":" "}function L(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return E(e,A()+(t<6&&32==S()&&32==k()))}function P(e){for(;k();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&P(b);break;case 40:41===e&&P(e);break;case 92:k()}return y}function j(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+E(t,y-1)+"*"+o(47===e?e:k())}function N(e){for(;!R(S());)k();return E(e,y)}var D="-ms-",B="-moz-",F="-webkit-",$="comm",z="rule",U="decl",W="@keyframes";function q(e,t){for(var r="",n=h(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function V(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case $:return"";case W:return e.return=e.value+"{"+q(e.children,n)+"}";case z:e.value=e.props.join(",")}return p(r=q(e.children,n))?e.return=e.value+"{"+r+"}":""}function H(e){return O(G("",null,null,null,[""],e=I(e),0,[0],e))}function G(e,t,r,n,i,s,a,d,h){for(var m=0,g=0,v=a,y=0,b=0,x=0,w=1,C=1,E=1,R=0,I="",O=i,P=s,D=n,B=I;C;)switch(x=R,R=k()){case 40:if(108!=x&&58==u(B,v-1)){-1!=c(B+=l(M(R),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:B+=M(R);break;case 9:case 10:case 13:case 32:B+=T(x);break;case 92:B+=L(A()-1,7);continue;case 47:switch(S()){case 42:case 47:f(K(j(k(),A()),t,r),h);break;default:B+="/"}break;case 123*w:d[m++]=p(B)*E;case 125*w:case 59:case 0:switch(R){case 0:case 125:C=0;case 59+g:-1==E&&(B=l(B,/\f/g,"")),b>0&&p(B)-v&&f(b>32?X(B+";",n,r,v-1):X(l(B," ","")+";",n,r,v-2),h);break;case 59:B+=";";default:if(f(D=Z(B,t,r,m,g,i,d,I,O=[],P=[],v),s),123===R)if(0===g)G(B,t,D,D,O,s,v,d,P);else switch(99===y&&110===u(B,3)?100:y){case 100:case 108:case 109:case 115:G(e,D,D,n&&f(Z(e,D,D,0,0,i,d,I,i,O=[],v),P),i,P,v,d,n?O:P);break;default:G(B,D,D,D,[""],P,0,d,P)}}m=g=b=0,w=E=1,I=B="",v=a;break;case 58:v=1+p(B),b=x;default:if(w<1)if(123==R)--w;else if(125==R&&0==w++&&125==_())continue;switch(B+=o(R),R*w){case 38:E=g>0?1:(B+="\f",-1);break;case 44:d[m++]=(p(B)-1)*E,E=1;break;case 64:45===S()&&(B+=M(k())),y=S(),g=v=p(I=B+=N(A())),R++;break;case 45:45===x&&2==p(B)&&(w=0)}}return s}function Z(e,t,r,n,o,s,c,u,p,f,m){for(var g=o-1,v=0===o?s:[""],y=h(v),b=0,x=0,C=0;b<n;++b)for(var _=0,k=d(e,g+1,g=i(x=c[b])),S=e;_<y;++_)(S=a(x>0?v[_]+" "+k:l(k,/&\f/g,v[_])))&&(p[C++]=S);return w(e,t,r,0===o?z:u,p,f,m)}function K(e,t,r){return w(e,t,r,$,o(b),d(e,2,-2),0)}function X(e,t,r,n){return w(e,t,r,U,d(e,0,n),d(e,n+1,-1),n)}var Y=function(e,t,r){for(var n=0,i=0;n=i,i=S(),38===n&&12===i&&(t[r]=1),!R(i);)k();return E(e,y)},J=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(r))&&!n){J.set(e,!0);for(var i=[],s=function(e,t){return O(function(e,t){var r=-1,n=44;do{switch(R(n)){case 0:38===n&&12===S()&&(t[r]=1),e[r]+=Y(y-1,t,r);break;case 2:e[r]+=M(n);break;case 4:if(44===n){e[++r]=58===S()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}}while(n=k());return e}(I(e),t))}(t,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return F+"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 F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+B+e+D+e+e;case 6828:case 4268:return F+e+D+e+e;case 6165:return F+e+D+"flex-"+e+e;case 5187:return F+e+l(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return F+e+D+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return F+e+D+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+D+l(e,"shrink","negative")+e;case 5292:return F+e+D+l(e,"basis","preferred-size")+e;case 6060:return F+"box-"+l(e,"-grow","")+F+e+D+l(e,"grow","positive")+e;case 4554:return F+l(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,F+"$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"+F+"$2-$3$1"+B+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(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,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+D+e+e}return e}var re=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=te(e.value,e.length);break;case W:return q([C(e,{value:l(e.value,"@","@"+F)})],n);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return q([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return q([C(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],n)}return""}))}}],ne=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,s=e.stylisPlugins||re,a={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;l.push(e)}));var c,u,d,p,f=[V,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(u=[Q,ee].concat(s,f),d=h(u),function(e,t,r,n){for(var i="",o=0;o<d;o++)i+=u[o](e,t,r,n)||"";return i});o=function(e,t,r,n){c=r,q(H(e?e+"{"+t.styles+"}":t.styles),m),n&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new n({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return g.sheet.hydrate(l),g}},6289(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},9214(e,t,r){"use strict";r.d(t,{C:()=>s,T:()=>l,w:()=>a});var n=r(1609),i=r(9695),o=(r(1287),n.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null)),s=o.Provider,a=function(e){return(0,n.forwardRef)((function(t,r){var i=(0,n.useContext)(o);return e(t,i,r)}))},l=n.createContext({})},7437(e,t,r){"use strict";r.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var n=r(9214),i=r(1609),o=r(41),s=r(1287),a=r(3174),l=(r(4146),(0,n.w)((function(e,t){var r=e.styles,l=(0,a.J)([r],void 0,i.useContext(n.T)),c=i.useRef();return(0,s.i)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,n],function(){r.flush()}}),[t]),(0,s.i)((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.J)(t)}var u=function(){var e=c.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_"}}}},3174(e,t,r){"use strict";r.d(t,{J:()=>f});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},i=r(6289),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,a=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.A)((function(e){return a(e)?e:e.replace(o,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,r){return p={name:t,styles:r,next:p},t}))}return 1===n[e]||a(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return p={name:i.name,styles:i.styles,next:p},i.name;var o=r;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)p={name:s.name,styles:s.styles,next:p},s=s.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=d(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":l(a)&&(n+=c(o)+":"+u(o,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var p=d(e,t,s);switch(o){case"animation":case"animationName":n+=c(o)+":"+p+";";break;default:n+=o+"{"+p+"}"}}else for(var h=0;h<s.length;h++)l(s[h])&&(n+=c(o)+":"+u(o,s[h])+";")}return n}(e,t,r);case"function":if(void 0!==e){var a=p,h=r(e);return p=a,d(e,t,h)}}var f=r;if(null==t)return f;var m=t[f];return void 0!==m?m:f}var p,h=/label:\s*([^\s;{]+)\s*(;|$)/g;function f(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";p=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=d(r,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=d(r,t,e[s]),n&&(i+=o[s]);h.lastIndex=0;for(var a,l="";null!==(a=h.exec(i));)l+="-"+a[1];var c=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:p}}},1287(e,t,r){"use strict";r.d(t,{i:()=>s,s:()=>o});var n=r(1609),i=!!n.useInsertionEffect&&n.useInsertionEffect,o=i||function(e){return e()},s=i||n.useLayoutEffect},41(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}r.d(t,{Rk:()=>n,SF:()=>i,sk:()=>o});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},9940(e,t,r){"use strict";r.d(t,{A:()=>o}),r(1609);var n=r(7437),i=r(790);function o(e){const{styles:t,defaultTheme:r={}}=e,o="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return(0,i.jsx)(n.mL,{styles:o})}},2532(e,t,r){"use strict";r.r(t),r.d(t,{GlobalStyles:()=>_.A,StyledEngineProvider:()=>C,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>k,internal_processStyles:()=>S,internal_serializeStyles:()=>E,keyframes:()=>y.i7});var n=r(8168),i=r(1609),o=r(6289),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,a=(0,o.A)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(9214),c=r(41),u=r(3174),d=r(1287),p=a,h=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:h},m=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.SF)(t,r,n),(0,d.s)((function(){return(0,c.sk)(t,r,n)})),null},v=function e(t,r){var o,s,a=t.__emotion_real===t,d=a&&t.__emotion_base||t;void 0!==r&&(o=r.label,s=r.target);var p=m(t,r,a),h=p||f(d),v=!h("as");return function(){var y=arguments,b=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,w=1;w<x;w++)b.push(y[w],y[0][w])}var C=(0,l.w)((function(e,t,r){var n=v&&e.as||d,o="",a=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=i.useContext(l.T)}"string"==typeof e.className?o=(0,c.Rk)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var x=(0,u.J)(b.concat(a),t.registered,m);o+=t.key+"-"+x.name,void 0!==s&&(o+=" "+s);var w=v&&void 0===p?f(n):h,C={};for(var _ in e)v&&"as"===_||w(_)&&(C[_]=e[_]);return C.className=o,r&&(C.ref=r),i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:x,isStringTag:"string"==typeof n}),i.createElement(n,C))}));return C.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=b,C.__emotion_forwardProp=p,Object.defineProperty(C,"toString",{value:function(){return"."+s}}),C.withComponent=function(t,i){return e(t,(0,n.A)({},r,i,{shouldForwardProp:m(C,i,!0)})).apply(void 0,b)},C}}.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){v[e]=v(e)}));var y=r(7437),b=r(9695),x=r(790);const w=new Map;function C(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=i.useMemo((()=>{const e=`${t}-${r}`;if("object"==typeof document&&w.has(e))return w.get(e);const n=function(e,t){const r=(0,b.A)({key:"css",prepend:e});if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}(t,r);return w.set(e,n),n}),[t,r]);return t||r?(0,x.jsx)(l.C,{value:o,children:n}):n}var _=r(9940);function k(e,t){return v(e,t)}const S=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},A=[];function E(e){return A[0]=e,(0,u.J)(A)}},771(e,t,r){"use strict";var n=r(4994);t.X4=function(e,t){return e=a(e),t=s(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)},t.e$=u,t.tL=function(e,t=.15){return c(e)>.5?u(e,t):d(e,t)},t.eM=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.a=d;var i=n(r(2513)),o=n(r(7755));function s(e,t=0,r=1){return(0,o.default)(e,t,r)}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 r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,i.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,i.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function l(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function c(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),s=(e,t=(e+r/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({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 u(e,t){if(e=a(e),t=s(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 r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function d(e,t){if(e=a(e),t=s(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}},6461(e,t,r){"use strict";var n=r(4994);t.Ay=function(e={}){const{themeId:t,defaultTheme:r=m,rootShouldForwardProp:n=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:v((0,i.default)({},e,{defaultTheme:r,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,s.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:w=y(g(h))}=c,C=(0,o.default)(c,p),_=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,k=x||!1;let S=f;"Root"===h||"root"===h?S=n:h?S=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(S=void 0);const A=(0,s.default)(e,(0,i.default)({shouldForwardProp:S,label:void 0},C)),E=e=>"function"==typeof e&&e.__emotion_real!==e||(0,a.isPlainObject)(e)?n=>b(e,(0,i.default)({},n,{theme:v({theme:n.theme,defaultTheme:r,themeId:t})})):e,R=(n,...o)=>{let s=E(n);const a=o?o.map(E):[];d&&w&&a.push((e=>{const n=v((0,i.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;const o=n.components[d].styleOverrides,s={};return Object.entries(o).forEach((([t,r])=>{s[t]=b(r,(0,i.default)({},e,{theme:n}))})),w(e,s)})),d&&!_&&a.push((e=>{var n;const o=v((0,i.default)({},e,{defaultTheme:r,themeId:t}));return b({variants:null==o||null==(n=o.components)||null==(n=n[d])?void 0:n.variants},(0,i.default)({},e,{theme:o}))})),k||a.push(u);const l=a.length-o.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const c=A(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return A.withConfig&&(R.withConfig=A.withConfig),R}};var i=n(r(4634)),o=n(r(4893)),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(2532)),a=r(1650),l=(n(r(2566)),n(r(2097)),n(r(3142))),c=n(r(3857));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function y(e){return e?(t,r)=>r[e]:null}function b(e,t){let{ownerState:r}=t,n=(0,o.default)(t,u);const s="function"==typeof e?e((0,i.default)({ownerState:r},n)):e;if(Array.isArray(s))return s.flatMap((e=>b(e,(0,i.default)({ownerState:r},n))));if(s&&"object"==typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let t=(0,o.default)(s,d);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,i.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.default)({ownerState:r},n,r)):e.style))})),t}return s}},9452(e,t,r){"use strict";r.d(t,{EU:()=>a,NI:()=>s,iZ:()=>c,kW:()=>u,vf:()=>l});var n=r(7900);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function s(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||o;return t.reduce(((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n)),{})}if("object"==typeof t){const e=n.breakpoints||o;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o))n[e.up(o)]=r(t[o],o);else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e,...t){const r=a(e),i=[r,...t].reduce(((e,t)=>(0,n.A)(e,t)),{});return l(Object.keys(r),i)}function u({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),i=Object.keys(n);if(0===i.length)return e;let o;return i.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[o],o=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[o],o=r):t[r]=e,t)),{})}r.d(t,["zu",0,i])},8336(e,t,r){"use strict";function n(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}r.d(t,{A:()=>n})},8094(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(8587),i=r(8168);const o=["values","unit","step"];function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,a=(0,n.A)(e,o),l=(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,i.A)({},e,{[t.key]:t.val})),{})})(t),c=Object.keys(l);function u(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-s/100}${r})`}function p(e,n){const i=c.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[c[i]]?t[c[i]]:n)-s/100}${r})`}return(0,i.A)({keys:c,values:l,up:u,down:d,between:p,only:function(e){return c.indexOf(e)+1<c.length?p(e,c[c.indexOf(e)+1]):u(e)},not:function(e){const t=c.indexOf(e);return 0===t?u(c[1]):t===c.length-1?d(c[t]):p(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},a)}},8749(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(8168),i=r(8587),o=r(7900),s=r(8094);const a={borderRadius:4};var l=r(8248),c=r(3571),u=r(4188),d=r(8336);const p=["breakpoints","palette","spacing","shape"],h=function(e={},...t){const{breakpoints:r={},palette:h={},spacing:f,shape:m={}}=e,g=(0,i.A)(e,p),v=(0,s.A)(r),y=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(f);let b=(0,o.A)({breakpoints:v,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},h),spacing:y,shape:(0,n.A)({},a,m)},g);return b.applyStyles=d.A,b=t.reduce(((e,t)=>(0,o.A)(e,t)),b),b.unstable_sxConfig=(0,n.A)({},u.A,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},3142(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var n=r(8749),i=r(8094),o=r(8336)},4620(e,t,r){"use strict";var n=r(7900);r.d(t,["A",0,function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}])},8248(e,t,r){"use strict";r.d(t,{LX:()=>f,MA:()=>h,_W:()=>m,Lc:()=>v,Ms:()=>y});var n=r(9452),i=r(6481),o=r(4620);const s={m:"margin",p:"padding"},a={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(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,r]=e.split(""),n=s[t],i=a[r]||"";return Array.isArray(i)?i.map((e=>n+e)):[n+i]})(t)),e[t])}(),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 h(e,t,r,n){var o;const s=null!=(o=(0,i.Yn)(e,t,!1))?o:r;return"number"==typeof s?e=>"string"==typeof e?e:s*e:Array.isArray(s)?e=>"string"==typeof e?e:s[e]:"function"==typeof s?s:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function g(e,t){const r=f(e.theme);return Object.keys(e).map((i=>function(e,t,r,i){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=m(t,r),e)),{})}(c(r),i),s=e[r];return(0,n.NI)(e,s,o)}(e,t,i,r))).reduce(o.A,{})}function v(e){return g(e,u)}function y(e){return g(e,d)}function b(e){return g(e,p)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=d,b.propTypes={},b.filterProps=p},6481(e,t,r){"use strict";r.d(t,{BO:()=>s,Yn:()=>o});var n=r(3366),i=r(9452);function o(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function s(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:o(e,r)||n,t&&(i=t(i,n,e)),i}r.d(t,["Ay",0,function(e){const{prop:t,cssProperty:r=e.prop,themeKey:a,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,a)||{};return(0,i.NI)(e,c,(e=>{let i=s(u,l,e);return e===i&&"string"==typeof e&&(i=s(u,l,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r?i:{[r]:i}}))};return c.propTypes={},c.filterProps=[t],c}])},4188(e,t,r){"use strict";r.d(t,{A:()=>P});var n=r(8248),i=r(6481),o=r(4620);const s=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?(0,o.A)(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r};var a=r(9452);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n._W)(t,e)});return(0,a.NI)(e,e.borderRadius,r)}return null};C.propTypes={},C.filterProps=["borderRadius"],s(u,d,p,h,f,m,g,v,y,b,C,x,w);const _=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n._W)(t,e)});return(0,a.NI)(e,e.gap,r)}return null};_.propTypes={},_.filterProps=["gap"];const k=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.columnGap,r)}return null};k.propTypes={},k.filterProps=["columnGap"];const S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n._W)(t,e)});return(0,a.NI)(e,e.rowGap,r)}return null};function A(e,t){return"grey"===t?t:e}function E(e){return e<=1&&0!==e?100*e+"%":e}S.propTypes={},S.filterProps=["rowGap"],s(_,k,S,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"})),s((0,i.Ay)({prop:"color",themeKey:"palette",transform:A}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:A}));const R=(0,i.Ay)({prop:"width",transform:E}),I=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||a.zu[t];return i?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:E(t)}};return(0,a.NI)(e,e.maxWidth,t)}return null};I.filterProps=["maxWidth"];const O=(0,i.Ay)({prop:"minWidth",transform:E}),M=(0,i.Ay)({prop:"height",transform:E}),T=(0,i.Ay)({prop:"maxHeight",transform:E}),L=(0,i.Ay)({prop:"minHeight",transform:E}),P=((0,i.Ay)({prop:"size",cssProperty:"width",transform:E}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:E}),s(R,I,O,M,T,L,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:S},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:I},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},9599(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(8168),i=r(8587),o=r(7900),s=r(4188);const a=["sx"];function l(e){const{sx:t}=e,r=(0,i.A)(e,a),{systemProps:l,otherProps:c}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:s.A;return Object.keys(e).forEach((t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let u;return u=Array.isArray(t)?[l,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,o.Q)(r)?(0,n.A)({},l,r):l}:(0,n.A)({},l,t),(0,n.A)({},c,{sx:u})}},3857(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>n.k,unstable_defaultSxConfig:()=>o.A});var n=r(3571),i=r(9599),o=r(4188)},3571(e,t,r){"use strict";r.d(t,{k:()=>l});var n=r(3366),i=r(4620),o=r(6481),s=r(9452),a=r(4188);function l(){function e(e,t,r,i){const a={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,o.Yn)(r,u)||{};return p?p(a):(0,s.NI)(a,t,(t=>{let r=(0,o.BO)(h,d,t);return t===r&&"string"==typeof t&&(r=(0,o.BO)(h,d,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===c?r:{[c]:r}}))}return function t(r){var n;const{sx:o,theme:l={}}=r||{};if(!o)return null;const c=null!=(n=l.unstable_sxConfig)?n:a.A;function u(r){let n=r;if("function"==typeof r)n=r(l);else if("object"!=typeof r)return r;if(!n)return null;const o=(0,s.EU)(l.breakpoints),a=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o="function"==typeof(a=n[r])?a(l):a;var a;if(null!=o)if("object"==typeof o)if(c[r])u=(0,i.A)(u,e(r,o,l,c));else{const e=(0,s.NI)({theme:l},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?u=(0,i.A)(u,e):u[r]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(r,o,l,c))})),(0,s.vf)(a,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c;r.d(t,["A",0,u])},3366(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(644);function i(e){if("string"!=typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2566(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(3366)},6972(e,t,r){"use strict";r.d(t,["A",0,function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}])},7755(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(6972)},7900(e,t,r){"use strict";r.d(t,{A:()=>a,Q:()=>o});var n=r(8168),i=r(1609);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function s(e){if(i.isValidElement(e)||!o(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=s(e[r])})),t}function a(e,t,r={clone:!0}){const l=r.clone?(0,n.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((n=>{i.isValidElement(t[n])?l[n]=t[n]:o(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&o(e[n])?l[n]=a(e[n],t[n],r):r.clone?l[n]=o(t[n])?s(t[n]):t[n]:l[n]=t[n]})),l}},1650(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n.A,isPlainObject:()=>n.Q});var n=r(7900)},644(e,t,r){"use strict";function n(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."}r.d(t,{A:()=>n})},2513(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(644)},2097(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>l,getFunctionName:()=>o});var n=r(9640);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function s(e,t=""){return e.displayName||e.name||o(e)||t}function a(e,t,r){const n=s(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return s(e,"Component");if("object"==typeof e)switch(e.$$typeof){case n.vM:return a(e,e.render,"ForwardRef");case n.lD:return a(e,e.type,"memo");default:return}}}},9640(e,t){"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.consumer"),Symbol.for("react.context");var r=Symbol.for("react.forward_ref"),n=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.view_transition"),Symbol.for("react.client.reference");t.vM=r,t.lD=n},2923(e,t,r){"use strict";t.A=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}(r(1609)),i=r(2532);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}t.A=function(e=null){const t=n.useContext(i.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},7201(e,t,r){"use strict";const n=window.wp.element;var i=r(790),o=r(1609),s=r.n(o);const a=window.ReactDOM;var l=r.n(a);function c(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(null,arguments)}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var h,f,m,g,v,y={exports:{}};const b=d((v||(v=1,y.exports=function(){if(g)return m;g=1;var e=f?h:(f=1,h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function r(){}return r.resetWarningCache=t,m=function(){function n(t,r,n,i,o,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},m}()()),y.exports));function x(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=x(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function w(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=x(e))&&(n&&(n+=" "),n+=t);return n}function C(e,t,r=void 0){const n={};return Object.keys(e).forEach((i=>{n[i]=e[i].reduce(((e,n)=>{if(n){const i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}var _,k={},S={exports:{}};function A(){return _||(_=1,(e=S).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),S.exports;var e}var E,R,I={exports:{}},O={exports:{}};function M(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var T=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,L=M((function(e){return T.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),P=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=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{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),j="-ms-",N="-moz-",D="-webkit-",B="comm",F="rule",$="decl",z="@keyframes",U=Math.abs,W=String.fromCharCode,q=Object.assign;function V(e){return e.trim()}function H(e,t,r){return e.replace(t,r)}function G(e,t){return e.indexOf(t)}function Z(e,t){return 0|e.charCodeAt(t)}function K(e,t,r){return e.slice(t,r)}function X(e){return e.length}function Y(e){return e.length}function J(e,t){return t.push(e),e}var Q=1,ee=1,te=0,re=0,ne=0,ie="";function oe(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Q,column:ee,length:s,return:""}}function se(e,t){return q(oe("",null,null,"",null,null,0),e,{length:-e.length},t)}function ae(){return ne=re<te?Z(ie,re++):0,ee++,10===ne&&(ee=1,Q++),ne}function le(){return Z(ie,re)}function ce(){return re}function ue(e,t){return K(ie,e,t)}function de(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 pe(e){return Q=ee=1,te=X(ie=e),re=0,[]}function he(e){return ie="",e}function fe(e){return V(ue(re-1,ve(91===e?e+2:40===e?e+1:e)))}function me(e){for(;(ne=le())&&ne<33;)ae();return de(e)>2||de(ne)>3?"":" "}function ge(e,t){for(;--t&&ae()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return ue(e,ce()+(t<6&&32==le()&&32==ae()))}function ve(e){for(;ae();)switch(ne){case e:return re;case 34:case 39:34!==e&&39!==e&&ve(ne);break;case 40:41===e&&ve(e);break;case 92:ae()}return re}function ye(e,t){for(;ae()&&e+ne!==57&&(e+ne!==84||47!==le()););return"/*"+ue(t,re-1)+"*"+W(47===e?e:ae())}function be(e){for(;!de(le());)ae();return ue(e,re)}function xe(e){return he(we("",null,null,null,[""],e=pe(e),0,[0],e))}function we(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,C=n,_=b;g;)switch(f=y,y=ae()){case 40:if(108!=f&&58==Z(_,d-1)){-1!=G(_+=H(fe(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=fe(y);break;case 9:case 10:case 13:case 32:_+=me(f);break;case 92:_+=ge(ce()-1,7);continue;case 47:switch(le()){case 42:case 47:J(_e(ye(ae(),ce()),t,r),l);break;default:_+="/"}break;case 123*m:a[c++]=X(_)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(_=H(_,/\f/g,"")),h>0&&X(_)-d&&J(h>32?ke(_+";",n,r,d-1):ke(H(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(J(C=Ce(_,t,r,c,u,i,a,b,x=[],w=[],d),o),123===y)if(0===u)we(_,t,C,C,x,o,d,a,w);else switch(99===p&&110===Z(_,3)?100:p){case 100:case 108:case 109:case 115:we(e,C,C,n&&J(Ce(e,C,C,0,0,i,a,b,i,x=[],d),w),i,w,d,a,n?x:w);break;default:we(_,C,C,C,[""],w,0,a,w)}}c=u=h=0,m=v=1,b=_="",d=s;break;case 58:d=1+X(_),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(ne=re>0?Z(ie,--re):0,ee--,10===ne&&(ee=1,Q--),ne))continue;switch(_+=W(y),y*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(X(_)-1)*v,v=1;break;case 64:45===le()&&(_+=fe(ae())),p=le(),u=d=X(b=_+=be(ce())),y++;break;case 45:45===f&&2==X(_)&&(m=0)}}return o}function Ce(e,t,r,n,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],h=Y(p),f=0,m=0,g=0;f<n;++f)for(var v=0,y=K(e,d+1,d=U(m=s[f])),b=e;v<h;++v)(b=V(m>0?p[v]+" "+y:H(y,/&\f/g,p[v])))&&(l[g++]=b);return oe(e,t,r,0===i?F:a,l,c,u)}function _e(e,t,r){return oe(e,t,r,B,W(ne),K(e,2,-2),0)}function ke(e,t,r,n){return oe(e,t,r,$,K(e,0,n),K(e,n+1,-1),n)}function Se(e,t){for(var r="",n=Y(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Ae(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $:return e.return=e.return||e.value;case B:return"";case z:return e.return=e.value+"{"+Se(e.children,n)+"}";case F:e.value=e.props.join(",")}return X(r=Se(e.children,n))?e.return=e.value+"{"+r+"}":""}var Ee=function(e,t,r){for(var n=0,i=0;n=i,i=le(),38===n&&12===i&&(t[r]=1),!de(i);)ae();return ue(e,re)},Re=new WeakMap,Ie=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Re.get(r))&&!n){Re.set(e,!0);for(var i=[],o=function(e,t){return he(function(e,t){var r=-1,n=44;do{switch(de(n)){case 0:38===n&&12===le()&&(t[r]=1),e[r]+=Ee(re-1,t,r);break;case 2:e[r]+=fe(n);break;case 4:if(44===n){e[++r]=58===le()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=W(n)}}while(n=ae());return e}(pe(e),t))}(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},Oe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Me(e,t){switch(function(e,t){return 45^Z(e,0)?(((t<<2^Z(e,0))<<2^Z(e,1))<<2^Z(e,2))<<2^Z(e,3):0}(e,t)){case 5103:return D+"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 D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+N+e+j+e+e;case 6828:case 4268:return D+e+j+e+e;case 6165:return D+e+j+"flex-"+e+e;case 5187:return D+e+H(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return D+e+j+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return D+e+j+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+j+H(e,"shrink","negative")+e;case 5292:return D+e+j+H(e,"basis","preferred-size")+e;case 6060:return D+"box-"+H(e,"-grow","")+D+e+j+H(e,"grow","positive")+e;case 4554:return D+H(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,D+"$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(X(e)-1-t>6)switch(Z(e,t+1)){case 109:if(45!==Z(e,t+4))break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+N+(108==Z(e,t+3)?"$3":"$2-$3"))+e;case 115:return~G(e,"stretch")?Me(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Z(e,t+1))break;case 6444:switch(Z(e,X(e)-3-(~G(e,"!important")&&10))){case 107:return H(e,":",":"+D)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===Z(e,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(Z(e,t+11)){case 114:return D+e+j+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+j+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+j+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+j+e+e}return e}var Te=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=Me(e.value,e.length);break;case z:return Se([se(e,{value:H(e.value,"@","@"+D)})],n);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Se([se(e,{props:[H(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Se([se(e,{props:[H(t,/:(plac\w+)/,":"+D+"input-$1")]}),se(e,{props:[H(t,/:(plac\w+)/,":-moz-$1")]}),se(e,{props:[H(t,/:(plac\w+)/,j+"input-$1")]})],n)}return""}))}}],Le=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,o=e.stylisPlugins||Te,s={},a=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)}));var l,c,u=[Ae,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Y(e);return function(r,n,i,o){for(var s="",a=0;a<t;a++)s+=e[a](r,n,i,o)||"";return s}}([Ie,Oe].concat(o,u));i=function(e,t,r,n){l=r,Se(xe(e?e+"{"+t.styles+"}":t.styles),d),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new P({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return p.sheet.hydrate(a),p},Pe=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},je=function(e,t,r){Pe(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Ne={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},De=/[A-Z]|^ms/g,Be=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fe=function(e){return 45===e.charCodeAt(1)},$e=function(e){return null!=e&&"boolean"!=typeof e},ze=M((function(e){return Fe(e)?e:e.replace(De,"-$&").toLowerCase()})),Ue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Be,(function(e,t,r){return qe={name:t,styles:r,next:qe},t}))}return 1===Ne[e]||Fe(e)||"number"!=typeof t||0===t?t:t+"px"};function We(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return qe={name:i.name,styles:i.styles,next:qe},i.name;var o=r;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)qe={name:s.name,styles:s.styles,next:qe},s=s.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=We(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":$e(a)&&(n+=ze(o)+":"+Ue(o,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=We(e,t,s);switch(o){case"animation":case"animationName":n+=ze(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)$e(s[c])&&(n+=ze(o)+":"+Ue(o,s[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var a=qe,l=r(e);return qe=a,We(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var qe,Ve=/label:\s*([^\s;{]+)\s*(;|$)/g;function He(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";qe=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=We(r,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=We(r,t,e[s]),n&&(i+=o[s]);Ve.lastIndex=0;for(var a,l="";null!==(a=Ve.exec(i));)l+="-"+a[1];var c=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:qe}}var Ge=!!o.useInsertionEffect&&o.useInsertionEffect,Ze=Ge||function(e){return e()},Ke=Ge||o.useLayoutEffect,Xe=o.createContext("undefined"!=typeof HTMLElement?Le({key:"css"}):null),Ye=Xe.Provider,Je=function(e){return(0,o.forwardRef)((function(t,r){var n=(0,o.useContext)(Xe);return e(t,n,r)}))},Qe=o.createContext({}),et=Je((function(e,t){var r=He([e.styles],void 0,o.useContext(Qe)),n=o.useRef();return Ke((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,s=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",e),i.hydrate([s])),n.current=[i,o],function(){i.flush()}}),[t]),Ke((function(){var e=n.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&je(t,r.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",r,i,!1)}}),[t,r.name]),null}));function tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return He(t)}var rt=function(){var e=tt.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_"}}},nt=L,it=function(e){return"theme"!==e},ot=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?nt:it},st=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},at=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Pe(t,r,n),Ze((function(){return je(t,r,n)})),null},lt=function e(t,r){var n,i,s=t.__emotion_real===t,a=s&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var l=st(t,r,s),c=l||ot(a),d=!c("as");return function(){var p=arguments,h=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&h.push("label:"+n+";"),null==p[0]||void 0===p[0].raw)h.push.apply(h,p);else{h.push(p[0][0]);for(var f=p.length,m=1;m<f;m++)h.push(p[m],p[0][m])}var g=Je((function(e,t,r){var n=d&&e.as||a,s="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=o.useContext(Qe)}"string"==typeof e.className?s=function(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}(t.registered,u,e.className):null!=e.className&&(s=e.className+" ");var m=He(h.concat(u),t.registered,p);s+=t.key+"-"+m.name,void 0!==i&&(s+=" "+i);var g=d&&void 0===l?ot(n):c,v={};for(var y in e)d&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=s,r&&(v.ref=r),o.createElement(o.Fragment,null,o.createElement(at,{cache:t,serialized:m,isStringTag:"string"==typeof n}),o.createElement(n,v))}));return g.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=h,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,n){return e(t,u({},r,n,{shouldForwardProp:st(g,n,!0)})).apply(void 0,h)},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){lt[e]=lt(e)}));var ct="-ms-",ut="-moz-",dt="-webkit-",pt="comm",ht="rule",ft="decl",mt="@keyframes",gt=Math.abs,vt=String.fromCharCode,yt=Object.assign;function bt(e){return e.trim()}function xt(e,t,r){return e.replace(t,r)}function wt(e,t){return e.indexOf(t)}function Ct(e,t){return 0|e.charCodeAt(t)}function _t(e,t,r){return e.slice(t,r)}function kt(e){return e.length}function St(e){return e.length}function At(e,t){return t.push(e),e}var Et=1,Rt=1,It=0,Ot=0,Mt=0,Tt="";function Lt(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Et,column:Rt,length:s,return:""}}function Pt(e,t){return yt(Lt("",null,null,"",null,null,0),e,{length:-e.length},t)}function jt(){return Mt=Ot<It?Ct(Tt,Ot++):0,Rt++,10===Mt&&(Rt=1,Et++),Mt}function Nt(){return Ct(Tt,Ot)}function Dt(){return Ot}function Bt(e,t){return _t(Tt,e,t)}function Ft(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 $t(e){return Et=Rt=1,It=kt(Tt=e),Ot=0,[]}function zt(e){return Tt="",e}function Ut(e){return bt(Bt(Ot-1,Vt(91===e?e+2:40===e?e+1:e)))}function Wt(e){for(;(Mt=Nt())&&Mt<33;)jt();return Ft(e)>2||Ft(Mt)>3?"":" "}function qt(e,t){for(;--t&&jt()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return Bt(e,Dt()+(t<6&&32==Nt()&&32==jt()))}function Vt(e){for(;jt();)switch(Mt){case e:return Ot;case 34:case 39:34!==e&&39!==e&&Vt(Mt);break;case 40:41===e&&Vt(e);break;case 92:jt()}return Ot}function Ht(e,t){for(;jt()&&e+Mt!==57&&(e+Mt!==84||47!==Nt()););return"/*"+Bt(t,Ot-1)+"*"+vt(47===e?e:jt())}function Gt(e){for(;!Ft(Nt());)jt();return Bt(e,Ot)}function Zt(e){return zt(Kt("",null,null,null,[""],e=$t(e),0,[0],e))}function Kt(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,C=n,_=b;g;)switch(f=y,y=jt()){case 40:if(108!=f&&58==Ct(_,d-1)){-1!=wt(_+=xt(Ut(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Ut(y);break;case 9:case 10:case 13:case 32:_+=Wt(f);break;case 92:_+=qt(Dt()-1,7);continue;case 47:switch(Nt()){case 42:case 47:At(Yt(Ht(jt(),Dt()),t,r),l);break;default:_+="/"}break;case 123*m:a[c++]=kt(_)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(_=xt(_,/\f/g,"")),h>0&&kt(_)-d&&At(h>32?Jt(_+";",n,r,d-1):Jt(xt(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(At(C=Xt(_,t,r,c,u,i,a,b,x=[],w=[],d),o),123===y)if(0===u)Kt(_,t,C,C,x,o,d,a,w);else switch(99===p&&110===Ct(_,3)?100:p){case 100:case 108:case 109:case 115:Kt(e,C,C,n&&At(Xt(e,C,C,0,0,i,a,b,i,x=[],d),w),i,w,d,a,n?x:w);break;default:Kt(_,C,C,C,[""],w,0,a,w)}}c=u=h=0,m=v=1,b=_="",d=s;break;case 58:d=1+kt(_),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(Mt=Ot>0?Ct(Tt,--Ot):0,Rt--,10===Mt&&(Rt=1,Et--),Mt))continue;switch(_+=vt(y),y*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(kt(_)-1)*v,v=1;break;case 64:45===Nt()&&(_+=Ut(jt())),p=Nt(),u=d=kt(b=_+=Gt(Dt())),y++;break;case 45:45===f&&2==kt(_)&&(m=0)}}return o}function Xt(e,t,r,n,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],h=St(p),f=0,m=0,g=0;f<n;++f)for(var v=0,y=_t(e,d+1,d=gt(m=s[f])),b=e;v<h;++v)(b=bt(m>0?p[v]+" "+y:xt(y,/&\f/g,p[v])))&&(l[g++]=b);return Lt(e,t,r,0===i?ht:a,l,c,u)}function Yt(e,t,r){return Lt(e,t,r,pt,vt(Mt),_t(e,2,-2),0)}function Jt(e,t,r,n){return Lt(e,t,r,ft,_t(e,0,n),_t(e,n+1,-1),n)}function Qt(e,t){for(var r="",n=St(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function er(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ft:return e.return=e.return||e.value;case pt:return"";case mt:return e.return=e.value+"{"+Qt(e.children,n)+"}";case ht:e.value=e.props.join(",")}return kt(r=Qt(e.children,n))?e.return=e.value+"{"+r+"}":""}var tr=function(e,t,r){for(var n=0,i=0;n=i,i=Nt(),38===n&&12===i&&(t[r]=1),!Ft(i);)jt();return Bt(e,Ot)},rr=new WeakMap,nr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||rr.get(r))&&!n){rr.set(e,!0);for(var i=[],o=function(e,t){return zt(function(e,t){var r=-1,n=44;do{switch(Ft(n)){case 0:38===n&&12===Nt()&&(t[r]=1),e[r]+=tr(Ot-1,t,r);break;case 2:e[r]+=Ut(n);break;case 4:if(44===n){e[++r]=58===Nt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=vt(n)}}while(n=jt());return e}($t(e),t))}(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},ir=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function or(e,t){switch(function(e,t){return 45^Ct(e,0)?(((t<<2^Ct(e,0))<<2^Ct(e,1))<<2^Ct(e,2))<<2^Ct(e,3):0}(e,t)){case 5103:return dt+"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 dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+ut+e+ct+e+e;case 6828:case 4268:return dt+e+ct+e+e;case 6165:return dt+e+ct+"flex-"+e+e;case 5187:return dt+e+xt(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+ct+"flex-$1$2")+e;case 5443:return dt+e+ct+"flex-item-"+xt(e,/flex-|-self/,"")+e;case 4675:return dt+e+ct+"flex-line-pack"+xt(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+ct+xt(e,"shrink","negative")+e;case 5292:return dt+e+ct+xt(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+xt(e,"-grow","")+dt+e+ct+xt(e,"grow","positive")+e;case 4554:return dt+xt(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return xt(xt(xt(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return xt(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return xt(xt(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return xt(e,/(.+)-inline(.+)/,dt+"$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(kt(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(45!==Ct(e,t+4))break;case 102:return xt(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+ut+(108==Ct(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wt(e,"stretch")?or(xt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ct(e,t+1))break;case 6444:switch(Ct(e,kt(e)-3-(~wt(e,"!important")&&10))){case 107:return xt(e,":",":"+dt)+e;case 101:return xt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(45===Ct(e,14)?"inline-":"")+"box$3$1"+dt+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(Ct(e,t+11)){case 114:return dt+e+ct+xt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+ct+xt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+ct+xt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+ct+e+e}return e}var sr=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ft:e.return=or(e.value,e.length);break;case mt:return Qt([Pt(e,{value:xt(e.value,"@","@"+dt)})],n);case ht:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Qt([Pt(e,{props:[xt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Qt([Pt(e,{props:[xt(t,/:(plac\w+)/,":"+dt+"input-$1")]}),Pt(e,{props:[xt(t,/:(plac\w+)/,":-moz-$1")]}),Pt(e,{props:[xt(t,/:(plac\w+)/,ct+"input-$1")]})],n)}return""}))}}];const ar=new Map;function lr(e){const{styles:t,defaultTheme:r={}}=e;return(0,i.jsx)(et,{styles:"function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t})}function cr(e,t){return lt(e,t)}const ur=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},dr=[],pr=p(Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:lr,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,s=o.useMemo((()=>{const e=`${t}-${r}`;if("object"==typeof document&&ar.has(e))return ar.get(e);const n=function(e,t){const r=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,o=e.stylisPlugins||sr,s={},a=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)}));var l,c,u=[er,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=St(e);return function(r,n,i,o){for(var s="",a=0;a<t;a++)s+=e[a](r,n,i,o)||"";return s}}([nr,ir].concat(o,u));i=function(e,t,r,n){l=r,Qt(Zt(e?e+"{"+t.styles+"}":t.styles),d),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new P({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return p.sheet.hydrate(a),p}({key:"css",prepend:e});if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}(t,r);return ar.set(e,n),n}),[t,r]);return t||r?(0,i.jsx)(Ye,{value:s,children:n}):n},ThemeContext:Qe,css:tt,default:cr,internal_processStyles:ur,internal_serializeStyles:function(e){return dr[0]=e,He(dr)},keyframes:rt},Symbol.toStringTag,{value:"Module"})));function hr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function fr(e){if(o.isValidElement(e)||!hr(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=fr(e[r])})),t}function mr(e,t,r={clone:!0}){const n=r.clone?u({},e):e;return hr(e)&&hr(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])?n[i]=t[i]:hr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&hr(e[i])?n[i]=mr(e[i],t[i],r):r.clone?n[i]=hr(t[i])?fr(t[i]):t[i]:n[i]=t[i]})),n}const gr=p(Object.freeze(Object.defineProperty({__proto__:null,default:mr,isPlainObject:hr},Symbol.toStringTag,{value:"Module"})));function vr(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."}const yr=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"}));function br(e){if("string"!=typeof e)throw new Error(vr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const xr=p(Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})));var wr,Cr,_r={exports:{}},kr={},Sr=(Cr||(Cr=1,_r.exports=function(){if(wr)return kr;wr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case r:case i:case n:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case s:case a:case d:case u:case o:return h;default:return f}}case t:return f}}}return kr.ContextConsumer=o,kr.ContextProvider=s,kr.Element=e,kr.ForwardRef=a,kr.Fragment=r,kr.Lazy=d,kr.Memo=u,kr.Portal=t,kr.Profiler=i,kr.StrictMode=n,kr.Suspense=l,kr.SuspenseList=c,kr.isContextConsumer=function(e){return f(e)===o},kr.isContextProvider=function(e){return f(e)===s},kr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},kr.isForwardRef=function(e){return f(e)===a},kr.isFragment=function(e){return f(e)===r},kr.isLazy=function(e){return f(e)===d},kr.isMemo=function(e){return f(e)===u},kr.isPortal=function(e){return f(e)===t},kr.isProfiler=function(e){return f(e)===i},kr.isStrictMode=function(e){return f(e)===n},kr.isSuspense=function(e){return f(e)===l},kr.isSuspenseList=function(e){return f(e)===c},kr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===n||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===s||e.$$typeof===o||e.$$typeof===a||e.$$typeof===h||void 0!==e.getModuleId)},kr.typeOf=f,kr}()),_r.exports);const Ar=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Er(e){const t=`${e}`.match(Ar);return t&&t[1]||""}function Rr(e,t=""){return e.displayName||e.name||Er(e)||t}function _n(e,t,r){const n=Rr(t);return e.displayName||(""!==n?`${r}(${n})`:r)}const Ir=p(Object.freeze(Object.defineProperty({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Rr(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Sr.ForwardRef:return _n(e,e.render,"ForwardRef");case Sr.Memo:return _n(e,e.type,"memo");default:return}}},getFunctionName:Er},Symbol.toStringTag,{value:"Module"}))),Or=["values","unit","step"];function Mr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=c(e,Or),o=(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)=>u({},e,{[t.key]:t.val})),{})})(t),s=Object.keys(o);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function d(e,i){const o=s.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[s[o]]?t[s[o]]:i)-n/100}${r})`}return u({keys:s,values:o,up:a,down:l,between:d,only:function(e){return s.indexOf(e)+1<s.length?d(e,s[s.indexOf(e)+1]):a(e)},not:function(e){const t=s.indexOf(e);return 0===t?a(s[1]):t===s.length-1?l(s[t]):d(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}const Tr={borderRadius:4};function Lr(e,t){return t?mr(e,t,{clone:!1}):e}const Pr={xs:0,sm:600,md:900,lg:1200,xl:1536},jr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pr[e]}px)`};function Nr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||jr;return t.reduce(((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n)),{})}if("object"==typeof t){const e=n.breakpoints||jr;return Object.keys(t).reduce(((n,i)=>{if(-1!==Object.keys(e.values||Pr).indexOf(i))n[e.up(i)]=r(t[i],i);else{const e=i;n[e]=t[e]}return n}),{})}return r(t)}function Dr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function Br(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Fr({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),i=Object.keys(n);if(0===i.length)return e;let o;return i.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[o],o=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[o],o=r):t[r]=e,t)),{})}function $r(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function zr(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:$r(e,r)||n,t&&(i=t(i,n,e)),i}function Ur(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],s=$r(e.theme,n)||{};return Nr(e,o,(e=>{let n=zr(s,i,e);return e===n&&"string"==typeof e&&(n=zr(s,i,`${t}${"default"===e?"":br(e)}`,e)),!1===r?n:{[r]:n}}))};return o.propTypes={},o.filterProps=[t],o}const Wr={m:"margin",p:"padding"},qr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hr=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!Vr[e])return[e];e=Vr[e]}const[t,r]=e.split(""),n=Wr[t],i=qr[r]||"";return Array.isArray(i)?i.map((e=>n+e)):[n+i]})(t)),e[t])}(),Gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Kr(e,t,r,n){var i;const o=null!=(i=$r(e,t,!1))?i:r;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function Xr(e){return Kr(e,"spacing",8)}function Yr(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Jr(e,t){const r=Xr(e.theme);return Object.keys(e).map((n=>function(e,t,r,n){if(-1===t.indexOf(r))return null;const i=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Yr(t,r),e)),{})}(Hr(r),n);return Nr(e,e[r],i)}(e,t,n,r))).reduce(Lr,{})}function Qr(e){return Jr(e,Gr)}function en(e){return Jr(e,Zr)}function tn(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Lr(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function rn(e){return"number"!=typeof e?e:`${e}px solid`}function nn(e,t){return Ur({prop:e,themeKey:"borders",transform:t})}Qr.propTypes={},Qr.filterProps=Gr,en.propTypes={},en.filterProps=Zr;const on=nn("border",rn),sn=nn("borderTop",rn),an=nn("borderRight",rn),ln=nn("borderBottom",rn),cn=nn("borderLeft",rn),un=nn("borderColor"),dn=nn("borderTopColor"),pn=nn("borderRightColor"),hn=nn("borderBottomColor"),fn=nn("borderLeftColor"),mn=nn("outline",rn),gn=nn("outlineColor"),vn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Kr(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Yr(t,e)});return Nr(e,e.borderRadius,r)}return null};vn.propTypes={},vn.filterProps=["borderRadius"],tn(on,sn,an,ln,cn,un,dn,pn,hn,fn,vn,mn,gn);const yn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Kr(e.theme,"spacing",8),r=e=>({gap:Yr(t,e)});return Nr(e,e.gap,r)}return null};yn.propTypes={},yn.filterProps=["gap"];const bn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Kr(e.theme,"spacing",8),r=e=>({columnGap:Yr(t,e)});return Nr(e,e.columnGap,r)}return null};bn.propTypes={},bn.filterProps=["columnGap"];const xn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Kr(e.theme,"spacing",8),r=e=>({rowGap:Yr(t,e)});return Nr(e,e.rowGap,r)}return null};function wn(e,t){return"grey"===t?t:e}function Cn(e){return e<=1&&0!==e?100*e+"%":e}xn.propTypes={},xn.filterProps=["rowGap"],tn(yn,bn,xn,Ur({prop:"gridColumn"}),Ur({prop:"gridRow"}),Ur({prop:"gridAutoFlow"}),Ur({prop:"gridAutoColumns"}),Ur({prop:"gridAutoRows"}),Ur({prop:"gridTemplateColumns"}),Ur({prop:"gridTemplateRows"}),Ur({prop:"gridTemplateAreas"}),Ur({prop:"gridArea"})),tn(Ur({prop:"color",themeKey:"palette",transform:wn}),Ur({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wn}),Ur({prop:"backgroundColor",themeKey:"palette",transform:wn}));const kn=Ur({prop:"width",transform:Cn}),Sn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Pr[t];return i?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Cn(t)}};return Nr(e,e.maxWidth,t)}return null};Sn.filterProps=["maxWidth"];const An=Ur({prop:"minWidth",transform:Cn}),En=Ur({prop:"height",transform:Cn}),Rn=Ur({prop:"maxHeight",transform:Cn}),In=Ur({prop:"minHeight",transform:Cn});Ur({prop:"size",cssProperty:"width",transform:Cn}),Ur({prop:"size",cssProperty:"height",transform:Cn}),tn(kn,Sn,An,En,Rn,In,Ur({prop:"boxSizing"}));const On={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vn},color:{themeKey:"palette",transform:wn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wn},backgroundColor:{themeKey:"palette",transform:wn},p:{style:en},pt:{style:en},pr:{style:en},pb:{style:en},pl:{style:en},px:{style:en},py:{style:en},padding:{style:en},paddingTop:{style:en},paddingRight:{style:en},paddingBottom:{style:en},paddingLeft:{style:en},paddingX:{style:en},paddingY:{style:en},paddingInline:{style:en},paddingInlineStart:{style:en},paddingInlineEnd:{style:en},paddingBlock:{style:en},paddingBlockStart:{style:en},paddingBlockEnd:{style:en},m:{style:Qr},mt:{style:Qr},mr:{style:Qr},mb:{style:Qr},ml:{style:Qr},mx:{style:Qr},my:{style:Qr},margin:{style:Qr},marginTop:{style:Qr},marginRight:{style:Qr},marginBottom:{style:Qr},marginLeft:{style:Qr},marginX:{style:Qr},marginY:{style:Qr},marginInline:{style:Qr},marginInlineStart:{style:Qr},marginInlineEnd:{style:Qr},marginBlock:{style:Qr},marginBlockStart:{style:Qr},marginBlockEnd:{style:Qr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yn},rowGap:{style:xn},columnGap:{style:bn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cn},maxWidth:{style:Sn},minWidth:{transform:Cn},height:{transform:Cn},maxHeight:{transform:Cn},minHeight:{transform:Cn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Mn(){function e(e,t,r,n){const i={[e]:t,theme:r},o=n[e];if(!o)return{[e]:t};const{cssProperty:s=e,themeKey:a,transform:l,style:c}=o;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const u=$r(r,a)||{};return c?c(i):Nr(i,t,(t=>{let r=zr(u,l,t);return t===r&&"string"==typeof t&&(r=zr(u,l,`${e}${"default"===t?"":br(t)}`,t)),!1===s?r:{[s]:r}}))}return function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const s=null!=(n=o.unstable_sxConfig)?n:On;function a(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;const i=Dr(o.breakpoints),a=Object.keys(i);let l=i;return Object.keys(n).forEach((r=>{const i="function"==typeof(a=n[r])?a(o):a;var a;if(null!=i)if("object"==typeof i)if(s[r])l=Lr(l,e(r,i,o,s));else{const e=Nr({theme:o},i,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,i)?l=Lr(l,e):l[r]=t({sx:i,theme:o})}else l=Lr(l,e(r,i,o,s))})),Br(a,l)}return Array.isArray(i)?i.map(a):a(i)}}const Tn=Mn();function Ln(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Tn.filterProps=["sx"];const Pn=["breakpoints","palette","spacing","shape"];function jn(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,s=c(e,Pn),a=Mr(r),l=function(e=8){if(e.mui)return e;const t=Xr({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(i);let d=mr({breakpoints:a,direction:"ltr",components:{},palette:u({mode:"light"},n),spacing:l,shape:u({},Tr,o)},s);return d.applyStyles=Ln,d=t.reduce(((e,t)=>mr(e,t)),d),d.unstable_sxConfig=u({},On,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(e){return Tn({sx:e,theme:this})},d}const Nn=p(Object.freeze(Object.defineProperty({__proto__:null,default:jn,private_createBreakpoints:Mr,unstable_applyStyles:Ln},Symbol.toStringTag,{value:"Module"}))),Dn=["sx"];function Bn(e){const{sx:t}=e,r=c(e,Dn),{systemProps:n,otherProps:i}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:On;return Object.keys(e).forEach((t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let o;return o=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return hr(r)?u({},n,r):n}:u({},n,t),u({},i,{sx:o})}const Fn=p(Object.freeze(Object.defineProperty({__proto__:null,default:Tn,extendSxProp:Bn,unstable_createStyleFunctionSx:Mn,unstable_defaultSxConfig:On},Symbol.toStringTag,{value:"Module"})));var $n;const zn=d(function(){if($n)return k;$n=1;var e=A();Object.defineProperty(k,"__esModule",{value:!0}),k.default=function(e={}){const{themeId:o,defaultTheme:a=p,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,v=e=>(0,s.default)((0,t.default)({},e,{theme:f((0,t.default)({},e,{defaultTheme:a,themeId:o}))}));return v.__mui_systemSx=!0,(e,s={})=>{(0,n.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:w=m(h(y))}=s,C=(0,r.default)(s,c),_=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,k=x||!1;let S=d;"Root"===y||"root"===y?S=l:y?S=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(S=void 0);const A=(0,n.default)(e,(0,t.default)({shouldForwardProp:S,label:void 0},C)),E=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>g(e,(0,t.default)({},r,{theme:f({theme:r.theme,defaultTheme:a,themeId:o})})):e,R=(r,...n)=>{let i=E(r);const s=n?n.map(E):[];p&&w&&s.push((e=>{const r=f((0,t.default)({},e,{defaultTheme:a,themeId:o}));if(!r.components||!r.components[p]||!r.components[p].styleOverrides)return null;const n=r.components[p].styleOverrides,i={};return Object.entries(n).forEach((([n,o])=>{i[n]=g(o,(0,t.default)({},e,{theme:r}))})),w(e,i)})),p&&!_&&s.push((e=>{var r;const n=f((0,t.default)({},e,{defaultTheme:a,themeId:o}));return g({variants:null==n||null==(r=n.components)||null==(r=r[p])?void 0:r.variants},(0,t.default)({},e,{theme:n}))})),k||s.push(v);const l=s.length-n.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=A(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return A.withConfig&&(R.withConfig=A.withConfig),R}},k.shouldForwardProp=d,k.systemDefaultTheme=void 0;var t=e((E||(E=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(I)),I.exports)),r=e(function(){return R||(R=1,(e=O).exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports),O.exports;var e}()),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}(pr),i=gr,o=(e(xr),e(Ir),e(Nn)),s=e(Fn);const a=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=k.systemDefaultTheme=(0,o.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function f({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function m(e){return e?(t,r)=>r[e]:null}function g(e,n){let{ownerState:i}=n,o=(0,r.default)(n,a);const s="function"==typeof e?e((0,t.default)({ownerState:i},o)):e;if(Array.isArray(s))return s.flatMap((e=>g(e,(0,t.default)({ownerState:i},o))));if(s&&"object"==typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let n=(0,r.default)(s,l);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,t.default)({ownerState:i},o,i)):Object.keys(e.props).forEach((t=>{(null==i?void 0:i[t])!==e.props[t]&&o[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,t.default)({ownerState:i},o,i)):e.style))})),n}return s}return k}());function Un(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."}function Wn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function qn(e){if(o.isValidElement(e)||!Wn(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=qn(e[r])})),t}function Vn(e,t,r={clone:!0}){const n=r.clone?u({},e):e;return Wn(e)&&Wn(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])?n[i]=t[i]:Wn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Wn(e[i])?n[i]=Vn(e[i],t[i],r):r.clone?n[i]=Wn(t[i])?qn(t[i]):t[i]:n[i]=t[i]})),n}const Hn=e=>e,Gn=(()=>{let e=Hn;return{configure(t){e=t},generate:t=>e(t),reset(){e=Hn}}})(),Zn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Kn(e,t,r="Mui"){const n=Zn[t];return n?`${r}-${n}`:`${Gn.generate(e)}-${t}`}var Xn={};const Yn=p(yr);function Jn(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Qn=p(Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})));var ei,ti=function(){if(ei)return Xn;ei=1;var e=A();Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.alpha=u,Xn.blend=function(e,t,r,n=1){const i=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),s=o(e),l=o(t);return a({type:"rgb",values:[i(s.values[0],l.values[0]),i(s.values[1],l.values[1]),i(s.values[2],l.values[2])]})},Xn.colorChannel=void 0,Xn.darken=d,Xn.decomposeColor=o,Xn.emphasize=h,Xn.getContrastRatio=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Xn.getLuminance=c,Xn.hexToRgb=i,Xn.hslToRgb=l,Xn.lighten=p,Xn.private_safeAlpha=function(e,t,r){try{return u(e,t)}catch(t){return e}},Xn.private_safeColorChannel=void 0,Xn.private_safeDarken=function(e,t,r){try{return d(e,t)}catch(t){return e}},Xn.private_safeEmphasize=function(e,t,r){try{return h(e,t)}catch(t){return e}},Xn.private_safeLighten=function(e,t,r){try{return p(e,t)}catch(t){return e}},Xn.recomposeColor=a,Xn.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=o(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(Yn),r=e(Qn);function n(e,t=0,n=1){return(0,r.default)(e,t,n)}function i(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(i(e));const r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,t.default)(9,e));let s,a=e.substring(r+1,e.length-1);if("color"===n){if(a=a.split(" "),s=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s))throw new Error((0,t.default)(10,s))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:s}}const s=e=>{const t=o(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};function a(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){e=o(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,s=n*Math.min(i,1-i),l=(e,t=(e+r/30)%12)=>i-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])),a({type:c,values:u})}function c(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(l(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 u(e,t){return e=o(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function d(e,t){if(e=o(e),t=n(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 r=0;r<3;r+=1)e.values[r]*=1-t;return a(e)}function p(e,t){if(e=o(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}function h(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return Xn.colorChannel=s,Xn.private_safeColorChannel=(e,t)=>{try{return s(e)}catch(t){return e}},Xn}();const ri={black:"#000",white:"#fff"},ni={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"},ii="#d32f2f",oi="#42a5f5",si="#0288d1",ai=["mode","contrastThreshold","tonalOffset"],li={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:ri.white,default:ri.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}},ci={text:{primary:ri.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:ri.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 ui(e,t,r,n){const i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=ti.lighten(e.main,i):"dark"===t&&(e.dark=ti.darken(e.main,o)))}const di=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],pi={textTransform:"uppercase"},hi='"Roboto", "Helvetica", "Arial", sans-serif';function fi(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=hi,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=r,f=c(r,di),m=i/14,g=h||(e=>e/d*m+"rem"),v=(e,t,r,i,o)=>{return u({fontFamily:n,fontWeight:e,fontSize:g(t),lineHeight:r},n===hi?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5+"em")}:{},o,p);var s},y={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,pi),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vn(u({htmlFontSize:d,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},y),f,{clone:!1})}function mi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const gi=["none",mi(0,2,1,-1,0,1,1,0,0,1,3,0),mi(0,3,1,-2,0,2,2,0,0,1,5,0),mi(0,3,3,-2,0,3,4,0,0,1,8,0),mi(0,2,4,-1,0,4,5,0,0,1,10,0),mi(0,3,5,-1,0,5,8,0,0,1,14,0),mi(0,3,5,-1,0,6,10,0,0,1,18,0),mi(0,4,5,-2,0,7,10,1,0,2,16,1),mi(0,5,5,-3,0,8,10,1,0,3,14,2),mi(0,5,6,-3,0,9,12,1,0,3,16,2),mi(0,6,6,-3,0,10,14,1,0,4,18,3),mi(0,6,7,-4,0,11,15,1,0,4,20,3),mi(0,7,8,-4,0,12,17,2,0,5,22,4),mi(0,7,8,-4,0,13,19,2,0,5,24,4),mi(0,7,9,-4,0,14,21,2,0,5,26,4),mi(0,8,9,-5,0,15,22,2,0,6,28,5),mi(0,8,10,-5,0,16,24,2,0,6,30,5),mi(0,8,11,-5,0,17,26,2,0,6,32,5),mi(0,9,11,-5,0,18,28,2,0,7,34,6),mi(0,9,12,-6,0,19,29,2,0,7,36,6),mi(0,10,13,-6,0,20,31,3,0,8,38,7),mi(0,10,13,-6,0,21,33,3,0,8,40,7),mi(0,10,14,-6,0,22,35,3,0,8,42,7),mi(0,11,14,-7,0,23,36,3,0,9,44,8),mi(0,11,15,-7,0,24,38,3,0,9,46,8)],vi=["duration","easing","delay"],yi={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)"},bi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xi(e){return`${Math.round(e)}ms`}function wi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ci(e){const t=u({},yi,e.easing),r=u({},bi,e.duration);return u({getAutoHeightDuration:wi,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:o=t.easeInOut,delay:s=0}=n;return c(n,vi),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:xi(i)} ${o} ${"string"==typeof s?s:xi(s)}`)).join(",")}},e,{easing:t,duration:r})}const _i={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ki=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Si(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,s=c(e,ki);if(e.vars)throw new Error(Un(18));const a=function(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=c(e,ai),o=e.primary||function(e="light"){return"dark"===e?{main:"#90caf9",light:"#e3f2fd",dark:oi}:{main:"#1976d2",light:oi,dark:"#1565c0"}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),a=e.error||function(e="light"){return"dark"===e?{main:"#f44336",light:"#e57373",dark:ii}:{main:ii,light:"#ef5350",dark:"#c62828"}}(t),l=e.info||function(e="light"){return"dark"===e?{main:"#29b6f6",light:"#4fc3f7",dark:si}:{main:si,light:"#03a9f4",dark:"#01579b"}}(t),d=e.success||function(e="light"){return"dark"===e?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),p=e.warning||function(e="light"){return"dark"===e?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function h(e){return ti.getContrastRatio(e,ci.text.primary)>=r?ci.text.primary:li.text.primary}const f=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=u({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Un(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Un(12,t?` (${t})`:"",JSON.stringify(e.main)));return ui(e,"light",i,n),ui(e,"dark",o,n),e.contrastText||(e.contrastText=h(e.main)),e},m={dark:ci,light:li};return Vn(u({common:u({},ri),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:d,name:"success"}),grey:ni,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},m[t]),i)}(n),l=jn(e);let d=Vn(l,{mixins:(p=l.breakpoints,h=r,u({toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}}},h)),palette:a,shadows:gi.slice(),typography:fi(a,o),transitions:Ci(i),zIndex:u({},_i)});var p,h;return d=Vn(d,s),d=t.reduce(((e,t)=>Vn(e,t)),d),d.unstable_sxConfig=u({},On,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(e){return Tn({sx:e,theme:this})},d}const Ai=Si(),Ei="$$material";function Ri(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ii=e=>Ri(e)&&"classes"!==e,Oi=zn({themeId:Ei,defaultTheme:Ai,rootShouldForwardProp:Ii});function Mi(e,t){const r=u({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=u({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},o&&Object.keys(o)?i&&Object.keys(i)?(r[n]=u({},o),Object.keys(i).forEach((e=>{r[n][e]=Mi(i[e],o[e])}))):r[n]=o:r[n]=i}else void 0===r[n]&&(r[n]=e[n])})),r}function Ti(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Mi(t.components[r].defaultProps,n):n}function Li(e=null){const t=o.useContext(Qe);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Pi=jn();function ji(e=Pi){return Li(e)}function Ni({props:e,name:t,defaultTheme:r,themeId:n}){let i=ji(r);return n&&(i=i[n]||i),Ti({theme:i,name:t,props:e})}function Di({props:e,name:t}){return Ni({props:e,name:t,defaultTheme:Ai,themeId:Ei})}function Bi(e){if("string"!=typeof e)throw new Error(Un(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fi(){return null}Number.isInteger,Fi.isRequired=Fi;const $i=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function zi({styles:e,themeId:t,defaultTheme:r={}}){const n=ji(r),o="function"==typeof e?e(t&&n[t]||n):e;return(0,i.jsx)(lr,{styles:o})}const Ui=e=>e,Wi=(()=>{let e=Ui;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ui}}})();function qi(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=qi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Vi(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=qi(e))&&(n&&(n+=" "),n+=t);return n}const Hi=["className","component"],Gi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"},Zi=["ownerState"],Ki=["variants"],Xi=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Yi(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ji=jn(),Qi=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function eo({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function to(e){return e?(t,r)=>r[e]:null}function ro(e,t){let{ownerState:r}=t,n=c(t,Zi);const i="function"==typeof e?e(u({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap((e=>ro(e,u({ownerState:r},n))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=c(i,Ki);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props(u({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(u({ownerState:r},n,r)):e.style))})),t}return i}const no=function(e={}){const{themeId:t,defaultTheme:r=Ji,rootShouldForwardProp:n=Yi,slotShouldForwardProp:i=Yi}=e,o=e=>Tn(u({},e,{theme:eo(u({},e,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(e,s={})=>{ur(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:l,skipVariantsResolver:d,skipSx:p,overridesResolver:h=to(Qi(l))}=s,f=c(s,Xi),m=void 0!==d?d:l&&"Root"!==l&&"root"!==l||!1,g=p||!1;let v=Yi;"Root"===l||"root"===l?v=n:l?v=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const y=cr(e,u({shouldForwardProp:v,label:void 0},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||hr(e)?n=>ro(e,u({},n,{theme:eo({theme:n.theme,defaultTheme:r,themeId:t})})):e,x=(n,...i)=>{let s=b(n);const l=i?i.map(b):[];a&&h&&l.push((e=>{const n=eo(u({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[a]||!n.components[a].styleOverrides)return null;const i=n.components[a].styleOverrides,o={};return Object.entries(i).forEach((([t,r])=>{o[t]=ro(r,u({},e,{theme:n}))})),h(e,o)})),a&&!m&&l.push((e=>{var n;const i=eo(u({},e,{defaultTheme:r,themeId:t}));return ro({variants:null==i||null==(n=i.components)||null==(n=n[a])?void 0:n.variants},u({},e,{theme:i}))})),g||l.push(o);const c=l.length-i.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const d=y(s,...l);return e.muiName&&(d.muiName=e.muiName),d};return y.withConfig&&(x.withConfig=y.withConfig),x}}(),io="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function oo(e,t,r,n,i){const[s,a]=o.useState((()=>i&&r?r(e).matches:n?n(e).matches:t));return io((()=>{let t=!0;if(!r)return;const n=r(e),i=()=>{t&&a(n.matches)};return i(),n.addListener(i),()=>{t=!1,n.removeListener(i)}}),[e,r]),s}const so=o.useSyncExternalStore;function ao(e,t,r,n,i){const s=o.useCallback((()=>t),[t]),a=o.useMemo((()=>{if(i&&r)return()=>r(e).matches;if(null!==n){const{matches:t}=n(e);return()=>t}return s}),[s,e,n,i,r]),[l,c]=o.useMemo((()=>{if(null===r)return[s,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[s,r,e]);return so(c,l,a)}function lo(e,t={}){const r=Li(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(n?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:a=!1}=Ti({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"==typeof e?e(r):e;return l=l.replace(/^@media( ?)/m,""),(void 0!==so?ao:oo)(l,i,o,s,a)}function co(e,t=0,r=1){return Jn(e,t,r)}function uo(e){if(e.type)return e;if("#"===e.charAt(0))return uo(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(vr(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),n=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(n))throw new Error(vr(10,n))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:r,values:i,colorSpace:n}}function po(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function ho(e,t){return e=uo(e),t=co(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,po(e)}function fo(e,t){if(e=uo(e),t=co(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 r=0;r<3;r+=1)e.values[r]*=1-t;return po(e)}function mo(e,t){if(e=uo(e),t=co(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return po(e)}const go=o.createContext(null);function vo(){return o.useContext(go)}const yo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bo(e){const{children:t,theme:r}=e,n=vo(),s=o.useMemo((()=>{const e=null===n?r:function(e,t){return"function"==typeof t?t(e):u({},e,t)}(n,r);return null!=e&&(e[yo]=null!==n),e}),[r,n]);return(0,i.jsx)(go.Provider,{value:s,children:t})}const xo=["value"],wo=o.createContext();function Co(e){let{value:t}=e,r=c(e,xo);return(0,i.jsx)(wo.Provider,u({value:null==t||t},r))}const _o=()=>{const e=o.useContext(wo);return null!=e&&e},ko=o.createContext(void 0);function So({value:e,children:t}){return(0,i.jsx)(ko.Provider,{value:e,children:t})}const Ao={};function Eo(e,t,r,n=!1){return o.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof r){const o=r(i),s=e?u({},t,{[e]:o}):o;return n?()=>s:s}return u({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Ro(e){const{children:t,theme:r,themeId:n}=e,o=Li(Ao),s=vo()||Ao,a=Eo(n,o,r),l=Eo(n,s,r,!0),c="rtl"===a.direction;return(0,i.jsx)(bo,{theme:l,children:(0,i.jsx)(Qe.Provider,{value:a,children:(0,i.jsx)(Co,{value:c,children:(0,i.jsx)(So,{value:null==a?void 0:a.components,children:t})})})})}const Io=["component","direction","spacing","divider","children","className","useFlexGap"],Oo=jn(),Mo=no("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function To(e){return Ni({props:e,name:"MuiStack",defaultTheme:Oo})}function Lo(e,t){const r=o.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,i)=>(e.push(n),i<r.length-1&&e.push(o.cloneElement(t,{key:`separator-${i}`})),e)),[])}const Po=({ownerState:e,theme:t})=>{let r=u({display:"flex",flexDirection:"column"},Nr({theme:t},Fr({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=Xr(t),i=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),o=Fr({values:e.direction,base:i}),s=Fr({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach(((e,t,r)=>{if(!o[e]){const n=t>0?o[r[t-1]]:"column";o[e]=n}})),r=mr(r,Nr({theme:t},s,((t,r)=>{return e.useFlexGap?{gap:Yr(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=r?o[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:Yr(n,t)}};var i})))}return r=function(e,...t){const r=Dr(e),n=[r,...t].reduce(((e,t)=>mr(e,t)),{});return Br(Object.keys(r),n)}(t.breakpoints,r),r};function jo(){const e=ji(Ai);return e[Ei]||e}function No(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Kn(e,t,r)})),n}function Do(e){return Kn("MuiPaper",e)}No("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 Bo=["className","component","elevation","square","variant"],Fo=Oi("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return u({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&&u({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ti.alpha("#fff",$i(t.elevation))}, ${ti.alpha("#fff",$i(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),$o=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,d=c(r,Bo),p=u({},r,{component:o,elevation:s,square:a,variant:l}),h=(e=>{const{square:t,elevation:r,variant:n,classes:i}=e;return C({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Do,i)})(p);return(0,i.jsx)(Fo,u({as:o,ownerState:p,className:w(h.root,n),ref:t},d))})),zo=$o;function Uo(e){return Kn("MuiAppBar",e)}No("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Wo=["className","color","enableColorOnDark","position"],qo=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,Vo=Oi(zo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Bi(r.position)}`],t[`color${Bi(r.color)}`]]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return u({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&&u({},"default"===t.color&&{backgroundColor:r,color:e.palette.getContrastText(r)},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&&u({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&u({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:qo(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:qo(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:qo(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:qo(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"}))})),Ho=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=c(r,Wo),d=u({},r,{color:o,position:a,enableColorOnDark:s}),p=(e=>{const{color:t,position:r,classes:n}=e;return C({root:["root",`color${Bi(t)}`,`position${Bi(r)}`]},Uo,n)})(d);return(0,i.jsx)(Vo,u({square:!0,component:"header",ownerState:d,elevation:4,className:w(p.root,n,"fixed"===a&&"mui-fixed"),ref:t},l))})),Go=Ho,Zo={elevation:0,color:"default"},Ko=s().forwardRef(((e,t)=>s().createElement(Go,{...Zo,...e,ref:t})));Ko.defaultProps=Zo;var Xo=Ko;const Yo=function(e={}){const{createStyledComponent:t=Mo,useThemeProps:r=To,componentName:n="MuiStack"}=e,s=()=>function(e,t,r){const i={};return Object.keys(e).forEach((t=>{i[t]=e[t].reduce(((e,t)=>{if(t){const i=(e=>function(e,t,r="Mui"){const n=Gi[t];return n?`${r}-${n}`:`${Wi.generate(e)}-${t}`}(n,e))(t);""!==i&&e.push(i),r&&r[t]&&e.push(r[t])}return e}),[]).join(" ")})),i}({root:["root"]},0,{}),a=t(Po),l=o.forwardRef((function(e,t){const n=Bn(r(e)),{component:o="div",direction:l="column",spacing:d=0,divider:p,children:h,className:f,useFlexGap:m=!1}=n,g=c(n,Io),v={direction:l,spacing:d,useFlexGap:m},y=s();return(0,i.jsx)(a,u({as:o,ownerState:v,ref:t,className:Vi(y.root,f)},g,{children:p?Lo(h,p):h}))}));return l}({createStyledComponent:Oi("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Di({props:e,name:"MuiStack"})}),Jo=Yo;var Qo=s().forwardRef(((e,t)=>s().createElement(Jo,{...e,ref:t})));function es(e){return Kn("MuiToolbar",e)}No("MuiToolbar",["root","gutters","regular","dense"]);const ts=["className","component","disableGutters","variant"],rs=Oi("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((({theme:e,ownerState:t})=>u({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)),ns=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,l=c(r,ts),d=u({},r,{component:o,disableGutters:s,variant:a}),p=(e=>{const{classes:t,disableGutters:r,variant:n}=e;return C({root:["root",!r&&"gutters",n]},es,t)})(d);return(0,i.jsx)(rs,u({as:o,className:w(p.root,n),ref:t,ownerState:d},l))})),is=ns;var os=s().forwardRef(((e,t)=>s().createElement(is,{...e,ref:t})));function ss(e){return Kn("MuiTypography",e)}No("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const as=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ls=Oi("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Bi(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>u({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),cs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},us={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ds=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiTypography"}),n=(e=>us[e]||e)(r.color),o=Bn(u({},r,{color:n})),{align:s="inherit",className:a,component:l,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:f="body1",variantMapping:m=cs}=o,g=c(o,as),v=u({},o,{align:s,color:n,className:a,component:l,gutterBottom:d,noWrap:p,paragraph:h,variant:f,variantMapping:m}),y=l||(h?"p":m[f]||cs[f])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:s}=e;return C({root:["root",o,"inherit"!==e.align&&`align${Bi(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]},ss,s)})(v);return(0,i.jsx)(ls,u({as:y,ref:t,ownerState:v,className:w(b.root,a)},g))})),ps=ds,hs={variantMapping:{display1:"h1",display2:"h2",display3:"h3",display4:"h4",display5:"h5",display6:"h6"}},fs=s().forwardRef(((e,t)=>{const r={...hs,...e,variantMapping:{...hs.variantMapping,...e.variantMapping}};return s().createElement(ps,{...r,ref:t})}));fs.defaultProps=hs;var ms=fs;const gs=["theme"];function vs(e){let{theme:t}=e,r=c(e,gs);const n=t[Ei];return(0,i.jsx)(Ro,u({},r,{themeId:n?Ei:void 0,theme:n||t}))}function ys(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function bs(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ys(e,t)}))}),e)}b.oneOfType([b.func,b.object]),b.elementType;const xs="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function ws(e){const t=o.useRef(e);return xs((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}const Cs={},_s=[];class ks{static create(){return new ks}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}}function Ss(){const e=function(e){const t=o.useRef(Cs);return t.current===Cs&&(t.current=e(void 0)),t}(ks.create).current;var t;return t=e.disposeEffect,o.useEffect(t,_s),e}let As=!0,Es=!1;const Rs=new ks,Is={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 Os(e){e.metaKey||e.altKey||e.ctrlKey||(As=!0)}function Ms(){As=!1}function Ts(){"hidden"===this.visibilityState&&Es&&(As=!0)}function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ls(e,t)}function Ps(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ls(e,t)}const js=s().createContext(null);var Ns="unmounted",Ds="exited",Bs="entering",Fs="entered",$s="exiting",zs=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=Ds,n.appearStatus=Bs):i=Fs:i=t.unmountOnExit||t.mountOnEnter?Ns:Ds,n.state={status:i},n.nextCallback=null,n}Ps(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ns?{status:Ds}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Bs&&r!==Fs&&(t=Bs):r!==Bs&&r!==Fs||(t=$s)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Bs?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this)),this.performEnter(e)):this.performExit()):this.props.unmountOnExit&&this.state.status===Ds&&this.setState({status:Ns})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[l().findDOMNode(this),n],o=i[0],s=i[1],a=this.getTimeouts(),c=n?a.appear:a.enter;e||r?(this.props.onEnter(o,s),this.safeSetState({status:Bs},(function(){t.props.onEntering(o,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:Fs},(function(){t.props.onEntered(o,s)}))}))}))):this.safeSetState({status:Fs},(function(){t.props.onEntered(o)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:l().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:$s},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ds},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ds},(function(){e.props.onExited(n)}))},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,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Ns)return null;var t=this.props,r=t.children,n=c(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s().createElement(js.Provider,{value:null},"function"==typeof r?r(e,n):s().cloneElement(s().Children.only(r),n))},t}(s().Component);function Us(){}zs.contextType=js,zs.propTypes={},zs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Us,onEntering:Us,onEntered:Us,onExit:Us,onExiting:Us,onExited:Us},zs.UNMOUNTED=Ns,zs.EXITED=Ds,zs.ENTERING=Bs,zs.ENTERED=Fs,zs.EXITING=$s;const Ws=zs;function qs(e,t){var r=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),r}function Vs(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Hs(e,t,r){var n=qs(e.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];a[i[l][n]]=r(c)}a[l]=r(l)}for(n=0;n<o.length;n++)a[o[n]]=r(o[n]);return a}(t,n);return Object.keys(i).forEach((function(s){var a=i[s];if((0,o.isValidElement)(a)){var l=s in t,c=s in n,u=t[s],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[s]=(0,o.cloneElement)(a,{onExited:r.bind(null,a),in:u.props.in,exit:Vs(a,"exit",e),enter:Vs(a,"enter",e)})):i[s]=(0,o.cloneElement)(a,{in:!1}):i[s]=(0,o.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:Vs(a,"exit",e),enter:Vs(a,"enter",e)})}})),i}var Gs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Zs=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}Ps(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,i=t.children,s=t.handleExited;return{children:t.firstRender?(r=e,n=s,qs(r.children,(function(e){return(0,o.cloneElement)(e,{onExited:n.bind(null,e),in:!0,appear:Vs(e,"appear",r),enter:Vs(e,"enter",r),exit:Vs(e,"exit",r)})}))):Hs(e,i,s),firstRender:!1}},r.handleExited=function(e,t){var r=qs(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=u({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=c(e,["component","childFactory"]),i=this.state.contextValue,o=Gs(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?s().createElement(js.Provider,{value:i},o):s().createElement(js.Provider,{value:i},s().createElement(t,n,o))},t}(s().Component);Zs.propTypes={},Zs.defaultProps={component:"div",childFactory:function(e){return e}};const Ks=Zs,Xs=No("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ys=["center","classes","className"];let Js,Qs,ea,ta,ra=e=>e;const na=rt(Js||(Js=ra`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),ia=rt(Qs||(Qs=ra`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),oa=rt(ea||(ea=ra`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),sa=Oi("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),aa=Oi((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:s,rippleY:a,rippleSize:l,in:c,onExited:u,timeout:d}=e,[p,h]=o.useState(!1),f=w(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+s},g=w(r.child,p&&r.childLeaving,n&&r.childPulsate);return c||p||h(!0),o.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,i.jsx)("span",{className:f,style:m,children:(0,i.jsx)("span",{className:g})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ta||(ta=ra`
  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;
  }
`),Xs.rippleVisible,na,550,(({theme:e})=>e.transitions.easing.easeInOut),Xs.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Xs.child,Xs.childLeaving,ia,550,(({theme:e})=>e.transitions.easing.easeInOut),Xs.childPulsate,oa,(({theme:e})=>e.transitions.easing.easeInOut)),la=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:s={},className:a}=r,l=c(r,Ys),[d,p]=o.useState([]),h=o.useRef(0),f=o.useRef(null);o.useEffect((()=>{f.current&&(f.current(),f.current=null)}),[d]);const m=o.useRef(!1),g=Ss(),v=o.useRef(null),y=o.useRef(null),b=o.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;p((e=>[...e,(0,i.jsx)(aa,{classes:{ripple:w(s.ripple,Xs.ripple),rippleVisible:w(s.rippleVisible,Xs.rippleVisible),ripplePulsate:w(s.ripplePulsate,Xs.ripplePulsate),child:w(s.child,Xs.child),childLeaving:w(s.childLeaving,Xs.childLeaving),childPulsate:w(s.childPulsate,Xs.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},h.current)])),h.current+=1,f.current=a}),[s]),x=o.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:i=!1,center:o=n||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const a=s?null:y.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:i,rippleX:c,rippleY:u,rippleSize:d,cb:r})},g.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):b({pulsate:i,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[n,b,g]),C=o.useCallback((()=>{x({},{pulsate:!0})}),[x]),_=o.useCallback(((e,t)=>{if(g.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void g.start(0,(()=>{_(e,t)}));v.current=null,p((e=>e.length>0?e.slice(1):e)),f.current=t}),[g]);return o.useImperativeHandle(t,(()=>({pulsate:C,start:x,stop:_})),[C,x,_]),(0,i.jsx)(sa,u({className:w(Xs.root,s.root,a),ref:y},l,{children:(0,i.jsx)(Ks,{component:null,exit:!0,children:d})}))})),ca=la;function ua(e){return Kn("MuiButtonBase",e)}const da=No("MuiButtonBase",["root","disabled","focusVisible"]),pa=["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"],ha=Oi("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"},[`&.${da.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fa=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:s=!1,children:a,className:l,component:d="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:x,onFocus:_,onFocusVisible:k,onKeyDown:S,onKeyUp:A,onMouseDown:E,onMouseLeave:R,onMouseUp:I,onTouchEnd:O,onTouchMove:M,onTouchStart:T,tabIndex:L=0,TouchRippleProps:P,touchRippleRef:j,type:N}=r,D=c(r,pa),B=o.useRef(null),F=o.useRef(null),$=bs(F,j),{isFocusVisibleRef:z,onFocus:U,onBlur:W,ref:q}=function(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Os,!0),t.addEventListener("mousedown",Ms,!0),t.addEventListener("pointerdown",Ms,!0),t.addEventListener("touchstart",Ms,!0),t.addEventListener("visibilitychange",Ts,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return As||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Is[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Es=!0,Rs.start(100,(()=>{Es=!1})),t.current=!1,!0)},ref:e}}(),[V,H]=o.useState(!1);p&&V&&H(!1),o.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),B.current.focus()}})),[]);const[G,Z]=o.useState(!1);o.useEffect((()=>{Z(!0)}),[]);const K=G&&!h&&!p;function X(e,t,r=f){return ws((n=>(t&&t(n),!r&&F.current&&F.current[e](n),!0)))}o.useEffect((()=>{V&&m&&!h&&G&&F.current.pulsate()}),[h,m,V,G]);const Y=X("start",E),J=X("stop",b),Q=X("stop",x),ee=X("stop",I),te=X("stop",(e=>{V&&e.preventDefault(),R&&R(e)})),re=X("start",T),ne=X("stop",O),ie=X("stop",M),oe=X("stop",(e=>{W(e),!1===z.current&&H(!1),v&&v(e)}),!1),se=ws((e=>{B.current||(B.current=e.currentTarget),U(e),!0===z.current&&(H(!0),k&&k(e)),_&&_(e)})),ae=()=>{const e=B.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},le=o.useRef(!1),ce=ws((e=>{m&&!le.current&&V&&F.current&&" "===e.key&&(le.current=!0,F.current.stop(e,(()=>{F.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),y&&y(e))})),ue=ws((e=>{m&&" "===e.key&&F.current&&V&&!e.defaultPrevented&&(le.current=!1,F.current.stop(e,(()=>{F.current.pulsate(e)}))),A&&A(e),y&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let de=d;"button"===de&&(D.href||D.to)&&(de=g);const pe={};"button"===de?(pe.type=void 0===N?"button":N,pe.disabled=p):(D.href||D.to||(pe.role="button"),p&&(pe["aria-disabled"]=p));const he=bs(t,q,B),fe=u({},r,{centerRipple:s,component:d,disabled:p,disableRipple:h,disableTouchRipple:f,focusRipple:m,tabIndex:L,focusVisible:V}),me=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=C({root:["root",t&&"disabled",r&&"focusVisible"]},ua,i);return r&&n&&(o.root+=` ${n}`),o})(fe);return(0,i.jsxs)(ha,u({as:de,className:w(me.root,l),ownerState:fe,onBlur:oe,onClick:y,onContextMenu:J,onFocus:se,onKeyDown:ce,onKeyUp:ue,onMouseDown:Y,onMouseLeave:te,onMouseUp:ee,onDragLeave:Q,onTouchEnd:ne,onTouchMove:ie,onTouchStart:re,ref:he,tabIndex:p?-1:L,type:N},pe,D,{children:[a,K?(0,i.jsx)(ca,u({ref:$,center:s},P)):null]}))})),ma=fa;function ga(e){return Kn("MuiIconButton",e)}const va=No("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ya=["edge","children","className","color","disabled","disableFocusRipple","size"],ba=Oi(ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Bi(r.color)}`],r.edge&&t[`edge${Bi(r.edge)}`],t[`size${Bi(r.size)}`]]}})((({theme:e,ownerState:t})=>u({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})`:ti.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return u({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&u({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":u({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ti.alpha(n.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)},{[`&.${va.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),xa=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=c(r,ya),f=u({},r,{edge:n,color:a,disabled:l,disableFocusRipple:d,size:p}),m=(e=>{const{classes:t,disabled:r,color:n,edge:i,size:o}=e;return C({root:["root",r&&"disabled","default"!==n&&`color${Bi(n)}`,i&&`edge${Bi(i)}`,`size${Bi(o)}`]},ga,t)})(f);return(0,i.jsx)(ba,u({className:w(m.root,s),centerRipple:!0,focusRipple:!d,disabled:l,ref:t},h,{ownerState:f,children:o}))})),wa=xa,Ca="&:hover,&:focus,&:active,&:visited",_a="__unstableAccessibleMain",ka="__unstableAccessibleLight",Sa="__unstableStates",Aa="0.75rem",Ea="1.25em",Ra="1.25em",Ia="1.25em",Oa="eui-rtl",Ma=[0,1,1,1,1],Ta=(e,t)=>{const r={},n={};return t.forEach((t=>{n[t]=`Mui${e}-${t}`,r[t]={slot:t,name:`Mui${e}`}})),{slots:r,classNames:n}},La=(e,...t)=>{const r={...e};return r.shape={borderRadius:4,__unstableBorderRadiusMultipliers:Ma,...r.shape},Si(r,...t)},Pa=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ja=La({}),Na=zn({themeId:Ei,defaultTheme:ja,rootShouldForwardProp:Pa}),Da=(e,t)=>{if(!t?.shouldForwardProp)return Na(e,t);const r=t.shouldForwardProp,n={...t};return n.shouldForwardProp=e=>Pa(e)&&r(e),Na(e,n)},Ba="#FFFFFF",Fa="#f1f3f3",$a="#d5d8dc",za="#babfc5",Ua="#9da5ae",Wa="#818a96",qa="#69727d",Va="#515962",Ha="#3f444b",Ga="#1f2124",Za="#0c0d0e",Ka="#f3bafd",Xa="#f0abfc",Ya="#eb8efb",Ja="#ef4444",Qa="#dc2626",el="#b91c1c",tl="#f59e0b",rl="#bb5b1d",nl="#b15211",il="#3b82f6",ol="#2563eb",sl="#1d4ed8",al="#10b981",ll="#0a875a",cl="#047857",ul="#99f6e4",dl="#5eead4",pl="#2adfcd",hl="#b51243",fl="#93003f",ml="#7e013b",gl={styleOverrides:{listbox:({theme:e})=>({"&.MuiAutocomplete-listboxSizeTiny":{fontSize:"0.875rem"},'&.MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected="true"]':{"&,&.Mui-Mui-focused":{backgroundColor:e.palette.action.selected}}})},variants:[{props:{size:"tiny"},style:()=>({"& .MuiOutlinedInput-root":{padding:"2.5px 0","& .MuiAutocomplete-input":{lineHeight:Ra,height:Ra,padding:"4px 2px 4px 8px"}},"& .MuiFilledInput-root":{padding:0,"& .MuiAutocomplete-input":{padding:"15px 8px 6px"}},"& .MuiInput-root":{paddingBottom:0,"& .MuiAutocomplete-input":{padding:"2px 0"}},"& .MuiAutocomplete-popupIndicator":{fontSize:"1.5em"},"& .MuiAutocomplete-clearIndicator":{fontSize:"1.2em"},"& .MuiAutocomplete-popupIndicator .MuiSvgIcon-root, & .MuiAutocomplete-clearIndicator .MuiSvgIcon-root":{fontSize:"1em"},"& .MuiInputAdornment-root .MuiIconButton-root":{padding:"2px"},"& .MuiAutocomplete-tagSizeTiny":{fontSize:Aa},"&.MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root .MuiAutocomplete-input":{paddingRight:"48px"}})},{props:{size:"tiny",multiple:!0},style:()=>({"& .MuiAutocomplete-tag":{margin:"1.5px 3px"}})}]},vl=["primary","secondary","error","warning","info","success","accent","global","promotion","decorative","neutral"],yl=["primary","global"],bl=vl.filter((e=>!yl.includes(e))),xl={styleOverrides:{root:()=>({boxShadow:"none","&:hover":{boxShadow:"none"}})},variants:vl.map((e=>({props:{variant:"contained",color:e},style:({theme:t})=>({"& .MuiButtonGroup-grouped:not(:last-of-type), & .MuiButtonGroup-grouped:not(:last-of-type).Mui-disabled":{borderRight:0},"& .MuiButtonGroup-grouped:not(:last-child), & > *:not(:last-child) .MuiButtonGroup-grouped":{borderRight:`1px solid ${t.palette[e].dark}`},"& .MuiButtonGroup-grouped:not(:last-child).Mui-disabled, & > *:not(:last-child) .MuiButtonGroup-grouped.Mui-disabled":{borderRight:`1px solid ${t.palette.action.disabled}`}})})))},wl={variants:[{props:{color:"primary",variant:"outlined"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain,borderColor:e.palette.primary.__unstableAccessibleMain,"& .MuiChip-deleteIcon":{color:e.palette.primary.__unstableAccessibleLight,"&:hover":{color:e.palette.primary.__unstableAccessibleMain}}})},{props:{color:"global",variant:"outlined"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain,borderColor:e.palette.global.__unstableAccessibleMain,"& .MuiChip-deleteIcon":{color:e.palette.global.__unstableAccessibleLight,"&:hover":{color:e.palette.global.__unstableAccessibleMain}}})},{props:{color:"default",variant:"filled"},style:({theme:e})=>({backgroundColor:"light"===e.palette.mode?"#EBEBEB":"#434547","&.Mui-focusVisible, &.MuiChip-clickable:hover":{backgroundColor:e.palette.action.focus},"& .MuiChip-icon":{color:"inherit"}})},...Cl(["default"],(function(e){return{backgroundColor:{light:"#EBEBEB",dark:"#434547"},backgroundColorHover:{light:e.palette.action.focus,dark:e.palette.action.focus},color:{light:e.palette.text.primary,dark:e.palette.text.primary},deleteIconOpacity:.26,deleteIconOpacityHover:.7}})),...Cl(["primary","global"],(function(e,t){const r=e.palette[t];return{backgroundColor:{light:mo(r.light,.8),dark:fo(r.__unstableAccessibleMain,.8)},backgroundColorHover:{light:mo(r.light,.6),dark:fo(r.__unstableAccessibleMain,.9)},color:{light:fo(r.__unstableAccessibleMain,.3),dark:mo(r.light,.3)},deleteIconOpacity:.7,deleteIconOpacityHover:1}})),...Cl(bl,(function(e,t){return{backgroundColor:{light:mo(e.palette[t].light,.9),dark:fo(e.palette[t].light,.8)},backgroundColorHover:{light:mo(e.palette[t].light,.8),dark:fo(e.palette[t].light,.9)},color:{light:fo(e.palette[t].main,.3),dark:mo(e.palette[t].main,.5)},deleteIconOpacity:.7,deleteIconOpacityHover:1}})),{props:{size:"tiny"},style:()=>({fontSize:Aa,height:"20px",paddingInline:"5px","& .MuiChip-avatar":{width:"1rem",height:"1rem",fontSize:"9px",marginLeft:0,marginRight:"1px"},"& .MuiChip-icon":{fontSize:"1rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"3px",paddingLeft:"3px"},"& .MuiChip-deleteIcon":{fontSize:"0.875rem",marginLeft:0,marginRight:0}})},{props:{size:"small"},style:()=>({height:"24px",paddingInline:"5px","& .MuiChip-avatar":{width:"1.125rem",height:"1.125rem",fontSize:"9px",marginLeft:0,marginRight:"2px"},"& .MuiChip-icon":{fontSize:"1.125rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"3px",paddingLeft:"3px"},"& .MuiChip-deleteIcon":{fontSize:"1rem",marginLeft:0,marginRight:0}})},{props:{size:"medium"},style:()=>({height:"32px",paddingInline:"6px","& .MuiChip-avatar":{width:"1.25rem",height:"1.25rem",fontSize:"0.75rem",marginLeft:0,marginRight:"2px"},"& .MuiChip-icon":{fontSize:"1.25rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"4px",paddingLeft:"4px"},"& .MuiChip-deleteIcon":{fontSize:"1.125rem",marginLeft:0,marginRight:0}})}]};function Cl(e,t){return e.map((e=>({props:{color:e,variant:"standard"},style:({theme:r})=>{const n=t(r,e),{mode:i}=r.palette;return{backgroundColor:n.backgroundColor[i],color:n.color[i],"&.Mui-focusVisible, &.MuiChip-clickable:hover":{backgroundColor:n.backgroundColorHover[i]},"& .MuiChip-icon":{color:"inherit"},"& .MuiChip-deleteIcon":{color:n.color[i],opacity:n.deleteIconOpacity,"&:hover,&:focus":{color:n.color[i],opacity:n.deleteIconOpacityHover}}}}})))}const _l="1rem",kl="0.75rem";var Sl={MuiAccordion:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.default,"&:before":{content:"none"},"&.Mui-expanded":{margin:0},"&.MuiAccordion-gutters + .MuiAccordion-root.MuiAccordion-gutters":{marginTop:e.spacing(1),marginBottom:e.spacing(0)},"&:not(.MuiAccordion-gutters) + .MuiAccordion-root:not(.MuiAccordion-gutters)":{borderTop:0},"&.Mui-disabled":{backgroundColor:e.palette.background.default}})},variants:[{props:{square:!1},style:({theme:e})=>{const t=e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[3];return{"&:first-of-type":{borderTopLeftRadius:t,borderTopRightRadius:t},"&:last-of-type":{borderBottomLeftRadius:t,borderBottomRightRadius:t}}}}]},MuiAccordionActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2)})}},MuiAccordionSummary:{styleOverrides:{root:()=>({minHeight:"64px"}),content:({theme:e})=>({margin:e.spacing(1,0),"&.MuiAccordionSummary-content.Mui-expanded":{margin:e.spacing(1,0)}})}},MuiAccordionSummaryIcon:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(1,0)})}},MuiAccordionSummaryText:{styleOverrides:{root:({theme:e})=>({marginTop:0,marginBottom:0,padding:e.spacing(1,0)})}},MuiAutocomplete:gl,MuiAvatar:{variants:[{props:{variant:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiButton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],boxShadow:"none",whiteSpace:"nowrap","&:hover":{boxShadow:"none"},"& .MuiSvgIcon-root":{fill:"currentColor"}})},variants:[{props:{color:"primary",variant:"outlined"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain,borderColor:e.palette.primary.__unstableAccessibleMain,"&:hover":{borderColor:e.palette.primary.__unstableAccessibleMain}})},{props:{color:"primary",variant:"text"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain})},{props:{color:"global",variant:"outlined"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain,borderColor:e.palette.global.__unstableAccessibleMain,"&:hover":{borderColor:e.palette.global.__unstableAccessibleMain}})},{props:{color:"global",variant:"text"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain})}]},MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:()=>({"&.MuiButtonBase-root.Mui-focusVisible":{boxShadow:"0 0 0 1px inset"},".MuiCircularProgress-root":{fontSize:"inherit"}})}},MuiButtonGroup:xl,MuiCard:{defaultProps:{},styleOverrides:{root:()=>({position:"relative"})}},MuiCardActions:{styleOverrides:{root:({theme:e})=>({justifyContent:"flex-end",padding:e.spacing(1.5,2)})}},MuiCardGroup:{styleOverrides:{root:()=>({"& .MuiCard-root.MuiPaper-outlined:not(:last-child)":{borderBottom:0},"& .MuiCard-root.MuiPaper-rounded":{"&:first-child:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},"&:last-child:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0}}})}},MuiCardHeader:{styleOverrides:{action:()=>({alignSelf:"center"})}},MuiChip:wl,MuiCircularProgress:{styleOverrides:{root:({theme:e})=>({fontSize:e.spacing(5)})}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[4]})}},MuiDialogActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,3)})}},MuiDialogContent:{styleOverrides:{dividers:()=>({"&:last-child":{borderBottom:"none"}})}},MuiFilledInput:{styleOverrides:{root:({theme:e})=>({borderTopLeftRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],borderTopRightRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})},variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:Aa,lineHeight:Ia,"& .MuiInputBase-input":{fontSize:Aa,lineHeight:Ia,height:Ia,padding:"15px 8px 6px"},"&.MuiInputBase-adornedStart":{paddingLeft:e.spacing(1)},"&.MuiInputBase-adornedEnd":{paddingRight:e.spacing(1)},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart:not(.MuiInputAdornment-hiddenLabel)":{marginTop:e.spacing(1)},"& .MuiInputAdornment-root:not(.MuiInputAdornment-positionEnd)":{marginRight:0},"& .MuiInputAdornment-root.MuiInputAdornment-positionEnd":{marginLeft:0}})},{props:{size:"tiny",multiline:!0},style:()=>({padding:0})}]},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.tertiary,margin:e.spacing(.5,0,0)})}},MuiFormLabel:{variants:[{props:{size:"tiny"},style:()=>({fontSize:"0.75rem",lineHeight:"1.6",fontWeight:"400",letterSpacing:"0.19px"})},{props:{size:"small"},style:({theme:e})=>({...e.typography.body2})}]},MuiIconButton:{variants:[{props:{color:"primary"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain})},{props:{color:"global"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain})},{props:{edge:"start",size:"small"},style:({theme:e})=>({marginLeft:e.spacing(-1.5)})},{props:{edge:"end",size:"small"},style:({theme:e})=>({marginRight:e.spacing(-1.5)})},{props:{edge:"start",size:"large"},style:({theme:e})=>({marginLeft:e.spacing(-2)})},{props:{edge:"end",size:"large"},style:({theme:e})=>({marginRight:e.spacing(-2)})},{props:{size:"tiny"},style:({theme:e})=>({padding:e.spacing(.75)})},{props:{size:"tiny",edge:"start"},style:({theme:e})=>({marginLeft:e.spacing(-1)})},{props:{size:"tiny",edge:"end"},style:({theme:e})=>({marginRight:e.spacing(-1)})},{props:{size:"xsmall"},style:({theme:e})=>({padding:e.spacing(.75)})},{props:{size:"xsmall",edge:"start"},style:({theme:e})=>({marginLeft:e.spacing(-1)})},{props:{size:"xsmall",edge:"end"},style:({theme:e})=>({marginRight:e.spacing(-1)})},{props:{size:"unstableTiny"},style:({theme:e})=>({padding:e.spacing(.5)})},{props:{size:"unstableTiny",edge:"start"},style:({theme:e})=>({marginLeft:e.spacing(-.5)})},{props:{size:"unstableTiny",edge:"end"},style:({theme:e})=>({marginRight:e.spacing(-.5)})}]},MuiInput:{variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:Aa,lineHeight:Ea,"&.MuiInput-root":{marginTop:e.spacing(1.5)},"& .MuiInputBase-input":{fontSize:Aa,lineHeight:Ea,height:Ea,padding:"6.5px 0"}})}]},MuiInputAdornment:{styleOverrides:{root:({theme:e})=>({"&.MuiInputAdornment-sizeTiny":{"&.MuiInputAdornment-positionStart":{marginRight:e.spacing(.5)},"&.MuiInputAdornment-positionEnd":{marginLeft:e.spacing(.5)}}})}},MuiInputBase:{styleOverrides:{input:()=>({".MuiInputBase-root.Mui-disabled &":{backgroundColor:"initial"}})}},MuiInputLabel:{variants:[{props:{size:"tiny",shrink:!1},style:()=>({"&.MuiInputLabel-outlined":{transform:"translate(7.5px, 5.5px) scale(1)"},"&.MuiInputLabel-standard":{transform:"translate(0px, 18px) scale(1)"},"&.MuiInputLabel-filled":{transform:"translate(8px, 11px) scale(1)"}})},{props:{size:"tiny",shrink:!0},style:()=>({"&.MuiInputLabel-filled":{transform:"translate(8px, 2px) scale(0.75)"}})}]},MuiListItem:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,"a&":{[Ca]:{color:e.palette.text.primary}}})}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:e.palette.action.focus}},"a&":{[Ca]:{color:e.palette.text.primary}}})}},MuiListItemIcon:{styleOverrides:{root:({theme:e})=>({minWidth:"initial","&:not(:last-child)":{marginRight:e.spacing(1)}})}},MuiListItemText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiListSubheader:{styleOverrides:{root:({theme:e})=>({backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12))",lineHeight:"36px",color:e.palette.text.secondary})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:e.palette.action.focus}},"a&":{[Ca]:{color:e.palette.text.primary}},"& .MuiListItemIcon-root":{minWidth:"initial"}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],"&.Mui-focused .MuiInputAdornment-root .MuiOutlinedInput-notchedOutline":{borderColor:"dark"===e.palette.mode?"rgba(255, 255, 255, 0.23)":"rgba(0, 0, 0, 0.23)",borderWidth:"1px"}})},variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:Aa,lineHeight:Ra,"&.MuiInputBase-adornedStart":{paddingLeft:e.spacing(1)},"&.MuiInputBase-adornedEnd":{paddingRight:e.spacing(1)},"& .MuiInputBase-input":{fontSize:Aa,lineHeight:Ra,height:Ra,padding:"6.5px 8px"},"& .MuiInputAdornment-root + .MuiInputBase-input":{paddingLeft:0},"&:has(.MuiInputBase-input + .MuiInputAdornment-root) .MuiInputBase-input":{paddingRight:0}})},{props:{size:"tiny",multiline:!0},style:()=>({padding:0})},{props:e=>!!e.endAdornment&&"tiny"===e.size,style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{"&.MuiSelect-standard":{paddingTop:0,paddingBottom:0},"&.MuiSelect-outlined,&.MuiSelect-filled":{paddingTop:"4px",paddingBottom:"4px"}}})},{props:e=>!!e.endAdornment&&"small"===e.size,style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{paddingTop:"2.5px",paddingBottom:"2.5px"}})},{props:e=>!(!e.endAdornment||"medium"!==e.size&&e.size),style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{paddingTop:"8.5px",paddingBottom:"8.5px"}})}]},MuiPagination:{variants:[{props:{shape:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiPaper:{variants:[{props:{square:!1},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[3]})}]},MuiSelect:{styleOverrides:{nativeInput:()=>({".MuiInputBase-root.Mui-disabled &":{backgroundColor:"initial",opacity:0}})},variants:[{props:{size:"tiny"},style:()=>({"& .MuiSelect-icon":{fontSize:_l,right:"9px"},"& .MuiSelect-select.MuiSelect-outlined, & .MuiSelect-select.MuiSelect-filled":{minHeight:Ra},"& .MuiSelect-select.MuiSelect-standard":{lineHeight:Ea,minHeight:Ea}})}]},MuiSkeleton:{variants:[{props:{variant:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiSnackbarContent:{defaultProps:{},styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})}},MuiStepConnector:{styleOverrides:{root:({theme:e})=>({"& .MuiStepConnector-line":{borderColor:e.palette.divider}})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({"&:not(.Mui-active) .MuiStepIcon-text":{fill:e.palette.common.white}})}},MuiStepLabel:{styleOverrides:{root:()=>({alignItems:"flex-start"})}},MuiStepper:{styleOverrides:{root:()=>({"& .MuiStepLabel-root":{alignItems:"center"}})}},MuiSvgIcon:{variants:[{props:{fontSize:"tiny"},style:()=>({fontSize:"1rem"})}]},MuiTab:{styleOverrides:{root:{"&:not(.Mui-selected)":{fontWeight:400},"&.Mui-selected":{fontWeight:700}}},variants:[{props:{size:"small"},style:({theme:e})=>({fontSize:kl,lineHeight:1.6,padding:e.spacing(.75,1),minWidth:72,"&:not(.MuiTab-labelIcon)":{minHeight:32},"&.MuiTab-labelIcon":{minHeight:32}})}]},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected}}})},variants:[{props:e=>"onClick"in e,style:()=>({cursor:"pointer"})}]},MuiTabPanel:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiTabs:{styleOverrides:{indicator:{height:"3px"}},variants:[{props:{size:"small"},style:({theme:e})=>({minHeight:32,"& .MuiTab-root":{fontSize:kl,lineHeight:1.6,padding:e.spacing(.75,1),minWidth:72,"&:not(.MuiTab-labelIcon)":{minHeight:32},"&.MuiTab-labelIcon":{minHeight:32}}})}]},MuiTextField:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],"& legend":{transition:"unset"}})},variants:[{props:{size:"tiny",select:!0},style:()=>({"& .MuiSelect-icon":{fontSize:_l,right:"9px"},"& .MuiInputBase-root .MuiSelect-select":{minHeight:"auto"}})}]},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})},variants:[{props:{color:"primary"},style:({theme:e})=>({"&.MuiToggleButton-root.Mui-selected":{color:e.palette.primary.__unstableAccessibleMain}})},{props:{color:"global"},style:({theme:e})=>({"&.MuiToggleButton-root.Mui-selected":{color:e.palette.global.__unstableAccessibleMain}})},{props:{size:"tiny"},style:({theme:e})=>({fontSize:Aa,lineHeight:1.3334,padding:e.spacing(.625)})}]},MuiTooltip:{styleOverrides:{arrow:({theme:e})=>({color:e.palette.grey[700]}),tooltip:({theme:e})=>({backgroundColor:e.palette.grey[700],borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}}};const Al={components:Sl,shape:{borderRadius:4,__unstableBorderRadiusMultipliers:Ma},typography:{display1:{fontSize:"0rem"},display2:{fontSize:"0rem"},display3:{fontSize:"0rem"},display4:{fontSize:"0rem"},display5:{fontSize:"0rem"},display6:{fontSize:"0rem"},button:{textTransform:"none"},h1:{fontWeight:700},h2:{fontWeight:700},h3:{fontSize:"2.75rem",fontWeight:700},h4:{fontSize:"2rem",fontWeight:700},h5:{fontWeight:700},subtitle1:{fontWeight:500,lineHeight:1.3},subtitle2:{lineHeight:1.3}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},El={...Al,palette:{mode:"light",primary:{main:Xa,light:Ka,dark:Ya,contrastText:Za,[_a]:"#C00BB9",[ka]:"#D355CE",[Sa]:{disabled:ho(Xa,.38)}},secondary:{main:Va,light:qa,dark:Ha,contrastText:Ba,[Sa]:{disabled:ho(Va,.38)}},grey:{50:Fa,100:$a,200:za,300:Ua,400:Wa,500:qa,600:Va,700:Ha,800:Ga,900:Za},text:{primary:Za,secondary:Ha,tertiary:qa,disabled:Ua},background:{paper:Ba,default:Ba},success:{main:ll,light:al,dark:cl,contrastText:Ba,[Sa]:{disabled:ho(ll,.38)}},error:{main:Qa,light:Ja,dark:el,contrastText:Ba,[Sa]:{disabled:ho(Qa,.38)}},warning:{main:rl,light:"#d97706",dark:nl,contrastText:Ba,[Sa]:{disabled:ho(rl,.38)}},info:{main:ol,light:il,dark:sl,contrastText:Ba,[Sa]:{disabled:ho(ol,.38)}},global:{main:dl,light:ul,dark:pl,contrastText:Za,[_a]:"#17929B",[ka]:"#5DB3B9",[Sa]:{disabled:ho(dl,.38)}},accent:{main:fl,light:hl,dark:ml,contrastText:Ba},promotion:{main:fl,light:hl,dark:ml,contrastText:Ba,[Sa]:{disabled:ho(fl,.38)}},decorative:{main:dl,light:ul,dark:pl,contrastText:Za,[Sa]:{disabled:ho(dl,.38)}},neutral:{main:"#ffffff",light:"#ffffff",dark:"#ffffff",contrastText:"#ffffff"}}},Rl={...Al,palette:{mode:"dark",primary:{main:Xa,light:Ka,dark:Ya,contrastText:Za,[_a]:"#C00BB9",[ka]:"#D355CE",[Sa]:{disabled:ho(Xa,.38)}},secondary:{main:Ua,light:za,dark:Wa,contrastText:Za,[Sa]:{disabled:ho(Ua,.38)}},grey:{50:Fa,100:$a,200:za,300:Ua,400:Wa,500:qa,600:Va,700:Ha,800:Ga,900:Za},text:{primary:Ba,secondary:za,tertiary:Ua,disabled:Va},background:{paper:Za,default:Ga},success:{main:ll,light:al,dark:cl,contrastText:Ba,[Sa]:{disabled:ho(ll,.38)}},error:{main:Qa,light:Ja,dark:el,contrastText:Ba,[Sa]:{disabled:ho(Qa,.38)}},warning:{main:tl,light:"#fbbf24",dark:nl,contrastText:"#000000",[Sa]:{disabled:ho(tl,.38)}},info:{main:ol,light:il,dark:sl,contrastText:Ba,[Sa]:{disabled:ho(ol,.38)}},global:{main:dl,light:ul,dark:pl,contrastText:Za,[_a]:"#17929B",[ka]:"#5DB3B9",[Sa]:{disabled:ho(dl,.38)}},accent:{main:fl,light:hl,dark:ml,contrastText:Ba},promotion:{main:fl,light:hl,dark:ml,contrastText:Ba,[Sa]:{disabled:ho(fl,.38)}},decorative:{main:dl,light:ul,dark:pl,contrastText:Za,[Sa]:{disabled:ho(dl,.38)}},neutral:{main:"#ffffff",light:"#ffffff",dark:"#ffffff",contrastText:"#ffffff"}}},Il="#524CFF";var Ol={primary:{main:Il,light:"#6B65FF",dark:"#4C43E5",contrastText:"#FFFFFF",[_a]:"#524CFF",[ka]:"#6B65FF",[Sa]:{disabled:ho(Il,.38)}},action:{selected:ho(Il,.08)}};const Ml=Ga,Tl=Ha;var Ll={primary:{main:Ml,light:Tl,dark:Za,contrastText:"#FFFFFF",[_a]:Ml,[ka]:Tl,[Sa]:{disabled:ho(Ml,.38)}},accent:{main:Xa,light:Ka,dark:Ya,contrastText:Za}};const Pl=Fa,jl="#FFFFFF";var Nl={primary:{main:Pl,light:jl,dark:$a,contrastText:Za,[_a]:Pl,[ka]:jl,[Sa]:{disabled:ho(Pl,.38)}},accent:{main:Xa,light:Ka,dark:Ya,contrastText:Za}};const Dl=Ga,Bl=Ha;var Fl={primary:{main:Dl,light:Bl,dark:Za,contrastText:"#FFFFFF",[_a]:Dl,[ka]:Bl,[Sa]:{disabled:ho(Dl,.38)}},accent:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},decorative:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},neutral:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"}};const $l=Fa,zl="#FFFFFF";var Ul={primary:{main:$l,light:zl,dark:$a,contrastText:Za,[_a]:$l,[ka]:zl,[Sa]:{disabled:ho($l,.38)}},accent:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},decorative:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},neutral:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"}};const Wl=(0,o.createContext)(null),ql=({value:e,children:t})=>o.createElement(Wl.Provider,{value:e},t),Vl={zIndex:Al.zIndex},Hl=["variants"];function Gl(e,t,r){const n=Vn(e,t,{clone:!0});if("replace"===r)return n;const i=t,o=e,s=n;for(const e of Object.keys(i)){const t=i[e],r=o[e],n=s[e];if(t&&n)for(const e of Hl){const i=t[e];if(!Array.isArray(i))continue;const o=r?.[e],s=Array.isArray(o)?o:[];n[e]=[...s,...i]}}return n}const Zl=!0;function Kl(e){return e?Xl(e,{primary:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],secondary:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],success:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],info:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],warning:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],error:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],background:["default","paper","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],decorative:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],accent:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],neutral:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],text:["primary","secondary","tertiary","disabled"],action:["active","focus","hover","disabled","disabledBackground","selected","__unstableGradientAngle"],divider:Zl}):{}}function Xl(e,t){if(!e||!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{if(e[t])if("boolean"!=typeof n){if(Array.isArray(n)){const i=e[t];n.forEach((e=>{void 0!==i?.[e]&&(r[t]={...r[t],[e]:i[e]})}))}}else r[t]=e[t]})),r}const Yl=new Map,Jl=Je((({colorScheme:e,palette:t,children:r,overrides:n,unstableThemeV0:i},a)=>{const l=(0,o.useContext)(Wl),c=a.key===Oa,u=e||l?.colorScheme||"auto",d=lo("(prefers-color-scheme: dark)"),p="auto"===u&&d||"dark"===u,h=function(e,t){if(!e)return t;if("function"!=typeof e)return console.error("overrides must be a function"),t;const r=e(structuredClone(t||Vl));return r&&"object"==typeof r?r:(console.error("overrides function must return an object"),t)}(n,l?.overrides),f=i?.name||t||l?.themeName,m=i||l?.customTheme;let g=m?((e,t=!1,r=!1)=>{if(!e.name)throw new Error("Custom theme must have a name");const n=`${e.name}-${t}-${r}`;if(Yl.has(n))return Yl.get(n);const i={typography:{subtitle1:{fontWeight:500,lineHeight:1.3},subtitle2:{lineHeight:1.3}}};r&&(i.direction="rtl");const o=function(e,t){const{options:r,components:n,palette:i,shadows:o,shape:s,typography:a,zIndex:l}=e,c={components:n?Gl(Sl,n,r?.componentVariantsMerge??"concat"):Sl};return t&&i?.dark?c.palette={...Rl.palette,...Kl(i.dark),mode:"dark"}:i?.light&&(c.palette={...El.palette,...Kl(i.light)}),o&&(c.shadows=o),s&&(c.shape=s),a&&(c.typography=function(e={}){return e?Xl(e,{fontFamily:Zl,display1:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display2:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display3:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display4:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display5:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display6:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h1:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h2:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h3:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h4:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h5:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h6:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],subtitle1:["fontFamily"],subtitle2:["fontFamily"],body1:["fontFamily"],body2:["fontFamily"],caption:["fontFamily"],overline:["fontFamily"],button:["fontFamily","textTransform"]}):{}}(a)),l&&(c.zIndex=l),c}(e,t),s=La(o,i);return Yl.set(n,s),s})(m,p,c):(({palette:e="default",rtl:t=!1,isDarkMode:r=!1}={})=>{const n=`${e}-${r}-${t}`;if(Yl.has(n))return Yl.get(n);const i=r?Rl:El,o={};"marketing-suite"===e&&(o.palette=Ol),"unstable"===e&&(o.palette=r?Nl:Ll,o.shape={borderRadius:8,__unstableBorderRadiusMultipliers:[0,.5,1,1.5,2.5]}),"argon-beta"===e&&(o.palette=r?Ul:Fl,o.shape={borderRadius:8,__unstableBorderRadiusMultipliers:[0,.5,1,1.5,2.5]}),t&&(o.direction="rtl");const s=La(i,o);return Yl.set(n,s),s})({rtl:c,isDarkMode:p,palette:t||l?.themeName});return h&&(g=((e,t)=>{if(!t)return e;const r={};return["zIndex"].forEach((e=>{e in t&&(r[e]=t[e])})),Vn(e,r,{clone:!0})})(g,h)),s().createElement(ql,{value:{colorScheme:e,themeName:f,overrides:h,customTheme:m}},s().createElement(vs,{theme:g},r))})),Ql=["primary","secondary"],ec=Da(wa)((({theme:e,ownerState:t})=>{const{color:r}=t,n=((e,t)=>{if(!t||"default"===t)return e.palette.action.active;if("inherit"===t)return e.palette.text.primary;const r=e.palette[t];return r?.main??e.palette.action.active})(e,r),i=ho(n,.04),o=((e,t)=>{if(!t||"default"===t||"inherit"===t)return e.palette.action.disabled;const r=e.palette[t];return r?.[Sa]?.disabled??e.palette.action.disabled})(e,r);return{variants:[{props:e=>!e.ownerState?.variant||"ghost"===e.ownerState.variant,style:{"&:hover":{backgroundColor:i},"&.Mui-disabled":{color:o}}},{props:e=>((e,t)=>"outlined"===e||"filled"===e&&Ql.some((e=>e===t)))(e.ownerState?.variant,e.ownerState?.color),style:{"&& .MuiTouchRipple-root .MuiTouchRipple-ripple .MuiTouchRipple-child":{borderRadius:`${e.shape.borderRadius}px`}}},{props:e=>"outlined"===e.ownerState?.variant,style:{borderRadius:`${e.shape.borderRadius}px`,border:"1px solid",borderColor:e.palette.divider,"&:hover":{backgroundColor:i},"&.Mui-disabled":{color:o}}},{props:e=>"filled"===e.ownerState?.variant&&"primary"===e.ownerState?.color,style:{borderRadius:`${e.shape.borderRadius}px`,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark},"&.Mui-disabled":{backgroundColor:o,color:ho(e.palette.primary.contrastText,.38)}}},{props:e=>"filled"===e.ownerState?.variant&&"secondary"===e.ownerState?.color,style:{borderRadius:`${e.shape.borderRadius}px`,backgroundColor:ho(e.palette.secondary.main,.08),"&:hover":{backgroundColor:ho(e.palette.secondary.main,.12)},"&.Mui-disabled":{backgroundColor:ho(e.palette.secondary.main,.04),color:o}}}]}})),tc=s().forwardRef(((e,t)=>{const{sx:r={},color:n,variant:i="ghost",...o}=e,a="filled"===i&&!Ql.some((e=>e===n)),l=a?"ghost":i,c=o.href?Ca:"&:hover,&:focus,&:active",u="filled"===l&&"primary"===n?"primary.contrastText":((e="default")=>"inherit"===e?"inherit":"default"===e?"action.active":yl.includes(e)?`${e}.${_a}`:`${e}.main`)(n),d={color:u,[c]:{color:u}},p={...e,variant:l,color:n};return s().createElement(ec,{...o,ownerState:p,sx:{...d,...r},ref:t})}));tc.displayName="IconButton";var rc=tc;function nc(e){return Kn("MuiSvgIcon",e)}No("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ic=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oc=Oi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Bi(r.color)}`],t[`fontSize${Bi(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,i,o,s,a,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(s=o.pxToRem)?void 0:s.call(o,20))||"1.25rem",medium:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),sc=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiSvgIcon"}),{children:n,className:s,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:f,viewBox:m="0 0 24 24"}=r,g=c(r,ic),v=o.isValidElement(n)&&"svg"===n.type,y=u({},r,{color:a,component:l,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:v}),b={};h||(b.viewBox=m);const x=(e=>{const{color:t,fontSize:r,classes:n}=e;return C({root:["root","inherit"!==t&&`color${Bi(t)}`,`fontSize${Bi(r)}`]},nc,n)})(y);return(0,i.jsxs)(oc,u({as:l,className:w(x.root,s),focusable:"false",color:p,"aria-hidden":!f||void 0,role:f?"img":void 0,ref:t},b,g,v&&n.props,{ownerState:y,children:[v?n.props.children:n,f?(0,i.jsx)("title",{children:f}):null]}))}));sc.muiName="SvgIcon";const ac=sc;var lc=s().forwardRef(((e,t)=>s().createElement(ac,{...e,ref:t}))),cc=o.forwardRef(((e,t)=>o.createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V4C12.75 4.41421 12.4142 4.75 12 4.75C11.5858 4.75 11.25 4.41421 11.25 4V3C11.25 2.58579 11.5858 2.25 12 2.25ZM5.06967 5.06967C5.36256 4.77678 5.83744 4.77678 6.13033 5.06967L6.83033 5.76967C7.12322 6.06256 7.12322 6.53744 6.83033 6.83033C6.53744 7.12322 6.06256 7.12322 5.76967 6.83033L5.06967 6.13033C4.77678 5.83744 4.77678 5.36256 5.06967 5.06967ZM18.9303 5.06967C19.2232 5.36256 19.2232 5.83744 18.9303 6.13033L18.2303 6.83033C17.9374 7.12322 17.4626 7.12322 17.1697 6.83033C16.8768 6.53744 16.8768 6.06256 17.1697 5.76967L17.8697 5.06967C18.1626 4.77678 18.6374 4.77678 18.9303 5.06967ZM12 7.75C11.108 7.75 10.2386 8.03066 9.51498 8.55222C8.79135 9.07378 8.25017 9.80981 7.9681 10.656C7.68602 11.5023 7.67735 12.4158 7.94332 13.2672C8.20928 14.1186 8.7364 14.8648 9.45 15.4C9.47737 15.4205 9.50331 15.4429 9.52763 15.467C9.76639 15.7033 9.97545 15.9663 10.1511 16.25H13.8489C14.0246 15.9663 14.2336 15.7033 14.4724 15.467C14.4967 15.4429 14.5226 15.4205 14.55 15.4C15.2636 14.8648 15.7907 14.1186 16.0567 13.2672C16.3226 12.4158 16.314 11.5023 16.0319 10.656C15.7498 9.80981 15.2086 9.07378 14.485 8.55222C13.7614 8.03066 12.892 7.75 12 7.75ZM14.9408 17.3899C14.9685 17.3444 14.9916 17.2956 15.0092 17.2444C15.1354 16.9955 15.2989 16.7666 15.4949 16.566C16.4376 15.8445 17.1342 14.8485 17.4885 13.7145C17.8483 12.5625 17.8366 11.3266 17.4549 10.1817C17.0733 9.0368 16.3411 8.041 15.3621 7.33536C14.3831 6.62971 13.2068 6.25 12 6.25C10.7932 6.25 9.61694 6.62971 8.63792 7.33536C7.65889 8.041 6.9267 9.0368 6.54507 10.1817C6.16344 11.3266 6.15171 12.5625 6.51155 13.7145C6.86579 14.8485 7.56245 15.8445 8.50515 16.566C8.7009 16.7665 8.86438 16.9951 8.99046 17.2438C9.00821 17.2954 9.03145 17.3446 9.05947 17.3905C9.0918 17.4648 9.12088 17.5406 9.14662 17.6178C9.28311 18.0273 9.3213 18.4632 9.25809 18.8902C9.2527 18.9265 9.25 18.9632 9.25 19C9.25 19.7293 9.53973 20.4288 10.0555 20.9445C10.5712 21.4603 11.2707 21.75 12 21.75C12.7293 21.75 13.4288 21.4603 13.9445 20.9445C14.4603 20.4288 14.75 19.7293 14.75 19C14.75 18.9632 14.7473 18.9265 14.7419 18.8902C14.6787 18.4632 14.7169 18.0273 14.8534 17.6178C14.8792 17.5404 14.9083 17.4644 14.9408 17.3899ZM13.2767 17.75H10.7233C10.7985 18.177 10.8081 18.6141 10.7509 19.0461C10.7625 19.3609 10.8926 19.6604 11.1161 19.8839C11.3505 20.1183 11.6685 20.25 12 20.25C12.3315 20.25 12.6495 20.1183 12.8839 19.8839C13.1074 19.6604 13.2375 19.3609 13.2491 19.0461C13.1919 18.6141 13.2015 18.177 13.2767 17.75ZM2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H4C4.41421 11.25 4.75 11.5858 4.75 12C4.75 12.4142 4.41421 12.75 4 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12ZM19.25 12C19.25 11.5858 19.5858 11.25 20 11.25H21C21.4142 11.25 21.75 11.5858 21.75 12C21.75 12.4142 21.4142 12.75 21 12.75H20C19.5858 12.75 19.25 12.4142 19.25 12Z"})))),uc=o.forwardRef(((e,t)=>o.createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M11.75 15.75C12.3023 15.75 12.75 16.1977 12.75 16.75V16.7598C12.75 17.3121 12.3023 17.7598 11.75 17.7598C11.1977 17.7598 10.75 17.3121 10.75 16.7598V16.75C10.75 16.1977 11.1977 15.75 11.75 15.75Z"}),o.createElement("path",{d:"M11.1846 5.80957C11.8554 5.67269 12.5519 5.7716 13.1592 6.08887L13.1611 6.09082C13.7668 6.41042 14.2478 6.92595 14.5283 7.55273C14.8087 8.17938 14.8742 8.88338 14.7158 9.55176C14.5574 10.2202 14.1831 10.8182 13.6494 11.248C13.3136 11.5185 12.9265 11.7121 12.5156 11.8193V13.5C12.5156 13.9142 12.1798 14.25 11.7656 14.25C11.3516 14.2498 11.0156 13.9141 11.0156 13.5V11.167C11.0156 10.7537 11.3504 10.4183 11.7637 10.417C12.1047 10.4159 12.4371 10.2973 12.708 10.0791C12.9791 9.86074 13.1733 9.55417 13.2559 9.20605C13.3384 8.85764 13.3036 8.49103 13.1582 8.16602C13.0131 7.84167 12.7675 7.57909 12.4629 7.41797C12.1603 7.26033 11.8157 7.21168 11.4844 7.2793C11.1523 7.34706 10.8495 7.52873 10.627 7.79688C10.3624 8.11534 9.88993 8.15896 9.57129 7.89453C9.25265 7.63007 9.20839 7.1576 9.47266 6.83887C9.91082 6.31093 10.5138 5.94644 11.1846 5.80957Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM11.75 3.5C7.19365 3.5 3.5 7.19365 3.5 11.75C3.5 16.3063 7.19365 20 11.75 20C16.3063 20 20 16.3063 20 11.75C20 7.19365 16.3063 3.5 11.75 3.5Z"}))));function dc(e){return Kn("MuiDivider",e)}const pc=No("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],fc=Oi("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>u({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)`:ti.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>u({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>u({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>u({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>u({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),mc=Oi("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>u({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)`}))),gc=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:s,component:a=(o?"div":"hr"),flexItem:l=!1,light:d=!1,orientation:p="horizontal",role:h=("hr"!==a?"separator":void 0),textAlign:f="center",variant:m="fullWidth"}=r,g=c(r,hc),v=u({},r,{absolute:n,component:a,flexItem:l,light:d,orientation:p,role:h,textAlign:f,variant:m}),y=(e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return C({root:["root",t&&"absolute",l,o&&"light","vertical"===s&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},dc,n)})(v);return(0,i.jsx)(fc,u({as:a,className:w(y.root,s),role:h,ref:t,ownerState:v},g,{children:o?(0,i.jsx)(mc,{className:y.wrapper,ownerState:v,children:o}):null}))}));gc.muiSkipListHighlight=!0;const vc=gc;var yc=s().forwardRef(((e,t)=>s().createElement(vc,{...e,ref:t}))),bc=o.forwardRef(((e,t)=>o.createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.75C10.2051 3.75 8.75 5.20507 8.75 7C8.75 8.79493 10.2051 10.25 12 10.25C13.7949 10.25 15.25 8.79493 15.25 7C15.25 5.20507 13.7949 3.75 12 3.75ZM7.25 7C7.25 4.37665 9.37665 2.25 12 2.25C14.6234 2.25 16.75 4.37665 16.75 7C16.75 9.62335 14.6234 11.75 12 11.75C9.37665 11.75 7.25 9.62335 7.25 7ZM10 15.75C9.13805 15.75 8.3114 16.0924 7.7019 16.7019C7.09241 17.3114 6.75 18.138 6.75 19V21C6.75 21.4142 6.41421 21.75 6 21.75C5.58579 21.75 5.25 21.4142 5.25 21V19C5.25 17.7402 5.75044 16.532 6.64124 15.6412C7.53204 14.7504 8.74022 14.25 10 14.25H14C15.2598 14.25 16.468 14.7504 17.3588 15.6412C18.2496 16.532 18.75 17.7402 18.75 19V21C18.75 21.4142 18.4142 21.75 18 21.75C17.5858 21.75 17.25 21.4142 17.25 21V19C17.25 18.138 16.9076 17.3114 16.2981 16.7019C15.6886 16.0924 14.862 15.75 14 15.75H10Z"}))));function xc(e,t){const r=u({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=u({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},o&&Object.keys(o)?i&&Object.keys(i)?(r[n]=u({},o),Object.keys(i).forEach((e=>{r[n][e]=xc(i[e],o[e])}))):r[n]=o:r[n]=i}else void 0===r[n]&&(r[n]=e[n])})),r}function wc(e){return Kn("MuiButton",e)}const Cc=No("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),_c=o.createContext({}),kc=o.createContext(void 0),Sc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ac=e=>u({},"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}}),Ec=Oi(ma,{shouldForwardProp:e=>Ii(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Bi(r.color)}`],t[`size${Bi(r.size)}`],t[`${r.variant}Size${Bi(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return u({},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":u({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ti.alpha(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})`:ti.alpha(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})`:ti.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,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":u({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Cc.focusVisible}`]:u({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Cc.disabled}`]:u({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ti.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,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"},[`&.${Cc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cc.disabled}`]:{boxShadow:"none"}})),Rc=Oi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Bi(r.size)}`]]}})((({ownerState:e})=>u({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ac(e)))),Ic=Oi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Bi(r.size)}`]]}})((({ownerState:e})=>u({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ac(e)))),Oc=o.forwardRef((function(e,t){const r=o.useContext(_c),n=o.useContext(kc),s=Di({props:xc(r,e),name:"MuiButton"}),{children:a,color:l="primary",component:d="button",className:p,disabled:h=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:y=!1,size:b="medium",startIcon:x,type:_,variant:k="text"}=s,S=c(s,Sc),A=u({},s,{color:l,component:d,disabled:h,disableElevation:f,disableFocusRipple:m,fullWidth:y,size:b,type:_,variant:k}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,classes:s}=e;return u({},s,C({root:["root",o,`${o}${Bi(t)}`,`size${Bi(i)}`,`${o}Size${Bi(i)}`,`color${Bi(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Bi(i)}`],endIcon:["icon","endIcon",`iconSize${Bi(i)}`]},wc,s))})(A),R=x&&(0,i.jsx)(Rc,{className:E.startIcon,ownerState:A,children:x}),I=g&&(0,i.jsx)(Ic,{className:E.endIcon,ownerState:A,children:g}),O=n||"";return(0,i.jsxs)(Ec,u({ownerState:A,className:w(r.className,E.root,p,O),component:d,disabled:h,focusRipple:!m,focusVisibleClassName:w(E.focusVisible,v),ref:t,type:_},S,{classes:E,children:[R,a,I]}))})),Mc=Oc;function Tc(e){return Kn("MuiCircularProgress",e)}No("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Lc=["className","color","disableShrink","size","style","thickness","value","variant"];let Pc,jc,Nc,Dc,Bc=e=>e;const Fc=rt(Pc||(Pc=Bc`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),$c=rt(jc||(jc=Bc`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),zc=Oi("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Bi(r.color)}`]]}})((({ownerState:e,theme:t})=>u({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&tt(Nc||(Nc=Bc`
      animation: ${0} 1.4s linear infinite;
    `),Fc))),Uc=Oi("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Wc=Oi("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Bi(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>u({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&tt(Dc||(Dc=Bc`
      animation: ${0} 1.4s ease-in-out infinite;
    `),$c))),qc=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:d=3.6,value:p=0,variant:h="indeterminate"}=r,f=c(r,Lc),m=u({},r,{color:o,disableShrink:s,size:a,thickness:d,value:p,variant:h}),g=(e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e;return C({root:["root",r,`color${Bi(n)}`],svg:["svg"],circle:["circle",`circle${Bi(r)}`,i&&"circleDisableShrink"]},Tc,t)})(m),v={},y={},b={};if("determinate"===h){const e=2*Math.PI*((44-d)/2);v.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return(0,i.jsx)(zc,u({className:w(g.root,n),style:u({width:a,height:a},y,l),ownerState:m,ref:t,role:"progressbar"},b,f,{children:(0,i.jsx)(Uc,{className:g.svg,ownerState:m,viewBox:"22 22 44 44",children:(0,i.jsx)(Wc,{className:g.circle,style:v,ownerState:m,cx:44,cy:44,r:(44-d)/2,fill:"none",strokeWidth:d})})}))})),Vc=qc,Hc={color:"inherit",size:"1em"},Gc=s().forwardRef(((e,t)=>s().createElement(Vc,{...Hc,...e,ref:t})));Gc.defaultProps=Hc;var Zc=Gc;const Kc="rgba(0, 0, 0, 0.04)",Xc="rgba(0, 0, 0, 0.08)",Yc=Da(Mc)((({theme:e,ownerState:t})=>{const{color:r,unstableToColor:n,unstableGradientAngle:i}=t,o=r&&"inherit"!==r?r:"primary",s=!!e.palette[o]?.__unstableTonalMain,a=({variant:e})=>"unstableTonal"===e&&s,l=({variant:e})=>!!e&&!["contained","outlined","text"].includes(e);return{variants:[{props:()=>t.loading&&"center"===t.loadingPosition,style:{"&.MuiButtonBase-root":{"&, &:hover, &:focus, &:active":{color:"transparent"}},"& .MuiButton-loadingWrapper":{display:"contents","& .MuiButton-loadingIndicator":{display:"flex",position:"absolute",left:"50%",transform:"translateX(-50%)",color:e.palette.action.disabled}}}},{props:e=>a(e)&&"inherit"!==e.color&&!e.disabled,style:{background:e.palette[o]?.__unstableTonalMain,color:e.palette[o].main,"&:hover":{backgroundColor:e.palette[o]?.__unstableTonalDark}}},{props:e=>e.disabled&&l(e),style:{background:e.palette.action.disabledBackground,color:e.palette.action.disabled}},{props:e=>a(e)&&"inherit"===e.color,style:{background:Kc,color:"inherit","&:hover":{backgroundColor:Xc}}},{props:e=>"unstableTonal"===e.variant&&!s,style:{background:"#ff0000",color:"#ff0000"}},{props:e=>"small"===e.size&&l(e),style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:e=>"large"===e.size&&l(e),style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:e=>(({variant:e})=>"unstableGradient"===e&&s)(e)&&!e.disabled,style:nu(e,i,r,n)},{props:e=>"unstableGradient"===e.variant&&!s,style:{background:"#ff0000",color:"#ff0000"}}]}})),Jc=(e="primary",t="text",r)=>{if(e)return"inherit"===e?"inherit":"contained"===t?`${e}.contrastText`:"unstableTonal"===t?`${e}.main`:r.palette.primary.__unstableAccessibleMain&&yl.includes(e)?`${e}.${_a}`:`${e}.main`},Qc={loading:!1,loadingIndicator:s().createElement(Zc,{color:"inherit",size:16}),loadingPosition:"center"},eu=s().forwardRef(((e,t)=>{const r={...Qc,...e},n=s().useContext(_c),i=jo(),{sx:o={},unstableToColor:a,unstableGradientAngle:l,...c}=function(e){const{loading:t,loadingPosition:r,loadingIndicator:n,...i}=e;if(!t)return i;switch(r){case"start":i.startIcon=n;break;case"end":i.endIcon=n;break;case"center":i.children=s().createElement(ru,{loadingIndicator:n},e.children)}return{...i,disabled:!0}}(r),u={...c,loading:r.loading,loadingPosition:r.loadingPosition,loadingIndicator:r.loadingIndicator,unstableToColor:a,unstableGradientAngle:l};let d={};const p=c.href?Ca:"&:hover,&:focus,&:active",h=c.color||n?.color,f=c.variant||n?.variant;return d={[p]:{color:Jc(h,f,i)}},s().createElement(Yc,{...c,color:h,variant:f,sx:{...d,...o},ref:t,ownerState:u})}));var tu=eu;function ru({loadingIndicator:e,children:t}){return s().createElement(s().Fragment,null,s().createElement("div",{className:"MuiButton-loadingWrapper"},s().createElement("div",{className:"MuiButton-loadingIndicator"},e)),t)}function nu(e,t,r,n){if(!r)return;const i=r,o=function(e,t){if(void 0!==t)return t;const{__unstableGradientAngle:r}=e.palette.action;return void 0!==r?r:125}(e,t);let{main:s,__unstableTonalMain:a,__unstableTonalDark:l}=e.palette[i]||{};"inherit"===r&&(s="inherit",a=Kc,l=Xc);const c=[a],u=[l];if(n){const t=n,{__unstableTonalMain:r,__unstableTonalDark:i}=e.palette[t];c.push(r),u.push(i)}return{color:s,backgroundImage:`linear-gradient( ${o}deg, ${c.join(", ")} )`,"&:hover":{backgroundImage:`linear-gradient( ${o}deg, ${u.join(",")} )`}}}eu.defaultProps=Qc;const iu=e=>"string"==typeof e,ou=()=>{let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));return r.resolve=e,r.reject=t,r},su=e=>null==e?"":""+e,au=/###/g,lu=e=>e&&e.indexOf("###")>-1?e.replace(au,"."):e,cu=e=>!e||iu(e),uu=(e,t,r)=>{const n=iu(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if(cu(e))return{};const t=lu(n[i]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return cu(e)?{}:{obj:e,k:lu(n[i])}},du=(e,t,r)=>{const{obj:n,k:i}=uu(e,t,Object);if(void 0!==n||1===t.length)return void(n[i]=r);let o=t[t.length-1],s=t.slice(0,t.length-1),a=uu(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=uu(e,s,Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=r},pu=(e,t)=>{const{obj:r,k:n}=uu(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},hu=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?iu(e[n])||e[n]instanceof String||iu(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):hu(e[n],t[n],r):e[n]=t[n]);return e},fu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var mu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const gu=e=>iu(e)?e.replace(/[&<>"'\/]/g,(e=>mu[e])):e,vu=[" ",",","?","!",";"],yu=new class{getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}}(20),bu=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(r);let i=e;for(let e=0;e<n.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let s=e;s<n.length;++s)if(s!==e&&(o+=r),o+=n[s],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&s<n.length-1)continue;e+=s-e+1;break}i=t}return i},xu=e=>e?.replace(/_/g,"-"),wu={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Cu{init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||wu,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(iu(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Cu(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Cu(this.logger,e)}constructor(e,t={}){this.init(e,t)}}var _u=new Cu;class ku{on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach((([e,r])=>{for(let n=0;n<r;n++)e(...t)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((([r,n])=>{for(let i=0;i<n;i++)r.apply(r,[e,...t])}))}constructor(){this.observers={}}}class Su extends ku{addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,n={}){const i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],r&&(Array.isArray(r)?s.push(...r):iu(r)&&i?s.push(...r.split(i)):s.push(r)));const a=pu(this.data,s);return!a&&!t&&!r&&e.indexOf(".")>-1&&(e=s[0],t=s[1],r=s.slice(2).join(".")),!a&&o&&iu(r)?bu(this.data?.[e]?.[t],r,i):a}addResource(e,t,r,n,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),du(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(const n in r)(iu(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,o={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=pu(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?hu(a,r,i):a={...a,...r},du(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}}var Au={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach((e=>{t=this.processors[e]?.process(t,r,n,i)??t})),t}};const Eu=Symbol("i18next/PATH_KEY");function Ru(e,t){const{[Eu]:r}=e(function(){const e=[],t=Object.create(null);let r;return t.get=(n,i)=>(r?.revoke?.(),i===Eu?e:(e.push(i),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),n=t?.keySeparator??".",i=t?.nsSeparator??":";if(r.length>1&&i){const e=t?.ns;if((e?Array.isArray(e)?e:[e]:[]).includes(r[0]))return`${r[0]}${i}${r.slice(1).join(n)}`}return r.join(n)}const Iu={},Ou=e=>!iu(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Mu extends ku{changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(null==e)return!1;const n=this.resolve(e,r);if(void 0===n?.res)return!1;const i=Ou(n.res);return!1!==r.returnObjects||!i}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=vu.filter((e=>t.indexOf(e)<0&&r.indexOf(e)<0));if(0===n.length)return!0;const i=yu.getRegExp(`(${n.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,r,n));if(o&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:iu(i)?[i]:i};const o=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(n)}return{key:e,namespaces:iu(i)?[i]:i}}translate(e,t,r){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=Ru(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]);const i=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1];let c=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?i?{res:`${l}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${c}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s;const p=this.resolve(e,n);let h=p?.res;const f=p?.usedKey||s,m=p?.exactUsedKey||s,g=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==n.count&&!iu(n.count),b=Mu.hasDefaultValue(n),x=y?this.pluralResolver.getSuffix(u,n.count,n):"",w=n.ordinal&&y?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",C=y&&!n.ordinal&&0===n.count,_=C&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${x}`]||n[`defaultValue${w}`]||n.defaultValue;let k=h;v&&!h&&b&&(k=_);const S=Ou(k),A=Object.prototype.toString.apply(k);if(!(v&&k&&S&&["[object Number]","[object Function]","[object RegExp]"].indexOf(A)<0)||iu(g)&&Array.isArray(k))if(v&&iu(g)&&Array.isArray(h))h=h.join(g),h&&(h=this.extendTranslation(h,e,n,r));else{let t=!1,i=!1;!this.isValidLookup(h)&&b&&(t=!0,h=_),this.isValidLookup(h)||(i=!0,h=s);const a=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:h,d=b&&_!==h&&this.options.updateMissing;if(i||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,l,s,d?_:h),o){const e=this.resolve(s,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const r=(e,t,r)=>{const i=b&&r!==h?r:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,i,d,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,i,d,n),this.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach((e=>{const t=this.pluralResolver.getSuffixes(e,n);C&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach((t=>{r([e],s+t,n[`defaultValue${t}`]||_)}))})):r(e,s,_))}h=this.extendTranslation(h,e,n,p,r),i&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${s}`),(i||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${s}`:s,t?h:void 0,n))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(p.res=e,p.usedParams=this.getUsedParamsDetails(n),p):e}if(o){const e=Array.isArray(k),t=e?[]:{},r=e?m:f;for(const e in k)if(Object.prototype.hasOwnProperty.call(k,e)){const i=`${r}${o}${e}`;t[e]=b&&!h?this.translate(i,{...n,defaultValue:Ou(_)?_[e]:void 0,joinArrays:!1,ns:a}):this.translate(i,{...n,joinArrays:!1,ns:a}),t[e]===i&&(t[e]=k[e])}h=t}}return i?(p.res=h,p.usedParams=this.getUsedParamsDetails(n),p):h}extendTranslation(e,t,r,n,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const o=iu(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(o){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let a=r.replace&&!iu(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,r.lng||this.language||n.usedLng,r),o){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,((...e)=>i?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null)),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,s=iu(o)?[o]:o;return null!=e&&s?.length&&!1!==r.applyPostProcessor&&(e=Au.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,i,o,s;return iu(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(r))return;const a=this.extractFromKey(e,t),l=a.key;n=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!iu(t.count),d=u&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(iu(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach((e=>{this.isValidLookup(r)||(s=e,Iu[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(s)||(Iu[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((n=>{if(this.isValidLookup(r))return;o=n;const s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(n,t.count,t));const r=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&0===e.indexOf(i)&&s.push(l+e.replace(i,this.options.pluralSeparator)),s.push(l+e),d&&s.push(l+r)),p){const n=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(n),u&&(t.ordinal&&0===e.indexOf(i)&&s.push(n+e.replace(i,this.options.pluralSeparator)),s.push(n+e),d&&s.push(n+r))}}let a;for(;a=s.pop();)this.isValidLookup(r)||(i=a,r=this.getResource(n,e,a,t))})))}))})),{res:r,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!iu(e.replace);let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}constructor(e,t={}){var r,n;super(),r=e,n=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{r[e]&&(n[e]=r[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=_u.create("translator")}}class Tu{getScriptPartFromCode(e){if(!(e=xu(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=xu(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(iu(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),iu(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return iu(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):iu(e)&&i(this.formatLanguageCode(e)),r.forEach((e=>{n.indexOf(e)<0&&i(this.formatLanguageCode(e))})),n}constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_u.create("languageUtils")}}const Lu={zero:0,one:1,two:2,few:3,many:4,other:5},Pu={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ju{clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=xu("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:n});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(r,{type:n})}catch(r){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Pu;if(!e.match(/-|_/))return Pu;const n=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(n,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map((e=>`${t}${e}`))}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort(((e,t)=>Lu[e]-Lu[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=_u.create("pluralResolver"),this.pluralRulesCache={}}}const Nu=(e,t,r,n=".",i=!0)=>{let o=((e,t,r)=>{const n=pu(e,r);return void 0!==n?n:pu(t,r)})(e,t,r);return!o&&i&&iu(r)&&(o=bu(e,r,n),void 0===o&&(o=bu(t,r,n))),o},Du=e=>e.replace(/\$/g,"$$$$");class Bu{init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:gu,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?fu(i):o||"{{",this.suffix=s?fu(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?fu(d):p||fu("$t("),this.nestingSuffix=h?fu(h):f||fu(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let i,o,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=Nu(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(Nu(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...t,interpolationkey:o})};this.resetRegExp();const c=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Du(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Du(this.escape(e)):Du(e)}].forEach((t=>{for(s=0;i=t.regex.exec(e);){const r=i[1].trim();if(o=l(r),void 0===o)if("function"==typeof c){const t=c(e,i,n);o=iu(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else{if(u){o=i[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else iu(o)||this.useRawValueToEscape||(o=su(o));const a=t.safeValue(o);if(e=e.replace(i[0],a),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),e}nest(e,t,r={}){let n,i,o;const s=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${fu(r)}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);const s=i.match(/'/g),a=i.match(/"/g);((s?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let a=[];o={...r},o=o.replace&&!iu(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==l&&(a=n[1].slice(l).split(this.formatSeparator).map((e=>e.trim())).filter(Boolean),n[1]=n[1].slice(0,l)),i=t(s.call(this,n[1].trim(),o),o),i&&n[0]===e&&!iu(i))return i;iu(i)||(i=su(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),a.length&&(i=a.reduce(((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:n[1].trim()})),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}constructor(e={}){this.logger=_u.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}}const Fu=e=>{const t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const s=n+JSON.stringify(o);let a=t[s];return a||(a=e(xu(n),i),t[s]=a),a(r)}},$u=e=>(t,r,n)=>e(xu(r),n)(t);class zu{init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?Fu:$u;this.formats={number:r(((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)})),currency:r(((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)})),datetime:r(((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)})),relativetime:r(((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")})),list:r(((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)}))}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Fu(t)}format(e,t,r,n={}){const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((e=>e.indexOf(")")>-1))){const e=i.findIndex((e=>e.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce(((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);"currency"===t&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{const s=n?.formatParams?.[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e)}constructor(e={}){this.logger=_u.create("formatter"),this.options=e,this.init(e)}}class Uu extends ku{queueLoad(e,t,r,n){const i={},o={},s={},a={};return e.forEach((e=>{let n=!0;t.forEach((t=>{const s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){const n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),!t&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const s={};this.queue.forEach((r=>{((e,t,r)=>{const{obj:n,k:i}=uu(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((e=>{s[e]||(s[e]={});const t=r.loaded[e];t.length&&t.forEach((t=>{void 0===s[e][t]&&(s[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((e=>!e.done))}read(e,t,r,n=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&n<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,r,n+1,2*i,o)}),i):o(s,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const r=a(e,t);r&&"function"==typeof r.then?r.then((e=>s(null,e))).catch(s):s(null,r)}catch(e){s(e)}}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();iu(e)&&(e=this.languageUtils.toResolveHierarchy(e)),iu(t)&&(t=[t]);const i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,((r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)}))}saveMissing(e,t,r,n,i,o={},s=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=r&&""!==r){if(this.backend?.create){const a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,r,n,a):l(e,t,r,n),i&&"function"==typeof i.then?i.then((e=>s(null,e))).catch(s):s(null,i)}catch(e){s(e)}else l(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}else this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=_u.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}}const Wu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),iu(e[1])&&(t.defaultValue=e[1]),iu(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach((e=>{t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qu=e=>(iu(e.ns)&&(e.ns=[e.ns]),iu(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),iu(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Vu=()=>{},Hu="__i18next_supportNoticeShown";class Gu extends ku{init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(iu(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=Wu();var n;this.options={...r,...this.options,...qu(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(n=this,n?.modules?.backend?.name?.indexOf("Locize")>0||n?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||n?.options?.backend?.backends&&n.options.backend.backends.some((e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0))||n?.options?.backend?.projectId||n?.options?.backend?.backendOptions&&n.options.backend.backendOptions.some((e=>e?.projectId)))||"undefined"!=typeof globalThis&&globalThis[Hu]||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis[Hu]=!0));const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?_u.init(i(this.modules.logger),this.options):_u.init(null,this.options),e=this.modules.formatter?this.modules.formatter:zu;const t=new Tu(this.options);this.store=new Su(this.options.resources,this.options);const n=this.services;n.logger=_u,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new ju(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(n.formatter=i(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Bu(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Uu(i(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",((e,...t)=>{this.emit(e,...t)})),this.modules.languageDetector&&(n.languageDetector=i(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=i(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Mu(this.services,this.options),this.translator.on("*",((e,...t)=>{this.emit(e,...t)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,t||(t=Vu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=(...t)=>this.store[e](...t)})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=(...t)=>(this.store[e](...t),this)}));const o=ou(),s=()=>{const e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),o}loadResources(e,t=Vu){let r=t;const n=iu(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>t(e))),this.options.preload?.forEach?.((e=>t(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)}))}else r(null)}reloadResources(e,t,r){const n=ou();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=Vu),this.services.backendConnector.reload(e,t,(e=>{n.resolve(),r(e)})),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Au.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=ou();this.emit("languageChanging",e);const n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,o)=>{o?this.isLanguageChangingTo===e&&(n(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(((...e)=>this.t(...e))),t&&t(i,((...e)=>this.t(...e)))},o=t=>{e||t||!this.services.languageDetector||(t=[]);const r=iu(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(iu(t)?[t]:t);o&&(this.language||n(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,(e=>{i(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}getFixedT(e,t,r){const n=(e,t,...i)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t},o.lng=o.lng||n.lng,o.lngs=o.lngs||n.lngs,o.ns=o.ns||n.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||n.keyPrefix);const s=this.options.keySeparator||".";let a;return o.keyPrefix&&Array.isArray(e)?a=e.map((e=>("function"==typeof e&&(e=Ru(e,{...this.options,...t})),`${o.keyPrefix}${s}${e}`))):("function"==typeof e&&(e=Ru(e,{...this.options,...t})),a=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(a,o)};return iu(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const o=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(r,e)||n&&!o(i,e)))}loadNamespaces(e,t){const r=ou();return this.options.ns?(iu(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=ou();iu(e)&&(e=[e]);const n=this.options.preload||[],i=e.filter((e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=n.concat(i),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new Tu(Wu());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const r=new Gu(e,t);return r.createInstance=Gu.createInstance,r}cloneInstance(e={},t=Vu){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},i=new Gu(n);if(void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const e=Object.keys(this.store.data).reduce(((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce(((r,n)=>(r[n]={...e[t][n]},r)),e[t]),e)),{});i.store=new Su(e,n),i.services.resourceStore=i.store}if(e.interpolation){const t={...Wu().interpolation,...this.options.interpolation,...e.interpolation},r={...n,interpolation:t};i.services.interpolator=new Bu(r)}return i.translator=new Mu(i.services,n),i.translator.on("*",((e,...t)=>{i.emit(e,...t)})),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}constructor(e={},t){var r;if(super(),this.options=qu(e),this.services={},this.logger=_u,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}}const Zu=Gu.createInstance(),Ku={},Xu=(e,t,r,n)=>{ed(r)&&Ku[r]||(ed(r)&&(Ku[r]=new Date),((e,t,r,n)=>{const i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);ed(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,r,n))},Yu=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout((()=>{e.off("initialized",r)}),0),t()};e.on("initialized",r)}},Ju=(e,t,r)=>{e.loadNamespaces(t,Yu(e,r))},Qu=(e,t,r,n)=>{if(ed(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ju(e,r,n);r.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,Yu(e,n))},ed=e=>"string"==typeof e,td=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rd={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},nd=e=>rd[e];let id,od={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(td,nd),transDefaultProps:void 0};const sd={type:"3rdParty",init(e){((e={})=>{od={...od,...e}})(e.options.react),(e=>{id=e})(e)}},ad=(0,o.createContext)();class ld{addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}constructor(){this.usedNamespaces={}}}var cd,ud,dd={exports:{}},pd={},hd=(ud||(ud=1,dd.exports=function(){if(cd)return pd;cd=1;var e=s(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,n=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(e){var r=e.getSnapshot;e=e.value;try{var n=r();return!t(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=r({inst:{value:s,getSnapshot:t}}),c=l[0].inst,u=l[1];return i((function(){c.value=s,c.getSnapshot=t,a(c)&&u({inst:c})}),[e,s,t]),n((function(){return a(c)&&u({inst:c}),e((function(){a(c)&&u({inst:c})}))}),[e]),o(s),s};return pd.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,pd}()),dd.exports);const fd={t:(e,t)=>{return ed(t)?t:"object"==typeof(r=t)&&null!==r&&ed(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var r},ready:!1},md=()=>()=>{},gd=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:i}=(0,o.useContext)(ad)||{},s=r||n||id;s&&!s.reportNamespaces&&(s.reportNamespaces=new ld),s||Xu(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=(0,o.useMemo)((()=>({...od,...s?.options?.react,...t})),[s,t]),{useSuspense:l,keyPrefix:c}=a,u=e||i||s?.options?.defaultNS,d=ed(u)?[u]:u||["translation"],p=(0,o.useMemo)((()=>d),d);s?.reportNamespaces?.addUsedNamespaces?.(p);const h=(0,o.useRef)(0),f=(0,o.useCallback)((e=>{if(!s)return md;const{bindI18n:t,bindI18nStore:r}=a,n=()=>{h.current+=1,e()};return t&&s.on(t,n),r&&s.store.on(r,n),()=>{t&&t.split(" ").forEach((e=>s.off(e,n))),r&&r.split(" ").forEach((e=>s.store.off(e,n)))}}),[s,a]),m=(0,o.useRef)(),g=(0,o.useCallback)((()=>{if(!s)return fd;const e=!(!s.isInitialized&&!s.initializedStoreOnce)&&p.every((e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(Xu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,s,a))),r=t.lng||s.language,n=h.current,i=m.current;if(i&&i.ready===e&&i.lng===r&&i.keyPrefix===c&&i.revision===n)return i;const o={t:s.getFixedT(r,"fallback"===a.nsMode?p:p[0],c),ready:e,lng:r,keyPrefix:c,revision:n};return m.current=o,o}),[s,p,c,a,t.lng]),[v,y]=(0,o.useState)(0),{t:b,ready:x}=hd.useSyncExternalStore(f,g,g);(0,o.useEffect)((()=>{if(s&&!x&&!l){const e=()=>y((e=>e+1));t.lng?Qu(s,t.lng,p,e):Ju(s,p,e)}}),[s,t.lng,p,x,l,v]);const w=s||{},C=(0,o.useRef)(null),_=(0,o.useRef)(),k=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const r=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(r,"__original"))try{Object.defineProperty(r,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return r},S=(0,o.useMemo)((()=>{const e=w,t=e?.language;let r=e;e&&(C.current&&C.current.__original===e?_.current!==t?(r=k(e),C.current=r,_.current=t):r=C.current:(r=k(e),C.current=r,_.current=t));const n=[b,r,x];return n.t=b,n.i18n=r,n.ready=x,n}),[b,w,x,w.resolvedLanguage,w.language,w.languages]);if(s&&l&&!x)throw new Promise((e=>{const r=()=>e();t.lng?Qu(s,t.lng,p,r):Ju(s,p,r)}));return S};function vd(e){if("undefined"==typeof window)return e;const t=o.useRef(null);return o.useLayoutEffect((()=>{t.current=e})),o.useCallback(((...e)=>{var r;null===(r=t.current)||void 0===r||r.call(t,...e)}),[])}const yd={},bd={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function xd({isOpen:e,popupId:t,variant:r}){return{..."popover"===r?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===r?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function wd(e){return{...xd(e),onClick:e.open,onTouchStart:e.open}}function Cd({isOpen:e,anchorEl:t,anchorPosition:r,close:n,popupId:i,onMouseLeave:o,disableAutoFocus:s,_openEventType:a}){return{id:i,anchorEl:t,anchorPosition:r,anchorReference:"contextmenu"===a?"anchorPosition":"anchorEl",open:e,onClose:n,onMouseLeave:o,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function _d(e,t){const{anchorEl:r,_childPopupState:n}=t;return kd(r,e)||kd(function(e,{popupId:t}){if(!t)return null;const r="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof r.getElementById?r.getElementById(t):null}(e,t),e)||null!=n&&_d(e,n)}function kd(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}let Sd=0;var Ad,Ed,Rd={exports:{}},Id={};function Od(e){return"string"==typeof e}function Md(e,t,r){return void 0===e||Od(e)?t:u({},t,{ownerState:u({},t.ownerState,r)})}Ed||(Ed=1,Rd.exports=function(){if(Ad)return Id;Ad=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case n:case o:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case a:case c:case h:case p:case s:return e;default:return f}}case r:return f}}}return e=Symbol.for("react.module.reference"),Id.ContextConsumer=a,Id.ContextProvider=s,Id.Element=t,Id.ForwardRef=c,Id.Fragment=n,Id.Lazy=h,Id.Memo=p,Id.Portal=r,Id.Profiler=o,Id.StrictMode=i,Id.Suspense=u,Id.SuspenseList=d,Id.isAsyncMode=function(){return!1},Id.isConcurrentMode=function(){return!1},Id.isContextConsumer=function(e){return m(e)===a},Id.isContextProvider=function(e){return m(e)===s},Id.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Id.isForwardRef=function(e){return m(e)===c},Id.isFragment=function(e){return m(e)===n},Id.isLazy=function(e){return m(e)===h},Id.isMemo=function(e){return m(e)===p},Id.isPortal=function(e){return m(e)===r},Id.isProfiler=function(e){return m(e)===o},Id.isStrictMode=function(e){return m(e)===i},Id.isSuspense=function(e){return m(e)===u},Id.isSuspenseList=function(e){return m(e)===d},Id.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===o||t===i||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===s||t.$$typeof===a||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Id.typeOf=m,Id}()),Rd.exports;const Td=o.createContext({disableDefaultClasses:!1});function Ld(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Pd(e,t,r){return"function"==typeof e?e(t,r):e}function jd(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Nd(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Dd(e,t){var r,n;return o.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)}function Bd(e){return e&&e.ownerDocument||document}function Fd(e){return Bd(e).defaultView||window}(b.element,()=>null).isRequired=(b.element.isRequired,()=>null);let $d=0;const zd=o["useId".toString()];function Ud(e){if(void 0!==zd){const t=zd();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&($d+=1,r(`mui-${$d}`))}),[t]),n}(e)}function Wd({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=o.useRef(void 0!==e),[s,a]=o.useState(t);return[i?e:s,o.useCallback((e=>{i||a(e)}),[])]}function qd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Vd=e=>{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current};function Hd(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}function Gd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const e=w(null==r?void 0:r.className,o,null==i?void 0:i.className,null==n?void 0:n.className),t=u({},null==r?void 0:r.style,null==i?void 0:i.style,null==n?void 0:n.style),s=u({},r,i,n);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=Ld(u({},i,n)),a=Hd(n),l=Hd(i),c=t(s),d=w(null==c?void 0:c.className,null==r?void 0:r.className,o,null==i?void 0:i.className,null==n?void 0:n.className),p=u({},null==c?void 0:c.style,null==r?void 0:r.style,null==i?void 0:i.style,null==n?void 0:n.style),h=u({},c,r,l,a);return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}const Zd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Kd(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=c(e,Zd),a=o?{}:Pd(n,i),{props:l,internalRef:d}=Gd(u({},s,{externalSlotProps:a}));return Md(r,u({},l,{ref:bs(d,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i)}const Xd=o.createContext({});function Yd(e){return Kn("MuiList",e)}No("MuiList",["root","padding","dense","subheader"]);const Jd=["children","className","component","dense","disablePadding","subheader"],Qd=Oi("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>u({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ep=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiList"}),{children:n,className:s,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:p}=r,h=c(r,Jd),f=o.useMemo((()=>({dense:l})),[l]),m=u({},r,{component:a,dense:l,disablePadding:d}),g=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return C({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},Yd,t)})(m);return(0,i.jsx)(Xd.Provider,{value:f,children:(0,i.jsxs)(Qd,u({as:a,className:w(g.root,s),ref:t,ownerState:m},h,{children:[p,n]}))})})),tp=ep,rp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function np(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ip(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function op(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function sp(e,t,r,n,i,o){let s=!1,a=i(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&op(a,o)&&!t)return a.focus(),!0;a=i(e,a,r)}return!1}const ap=o.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:h,variant:f="selectedMenu"}=e,m=c(e,rp),g=o.useRef(null),v=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xs((()=>{n&&g.current.focus()}),[n]),o.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&r){const r=`${qd(Bd(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,g.current.style.width=`calc(100% + ${r})`}return g.current}})),[]);const y=bs(g,t);let b=-1;o.Children.forEach(a,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===b)&&(b=t),b===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))):b===t&&(b+=1,b>=a.length&&(b=-1))}));const x=o.Children.map(a,((e,t)=>{if(t===b){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===f&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,i.jsx)(tp,u({role:"menu",ref:y,className:l,onKeyDown:e=>{const t=g.current,r=e.key,n=Bd(t).activeElement;if("ArrowDown"===r)e.preventDefault(),sp(t,n,p,d,np);else if("ArrowUp"===r)e.preventDefault(),sp(t,n,p,d,ip);else if("Home"===r)e.preventDefault(),sp(t,null,p,d,np);else if("End"===r)e.preventDefault(),sp(t,null,p,d,ip);else if(1===r.length){const i=v.current,o=r.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(o);const a=n&&!i.repeating&&op(n,i);i.previousKeyMatched&&(a||sp(t,n,!1,d,np,i))?e.preventDefault():i.previousKeyMatched=!1}h&&h(e)},tabIndex:n?0:-1},m,{children:x}))})),lp=ap;function cp(e,t){var r,n;const{timeout:i,easing:o,style:s={}}=e;return{duration:null!=(r=s.transitionDuration)?r:"number"==typeof i?i:i[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"==typeof o?o[t.mode]:o,delay:s.transitionDelay}}const up=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dp(e){return`scale(${e}, ${e**2})`}const pp={entering:{opacity:1,transform:dp(1)},entered:{opacity:1,transform:"none"}},hp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fp=o.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:s,easing:a,in:l,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,style:v,timeout:y="auto",TransitionComponent:b=Ws}=e,x=c(e,up),w=Ss(),C=o.useRef(),_=jo(),k=o.useRef(null),S=bs(k,s.ref,t),A=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},E=A(h),R=A(((e,t)=>{const{duration:r,delay:n,easing:i}=cp({style:v,timeout:y,easing:a},{mode:"enter"});let o;"auto"===y?(o=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=o):o=r,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:n}),_.transitions.create("transform",{duration:hp?o:.666*o,delay:n,easing:i})].join(","),d&&d(e,t)})),I=A(p),O=A(g),M=A((e=>{const{duration:t,delay:r,easing:n}=cp({style:v,timeout:y,easing:a},{mode:"exit"});let i;"auto"===y?(i=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=i):i=t,e.style.transition=[_.transitions.create("opacity",{duration:i,delay:r}),_.transitions.create("transform",{duration:hp?i:.666*i,delay:hp?r:r||.333*i,easing:n})].join(","),e.style.opacity=0,e.style.transform=dp(.75),f&&f(e)})),T=A(m);return(0,i.jsx)(b,u({appear:n,in:l,nodeRef:k,onEnter:R,onEntered:I,onEntering:E,onExit:M,onExited:T,onExiting:O,addEndListener:e=>{"auto"===y&&w.start(C.current||0,e),r&&r(k.current,e)},timeout:"auto"===y?null:y},x,{children:(e,t)=>o.cloneElement(s,u({style:u({opacity:0,transform:dp(.75),visibility:"exited"!==e||l?void 0:"hidden"},pp[e],v,s.props.style),ref:S},t))}))}));fp.muiSupportAuto=!0;const mp=fp;function gp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vp(e){return parseInt(Fd(e).getComputedStyle(e).paddingRight,10)||0}function yp(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&gp(e,i)}))}function bp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const xp=new class{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&gp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);yp(t,e.mount,e.modalRef,n,!0);const i=bp(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=bp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Bd(e);return t.body===e?Fd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=qd(Bd(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vp(n)+e}px`;const t=Bd(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Bd(n).body;else{const t=n.parentElement,r=Fd(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=bp(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&gp(e.modalRef,t),yp(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&gp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}},wp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cp(e){const t=[],r=[];return Array.from(e.querySelectorAll(wp)).forEach(((e,n)=>{const i=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!==i&&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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function _p(){return!0}function kp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:s=!1,getTabbable:a=Cp,isEnabled:l=_p,open:c}=e,u=o.useRef(!1),d=o.useRef(null),p=o.useRef(null),h=o.useRef(null),f=o.useRef(null),m=o.useRef(!1),g=o.useRef(null),v=bs(t.ref,g),y=o.useRef(null);o.useEffect((()=>{c&&g.current&&(m.current=!r)}),[r,c]),o.useEffect((()=>{if(!c||!g.current)return;const e=Bd(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{s||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}}),[c]),o.useEffect((()=>{if(!c||!g.current)return;const e=Bd(g.current),t=t=>{y.current=t,!n&&l()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(u.current=!0,p.current&&p.current.focus())},r=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==d.current&&e.activeElement!==p.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==p.current||(r=a(g.current)),r.length>0){var i,o;const e=Boolean((null==(i=y.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,s,l,c,a]);const b=e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0};return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("div",{tabIndex:c?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:v,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,i.jsx)("div",{tabIndex:c?0:-1,onFocus:b,ref:p,"data-testid":"sentinelEnd"})]})}const Sp=o.forwardRef((function(e,t){const{children:r,container:n,disablePortal:s=!1}=e,[l,c]=o.useState(null),u=bs(o.isValidElement(r)?r.ref:null,t);if(xs((()=>{s||c(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,s]),xs((()=>{if(l&&!s)return ys(t,l),()=>{ys(t,null)}}),[t,l,s]),s){if(o.isValidElement(r)){const e={ref:u};return o.cloneElement(r,e)}return(0,i.jsx)(o.Fragment,{children:r})}return(0,i.jsx)(o.Fragment,{children:l?a.createPortal(r,l):l})})),Ap=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ep={entering:{opacity:1},entered:{opacity:1}},Rp=o.forwardRef((function(e,t){const r=jo(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:d,in:p,onEnter:h,onEntered:f,onEntering:m,onExit:g,onExited:v,onExiting:y,style:b,timeout:x=n,TransitionComponent:w=Ws}=e,C=c(e,Ap),_=o.useRef(null),k=bs(_,l.ref,t),S=e=>t=>{if(e){const r=_.current;void 0===t?e(r):e(r,t)}},A=S(m),E=S(((e,t)=>{const n=cp({style:b,timeout:x,easing:d},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),h&&h(e,t)})),R=S(f),I=S(y),O=S((e=>{const t=cp({style:b,timeout:x,easing:d},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),g&&g(e)})),M=S(v);return(0,i.jsx)(w,u({appear:a,in:p,nodeRef:_,onEnter:E,onEntered:R,onEntering:A,onExit:O,onExited:M,onExiting:I,addEndListener:e=>{s&&s(_.current,e)},timeout:x},C,{children:(e,t)=>o.cloneElement(l,u({style:u({opacity:0,visibility:"exited"!==e||p?void 0:"hidden"},Ep[e],b,l.props.style),ref:k},t))}))})),Ip=Rp;function Op(e){return Kn("MuiBackdrop",e)}No("MuiBackdrop",["root","invisible"]);const Mp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Tp=Oi("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>u({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"}))),Lp=o.forwardRef((function(e,t){var r,n,o;const s=Di({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:p={},componentsProps:h={},invisible:f=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:y=Ip,transitionDuration:b}=s,x=c(s,Mp),_=u({},s,{component:d,invisible:f}),k=(e=>{const{classes:t,invisible:r}=e;return C({root:["root",r&&"invisible"]},Op,t)})(_),S=null!=(r=g.root)?r:h.root;return(0,i.jsx)(y,u({in:m,timeout:b},x,{children:(0,i.jsx)(Tp,u({"aria-hidden":!0},S,{as:null!=(n=null!=(o=v.root)?o:p.Root)?n:d,className:w(k.root,l,null==S?void 0:S.className),ownerState:u({},_,null==S?void 0:S.ownerState),classes:k,ref:t,children:a}))}))})),Pp=Lp;function jp(e){return Kn("MuiModal",e)}No("MuiModal",["root","hidden","backdrop"]);const Np=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Dp=Oi("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>u({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Bp=Oi(Pp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Fp=o.forwardRef((function(e,t){var r,n,s,a,l,d;const p=Di({name:"MuiModal",props:e}),{BackdropComponent:h=Bp,BackdropProps:f,className:m,closeAfterTransition:g=!1,children:v,container:y,component:b,components:x={},componentsProps:_={},disableAutoFocus:k=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:A=!1,disablePortal:E=!1,disableRestoreFocus:R=!1,disableScrollLock:I=!1,hideBackdrop:O=!1,keepMounted:M=!1,onBackdropClick:T,open:L,slotProps:P,slots:j}=p,N=c(p,Np),D=u({},p,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:S,disableEscapeKeyDown:A,disablePortal:E,disableRestoreFocus:R,disableScrollLock:I,hideBackdrop:O,keepMounted:M}),{getRootProps:B,getBackdropProps:F,getTransitionProps:$,portalRef:z,isTopModal:U,exited:W,hasTransition:q}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=xp,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:p,rootRef:h}=e,f=o.useRef({}),m=o.useRef(null),g=o.useRef(null),v=bs(g,h),[y,b]=o.useState(!p),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const C=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),_=()=>{i.mount(C(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},k=ws((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Bd(m.current).body;i.add(C(),e),g.current&&_()})),S=o.useCallback((()=>i.isTopModal(C())),[i]),A=ws((e=>{m.current=e,e&&(p&&S()?_():g.current&&gp(g.current,w))})),E=o.useCallback((()=>{i.remove(C(),w)}),[w,i]);o.useEffect((()=>()=>{E()}),[E]),o.useEffect((()=>{p?k():x&&s||E()}),[p,E,x,s,k]);const R=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(r||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ld(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=u({},r,t);return u({role:"presentation"},n,{onKeyDown:R(n),ref:v})},getBackdropProps:(e={})=>u({"aria-hidden":!0},e,{onClick:I(e),open:p}),getTransitionProps:()=>({onEnter:jd((()=>{b(!1),a&&a()}),null==c?void 0:c.props.onEnter),onExited:jd((()=>{b(!0),l&&l(),s&&E()}),null==c?void 0:c.props.onExited)}),rootRef:v,portalRef:A,isTopModal:S,exited:y,hasTransition:x}}(u({},D,{rootRef:t})),V=u({},D,{exited:W}),H=(e=>{const{open:t,exited:r,classes:n}=e;return C({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jp,n)})(V),G={};if(void 0===v.props.tabIndex&&(G.tabIndex="-1"),q){const{onEnter:e,onExited:t}=$();G.onEnter=e,G.onExited=t}const Z=null!=(r=null!=(n=null==j?void 0:j.root)?n:x.Root)?r:Dp,K=null!=(s=null!=(a=null==j?void 0:j.backdrop)?a:x.Backdrop)?s:h,X=null!=(l=null==P?void 0:P.root)?l:_.root,Y=null!=(d=null==P?void 0:P.backdrop)?d:_.backdrop,J=Kd({elementType:Z,externalSlotProps:X,externalForwardedProps:N,getSlotProps:B,additionalProps:{ref:t,as:b},ownerState:V,className:w(m,null==X?void 0:X.className,null==H?void 0:H.root,!V.open&&V.exited&&(null==H?void 0:H.hidden))}),Q=Kd({elementType:K,externalSlotProps:Y,additionalProps:f,getSlotProps:e=>F(u({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:w(null==Y?void 0:Y.className,null==f?void 0:f.className,null==H?void 0:H.backdrop),ownerState:V});return M||L||q&&!W?(0,i.jsx)(Sp,{ref:z,container:y,disablePortal:E,children:(0,i.jsxs)(Z,u({},J,{children:[!O&&h?(0,i.jsx)(K,u({},Q)):null,(0,i.jsx)(kp,{disableEnforceFocus:S,disableAutoFocus:k,disableRestoreFocus:R,isEnabled:U,open:L,children:o.cloneElement(v,G)})]}))}):null})),$p=Fp;function zp(e){return Kn("MuiPopover",e)}No("MuiPopover",["root","paper"]);const Up=["onEntering"],Wp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qp=["slotProps"];function Vp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Hp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Gp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Zp(e){return"function"==typeof e?e():e}const Kp=Oi($p,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xp=Oi(zo,{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}),Yp=o.forwardRef((function(e,t){var r,n,s;const a=Di({props:e,name:"MuiPopover"}),{action:l,anchorEl:d,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:f="anchorEl",children:m,className:g,container:v,elevation:y=8,marginThreshold:b=16,open:x,PaperProps:_={},slots:k,slotProps:S,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:E=mp,transitionDuration:R="auto",TransitionProps:{onEntering:I}={},disableScrollLock:O=!1}=a,M=c(a.TransitionProps,Up),T=c(a,Wp),L=null!=(r=null==S?void 0:S.paper)?r:_,P=o.useRef(),j=bs(P,L.ref),N=u({},a,{anchorOrigin:p,anchorReference:f,elevation:y,marginThreshold:b,externalPaperSlotProps:L,transformOrigin:A,TransitionComponent:E,transitionDuration:R,TransitionProps:M}),D=(e=>{const{classes:t}=e;return C({root:["root"],paper:["paper"]},zp,t)})(N),B=o.useCallback((()=>{if("anchorPosition"===f)return h;const e=Zp(d),t=(e&&1===e.nodeType?e:Bd(P.current).body).getBoundingClientRect();return{top:t.top+Vp(t,p.vertical),left:t.left+Hp(t,p.horizontal)}}),[d,p.horizontal,p.vertical,h,f]),F=o.useCallback((e=>({vertical:Vp(e,A.vertical),horizontal:Hp(e,A.horizontal)})),[A.horizontal,A.vertical]),$=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=F(t);if("none"===f)return{top:null,left:null,transformOrigin:Gp(r)};const n=B();let i=n.top-r.vertical,o=n.left-r.horizontal;const s=i+t.height,a=o+t.width,l=Fd(Zp(d)),c=l.innerHeight-b,u=l.innerWidth-b;if(null!==b&&i<b){const e=i-b;i-=e,r.vertical+=e}else if(null!==b&&s>c){const e=s-c;i-=e,r.vertical+=e}if(null!==b&&o<b){const e=o-b;o-=e,r.horizontal+=e}else if(a>u){const e=a-u;o-=e,r.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:Gp(r)}}),[d,f,B,F,b]),[z,U]=o.useState(x),W=o.useCallback((()=>{const e=P.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,U(!0)}),[$]);o.useEffect((()=>(O&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W))),[d,O,W]),o.useEffect((()=>{x&&W()})),o.useImperativeHandle(l,(()=>x?{updatePosition:()=>{W()}}:null),[x,W]),o.useEffect((()=>{if(!x)return;const e=Nd((()=>{W()})),t=Fd(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,x,W]);let q=R;"auto"!==R||E.muiSupportAuto||(q=void 0);const V=v||(d?Bd(Zp(d)).body:void 0),H=null!=(n=null==k?void 0:k.root)?n:Kp,G=null!=(s=null==k?void 0:k.paper)?s:Xp,Z=Kd({elementType:G,externalSlotProps:u({},L,{style:z?L.style:u({},L.style,{opacity:0})}),additionalProps:{elevation:y,ref:j},ownerState:N,className:w(D.paper,null==L?void 0:L.className)}),K=Kd({elementType:H,externalSlotProps:(null==S?void 0:S.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:V,open:x},ownerState:N,className:w(D.root,g)}),{slotProps:X}=K,Y=c(K,qp);return(0,i.jsx)(H,u({},Y,!Od(H)&&{slotProps:X,disableScrollLock:O},{children:(0,i.jsx)(E,u({appear:!0,in:x,onEntering:(e,t)=>{I&&I(e,t),W()},onExited:()=>{U(!1)},timeout:q},M,{children:(0,i.jsx)(G,u({},Z,{children:m}))}))}))})),Jp=Yp;function Qp(e){return Kn("MuiMenu",e)}No("MuiMenu",["root","paper","list"]);const eh=["onEntering"],th=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rh={vertical:"top",horizontal:"right"},nh={vertical:"top",horizontal:"left"},ih=Oi(Jp,{shouldForwardProp:e=>Ii(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oh=Oi(Xp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sh=Oi(lp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ah=o.forwardRef((function(e,t){var r,n;const s=Di({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:d,disableAutoFocusItem:p=!1,MenuListProps:h={},onClose:f,open:m,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:x="selectedMenu",slots:_={},slotProps:k={}}=s,S=c(s.TransitionProps,eh),A=c(s,th),E=_o(),R=u({},s,{autoFocus:a,disableAutoFocusItem:p,MenuListProps:h,onEntering:b,PaperProps:g,transitionDuration:y,TransitionProps:S,variant:x}),I=(e=>{const{classes:t}=e;return C({root:["root"],paper:["paper"],list:["list"]},Qp,t)})(R),O=a&&!p&&m,M=o.useRef(null);let T=-1;o.Children.map(l,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===T)&&(T=t))}));const L=null!=(r=_.paper)?r:oh,P=null!=(n=k.paper)?n:g,j=Kd({elementType:_.root,externalSlotProps:k.root,ownerState:R,className:[I.root,d]}),N=Kd({elementType:L,externalSlotProps:P,ownerState:R,className:I.paper});return(0,i.jsx)(ih,u({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?rh:nh,slots:{paper:L,root:_.root},slotProps:{root:j,paper:N},open:m,ref:t,transitionDuration:y,TransitionProps:u({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),b&&b(e,t)}},S),ownerState:R},A,{classes:v,children:(0,i.jsx)(sh,u({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===T||p),autoFocusItem:O,variant:x},h,{className:w(I.list,h.className),children:l}))}))})),lh=ah;var ch=s().forwardRef(((e,t)=>{const{direction:r}=jo(),n={...e};return"rtl"===r&&(n.anchorOrigin?.horizontal&&(n.anchorOrigin={...n.anchorOrigin,horizontal:"left"===n.anchorOrigin.horizontal?"right":"left"}),n.transformOrigin?.horizontal&&(n.transformOrigin={...n.transformOrigin,horizontal:"left"===n.transformOrigin.horizontal?"right":"left"})),s().createElement(Jp,{...n,ref:t})}));const uh={elevation:6},dh=s().forwardRef(((e,t)=>s().createElement(lh,{as:ch,...uh,...e,ref:t})));dh.defaultProps=uh;var ph=dh;function hh(e){return Kn("MuiListItemIcon",e)}const fh=No("MuiListItemIcon",["root","alignItemsFlexStart"]),mh=["className"],gh=Oi("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>u({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),vh=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiListItemIcon"}),{className:n}=r,s=c(r,mh),a=u({},r,{alignItems:o.useContext(Xd).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return C({root:["root","flex-start"===t&&"alignItemsFlexStart"]},hh,r)})(a);return(0,i.jsx)(gh,u({className:w(l.root,n),ownerState:a,ref:t},s))})),yh=vh;function bh(e){return Kn("MuiListItemText",e)}const xh=No("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),wh=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ch=Oi("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${xh.primary}`]:t.primary},{[`& .${xh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>u({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),_h=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiListItemText"}),{children:n,className:s,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:h,secondaryTypographyProps:f}=r,m=c(r,wh),{dense:g}=o.useContext(Xd);let v=null!=d?d:n,y=h;const b=u({},r,{disableTypography:a,inset:l,primary:!!v,secondary:!!y,dense:g}),x=(e=>{const{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return C({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},bh,t)})(b);return null==v||v.type===ps||a||(v=(0,i.jsx)(ps,u({variant:g?"body2":"body1",className:x.primary,component:null!=p&&p.variant?void 0:"span",display:"block"},p,{children:v}))),null==y||y.type===ps||a||(y=(0,i.jsx)(ps,u({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),(0,i.jsxs)(Ch,u({className:w(x.root,s),ownerState:b,ref:t},m,{children:[v,y]}))})),kh=_h;function Sh(e){return Kn("MuiMenuItem",e)}const Ah=No("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Eh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rh=Oi(ma,{shouldForwardProp:e=>Ii(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>u({},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"}},[`&.${Ah.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ti.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ah.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ti.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ah.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ti.alpha(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})`:ti.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ah.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ah.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pc.inset}`]:{marginLeft:52},[`& .${xh.root}`]:{marginTop:0,marginBottom:0},[`& .${xh.inset}`]:{paddingLeft:36},[`& .${fh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&u({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fh.root} svg`]:{fontSize:"1.25rem"}})))),Ih=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:f,className:m}=r,g=c(r,Eh),v=o.useContext(Xd),y=o.useMemo((()=>({dense:a||v.dense||!1,disableGutters:d})),[v.dense,a,d]),b=o.useRef(null);xs((()=>{n&&b.current&&b.current.focus()}),[n]);const x=u({},r,{dense:y.dense,divider:l,disableGutters:d}),_=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:o,classes:s}=e;return u({},s,C({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},Sh,s))})(r),k=bs(b,t);let S;return r.disabled||(S=void 0!==f?f:-1),(0,i.jsx)(Xd.Provider,{value:y,children:(0,i.jsx)(Rh,u({ref:k,role:h,tabIndex:S,component:s,focusVisibleClassName:w(_.focusVisible,p),className:w(_.root,m)},g,{ownerState:x,classes:_}))})})),Oh=Ih;var Mh=s().forwardRef(((e,t)=>s().createElement(Oh,{...e,ref:t}))),Th=s().forwardRef(((e,t)=>s().createElement(yh,{...e,ref:t}))),Lh=s().forwardRef(((e,t)=>s().createElement(kh,{...e,ref:t}))),Ph=o.forwardRef(((e,t)=>o.createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 4C14 3.58579 14.3358 3.25 14.75 3.25H19.75C20.1642 3.25 20.5 3.58579 20.5 4V9C20.5 9.41421 20.1642 9.75 19.75 9.75C19.3358 9.75 19 9.41421 19 9V5.81066L10.2803 14.5303C9.98744 14.8232 9.51256 14.8232 9.21967 14.5303C8.92678 14.2374 8.92678 13.7626 9.21967 13.4697L17.9393 4.75H14.75C14.3358 4.75 14 4.41421 14 4ZM3.80546 7.05546C4.32118 6.53973 5.02065 6.25 5.75 6.25H10.75C11.1642 6.25 11.5 6.58579 11.5 7C11.5 7.41421 11.1642 7.75 10.75 7.75H5.75C5.41848 7.75 5.10054 7.8817 4.86612 8.11612C4.6317 8.35054 4.5 8.66848 4.5 9V18C4.5 18.3315 4.6317 18.6495 4.86612 18.8839C5.10054 19.1183 5.41848 19.25 5.75 19.25H14.75C15.0815 19.25 15.3995 19.1183 15.6339 18.8839C15.8683 18.6495 16 18.3315 16 18V13C16 12.5858 16.3358 12.25 16.75 12.25C17.1642 12.25 17.5 12.5858 17.5 13V18C17.5 18.7293 17.2103 19.4288 16.6945 19.9445C16.1788 20.4603 15.4793 20.75 14.75 20.75H5.75C5.02065 20.75 4.32118 20.4603 3.80546 19.9445C3.28973 19.4288 3 18.7293 3 18V9C3 8.27065 3.28973 7.57118 3.80546 7.05546Z"}))));const jh=Zu.createInstance();var Nh;jh.use((Nh=(e,t)=>r(910)(`./${e}/${t}.json`),{type:"backend",init:function(e,t,r){},read:function(e,t,r){if(Nh.length<3)try{var n=Nh(e,t);n&&"function"==typeof n.then?n.then((function(e){return r(null,e&&e.default||e)})).catch(r):r(null,n)}catch(e){r(e)}else Nh(e,t)}})).use(sd).init({lng:"en",fallbackLng:"en",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1},react:{useSuspense:!0}});var Dh=class{subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}};function Bh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fh,$h,zh=0;function Uh(e){return"__private_"+zh+++"_"+e}var Wh={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},qh=new(Fh=Uh("_provider"),$h=Uh("_providerCalled"),class{setTimeoutProvider(e){Bh(this,Fh)[Fh]=e}setTimeout(e,t){return Bh(this,Fh)[Fh].setTimeout(e,t)}clearTimeout(e){Bh(this,Fh)[Fh].clearTimeout(e)}setInterval(e,t){return Bh(this,Fh)[Fh].setInterval(e,t)}clearInterval(e){Bh(this,Fh)[Fh].clearInterval(e)}constructor(){Object.defineProperty(this,Fh,{writable:!0,value:void 0}),Object.defineProperty(this,$h,{writable:!0,value:void 0}),Bh(this,Fh)[Fh]=Wh,Bh(this,$h)[$h]=!1}}),Vh="undefined"==typeof window||"Deno"in globalThis;function Hh(){}function Gh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Zh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Kh(e,t){return"function"==typeof e?e(t):e}function Xh(e,t){return"function"==typeof e?e(t):e}function Yh(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s)if(n){if(t.queryHash!==Qh(s,t.options))return!1}else if(!tf(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function Jh(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ef(t.options.mutationKey)!==ef(o))return!1}else if(!tf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Qh(e,t){return(t?.queryKeyHashFn||ef)(e)}function ef(e){return JSON.stringify(e,((e,t)=>af(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function tf(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every((r=>tf(e[r],t[r])))}var rf=Object.prototype.hasOwnProperty;function nf(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=sf(e)&&sf(t);if(!(n||af(e)&&af(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,a=n?new Array(s):{};let l=0;for(let c=0;c<s;c++){const s=n?c:o[c],u=e[s],d=t[s];if(u===d){a[s]=u,(n?c<i:rf.call(e,s))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[s]=d;continue}const p=nf(u,d,r+1);a[s]=p,p===u&&l++}return i===s&&l===i?e:a}function of(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function sf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function af(e){if(!lf(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!lf(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function lf(e){return"[object Object]"===Object.prototype.toString.call(e)}function cf(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?nf(e,t):t}function uf(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function df(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var pf=Symbol();function hf(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==pf?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function ff(e,t){return"function"==typeof e?e(...t):!!e}function mf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gf,vf,yf,bf=0;function xf(e){return"__private_"+bf+++"_"+e}var wf=new(gf=xf("_focused"),vf=xf("_cleanup"),yf=xf("_setup"),class extends Dh{onSubscribe(){mf(this,vf)[vf]||this.setEventListener(mf(this,yf)[yf])}onUnsubscribe(){this.hasListeners()||(null==mf(this,vf)[vf]||mf(this,vf)[vf].call(this),mf(this,vf)[vf]=void 0)}setEventListener(e){mf(this,yf)[yf]=e,null==mf(this,vf)[vf]||mf(this,vf)[vf].call(this),mf(this,vf)[vf]=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){mf(this,gf)[gf]!==e&&(mf(this,gf)[gf]=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof mf(this,gf)[gf]?mf(this,gf)[gf]:"hidden"!==globalThis.document?.visibilityState}constructor(){super(),Object.defineProperty(this,gf,{writable:!0,value:void 0}),Object.defineProperty(this,vf,{writable:!0,value:void 0}),Object.defineProperty(this,yf,{writable:!0,value:void 0}),mf(this,yf)[yf]=e=>{if(!Vh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}});function Cf(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch((()=>{})),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var _f=function(e){setTimeout(e,0)},kf=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=_f;const o=n=>{t?e.push(n):i((()=>{r(n)}))};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return s},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}();function Sf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Af,Ef,Rf,If=0;function Of(e){return"__private_"+If+++"_"+e}var Mf=new(Af=Of("_online"),Ef=Of("_cleanup"),Rf=Of("_setup"),class extends Dh{onSubscribe(){Sf(this,Ef)[Ef]||this.setEventListener(Sf(this,Rf)[Rf])}onUnsubscribe(){this.hasListeners()||(null==Sf(this,Ef)[Ef]||Sf(this,Ef)[Ef].call(this),Sf(this,Ef)[Ef]=void 0)}setEventListener(e){Sf(this,Rf)[Rf]=e,null==Sf(this,Ef)[Ef]||Sf(this,Ef)[Ef].call(this),Sf(this,Ef)[Ef]=e(this.setOnline.bind(this))}setOnline(e){Sf(this,Af)[Af]!==e&&(Sf(this,Af)[Af]=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return Sf(this,Af)[Af]}constructor(){super(),Object.defineProperty(this,Af,{writable:!0,value:void 0}),Object.defineProperty(this,Ef,{writable:!0,value:void 0}),Object.defineProperty(this,Rf,{writable:!0,value:void 0}),Sf(this,Af)[Af]=!0,Sf(this,Rf)[Rf]=e=>{if(!Vh&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}});function Tf(e){return Math.min(1e3*2**e,3e4)}function Lf(e){return"online"!==(e??"online")||Mf.isOnline()}var Pf=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function jf(e){let t,r=!1,n=0;const i=Cf(),o=()=>"pending"!==i.status,s=()=>wf.isFocused()&&("always"===e.networkMode||Mf.isOnline())&&e.canRun(),a=()=>Lf(e.networkMode)&&e.canRun(),l=e=>{o()||(t?.(),i.resolve(e))},c=e=>{o()||(t?.(),i.reject(e))},u=()=>new Promise((r=>{t=e=>{(o()||s())&&r(e)},e.onPause?.()})).then((()=>{t=void 0,o()||e.onContinue?.()})),d=()=>{if(o())return;let t;const i=0===n?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch((t=>{if(o())return;const i=e.retry??(Vh?0:3),a=e.retryDelay??Tf,l="function"==typeof a?a(n,t):a,p=!0===i||"number"==typeof i&&n<i||"function"==typeof i&&i(n,t);var h;!r&&p?(n++,e.onFail?.(n,t),(h=l,new Promise((e=>{qh.setTimeout(e,h)}))).then((()=>s()?void 0:u())).then((()=>{r?c(t):d()}))):c(t)}))};return{promise:i,status:()=>i.status,cancel:t=>{if(!o()){const r=new Pf(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),i),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?d():u().then(d),i)}}function Nf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Df,Bf=0,Ff=(Df="__private_"+Bf+++"__gcTimeout",class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gh(this.gcTime)&&(Nf(this,Df)[Df]=qh.setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vh?1/0:3e5))}clearGcTimeout(){Nf(this,Df)[Df]&&(qh.clearTimeout(Nf(this,Df)[Df]),Nf(this,Df)[Df]=void 0)}constructor(){Object.defineProperty(this,Df,{writable:!0,value:void 0})}});function $f(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zf,Uf,Wf,qf,Vf,Hf,Gf,Zf,Kf,Xf=0;function Yf(e){return"__private_"+Xf+++"_"+e}var Jf=(zf=Yf("_initialState"),Uf=Yf("_revertState"),Wf=Yf("_cache"),qf=Yf("_client"),Vf=Yf("_retryer"),Hf=Yf("_defaultOptions"),Gf=Yf("_abortSignalConsumed"),Zf=Yf("_dispatch"),Kf=class extends Ff{get meta(){return this.options.meta}get promise(){return $f(this,Vf)[Vf]?.promise}setOptions(e){if(this.options={...$f(this,Hf)[Hf],...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=tm(this.options);void 0!==e.data&&(this.setState(em(e.data,e.dataUpdatedAt)),$f(this,zf)[zf]=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||$f(this,Wf)[Wf].remove(this)}setData(e,t){const r=cf(this.state.data,e,this.options);return $f(this,Zf)[Zf]({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){$f(this,Zf)[Zf]({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=$f(this,Vf)[Vf]?.promise;return $f(this,Vf)[Vf]?.cancel(e),t?t.then(Hh).catch(Hh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($f(this,zf)[zf])}isActive(){return this.observers.some((e=>!1!==Xh(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some((e=>"static"===Kh(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Zh(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),$f(this,Vf)[Vf]?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),$f(this,Vf)[Vf]?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),$f(this,Wf)[Wf].notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||($f(this,Vf)[Vf]&&($f(this,Gf)[Gf]?$f(this,Vf)[Vf].cancel({revert:!0}):$f(this,Vf)[Vf].cancelRetry()),this.scheduleGc()),$f(this,Wf)[Wf].notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$f(this,Zf)[Zf]({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==$f(this,Vf)[Vf]?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if($f(this,Vf)[Vf])return $f(this,Vf)[Vf].continueRetry(),$f(this,Vf)[Vf].promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>($f(this,Gf)[Gf]=!0,r.signal)})},i=()=>{const e=hf(this.options,t),r=(()=>{const e={client:$f(this,qf)[qf],queryKey:this.queryKey,meta:this.meta};return n(e),e})();return $f(this,Gf)[Gf]=!1,this.options.persister?this.options.persister(e,r,this):e(r)},o=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:$f(this,qf)[qf],state:this.state,fetchFn:i};return n(e),e})();this.options.behavior?.onFetch(o,this),$f(this,Uf)[Uf]=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||$f(this,Zf)[Zf]({type:"fetch",meta:o.fetchOptions?.meta}),$f(this,Vf)[Vf]=jf({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof Pf&&e.revert&&this.setState({...$f(this,Uf)[Uf],fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{$f(this,Zf)[Zf]({type:"failed",failureCount:e,error:t})},onPause:()=>{$f(this,Zf)[Zf]({type:"pause"})},onContinue:()=>{$f(this,Zf)[Zf]({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const e=await $f(this,Vf)[Vf].start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),$f(this,Wf)[Wf].config.onSuccess?.(e,this),$f(this,Wf)[Wf].config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Pf){if(e.silent)return $f(this,Vf)[Vf].promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw $f(this,Zf)[Zf]({type:"error",error:e}),$f(this,Wf)[Wf].config.onError?.(e,this),$f(this,Wf)[Wf].config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}constructor(e){super(),Object.defineProperty(this,Zf,{value:rm}),Object.defineProperty(this,zf,{writable:!0,value:void 0}),Object.defineProperty(this,Uf,{writable:!0,value:void 0}),Object.defineProperty(this,Wf,{writable:!0,value:void 0}),Object.defineProperty(this,qf,{writable:!0,value:void 0}),Object.defineProperty(this,Vf,{writable:!0,value:void 0}),Object.defineProperty(this,Hf,{writable:!0,value:void 0}),Object.defineProperty(this,Gf,{writable:!0,value:void 0}),$f(this,Gf)[Gf]=!1,$f(this,Hf)[Hf]=e.defaultOptions,this.setOptions(e.options),this.observers=[],$f(this,qf)[qf]=e.client,$f(this,Wf)[Wf]=$f(this,qf)[qf].getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,$f(this,zf)[zf]=tm(this.options),this.state=e.state??$f(this,zf)[zf],this.scheduleGc()}},Kf);function Qf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lf(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function em(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tm(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function rm(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Qf(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...em(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $f(this,Uf)[Uf]=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),kf.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),$f(this,Wf)[Wf].notify({query:this,type:"updated",action:e})}))}function nm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var im,om,sm,am,lm,cm,um,dm,pm,hm,fm,mm,gm,vm,ym,bm,xm,wm,Cm,_m,km,Sm,Am,Em,Rm,Im=0;function Om(e){return"__private_"+Im+++"_"+e}var Mm=(im=Om("_client"),om=Om("_currentQuery"),sm=Om("_currentQueryInitialState"),am=Om("_currentResult"),lm=Om("_currentResultState"),cm=Om("_currentResultOptions"),um=Om("_currentThenable"),dm=Om("_selectError"),pm=Om("_selectFn"),hm=Om("_selectResult"),fm=Om("_lastQueryWithDefinedData"),mm=Om("_staleTimeoutId"),gm=Om("_refetchIntervalId"),vm=Om("_currentRefetchInterval"),ym=Om("_trackedProps"),bm=Om("_executeFetch"),xm=Om("_updateStaleTimeout"),wm=Om("_computeRefetchInterval"),Cm=Om("_updateRefetchInterval"),_m=Om("_updateTimers"),km=Om("_clearStaleTimeout"),Sm=Om("_clearRefetchInterval"),Am=Om("_updateQuery"),Em=Om("_notify"),Rm=class extends Dh{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(nm(this,om)[om].addObserver(this),Tm(nm(this,om)[om],this.options)?nm(this,bm)[bm]():this.updateResult(),nm(this,_m)[_m]())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lm(nm(this,om)[om],this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lm(nm(this,om)[om],this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,nm(this,km)[km](),nm(this,Sm)[Sm](),nm(this,om)[om].removeObserver(this)}setOptions(e){const t=this.options,r=nm(this,om)[om];if(this.options=nm(this,im)[im].defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Xh(this.options.enabled,nm(this,om)[om]))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");nm(this,Am)[Am](),nm(this,om)[om].setOptions(this.options),t._defaulted&&!of(this.options,t)&&nm(this,im)[im].getQueryCache().notify({type:"observerOptionsUpdated",query:nm(this,om)[om],observer:this});const n=this.hasListeners();n&&Pm(nm(this,om)[om],r,this.options,t)&&nm(this,bm)[bm](),this.updateResult(),!n||nm(this,om)[om]===r&&Xh(this.options.enabled,nm(this,om)[om])===Xh(t.enabled,nm(this,om)[om])&&Kh(this.options.staleTime,nm(this,om)[om])===Kh(t.staleTime,nm(this,om)[om])||nm(this,xm)[xm]();const i=nm(this,wm)[wm]();!n||nm(this,om)[om]===r&&Xh(this.options.enabled,nm(this,om)[om])===Xh(t.enabled,nm(this,om)[om])&&i===nm(this,vm)[vm]||nm(this,Cm)[Cm](i)}getOptimisticResult(e){const t=nm(this,im)[im].getQueryCache().build(nm(this,im)[im],e),r=this.createResult(t,e);return n=r,!of(this.getCurrentResult(),n)&&(nm(this,am)[am]=r,nm(this,cm)[cm]=this.options,nm(this,lm)[lm]=nm(this,om)[om].state),r;var n}getCurrentResult(){return nm(this,am)[am]}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==nm(this,um)[um].status||nm(this,um)[um].reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){nm(this,ym)[ym].add(e)}getCurrentQuery(){return nm(this,om)[om]}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=nm(this,im)[im].defaultQueryOptions(e),r=nm(this,im)[im].getQueryCache().build(nm(this,im)[im],t);return r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return nm(this,bm)[bm]({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),nm(this,am)[am])))}createResult(e,t){const r=nm(this,om)[om],n=this.options,i=nm(this,am)[am],o=nm(this,lm)[lm],s=nm(this,cm)[cm],a=e!==r?e.state:nm(this,sm)[sm],{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Tm(e,t),s=i&&Pm(e,r,t,n);(o||s)&&(u={...u,...Qf(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:p,errorUpdatedAt:h,status:f}=u;c=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===f){let e;i?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=i.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(nm(this,fm)[fm]?.state.data,nm(this,fm)[fm]):t.placeholderData,void 0!==e&&(f="success",c=cf(i?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!m)if(i&&c===o?.data&&t.select===nm(this,pm)[pm])c=nm(this,hm)[hm];else try{nm(this,pm)[pm]=t.select,c=t.select(c),c=cf(i?.data,c,t),nm(this,hm)[hm]=c,nm(this,dm)[dm]=null}catch(e){nm(this,dm)[dm]=e}nm(this,dm)[dm]&&(p=nm(this,dm)[dm],c=nm(this,hm)[hm],h=Date.now(),f="error");const g="fetching"===u.fetchStatus,v="pending"===f,y="error"===f,b=v&&g,x=void 0!==c,w={status:f,fetchStatus:u.fetchStatus,isPending:v,isSuccess:"success"===f,isError:y,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>a.dataUpdateCount||u.errorUpdateCount>a.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:y&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&x,isStale:jm(e,t),refetch:this.refetch,promise:nm(this,um)[um],isEnabled:!1!==Xh(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==w.data,n="error"===w.status&&!t,i=e=>{n?e.reject(w.error):t&&e.resolve(w.data)},o=()=>{const e=nm(this,um)[um]=w.promise=Cf();i(e)},s=nm(this,um)[um];switch(s.status){case"pending":e.queryHash===r.queryHash&&i(s);break;case"fulfilled":(n||w.data!==s.value)&&o();break;case"rejected":n&&w.error===s.reason||o()}}return w}updateResult(){const e=nm(this,am)[am],t=this.createResult(nm(this,om)[om],this.options);nm(this,lm)[lm]=nm(this,om)[om].state,nm(this,cm)[cm]=this.options,void 0!==nm(this,lm)[lm].data&&(nm(this,fm)[fm]=nm(this,om)[om]),of(t,e)||(nm(this,am)[am]=t,nm(this,Em)[Em]({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!nm(this,ym)[ym].size)return!0;const n=new Set(r??nm(this,ym)[ym]);return this.options.throwOnError&&n.add("error"),Object.keys(nm(this,am)[am]).some((t=>{const r=t;return nm(this,am)[am][r]!==e[r]&&n.has(r)}))})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&nm(this,_m)[_m]()}constructor(e,t){super(),Object.defineProperty(this,bm,{value:Nm}),Object.defineProperty(this,xm,{value:Dm}),Object.defineProperty(this,wm,{value:Bm}),Object.defineProperty(this,Cm,{value:Fm}),Object.defineProperty(this,_m,{value:$m}),Object.defineProperty(this,km,{value:zm}),Object.defineProperty(this,Sm,{value:Um}),Object.defineProperty(this,Am,{value:Wm}),Object.defineProperty(this,Em,{value:qm}),Object.defineProperty(this,im,{writable:!0,value:void 0}),Object.defineProperty(this,om,{writable:!0,value:void 0}),Object.defineProperty(this,sm,{writable:!0,value:void 0}),Object.defineProperty(this,am,{writable:!0,value:void 0}),Object.defineProperty(this,lm,{writable:!0,value:void 0}),Object.defineProperty(this,cm,{writable:!0,value:void 0}),Object.defineProperty(this,um,{writable:!0,value:void 0}),Object.defineProperty(this,dm,{writable:!0,value:void 0}),Object.defineProperty(this,pm,{writable:!0,value:void 0}),Object.defineProperty(this,hm,{writable:!0,value:void 0}),Object.defineProperty(this,fm,{writable:!0,value:void 0}),Object.defineProperty(this,mm,{writable:!0,value:void 0}),Object.defineProperty(this,gm,{writable:!0,value:void 0}),Object.defineProperty(this,vm,{writable:!0,value:void 0}),Object.defineProperty(this,ym,{writable:!0,value:void 0}),nm(this,om)[om]=void 0,nm(this,sm)[sm]=void 0,nm(this,am)[am]=void 0,nm(this,ym)[ym]=new Set,this.options=t,nm(this,im)[im]=e,nm(this,dm)[dm]=null,nm(this,um)[um]=Cf(),this.bindMethods(),this.setOptions(t)}},Rm);function Tm(e,t){return function(e,t){return!1!==Xh(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Lm(e,t,t.refetchOnMount)}function Lm(e,t,r){if(!1!==Xh(t.enabled,e)&&"static"!==Kh(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&jm(e,t)}return!1}function Pm(e,t,r,n){return(e!==t||!1===Xh(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&jm(e,r)}function jm(e,t){return!1!==Xh(t.enabled,e)&&e.isStaleByTime(Kh(t.staleTime,e))}function Nm(e){nm(this,Am)[Am]();let t=nm(this,om)[om].fetch(this.options,e);return e?.throwOnError||(t=t.catch(Hh)),t}function Dm(){nm(this,km)[km]();const e=Kh(this.options.staleTime,nm(this,om)[om]);if(Vh||nm(this,am)[am].isStale||!Gh(e))return;const t=Zh(nm(this,am)[am].dataUpdatedAt,e)+1;nm(this,mm)[mm]=qh.setTimeout((()=>{nm(this,am)[am].isStale||this.updateResult()}),t)}function Bm(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(nm(this,om)[om]):this.options.refetchInterval)??!1}function Fm(e){nm(this,Sm)[Sm](),nm(this,vm)[vm]=e,!Vh&&!1!==Xh(this.options.enabled,nm(this,om)[om])&&Gh(nm(this,vm)[vm])&&0!==nm(this,vm)[vm]&&(nm(this,gm)[gm]=qh.setInterval((()=>{(this.options.refetchIntervalInBackground||wf.isFocused())&&nm(this,bm)[bm]()}),nm(this,vm)[vm]))}function $m(){nm(this,xm)[xm](),nm(this,Cm)[Cm](nm(this,wm)[wm]())}function zm(){nm(this,mm)[mm]&&(qh.clearTimeout(nm(this,mm)[mm]),nm(this,mm)[mm]=void 0)}function Um(){nm(this,gm)[gm]&&(qh.clearInterval(nm(this,gm)[gm]),nm(this,gm)[gm]=void 0)}function Wm(){const e=nm(this,im)[im].getQueryCache().build(nm(this,im)[im],this.options);if(e===nm(this,om)[om])return;const t=nm(this,om)[om];nm(this,om)[om]=e,nm(this,sm)[sm]=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function qm(e){kf.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(nm(this,am)[am])})),nm(this,im)[im].getQueryCache().notify({query:nm(this,om)[om],type:"observerResultsUpdated"})}))}function Vm(e){return{onFetch:(t,r)=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=hf(t.options,t.fetchOptions),u=async(e,n,i)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const o=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};return(e=>{!function(e,r,n){let i,o=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t.signal),o||(o=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)})}(e,0,(()=>r=!0))})(e),e})(),s=await c(o),{maxPages:a}=t.options,l=i?df:uf;return{pages:l(e.pages,s,a),pageParams:l(e.pageParams,n,a)}};if(i&&o.length){const e="backward"===i,t={pages:o,pageParams:s},r=(e?Gm:Hm)(n,t);a=await u(t,r,e)}else{const t=e??o.length;do{const e=0===l?s[0]??n.initialPageParam:Hm(n,a);if(l>0&&null==e)break;a=await u(a,e),l++}while(l<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function Hm(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Gm(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function Zm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Km,Xm,Ym,Jm,Qm,eg,tg=0;function rg(e){return"__private_"+tg+++"_"+e}var ng=(Km=rg("_client"),Xm=rg("_observers"),Ym=rg("_mutationCache"),Jm=rg("_retryer"),Qm=rg("_dispatch"),eg=class extends Ff{setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Zm(this,Xm)[Xm].includes(e)||(Zm(this,Xm)[Xm].push(e),this.clearGcTimeout(),Zm(this,Ym)[Ym].notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Zm(this,Xm)[Xm]=Zm(this,Xm)[Xm].filter((t=>t!==e)),this.scheduleGc(),Zm(this,Ym)[Ym].notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Zm(this,Xm)[Xm].length||("pending"===this.state.status?this.scheduleGc():Zm(this,Ym)[Ym].remove(this))}continue(){return Zm(this,Jm)[Jm]?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{Zm(this,Qm)[Qm]({type:"continue"})},r={client:Zm(this,Km)[Km],meta:this.options.meta,mutationKey:this.options.mutationKey};Zm(this,Jm)[Jm]=jf({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Zm(this,Qm)[Qm]({type:"failed",failureCount:e,error:t})},onPause:()=>{Zm(this,Qm)[Qm]({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Zm(this,Ym)[Ym].canRun(this)});const n="pending"===this.state.status,i=!Zm(this,Jm)[Jm].canStart();try{if(n)t();else{Zm(this,Qm)[Qm]({type:"pending",variables:e,isPaused:i}),Zm(this,Ym)[Ym].config.onMutate&&await Zm(this,Ym)[Ym].config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&Zm(this,Qm)[Qm]({type:"pending",context:t,variables:e,isPaused:i})}const o=await Zm(this,Jm)[Jm].start();return await(Zm(this,Ym)[Ym].config.onSuccess?.(o,e,this.state.context,this,r)),await(this.options.onSuccess?.(o,e,this.state.context,r)),await(Zm(this,Ym)[Ym].config.onSettled?.(o,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(o,null,e,this.state.context,r)),Zm(this,Qm)[Qm]({type:"success",data:o}),o}catch(t){try{await(Zm(this,Ym)[Ym].config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(Zm(this,Ym)[Ym].config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw Zm(this,Qm)[Qm]({type:"error",error:t}),t}finally{Zm(this,Ym)[Ym].runNext(this)}}constructor(e){super(),Object.defineProperty(this,Qm,{value:ig}),Object.defineProperty(this,Km,{writable:!0,value:void 0}),Object.defineProperty(this,Xm,{writable:!0,value:void 0}),Object.defineProperty(this,Ym,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Zm(this,Km)[Km]=e.client,this.mutationId=e.mutationId,Zm(this,Ym)[Ym]=e.mutationCache,Zm(this,Xm)[Xm]=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}},eg);function ig(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),kf.batch((()=>{Zm(this,Xm)[Xm].forEach((t=>{t.onMutationUpdate(e)})),Zm(this,Ym)[Ym].notify({mutation:this,type:"updated",action:e})}))}function og(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sg,ag,lg,cg=0;function ug(e){return"__private_"+cg+++"_"+e}var dg=(sg=ug("_mutations"),ag=ug("_scopes"),lg=ug("_mutationId"),class extends Dh{build(e,t,r){const n=new ng({client:e,mutationCache:this,mutationId:++og(this,lg)[lg],options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){og(this,sg)[sg].add(e);const t=pg(e);if("string"==typeof t){const r=og(this,ag)[ag].get(t);r?r.push(e):og(this,ag)[ag].set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(og(this,sg)[sg].delete(e)){const t=pg(e);if("string"==typeof t){const r=og(this,ag)[ag].get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&og(this,ag)[ag].delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=pg(e);if("string"==typeof t){const r=og(this,ag)[ag].get(t),n=r?.find((e=>"pending"===e.state.status));return!n||n===e}return!0}runNext(e){const t=pg(e);if("string"==typeof t){const r=og(this,ag)[ag].get(t)?.find((t=>t!==e&&t.state.isPaused));return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){kf.batch((()=>{og(this,sg)[sg].forEach((e=>{this.notify({type:"removed",mutation:e})})),og(this,sg)[sg].clear(),og(this,ag)[ag].clear()}))}getAll(){return Array.from(og(this,sg)[sg])}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Jh(t,e)))}findAll(e={}){return this.getAll().filter((t=>Jh(e,t)))}notify(e){kf.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return kf.batch((()=>Promise.all(e.map((e=>e.continue().catch(Hh))))))}constructor(e={}){super(),Object.defineProperty(this,sg,{writable:!0,value:void 0}),Object.defineProperty(this,ag,{writable:!0,value:void 0}),Object.defineProperty(this,lg,{writable:!0,value:void 0}),this.config=e,og(this,sg)[sg]=new Set,og(this,ag)[ag]=new Map,og(this,lg)[lg]=0}});function pg(e){return e.options.scope?.id}function hg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fg,mg,gg,vg,yg,bg,xg=0;function wg(e){return"__private_"+xg+++"_"+e}var Cg=(fg=wg("_client"),mg=wg("_currentResult"),gg=wg("_currentMutation"),vg=wg("_mutateOptions"),yg=wg("_updateResult"),bg=wg("_notify"),class extends Dh{bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=hg(this,fg)[fg].defaultMutationOptions(e),of(this.options,t)||hg(this,fg)[fg].getMutationCache().notify({type:"observerOptionsUpdated",mutation:hg(this,gg)[gg],observer:this}),t?.mutationKey&&this.options.mutationKey&&ef(t.mutationKey)!==ef(this.options.mutationKey)?this.reset():"pending"===hg(this,gg)[gg]?.state.status&&hg(this,gg)[gg].setOptions(this.options)}onUnsubscribe(){this.hasListeners()||hg(this,gg)[gg]?.removeObserver(this)}onMutationUpdate(e){hg(this,yg)[yg](),hg(this,bg)[bg](e)}getCurrentResult(){return hg(this,mg)[mg]}reset(){hg(this,gg)[gg]?.removeObserver(this),hg(this,gg)[gg]=void 0,hg(this,yg)[yg](),hg(this,bg)[bg]()}mutate(e,t){return hg(this,vg)[vg]=t,hg(this,gg)[gg]?.removeObserver(this),hg(this,gg)[gg]=hg(this,fg)[fg].getMutationCache().build(hg(this,fg)[fg],this.options),hg(this,gg)[gg].addObserver(this),hg(this,gg)[gg].execute(e)}constructor(e,t){super(),Object.defineProperty(this,yg,{value:_g}),Object.defineProperty(this,bg,{value:kg}),Object.defineProperty(this,fg,{writable:!0,value:void 0}),Object.defineProperty(this,mg,{writable:!0,value:void 0}),Object.defineProperty(this,gg,{writable:!0,value:void 0}),Object.defineProperty(this,vg,{writable:!0,value:void 0}),hg(this,mg)[mg]=void 0,hg(this,fg)[fg]=e,this.setOptions(t),this.bindMethods(),hg(this,yg)[yg]()}});function _g(){const e=hg(this,gg)[gg]?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};hg(this,mg)[mg]={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}function kg(e){kf.batch((()=>{if(hg(this,vg)[vg]&&this.hasListeners()){const t=hg(this,mg)[mg].variables,r=hg(this,mg)[mg].context,n={client:hg(this,fg)[fg],meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{hg(this,vg)[vg].onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{hg(this,vg)[vg].onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{hg(this,vg)[vg].onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{hg(this,vg)[vg].onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach((e=>{e(hg(this,mg)[mg])}))}))}function Sg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ag,Eg=0,Rg=(Ag="__private_"+Eg+++"__queries",class extends Dh{build(e,t,r){const n=t.queryKey,i=t.queryHash??Qh(n,t);let o=this.get(i);return o||(o=new Jf({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){Sg(this,Ag)[Ag].has(e.queryHash)||(Sg(this,Ag)[Ag].set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Sg(this,Ag)[Ag].get(e.queryHash);t&&(e.destroy(),t===e&&Sg(this,Ag)[Ag].delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){kf.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return Sg(this,Ag)[Ag].get(e)}getAll(){return[...Sg(this,Ag)[Ag].values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Yh(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Yh(e,t))):t}notify(e){kf.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){kf.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){kf.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}constructor(e={}){super(),Object.defineProperty(this,Ag,{writable:!0,value:void 0}),this.config=e,Sg(this,Ag)[Ag]=new Map}});function Ig(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Og,Mg,Tg,Lg,Pg,jg,Ng,Dg,Bg=0;function Fg(e){return"__private_"+Bg+++"_"+e}var $g=(Og=Fg("_queryCache"),Mg=Fg("_mutationCache"),Tg=Fg("_defaultOptions"),Lg=Fg("_queryDefaults"),Pg=Fg("_mutationDefaults"),jg=Fg("_mountCount"),Ng=Fg("_unsubscribeFocus"),Dg=Fg("_unsubscribeOnline"),class{mount(){Ig(this,jg)[jg]++,1===Ig(this,jg)[jg]&&(Ig(this,Ng)[Ng]=wf.subscribe((async e=>{e&&(await this.resumePausedMutations(),Ig(this,Og)[Og].onFocus())})),Ig(this,Dg)[Dg]=Mf.subscribe((async e=>{e&&(await this.resumePausedMutations(),Ig(this,Og)[Og].onOnline())})))}unmount(){Ig(this,jg)[jg]--,0===Ig(this,jg)[jg]&&(null==Ig(this,Ng)[Ng]||Ig(this,Ng)[Ng].call(this),Ig(this,Ng)[Ng]=void 0,null==Ig(this,Dg)[Dg]||Ig(this,Dg)[Dg].call(this),Ig(this,Dg)[Dg]=void 0)}isFetching(e){return Ig(this,Og)[Og].findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ig(this,Mg)[Mg].findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return Ig(this,Og)[Og].get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Ig(this,Og)[Og].build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Kh(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Ig(this,Og)[Og].findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=Ig(this,Og)[Og].get(n.queryHash),o=i?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,o);if(void 0!==s)return Ig(this,Og)[Og].build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return kf.batch((()=>Ig(this,Og)[Og].findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return Ig(this,Og)[Og].get(t.queryHash)?.state}removeQueries(e){const t=Ig(this,Og)[Og];kf.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=Ig(this,Og)[Og];return kf.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries({type:"active",...e},t))))}cancelQueries(e,t={}){const r={revert:!0,...t},n=kf.batch((()=>Ig(this,Og)[Og].findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(Hh).catch(Hh)}invalidateQueries(e,t={}){return kf.batch((()=>(Ig(this,Og)[Og].findAll(e).forEach((e=>{e.invalidate()})),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=kf.batch((()=>Ig(this,Og)[Og].findAll(e).filter((e=>!e.isDisabled()&&!e.isStatic())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Hh)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(Hh)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=Ig(this,Og)[Og].build(this,t);return r.isStaleByTime(Kh(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Hh).catch(Hh)}fetchInfiniteQuery(e){return e.behavior=Vm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Hh).catch(Hh)}ensureInfiniteQueryData(e){return e.behavior=Vm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mf.isOnline()?Ig(this,Mg)[Mg].resumePausedMutations():Promise.resolve()}getQueryCache(){return Ig(this,Og)[Og]}getMutationCache(){return Ig(this,Mg)[Mg]}getDefaultOptions(){return Ig(this,Tg)[Tg]}setDefaultOptions(e){Ig(this,Tg)[Tg]=e}setQueryDefaults(e,t){Ig(this,Lg)[Lg].set(ef(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ig(this,Lg)[Lg].values()],r={};return t.forEach((t=>{tf(e,t.queryKey)&&Object.assign(r,t.defaultOptions)})),r}setMutationDefaults(e,t){Ig(this,Pg)[Pg].set(ef(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ig(this,Pg)[Pg].values()],r={};return t.forEach((t=>{tf(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ig(this,Tg)[Tg].queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===pf&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...Ig(this,Tg)[Tg].mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ig(this,Og)[Og].clear(),Ig(this,Mg)[Mg].clear()}constructor(e={}){Object.defineProperty(this,Og,{writable:!0,value:void 0}),Object.defineProperty(this,Mg,{writable:!0,value:void 0}),Object.defineProperty(this,Tg,{writable:!0,value:void 0}),Object.defineProperty(this,Lg,{writable:!0,value:void 0}),Object.defineProperty(this,Pg,{writable:!0,value:void 0}),Object.defineProperty(this,jg,{writable:!0,value:void 0}),Object.defineProperty(this,Ng,{writable:!0,value:void 0}),Object.defineProperty(this,Dg,{writable:!0,value:void 0}),Ig(this,Og)[Og]=e.queryCache||new Rg,Ig(this,Mg)[Mg]=e.mutationCache||new dg,Ig(this,Tg)[Tg]=e.defaultOptions||{},Ig(this,Lg)[Lg]=new Map,Ig(this,Pg)[Pg]=new Map,Ig(this,jg)[jg]=0}}),zg=o.createContext(void 0),Ug=e=>{const t=o.useContext(zg);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Wg=({client:e,children:t})=>(o.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),(0,i.jsx)(zg.Provider,{value:e,children:t})),qg=o.createContext(!1),Vg=o.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Hg=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));function Gg(e,t){return function(e,t,r){const n=o.useContext(qg),i=o.useContext(Vg),s=Ug(r),a=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const l=s.getQueryCache().get(a.queryHash);a._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(a),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?ff(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(a,i,l),(e=>{o.useEffect((()=>{e.clearReset()}),[e])})(i);const c=!s.getQueryCache().get(a.queryHash),[u]=o.useState((()=>new t(s,a))),d=u.getOptimisticResult(a),p=!n&&!1!==e.subscribed;if(o.useSyncExternalStore(o.useCallback((e=>{const t=p?u.subscribe(kf.batchCalls(e)):Hh;return u.updateResult(),t}),[u,p]),(()=>u.getCurrentResult()),(()=>u.getCurrentResult())),o.useEffect((()=>{u.setOptions(a)}),[a,u]),((e,t)=>e?.suspense&&t.isPending)(a,d))throw Hg(a,u,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||ff(r,[e.error,n])))({result:d,errorResetBoundary:i,throwOnError:a.throwOnError,query:l,suspense:a.suspense}))throw d.error;if(s.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!Vh&&((e,t)=>e.isLoading&&e.isFetching&&!t)(d,n)){const e=c?Hg(a,u,i):l?.promise;e?.catch(Hh).finally((()=>{u.updateResult()}))}return a.notifyOnChangeProps?d:u.trackResult(d)}(e,Mm,t)}function Zg(e,t){const r=Ug(t),[n]=o.useState((()=>new Cg(r,e)));o.useEffect((()=>{n.setOptions(e)}),[n,e]);const i=o.useSyncExternalStore(o.useCallback((e=>n.subscribe(kf.batchCalls(e))),[n]),(()=>n.getCurrentResult()),(()=>n.getCurrentResult())),s=o.useCallback(((e,t)=>{n.mutate(e,t).catch(Hh)}),[n]);if(i.error&&ff(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const Kg={local:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},development:{SUPPORT_FORM_URL:"https://my.dev.elementor.red/support-form/",FEEDBACK_API:"https://my.dev.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.dev.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.dev.elementor.red"},staging:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},production:{SUPPORT_FORM_URL:"https://my.elementor.com/support-form/",FEEDBACK_API:"https://my.elementor.com/feedback/api/v1",WHATS_NEW_API:"https://my.elementor.com/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.elementor.com"}};function Xg(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yg}=Object.prototype,{getPrototypeOf:Jg}=Object,{iterator:Qg,toStringTag:ev}=Symbol,tv=(rv=Object.create(null),e=>{const t=Yg.call(e);return rv[t]||(rv[t]=t.slice(8,-1).toLowerCase())});var rv;const nv=e=>(e=e.toLowerCase(),t=>tv(t)===e),iv=e=>t=>typeof t===e,{isArray:ov}=Array,sv=iv("undefined");function av(e){return null!==e&&!sv(e)&&null!==e.constructor&&!sv(e.constructor)&&uv(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lv=nv("ArrayBuffer"),cv=iv("string"),uv=iv("function"),dv=iv("number"),pv=e=>null!==e&&"object"==typeof e,hv=e=>{if("object"!==tv(e))return!1;const t=Jg(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ev in e||Qg in e)},fv=nv("Date"),mv=nv("File"),gv=nv("Blob"),vv=nv("FileList"),yv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{},bv=void 0!==yv.FormData?yv.FormData:void 0,xv=nv("URLSearchParams"),[wv,Cv,_v,kv]=["ReadableStream","Request","Response","Headers"].map(nv);function Sv(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),ov(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(av(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function Av(e,t){if(av(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const Ev="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,Rv=e=>!sv(e)&&e!==Ev,Iv=(Ov="undefined"!=typeof Uint8Array&&Jg(Uint8Array),e=>Ov&&e instanceof Ov);var Ov;const Mv=nv("HTMLFormElement"),Tv=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Lv=nv("RegExp"),Pv=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Sv(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},jv=nv("AsyncFunction"),Nv=(Dv="function"==typeof setImmediate,Bv=uv(Ev.postMessage),Dv?setImmediate:Bv?((e,t)=>(Ev.addEventListener("message",(({source:r,data:n})=>{r===Ev&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),Ev.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Dv,Bv;const Fv="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ev):"undefined"!=typeof process&&process.nextTick||Nv,$v={isArray:ov,isArrayBuffer:lv,isBuffer:av,isFormData:e=>{let t;return e&&(bv&&e instanceof bv||uv(e.append)&&("formdata"===(t=tv(e))||"object"===t&&uv(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&lv(e.buffer),t},isString:cv,isNumber:dv,isBoolean:e=>!0===e||!1===e,isObject:pv,isPlainObject:hv,isEmptyObject:e=>{if(!pv(e)||av(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:wv,isRequest:Cv,isResponse:_v,isHeaders:kv,isUndefined:sv,isDate:fv,isFile:mv,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:gv,isRegExp:Lv,isFunction:uv,isStream:e=>pv(e)&&uv(e.pipe),isURLSearchParams:xv,isTypedArray:Iv,isFileList:vv,forEach:Sv,merge:function e(){const{caseless:t,skipUndefined:r}=Rv(this)&&this||{},n={},i=(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=t&&Av(n,o)||o;hv(n[s])&&hv(i)?n[s]=e(n[s],i):hv(i)?n[s]=e({},i):ov(i)?n[s]=i.slice():r&&sv(i)||(n[s]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Sv(arguments[e],i);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(Sv(t,((t,n)=>{r&&uv(t)?Object.defineProperty(e,n,{value:Xg(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&Jg(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:tv,kindOfTest:nv,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(ov(e))return e;let t=e.length;if(!dv(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Qg]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Mv,hasOwnProperty:Tv,hasOwnProp:Tv,reduceDescriptors:Pv,freezeMethods:e=>{Pv(e,((t,r)=>{if(uv(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];uv(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return ov(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Av,global:Ev,isContextDefined:Rv,isSpecCompliantForm:function(e){return!!(e&&uv(e.append)&&"FormData"===e[ev]&&e[Qg])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(pv(e)){if(t.indexOf(e)>=0)return;if(av(e))return e;if(!("toJSON"in e)){t[n]=e;const i=ov(e)?[]:{};return Sv(e,((e,t)=>{const o=r(e,n+1);!sv(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:jv,isThenable:e=>e&&(pv(e)||uv(e))&&uv(e.then)&&uv(e.catch),setImmediate:Nv,asap:Fv,isIterable:e=>null!=e&&uv(e[Qg])};class zv extends Error{static from(e,t,r,n,i,o){const s=new zv(e.message,t||e.code,r,n,i);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$v.toJSONObject(this.config),code:this.code,status:this.status}}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}}zv.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",zv.ERR_BAD_OPTION="ERR_BAD_OPTION",zv.ECONNABORTED="ECONNABORTED",zv.ETIMEDOUT="ETIMEDOUT",zv.ERR_NETWORK="ERR_NETWORK",zv.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",zv.ERR_DEPRECATED="ERR_DEPRECATED",zv.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",zv.ERR_BAD_REQUEST="ERR_BAD_REQUEST",zv.ERR_CANCELED="ERR_CANCELED",zv.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",zv.ERR_INVALID_URL="ERR_INVALID_URL";const Uv=zv;function Wv(e){return $v.isPlainObject(e)||$v.isArray(e)}function qv(e){return $v.endsWith(e,"[]")?e.slice(0,-2):e}function Vv(e,t,r){return e?e.concat(t).map((function(e,t){return e=qv(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Hv=$v.toFlatObject($v,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Gv(e,t,r){if(!$v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=$v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$v.isUndefined(t[e])}))).metaTokens,i=r.visitor||c,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$v.isSpecCompliantForm(t);if(!$v.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($v.isDate(e))return e.toISOString();if($v.isBoolean(e))return e.toString();if(!a&&$v.isBlob(e))throw new Uv("Blob is not supported. Use a Buffer instead.");return $v.isArrayBuffer(e)||$v.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,i){let a=e;if($v.isReactNative(t)&&$v.isReactNativeBlob(e))return t.append(Vv(i,r,o),l(e)),!1;if(e&&!i&&"object"==typeof e)if($v.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if($v.isArray(e)&&function(e){return $v.isArray(e)&&!e.some(Wv)}(e)||($v.isFileList(e)||$v.endsWith(r,"[]"))&&(a=$v.toArray(e)))return r=qv(r),a.forEach((function(e,n){!$v.isUndefined(e)&&null!==e&&t.append(!0===s?Vv([r],n,o):null===s?r:r+"[]",l(e))})),!1;return!!Wv(e)||(t.append(Vv(i,r,o),l(e)),!1)}const u=[],d=Object.assign(Hv,{defaultVisitor:c,convertValue:l,isVisitable:Wv});if(!$v.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!$v.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),$v.forEach(r,(function(r,o){!0===(!($v.isUndefined(r)||null===r)&&i.call(t,r,$v.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t}function Zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Kv(e,t){this._pairs=[],e&&Gv(e,this,t)}const Xv=Kv.prototype;function Yv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jv(e,t,r){if(!t)return e;const n=r&&r.encode||Yv,i=$v.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(s=o?o(t,i):$v.isURLSearchParams(t)?t.toString():new Kv(t,i).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Xv.append=function(e,t){this._pairs.push([e,t])},Xv.toString=function(e){const t=e?function(t){return e.call(this,t,Zv)}:Zv;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Qv{use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$v.forEach(this.handlers,(function(t){null!==t&&e(t)}))}constructor(){this.handlers=[]}}const ey={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ty={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Kv,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ry="undefined"!=typeof window&&"undefined"!=typeof document,ny="object"==typeof navigator&&navigator||void 0,iy=ry&&(!ny||["ReactNative","NativeScript","NS"].indexOf(ny.product)<0),oy="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,sy=ry&&window.location.href||"http://localhost",ay={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ry,hasStandardBrowserEnv:iy,hasStandardBrowserWebWorkerEnv:oy,navigator:ny,origin:sy},Symbol.toStringTag,{value:"Module"})),...ty};function ly(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;return o=!o&&$v.isArray(n)?n.length:o,a?($v.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s):(n[o]&&$v.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&$v.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}(n[o])),!s)}if($v.isFormData(e)&&$v.isFunction(e.entries)){const r={};return $v.forEachEntry(e,((e,n)=>{t(function(e){return $v.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const cy={transitional:ey,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=$v.isObject(e);if(i&&$v.isHTMLForm(e)&&(e=new FormData(e)),$v.isFormData(e))return n?JSON.stringify(ly(e)):e;if($v.isArrayBuffer(e)||$v.isBuffer(e)||$v.isStream(e)||$v.isFile(e)||$v.isBlob(e)||$v.isReadableStream(e))return e;if($v.isArrayBufferView(e))return e.buffer;if($v.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Gv(e,new ay.classes.URLSearchParams,{visitor:function(e,t,r,n){return ay.isNode&&$v.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=$v.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Gv(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e){if($v.isString(e))try{return(0,JSON.parse)(e),$v.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||cy.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if($v.isResponse(e)||$v.isReadableStream(e))return e;if(e&&$v.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw Uv.from(e,Uv.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ay.classes.FormData,Blob:ay.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$v.forEach(["delete","get","head","post","put","patch"],(e=>{cy.headers[e]={}}));const uy=cy,dy=$v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),py=Symbol("internals");function hy(e,t){if(!1!==e&&null!=e)if($v.isArray(e))e.forEach((e=>hy(e,t)));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function fy(e){return e&&String(e).trim().toLowerCase()}function my(e){return!1===e||null==e?e:$v.isArray(e)?e.map(my):function(e){let t=e.length;for(;t>0;){const r=e.charCodeAt(t-1);if(10!==r&&13!==r)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function gy(e,t,r,n,i){return $v.isFunction(n)?n.call(this,t,r):(i&&(t=r),$v.isString(t)?$v.isString(n)?-1!==t.indexOf(n):$v.isRegExp(n)?n.test(t):void 0:void 0)}class vy{set(e,t,r){const n=this;function i(e,t,r){const i=fy(t);if(!i)throw new Error("header name must be a non-empty string");const o=$v.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(hy(e,t),n[o||t]=my(e))}const o=(e,t)=>$v.forEach(e,((e,r)=>i(e,r,t)));if($v.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if($v.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&dy[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if($v.isObject(e)&&$v.isIterable(e)){let r,n,i={};for(const t of e){if(!$v.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(r=i[n])?$v.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=fy(e)){const r=$v.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if($v.isFunction(t))return t.call(this,e,r);if($v.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fy(e)){const r=$v.findKey(this,e);return!(!r||void 0===this[r]||t&&!gy(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=fy(e)){const i=$v.findKey(r,e);!i||t&&!gy(0,r[i],i,t)||(delete r[i],n=!0)}}return $v.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!gy(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return $v.forEach(this,((n,i)=>{const o=$v.findKey(r,i);if(o)return t[o]=my(n),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();s!==i&&delete t[i],t[s]=my(n),r[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $v.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&$v.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[py]=this[py]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=fy(e);t[n]||(function(e,t){const r=$v.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return $v.isArray(e)?e.forEach(n):n(e),this}constructor(e){e&&this.set(e)}}vy.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$v.reduceDescriptors(vy.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),$v.freezeMethods(vy);const yy=vy;function by(e,t){const r=this||uy,n=t||r,i=yy.from(n.headers);let o=n.data;return $v.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function xy(e){return!(!e||!e.__CANCEL__)}const wy=class extends Uv{constructor(e,t,r){super(e??"canceled",Uv.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function Cy(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Uv("Request failed with status code "+r.status,[Uv.ERR_BAD_REQUEST,Uv.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const _y=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=n[s];i||(i=l),r[o]=a,n[o]=l;let u=s,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(r,o){let s,a,l=0,c=1e3/o;const u=(r,o=Date.now())=>{l=o,s=null,a&&(clearTimeout(a),a=null),(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,l=i(a);n=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})})(...r)};return[(...e)=>{const t=Date.now(),r=t-l;r>=c?u(e,t):(s=e,a||(a=setTimeout((()=>{a=null,u(s)}),c-r)))},()=>s&&u(s)]}(0,r)},ky=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Sy=e=>(...t)=>$v.asap((()=>e(...t))),Ay=ay.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ay.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ay.origin),ay.navigator&&/(msie|trident)/i.test(ay.navigator.userAgent)):()=>!0,Ey=ay.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];$v.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),$v.isString(n)&&a.push(`path=${n}`),$v.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),$v.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ry(e,t,r){let n=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Iy=e=>e instanceof yy?{...e}:e;function Oy(e,t){t=t||{};const r={};function n(e,t,r,n){return $v.isPlainObject(e)&&$v.isPlainObject(t)?$v.merge.call({caseless:n},e,t):$v.isPlainObject(t)?$v.merge({},t):$v.isArray(t)?t.slice():t}function i(e,t,r,i){return $v.isUndefined(t)?$v.isUndefined(e)?void 0:n(void 0,e,0,i):n(e,t,0,i)}function o(e,t){if(!$v.isUndefined(t))return n(void 0,t)}function s(e,t){return $v.isUndefined(t)?$v.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>i(Iy(e),Iy(t),0,!0)};return $v.forEach(Object.keys({...e,...t}),(function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const o=$v.hasOwnProp(l,n)?l[n]:i,s=o(e[n],t[n],n);$v.isUndefined(s)&&o!==a||(r[n]=s)})),r}const My=e=>{const t=Oy({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=yy.from(s),t.url=Jv(Ry(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),$v.isFormData(r))if(ay.hasStandardBrowserEnv||ay.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if($v.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)}))}if(ay.hasStandardBrowserEnv&&(n&&$v.isFunction(n)&&(n=n(t)),n||!1!==n&&Ay(t.url))){const e=i&&o&&Ey.read(o);e&&s.set(i,e)}return t},Ty="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=My(e);let i=n.data;const o=yy.from(n.headers).normalize();let s,a,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=n;function f(){c&&c(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=yy.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Cy((function(e){t(e),f()}),(function(e){r(e),f()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new Uv("Request aborted",Uv.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",i=new Uv(n,Uv.ERR_NETWORK,e,m);i.event=t||null,r(i),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||ey;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Uv(t,i.clarifyTimeoutError?Uv.ETIMEDOUT:Uv.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&$v.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),$v.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),h&&([l,u]=_y(h,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,c]=_y(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new wy(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);v&&-1===ay.protocols.indexOf(v)?r(new Uv("Unsupported protocol "+v+":",Uv.ERR_BAD_REQUEST,e)):m.send(i||null)}))},Ly=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Uv?t:new wy(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new Uv(`timeout of ${t}ms exceeded`,Uv.ETIMEDOUT))}),t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:a}=n;return a.unsubscribe=()=>$v.asap(s),a}},Py=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},jy=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Py(r,t)}(e,t);let o,s=0,a=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return a(),void e.close();let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},{isFunction:Ny}=$v,Dy=(({Request:e,Response:t})=>({Request:e,Response:t}))($v.global),{ReadableStream:By,TextEncoder:Fy}=$v.global,$y=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},zy=e=>{e=$v.merge.call({skipUndefined:!0},Dy,e);const{fetch:t,Request:r,Response:n}=e,i=t?Ny(t):"function"==typeof fetch,o=Ny(r),s=Ny(n);if(!i)return!1;const a=i&&Ny(By),l=i&&("function"==typeof Fy?(c=new Fy,e=>c.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var c;const u=o&&a&&$y((()=>{let e=!1;const t=new By,n=new r(ay.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!n})),d=s&&a&&$y((()=>$v.isReadableStream(new n("").body))),p={stream:d&&(e=>e.body)};return i&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new Uv(`Response type '${e}' is not supported`,Uv.ERR_NOT_SUPPORT,r)})})),async e=>{let{url:i,method:s,data:a,signal:c,cancelToken:h,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:y,withCredentials:b="same-origin",fetchOptions:x}=My(e),w=t||fetch;v=v?(v+"").toLowerCase():"text";let C=Ly([c,h&&h.toAbortSignal()],f),_=null;const k=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let S;try{if(g&&u&&"get"!==s&&"head"!==s&&0!==(S=await(async(e,t)=>$v.toFiniteNumber(e.getContentLength())??(async e=>{if(null==e)return 0;if($v.isBlob(e))return e.size;if($v.isSpecCompliantForm(e)){const t=new r(ay.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $v.isArrayBufferView(e)||$v.isArrayBuffer(e)?e.byteLength:($v.isURLSearchParams(e)&&(e+=""),$v.isString(e)?(await l(e)).byteLength:void 0)})(t))(y,a))){let e,t=new r(i,{method:"POST",body:a,duplex:"half"});if($v.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,r]=ky(S,_y(Sy(g)));a=jy(t.body,65536,e,r)}}$v.isString(b)||(b=b?"include":"omit");const t=o&&"credentials"in r.prototype,c={...x,signal:C,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};_=o&&new r(i,c);let h=await(o?w(_,x):w(i,c));const f=d&&("stream"===v||"response"===v);if(d&&(m||f&&k)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=$v.toFiniteNumber(h.headers.get("content-length")),[r,i]=m&&ky(t,_y(Sy(m),!0))||[];h=new n(jy(h.body,65536,r,(()=>{i&&i(),k&&k()})),e)}v=v||"text";let A=await p[$v.findKey(p,v)||"text"](h,e);return!f&&k&&k(),await new Promise(((t,r)=>{Cy(t,r,{data:A,headers:yy.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:_})}))}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Uv("Network Error",Uv.ERR_NETWORK,e,_,t&&t.response),{cause:t.cause||t});throw Uv.from(t,t&&t.code,e,_,t&&t.response)}}},Uy=new Map,Wy=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,o=[n,i,r];let s,a,l=o.length,c=Uy;for(;l--;)s=o[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:zy(t)),c=a;return a};Wy();const qy={http:null,xhr:Ty,fetch:{get:Wy}};$v.forEach(qy,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Vy=e=>`- ${e}`,Hy=e=>$v.isFunction(e)||null===e||!1===e,Gy=function(e,t){e=$v.isArray(e)?e:[e];const{length:r}=e;let n,i;const o={};for(let s=0;s<r;s++){let r;if(n=e[s],i=n,!Hy(n)&&(i=qy[(r=String(n)).toLowerCase()],void 0===i))throw new Uv(`Unknown adapter '${r}'`);if(i&&($v.isFunction(i)||(i=i.get(t))))break;o[r||"#"+s]=i}if(!i){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=r?e.length>1?"since :\n"+e.map(Vy).join("\n"):" "+Vy(e[0]):"as no adapter specified";throw new Uv("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i};function Zy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wy(null,e)}function Ky(e){return Zy(e),e.headers=yy.from(e.headers),e.data=by.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gy(e.adapter||uy.adapter,e)(e).then((function(t){return Zy(e),t.data=by.call(e,e.transformResponse,t),t.headers=yy.from(t.headers),t}),(function(t){return xy(t)||(Zy(e),t&&t.response&&(t.response.data=by.call(e,e.transformResponse,t.response),t.response.headers=yy.from(t.response.headers))),Promise.reject(t)}))}const Xy="1.15.0",Yy={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Yy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Jy={};Yy.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Xy+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new Uv(n(i," has been removed"+(t?" in "+t:"")),Uv.ERR_DEPRECATED);return t&&!Jy[i]&&(Jy[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},Yy.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const Qy={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Uv("options must be an object",Uv.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new Uv("option "+o+" must be "+r,Uv.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Uv("Unknown option "+o,Uv.ERR_BAD_OPTION)}},validators:Yy},eb=Qy.validators;class tb{async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Oy(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&Qy.assertOptions(r,{silentJSONParsing:eb.transitional(eb.boolean),forcedJSONParsing:eb.transitional(eb.boolean),clarifyTimeoutError:eb.transitional(eb.boolean),legacyInterceptorReqResOrdering:eb.transitional(eb.boolean)},!1),null!=n&&($v.isFunction(n)?t.paramsSerializer={serialize:n}:Qy.assertOptions(n,{encode:eb.function,serialize:eb.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Qy.assertOptions(t,{baseUrl:eb.spelling("baseURL"),withXsrfToken:eb.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&$v.merge(i.common,i[t.method]);i&&$v.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=yy.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||ey;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[Ky.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let p=t;for(;d<u;){const t=s[d++],r=s[d++];try{p=t(p)}catch(e){r.call(this,e);break}}try{c=Ky.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Jv(Ry((e=Oy(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}constructor(e){this.defaults=e||{},this.interceptors={request:new Qv,response:new Qv}}}$v.forEach(["delete","get","head","options"],(function(e){tb.prototype[e]=function(t,r){return this.request(Oy(r||{},{method:e,url:t,data:(r||{}).data}))}})),$v.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(Oy(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tb.prototype[e]=t(),tb.prototype[e+"Form"]=t(!0)}));const rb=tb;class nb{throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new nb((function(t){e=t})),cancel:e}}constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new wy(e,n,i),t(r.reason))}))}}const ib=nb,ob={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ob).forEach((([e,t])=>{ob[t]=e}));const sb=ob,ab=function e(t){const r=new rb(t),n=Xg(rb.prototype.request,r);return $v.extend(n,rb.prototype,r,{allOwnKeys:!0}),$v.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Oy(t,r))},n}(uy);ab.Axios=rb,ab.CanceledError=wy,ab.CancelToken=ib,ab.isCancel=xy,ab.VERSION=Xy,ab.toFormData=Gv,ab.AxiosError=Uv,ab.Cancel=ab.CanceledError,ab.all=function(e){return Promise.all(e)},ab.spread=function(e){return function(t){return e.apply(null,t)}},ab.isAxiosError=function(e){return $v.isObject(e)&&!0===e.isAxiosError},ab.mergeConfig=Oy,ab.AxiosHeaders=yy,ab.formToJSON=e=>ly($v.isHTMLForm(e)?new FormData(e):e),ab.getAdapter=Gy,ab.HttpStatusCode=sb,ab.default=ab;class lb{static initialize(e){lb.config=e}static create(e,t=3e4,r){if(!lb.config)throw new Error("HttpClient must be initialized with config before use. Call HttpClient.initialize(config) first.");const n=lb.config[e];if(!n)throw new Error(`Configuration key "${e}" is not found in the environment config`);return new lb(n,t,r)}async get(e,t,r){return this.http.get(e,{params:t,...r})}async post(e,t,r){return this.http.post(e,t,r)}async put(e,t,r){return this.http.put(e,t,r)}async delete(e,t){return this.http.delete(e,t)}getInstance(){return this.http}constructor(e,t=3e4,r){const n={Accept:"application/json","Content-Type":"application/json",...r||{}};this.http=ab.create({baseURL:e,timeout:t,responseType:"json",headers:n})}}var cb,ub,db,pb;lb.config=null,cb={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ub=["(","?"],db={")":["("],":":["?","?:"]},pb=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var __={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}},hb={contextDelimiter:"",onMissingKey:null};function fb(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},hb)this.options[r]=void 0!==t&&r in t?t[r]:hb[r]}fb.prototype.getPluralForm=function(e,t){var r,n,i,o,s=this.pluralForms[e];return s||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),o=function(e){var t=function(e){for(var t,r,n,i,o=[],s=[];t=e.match(pb);){for(r=t[0],(n=e.substr(0,t.index).trim())&&o.push(n);i=s.pop();){if(db[r]){if(db[r][0]===i){r=db[r][1]||r;break}}else if(ub.indexOf(i)>=0||cb[i]<cb[r]){s.push(i);break}o.push(i)}db[r]||s.push(r),e=e.substr(t.index+r.length)}return(e=e.trim())&&o.push(e),o.concat(s.reverse())}(e);return function(e){return function(e,t){var r,n,i,o,s,a,l=[];for(r=0;r<e.length;r++){if(s=e[r],o=__[s]){for(n=o.length,i=Array(n);n--;)i[n]=l.pop();try{a=o.apply(null,i)}catch(e){return e}}else a=t.hasOwnProperty(s)?t[s]:+s;l.push(a)}return l[0]}(t,e)}}(n),i=function(e){return+o({n:e})}),s=this.pluralForms[e]=i),s(t)},fb.prototype.dcnpgettext=function(e,t,r,n,i){var o,s,a;return o=void 0===i?0:this.getPluralForm(e,i),s=r,t&&(s=t+this.options.contextDelimiter+r),(a=this.data[e][s])&&a[o]?a[o]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===o?r:n)};const mb={plural_forms:e=>1===e?0:1},gb=/^i18n\.(n?gettext|has_translation)(_|$)/;var vb=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},yb=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},bb=function(e,t){return function(r,n,i,o=10){const s=e[t];if(!yb(r))return;if(!vb(n))return;if("function"!=typeof i)return void console.error("The hook callback must be a function.");if("number"!=typeof o)return void console.error("If specified, the hook priority must be a number.");const a={callback:i,priority:o,namespace:n};if(s[r]){const e=s[r].handlers;let t;for(t=e.length;t>0&&!(o>=e[t-1].priority);t--);t===e.length?e[t]=a:e.splice(t,0,a),s.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex++}))}else s[r]={handlers:[a],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,i,o)}},xb=function(e,t,r=!1){return function(n,i){const o=e[t];if(!yb(n))return;if(!r&&!vb(i))return;if(!o[n])return 0;let s=0;if(r)s=o[n].handlers.length,o[n]={runs:o[n].runs,handlers:[]};else{const e=o[n].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===i&&(e.splice(t,1),s++,o.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==n&&e.doAction("hookRemoved",n,i),s}},wb=function(e,t){return function(r,n){const i=e[t];return void 0!==n?r in i&&i[r].handlers.some((e=>e.namespace===n)):r in i}},Cb=function(e,t,r,n){return function(i,...o){const s=e[t];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const a=s[i].handlers;if(!a||!a.length)return r?o[0]:void 0;const l={name:i,currentIndex:0};return(n?async function(){try{s.__current.add(l);let e=r?o[0]:void 0;for(;l.currentIndex<a.length;){const t=a[l.currentIndex];e=await t.callback.apply(null,o),r&&(o[0]=e),l.currentIndex++}return r?e:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let e=r?o[0]:void 0;for(;l.currentIndex<a.length;)e=a[l.currentIndex].callback.apply(null,o),r&&(o[0]=e),l.currentIndex++;return r?e:void 0}finally{s.__current.delete(l)}})()}},_b=function(e,t){return function(){const r=e[t],n=Array.from(r.__current);return n.at(-1)?.name??null}},kb=function(e,t){return function(r){const n=e[t];return void 0===r?n.__current.size>0:Array.from(n.__current).some((e=>e.name===r))}},Sb=function(e,t){return function(r){const n=e[t];if(yb(r))return n[r]&&n[r].runs?n[r].runs:0}};const Ab=((e,t,r)=>{const n=new fb({}),i=new Set,o=()=>{i.forEach((e=>e()))},s=(e,t="default")=>{n.data[t]={...n.data[t],...e},n.data[t][""]={...mb,...n.data[t]?.[""]},delete n.pluralForms[t]},a=(e,t)=>{s(e,t),o()},l=(e="default",t,r,i,o)=>(n.data[e]||s(void 0,e),n.dcnpgettext(e,t,r,i,o)),c=(e="default")=>e,u=(e,t,n)=>{let i=l(n,t,e);return r?(i=r.applyFilters("i18n.gettext_with_context",i,e,t,n),r.applyFilters("i18n.gettext_with_context_"+c(n),i,e,t,n)):i};if(r){const e=e=>{gb.test(e)&&o()};r.addAction("hookAdded","core/i18n",e),r.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>n.data[e],setLocaleData:a,addLocaleData:(e,t="default")=>{n.data[t]={...n.data[t],...e,"":{...mb,...n.data[t]?.[""],...e?.[""]}},delete n.pluralForms[t],o()},resetLocaleData:(e,t)=>{n.data={},n.pluralForms={},a(e,t)},subscribe:e=>(i.add(e),()=>i.delete(e)),__:(e,t)=>{let n=l(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+c(t),n,e,t)):n},_x:u,_n:(e,t,n,i)=>{let o=l(i,void 0,e,t,n);return r?(o=r.applyFilters("i18n.ngettext",o,e,t,n,i),r.applyFilters("i18n.ngettext_"+c(i),o,e,t,n,i)):o},_nx:(e,t,n,i,o)=>{let s=l(o,i,e,t,n);return r?(s=r.applyFilters("i18n.ngettext_with_context",s,e,t,n,i,o),r.applyFilters("i18n.ngettext_with_context_"+c(o),s,e,t,n,i,o)):s},isRTL:()=>"rtl"===u("ltr","text direction"),hasTranslation:(e,t,i)=>{const o=t?t+""+e:e;let s=!!n.data?.[null!=i?i:"default"]?.[o];return r&&(s=r.applyFilters("i18n.has_translation",s,e,t,i),s=r.applyFilters("i18n.has_translation_"+c(i),s,e,t,i)),s}}})(0,0,new class{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=bb(this,"actions"),this.addFilter=bb(this,"filters"),this.removeAction=xb(this,"actions"),this.removeFilter=xb(this,"filters"),this.hasAction=wb(this,"actions"),this.hasFilter=wb(this,"filters"),this.removeAllActions=xb(this,"actions",!0),this.removeAllFilters=xb(this,"filters",!0),this.doAction=Cb(this,"actions",!1,!1),this.doActionAsync=Cb(this,"actions",!1,!0),this.applyFilters=Cb(this,"filters",!0,!1),this.applyFiltersAsync=Cb(this,"filters",!0,!0),this.currentAction=_b(this,"actions"),this.currentFilter=_b(this,"filters"),this.doingAction=kb(this,"actions"),this.doingFilter=kb(this,"filters"),this.didAction=Sb(this,"actions"),this.didFilter=Sb(this,"filters")}});Ab.getLocaleData.bind(Ab),Ab.setLocaleData.bind(Ab),Ab.resetLocaleData.bind(Ab),Ab.subscribe.bind(Ab);const Eb=Ab.__.bind(Ab);Ab._x.bind(Ab),Ab._n.bind(Ab),Ab._nx.bind(Ab),Ab.isRTL.bind(Ab),Ab.hasTranslation.bind(Ab);const Rb=(e,t)=>{let r,n,i=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),i=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:i})};function Ib(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,i]=n;if(Array.isArray(i)||i&&i.constructor===Object){const t=Object.entries(i).reverse();for(const[n,i]of t)r.unshift([`${e}[${n}]`,i])}else void 0!==i&&(null===i&&(i=""),t+="&"+[e,i].map(encodeURIComponent).join("="))}return t.substr(1)}function Ob(e){try{return decodeURIComponent(e)}catch(t){return e}}function Mb(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(Ob);return r&&function(e,t,r){const n=t.length,i=n-1;for(let o=0;o<n;o++){let n=t[o];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const s=!isNaN(Number(t[o+1]));e[n]=o===i?r:e[n]||(s?[]:{}),Array.isArray(e[n])&&!s&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n),e}),Object.create(null))}function Tb(e="",t){if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(Mb(e),t),r=r.substr(0,n)),r+"?"+Ib(t)}function Lb(e,t){return Mb(e)[t]}function Pb(e,t){return void 0!==Lb(e,t)}function jb(e,...t){const r=e.indexOf("?");if(-1===r)return e;const n=Mb(e),i=e.substr(0,r);t.forEach((e=>delete n[e]));const o=Ib(n);return o?i+"?"+o:i}function Nb(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function Db(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const Bb=({path:e,url:t,...r},n)=>({...r,url:t&&Tb(t,n),path:e&&Tb(e,n)}),Fb=e=>e.json?e.json():Promise.reject(e),$b=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},zb=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await Yb({...Bb(e,{per_page:100}),parse:!1}),n=await Fb(r);if(!Array.isArray(n))return n;let i=$b(r);if(!i)return n;let o=[].concat(n);for(;i;){const t=await Yb({...e,path:void 0,url:i,parse:!1}),r=await Fb(t);o=o.concat(r),i=$b(t)}return o},Ub=new Set(["PATCH","PUT","DELETE"]),Wb="GET",qb=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch((e=>Vb(e,t)));function Vb(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:Eb("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))})(e).then((e=>{const t={code:"unknown_error",message:Eb("An unknown error occurred.")};throw e||t}))}const Hb={Accept:"application/json, */*;q=0.1"},Gb={credentials:"include"},Zb=[(e,t)=>("string"!=typeof e.url||Pb(e.url,"_locale")||(e.url=Tb(e.url,{_locale:"user"})),"string"!=typeof e.path||Pb(e.path,"_locale")||(e.path=Tb(e.path,{_locale:"user"})),t(e)),Rb,(e,t)=>{const{method:r=Wb}=e;return Ub.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},zb],Kb=e=>{if(e.status>=200&&e.status<300)return e;throw e};let Xb=e=>{const{url:t,path:r,data:n,parse:i=!0,...o}=e;let{body:s,headers:a}=e;return a={...Hb,...a},n&&(s=JSON.stringify(n),a["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...Gb,...o,body:s,headers:a}).then((e=>Promise.resolve(e).then(Kb).catch((e=>Vb(e,i))).then((e=>qb(e,i)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Eb("You are probably offline.")}}))};function Yb(e){const t=Zb.reduceRight(((e,t)=>r=>t(r,e)),Xb);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(Yb.nonceEndpoint).then(Kb).then((e=>e.text())).then((t=>(Yb.nonceMiddleware.nonce=t,Yb(e))))))}Yb.use=function(e){Zb.unshift(e)},Yb.setFetchHandler=function(e){Xb=e},Yb.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const i in n)if("x-wp-nonce"===i.toLowerCase()&&n[i]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},Yb.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map((([e,t])=>[Nb(e),t])));return(e,r)=>{const{parse:n=!0}=e;let i=e.path;if(!i&&e.url){const{rest_route:t,...r}=Mb(e.url);"string"==typeof t&&(i=Tb(t,r))}if("string"!=typeof i)return r(e);const o=e.method||"GET",s=Nb(i);if("GET"===o&&t[s]){const e=t[s];return delete t[s],Db(e,!!n)}if("OPTIONS"===o&&t[o]&&t[o][s]){const e=t[o][s];return delete t[o][s],Db(e,!!n)}return r(e)}},Yb.createRootURLMiddleware=e=>(t,r)=>Rb(t,(t=>{let n,i=t.url,o=t.path;return"string"==typeof o&&(n=e,-1!==e.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(o=o.replace("?","&")),i=n+o),r({...t,url:i})})),Yb.fetchAllMiddleware=zb,Yb.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let r=0;const n=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>r<5?n(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?n(r).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:Eb("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):Vb(t,e.parse)})).then((t=>qb(t,e.parse)))},Yb.createThemePreviewMiddleware=e=>(t,r)=>{if("string"==typeof t.url){const r=Lb(t.url,"wp_theme_preview");void 0===r?t.url=Tb(t.url,{wp_theme_preview:e}):""===r&&(t.url=jb(t.url,"wp_theme_preview"))}if("string"==typeof t.path){const r=Lb(t.path,"wp_theme_preview");void 0===r?t.path=Tb(t.path,{wp_theme_preview:e}):""===r&&(t.path=jb(t.path,"wp_theme_preview"))}return r(t)};class Jb extends Error{constructor(e){super(e),this.name="APIError"}}var Qb=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e.HEAD="HEAD",e}({});const ex="/wp/v2";class tx{static async request({path:e,data:t,method:r="POST"}){try{const n=(window?.elementorOneSettingsData?.wpRestUrl||"/wp-json/").replace(/\/$/,""),i=window?.elementorOneSettingsData?.wpRestNonce||"";let o=`${n}${e}`;"GET"!==r||e.startsWith(ex)||(o=Tb(o,{sb_time:(new Date).getTime()}));const s=await Yb({url:o,method:r,data:t,headers:{"X-WP-Nonce":i}});if(e.startsWith(ex))return s;if(void 0===s?.success)return s;if(!s.success)throw new Jb(s.data?.message||"Unknown error");return s.data}catch(e){throw e instanceof Jb?e:new Jb(e?.message||"Unknown error")}}}const rx="/elementor-one/v1";class nx extends tx{static async initConnect(e="new"){const t={wp_rest:window?.elementorOneSettingsData?.wpRestNonce};return"update"===e&&(t.update_redirect_uri=!0),tx.request({method:Qb.POST,path:`${rx}/connect/authorize`,data:t})}static async disconnect(){return tx.request({method:Qb.POST,path:`${rx}/connect/disconnect`,data:{wp_rest:window?.elementorOneSettingsData?.wpRestNonce}})}static async getPluginSettings(){return tx.request({method:Qb.GET,path:`${rx}/settings`})}static async getNotifications(e,t){return tx.request({method:Qb.GET,path:`${rx}/top-bar/notifications?app_name=${e}&app_version=${t}`})}static async sendFeedback(e){return tx.request({method:Qb.POST,path:`${rx}/top-bar/feedback`,data:e})}}const ix=new lb("https://ipapi.co/json/");class ox{static async getCountryCode(){const{data:e}=await ix.get("");return e.country}}var sx;if("undefined"==typeof window){var ax={hostname:""};sx={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ax,referrer:""},screen:{width:0,height:0},location:ax,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else sx=window;var lx={DEBUG:!1,LIB_VERSION:"2.77.0"},cx="__mp_targeting",ux="__mp_recorder",dx="__MP_TARGETING_FILENAME__";function _x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function px(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function hx(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){px(o,n,i,s,a,"next",e)}function a(e){px(o,n,i,s,a,"throw",e)}s(void 0)}))}}function fx(e,t,r){return fx=Sx()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&wx(i,r.prototype),i},fx.apply(null,arguments)}function mx(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function gx(){return gx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gx.apply(this,arguments)}function vx(e){return vx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vx(e)}function yx(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&&wx(e,t)}function bx(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function xx(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function wx(e,t){return wx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wx(e,t)}function Cx(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function kx(e){var t="function"==typeof Map?new Map:void 0;return kx=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return fx(e,arguments,vx(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),wx(n,e)},kx(e)}function Sx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sx=function(){return!!e})()}function Ax(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_x(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Ex(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function Rx(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Ix,Ox=Object.defineProperty,Mx=function(e,t,r){return function(e,t,r){return t in e?Ox(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":Cx(t))?t+"":t,r)},Tx=Object.defineProperty,Lx=function(e,t,r){return function(e,t,r){return t in e?Tx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":Cx(t))?t+"":t,r)},Px=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Px||{}),jx={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Nx={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Dx={},Bx={};function Fx(e,t,r){var n,i=e+"."+String(r);if(Bx[i])return Bx[i].call(t);var o=function(e){if(Dx[e])return Dx[e];var t=globalThis[e],r=t.prototype,n=e in jx?jx[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in Nx?Nx[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return Dx[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?Dx[e]=c:r}catch(e){return r}}(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Bx[i]=s,s.call(t)):t[r]}var $x=function(e){return Fx("Node",e,"childNodes")},zx=function(e){return Fx("Node",e,"parentNode")},Ux=function(e){return Fx("Node",e,"parentElement")},Wx=function(e){return Fx("Node",e,"textContent")},qx=function(e){return e&&"shadowRoot"in e?Fx("Element",e,"shadowRoot"):null};function Vx(e){return e.nodeType===e.ELEMENT_NODE}function Hx(e){var t=e&&"host"in e&&"mode"in e&&function(e){return e&&"host"in e?Fx("ShadowRoot",e,"host"):null}(e)||null;return Boolean(t&&"shadowRoot"in t&&qx(t)===e)}function Gx(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Zx(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,(function(e){return Kx(e,r)})).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function Kx(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=Zx(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?sw(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?sw(i,t):i}var Xx=function(){function e(){Lx(this,"idNodeMap",new Map),Lx(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach((function(e){return r.removeNodeFromMap(e,t)}))},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Yx(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",l=i&&Jx(i);return(r[n.toLowerCase()]||l&&r[l])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Jx(e){return e.toLowerCase()}var Qx="__rrweb_original__";function ew(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Jx(t):null}function tw(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var rw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,nw=/^(?:[a-z+]+:)?\/\//i,iw=/^www\..*/i,ow=/^(data:)([^,]*),(.*)/i;function sw(e,t){return(e||"").replace(rw,(function(e,r,n,i,o,s){var a,l=n||o||s,c=r||i||"";if(!l)return e;if(nw.test(l)||iw.test(l))return"url("+c+l+c+")";if(ow.test(l))return"url("+c+l+c+")";if("/"===l[0])return"url("+c+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+l)+c+")";var u=t.split("/"),d=l.split("/");u.pop();for(var p,h=Ax(d);!(p=h()).done;){var f=p.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"}))}function aw(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var lw,cw,uw=1,dw=new RegExp("[^a-z0-9-_:]");function pw(){return uw++}var hw=/^[^ \t\n\r\u000c]+/,fw=/^[, \t\n\r\u000c]+/,mw=new WeakMap;function gw(e,t){return t&&""!==t.trim()?vw(e,t):t}function vw(e,t){var r=mw.get(e);if(r||(r=e.createElement("a"),mw.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function yw(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?gw(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(fw),!(r>=t.length);){var o=n(hw);if(","===o.slice(-1))o=gw(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=gw(e,o);for(var a=!1;;){var l=t.charAt(r);if(""===l){i.push((o+s).trim());break}if(a)")"===l&&(a=!1);else{if(","===l){r+=1,i.push((o+s).trim());break}"("===l&&(a=!0)}s+=l,r+=1}}}return i.join(", ")}(e,n):"style"===r?sw(n,vw(e)):"object"===t&&"data"===r?gw(e,n):n:gw(e,n):n}function bw(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function xw(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&xw(zx(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&xw(zx(e),t,r)}function ww(e,t,r,n){var i;if(Vx(e)){if(!$x(i=e).length)return!1}else{if(null===Ux(e))return!1;i=Ux(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(xw(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(e){}return!1}function Cw(e){return null==e?"":e.toLowerCase()}function _w(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,l=t.skipChild,c=void 0!==l&&l,u=t.inlineStylesheet,d=void 0===u||u,p=t.maskInputOptions,h=void 0===p?{}:p,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,x=void 0!==b&&b,w=t.recordCanvas,C=void 0!==w&&w,_=t.onSerialize,k=t.onIframeLoad,S=t.iframeLoadTimeout,A=void 0===S?5e3:S,E=t.onStylesheetLoad,R=t.stylesheetLoadTimeout,I=void 0===R?5e3:R,O=t.keepIframeSrcFn,M=void 0===O?function(){return!1}:O,T=t.newlyAddedElement,L=void 0!==T&&T,P=t.cssCaptured,j=void 0!==P&&P,N=t.needsMask,D=t.preserveWhiteSpace,B=void 0===D||D;N||(N=ww(e,s,a,void 0===N));var F,$=function(e,t){var r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.needsMask,s=t.inlineStylesheet,a=t.maskInputOptions,l=void 0===a?{}:a,c=t.maskTextFn,u=t.maskInputFn,d=t.dataURLOptions,p=void 0===d?{}:d,h=t.inlineImages,f=t.recordCanvas,m=t.keepIframeSrcFn,g=t.newlyAddedElement,v=void 0!==g&&g,y=t.cssCaptured,b=void 0!==y&&y,x=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,t.mirror);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Px.Document,childNodes:[],compatMode:e.compatMode}:{type:Px.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Px.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,l=t.dataURLOptions,c=void 0===l?{}:l,u=t.inlineImages,d=t.recordCanvas,p=t.keepIframeSrcFn,h=t.newlyAddedElement,f=void 0!==h&&h,m=t.rootId,g=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector),v=function(e){if(bx(e,HTMLFormElement))return"form";var t=Jx(e.tagName);return dw.test(t)?"div":t}(e),y={},b=e.attributes.length,x=0;x<b;x++){var w=e.attributes[x];bw(v,w.name)||(y[w.name]=yw(n,v,Jx(w.name),w.value))}if("link"===v&&i){var C=Array.from(n.styleSheets).find((function(t){return t.href===e.href})),_=null;C&&(_=Zx(C)),_&&(delete y.rel,delete y.href,y._cssText=_)}if("style"===v&&e.sheet){var k=Zx(e.sheet);k&&(e.childNodes.length>1&&(k=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=aw(e,r),a=s.length/e.length,l=1;l<n.length;l++)if(n[l].textContent&&"string"==typeof n[l].textContent){for(var c=aw(n[l].textContent,r),u=3;u<c.length&&(c[u].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,u),1));u++);for(;u<c.length;u++){var d=c.substring(0,u),p=s.split(d),h=-1;if(2===p.length)h=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[l-1].textContent)h=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),(p=s.split(d)).length<=1)return i.push(e),i;u=101}else u===c.length-1&&(h=s.indexOf(d));if(p.length>=2&&u>100){var f=n[l-1].textContent;if(f&&"string"==typeof f){var m=aw(f).length;h=s.indexOf(d,m)}-1===h&&(h=p[0].length)}if(-1!==h){for(var g=Math.floor(h/a);g>0&&g<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=aw(e.substring(0,g),r);if(v.length===h){i.push(e.substring(0,g)),e=e.substring(g),s=s.substring(h);break}v.length<h?g+=Math.max(1,Math.floor((h-v.length)/a)):g-=Math.max(1,Math.floor((v.length-h)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}(k,e)),y._cssText=k)}if("input"===v||"textarea"===v||"select"===v){var S=e.value,A=e.checked;"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&S?y.value=Yx({element:e,type:ew(e),tagName:v,value:S,maskInputOptions:s,maskInputFn:a}):A&&(y.checked=A)}if("option"===v&&(e.selected&&!s.select?y.selected=!0:delete y.selected),"dialog"===v&&e.open&&(y.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&d)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=Qx in i?i[Qx]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(e)||(y.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){var E=e.toDataURL(c.type,c.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,E!==R.toDataURL(c.type,c.quality)&&(y.rr_dataURL=E)}if("img"===v&&u){lw||(lw=n.createElement("canvas"),cw=lw.getContext("2d"));var I=e,O=I.currentSrc||I.getAttribute("src")||"<unknown-src>",M=I.crossOrigin,T=function(){I.removeEventListener("load",T);try{lw.width=I.naturalWidth,lw.height=I.naturalHeight,cw.drawImage(I,0,0),y.rr_dataURL=lw.toDataURL(c.type,c.quality)}catch(e){if("anonymous"!==I.crossOrigin)return I.crossOrigin="anonymous",void(I.complete&&0!==I.naturalWidth?T():I.addEventListener("load",T));console.warn("Cannot inline img src="+O+"! Error: "+e)}"anonymous"===I.crossOrigin&&(M?y.crossOrigin=M:I.removeAttribute("crossorigin"))};I.complete&&0!==I.naturalWidth?T():I.addEventListener("load",T)}if("audio"===v||"video"===v){var L=y;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),g){var P=e.getBoundingClientRect(),j=P.width,N=P.height;y={class:y.class,rr_width:j+"px",rr_height:N+"px"}}"iframe"!==v||p(y.src)||(e.contentDocument||(y.rr_src=y.src),delete y.src);try{customElements.get(v)&&(r=!0)}catch(e){}return{type:Px.Element,tagName:v,attributes:y,childNodes:[],isSVG:(D=e,Boolean("svg"===D.tagName||D.ownerSVGElement)||void 0),needBlock:g,rootId:m,isCustom:r};var D}(e,{doc:r,blockClass:n,blockSelector:i,inlineStylesheet:s,maskInputOptions:l,maskInputFn:u,dataURLOptions:p,inlineImages:h,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:v,rootId:x});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=zx(e),a=s&&s.tagName,l="",c="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?l="SCRIPT_PLACEHOLDER":o||(l=Wx(e),c&&l&&(l=sw(l,vw(t.doc)))),!c&&!u&&l&&r&&(l=n?n(l,Ux(e)):l.replace(/[\S]/g,"*")),{type:Px.Text,textContent:l||"",rootId:i}}(e,{doc:r,needsMask:o,maskTextFn:c,rootId:x,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:Px.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:Px.Comment,textContent:Wx(e)||"",rootId:x};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:x,recordCanvas:C,keepIframeSrcFn:M,newlyAddedElement:L,cssCaptured:j});if(!$)return console.warn(e,"not serialized"),null;F=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Px.Comment)return!0;if(e.type===Px.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===tw(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Cw(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Cw(e.attributes.name)||"icon"===Cw(e.attributes.rel)||"apple-touch-icon"===Cw(e.attributes.rel)||"shortcut icon"===Cw(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Cw(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Cw(e.attributes.property).match(/^(og|twitter|fb):/)||Cw(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Cw(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Cw(e.attributes.name)||"googlebot"===Cw(e.attributes.name)||"bingbot"===Cw(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Cw(e.attributes.name)||"generator"===Cw(e.attributes.name)||"framework"===Cw(e.attributes.name)||"publisher"===Cw(e.attributes.name)||"progid"===Cw(e.attributes.name)||Cw(e.attributes.property).match(/^article:/)||Cw(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Cw(e.attributes.name)||"yandex-verification"===Cw(e.attributes.name)||"csrf-token"===Cw(e.attributes.name)||"p:domain_verify"===Cw(e.attributes.name)||"verify-v1"===Cw(e.attributes.name)||"verification"===Cw(e.attributes.name)||"shopify-checkout-api-token"===Cw(e.attributes.name)))return!0}}return!1}($,g)||!B&&$.type===Px.Text&&!$.textContent.replace(/^\s+|\s+$/gm,"").length?-2:pw();var z=Object.assign($,{id:F});if(n.add(e,z),-2===F)return null;_&&_(e);var U=!c;if(z.type===Px.Element){U=U&&!z.needBlock,delete z.needBlock;var W=qx(e);W&&Gx(W)&&(z.isShadowHost=!0)}if((z.type===Px.Document||z.type===Px.Element)&&U){g.headWhitespace&&z.type===Px.Element&&"head"===z.tagName&&(B=!1);var q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:x,recordCanvas:C,preserveWhiteSpace:B,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(z.type===Px.Element&&"textarea"===z.tagName&&void 0!==z.attributes.value);else{z.type===Px.Element&&void 0!==z.attributes._cssText&&"string"==typeof z.attributes._cssText&&(q.cssCaptured=!0);for(var V,H=Ax(Array.from($x(e)));!(V=H()).done;){var G=_w(V.value,q);G&&z.childNodes.push(G)}}var Z=null;if(Vx(e)&&(Z=qx(e)))for(var K,X=Ax(Array.from($x(Z)));!(K=X()).done;){var Y=_w(K.value,q);Y&&(Gx(Z)&&(Y.isShadow=!0),z.childNodes.push(Y))}}var J=zx(e);return J&&Hx(J)&&Gx(J)&&(z.isShadow=!0),z.type===Px.Element&&"iframe"===z.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),o=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&k){var r=_w(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:x,recordCanvas:C,preserveWhiteSpace:B,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&k(e,r)}}),A),z.type===Px.Element&&"link"===z.tagName&&"string"==typeof z.attributes.rel&&("stylesheet"===z.attributes.rel||"preload"===z.attributes.rel&&"string"==typeof z.attributes.href&&"css"===tw(z.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(o),i=!0,t()}))}}(e,(function(){if(E){var t=_w(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:x,recordCanvas:C,preserveWhiteSpace:B,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&E(e,t)}}),I),z}var kw={exports:{}},Sw=String,Aw=function(){return{isColorSupported:!1,reset:Sw,bold:Sw,dim:Sw,italic:Sw,underline:Sw,inverse:Sw,hidden:Sw,strikethrough:Sw,black:Sw,red:Sw,green:Sw,yellow:Sw,blue:Sw,magenta:Sw,cyan:Sw,white:Sw,gray:Sw,bgBlack:Sw,bgRed:Sw,bgGreen:Sw,bgYellow:Sw,bgBlue:Sw,bgMagenta:Sw,bgCyan:Sw,bgWhite:Sw}};kw.exports=Aw(),kw.exports.createColors=Aw;var Ew=kw.exports,Rw=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return bx(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Iw=Ew,Ow=Rw,Mw=function(e){function t(r,n,i,o,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),o&&(l.source=o),a&&(l.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}yx(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Iw.isColorSupported),Ow&&e&&(r=Ow(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;if(e){var c=Iw.createColors(!0),u=c.bold,d=c.gray,p=c.red;n=function(e){return u(p(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(kx(Error)),Tw=Mw;Mw.default=Mw;var Lw={};Lw.isClean=Symbol("isClean"),Lw.my=Symbol("my");var Pw={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},jw=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Pw[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=Pw[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Nw=jw;jw.default=jw;var Dw=Nw;function Bw(e,t){new Dw(t).stringify(e)}var Fw=Bw;Bw.default=Bw;var $w=Lw.isClean,zw=Lw.my,Uw=Tw,Ww=Nw,qw=Fw;function Vw(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":Cx(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return Vw(e,r)})):("object"===o&&null!==i&&(i=Vw(i)),r[n]=i)}return r}var Hw=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[$w]=!1,this[zw]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Ax(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Vw(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Uw(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[$w]){this[$w]=!1;for(var e=this;e=e.parent;)e[$w]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Ww).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Ax(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":Cx(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":Cx(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=qw),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},mx(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Gw=Hw;Hw.default=Hw;var Zw=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=gx({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return yx(t,e),mx(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Gw),Kw=Zw;Zw.default=Zw;var Xw=Rw.SourceMapConsumer,Yw=Rw.SourceMapGenerator,Jw=Rw.existsSync,Qw=Rw.readFileSync,eC=Rw.dirname,tC=Rw.join,rC=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eC(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Xw(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":Cx(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=eC(e),Jw(e))return this.mapFile=e,Qw(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(bx(t,Xw))return Yw.fromSourceMap(t).toString();if(bx(t,Yw))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=tC(eC(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),nC=rC;rC.default=rC;var iC=Rw.SourceMapConsumer,oC=Rw.SourceMapGenerator,sC=Rw.fileURLToPath,aC=Rw.pathToFileURL,lC=Rw.isAbsolute,cC=Rw.resolve,uC=Rw,dC=Tw,pC=nC,hC=Symbol("fromOffsetCache"),fC=Boolean(iC&&oC),mC=Boolean(cC&&lC),gC=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":Cx(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!mC||/^\w+:\/\//.test(t.from)||lC(t.from)?this.file=t.from:this.file=cC(t.from)),mC&&fC){var r=new pC(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":Cx(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);o=u.line,s=u.col}else o=l.line,s=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var p=this.origin(t,r,o,s);return(i=p?new dC(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new dC(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(aC&&(i.input.url=aC(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[hC])t=this[hC];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[hC]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:cC(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=lC(a.source)?aC(a.source):new URL(a.source,this.map.consumer().sourceRoot||aC(this.map.mapFile));var l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!sC)throw new Error("file: protocol is not available in this PostCSS build");l.file=sC(o)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=gx({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},mx(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),vC=gC;gC.default=gC,uC&&uC.registerInput&&uC.registerInput(gC);var yC=Rw.SourceMapConsumer,bC=Rw.SourceMapGenerator,xC=Rw.dirname,wC=Rw.relative,CC=Rw.resolve,_C=Rw.sep,kC=Rw.pathToFileURL,SC=vC,AC=Boolean(yC&&bC),EC=Boolean(xC&&CC&&wC&&_C),RC=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Ax(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||xC(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new yC(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),EC&&AC&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=bC.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new bC({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new bC({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?xC(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=xC(CC(r,this.mapOpts.annotation)));var n=wC(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new SC(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(kC){var r=kC(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===_C&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),IC=RC,OC=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return yx(t,e),t}(Gw),MC=OC;OC.default=OC;var TC,LC,PC,jC,NC=Lw.isClean,DC=Lw.my,BC=Kw,FC=MC;function $C(e){return e.map((function(e){return e.nodes&&(e.nodes=$C(e.nodes)),delete e.source,e}))}function zC(e){if(e[NC]=!1,e.proxyOf.nodes)for(var t,r=Ax(e.proxyOf.nodes);!(t=r()).done;)zC(t.value)}var UC=function(e){function t(){return e.apply(this,arguments)||this}yx(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Ax(t);!(n=i()).done;)for(var o,s=n.value,a=Ax(this.normalize(s,this.last));!(o=a()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Ax(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Ax(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Ax(o);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(n,0,l)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=$C(TC(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Ax(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=Ax(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new BC(e)]}else if(e.selector)e=[new LC(e)];else if(e.name)e=[new PC(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new FC(e)]}var u=e.map((function(e){return e[DC]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[NC]&&zC(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return u},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Ax(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),l=Ax(a);!(o=l()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Ax(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},mx(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Gw);UC.registerParse=function(e){TC=e},UC.registerRule=function(e){LC=e},UC.registerAtRule=function(e){PC=e},UC.registerRoot=function(e){jC=e};var WC=UC;UC.default=UC,UC.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,PC.prototype):"rule"===e.type?Object.setPrototypeOf(e,LC.prototype):"decl"===e.type?Object.setPrototypeOf(e,BC.prototype):"comment"===e.type?Object.setPrototypeOf(e,FC.prototype):"root"===e.type&&Object.setPrototypeOf(e,jC.prototype),e[DC]=!0,e.nodes&&e.nodes.forEach((function(e){UC.rebuild(e)}))};var qC,VC,HC=function(e){function t(t){var r;return(r=e.call(this,gx({type:"document"},t))||this).nodes||(r.nodes=[]),r}return yx(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new qC(new VC,this,e).stringify()},t}(WC);HC.registerLazyResult=function(e){qC=e},HC.registerProcessor=function(e){VC=e};var GC=HC;HC.default=HC;var ZC=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),KC=ZC;ZC.default=ZC;var XC=KC,YC=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new XC(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},mx(e,[{key:"content",get:function(){return this.css}}]),e}(),JC=YC;YC.default=YC;var QC="'".charCodeAt(0),e_='"'.charCodeAt(0),t_="\\".charCodeAt(0),r_="/".charCodeAt(0),n_="\n".charCodeAt(0),i_=" ".charCodeAt(0),o_="\f".charCodeAt(0),s_="\t".charCodeAt(0),a_="\r".charCodeAt(0),l_="[".charCodeAt(0),c_="]".charCodeAt(0),u_="(".charCodeAt(0),d_=")".charCodeAt(0),p_="{".charCodeAt(0),h_="}".charCodeAt(0),f_=";".charCodeAt(0),m_="*".charCodeAt(0),g_=":".charCodeAt(0),v_="@".charCodeAt(0),y_=/[\t\n\f\r "#'()/;[\\\]{}]/g,b_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,x_=/.[\r\n"'(/\\]/,w_=/[\da-f]/i,C_=WC,k_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}yx(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(C_),S_=k_;k_.default=k_,C_.registerAtRule(k_);var A_,E_,R_=WC,I_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}yx(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Ax(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new A_(new E_,this,e).stringify()},t}(R_);I_.registerLazyResult=function(e){A_=e},I_.registerProcessor=function(e){E_=e};var O_=I_;I_.default=I_,R_.registerRoot(I_);var M_={comma:function(e){return M_.split(e,[","],!0)},space:function(e){return M_.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,l=!1,c="",u=!1,d=Ax(e);!(n=d()).done;){var p=n.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},T_=M_;M_.default=M_;var L_=WC,P_=T_,j_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return yx(t,e),mx(t,[{key:"selectors",get:function(){return P_.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(L_),N_=j_;j_.default=j_,L_.registerRule(j_);var D_=Kw,B_=MC,F_=S_,$_=O_,z_=N_,U_={empty:!0,space:!0},W_=function(){function e(e){this.input=e,this.root=new $_,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new F_;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Ax(e.entries());!(i=s()).done;){var a=i.value,l=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new B_;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,l,c,u,d,p=e.css.valueOf(),h=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case n_:case i_:case s_:case a_:case o_:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===i_||r===n_||r===s_||r===a_||r===o_);d=["space",p.slice(m,n)],m=n-1;break;case l_:case c_:case p_:case h_:case g_:case f_:case d_:var b=String.fromCharCode(r);d=[b,b,m];break;case u_:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==QC&&u!==e_&&u!==i_&&u!==n_&&u!==s_&&u!==o_&&u!==a_){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===t_;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||x_.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case QC:case e_:i=r===QC?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===t_;)l-=1,a=!a}while(a);d=["string",p.slice(m,n+1),m,n],m=n;break;case v_:y_.lastIndex=m+1,y_.test(p),n=0===y_.lastIndex?p.length-1:y_.lastIndex-2,d=["at-word",p.slice(m,n+1),m,n],m=n;break;case t_:for(n=m,s=!0;p.charCodeAt(n+1)===t_;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==r_&&r!==i_&&r!==n_&&r!==s_&&r!==a_&&r!==o_&&(n+=1,w_.test(p.charAt(n)))){for(;w_.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===i_&&(n+=1)}d=["word",p.slice(m,n+1),m,n],m=n;break;default:r===r_&&p.charCodeAt(m+1)===m_?(0===(n=p.indexOf("*/",m+2)+1)&&(h||t?n=p.length:y("comment")),d=["comment",p.slice(m,n+1),m,n],m=n):(b_.lastIndex=m+1,b_.test(p),n=0===b_.lastIndex?p.length-1:b_.lastIndex-2,d=["word",p.slice(m,n+1),m,n],g.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new D_;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var h=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}))&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new z_;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,l=r.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(a=r[d-1]?r[d-1][0]:"empty",s=r[d+1]?r[d+1][0]:"empty",U_[a]||U_[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new z_;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),q_=WC,V_=W_,H_=vC;function G_(e,t){var r=new H_(e,t),n=new V_(r);try{n.parse()}catch(e){throw e}return n.root}var Z_=G_;G_.default=G_,q_.registerParse(G_);var K_=Lw.isClean,X_=Lw.my,Y_=IC,J_=Fw,Q_=WC,ek=GC,tk=JC,rk=Z_,nk=O_,ik={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ok={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},sk={Once:!0,postcssPlugin:!0,prepare:!0};function ak(e){return"object"===(void 0===e?"undefined":Cx(e))&&"function"==typeof e.then}function lk(e){var t=!1,r=ik[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function ck(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:lk(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function uk(e){return e[K_]=!1,e.nodes&&e.nodes.forEach((function(e){return uk(e)})),e}var dk={},pk=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":Cx(r))||null===r||"root"!==r.type&&"document"!==r.type)if(bx(r,e)||bx(r,tk))i=uk(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=rk;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[X_]&&Q_.rebuild(i)}else i=uk(r);this.result=new tk(t,i,n),this.helpers=gx({},dk,{postcss:dk,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":Cx(e))&&e.prepare?gx({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Ax(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":Cx(i)))for(var o in i){if(!ok[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!sk[o])if("object"===Cx(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return hx((function(){var t,r,n,i,o,s,a,l,c,u,d,p;return Ex(this,(function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!ak(n=e.runOnRoot(r)))return[3,5];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,n];case 3:return h.sent(),[3,5];case 4:throw i=h.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,h.label=7;case 7:if(o[K_])return[3,14];o[K_]=!0,s=[ck(o)],h.label=8;case 8:if(!(s.length>0))return[3,13];if(!ak(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return Ex(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},d=Ax(e.listeners.OnceExit),h.label=15;case 15:return(p=d()).done?[3,18]:[5,Rx(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":Cx(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return ak(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=J_;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Y_(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Ax(this.plugins);!(e=t()).done;){var r=e.value;if(ak(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[K_];)n[K_]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Ax(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Ax(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ak(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,l=t.iterator;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[K_])return a[K_]=!0,void e.push(ck(a));t.iterator=0,delete r.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[K_]=!0,t.iterator=r.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[K_]=!0;for(var r,n=Ax(lk(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[K_]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},mx(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();pk.registerPostcss=function(e){dk=e};var hk=pk;pk.default=pk,nk.registerLazyResult(pk),ek.registerLazyResult(pk);var fk=IC,mk=Fw,gk=Z_,vk=JC,yk=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=mk;this.result=new vk(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new fk(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},mx(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=gk;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),bk=yk;yk.default=yk;var xk=bk,wk=hk,Ck=GC,_k=O_,kk=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Ax(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":Cx(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":Cx(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":Cx(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new wk(this,e,t):new xk(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Sk=kk;kk.default=kk,_k.registerProcessor(kk),Ck.registerProcessor(kk);var Ak=Kw,Ek=nC,Rk=MC,Ik=S_,Ok=vC,Mk=O_,Tk=N_;function Lk(e,t){if(Array.isArray(e))return e.map((function(e){return Lk(e)}));var r=e.inputs,n=xx(e,["inputs"]);if(r){t=[];for(var i,o=Ax(r);!(i=o()).done;){var s=gx({},i.value,{__proto__:Ok.prototype});s.map&&(s.map=gx({},s.map,{__proto__:Ek.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return Lk(e,t)}))),n.source){var a=n.source,l=a.inputId,c=xx(a,["inputId"]);n.source=c,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new Mk(n);if("decl"===n.type)return new Ak(n);if("rule"===n.type)return new Tk(n);if("comment"===n.type)return new Rk(n);if("atrule"===n.type)return new Ik(n);throw new Error("Unknown node type: "+e.type)}var Pk=Lk;Lk.default=Lk;var jk=Tw,Nk=Kw,Dk=hk,Bk=WC,Fk=Sk,$k=Fw,zk=Pk,Uk=GC,Wk=KC,qk=MC,Vk=S_,Hk=JC,Gk=vC,Zk=Z_,Kk=T_,Xk=N_,Yk=O_,Jk=Gw;function Qk(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Fk(t)}Qk.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Fk).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Qk([i(r)]).process(e,t)},i},Qk.stringify=$k,Qk.parse=Zk,Qk.fromJSON=zk,Qk.list=Kk,Qk.comment=function(e){return new qk(e)},Qk.atRule=function(e){return new Vk(e)},Qk.decl=function(e){return new Nk(e)},Qk.rule=function(e){return new Xk(e)},Qk.root=function(e){return new Yk(e)},Qk.document=function(e){return new Uk(e)},Qk.CssSyntaxError=jk,Qk.Declaration=Nk,Qk.Container=Bk,Qk.Processor=Fk,Qk.Document=Uk,Qk.Comment=qk,Qk.Warning=Wk,Qk.AtRule=Vk,Qk.Result=Hk,Qk.Input=Gk,Qk.Rule=Xk,Qk.Root=Yk,Qk.Node=Jk,Dk.registerPostcss(Qk),Qk.default=Qk;var eS=Object.defineProperty,tS=function(e,t,r){return function(e,t,r){return t in e?eS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":Cx(t))?t+"":t,r)},rS={exports:{}},nS=String,iS=function(){return{isColorSupported:!1,reset:nS,bold:nS,dim:nS,italic:nS,underline:nS,inverse:nS,hidden:nS,strikethrough:nS,black:nS,red:nS,green:nS,yellow:nS,blue:nS,magenta:nS,cyan:nS,white:nS,gray:nS,bgBlack:nS,bgRed:nS,bgGreen:nS,bgYellow:nS,bgBlue:nS,bgMagenta:nS,bgCyan:nS,bgWhite:nS}};rS.exports=iS(),rS.exports.createColors=iS;var oS=rS.exports,sS=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return bx(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),aS=oS,lS=sS,cS=function(e){function t(r,n,i,o,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),o&&(l.source=o),a&&(l.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}yx(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=aS.isColorSupported),lS&&e&&(r=lS(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;if(e){var c=aS.createColors(!0),u=c.bold,d=c.gray,p=c.red;n=function(e){return u(p(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(kx(Error)),uS=cS;cS.default=cS;var dS={};dS.isClean=Symbol("isClean"),dS.my=Symbol("my");var pS={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},hS=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return pS[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=pS[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),fS=hS;hS.default=hS;var mS=fS;function gS(e,t){new mS(t).stringify(e)}var vS=gS;gS.default=gS;var yS=dS.isClean,bS=dS.my,xS=uS,wS=fS,CS=vS;function _S(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":Cx(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return _S(e,r)})):("object"===o&&null!==i&&(i=_S(i)),r[n]=i)}return r}var kS=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[yS]=!1,this[bS]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Ax(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=_S(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new xS(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[yS]){this[yS]=!1;for(var e=this;e=e.parent;)e[yS]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new wS).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Ax(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":Cx(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":Cx(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=CS),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},mx(e,[{key:"proxyOf",get:function(){return this}}]),e}(),SS=kS;kS.default=kS;var AS=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=gx({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return yx(t,e),mx(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(SS),ES=AS;AS.default=AS;var RS=sS.SourceMapConsumer,IS=sS.SourceMapGenerator,OS=sS.existsSync,MS=sS.readFileSync,TS=sS.dirname,LS=sS.join,PS=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=TS(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new RS(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":Cx(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=TS(e),OS(e))return this.mapFile=e,MS(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(bx(t,RS))return IS.fromSourceMap(t).toString();if(bx(t,IS))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=LS(TS(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),jS=PS;PS.default=PS;var NS=sS.SourceMapConsumer,DS=sS.SourceMapGenerator,BS=sS.fileURLToPath,FS=sS.pathToFileURL,$S=sS.isAbsolute,zS=sS.resolve,US=sS,WS=uS,qS=jS,VS=Symbol("fromOffsetCache"),HS=Boolean(NS&&DS),GS=Boolean(zS&&$S),ZS=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":Cx(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!GS||/^\w+:\/\//.test(t.from)||$S(t.from)?this.file=t.from:this.file=zS(t.from)),GS&&HS){var r=new qS(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":Cx(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);o=u.line,s=u.col}else o=l.line,s=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var p=this.origin(t,r,o,s);return(i=p?new WS(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new WS(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(FS&&(i.input.url=FS(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[VS])t=this[VS];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[VS]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:zS(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=$S(a.source)?FS(a.source):new URL(a.source,this.map.consumer().sourceRoot||FS(this.map.mapFile));var l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!BS)throw new Error("file: protocol is not available in this PostCSS build");l.file=BS(o)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=gx({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},mx(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),KS=ZS;ZS.default=ZS,US&&US.registerInput&&US.registerInput(ZS);var XS=sS.SourceMapConsumer,YS=sS.SourceMapGenerator,JS=sS.dirname,QS=sS.relative,eA=sS.resolve,tA=sS.sep,rA=sS.pathToFileURL,nA=KS,iA=Boolean(XS&&YS),oA=Boolean(JS&&eA&&QS&&tA),sA=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Ax(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||JS(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new XS(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),oA&&iA&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=YS.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new YS({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new YS({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?JS(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=JS(eA(r,this.mapOpts.annotation)));var n=QS(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new nA(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(rA){var r=rA(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===tA&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),aA=sA,lA=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return yx(t,e),t}(SS),cA=lA;lA.default=lA;var uA,dA,pA,hA,fA=dS.isClean,mA=dS.my,gA=ES,vA=cA;function yA(e){return e.map((function(e){return e.nodes&&(e.nodes=yA(e.nodes)),delete e.source,e}))}function bA(e){if(e[fA]=!1,e.proxyOf.nodes)for(var t,r=Ax(e.proxyOf.nodes);!(t=r()).done;)bA(t.value)}var xA=function(e){function t(){return e.apply(this,arguments)||this}yx(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Ax(t);!(n=i()).done;)for(var o,s=n.value,a=Ax(this.normalize(s,this.last));!(o=a()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Ax(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Ax(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Ax(o);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(n,0,l)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=yA(uA(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Ax(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=Ax(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new gA(e)]}else if(e.selector)e=[new dA(e)];else if(e.name)e=[new pA(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new vA(e)]}var u=e.map((function(e){return e[mA]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[fA]&&bA(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return u},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Ax(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),l=Ax(a);!(o=l()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Ax(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},mx(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(SS);xA.registerParse=function(e){uA=e},xA.registerRule=function(e){dA=e},xA.registerAtRule=function(e){pA=e},xA.registerRoot=function(e){hA=e};var wA=xA;xA.default=xA,xA.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,pA.prototype):"rule"===e.type?Object.setPrototypeOf(e,dA.prototype):"decl"===e.type?Object.setPrototypeOf(e,gA.prototype):"comment"===e.type?Object.setPrototypeOf(e,vA.prototype):"root"===e.type&&Object.setPrototypeOf(e,hA.prototype),e[mA]=!0,e.nodes&&e.nodes.forEach((function(e){xA.rebuild(e)}))};var CA,_A,kA=function(e){function t(t){var r;return(r=e.call(this,gx({type:"document"},t))||this).nodes||(r.nodes=[]),r}return yx(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new CA(new _A,this,e).stringify()},t}(wA);kA.registerLazyResult=function(e){CA=e},kA.registerProcessor=function(e){_A=e};var SA=kA;kA.default=kA;var AA=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),EA=AA;AA.default=AA;var RA=EA,IA=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new RA(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},mx(e,[{key:"content",get:function(){return this.css}}]),e}(),OA=IA;IA.default=IA;var MA="'".charCodeAt(0),TA='"'.charCodeAt(0),LA="\\".charCodeAt(0),PA="/".charCodeAt(0),jA="\n".charCodeAt(0),NA=" ".charCodeAt(0),DA="\f".charCodeAt(0),BA="\t".charCodeAt(0),FA="\r".charCodeAt(0),$A="[".charCodeAt(0),zA="]".charCodeAt(0),UA="(".charCodeAt(0),WA=")".charCodeAt(0),qA="{".charCodeAt(0),VA="}".charCodeAt(0),HA=";".charCodeAt(0),GA="*".charCodeAt(0),ZA=":".charCodeAt(0),KA="@".charCodeAt(0),XA=/[\t\n\f\r "#'()/;[\\\]{}]/g,YA=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,JA=/.[\r\n"'(/\\]/,QA=/[\da-f]/i,eE=wA,tE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}yx(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(eE),rE=tE;tE.default=tE,eE.registerAtRule(tE);var nE,iE,oE=wA,sE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}yx(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Ax(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new nE(new iE,this,e).stringify()},t}(oE);sE.registerLazyResult=function(e){nE=e},sE.registerProcessor=function(e){iE=e};var aE=sE;sE.default=sE,oE.registerRoot(sE);var lE={comma:function(e){return lE.split(e,[","],!0)},space:function(e){return lE.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,l=!1,c="",u=!1,d=Ax(e);!(n=d()).done;){var p=n.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},cE=lE;lE.default=lE;var uE=wA,dE=cE,pE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return yx(t,e),mx(t,[{key:"selectors",get:function(){return dE.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(uE),hE=pE;pE.default=pE,uE.registerRule(pE);var fE=ES,mE=cA,gE=rE,vE=aE,yE=hE,bE={empty:!0,space:!0},xE=function(){function e(e){this.input=e,this.root=new vE,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new gE;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Ax(e.entries());!(i=s()).done;){var a=i.value,l=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new mE;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,l,c,u,d,p=e.css.valueOf(),h=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case jA:case NA:case BA:case FA:case DA:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===NA||r===jA||r===BA||r===FA||r===DA);d=["space",p.slice(m,n)],m=n-1;break;case $A:case zA:case qA:case VA:case ZA:case HA:case WA:var b=String.fromCharCode(r);d=[b,b,m];break;case UA:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==MA&&u!==TA&&u!==NA&&u!==jA&&u!==BA&&u!==DA&&u!==FA){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===LA;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||JA.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case MA:case TA:i=r===MA?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===LA;)l-=1,a=!a}while(a);d=["string",p.slice(m,n+1),m,n],m=n;break;case KA:XA.lastIndex=m+1,XA.test(p),n=0===XA.lastIndex?p.length-1:XA.lastIndex-2,d=["at-word",p.slice(m,n+1),m,n],m=n;break;case LA:for(n=m,s=!0;p.charCodeAt(n+1)===LA;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==PA&&r!==NA&&r!==jA&&r!==BA&&r!==FA&&r!==DA&&(n+=1,QA.test(p.charAt(n)))){for(;QA.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===NA&&(n+=1)}d=["word",p.slice(m,n+1),m,n],m=n;break;default:r===PA&&p.charCodeAt(m+1)===GA?(0===(n=p.indexOf("*/",m+2)+1)&&(h||t?n=p.length:y("comment")),d=["comment",p.slice(m,n+1),m,n],m=n):(YA.lastIndex=m+1,YA.test(p),n=0===YA.lastIndex?p.length-1:YA.lastIndex-2,d=["word",p.slice(m,n+1),m,n],g.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new fE;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var h=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}))&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new yE;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,l=r.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(a=r[d-1]?r[d-1][0]:"empty",s=r[d+1]?r[d+1][0]:"empty",bE[a]||bE[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new yE;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),wE=wA,CE=xE,_E=KS;function kE(e,t){var r=new _E(e,t),n=new CE(r);try{n.parse()}catch(e){throw e}return n.root}var SE=kE;kE.default=kE,wE.registerParse(kE);var AE=dS.isClean,EE=dS.my,RE=aA,IE=vS,OE=wA,ME=SA,TE=OA,LE=SE,PE=aE,jE={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},NE={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},DE={Once:!0,postcssPlugin:!0,prepare:!0};function BE(e){return"object"===(void 0===e?"undefined":Cx(e))&&"function"==typeof e.then}function FE(e){var t=!1,r=jE[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function $E(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:FE(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function zE(e){return e[AE]=!1,e.nodes&&e.nodes.forEach((function(e){return zE(e)})),e}var UE={},WE=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":Cx(r))||null===r||"root"!==r.type&&"document"!==r.type)if(bx(r,e)||bx(r,TE))i=zE(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=LE;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[EE]&&OE.rebuild(i)}else i=zE(r);this.result=new TE(t,i,n),this.helpers=gx({},UE,{postcss:UE,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":Cx(e))&&e.prepare?gx({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Ax(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":Cx(i)))for(var o in i){if(!NE[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!DE[o])if("object"===Cx(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return hx((function(){var t,r,n,i,o,s,a,l,c,u,d,p;return Ex(this,(function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!BE(n=e.runOnRoot(r)))return[3,5];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,n];case 3:return h.sent(),[3,5];case 4:throw i=h.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,h.label=7;case 7:if(o[AE])return[3,14];o[AE]=!0,s=[$E(o)],h.label=8;case 8:if(!(s.length>0))return[3,13];if(!BE(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return Ex(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},d=Ax(e.listeners.OnceExit),h.label=15;case 15:return(p=d()).done?[3,18]:[5,Rx(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":Cx(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return BE(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=IE;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new RE(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Ax(this.plugins);!(e=t()).done;){var r=e.value;if(BE(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[AE];)n[AE]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Ax(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Ax(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(BE(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,l=t.iterator;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[AE])return a[AE]=!0,void e.push($E(a));t.iterator=0,delete r.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[AE]=!0,t.iterator=r.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[AE]=!0;for(var r,n=Ax(FE(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[AE]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},mx(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();WE.registerPostcss=function(e){UE=e};var qE=WE;WE.default=WE,PE.registerLazyResult(WE),ME.registerLazyResult(WE);var VE=aA,HE=vS,GE=SE,ZE=OA,KE=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=HE;this.result=new ZE(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new VE(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},mx(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=GE;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),XE=KE;KE.default=KE;var YE=XE,JE=qE,QE=SA,eR=aE,tR=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Ax(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":Cx(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":Cx(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":Cx(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new JE(this,e,t):new YE(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),rR=tR;tR.default=tR,eR.registerProcessor(tR),QE.registerProcessor(tR);var nR=ES,iR=jS,oR=cA,sR=rE,aR=KS,lR=aE,cR=hE;function uR(e,t){if(Array.isArray(e))return e.map((function(e){return uR(e)}));var r=e.inputs,n=xx(e,["inputs"]);if(r){t=[];for(var i,o=Ax(r);!(i=o()).done;){var s=gx({},i.value,{__proto__:aR.prototype});s.map&&(s.map=gx({},s.map,{__proto__:iR.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return uR(e,t)}))),n.source){var a=n.source,l=a.inputId,c=xx(a,["inputId"]);n.source=c,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new lR(n);if("decl"===n.type)return new nR(n);if("rule"===n.type)return new cR(n);if("comment"===n.type)return new oR(n);if("atrule"===n.type)return new sR(n);throw new Error("Unknown node type: "+e.type)}var dR=uR;uR.default=uR;var pR=uS,hR=ES,fR=qE,mR=wA,gR=rR,vR=vS,yR=dR,bR=SA,xR=EA,wR=cA,CR=rE,_R=OA,kR=KS,SR=SE,AR=cE,ER=hE,RR=aE,IR=SS;function OR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new gR(t)}OR.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new gR).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return OR([i(r)]).process(e,t)},i},OR.stringify=vR,OR.parse=SR,OR.fromJSON=yR,OR.list=AR,OR.comment=function(e){return new wR(e)},OR.atRule=function(e){return new CR(e)},OR.decl=function(e){return new hR(e)},OR.rule=function(e){return new ER(e)},OR.root=function(e){return new RR(e)},OR.document=function(e){return new bR(e)},OR.CssSyntaxError=pR,OR.Declaration=hR,OR.Container=mR,OR.Processor=gR,OR.Document=bR,OR.Comment=wR,OR.Warning=xR,OR.AtRule=CR,OR.Result=_R,OR.Input=kR,OR.Rule=ER,OR.Root=RR,OR.Node=IR,fR.registerPostcss(OR),OR.default=OR;var MR=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];tS(this,"parentElement",null),tS(this,"parentNode",null),tS(this,"ownerDocument"),tS(this,"firstChild",null),tS(this,"lastChild",null),tS(this,"previousSibling",null),tS(this,"nextSibling",null),tS(this,"ELEMENT_NODE",1),tS(this,"TEXT_NODE",3),tS(this,"nodeType"),tS(this,"nodeName"),tS(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!bx(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},mx(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),TR={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},LR={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},PR={};function jR(e){if(PR[e])return PR[e];var t=globalThis[e],r=t.prototype,n=e in TR?TR[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in LR?LR[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return PR[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?PR[e]=c:r}catch(e){return r}}var NR={};function DR(e,t,r){var n,i=e+"."+String(r);if(NR[i])return NR[i].call(t);var o=jR(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(NR[i]=s,s.call(t)):t[r]}var BR={};function FR(e,t,r){var n=e+"."+String(r);if(BR[n])return BR[n].bind(t);var i=jR(e)[r];return"function"!=typeof i?t[r]:(BR[n]=i,i.bind(t))}function $R(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var zR=function(e){return DR("Node",e,"childNodes")},UR=function(e){return DR("Node",e,"parentNode")},WR=function(e){return DR("Node",e,"parentElement")},qR=function(e){return DR("Node",e,"textContent")},VR=function(e,t){return FR("Node",e,"contains")(t)},HR=function(e){return FR("Node",e,"getRootNode")()},GR=function(e){return e&&"host"in e?DR("ShadowRoot",e,"host"):null},ZR=function(e){return e&&"shadowRoot"in e?DR("Element",e,"shadowRoot"):null};function KR(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var XR="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",YR={map:{},getId:function(){return console.error(XR),-1},getNode:function(){return console.error(XR),null},removeNodeFromMap:function(){console.error(XR)},has:function(){return console.error(XR),!1},reset:function(){console.error(XR)}};function JR(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=Date.now();i||!1!==r.leading||(i=l);var c=t-(l-i),u=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=l,e.apply(u,s)):n||!1===r.trailing||(n=setTimeout((function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(u,s)}),c))}}function QR(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),o&&o.set&&o.set.call(this,e)}}),function(){return QR(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(YR=new Proxy(YR,{get:function(e,t,r){return"map"===t&&console.error(XR),Reflect.get(e,t,r)}}));var eI=Date.now;function tI(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=WR(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=WR(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function rI(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nI(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iI(e){return e?e.nodeType===e.ELEMENT_NODE?e:WR(e):null}function oI(e,t,r,n){if(!e)return!1;var i=iI(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(xw(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function sI(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function aI(e,t){if(Hx(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=UR(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||aI(n,t))}function lI(e){return Boolean(e.changedTouches)}function cI(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function uI(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function dI(e){return!!e&&(bx(e,MR)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ZR(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(eI=function(){return(new Date).getTime()});var pI=function(){function e(){Mx(this,"id",1),Mx(this,"styleIDMap",new WeakMap),Mx(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function hI(e){var t,r=null;return"getRootNode"in e&&(null==(t=HR(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&GR(HR(e))&&(r=GR(HR(e))),r}function fI(e){var t=e.ownerDocument;return!!t&&(VR(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=hI(r);)r=t;return r}(e);return VR(t,r)}(e))}var mI=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(mI||{}),gI=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(gI||{}),vI=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(vI||{}),yI=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(yI||{}),bI=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(bI||{}),xI=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(xI||{}),wI=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(wI||{});function CI(e){return"__ln"in e}var _I,kI=function(){function e(){Mx(this,"length",0),Mx(this,"head",null),Mx(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&CI(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&CI(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),SI=function(e,t){return e+"@"+t},AI=function(){function e(){var e=this;Mx(this,"frozen",!1),Mx(this,"locked",!1),Mx(this,"texts",[]),Mx(this,"attributes",[]),Mx(this,"attributeMap",new WeakMap),Mx(this,"removes",[]),Mx(this,"mapRemoves",[]),Mx(this,"movedMap",{}),Mx(this,"addedSet",new Set),Mx(this,"movedSet",new Set),Mx(this,"droppedSet",new Set),Mx(this,"removesSubTreeCache",new Set),Mx(this,"mutationCb"),Mx(this,"blockClass"),Mx(this,"blockSelector"),Mx(this,"maskTextClass"),Mx(this,"maskTextSelector"),Mx(this,"inlineStylesheet"),Mx(this,"maskInputOptions"),Mx(this,"maskTextFn"),Mx(this,"maskInputFn"),Mx(this,"keepIframeSrcFn"),Mx(this,"recordCanvas"),Mx(this,"inlineImages"),Mx(this,"slimDOMOptions"),Mx(this,"dataURLOptions"),Mx(this,"doc"),Mx(this,"mirror"),Mx(this,"iframeManager"),Mx(this,"stylesheetManager"),Mx(this,"shadowDomManager"),Mx(this,"canvasManager"),Mx(this,"processedNodeManager"),Mx(this,"unattachedDoc"),Mx(this,"processMutations",(function(t){t.forEach(e.processMutation),e.emit()})),Mx(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new kI,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=UR(o);if(s&&fI(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var l=s.tagName;if("TEXTAREA"===l)return;"STYLE"===l&&e.addedSet.has(s)&&(a=!0)}var c=Hx(s)?e.mirror.getId(hI(o)):e.mirror.getId(s),u=i(o);if(-1===c||-1===u)return n.addNode(o);var d=_w(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){cI(t,e.mirror)&&e.iframeManager.addIframe(t),uI(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),dI(o)&&e.shadowDomManager.addShadowRoot(ZR(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});d&&(t.push({parentId:c,nextId:u,node:d}),r.add(d.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,l=Ax(e.movedSet);!(a=l()).done;){var c=a.value;RI(e.removesSubTreeCache,c)&&!e.movedSet.has(UR(c))||o(c)}for(var u,d=Ax(e.addedSet);!(u=d()).done;){var p=u.value;II(e.droppedSet,p)||RI(e.removesSubTreeCache,p)?II(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var h=null;n.length;){var f=null;if(h){var m=e.mirror.getId(UR(h.value)),g=i(h.value);-1!==m&&-1!==g&&(f=h)}if(!f)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var b=e.mirror.getId(UR(y.value));if(-1===i(y.value))continue;if(-1!==b){f=y;break}var x=y.value,w=UR(x);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var C=GR(w);if(-1!==e.mirror.getId(C)){f=y;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}h=f.previous,n.removeNode(f.value),o(f.value)}var _={texts:e.texts.map((function(t){var r=t.node,n=UR(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),attributes:e.attributes.map((function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),removes:e.removes,adds:t};(_.texts.length||_.attributes.length||_.removes.length||_.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(_))}})),Mx(this,"genTextAreaValueMutation",(function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(zR(t),(function(e){return qR(e)||""})).join("");r.attributes.value=Yx({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:ew(t),value:n,maskInputFn:e.maskInputFn})})),Mx(this,"processMutation",(function(t){if(!sI(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=qR(t.target);oI(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:ww(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,iI(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=ew(n);o=Yx({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(oI(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!bw(n.tagName,i))if(a.attributes[i]=yw(e.doc,Jx(n.tagName),Jx(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var l=e.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var c,u=Ax(Array.from(n.style));!(c=u()).done;){var d=c.value,p=n.style.getPropertyValue(d),h=n.style.getPropertyPriority(d);p!==l.style.getPropertyValue(d)||h!==l.style.getPropertyPriority(d)?a.styleDiff[d]=""===h?p:[p,h]:a._unchangedStyles[d]=[p,h]}for(var f,m=Ax(Array.from(l.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(oI(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach((function(r){return e.genAdds(r,t.target)})),t.removedNodes.forEach((function(r){var n=e.mirror.getId(r),i=Hx(t.target)?e.mirror.getId(GR(t.target)):e.mirror.getId(t.target);oI(t.target,e.blockClass,e.blockSelector,!1)||sI(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(EI(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||aI(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[SI(n,i)]?EI(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Hx(t.target)||!Gx(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),zR(n).forEach((function(e){return r.push(e)})))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))}))}})),Mx(this,"genAdds",(function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(sI(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[SI(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);oI(t,e.blockClass,e.blockSelector,!1)||(zR(t).forEach((function(t){return e.genAdds(t)})),dI(t)&&zR(ZR(t)).forEach((function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)})))}})),Mx(this,"cleanupRemovedNode",(function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach((function(t){e.cleanupRemovedNode(t)}))}))}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(r){t[r]=e[r]}))},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function EI(e,t){e.delete(t),zR(t).forEach((function(t){return EI(e,t)}))}function RI(e,t,r){return 0!==e.size&&function(e,t){var r=UR(t);return!!r&&e.has(r)}(e,t)}function II(e,t){return 0!==e.size&&OI(e,t)}function OI(e,t){var r=UR(t);return!!r&&(!!e.has(r)||OI(e,r))}var MI=function(e){return _I?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(_I&&!0===_I(e))return;throw e}}:e},TI=[];function LI(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function PI(e,t){var r=new AI;TI.push(r),r.init(e);var n=new(jR("MutationObserver").constructor)(MI(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function jI(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=MI(JR(MI((function(e){var s=LI(e);if(s&&!oI(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var l=tI(r.defaultView);t({id:a,x:l.left,y:l.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}})),s.scroll||100));return KR("scroll",a,r)}var NI=["INPUT","TEXTAREA","SELECT"],DI=new WeakMap;function BI(e){return function(e,t){if(UI("CSSGroupingRule")&&bx(e.parentRule,CSSGroupingRule)||UI("CSSMediaRule")&&bx(e.parentRule,CSSMediaRule)||UI("CSSSupportsRule")&&bx(e.parentRule,CSSSupportsRule)||UI("CSSConditionRule")&&bx(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function FI(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function $I(e,t){var r,n,i,o,s=e.mirror,a=e.stylesheetManager;o="#document"===t.nodeName?s.getId(t):s.getId(GR(t));var l="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,c=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&l&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{a.adoptStyleSheets(e,o)}catch(e){}return r}}),MI((function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):function(){}}function zI(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,l=e.mediaInteractionCb,c=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,h=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=PI(e,e.doc));var i,o,s,a,l,c,u,d,p,h=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,l=[],c=JR(MI((function(e){var r=Date.now()-o;t(l.map((function(e){return e.timeOffset-=r,e})),e),l=[],o=null})),a),u=MI(JR(MI((function(e){var t=LI(e),r=lI(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=eI()),l.push({x:n,y:s,id:i.getId(t),timeOffset:eI()-o}),c("undefined"!=typeof DragEvent&&bx(e,DragEvent)?gI.Drag:bx(e,MouseEvent)?gI.MouseMove:gI.TouchMove)})),s,{trailing:!1})),d=[KR("mousemove",u,n),KR("touchmove",u,n),KR("drag",u,n)];return MI((function(){d.forEach((function(e){return e()}))}))}(e),f=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],c=null;return Object.keys(vI).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(e){var s=Jx(e),a=function(e){return function(r){var s=LI(r);if(!oI(s,i,o,!0)){var a=null,l=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=yI.Mouse;break;case"touch":a=yI.Touch;break;case"pen":a=yI.Pen}a===yI.Touch&&(vI[e]===vI.MouseDown?l="TouchStart":vI[e]===vI.MouseUp&&(l="TouchEnd"))}else lI(r)&&(a=yI.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===yI.Touch||l.startsWith("Mouse")&&a===yI.Mouse)&&(a=null)):vI[e]===vI.Click&&(a=c,c=null);var u=lI(r)?r.changedTouches[0]:r;if(u){var d=n.getId(s),p=u.clientX,h=u.clientY;MI(t)(gx({type:vI[l],id:d,x:p,y:h},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(vI[e]){case vI.MouseDown:case vI.MouseUp:s=s.replace("mouse","pointer");break;case vI.TouchStart:case vI.TouchEnd:return}l.push(KR(s,a,r))})),MI((function(){l.forEach((function(e){return e()}))}))}(e),m=jI(e),g=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=MI(JR(MI((function(){var e=rI(),t=nI();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)})),200));return KR("resize",s,n)}(e,{win:n}),v=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,l=e.maskInputOptions,c=e.maskInputFn,u=e.sampling,d=e.userTriggeredOnInput;function p(e){var t=LI(e),n=e.isTrusted,u=t&&t.tagName;if(t&&"OPTION"===u&&(t=WR(t)),t&&u&&!(NI.indexOf(u)<0)&&!oI(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,f=!1,m=ew(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(l[u.toLowerCase()]||l[m])&&(p=Yx({element:t,maskInputOptions:l,tagName:u,type:m,value:p,maskInputFn:c})),h(t,d?{text:p,isChecked:f,userTriggered:n}:{text:p,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach((function(e){if(e!==t){var r=e.value;h(e,d?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}}))}}function h(e,r){var i=DI.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){DI.set(e,r);var o=n.getId(e);MI(t)(gx({},r,{id:o}))}}var f=("last"===u.input?["change"]:["input","change"]).map((function(e){return KR(e,MI(p),r)})),m=r.defaultView;if(!m)return function(){f.forEach((function(e){return e()}))};var g,v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(g=f).push.apply(g,[].concat(y.map((function(e){return QR(e[0],e[1],{set:function(){MI(p)({target:this,isTrusted:!1})}},!1,m)})))),MI((function(){f.forEach((function(e){return e()}))}))}(e),y=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,l=i.mirror,c=i.sampling,u=i.doc,d=MI((function(e){return JR(MI((function(t){var r=LI(t);if(r&&!oI(r,s,a,!0)){var n=r.currentTime,i=r.volume,c=r.muted,u=r.playbackRate,d=r.loop;o({type:e,id:l.getId(r),currentTime:n,volume:i,muted:c,playbackRate:u,loop:d})}})),c.media||500)})),p=[KR("play",d(xI.Play),u),KR("pause",d(xI.Pause),u),KR("seeked",d(xI.Seeked),u),KR("volumechange",d(xI.VolumeChange),u),KR("ratechange",d(xI.RateChange),u)],MI((function(){p.forEach((function(e){return e()}))}))),b=function(){},x=function(){},w=function(){},C=function(){};e.recordDOM&&(b=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:MI((function(e,t,o){var s=o[0],a=o[1],l=FI(t,n,i.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,adds:[{rule:s,index:a}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,l,c=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:MI((function(e,t,o){var s=o[0],a=FI(t,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,removes:[{index:s}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:MI((function(e,t,o){var s=o[0],a=FI(t,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,replace:s}),e.apply(t,o)}))})),o.CSSStyleSheet.prototype.replaceSync&&(l=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:MI((function(e,t,o){var s=o[0],a=FI(t,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,replaceSync:s}),e.apply(t,o)}))}));var u={};WI("CSSGroupingRule")?u.CSSGroupingRule=o.CSSGroupingRule:(WI("CSSMediaRule")&&(u.CSSMediaRule=o.CSSMediaRule),WI("CSSConditionRule")&&(u.CSSConditionRule=o.CSSConditionRule),WI("CSSSupportsRule")&&(u.CSSSupportsRule=o.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=e[0],o=e[1];d[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(d[t].insertRule,{apply:MI((function(e,t,o){var s=o[0],a=o[1],l=FI(t.parentStyleSheet,n,i.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,adds:[{rule:s,index:[].concat(BI(t),[a||0])}]}),e.apply(t,o)}))}),o.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:MI((function(e,t,o){var s=o[0],a=FI(t.parentStyleSheet,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,removes:[{index:[].concat(BI(t),[s])}]}),e.apply(t,o)}))})})),MI((function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=c,a&&(o.CSSStyleSheet.prototype.replace=a),l&&(o.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach((function(e){var t=e[0],r=e[1];r.prototype.insertRule=d[t].insertRule,r.prototype.deleteRule=d[t].deleteRule}))}))}(e,{win:n}),x=$I(e,e.doc),w=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:MI((function(e,t,s){var l,c=s[0],u=s[1],d=s[2];if(i.has(c))return a.apply(t,[c,u,d]);var p=FI(null==(l=t.parentRule)?void 0:l.parentStyleSheet,n,o.styleMirror),h=p.id,f=p.styleId;return(h&&-1!==h||f&&-1!==f)&&r({id:h,styleId:f,set:{property:c,value:u,priority:d},index:BI(t.parentRule)}),e.apply(t,s)}))});var l=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:MI((function(e,t,s){var a,c=s[0];if(i.has(c))return l.apply(t,[c]);var u=FI(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),d=u.id,p=u.styleId;return(d&&-1!==d||p&&-1!==p)&&r({id:d,styleId:p,remove:{property:c},index:BI(t.parentRule)}),e.apply(t,s)}))}),MI((function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=l}))}(e,{win:n}),e.collectFonts&&(C=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=$R(r.fonts,"add",(function(e){return function(r){return setTimeout(MI((function(){var e=o.get(r);e&&(t(e),o.delete(r))})),0),e.apply(this,[r])}}));return i.push((function(){n.FontFace=s})),i.push(a),MI((function(){i.forEach((function(e){return e()}))}))}(e)));for(var _,k=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=MI((function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],l=e.rangeCount||0,c=0;c<l;c++){var u=e.getRangeAt(c),d=u.startContainer,p=u.startOffset,h=u.endContainer,f=u.endOffset;oI(d,n,i,!0)||oI(h,n,i,!0)||a.push({start:r.getId(d),startOffset:p,end:r.getId(h),endOffset:f})}o({ranges:a})}}));return a(),KR("selectionchange",a)}(e),S=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?$R(n.customElements,"define",(function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}})):function(){}}(e),A=[],E=Ax(e.plugins);!(_=E()).done;){var R=_.value;A.push(R.observer(R.callback,n,R.options))}return MI((function(){TI.forEach((function(e){return e.reset()})),null==r||r.disconnect(),h(),f(),m(),g(),v(),y(),b(),x(),w(),C(),k(),S(),A.forEach((function(e){return e()}))}))}function UI(e){return void 0!==window[e]}function WI(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var qI=function(){function e(e){Mx(this,"iframeIdToRemoteIdMap",new WeakMap),Mx(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,i)}))},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getRemoteId(e,t,n)}))},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),VI=function(){function e(e){Mx(this,"iframes",new WeakMap),Mx(this,"crossOriginIframeMap",new WeakMap),Mx(this,"crossOriginIframeMirror",new qI(pw)),Mx(this,"crossOriginIframeStyleMirror"),Mx(this,"crossOriginIframeRootIdMap",new WeakMap),Mx(this,"iframeContentDocumentMap",new WeakMap),Mx(this,"iframeObserverCleanupMap",new WeakMap),Mx(this,"mirror"),Mx(this,"mutationCb"),Mx(this,"wrappedEmit"),Mx(this,"loadListener"),Mx(this,"stylesheetManager"),Mx(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new qI(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case mI.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:mI.IncrementalSnapshot,data:{source:gI.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case mI.Meta:case mI.Load:case mI.DomContentLoaded:return!1;case mI.Plugin:return t;case mI.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case mI.IncrementalSnapshot:switch(t.data.source){case gI.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case gI.Drag:case gI.TouchMove:case gI.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case gI.ViewportResize:return!1;case gI.MediaInteraction:case gI.MouseInteraction:case gI.Scroll:case gI.CanvasMutation:case gI.Input:return this.replaceIds(t.data,e,["id"]),t;case gI.StyleSheetRule:case gI.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case gI.Font:return t;case gI.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case gI.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach((function(t){n.replaceStyleIds(t,e,["styleId"])})),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Ax(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((function(e){r.replaceIdOnNode(e,t)}))},t.patchRootIdOnNode=function(e,t){var r=this;e.type===wI.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((function(e){r.patchRootIdOnNode(e,t)}))},e}(),HI=function(){function e(e){Mx(this,"shadowDoms",new WeakSet),Mx(this,"mutationCb"),Mx(this,"scrollCb"),Mx(this,"bypassOptions"),Mx(this,"mirror"),Mx(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Gx(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=PI(gx({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return n.disconnect()})),this.restoreHandlers.push(jI(gx({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(GR(e))),r.restoreHandlers.push($I({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))}),0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push($R(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n),o=ZR(this);return o&&fI(this)&&r.addShadowRoot(o,t),i}})))},t.reset=function(){this.restoreHandlers.forEach((function(e){try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),GI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ZI="undefined"==typeof Uint8Array?[]:new Uint8Array(256),KI=0;KI<64;KI++)ZI[GI.charCodeAt(KI)]=KI;var XI=new Map,YI=function(e,t,r){if(e&&(eO(e,t)||"object"===(void 0===e?"undefined":Cx(e)))){var n=function(e,t){var r=XI.get(e);return r||(r=new Map,XI.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function JI(e,t,r){return bx(e,Array)?e.map((function(e){return JI(e,t,r)})):null===e?e:bx(e,Float32Array)||bx(e,Float64Array)||bx(e,Int32Array)||bx(e,Uint32Array)||bx(e,Uint8Array)||bx(e,Uint16Array)||bx(e,Int16Array)||bx(e,Int8Array)||bx(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:bx(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=GI[r[t]>>2],i+=GI[(3&r[t])<<4|r[t+1]>>4],i+=GI[(15&r[t+1])<<2|r[t+2]>>6],i+=GI[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:bx(e,DataView)?{rr_type:e.constructor.name,args:[JI(e.buffer,t,r),e.byteOffset,e.byteLength]}:bx(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:bx(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:bx(e,ImageData)?{rr_type:e.constructor.name,args:[JI(e.data,t,r),e.width,e.height]}:eO(e,t)||"object"===(void 0===e?"undefined":Cx(e))?{rr_type:e.constructor.name,index:YI(e,t,r)}:e}var QI=function(e,t,r){return e.map((function(e){return JI(e,t,r)}))},eO=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return bx(e,t[r])})))};function tO(e,t,r,n){var i=[];try{var o=$R(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!oI(this,t,r,!0)){var l=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=l),n&&["webgl","webgl2"].includes(l))if(s[0]&&"object"===Cx(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}}));i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach((function(e){return e()}))}}function rO(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var c=$R(e,a,(function(e){return function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=e.apply(this,l);if(YI(u,o,this),"tagName"in this.canvas&&!oI(this.canvas,n,i,!0)){var d=QI(l,o,this),p={type:t,property:a,args:d};r(this.canvas,p)}return u}}));l.push(c)}catch(n){var u=QR(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(u)}},l=[],c=Ax(Object.getOwnPropertyNames(e));!(s=c()).done;)a();return l}var nO,iO="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",oO="undefined"!=typeof window&&window.Blob&&new Blob([(nO=iO,Uint8Array.from(atob(nO),(function(e){return e.charCodeAt(0)})))],{type:"text/javascript;charset=utf-8"});function sO(e){var t;try{if(!(t=oO&&(window.URL||window.webkitURL).createObjectURL(oO)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",(function(){(window.URL||window.webkitURL).revokeObjectURL(t)})),r}catch(t){return new Worker("data:text/javascript;base64,"+iO,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var aO,lO,cO,uO=function(){function e(e){var t=this;Mx(this,"pendingCanvasMutations",new Map),Mx(this,"rafStamps",{latestId:0,invokeId:null}),Mx(this,"mirror"),Mx(this,"mutationCb"),Mx(this,"resetObservers"),Mx(this,"frozen",!1),Mx(this,"locked",!1),Mx(this,"processMutation",(function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)}));var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,l=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:l})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=tO(t,r,n,!0),a=new Map,l=new sO;l.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,l=r.height;o.mutationCb({id:t,type:bI["2D"],commands:[{property:"clearRect",args:[0,0,s,l]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var c,u=1e3/e,d=0,p=function(e){if(d&&e-d<u)c=requestAnimationFrame(p);else{d=e;var s,h=o;(s=[],t.document.querySelectorAll("canvas").forEach((function(e){oI(e,r,n,!0)||s.push(e)})),s).forEach(hx((function(e){var t,r,n,o;return Ex(this,(function(s){switch(s.label){case 0:return r=h.mirror.getId(e),a.get(r)||0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),l.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}}))}))),c=requestAnimationFrame(p)}};c=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(c)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=tO(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=$R(t.CanvasRenderingContext2D.prototype,o,(function(i){return function(){for(var s=this,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return oI(this.canvas,r,n,!0)||setTimeout((function(){var r=QI(l,t,s);e(s.canvas,{type:bI["2D"],property:o,args:r})}),0),i.apply(this,l)}}));s.push(a)}catch(r){var l=QR(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:bI["2D"],property:o,args:[t],setter:!0})}});s.push(l)}},s=[],a=Ax(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(rO(t.WebGLRenderingContext.prototype,bI.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(rO(t.WebGL2RenderingContext.prototype,bI.WebGL2,e,r,n,t))),function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){return xx(e,["type"])})),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),dO=function(){function e(e){Mx(this,"trackedLinkElements",new WeakSet),Mx(this,"mutationCb"),Mx(this,"adoptedStyleSheetCb"),Mx(this,"styleMirror",new pI),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,(function(t,r){return{rule:Kx(t,e.href),index:r}}))})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Ax(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=Ax(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach((function(e){t.cleanupStylesheetsForRemovedNode(e)}))}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),pO=function(){function e(){Mx(this,"nodeMap",new WeakMap),Mx(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some((function(e){return e!==t}))},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame((function(){r.nodeMap=new WeakMap,r.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function hO(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}var fO=!1;try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var mO=document.createElement("iframe");document.body.appendChild(mO),Array.from=(null==(Ix=mO.contentWindow)?void 0:Ix.Array.from)||Array.from,document.body.removeChild(mO)}}catch(aAe){console.debug("Unable to override Array.from",aAe)}var gO,vO,yO=new Xx;function bO(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,l=void 0===a?null:a,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,d=e.ignoreSelector,p=void 0===d?null:d,h=e.maskTextClass,f=void 0===h?"rr-mask":h,m=e.maskTextSelector,g=void 0===m?null:m,v=e.inlineStylesheet,y=void 0===v||v,b=e.maskAllInputs,x=e.maskInputOptions,w=e.slimDOMOptions,C=e.maskInputFn,_=e.maskTextFn,k=e.hooks,S=e.packFn,A=e.sampling,E=void 0===A?{}:A,R=e.dataURLOptions,I=void 0===R?{}:R,O=e.mousemoveWait,M=e.recordDOM,T=void 0===M||M,L=e.recordCanvas,P=void 0!==L&&L,j=e.recordCrossOriginIframes,N=void 0!==j&&j,D=e.allowedIframeOrigins,B=e.recordAfter,F=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,$=e.userTriggeredOnInput,z=void 0!==$&&$,U=e.collectFonts,W=void 0!==U&&U,q=e.inlineImages,V=void 0!==q&&q,H=e.plugins,G=e.keepIframeSrcFn,Z=void 0===G?function(){return!1}:G,K=e.ignoreCSSAttributes,X=void 0===K?new Set([]):K,Y=e.errorHandler;_I=Y,N&&D&&D.length>0&&(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":Cx(n))+".");var i=hO(n);i&&t.add(i)}return Object.freeze(t)}(D),0===t.size&&(t=void 0));var J=!N||window.parent===window,Q=!1;if(!J)try{window.parent.document&&(Q=!1)}catch(e){Q=!0}if(J&&!r)throw new Error("emit function is required");if(!J&&!Q)return function(){};void 0!==O&&void 0===E.mousemove&&(E.mousemove=O),yO.reset();var ee,te=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==x?x:{password:!0},re=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ne=0,ie=function(e){for(var t,r=Ax(H||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return S&&!Q&&(e=S(e)),e};aO=function(e,o){var s,a=e;if(a.timestamp=eI(),!(null==(s=TI[0])?void 0:s.isFrozen())||a.type===mI.FullSnapshot||a.type===mI.IncrementalSnapshot&&a.data.source===gI.Mutation||TI.forEach((function(e){return e.unfreeze()})),J)null==r||r(ie(a),o);else if(Q){var l={type:"rrweb",event:ie(a),origin:window.location.origin,isCheckout:o};if(t)for(var c,u=Ax(t);!(c=u()).done;){var d=c.value;window.parent.postMessage(l,d)}else window.parent.postMessage(l,"*")}if(a.type===mI.FullSnapshot)ee=a,ne=0;else if(a.type===mI.IncrementalSnapshot){if(a.data.source===gI.Mutation&&a.data.isAttachIframe)return;ne++;var p=i&&ne>=i,h=n&&a.timestamp-ee.timestamp>n;(p||h)&&lO(!0)}};for(var oe,se=function(e){aO({type:mI.IncrementalSnapshot,data:gx({source:gI.Mutation},e)})},ae=function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.Scroll},e)})},le=function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.CanvasMutation},e)})},ce=new dO({mutationCb:se,adoptedStyleSheetCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.AdoptedStyleSheet},e)})}}),ue=new VI({mirror:yO,mutationCb:se,stylesheetManager:ce,recordCrossOriginIframes:N,wrappedEmit:aO}),de=Ax(H||[]);!(oe=de()).done;){var pe=oe.value;pe.getMirror&&pe.getMirror({nodeMirror:yO,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var he=new pO;cO=new uO({recordCanvas:P,mutationCb:le,win:window,blockClass:s,blockSelector:l,mirror:yO,sampling:E.canvas,dataURLOptions:I});var fe=new HI({mutationCb:se,scrollCb:ae,bypassOptions:{blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskInputOptions:te,dataURLOptions:I,maskTextFn:_,maskInputFn:C,recordCanvas:P,inlineImages:V,sampling:E,slimDOMOptions:re,iframeManager:ue,stylesheetManager:ce,canvasManager:cO,keepIframeSrcFn:Z,processedNodeManager:he},mirror:yO});lO=function(e){if(void 0===e&&(e=!1),T){aO({type:mI.Meta,data:{href:window.location.href,width:nI(),height:rI()}},e),ce.reset(),fe.init(),TI.forEach((function(e){return e.lock()}));var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Xx:n,o=r.blockClass,s=r.blockSelector,a=r.maskTextClass,l=r.maskTextSelector,c=r.inlineStylesheet,u=r.inlineImages,d=r.recordCanvas,p=r.maskAllInputs,h=void 0!==p&&p,f=r.slimDOM,m=void 0!==f&&f,g=r.keepIframeSrcFn;return _w(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===c||c,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===h?{password:!0}:h,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===m,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===m?{}:m,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==u&&u,recordCanvas:void 0!==d&&d,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===g?function(){return!1}:g,newlyAddedElement:!1})}(document,{mirror:yO,blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskAllInputs:te,maskTextFn:_,maskInputFn:C,slimDOM:re,dataURLOptions:I,recordCanvas:P,inlineImages:V,onSerialize:function(e){cI(e,yO)&&ue.addIframe(e),uI(e,yO)&&ce.trackLinkElement(e),dI(e)&&fe.addShadowRoot(ZR(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!t)return console.warn("Failed to snapshot the document");aO({type:mI.FullSnapshot,data:{node:t,initialOffset:tI(window)}},e),TI.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,yO.getId(document))}};try{var me=[],ge=function(e){var t;return MI(zI)({mutationCb:se,mousemoveCb:function(e,t){return aO({type:mI.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.MouseInteraction},e)})},scrollCb:ae,viewportResizeCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.ViewportResize},e)})},inputCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.Input},e)})},mediaInteractionCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.MediaInteraction},e)})},styleSheetRuleCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.StyleSheetRule},e)})},styleDeclarationCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.StyleDeclaration},e)})},canvasMutationCb:le,fontCb:function(e){return aO({type:mI.IncrementalSnapshot,data:gx({source:gI.Font},e)})},selectionCb:function(e){aO({type:mI.IncrementalSnapshot,data:gx({source:gI.Selection},e)})},customElementCb:function(e){aO({type:mI.IncrementalSnapshot,data:gx({source:gI.CustomElement},e)})},blockClass:s,ignoreClass:u,ignoreSelector:p,maskTextClass:f,maskTextSelector:g,maskInputOptions:te,inlineStylesheet:y,sampling:E,recordDOM:T,recordCanvas:P,inlineImages:V,userTriggeredOnInput:z,collectFonts:W,doc:e,maskInputFn:C,maskTextFn:_,keepIframeSrcFn:Z,blockSelector:l,slimDOMOptions:re,dataURLOptions:I,mirror:yO,iframeManager:ue,stylesheetManager:ce,shadowDomManager:fe,processedNodeManager:he,canvasManager:cO,ignoreCSSAttributes:X,plugins:(null==(t=null==H?void 0:H.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return aO({type:mI.Plugin,data:{plugin:e.name,payload:t}})}}})))||[]},k)};ue.addLoadListener((function(e){try{var t=e.contentDocument,r=ge(t);me.push(r);var n=ue.getObserverCleanup(e);ue.setObserverCleanup(e,(function(){if(n)try{n()}catch(e){}try{r();var e=me.indexOf(r);-1!==e&&me.splice(e,1),function(e){for(var t=TI.length-1;t>=0;t--)TI[t].getDoc()===e&&TI.splice(t,1)}(t)}catch(e){}}))}catch(e){console.warn(e)}}));var ve=function(){lO(),me.push(ge(document)),fO=!0};return"interactive"===document.readyState||"complete"===document.readyState?ve():(me.push(KR("DOMContentLoaded",(function(){aO({type:mI.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ve()}))),me.push(KR("load",(function(){aO({type:mI.Load,data:{}}),"load"===F&&ve()}),window))),function(){me.forEach((function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}})),he.destroy(),fO=!1,_I=void 0}}catch(e){console.warn(e)}}bO.addCustomEvent=function(e,t){if(!fO)throw new Error("please add custom event after start recording");aO({type:mI.Custom,data:{tag:e,payload:t}})},bO.freezePage=function(){TI.forEach((function(e){return e.freeze()}))},bO.takeFullSnapshot=function(e){if(!fO)throw new Error("please take full snapshot after start recording");lO(e)},bO.mirror=yO,(vO=gO||(gO={}))[vO.NotStarted=0]="NotStarted",vO[vO.Running=1]="Running",vO[vO.Stopped=2]="Stopped";var xO={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wO={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},CO={},_O={};var kO=function(e){return function(e,t,r){var n,i=e+"."+String(r);if(_O[i])return _O[i].call(t);var o=function(e){if(CO[e])return CO[e];var t=globalThis[e],r=t.prototype,n=e in xO?xO[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in wO?wO[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return CO[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?CO[e]=c:r}catch(e){return r}}(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(_O[i]=s,s.call(t)):t[r]}("Node",e,"parentNode")};function SO(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return SO(kO(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return SO(kO(e),t)}var AO={exports:{}},EO=String,RO=function(){return{isColorSupported:!1,reset:EO,bold:EO,dim:EO,italic:EO,underline:EO,inverse:EO,hidden:EO,strikethrough:EO,black:EO,red:EO,green:EO,yellow:EO,blue:EO,magenta:EO,cyan:EO,white:EO,gray:EO,bgBlack:EO,bgRed:EO,bgGreen:EO,bgYellow:EO,bgBlue:EO,bgMagenta:EO,bgCyan:EO,bgWhite:EO}};AO.exports=RO(),AO.exports.createColors=RO;var IO=AO.exports,OO=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return bx(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),MO=IO,TO=OO,LO=function(e){function t(r,n,i,o,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),o&&(l.source=o),a&&(l.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}yx(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=MO.isColorSupported),TO&&e&&(r=TO(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;if(e){var c=MO.createColors(!0),u=c.bold,d=c.gray,p=c.red;n=function(e){return u(p(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(kx(Error)),PO=LO;LO.default=LO;var jO={};jO.isClean=Symbol("isClean"),jO.my=Symbol("my");var NO={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},DO=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return NO[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=NO[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),BO=DO;DO.default=DO;var FO=BO;function $O(e,t){new FO(t).stringify(e)}var zO=$O;$O.default=$O;var UO=jO.isClean,WO=jO.my,qO=PO,VO=BO,HO=zO;function GO(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":Cx(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return GO(e,r)})):("object"===o&&null!==i&&(i=GO(i)),r[n]=i)}return r}var ZO=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[UO]=!1,this[WO]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Ax(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=GO(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new qO(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[UO]){this[UO]=!1;for(var e=this;e=e.parent;)e[UO]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new VO).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Ax(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":Cx(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":Cx(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=HO),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},mx(e,[{key:"proxyOf",get:function(){return this}}]),e}(),KO=ZO;ZO.default=ZO;var XO=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=gx({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return yx(t,e),mx(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(KO),YO=XO;XO.default=XO;var JO=OO.SourceMapConsumer,QO=OO.SourceMapGenerator,eM=OO.existsSync,tM=OO.readFileSync,rM=OO.dirname,nM=OO.join,iM=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=rM(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new JO(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":Cx(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=rM(e),eM(e))return this.mapFile=e,tM(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(bx(t,JO))return QO.fromSourceMap(t).toString();if(bx(t,QO))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=nM(rM(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),oM=iM;iM.default=iM;var sM=OO.SourceMapConsumer,aM=OO.SourceMapGenerator,lM=OO.fileURLToPath,cM=OO.pathToFileURL,uM=OO.isAbsolute,dM=OO.resolve,pM=OO,hM=PO,fM=oM,mM=Symbol("fromOffsetCache"),gM=Boolean(sM&&aM),vM=Boolean(dM&&uM),yM=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":Cx(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!vM||/^\w+:\/\//.test(t.from)||uM(t.from)?this.file=t.from:this.file=dM(t.from)),vM&&gM){var r=new fM(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":Cx(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);o=u.line,s=u.col}else o=l.line,s=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var p=this.origin(t,r,o,s);return(i=p?new hM(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new hM(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(cM&&(i.input.url=cM(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[mM])t=this[mM];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[mM]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:dM(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=uM(a.source)?cM(a.source):new URL(a.source,this.map.consumer().sourceRoot||cM(this.map.mapFile));var l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!lM)throw new Error("file: protocol is not available in this PostCSS build");l.file=lM(o)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=gx({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},mx(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),bM=yM;yM.default=yM,pM&&pM.registerInput&&pM.registerInput(yM);var xM=OO.SourceMapConsumer,wM=OO.SourceMapGenerator,CM=OO.dirname,_M=OO.relative,kM=OO.resolve,SM=OO.sep,AM=OO.pathToFileURL,EM=bM,RM=Boolean(xM&&wM),IM=Boolean(CM&&kM&&_M&&SM),OM=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Ax(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||CM(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new xM(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),IM&&RM&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=wM.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wM({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new wM({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?CM(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=CM(kM(r,this.mapOpts.annotation)));var n=_M(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new EM(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(AM){var r=AM(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===SM&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),MM=OM,TM=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return yx(t,e),t}(KO),LM=TM;TM.default=TM;var PM,jM,NM,DM,BM=jO.isClean,FM=jO.my,$M=YO,zM=LM;function UM(e){return e.map((function(e){return e.nodes&&(e.nodes=UM(e.nodes)),delete e.source,e}))}function WM(e){if(e[BM]=!1,e.proxyOf.nodes)for(var t,r=Ax(e.proxyOf.nodes);!(t=r()).done;)WM(t.value)}var qM=function(e){function t(){return e.apply(this,arguments)||this}yx(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Ax(t);!(n=i()).done;)for(var o,s=n.value,a=Ax(this.normalize(s,this.last));!(o=a()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Ax(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Ax(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Ax(o);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(n,0,l)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=UM(PM(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Ax(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=Ax(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new $M(e)]}else if(e.selector)e=[new jM(e)];else if(e.name)e=[new NM(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new zM(e)]}var u=e.map((function(e){return e[FM]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[BM]&&WM(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return u},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Ax(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),l=Ax(a);!(o=l()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Ax(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?bx(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},mx(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(KO);qM.registerParse=function(e){PM=e},qM.registerRule=function(e){jM=e},qM.registerAtRule=function(e){NM=e},qM.registerRoot=function(e){DM=e};var VM=qM;qM.default=qM,qM.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,NM.prototype):"rule"===e.type?Object.setPrototypeOf(e,jM.prototype):"decl"===e.type?Object.setPrototypeOf(e,$M.prototype):"comment"===e.type?Object.setPrototypeOf(e,zM.prototype):"root"===e.type&&Object.setPrototypeOf(e,DM.prototype),e[FM]=!0,e.nodes&&e.nodes.forEach((function(e){qM.rebuild(e)}))};var HM,GM,ZM=function(e){function t(t){var r;return(r=e.call(this,gx({type:"document"},t))||this).nodes||(r.nodes=[]),r}return yx(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new HM(new GM,this,e).stringify()},t}(VM);ZM.registerLazyResult=function(e){HM=e},ZM.registerProcessor=function(e){GM=e};var KM=ZM;ZM.default=ZM;var XM=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),YM=XM;XM.default=XM;var JM=YM,QM=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new JM(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},mx(e,[{key:"content",get:function(){return this.css}}]),e}(),eT=QM;QM.default=QM;var tT="'".charCodeAt(0),rT='"'.charCodeAt(0),nT="\\".charCodeAt(0),iT="/".charCodeAt(0),oT="\n".charCodeAt(0),sT=" ".charCodeAt(0),aT="\f".charCodeAt(0),lT="\t".charCodeAt(0),cT="\r".charCodeAt(0),uT="[".charCodeAt(0),dT="]".charCodeAt(0),pT="(".charCodeAt(0),hT=")".charCodeAt(0),fT="{".charCodeAt(0),mT="}".charCodeAt(0),gT=";".charCodeAt(0),vT="*".charCodeAt(0),yT=":".charCodeAt(0),bT="@".charCodeAt(0),xT=/[\t\n\f\r "#'()/;[\\\]{}]/g,wT=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,CT=/.[\r\n"'(/\\]/,_T=/[\da-f]/i,kT=VM,ST=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}yx(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(kT),AT=ST;ST.default=ST,kT.registerAtRule(ST);var ET,RT,IT=VM,OT=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}yx(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Ax(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new ET(new RT,this,e).stringify()},t}(IT);OT.registerLazyResult=function(e){ET=e},OT.registerProcessor=function(e){RT=e};var MT=OT;OT.default=OT,IT.registerRoot(OT);var TT={comma:function(e){return TT.split(e,[","],!0)},space:function(e){return TT.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,l=!1,c="",u=!1,d=Ax(e);!(n=d()).done;){var p=n.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},LT=TT;TT.default=TT;var PT=VM,jT=LT,NT=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return yx(t,e),mx(t,[{key:"selectors",get:function(){return jT.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(PT),DT=NT;NT.default=NT,PT.registerRule(NT);var BT=YO,FT=LM,$T=AT,zT=MT,UT=DT,WT={empty:!0,space:!0},qT=function(){function e(e){this.input=e,this.root=new zT,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new $T;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Ax(e.entries());!(i=s()).done;){var a=i.value,l=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new FT;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,l,c,u,d,p=e.css.valueOf(),h=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case oT:case sT:case lT:case cT:case aT:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===sT||r===oT||r===lT||r===cT||r===aT);d=["space",p.slice(m,n)],m=n-1;break;case uT:case dT:case fT:case mT:case yT:case gT:case hT:var b=String.fromCharCode(r);d=[b,b,m];break;case pT:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==tT&&u!==rT&&u!==sT&&u!==oT&&u!==lT&&u!==aT&&u!==cT){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===nT;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||CT.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case tT:case rT:i=r===tT?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===nT;)l-=1,a=!a}while(a);d=["string",p.slice(m,n+1),m,n],m=n;break;case bT:xT.lastIndex=m+1,xT.test(p),n=0===xT.lastIndex?p.length-1:xT.lastIndex-2,d=["at-word",p.slice(m,n+1),m,n],m=n;break;case nT:for(n=m,s=!0;p.charCodeAt(n+1)===nT;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==iT&&r!==sT&&r!==oT&&r!==lT&&r!==cT&&r!==aT&&(n+=1,_T.test(p.charAt(n)))){for(;_T.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===sT&&(n+=1)}d=["word",p.slice(m,n+1),m,n],m=n;break;default:r===iT&&p.charCodeAt(m+1)===vT?(0===(n=p.indexOf("*/",m+2)+1)&&(h||t?n=p.length:y("comment")),d=["comment",p.slice(m,n+1),m,n],m=n):(wT.lastIndex=m+1,wT.test(p),n=0===wT.lastIndex?p.length-1:wT.lastIndex-2,d=["word",p.slice(m,n+1),m,n],g.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new BT;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var h=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}))&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new UT;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,l=r.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(a=r[d-1]?r[d-1][0]:"empty",s=r[d+1]?r[d+1][0]:"empty",WT[a]||WT[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new UT;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),VT=VM,HT=qT,GT=bM;function ZT(e,t){var r=new GT(e,t),n=new HT(r);try{n.parse()}catch(e){throw e}return n.root}var KT=ZT;ZT.default=ZT,VT.registerParse(ZT);var XT=jO.isClean,YT=jO.my,JT=MM,QT=zO,eL=VM,tL=KM,rL=eT,nL=KT,iL=MT,oL={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},sL={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},aL={Once:!0,postcssPlugin:!0,prepare:!0};function lL(e){return"object"===(void 0===e?"undefined":Cx(e))&&"function"==typeof e.then}function cL(e){var t=!1,r=oL[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function uL(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:cL(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function dL(e){return e[XT]=!1,e.nodes&&e.nodes.forEach((function(e){return dL(e)})),e}var pL={},hL=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":Cx(r))||null===r||"root"!==r.type&&"document"!==r.type)if(bx(r,e)||bx(r,rL))i=dL(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=nL;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[YT]&&eL.rebuild(i)}else i=dL(r);this.result=new rL(t,i,n),this.helpers=gx({},pL,{postcss:pL,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":Cx(e))&&e.prepare?gx({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Ax(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":Cx(i)))for(var o in i){if(!sL[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!aL[o])if("object"===Cx(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return hx((function(){var t,r,n,i,o,s,a,l,c,u,d,p;return Ex(this,(function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!lL(n=e.runOnRoot(r)))return[3,5];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,n];case 3:return h.sent(),[3,5];case 4:throw i=h.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,h.label=7;case 7:if(o[XT])return[3,14];o[XT]=!0,s=[uL(o)],h.label=8;case 8:if(!(s.length>0))return[3,13];if(!lL(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return Ex(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},d=Ax(e.listeners.OnceExit),h.label=15;case 15:return(p=d()).done?[3,18]:[5,Rx(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":Cx(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return lL(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=QT;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new JT(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Ax(this.plugins);!(e=t()).done;){var r=e.value;if(lL(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[XT];)n[XT]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Ax(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Ax(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(lL(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,l=t.iterator;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[XT])return a[XT]=!0,void e.push(uL(a));t.iterator=0,delete r.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[XT]=!0,t.iterator=r.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[XT]=!0;for(var r,n=Ax(cL(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[XT]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},mx(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();hL.registerPostcss=function(e){pL=e};var fL=hL;hL.default=hL,iL.registerLazyResult(hL),tL.registerLazyResult(hL);var mL=MM,gL=zO,vL=KT,yL=eT,bL=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=gL;this.result=new yL(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new mL(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},mx(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=vL;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),xL=bL;bL.default=bL;var wL=xL,CL=fL,_L=KM,kL=MT,SL=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Ax(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":Cx(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":Cx(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":Cx(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new CL(this,e,t):new wL(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),AL=SL;SL.default=SL,kL.registerProcessor(SL),_L.registerProcessor(SL);var EL=YO,RL=oM,IL=LM,OL=AT,ML=bM,TL=MT,LL=DT;function PL(e,t){if(Array.isArray(e))return e.map((function(e){return PL(e)}));var r=e.inputs,n=xx(e,["inputs"]);if(r){t=[];for(var i,o=Ax(r);!(i=o()).done;){var s=gx({},i.value,{__proto__:ML.prototype});s.map&&(s.map=gx({},s.map,{__proto__:RL.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return PL(e,t)}))),n.source){var a=n.source,l=a.inputId,c=xx(a,["inputId"]);n.source=c,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new TL(n);if("decl"===n.type)return new EL(n);if("rule"===n.type)return new LL(n);if("comment"===n.type)return new IL(n);if("atrule"===n.type)return new OL(n);throw new Error("Unknown node type: "+e.type)}var jL=PL;PL.default=PL;var NL=PO,DL=YO,BL=fL,FL=VM,$L=AL,zL=zO,UL=jL,WL=KM,qL=YM,VL=LM,HL=AT,GL=eT,ZL=bM,KL=KT,XL=LT,YL=DT,JL=MT,QL=KO;function eP(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new $L(t)}eP.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new $L).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return eP([i(r)]).process(e,t)},i},eP.stringify=zL,eP.parse=KL,eP.fromJSON=UL,eP.list=XL,eP.comment=function(e){return new VL(e)},eP.atRule=function(e){return new HL(e)},eP.decl=function(e){return new DL(e)},eP.rule=function(e){return new YL(e)},eP.root=function(e){return new JL(e)},eP.document=function(e){return new WL(e)},eP.CssSyntaxError=NL,eP.Declaration=DL,eP.Container=FL,eP.Processor=$L,eP.Document=WL,eP.Comment=VL,eP.Warning=qL,eP.AtRule=HL,eP.Result=GL,eP.Input=ZL,eP.Rule=YL,eP.Root=JL,eP.Node=QL,BL.registerPostcss(eP),eP.default=eP;var tP=Object.defineProperty,rP=function(e,t,r){return function(e,t,r){return t in e?tP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":Cx(t))?t+"":t,r)},nP=function(){function e(e){rP(this,"fileName"),rP(this,"functionName"),rP(this,"lineNumber"),rP(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),iP=/(^|@)\S+:\d+/,oP=/^\s*at .*(\S+:\d+|\(native\))/m,sP=/^(eval@)?(\[native code])?$/,aP={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(oP)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter((function(e){return!!e.match(oP)}),this);return t.map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new nP({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})}),this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter((function(e){return!e.match(sP)}),this);return t.map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new nP({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new nP({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new nP({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new nP({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter((function(e){return!!e.match(iP)&&!e.match(/^Error created at/)}),this);return t.map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new nP({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function lP(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function cP(e){return"[object Object]"===Object.prototype.toString.call(e)}function uP(e,t){if(0===t)return!0;for(var r,n=Ax(Object.keys(e));!(r=n()).done;){var i=r.value;if(cP(e[i])&&uP(e[i],t-1))return!0}return!1}function dP(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(cP(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||cP(s)&&uP(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":Cx(t)))return t.toString()+"n";if(bx(t,Event)){var a={};for(var l in t){var c=t[l];Array.isArray(c)?a[l]=lP(c.length?c[0]:null):a[l]=c}return a}return bx(t,Node)?bx(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:bx(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var pP={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function hP(e,t,r){var n,i=r?Object.assign({},pP,r):pP,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,l=[];if(i.level.includes("error")){var c=function(t){var r=t.message,n=t.error,o=aP.parse(n).map((function(e){return e.toString()})),s=[dP(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",c),l.push((function(){t.removeEventListener("error",c)}));var u=function(t){var r,n;bx(t.reason,Error)?n=[dP("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[dP("Uncaught (in promise)",i.stringifyOptions),dP(t.reason,i.stringifyOptions)]);var o=aP.parse(r).map((function(e){return e.toString()}));e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",u),l.push((function(){t.removeEventListener("unhandledrejection",u)}))}for(var d,p=Ax(i.level);!(d=p()).done;){var h=d.value;l.push(f(n,h))}return function(){l.forEach((function(e){return e()}))};function f(t,r){var n=this;return t[r]?function(t,o){try{if(!(o in t))return function(){};var l=t[o],c=function(t){var o=n;return function(){for(var n=arguments.length,l=new Array(n),c=0;c<n;c++)l[c]=arguments[c];if(t.apply(o,l),!("assert"===r&&l[0]||a)){a=!0;try{var u=aP.parse(new Error).map((function(e){return e.toString()})).splice(1),d=("assert"===r?l.slice(1):l).map((function(e){return dP(e,i.stringifyOptions)}));++s<i.lengthThreshold?e({level:r,trace:u,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[dP("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],l))}finally{a=!1}}}}(l);return"function"==typeof c&&(c.prototype=c.prototype||{},Object.defineProperties(c,{__rrweb_original__:{enumerable:!1,value:l}})),t[o]=c,function(){t[o]=l}}catch(e){return function(){}}}(t,r):function(){}}}var fP,mP,gP,vP=sx.setImmediate,yP=Object.prototype.toString,bP=void 0!==vP?function(e){return vP(e)}:setTimeout;try{fP=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(aAe){fP=function(e,t,r){return e[t]=r,e}}function xP(e,t){gP.add(e,t),mP||(mP=bP(gP.drain))}function wP(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function CP(){for(var e=0;e<this.chain.length;e++)_P(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function _P(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=wP(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function kP(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=wP(e))?xP((function(){var n=new EP(r);try{t.call(e,(function(){kP.apply(n,arguments)}),(function(){SP.apply(n,arguments)}))}catch(e){SP.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&xP(CP,r))}catch(e){SP.call(new EP(r),e)}}}function SP(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&xP(CP,t))}function AP(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then((function(e){r(i,e)}),n)}(i)}function EP(e){this.def=e,this.triggered=!1}function RP(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function IP(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new RP(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&xP(CP,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){kP.call(t,e)}),(function(e){SP.call(t,e)}))}catch(e){SP.call(t,e)}}gP=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=mP=void 0;r;)r.fn.call(r.self),r=r.next}}}();var OP,MP=fP({},"constructor",IP,!1);IP.prototype=MP,fP(MP,"__NPO__",0,!1),fP(IP,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),fP(IP,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),fP(IP,"all",(function(e){var t=this;return"[object Array]"!==yP.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;AP(t,e,(function(e,t){o[e]=t,++s===i&&r(o)}),n)}))})),fP(IP,"race",(function(e){var t=this;return"[object Array]"!==yP.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");AP(t,e,(function(e,t){r(t)}),n)}))})),OP="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:IP;var TP=864e5,LP=Array.prototype,PP=Function.prototype,jP=Object.prototype,NP=LP.slice,DP=jP.toString,BP=jP.hasOwnProperty,FP=sx.console,$P=sx.navigator,zP=sx.document,UP=sx.opera,WP=sx.screen,qP=$P.userAgent,VP=PP.bind,HP=LP.forEach,GP=LP.indexOf,ZP=LP.map,KP=Array.isArray,XP={},YP={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},JP={log:function(){if(lx.DEBUG&&!YP.isUndefined(FP)&&FP)try{FP.log.apply(FP,arguments)}catch(e){YP.each(arguments,(function(e){FP.log(e)}))}},warn:function(){if(lx.DEBUG&&!YP.isUndefined(FP)&&FP){var e=["Mixpanel warning:"].concat(YP.toArray(arguments));try{FP.warn.apply(FP,e)}catch(t){YP.each(e,(function(e){FP.warn(e)}))}}},error:function(){if(lx.DEBUG&&!YP.isUndefined(FP)&&FP){var e=["Mixpanel error:"].concat(YP.toArray(arguments));try{FP.error.apply(FP,e)}catch(t){YP.each(e,(function(e){FP.error(e)}))}}},critical:function(){if(!YP.isUndefined(FP)&&FP){var e=["Mixpanel error:"].concat(YP.toArray(arguments));try{FP.error.apply(FP,e)}catch(t){YP.each(e,(function(e){FP.error(e)}))}}}},QP=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(JP,arguments)}},ej=function(e){return{log:QP(JP.log,e),error:QP(JP.error,e),critical:QP(JP.critical,e)}},tj=function(e){return function(){try{return e.apply(this,arguments)}catch(e){JP.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),lx.DEBUG&&JP.critical(e)}}},rj=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=tj(t[r]))};YP.bind=function(e,t){var r,n;if(VP&&e.bind===VP)return VP.apply(e,NP.call(arguments,1));if(!YP.isFunction(e))throw new TypeError;return r=NP.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(NP.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(NP.call(arguments)));return Object(s)===s?s:o},n},YP.each=function(e,t,r){if(null!=e)if(HP&&e.forEach===HP)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===XP)return}else for(var o in e)if(BP.call(e,o)&&t.call(r,e[o],o,e)===XP)return},YP.extend=function(e){return YP.each(NP.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},YP.isArray=KP||function(e){return"[object Array]"===DP.call(e)},YP.isFunction=function(e){return"function"==typeof e},YP.isArguments=function(e){return!(!e||!BP.call(e,"callee"))},YP.toArray=function(e){return e?e.toArray?e.toArray():YP.isArray(e)||YP.isArguments(e)?NP.call(e):YP.values(e):[]},YP.map=function(e,t,r){if(ZP&&e.map===ZP)return e.map(t,r);var n=[];return YP.each(e,(function(e){n.push(t.call(r,e))})),n},YP.keys=function(e){var t=[];return null===e||YP.each(e,(function(e,r){t[t.length]=r})),t},YP.values=function(e){var t=[];return null===e||YP.each(e,(function(e){t[t.length]=e})),t},YP.include=function(e,t){var r=!1;return null===e?r:GP&&e.indexOf===GP?-1!=e.indexOf(t):(YP.each(e,(function(e){if(r||(r=e===t))return XP})),r)},YP.includes=function(e,t){return-1!==e.indexOf(t)},YP.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},YP.isObject=function(e){return e===Object(e)&&!YP.isArray(e)},YP.isEmptyObject=function(e){if(YP.isObject(e)){for(var t in e)if(BP.call(e,t))return!1;return!0}return!1},YP.isUndefined=function(e){return void 0===e},YP.isString=function(e){return"[object String]"==DP.call(e)},YP.isDate=function(e){return"[object Date]"==DP.call(e)},YP.isNumber=function(e){return"[object Number]"==DP.call(e)},YP.isElement=function(e){return!(!e||1!==e.nodeType)},YP.encodeDates=function(e){return YP.each(e,(function(t,r){YP.isDate(t)?e[r]=YP.formatDate(t):YP.isObject(t)&&(e[r]=YP.encodeDates(t))})),e},YP.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},YP.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},YP.strip_empty_properties=function(e){var t={};return YP.each(e,(function(e,r){YP.isString(e)&&e.length>0&&(t[r]=e)})),t},YP.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):YP.isArray(e)?(r=[],YP.each(e,(function(e){r.push(YP.truncate(e,t))}))):YP.isObject(e)?(r={},YP.each(e,(function(e,n){r[n]=YP.truncate(e,t)}))):r=e,r},YP.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",l=0,c=i,u=[],d=n[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return t(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+="    ",u=[],"[object Array]"===DP.apply(d)){for(l=d.length,o=0;o<l;o+=1)u[o]=r(o,d)||"null";return a=0===u.length?"[]":i?"[\n"+i+u.join(",\n"+i)+"\n"+c+"]":"["+u.join(",")+"]",i=c,a}for(s in d)BP.call(d,s)&&(a=r(s,d))&&u.push(t(s)+(i?": ":":")+a);return a=0===u.length?"{}":i?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",i=c,a}};return r("",{"":e})},YP.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(e=+r,isFinite(e))return e;o("Bad number")},l=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(s(),16),isFinite(e));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else{if("string"!=typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},c=function(){for(;t&&t<=" ";)s()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(s("{"),c(),"}"===t)return s("}"),r;for(;t;){if(e=l(),c(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return s("}"),r;s(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===t){if(s("["),c(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return s("]"),e;s(","),c()}}o("Bad array")}();case'"':return l();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')}()}},function(i){var s;return r=i,e=0,t=" ",s=n(),c(),t&&o("Syntax error"),s}}(),YP.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,c="",u=[];if(!e)return e;e=YP.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[l++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},YP.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},YP.UUID=function(){try{return sx.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",YP.map(e,(function(e){return e.toString(16)})).join("")}};var nj=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];YP.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<nj.length;t++)if(-1!==e.indexOf(nj[t]))return!0;return!1},YP.HTTPBuildQuery=function(e,t){var r,n,i=[];return YP.isUndefined(t)&&(t="&"),YP.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r})),i.join(t)},YP.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){JP.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},YP.cookie={get:function(e){for(var t=e+"=",r=zP.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=YP.JSONDecode(YP.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",l="",c="";if(s)a="; domain="+s;else if(n){var u=yj(zP.location.hostname);a=u?"; domain=."+u:""}if(r){var d=new Date;d.setTime(d.getTime()+1e3*r),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),zP.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c},set:function(e,t,r,n,i,o,s){var a="",l="",c="";if(s)a="; domain="+s;else if(n){var u=yj(zP.location.hostname);a=u?"; domain=."+u:""}if(r){var d=new Date;d.setTime(d.getTime()+24*r*60*60*1e3),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c;return zP.cookie=p,p},remove:function(e,t,r){YP.cookie.set(e,"",-1,t,!1,!1,r)}};var ij=function(e){var t=!0;try{var r="__mplss_"+fj(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},oj=null,sj=function(e,t){return null===oj||t?oj=ij(e||sx.localStorage):oj},aj=null;function lj(e,t,r){var n=function(e){JP.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||JP.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return YP.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var cj=null,uj=null;try{cj=sx.localStorage,uj=sx.sessionStorage}catch(aAe){}YP.localStorage=lj(cj,"localStorage",sj),YP.sessionStorage=lj(uj,"sessionStorage",(function(e,t){return null===aj||t?aj=ij(e||sx.sessionStorage):aj})),YP.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){return function(i){if(i=i||e(sx.event)){var o,s,a=!0;return YP.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}}}(t,n,a)}else JP.error("No valid element provided to register_event")}}();var dj=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');YP.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!zP.getElementsByTagName)return[];var n,i,o,s,a,l,c,u,d,p,h=t.split(" "),f=[zP];for(l=0;l<h.length;l++)if((n=h[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var m=i[1],g=zP.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,c=0;c<f.length;c++)for(d="*"==o?e(f[c]):f[c].getElementsByTagName(o),u=0;u<d.length;u++)s[a++]=d[u];for(f=[],p=0,c=0;c<s.length;c++)s[c].className&&YP.isString(s[c].className)&&r(s[c],v)&&(f[p++]=s[c])}else{var y=n.match(dj);if(y){o=y[1];var b,x=y[2],w=y[3],C=y[4];for(o||(o="*"),s=[],a=0,c=0;c<f.length;c++)for(d="*"==o?e(f[c]):f[c].getElementsByTagName(o),u=0;u<d.length;u++)s[a++]=d[u];switch(f=[],p=0,w){case"=":b=function(e){return e.getAttribute(x)==C};break;case"~":b=function(e){return e.getAttribute(x).match(new RegExp("\\b"+C+"\\b"))};break;case"|":b=function(e){return e.getAttribute(x).match(new RegExp("^"+C+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(x).indexOf(C)};break;case"$":b=function(e){return e.getAttribute(x).lastIndexOf(C)==e.getAttribute(x).length-C.length};break;case"*":b=function(e){return e.getAttribute(x).indexOf(C)>-1};break;default:b=function(e){return e.getAttribute(x)}}for(f=[],p=0,c=0;c<s.length;c++)b(s[c])&&(f[p++]=s[c])}else{for(o=n,s=[],a=0,c=0;c<f.length;c++)for(d=f[c].getElementsByTagName(o),u=0;u<d.length;u++)s[a++]=d[u];f=s}}return f}return function(e){return YP.isElement(e)?[e]:YP.isObject(e)&&!YP.isUndefined(e.length)?e:n.call(this,e)}}();var pj=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],hj=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];YP.info={campaignParams:function(e){var t="",r={};return YP.each(pj,(function(n){(t=YP.getQueryParam(zP.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return YP.each(hj,(function(r){(e=YP.getQueryParam(zP.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return YP.extend(YP.info.campaignParams(),YP.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=YP.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=YP.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||YP.includes(e," OPR/")?YP.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":YP.includes(e,"IEMobile")||YP.includes(e,"WPDesktop")?"Internet Explorer Mobile":YP.includes(e,"SamsungBrowser/")?"Samsung Internet":YP.includes(e,"Edge")||YP.includes(e,"Edg/")?"Microsoft Edge":YP.includes(e,"FBIOS")?"Facebook Mobile":YP.includes(e,"Whale/")?"Whale Browser":YP.includes(e,"Chrome")?"Chrome":YP.includes(e,"CriOS")?"Chrome iOS":YP.includes(e,"UCWEB")||YP.includes(e,"UCBrowser")?"UC Browser":YP.includes(e,"FxiOS")?"Firefox iOS":YP.includes(t,"Apple")?YP.includes(e,"Mobile")?"Mobile Safari":"Safari":YP.includes(e,"Android")?"Android Mobile":YP.includes(e,"Konqueror")?"Konqueror":YP.includes(e,"Firefox")?"Firefox":YP.includes(e,"MSIE")||YP.includes(e,"Trident/")?"Internet Explorer":YP.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[YP.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=qP;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return sx.location.href},properties:function(e){return"object"!=typeof e&&(e={}),YP.extend(YP.strip_empty_properties({$os:YP.info.os(),$browser:YP.info.browser(qP,$P.vendor,UP),$referrer:zP.referrer,$referring_domain:YP.info.referringDomain(zP.referrer),$device:YP.info.device(qP)}),{$current_url:YP.info.currentUrl(),$browser_version:YP.info.browserVersion(qP,$P.vendor,UP),$screen_height:WP.height,$screen_width:WP.width,mp_lib:"web",$lib_version:lx.LIB_VERSION,$insert_id:fj(),time:YP.timestamp()/1e3},YP.strip_empty_properties(e))},people_properties:function(){return YP.extend(YP.strip_empty_properties({$os:YP.info.os(),$browser:YP.info.browser(qP,$P.vendor,UP)}),{$browser_version:YP.info.browserVersion(qP,$P.vendor,UP)})},mpPageViewProperties:function(){return YP.strip_empty_properties({current_page_title:zP.title,current_domain:sx.location.hostname,current_url_path:sx.location.pathname,current_url_protocol:sx.location.protocol,current_url_search:sx.location.search})}};var fj=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},mj=function(){return"00-"+YP.UUID().replace(/-/g,"")+"-"+YP.UUID().replace(/-/g,"").substring(0,16)+"-01"},gj=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,vj=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yj=function(e){var t=vj,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=gj);var i=e.match(t);return i?i[0]:""},bj=function(){},xj=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},wj=null,Cj=null;"undefined"!=typeof JSON&&(wj=JSON.stringify,Cj=JSON.parse),wj=wj||YP.JSONEncode,Cj=Cj||YP.JSONDecode,YP.info=YP.info,YP.info.browser=YP.info.browser,YP.info.browserVersion=YP.info.browserVersion,YP.info.device=YP.info.device,YP.info.properties=YP.info.properties,YP.isBlockedUA=YP.isBlockedUA,YP.isEmptyObject=YP.isEmptyObject,YP.isObject=YP.isObject,YP.JSONDecode=YP.JSONDecode,YP.JSONEncode=YP.JSONEncode,YP.toArray=YP.toArray,YP.NPO=IP;var _j="mixpanelRecordingEvents",kj="mixpanelRecordingRegistry",Sj=[_j,kj],Aj=function(e){this.dbPromise=null,this.storeName=e};function Ej(e,t){Bj(!0,e,t)}function Rj(e,t){Bj(!1,e,t)}function Ij(e,t){return"1"===Dj(e,t)}function Oj(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||sx,r=t.navigator||{},n=!1;return YP.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){YP.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return JP.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Dj(e,t);return r&&JP.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Mj(e){return Fj(e,(function(e){return this.get_config(e)}))}function Tj(e){return Fj(e,(function(e){return this._get_config(e)}))}function Lj(e){return Fj(e,(function(e){return this._get_config(e)}))}function Pj(e,t){jj(t=t||{}).remove(Nj(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function jj(e){return"localStorage"===(e=e||{}).persistenceType?YP.localStorage:YP.cookie}function Nj(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Dj(e,t){return jj(t).get(Nj(e,t))}function Bj(e,t,r){YP.isString(t)&&t.length?(jj(r=r||{}).set(Nj(t,r),e?1:0,YP.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):JP.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Fj(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Oj(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){JP.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}Aj.prototype._openDb=function(){return new OP((function(e,t){var r=sx.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;Sj.forEach((function(e){t.createObjectStore(e)}))}}))},Aj.prototype.init=function(){return sx.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then((function(e){return e instanceof sx.IDBDatabase?OP.resolve():OP.reject(e)}))):OP.reject("indexedDB is not supported in this browser")},Aj.prototype.isInitialized=function(){return!!this.dbPromise},Aj.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new OP((function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))}))};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):OP.reject(e)}.bind(this))},Aj.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",(function(r){r.put(t,e)}))},Aj.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",(function(r){t=r.get(e)})).then((function(){return t.result}))},Aj.prototype.removeItem=function(e){return this.makeTransaction("readwrite",(function(t){t.delete(e)}))},Aj.prototype.getAll=function(){var e;return this.makeTransaction("readonly",(function(t){e=t.getAll()})).then((function(){return e.result}))};var $j=ej("lock"),zj=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||sx.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||OP};zj.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(YP.bind((function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,u=s+":X",d=s+":Y",p=s+":Z",h=function(e){if((new Date).getTime()-o>l)return $j.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),c.removeItem(p),c.removeItem(d),void g();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=c.getItem(d);return!(e&&e!==i||(c.setItem(d,i),c.getItem(d)!==i&&(sj(c,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},g=function(){c.setItem(u,i),f(m,(function(){c.getItem(u)!==i?h((function(){c.getItem(d)===i?f((function(){return!c.getItem(p)}),v):g()})):v()}))},v=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(d)===i&&c.removeItem(d),c.getItem(u)===i&&c.removeItem(u)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!sj(c,!0))throw new Error("localStorage support check failed");g()}catch(e){n(e)}}),this))};var Uj=function(e){this.storage=e||sx.localStorage};Uj.prototype.init=function(){return OP.resolve()},Uj.prototype.isInitialized=function(){return!0},Uj.prototype.setItem=function(e,t){return new OP(YP.bind((function(r,n){try{this.storage.setItem(e,wj(t))}catch(e){n(e)}r()}),this))},Uj.prototype.getItem=function(e){return new OP(YP.bind((function(t,r){var n;try{n=Cj(this.storage.getItem(e))}catch(e){r(e)}t(n)}),this))},Uj.prototype.removeItem=function(e){return new OP(YP.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var Wj=ej("batch"),qj=function(e,t){var r,n,i,o;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new Uj,this.lock=new zj(e,{storage:t.sharedLockStorage||sx.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||YP.bind(Wj.error,Wj),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=YP.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,i=null,o=[],function(e){var t=this;return o.push(e),i||(i=new OP((function(e){setTimeout((function(){var n=r.apply(t,[o]);i=null,o=[],e(n)}),n)}))),i}):this.enqueuePersisted=YP.bind((function(e){return this._enqueuePersisted([e])}),this)};qj.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?OP.resolve():this.queueStorage.init().then(YP.bind((function(){this.initialized=!0}),this)).catch(YP.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},qj.prototype.enqueue=function(e,t){var r={id:fj(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),OP.resolve(!0))},qj.prototype._enqueuePersisted=function(e){var t=YP.bind((function(){return this.ensureInit().then(YP.bind((function(){return this.readFromStorage()}),this)).then(YP.bind((function(t){return this.saveToStorage(t.concat(e))}),this)).then(YP.bind((function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t}),this)).catch(YP.bind((function(t){return this.reportError("Error enqueueing items",t,e),!1}),this))}),this);return this.lock.withLock(t,this.pid).catch(YP.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},qj.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(YP.bind((function(){return this.readFromStorage()}),this)).then(YP.bind((function(r){if(r.length){var n={};YP.each(t,(function(e){n[e.id]=!0}));for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t}),this)):OP.resolve(t)};var Vj=function(e,t){var r=[];return YP.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};qj.prototype.removeItemsByID=function(e){var t={};if(YP.each(e,(function(e){t[e]=!0})),this.memQueue=Vj(this.memQueue,t),this.usePersistence){var r=YP.bind((function(){return this.ensureInit().then(YP.bind((function(){return this.readFromStorage()}),this)).then(YP.bind((function(e){return e=Vj(e,t),this.saveToStorage(e)}),this)).then(YP.bind((function(){return this.readFromStorage()}),this)).then(YP.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(YP.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(YP.bind((function(e){return this.reportError("Error acquiring storage lock",e),!sj(this.lock.storage,!0)&&r().then(YP.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(YP.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return OP.resolve(!0)};var Hj=function(e,t){var r=[];return YP.each(e,(function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)})),r};qj.prototype.updatePayloads=function(e){return this.memQueue=Hj(this.memQueue,e),this.usePersistence?this.lock.withLock(YP.bind((function(){return this.ensureInit().then(YP.bind((function(){return this.readFromStorage()}),this)).then(YP.bind((function(t){return t=Hj(t,e),this.saveToStorage(t)}),this)).catch(YP.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(YP.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):OP.resolve(!0)},qj.prototype.readFromStorage=function(){return this.ensureInit().then(YP.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(YP.bind((function(e){return e&&(YP.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(YP.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},qj.prototype.saveToStorage=function(e){return this.ensureInit().then(YP.bind((function(){return this.queueStorage.setItem(this.storageKey,e)}),this)).then((function(){return!0})).catch(YP.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},qj.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(YP.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):OP.resolve()};var Gj=ej("batch"),Zj=function(e,t){this.errorReporter=t.errorReporter,this.queue=new qj(e,{errorReporter:YP.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};Zj.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Zj.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Zj.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Zj.prototype.clear=function(){return this.queue.clear()},Zj.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Zj.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Zj.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(YP.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},Zj.prototype.sendRequestPromise=function(e,t){return new OP(YP.bind((function(r){this.sendRequest(e,t,r)}),this))},Zj.prototype.flush=function(e){if(this.requestInProgress)return Gj.log("Flush: Request already in progress"),OP.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(YP.bind((function(i){var o=i.length===n,s=[],a={};if(YP.each(i,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=YP.extend({},t.properties,{mp_sent_by_lib_version:lx.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t}),this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),OP.resolve();var l=YP.bind((function(){return this.queue.removeItemsByID(YP.map(i,(function(e){return e.id}))).then(YP.bind((function(e){return YP.each(i,YP.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),OP.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),OP.resolve())}),this))}),this),c=YP.bind((function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(YP.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(YP.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(u=sx.navigator.onLine,!YP.isUndefined(u)&&!u)||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),OP.resolve()}if(YP.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var c=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,c,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),OP.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),l()}return l()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var u}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),Gj.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,u).then(c)}),this)).catch(YP.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},Zj.prototype.reportError=function(e,t){if(Gj.error.apply(Gj.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Gj.error(t)}};var Kj=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Xj=function(e,t){if(!YP.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},Yj="change",Jj="click",Qj="hashchange",eN="load",tN="mp_locationchange",rN="popstate",nN="scrollend",iN="scroll",oN="submit",sN="visibilitychange",aN=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],lN=["mp-include"],cN=["mp-no-track"],uN=cN.concat(["mp-sensitive"]),dN=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],pN={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},hN={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},fN={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},mN=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],gN=ej("autocapture");function vN(e){for(var t={},r=yN(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function yN(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function bN(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!kN(e));return e}function xN(e,t,r,n,i,o){var s={$classes:yN(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),RN(e,t,i,o)&&YP.each(dN.concat(n),(function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);IN(n)&&(s["$attr-"+t]=n)}}));for(var l=1,c=1,u=e;u=bN(u);)l++,u.tagName===e.tagName&&c++;return s.$nth_child=l,s.$nth_of_type=c,s}function wN(e,t,r,n){var i="";return RN(e,t,r,n)&&e.childNodes&&e.childNodes.length&&YP.each(e.childNodes,(function(e){AN(e)&&e.textContent&&(i+=YP.trim(e.textContent).split(/(\s+)/).filter(IN).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),YP.trim(i)}function CN(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return gN.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){gN.critical("Error while checking selector: "+o,e)}}return!1}function _N(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return gN.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){gN.critical("Error while checking selector: "+o,e)}}var s=vN(e);for(i=0;i<cN.length;i++)if(s[cN[i]])return!0;return!1}function kN(e){return e&&1===e.nodeType}function SN(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function AN(e){return e&&3===e.nodeType}function EN(e){var t=(e.name||e.id||"").toString().toLowerCase();return!("string"!=typeof t||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))}function RN(e,t,r,n){var i;if(!CN(e,t,r,n))return!1;for(var o=e;o.parentNode&&!SN(o,"body");o=o.parentNode){var s=vN(o);for(i=0;i<uN.length;i++)if(s[uN[i]])return!1}var a=vN(e);for(i=0;i<lN.length;i++)if(a[lN[i]])return!0;if(SN(e,"input")||SN(e,"select")||SN(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var l=e.type||"";if("string"==typeof l)switch(l.toLowerCase()){case"hidden":case"password":return!1}return!EN(e)}function IN(e){if(null===e||YP.isUndefined(e))return!1;if("string"==typeof e){if(e=YP.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function ON(e){var t="onscrollend"in sx,r=tj(e),n=nN;if(!t){var i=null;r=tj((function(){clearTimeout(i),i=setTimeout(e,100)})),n=iN}return{listener:r,eventType:n}}function MN(e){var t=e.tagName.toLowerCase();return!!("button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<mN.length;t++)if(e.hasAttribute(mN[t]))return!0;return!1}(e)||function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return pN[r]}(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function TN(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(hN[t])return!0;if(MN(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(MN(r))return!1;if(r.getRootNode&&r.getRootNode()!==zP){var i=r.getRootNode();if(i.host&&MN(i.host))return!1}r=r.parentElement,n++}return!!fN[t]}function LN(e){return"composedPath"in e?e.composedPath():[]}function PN(e){var t=LN(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var jN=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",NN=["password","email","tel","hidden"];function DN(e){return e?Array.isArray(e)?e:[e]:[]}function BN(e,t){return!!t&&!!e.closest(t)}function FN(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==NN.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!((!n||""===n||"off"===n)&&!e.hasAttribute("data-rr-is-password")&&!EN(e)&&(t.input.maskAll?BN(e,t.input.unmaskingSelector):!BN(e,t.input.maskingSelector)&&!BN(e,jN)))}function $N(e,t){return!(!e||(!t.text._legacyClassRegex||!SO(e,t.text._legacyClassRegex))&&(t.text.maskAll?BN(e,t.text.unmaskingSelector):!BN(e,t.text.maskingSelector)&&!BN(e,jN)))}var zN=ej("network-plugin");function UN(e){return Math.round(Date.now()-e.performance.now())}var WN={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function qN(e){return"resource"===e.entryType}function VN(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var HN=1048576;function GN(e){return e&&"string"==typeof e&&e.length>HN?(zN.error("Body truncated from "+e.length+" to "+HN+" characters"),e.substring(0,HN)+"... [truncated]"):e}function ZN(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function KN(e,t,r){return!(!t[e]||0===t[e].length)&&xj(r,t[e])}function XN(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=YP.HTTPBuildQuery(e);else{if(!YP.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return GN(t)}function YN(e){return new Promise((function(t){var r=setTimeout((function(){t("Timeout while trying to read body")}),500);try{e.clone().text().then((function(e){clearTimeout(r),t(GN(e))}),(function(e){clearTimeout(r),t("Failed to read body: "+String(e))}))}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}}))}function JN(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return zN.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),(function(e){return qN(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)}));return s?Promise.resolve(s):new Promise((function(e){setTimeout(e,50*o)})).then((function(){return JN(e,t,r,n,i,o+1)}))}function QN(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},WN.recordHeaders,r.recordHeaders||{}),i=Object.assign({},WN.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},WN,r),s=function(t){var r=t.requests.filter((function(e){return!xj(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)}));(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return zN.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter((function(e){return function(e){return"navigation"===e.entryType}(e)||qN(e)&&r.initiatorTypes.includes(e.initiatorType)}));e({requests:n.map((function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:UN(t)}})),isInitial:!0})}var i=new t.PerformanceObserver((function(n){var i=n.getEntries().filter((function(e){return qN(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType}));e({requests:i.map((function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:UN(t)}}))})}));return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(s,t,o),l=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=VN(t.XMLHttpRequest.prototype,"open",(function(n){return function(i,o,s,a,l){void 0===s&&(s=!0);var c,u,d=this,p=new Request(o,{method:i}),h={},f={},m=d.setRequestHeader.bind(d);d.setRequestHeader=function(e,t){return ZN("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},h.requestHeaders=f;var g=d.send.bind(d);d.send=function(e){return KN("request",r.recordBodyUrls,p.url)&&(h.requestBody=XN(e)),c=t.performance.now(),g(e)},d.addEventListener("readystatechange",(function(){if(d.readyState===d.DONE){u=t.performance.now();var n={},i=d.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach((function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&ZN("response",r.recordHeaders,i)&&(n[i]=o)}}})),h.responseHeaders=n,KN("response",r.recordBodyUrls,p.url)&&(h.responseBody=XN(d.response)),JN(t,"xmlhttprequest",p.url,c,u).then((function(r){if(r){var n={url:r.name,method:p.method,initiatorType:r.initiatorType,status:d.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:UN(t),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};e({requests:[n]})}else zN.error("Failed to get performance entry for XHR request to "+p.url)})).catch((function(e){zN.error("Error recording XHR request to "+p.url+": "+String(e))}))}})),n.call(d,i,o,s,a,l)}}));return function(){n()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=VN(t,"fetch",(function(n){return function(){var i,o,s,a,l=new Request(arguments[0],arguments[1]),c={},u=Promise.resolve(void 0),d=Promise.resolve(void 0);try{var p={};l.headers.forEach((function(e,t){ZN("request",r.recordHeaders,t)&&(p[t]=e)})),c.requestHeaders=p,KN("request",r.recordBodyUrls,l.url)&&(u=YN(l).then((function(e){c.requestBody=e}))),o=t.performance.now(),a=n.apply(t,arguments).then((function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach((function(e,t){ZN("response",r.recordHeaders,t)&&(n[t]=e)})),c.responseHeaders=n,KN("response",r.recordBodyUrls,l.url)&&(d=YN(i).then((function(e){c.responseBody=e}))),i}))}catch(e){a=Promise.reject(e)}return Promise.all([u,d,a]).then((function(){return JN(t,"fetch",l.url,o,s)})).then((function(r){if(r){var n={url:r.name,method:l.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:UN(t),requestHeaders:c.requestHeaders,requestBody:c.requestBody,responseHeaders:c.responseHeaders,responseBody:c.responseBody};e({requests:[n]})}else zN.error("Failed to get performance entry for fetch request to "+l.url)})).catch((function(e){zN.error("Error recording fetch request to "+l.url+": "+String(e))})),a}}));return function(){n()}}(s,t,o);return function(){a(),l(),c()}}var eD=ej("recorder"),tD=sx.CompressionStream,rD={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},nD=new Set([gI.MouseMove,gI.MouseInteraction,gI.Scroll,gI.ViewportResize,gI.Input,gI.TouchMove,gI.MediaInteraction,gI.Drag,gI.Selection]),iD=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||bj,this._onMaxLengthReached=e.onMaxLengthReached||bj,this._onBatchSent=e.onBatchSent||bj,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=TP,this.recordMinMs=0;var t=sj(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Aj(_j),this.batcher=new Zj(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:rD,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};iD.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},iD.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},iD.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},iD.prototype.get_config=function(e){return this.getConfig(e)},iD.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>TP&&(this.recordMaxMs=TP,eD.critical("record_max_ms cannot be greater than "+TP+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=YP.info.currentUrl(),this.replayStartUrl=YP.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=DN(r).join(","),t.input.unmaskingSelector=DN(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),l=e.get_config("record_mask_text_class"),c=DN(o);if(l)if(l instanceof RegExp)t.text._legacyClassRegex=l;else{var u="."+l;-1===c.indexOf(u)&&c.push(u)}return t.text.maskingSelector=c.join(","),t.text.unmaskingSelector=DN(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(function(e){return{name:"rrweb/network@1.mp",observer:QN,options:e}}(o))}this.getConfig("record_console")&&i.push({name:"rrweb/console@1",observer:hP,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=Xj(this.getConfig("record_allowed_iframe_origins"),eD);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===mI.IncrementalSnapshot&&nD.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(FN,n),maskTextFn:this._getMaskFn($N,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var l=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),l)}else eD.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},iD.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},iD.prototype.isRrwebStopped=function(){return null===this._stopRecording},iD.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},iD.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},iD.deserialize=function(e,t){return new iD(YP.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},iD.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},iD.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=YP.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");sx.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){i(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},iD.prototype._flushEvents=Mj((function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,l=0;l<n;l++)o=Math.min(o,e[l].timestamp),s=Math.max(s,e[l].timestamp),e[l].type===mI.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:lx.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(e);if(Object.assign(u,this.getUserIdInfo()),function(e,t,r){if(!sx.CompressionStream)return!1;var n=YP.info.browser(e,t,r),i=YP.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)}(qP,$P.vendor,UP)){var p=new Blob([d],{type:"application/json"}).stream().pipeThrough(new tD("gzip"));new Response(p).blob().then(function(e){u.format="gzip",this._sendRequest(i,u,e,r)}.bind(this))}else u.format="body",this._sendRequest(i,u,d,r)}})),iD.prototype.reportError=function(e,t){eD.error.apply(eD.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){eD.error(t)}},iD.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},iD.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(eD.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},iD.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var oD=function(e){this.idb=new Aj(kj),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};oD.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},oD.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},oD.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return OP.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),OP.resolve())},oD.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return Kj(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):OP.resolve(null)},oD.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},oD.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},oD.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):OP.resolve()},oD.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter((function(e){return Kj(e)})).map(function(e){return iD.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return OP.all(t)}.bind(this)).catch(this.handleError.bind(this)):OP.resolve([])};var sD=ej("recorder"),aD=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||bO,this.sharedLockStorage=r,this.recordingRegistry=new oD({mixpanelInstance:this.mixpanelInstance,errorReporter:sD.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};aD.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){sD.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){sD.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:YP.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=iD.deserialize(e.activeSerializedRecording,i):this.activeRecording=new iD(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}sD.log("Recording already in progress, skipping startRecording.")},aD.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},aD.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},aD.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return OP.resolve()},aD.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),OP.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(sD.log("No resumable recording found."),null)}.bind(this))},aD.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},aD.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},aD.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(aD.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),sx[ux]=aD;var lD,cD={exports:{}},uD=(lD||(lD=1,cD.exports=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);null!==o&&""!==o||t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map((function(t){return e.apply(t,n)}));if(!e.is_logic(r))return r;var i,o,s,a,l,c=e.get_operator(r),u=r[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(i=0;i<u.length-1;i+=2)if(e.truthy(e.apply(u[i],n)))return e.apply(u[i+1],n);return u.length===i+1?e.apply(u[i],n):null}if("and"===c){for(i=0;i<u.length;i+=1)if(o=e.apply(u[i],n),!e.truthy(o))return o;return o}if("or"===c){for(i=0;i<u.length;i+=1)if(o=e.apply(u[i],n),e.truthy(o))return o;return o}if("filter"===c)return a=e.apply(u[0],n),s=u[1],Array.isArray(a)?a.filter((function(t){return e.truthy(e.apply(s,t))})):[];if("map"===c)return a=e.apply(u[0],n),s=u[1],Array.isArray(a)?a.map((function(t){return e.apply(s,t)})):[];if("reduce"===c)return a=e.apply(u[0],n),s=u[1],l=void 0!==u[2]?e.apply(u[2],n):null,Array.isArray(a)?a.reduce((function(t,r){return e.apply(s,{current:r,accumulator:t})}),l):l;if("all"===c){if(a=e.apply(u[0],n),s=u[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(s,a[i])))return!1;return!0}if("none"===c){if(a=e.apply(u[0],n),s=u[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!1;return!0}if("some"===c){if(a=e.apply(u[0],n),s=u[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!0;return!1}if(u=u.map((function(t){return e.apply(t,n)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(n,u);if(c.indexOf(".")>0){var d=String(c).split("."),p=t;for(i=0;i<d.length;i++){if(!p.hasOwnProperty(d[i]))throw new Error("Unrecognized operation "+c+" (failed at "+d.slice(0,i+1).join(".")+")");p=p[d[i]]}return p.apply(n,u)}throw new Error("Unrecognized operation "+c)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach((function(t){r.push.apply(r,e.uses_data(t))}))}return function(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r)},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1}return!1},e}()),cD.exports),dD=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(uD),pD={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!YP.isEmptyObject(n))try{i=dD.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};function hD(){this.clicks=[]}function fD(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}sx[cx]=Promise.resolve(pD),hD.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var o=PN(e);if(!o||TN(o))return!1}var s=Date.now(),a=e.pageX,l=e.pageY,c=this.clicks[this.clicks.length-1];if(c&&s-c.timestamp<n&&Math.sqrt(Math.pow(a-c.x,2)+Math.pow(l-c.y,2))<r){if(this.clicks.push({x:a,y:l,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:l,timestamp:s}];return!1},fD.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return PN(e)},fD.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=LN(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},fD.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver((function(){t.changeCallback()}));r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){gN.critical("Error while observing shadow root",e)}}},fD.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:gN.critical("Shadow DOM observation unavailable: WeakSet not supported"))},fD.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){gN.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var mD=[Yj,"input",oN,"select","toggle"],gD=[nN],vD=[Qj],yD={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function bD(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}bD.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||TN(t)||(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),0))},bD.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},bD.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},bD.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},bD.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},bD.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},bD.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout((function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}}),t)}else this.processingActive=!1},bD.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;mD.forEach((function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})})),vD.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})})),gD.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})}));var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver((function(){e.recordChangeEvent()})),this.mutationObserver.observe(document.body||document.documentElement,yD)}catch(e){gN.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new fD((function(){e.recordChangeEvent()}),yD),this.shadowDOMObserver.start()}catch(e){gN.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},bD.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){gN.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){gN.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){gN.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var xD="autocapture",wD="full-url",CD="allow_selectors",_D="allow_url_regexes",kD="block_attrs",SD="block_element_callback",AD="block_selectors",ED="block_url_regexes",RD="capture_extra_attrs",ID="capture_text_content",OD="scroll_capture_all",MD="scroll_depth_percent_checkpoints",TD="click",LD="dead_click",PD="input",jD="pageview",ND="rage_click",DD="scroll",BD="page_leave",FD="submit",$D={};$D[CD]=[],$D[_D]=[],$D[kD]=[],$D[SD]=null,$D[AD]=[],$D[ED]=[],$D[RD]=[],$D[ID]=!1,$D[OD]=!1,$D[MD]=[25,50,75,100],$D[TD]=!0,$D[LD]=!0,$D[PD]=!0,$D[jD]=wD,$D[ND]=!0,$D[DD]=!0,$D[BD]=!1,$D[FD]=!0;var zD={$mp_autocapture:!0},UD="$mp_click",WD="$mp_dead_click",qD="$mp_rage_click",VD=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};VD.prototype.init=function(){!function(){try{return!!zP.createElement("div").matches}catch(e){return!1}}()?gN.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},VD.prototype.getFullConfig=function(){var e=this.mp.get_config(xD);return e?YP.isObject(e)?YP.extend({},$D,e):$D:{}},VD.prototype.getConfig=function(e){return this.getFullConfig()[e]},VD.prototype.currentUrlBlocked=function(){var e=YP.info.currentUrl(),t=this.getConfig(_D)||[];if(t.length)try{return!xj(e,t)}catch(e){return gN.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(ED)||[];if(!r||!r.length)return!1;try{return xj(e,r)}catch(e){return gN.critical("Error while checking block URL regexes: ",e),!0}},VD.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(xD)?this.getConfig(jD):this.mp.get_config("track_pageview")},VD.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===UD&&!this.getConfig(TD)||t===qD&&!this._getClickTrackingConfig(ND)||t===WD&&!this._getClickTrackingConfig(LD)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,l=t.captureExtraAttrs||[],c=t.capturedForHeatMap||!1,u={};YP.each(i,(function(e){u[e]=!0}));var d=null,p=void 0===e.target?e.srcElement:e.target;if(AN(p)&&(p=p.parentNode),function(e,t){if(!e||SN(e,"html")||!kN(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===oN;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Yj:t.type===Jj;case"select":case"textarea":return t.type===Yj;default:return t.type===Jj}}(p,e)&&CN(p,e,r,n)&&!_N(p,e,o,s)){for(var h=[p],f=p;f.parentNode&&!SN(f,"body");)h.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(YP.each(h,(function(t){var i=RN(t,e,r,n);u.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&IN(m)&&m),_N(t,e,o,s)&&(v=!0),g.push(xN(t,e,u,l,r,n))}),this),!v){var y=zP.documentElement;if(d={$event_type:e.type,$host:sx.location.host,$pathname:sx.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y.clientHeight,sx.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,sx.innerWidth||0),$pageHeight:zP.body.offsetHeight||0,$pageWidth:zP.body.offsetWidth||0},YP.each(l,(function(e){if(!u[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);IN(t)&&(d["$el_attr__"+e]=t)}})),a&&(b=wN(p,e,r,n))&&b.length&&(d.$el_text=b),e.type===Jj&&(YP.each(aN,(function(t){t in e&&(d["$"+t]=e[t])})),c&&(d.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(SN(i,"a")||SN(i,"button")||SN(i,"input")||SN(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var b=wN(p,e,r,n);b&&b.length&&(d.$el_text=b)}if(p){if(!CN(p,e,r,n)||_N(p,e,o,s))return null;var x=xN(p,e,u,l,r,n);d.$target=x,d.$el_classes=x.$classes,YP.extend(d,YP.strip_empty_properties({$el_id:x.$id,$el_tag_name:x.$tag_name}))}}}return d}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(CD),blockAttrs:this.getConfig(kD),blockElementCallback:this.getConfig(SD),blockSelectors:this.getConfig(AD),captureExtraAttrs:this.getConfig(RD),captureTextContent:this.getConfig(ID),capturedForHeatMap:r});n&&(YP.extend(n,zD),this.mp.track(t,n))}},VD.prototype.initPageListeners=function(){if(sx.removeEventListener(rN,this.listenerPopstate),sx.removeEventListener(Qj,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(BD)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){sx.dispatchEvent(new Event(tN))},this.listenerHashchange=function(){sx.dispatchEvent(new Event(tN))},sx.addEventListener(rN,this.listenerPopstate),sx.addEventListener(Qj,this.listenerHashchange);var e=sx.history.pushState;"function"==typeof e&&(sx.history.pushState=function(t,r,n){e.call(sx.history,t,r,n),sx.dispatchEvent(new Event(tN))});var t=sx.history.replaceState;"function"==typeof t&&(sx.history.replaceState=function(e,r,n){t.call(sx.history,e,r,n),sx.dispatchEvent(new Event(tN))})}},VD.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},VD.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(BD)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(zP.documentElement.clientHeight,sx.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=YP.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||YP.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(zP.documentElement.clientWidth,sx.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},zD);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},VD.prototype._initScrollDepthTracking=function(){if(sx.removeEventListener(iN,this.listenerScrollDepth),sx.removeEventListener(nN,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){gN.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(zP.documentElement.clientHeight,sx.innerHeight||0);var e=ON(function(){if(!this.currentUrlBlocked()){var e=Math.max(zP.documentElement.clientHeight,sx.innerHeight||0)+sx.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=zP.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,sx.addEventListener(e.eventType,this.listenerScrollDepth)}},VD.prototype.initClickTracking=function(){sx.removeEventListener(Jj,this.listenerClick),(this.getConfig(TD)||this.mp.get_config("record_heatmap_data"))&&(gN.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(TD)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,UD)}.bind(this),sx.addEventListener(Jj,this.listenerClick))},VD.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(LD)||this.mp.get_config("record_heatmap_data")?(gN.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new bD(function(e){this.trackDomEvent(e,WD)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(LD);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),sx.addEventListener(Jj,this.listenerDeadClick))):this.stopDeadClickTracking()},VD.prototype.initInputTracking=function(){sx.removeEventListener(Yj,this.listenerChange),this.getConfig(PD)&&(gN.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(PD)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),sx.addEventListener(Yj,this.listenerChange))},VD.prototype.initPageviewTracking=function(){if(sx.removeEventListener(tN,this.listenerLocationchange),this.pageviewTrackingConfig()){gN.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(zD)),t&&(e=YP.info.currentUrl()),this.listenerLocationchange=tj(function(){if(!this.currentUrlBlocked()){var t=YP.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===wD?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(zD)&&(e=t),n&&(this.lastScrollCheckpoint=0,gN.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),sx.addEventListener(tN,this.listenerLocationchange)}},VD.prototype.initRageClickTracking=function(){sx.removeEventListener(Jj,this.listenerRageClick),(this._getClickTrackingConfig(ND)||this.mp.get_config("record_heatmap_data"))&&(gN.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new hD),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(ND);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,qD))}.bind(this),sx.addEventListener(Jj,this.listenerRageClick))},VD.prototype.initScrollTracking=function(){if(sx.removeEventListener(nN,this.listenerScroll),sx.removeEventListener(iN,this.listenerScroll),this.getConfig(DD)){gN.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=ON(function(){if(this.getConfig(DD)&&!this.currentUrlBlocked()){var e=this.getConfig(OD),t=(this.getConfig(MD)||[]).slice().sort((function(e,t){return e-t})),r=sx.scrollY,n=YP.extend({$scroll_top:r},zD);try{var i=zP.body.scrollHeight,o=Math.round(r/(i-sx.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){gN.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,sx.addEventListener(e.eventType,this.listenerScroll)}},VD.prototype.initSubmitTracking=function(){sx.removeEventListener(oN,this.listenerSubmit),this.getConfig(FD)&&(gN.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(FD)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),sx.addEventListener(oN,this.listenerSubmit))},VD.prototype.initPageLeaveTracking=function(){if(zP.removeEventListener(sN,this.listenerPageLeaveVisibilitychange),sx.removeEventListener(tN,this.listenerPageLeaveLocationchange),sx.removeEventListener(eN,this.listenerPageLoad),this.getConfig(BD)||this.mp.get_config("record_heatmap_data")){gN.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=YP.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=zP.body.scrollHeight}.bind(this),sx.addEventListener(eN,this.listenerPageLoad),this.listenerPageLeaveLocationchange=tj(function(t){if(!this.currentUrlBlocked()){var r=YP.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(zP.documentElement.clientHeight,sx.innerHeight||0),this.previousScrollHeight=zP.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),sx.addEventListener(tN,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){zP.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),zP.addEventListener(sN,this.listenerPageLeaveVisibilitychange)}},VD.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(sx.removeEventListener(Jj,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},rj(VD);var HD=function(e,t){return sx[cx]&&"function"==typeof sx[cx].then||(sx[cx]=new Promise((function(r){e(t,r)})).then((function(){var e=sx[cx];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")})).catch((function(e){throw delete sx[cx],e}))),sx[cx]},GD=ej("flags"),ZD="flags",KD="context",XD={};XD[KD]={};var YD=function(e){this.fetch=sx.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};YD.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):GD.critical("Feature Flags unavailable: missing minimum required APIs")},YD.prototype.getFullConfig=function(){var e=this.getMpConfig(ZD);return e?YP.isObject(e)?YP.extend({},XD,e):XD:{}},YD.prototype.getConfig=function(e){return this.getFullConfig()[e]},YD.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ZD)},YD.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return GD.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(ZD);YP.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(KD);return r[KD]=YP.extend({},n,e),this.setMpConfig(ZD,r),this.fetchFlags()},YD.prototype.areFlagsReady=function(){return this.isSystemEnabled()||GD.error("Feature Flags not enabled"),!!this.flags},YD.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=mj();GD.log("Fetching flags for distinct ID: "+e);var n=YP.extend({distinct_id:e,device_id:t},this.getConfig(KD)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",lx.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(sx,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var n=new Map,i={};YP.each(t,(function(e,t){var r=!1,i=t+":";if(YP.each(this.activatedFirstTimeEvents,(function(e,t){t.startsWith(i)&&(r=!0)})),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this);var o=e.pending_first_time_events;o&&o.length>0&&YP.each(o,(function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})}),this),this.activatedFirstTimeEvents&&YP.each(this.activatedFirstTimeEvents,(function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))}),this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),GD.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),GD.error(e)}.bind(this)),this.fetchPromise},YD.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):GD.error("Fetch in progress started time not set, cannot mark fetch complete")},YD.prototype._loadTargetingIfNeeded=function(){var e=!1;YP.each(this.pendingFirstTimeEvents,(function(t){t.property_filters&&!YP.isEmptyObject(t.property_filters)&&(e=!0)})),e&&this.getTargeting().then((function(){GD.log("targeting loaded for property filter evaluation")}))},YD.prototype.getTargeting=function(){return HD(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){GD.error("Failed to load targeting: "+e)}.bind(this))},YD.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!YP.isEmptyObject(this.pendingFirstTimeEvents)&&(sx[cx]&&YP.isFunction(sx[cx].then)?sx[cx].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},YD.prototype._processFirstTimeEventCheck=function(e,t,r){YP.each(this.pendingFirstTimeEvents,(function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||YP.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)GD.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){GD.log('First-time event matched for flag "'+s+'": '+e);var l={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,l),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else GD.warn('Skipping event check for "'+s+'" - property filters require targeting library')}}),this)},YD.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},YD.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=mj(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",lx.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};GD.log("Recording first-time event for flag: "+e),this.fetch.call(sx,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch((function(t){GD.error("Failed to record first-time event for flag "+e+": "+t)}))},YD.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch((function(e){return GD.error(e),t})):new Promise((function(e){GD.critical("Feature Flags not initialized"),e(t)}))},YD.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return GD.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(GD.log('No flag found: "'+e+'"'),t)},YD.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then((function(e){return e.value})).catch((function(e){return GD.error(e),t}))},YD.prototype.getFeatureData=function(e,t){return GD.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},YD.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},YD.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch((function(e){return GD.error(e),t}))},YD.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(GD.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},YD.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},YD.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},rj(YD),YD.prototype.are_flags_ready=YD.prototype.areFlagsReady,YD.prototype.get_variant=YD.prototype.getVariant,YD.prototype.get_variant_sync=YD.prototype.getVariantSync,YD.prototype.get_variant_value=YD.prototype.getVariantValue,YD.prototype.get_variant_value_sync=YD.prototype.getVariantValueSync,YD.prototype.is_enabled=YD.prototype.isEnabled,YD.prototype.is_enabled_sync=YD.prototype.isEnabledSync,YD.prototype.update_context=YD.prototype.updateContext,YD.prototype.get_feature_data=YD.prototype.getFeatureData,YD.prototype.getTargeting=YD.prototype.getTargeting;var JD=ej("recorder"),QD="mp_iframe_handshake_request",eB="mp_iframe_handshake_response",tB=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};tB.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return JP.log("Load recorder check skipped due to disable_persistence config"),OP.resolve(!1);var e=new Aj(kj),t=this.getTabId();return e.init().then((function(){return e.getAll()})).then((function(e){for(var r=0;r<e.length;r++)if(Kj(e[r])||e[r].tabId===t)return!0;return!1})).catch(YP.bind((function(e){return this.reportError("Error checking recording registry",e),!1}),this))},tB.prototype.checkAndStartSessionRecording=function(e,t){if(!sx.MutationObserver)return JP.critical("Browser does not support MutationObserver; skipping session recording"),OP.resolve();var r=YP.bind((function(e){return new OP(YP.bind((function(t){var r=tj(YP.bind((function(){this._recorder=this._recorder||new sx[ux](this.mixpanelInstance),this._recorder.resumeRecording(e),t()}),this));if(YP.isUndefined(sx[ux])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()}),this))}),this),n=Xj(this.getMpConfig("record_allowed_iframe_origins"),JD);if(n.length>0&&(this._setupParentFrameListener(n),sx.parent!==sx))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),OP.resolve();var i=YP.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(YP.bind((function(e){return e?r(!1):OP.resolve()}),this))},tB.prototype.isRecording=function(){if(!this._recorder||!YP.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},tB.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!YP.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+dx;HD(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){JP.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch((function(e){JP.critical("Failed to load targeting library:",e)}))}else this.checkAndStartSessionRecording(!1,o)}}},tB.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():OP.resolve()},tB.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():OP.resolve()},tB.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():OP.resolve()},tB.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},tB.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},tB.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+YP.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},tB.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},tB.prototype.getRecorder=function(){return this._recorder},tB.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===eB&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,sx.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},sx.addEventListener("message",this._childFrameMessageHandler)}},tB.prototype._sendParentFrameRequest=function(e){var t={};t.type=QD,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{sx.parent.postMessage(t,e[r])}catch(e){}},tB.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),function i(){setTimeout((function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())}),n)}()},tB.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===QD&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=eB,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},sx.addEventListener("message",this._parentFrameMessageHandler)}},rj(tB);var rB=function(){};rB.prototype.create_properties=function(){},rB.prototype.event_handler=function(){},rB.prototype.after_track_handler=function(){},rB.prototype.init=function(e){return this.mp=e,this},rB.prototype.track=function(e,t,r,n){var i=this,o=YP.dom_query(e);if(0!==o.length)return YP.each(o,(function(e){YP.register_event(e,this.override_event,(function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))}))}),this),!0;JP.error("The DOM query ("+e+") returned 0 elements")},rB.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},rB.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):YP.extend({},e)};var nB=function(){this.override_event="click"};YP.inherit(nB,rB),nB.prototype.create_properties=function(e,t){var r=nB.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},nB.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},nB.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var iB=function(){this.override_event="submit"};YP.inherit(iB,rB),iB.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},iB.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var oB="$set",sB="$set_once",aB="$unset",lB="$add",cB="$append",uB="$union",dB="$remove",pB={set_action:function(e,t){var r={},n={};return YP.isObject(e)?YP.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[oB]=n,r},unset_action:function(e){var t={},r=[];return YP.isArray(e)||(e=[e]),YP.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[aB]=r,t},set_once_action:function(e,t){var r={},n={};return YP.isObject(e)?YP.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[sB]=n,r},union_action:function(e,t){var r={},n={};return YP.isObject(e)?YP.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=YP.isArray(e)?e:[e])}),this):n[e]=YP.isArray(t)?t:[t],r[uB]=n,r},append_action:function(e,t){var r={},n={};return YP.isObject(e)?YP.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[cB]=n,r},remove_action:function(e,t){var r={},n={};return YP.isObject(e)?YP.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[dB]=n,r},delete_action:function(){return{$delete:""}}},hB=function(){};YP.extend(hB.prototype,pB),hB.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},hB.prototype.set=Lj((function(e,t,r){var n=this.set_action(e,t);return YP.isObject(e)&&(r=t),this._send_request(n,r)})),hB.prototype.set_once=Lj((function(e,t,r){var n=this.set_once_action(e,t);return YP.isObject(e)&&(r=t),this._send_request(n,r)})),hB.prototype.unset=Lj((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),hB.prototype.union=Lj((function(e,t,r){YP.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),hB.prototype.delete=Lj((function(e){var t=this.delete_action();return this._send_request(t,e)})),hB.prototype.remove=Lj((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),hB.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=YP.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},hB.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},hB.prototype._get_config=function(e){return this._mixpanel.get_config(e)},hB.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},hB.prototype.remove=hB.prototype.remove,hB.prototype.set=hB.prototype.set,hB.prototype.set_once=hB.prototype.set_once,hB.prototype.union=hB.prototype.union,hB.prototype.unset=hB.prototype.unset,hB.prototype.toString=hB.prototype.toString;var fB=function(){};YP.extend(fB.prototype,pB),fB.prototype._init=function(e){this._mixpanel=e},fB.prototype.set=Tj((function(e,t,r){var n=this.set_action(e,t);return YP.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[oB]=YP.extend({},YP.info.people_properties(),n[oB]),this._send_request(n,r)})),fB.prototype.set_once=Tj((function(e,t,r){var n=this.set_once_action(e,t);return YP.isObject(e)&&(r=t),this._send_request(n,r)})),fB.prototype.unset=Tj((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),fB.prototype.increment=Tj((function(e,t,r){var n={},i={};return YP.isObject(e)?(YP.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void JP.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),r=t):(YP.isUndefined(t)&&(t=1),i[e]=t),n[lB]=i,this._send_request(n,r)})),fB.prototype.append=Tj((function(e,t,r){YP.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),fB.prototype.remove=Tj((function(e,t,r){YP.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),fB.prototype.union=Tj((function(e,t,r){YP.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),fB.prototype.track_charge=Tj((function(){JP.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")})),fB.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},fB.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}JP.error("mixpanel.people.delete_user() requires you to call identify() first")},fB.prototype.toString=function(){return this._mixpanel.toString()+".people"},fB.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=YP.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),YP.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),YP.truncate(o,255))},fB.prototype._get_config=function(e){return this._mixpanel.get_config(e)},fB.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},fB.prototype._enqueue=function(e){oB in e?this._mixpanel.persistence._add_to_people_queue(oB,e):sB in e?this._mixpanel.persistence._add_to_people_queue(sB,e):aB in e?this._mixpanel.persistence._add_to_people_queue(aB,e):lB in e?this._mixpanel.persistence._add_to_people_queue(lB,e):cB in e?this._mixpanel.persistence._add_to_people_queue(cB,e):dB in e?this._mixpanel.persistence._add_to_people_queue(dB,e):uB in e?this._mixpanel.persistence._add_to_people_queue(uB,e):JP.error("Invalid call to _enqueue():",e)},fB.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=YP.extend({},this._mixpanel.persistence.load_queue(e)),s=o;YP.isUndefined(o)||!YP.isObject(o)||YP.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,(function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),YP.isUndefined(r)||r(t,n)})))},fB.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(oB,this.set,e),this._flush_one_queue(sB,this.set_once,n),this._flush_one_queue(aB,this.unset,o,(function(e){return YP.keys(e)})),this._flush_one_queue(lB,this.increment,t),this._flush_one_queue(uB,this.union,i);var l=this._mixpanel.persistence.load_queue(cB);if(!YP.isUndefined(l)&&YP.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(cB,c),YP.isUndefined(r)||r(e,t)},d=l.length-1;d>=0;d--)l=this._mixpanel.persistence.load_queue(cB),c=l.pop(),a._mixpanel.persistence.save(),YP.isEmptyObject(c)||a.append(c,u);var p=this._mixpanel.persistence.load_queue(dB);if(!YP.isUndefined(p)&&YP.isArray(p)&&p.length)for(var h,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(dB,h),YP.isUndefined(s)||s(e,t)},m=p.length-1;m>=0;m--)p=this._mixpanel.persistence.load_queue(dB),h=p.pop(),a._mixpanel.persistence.save(),YP.isEmptyObject(h)||a.remove(h,f)},fB.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},fB.prototype.set=fB.prototype.set,fB.prototype.set_once=fB.prototype.set_once,fB.prototype.unset=fB.prototype.unset,fB.prototype.increment=fB.prototype.increment,fB.prototype.append=fB.prototype.append,fB.prototype.remove=fB.prototype.remove,fB.prototype.union=fB.prototype.union,fB.prototype.track_charge=fB.prototype.track_charge,fB.prototype.clear_charges=fB.prototype.clear_charges,fB.prototype.delete_user=fB.prototype.delete_user,fB.prototype.toString=fB.prototype.toString;var mB,gB="__mps",vB="__mpso",yB="__mpus",bB="__mpa",xB="__mpap",wB="__mpr",CB="__mpu",_B="$people_distinct_id",kB="__alias",SB="__timers",AB=[gB,vB,yB,bB,xB,wB,CB,_B,kB,SB],EB=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(JP.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&YP.localStorage.is_supported()?this.storage=YP.localStorage:this.storage=YP.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};EB.prototype.properties=function(){var e={};return this.load(),YP.each(this.props,(function(t,r){YP.include(AB,r)||(e[r]=t)})),e},EB.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=YP.extend({},e))}},EB.prototype.upgrade=function(){var e,t;this.storage===YP.localStorage?(e=YP.cookie.parse(this.name),YP.cookie.remove(this.name),YP.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===YP.cookie&&(t=YP.localStorage.parse(this.name),YP.localStorage.remove(this.name),t&&this.register_once(t))},EB.prototype.save=function(){this.disabled||this.storage.set(this.name,wj(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},EB.prototype.load_prop=function(e){return this.load(),this.props[e]},EB.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},EB.prototype.clear=function(){this.remove(),this.props={}},EB.prototype.register_once=function(e,t,r){return!!YP.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),YP.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},EB.prototype.register=function(e,t){return!!YP.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),YP.extend(this.props,e),this.save(),!0)},EB.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},EB.prototype.update_search_keyword=function(e){this.register(YP.info.searchInfo(e))},EB.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:YP.info.referringDomain(e)||"$direct"},"")},EB.prototype.get_referrer_info=function(){return YP.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},EB.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},EB.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},EB.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},EB.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},EB.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},EB.prototype.get_cross_subdomain=function(){return this.cross_subdomain},EB.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},EB.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(oB),o=this._get_or_create_queue(sB),s=this._get_or_create_queue(aB),a=this._get_or_create_queue(lB),l=this._get_or_create_queue(uB),c=this._get_or_create_queue(dB,[]),u=this._get_or_create_queue(cB,[]);r===gB?(YP.extend(i,n),this._pop_from_people_queue(lB,n),this._pop_from_people_queue(uB,n),this._pop_from_people_queue(aB,n)):r===vB?(YP.each(n,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue(aB,n)):r===yB?YP.each(n,(function(e){YP.each([i,o,a,l],(function(t){e in t&&delete t[e]})),YP.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===bB?(YP.each(n,(function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(aB,n)):r===CB?(YP.each(n,(function(e,t){YP.isArray(e)&&(t in l||(l[t]=[]),YP.each(e,(function(e){YP.include(l[t],e)||l[t].push(e)})))})),this._pop_from_people_queue(aB,n)):r===wB?(c.push(n),this._pop_from_people_queue(cB,n)):r===xB&&(u.push(n),this._pop_from_people_queue(aB,n)),JP.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),JP.log(t),this.save()},EB.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];YP.isUndefined(r)||YP.each(t,(function(t,n){e===cB||e===dB?YP.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},EB.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},EB.prototype._get_queue_key=function(e){return e===oB?gB:e===sB?vB:e===aB?yB:e===lB?bB:e===cB?xB:e===dB?wB:e===uB?CB:void JP.error("Invalid queue:",e)},EB.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=YP.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},EB.prototype.set_event_timer=function(e,t){var r=this.load_prop(SB)||{};r[e]=t,this.props[SB]=r,this.save()},EB.prototype.remove_event_timer=function(e){var t=(this.load_prop(SB)||{})[e];return YP.isUndefined(t)||(delete this.props[SB][e],this.save()),t};var RB,IB=function(e,t){throw new Error(e+" not available in this build.")},OB="mixpanel",MB="base64",TB="$device:",LB=sx.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,PB=!LB&&-1===qP.indexOf("MSIE")&&-1===qP.indexOf("Mozilla"),jB=null;$P.sendBeacon&&(jB=function(){return $P.sendBeacon.apply($P,arguments)});var NB={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},DB={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:NB,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:MB,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:bj,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:bj,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:TP,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},BB=!1,FB=function(){},$B=function(e,t,r){var n,i=r===OB?RB:RB[r];if(i&&0===mB)n=i;else{if(i&&!YP.isArray(i))return void JP.error("You have already initialized "+r);n=new FB}if(n._cached_groups={},n._init(e,t,r),n.people=new fB,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=YP.info.campaignParams(null),s={},a=!1;YP.each(o,(function(e,t){s["initial_"+t]=e,e&&(a=!0)})),a&&n.people.set_once(s)}lx.DEBUG=lx.DEBUG||n.get_config("debug");var l=0===mB?"module":"snippet";return sx.dispatchEvent(new sx.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:l,token:e,name:r,info:YP.info}})),!YP.isUndefined(i)&&YP.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};FB.prototype.init=function(e,t,r){if(YP.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==OB){var n=$B(e,t,r);return RB[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},FB.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||DB.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(YP.extend({},DB,n,t,{name:r,token:e,callback_fn:(r===OB?r:OB+"."+r)+"._jsc"})),this.recorderManager=new tB({mixpanelInstance:this,getConfigFunc:YP.bind(this.get_config,this),setConfigFunc:YP.bind(this.set_config,this),getTabIdFunc:YP.bind(this.get_tab_id,this),reportErrorFunc:YP.bind(this.report_error,this),getDistinctIdFunc:YP.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:IB}),this._jsc=bj,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(YP.localStorage.is_supported(!0)&&LB){if(this.init_batchers(),jB&&sx.addEventListener){var i=YP.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);sx.addEventListener("pagehide",(function(e){e.persisted&&i()})),sx.addEventListener("visibilitychange",(function(){"hidden"===zP.visibilityState&&i()}))}}else this._batch_requests=!1,JP.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),YP.each(this.get_batcher_configs(),(function(e){JP.log("Clearing batch queue "+e.queue_key),YP.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new EB(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=YP.UUID();this.get_distinct_id()||this.register_once({distinct_id:TB+o,$device_id:o},""),this.flags=new YD({getFullApiRoute:YP.bind((function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags}),this),getConfigFunc:YP.bind(this.get_config,this),setConfigFunc:YP.bind(this.set_config,this),getPropertyFunc:YP.bind(this.get_property,this),trackingFunc:YP.bind(this.track,this),loadExtraBundle:IB,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+dx}),this.flags.init(),this.flags=this.flags,this.autocapture=new VD(this),this.autocapture.init(),this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(YP.bind((function(){return this._check_and_start_session_recording()}),this)):this._check_and_start_session_recording()},FB.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))JP.log("Tab ID initialization skipped due to disable_persistence config");else if(YP.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!YP.sessionStorage.get(r)&&YP.sessionStorage.get(t)||YP.sessionStorage.set(t,"$tab-"+YP.UUID()),YP.sessionStorage.set(r,"1"),this.tab_id=YP.sessionStorage.get(t),sx.addEventListener("beforeunload",(function(){YP.sessionStorage.remove(r)}))}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},FB.prototype.get_tab_id=function(){return this.tab_id||null},FB.prototype._check_and_start_session_recording=Mj((function(e){return this.recorderManager.checkAndStartSessionRecording(e)})),FB.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},FB.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},FB.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},FB.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},FB.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},FB.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},FB.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},FB.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},FB.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},FB.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},FB.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=YP.info.campaignParams(null);YP.each(e,function(e,t){this.unregister(t)}.bind(this))}},FB.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(zP.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(YP.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(zP.referrer)},FB.prototype._dom_loaded=function(){YP.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||YP.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},FB.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!BB)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},FB.prototype._prepare_callback=function(e,t){if(YP.isUndefined(e))return null;if(LB)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},FB.prototype._send_request=function(e,t,r,n){var i=!0;if(PB)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!YP.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=YP.extend(o,r||{}),LB||(r.method="GET");var a="POST"===r.method,l=jB&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),LB||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),YP.extend(t,this.get_config("api_extra_query_params")),e+="?"+YP.HTTPBuildQuery(t);var u=this;if("img"in t){var d=zP.createElement("img");d.src=e,zP.body.appendChild(d)}else if(l){try{i=jB(e,s)}catch(e){u.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){u.report_error(e)}}else if(LB)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),YP.each(h,(function(e,t){p.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var f=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(c){var t;try{t=YP.JSONDecode(p.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,u.report_error(e),n)if(c){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){u.report_error(e),i=!1}else{var m=zP.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=zP.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},FB.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!sx.AbortController)return JP.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:lx.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=n+"?"+YP.HTTPBuildQuery(i),s=new AbortController,a=setTimeout((function(){s.abort()}),500),l={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return sx.fetch(o,l).then((function(e){return clearTimeout(a),e.ok?e.json():(JP.critical("Network response was not ok"),void r())})).then((function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};YP.each(n,(function(e,t){DB.hasOwnProperty(t)&&(i[t]=e)})),YP.isEmptyObject(i)?(JP.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()})).catch((function(e){clearTimeout(a),JP.critical("Failed to fetch remote settings",e),r()}))},FB.prototype._execute_array=function(e){var t,r=[],n=[],i=[];YP.each(e,(function(e){e&&(t=e[0],YP.isArray(t)?i.push(e):"function"==typeof e?e.call(this):YP.isArray(e)&&"alias"===t?r.push(e):YP.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))}),this);var o=function(e,t){YP.each(e,(function(e){if(YP.isArray(e[0])){var r=t;YP.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(r,this),o(n,this),o(i,this)},FB.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},FB.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},FB.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=YP.bind((function(e){return new Zj(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:YP.bind((function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:YP.bind((function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null}),this),stopAllBatchingFunc:YP.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},FB.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,YP.each(this.request_batchers,(function(e){e.start()})))},FB.prototype.stop_batch_senders=function(){this._batch_requests=!1,YP.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},FB.prototype.push=function(e){this._execute_array([e])},FB.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},FB.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},FB.prototype._encode_data_for_request=function(e){var t=wj(e);return this.get_config("api_payload_format")===MB&&(t=YP.base64Encode(t)),{data:t}},FB.prototype._track_or_batch=function(e,t){var r=YP.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||bj;var a=!0,l=YP.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(JP.log("MIXPANEL REQUEST:"),JP.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!o?i.enqueue(r).then((function(e){e?t(1,r):l()})):a=l(),a&&r},FB.prototype.track=Mj((function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=bj),YP.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=YP.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!YP.isUndefined(a)){var l=(new Date).getTime()-a;t.$duration=parseFloat((l/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?YP.info.marketingParams():{};t=YP.extend({},YP.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");YP.isArray(u)?YP.each(u,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+u),this._start_recording_on_event(e,t);var d={event:e,properties:t};return i=this._track_or_batch({type:"events",data:d,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}})),FB.prototype.set_group=Mj((function(e,t,r){YP.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),FB.prototype.add_group=Mj((function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)})),FB.prototype.remove_group=Mj((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),FB.prototype.track_with_groups=Mj((function(e,t,r,n){var i=YP.extend({},t||{});return YP.each(r,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,n)})),FB.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},FB.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},FB.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new hB)._init(this,e,t),this._cached_groups[r]=n),n},FB.prototype.track_pageview=Mj((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=YP.extend(YP.info.mpPageViewProperties(),YP.info.campaignParams(),YP.info.clickParams()),i=YP.extend({},n,e);return this.track(r,i)})),FB.prototype.track_links=function(){return this._track_dom.call(this,nB,arguments)},FB.prototype.track_forms=function(){return this._track_dom.call(this,iB,arguments)},FB.prototype.time_event=function(e){YP.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var zB={persistent:!0},UB=function(e){var t;return t=YP.isObject(e)?e:YP.isUndefined(e)?{}:{days:e},YP.extend({},zB,t)};FB.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=UB(t);n.persistent?this.persistence.register(e,n.days):YP.extend(this.unpersisted_superprops,e)}},FB.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=UB(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),YP.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))}},FB.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=UB(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},FB.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},FB.prototype.identify=function(e,t,r,n,i,o,s,a){var l=this._run_hook("before_identify",e);if(null===l)return-1;e=l[0];var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(TB))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(kB)&&(this.unregister(kB),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},FB.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=YP.UUID();this.register_once({distinct_id:TB+e,$device_id:e},""),this._check_and_start_session_recording()},FB.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},FB.prototype.alias=function(e,t){if(e===this.get_property(_B))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return YP.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(kB,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},FB.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},FB.prototype.set_config=function(e){YP.isObject(e)&&(YP.extend(this.config,e),e.batch_size&&YP.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),lx.DEBUG=lx.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),YP.isObject(e.hooks)&&(this.hooks={},YP.each(e.hooks,(function(e,t){if(YP.isFunction(e))this.hooks[t]=[e];else if(YP.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)YP.isFunction(e[r])||JP.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else JP.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")}),this)))},FB.prototype.get_config=function(e){return this.config[e]},FB.prototype._run_hook=function(e){var t=NP.call(arguments,1);return YP.each(this.hooks[e],(function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(YP.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))}),this),t},FB.prototype.get_property=function(e){return this.persistence.load_prop([e])},FB.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},FB.prototype.toString=function(){var e=this.get_config("name");return e!==OB&&(e=OB+"."+e),e},FB.prototype._event_is_disabled=function(e){return YP.isBlockedUA(qP)||this._flags.disable_all_events||YP.include(this.__disabled_events,e)},FB.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&YP.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!YP.cookie.get("mp_optout")||(YP.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},FB.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},FB.prototype._gdpr_call_func=function(e,t){return t=YP.extend({track:YP.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),YP.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},FB.prototype.opt_in_tracking=function(e){e=YP.extend({enable_persistence:!0},e),this._gdpr_call_func(Ej,e),this._gdpr_update_persistence(e)},FB.prototype.opt_out_tracking=function(e){(e=YP.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Rj,e),this._gdpr_update_persistence(e)},FB.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Ij,e)},FB.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Oj,e)},FB.prototype.clear_opt_in_out_tracking=function(e){e=YP.extend({enable_persistence:!0},e),this._gdpr_call_func(Pj,e),this._gdpr_update_persistence(e)},FB.prototype.report_error=function(e,t){JP.error.apply(JP.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){JP.error(t)}},FB.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},FB.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):JP.log("remove_hook failed. Matching hook was not found"))},FB.prototype.init=FB.prototype.init,FB.prototype.reset=FB.prototype.reset,FB.prototype.enable=FB.prototype.enable,FB.prototype.disable=FB.prototype.disable,FB.prototype.time_event=FB.prototype.time_event,FB.prototype.track=FB.prototype.track,FB.prototype.track_links=FB.prototype.track_links,FB.prototype.track_forms=FB.prototype.track_forms,FB.prototype.track_pageview=FB.prototype.track_pageview,FB.prototype.register=FB.prototype.register,FB.prototype.register_once=FB.prototype.register_once,FB.prototype.unregister=FB.prototype.unregister,FB.prototype.identify=FB.prototype.identify,FB.prototype.alias=FB.prototype.alias,FB.prototype.name_tag=FB.prototype.name_tag,FB.prototype.set_config=FB.prototype.set_config,FB.prototype.get_config=FB.prototype.get_config,FB.prototype.get_api_host=FB.prototype.get_api_host,FB.prototype.get_property=FB.prototype.get_property,FB.prototype.get_distinct_id=FB.prototype.get_distinct_id,FB.prototype.toString=FB.prototype.toString,FB.prototype.opt_out_tracking=FB.prototype.opt_out_tracking,FB.prototype.opt_in_tracking=FB.prototype.opt_in_tracking,FB.prototype.has_opted_out_tracking=FB.prototype.has_opted_out_tracking,FB.prototype.has_opted_in_tracking=FB.prototype.has_opted_in_tracking,FB.prototype.clear_opt_in_out_tracking=FB.prototype.clear_opt_in_out_tracking,FB.prototype.get_group=FB.prototype.get_group,FB.prototype.set_group=FB.prototype.set_group,FB.prototype.add_group=FB.prototype.add_group,FB.prototype.remove_group=FB.prototype.remove_group,FB.prototype.add_hook=FB.prototype.add_hook,FB.prototype.remove_hook=FB.prototype.remove_hook,FB.prototype.track_with_groups=FB.prototype.track_with_groups,FB.prototype.start_batch_senders=FB.prototype.start_batch_senders,FB.prototype.stop_batch_senders=FB.prototype.stop_batch_senders,FB.prototype.start_session_recording=FB.prototype.start_session_recording,FB.prototype.stop_session_recording=FB.prototype.stop_session_recording,FB.prototype.pause_session_recording=FB.prototype.pause_session_recording,FB.prototype.resume_session_recording=FB.prototype.resume_session_recording,FB.prototype.get_session_recording_properties=FB.prototype.get_session_recording_properties,FB.prototype.get_session_replay_url=FB.prototype.get_session_replay_url,FB.prototype.get_tab_id=FB.prototype.get_tab_id,FB.prototype.DEFAULT_API_ROUTES=NB,FB.prototype.__get_recorder=FB.prototype.__get_recorder,FB.prototype.__get_recording_init_promise=FB.prototype.__get_recording_init_promise,EB.prototype.properties=EB.prototype.properties,EB.prototype.update_search_keyword=EB.prototype.update_search_keyword,EB.prototype.update_referrer_info=EB.prototype.update_referrer_info,EB.prototype.get_cross_subdomain=EB.prototype.get_cross_subdomain,EB.prototype.clear=EB.prototype.clear;var WB={},qB=(IB=function(e,t){t()},mB=0,(RB=new FB).init=function(e,t,r){if(r)return RB[r]||(RB[r]=WB[r]=$B(e,t,r),RB[r]._loaded()),RB[r];var n=RB;WB[OB]?n=WB[OB]:e&&((n=$B(e,t,OB))._loaded(),WB[OB]=n),RB=n,1===mB&&(sx[OB]=RB),YP.each(WB,(function(e,t){t!==OB&&(RB[t]=e)})),RB._=YP},RB.init(),function(){function e(){e.done||(e.done=!0,BB=!0,PB=!1,YP.each(WB,(function(e){e._dom_loaded()})))}if(zP.addEventListener)"complete"===zP.readyState?e():zP.addEventListener("DOMContentLoaded",e,!1);else if(zP.attachEvent){zP.attachEvent("onreadystatechange",e);var t=!1;try{t=null===sx.frameElement}catch(e){}zP.documentElement.doScroll&&t&&function t(){try{zP.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}YP.register_event(sx,"load",e,!0)}(),RB);const VB="elementor-one-assets";let HB=null;function GB(){return HB}const ZB={initialize(e,t){if(!HB)try{qB.init(e,{api_host:"https://api-eu.mixpanel.com",debug:"production"!==t,track_pageview:!1,persistence:"localStorage",persistence_name:VB},VB),HB=qB[VB],HB.opt_in_tracking()}catch(e){console.warn("[elementor-one-assets] Failed to initialize tracking:",e)}},registerOnce(e){const t=GB();t?.register_once(e)},track(e,t){const r=GB();r?.track(e,t)},isInitialized:()=>null!==HB},KB="plugin-settings",XB=e=>{const{enabled:t=!0}=e||{};return Gg({queryKey:[KB],queryFn:()=>nx.getPluginSettings(),enabled:t})},YB=new $g({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!1,retryOnMount:!1,retry:!1}}}),JB=(0,o.createContext)(null),QB=({env:e,language:t="en",isRTL:r=!1,children:n})=>{const s=(0,o.useMemo)((()=>(e=>Kg[e])(e)),[e]),a=(0,o.useMemo)((()=>({config:s,isRTL:r})),[s,r]);return(0,o.useEffect)((()=>{jh.changeLanguage(t)}),[t]),(0,o.useEffect)((()=>{lb.initialize(s)}),[s]),(0,o.useEffect)((()=>{window.elementorOneSettingsData?.shareUsageData&&ZB.initialize("150605b3b9f979922f2ac5a52e2dcfe9",e)}),[e]),(0,i.jsx)(Wg,{client:YB,children:(0,i.jsx)(JB.Provider,{value:a,children:n})})},eF=()=>{const e=(0,o.useContext)(JB);if(!e)throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access the env config");return e.config};var tF=lo;const rF=()=>{const e=jo();return tF(e.breakpoints.down("sm"))};function nF(e){return Kn("MuiSkeleton",e)}No("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const iF=["animation","className","component","height","style","variant","width"];let oF,sF,aF,lF,cF=e=>e;const uF=rt(oF||(oF=cF`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),dF=rt(sF||(sF=cF`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),pF=Oi("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const r=function(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}(e.shape.borderRadius)||"px",n=function(e){return parseFloat(e)}(e.shape.borderRadius);return u({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:ho(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&tt(aF||(aF=cF`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),uF)),(({ownerState:e,theme:t})=>"wave"===e.animation&&tt(lF||(lF=cF`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),dF,(t.vars||t).palette.action.hover))),hF=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:o,component:s="span",height:a,style:l,variant:d="text",width:p}=r,h=c(r,iF),f=u({},r,{animation:n,component:s,variant:d,hasChildren:Boolean(h.children)}),m=(e=>{const{classes:t,variant:r,animation:n,hasChildren:i,width:o,height:s}=e;return C({root:["root",r,n,i&&"withChildren",i&&!o&&"fitContent",i&&!s&&"heightAuto"]},nF,t)})(f);return(0,i.jsx)(pF,u({as:s,ref:t,className:w(m.root,o),ownerState:f},h,{style:u({width:p,height:a},l)}))})),fF=hF;var mF=s().forwardRef(((e,t)=>s().createElement(fF,{...e,ref:t})));function gF(e,t){function r(r,n){return(0,i.jsx)(ac,u({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ac.muiName,o.memo(o.forwardRef(r))}const vF=gF((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function yF(e){return Kn("MuiChip",e)}const bF=No("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),xF=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],wF=Oi("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=r;return[{[`& .${bF.avatar}`]:t.avatar},{[`& .${bF.avatar}`]:t[`avatar${Bi(a)}`]},{[`& .${bF.avatar}`]:t[`avatarColor${Bi(n)}`]},{[`& .${bF.icon}`]:t.icon},{[`& .${bF.icon}`]:t[`icon${Bi(a)}`]},{[`& .${bF.icon}`]:t[`iconColor${Bi(i)}`]},{[`& .${bF.deleteIcon}`]:t.deleteIcon},{[`& .${bF.deleteIcon}`]:t[`deleteIcon${Bi(a)}`]},{[`& .${bF.deleteIcon}`]:t[`deleteIconColor${Bi(n)}`]},{[`& .${bF.deleteIcon}`]:t[`deleteIcon${Bi(l)}Color${Bi(n)}`]},t.root,t[`size${Bi(a)}`],t[`color${Bi(n)}`],o&&t.clickable,o&&"default"!==n&&t[`clickableColor${Bi(n)})`],s&&t.deletable,s&&"default"!==n&&t[`deletableColor${Bi(n)}`],t[l],t[`${l}${Bi(n)}`]]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return u({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${bF.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${bF.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${bF.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${bF.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${bF.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${bF.icon}`]:u({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&u({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),[`& .${bF.deleteIcon}`]:u({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ti.alpha(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ti.alpha(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:ti.alpha(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${bF.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ti.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${bF.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>u({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ti.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${bF.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ti.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${bF.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>u({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${bF.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${bF.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${bF.avatar}`]:{marginLeft:4},[`& .${bF.avatarSmall}`]:{marginLeft:2},[`& .${bF.icon}`]:{marginLeft:4},[`& .${bF.iconSmall}`]:{marginLeft:2},[`& .${bF.deleteIcon}`]:{marginRight:5},[`& .${bF.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ti.alpha(e.palette[t.color].main,.7)}`,[`&.${bF.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ti.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${bF.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ti.alpha(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${bF.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ti.alpha(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),CF=Oi("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${Bi(n)}`]]}})((({ownerState:e})=>u({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function _F(e){return"Backspace"===e.key||"Delete"===e.key}const kF=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiChip"}),{avatar:n,className:s,clickable:a,color:l="default",component:d,deleteIcon:p,disabled:h=!1,icon:f,label:m,onClick:g,onDelete:v,onKeyDown:y,onKeyUp:b,size:x="medium",variant:_="filled",tabIndex:k,skipFocusWhenDisabled:S=!1}=r,A=c(r,xF),E=o.useRef(null),R=bs(E,t),I=e=>{e.stopPropagation(),v&&v(e)},O=!(!1===a||!g)||a,M=O||v?ma:d||"div",T=u({},r,{component:M,disabled:h,size:x,color:l,iconColor:o.isValidElement(f)&&f.props.color||l,onDelete:!!v,clickable:O,variant:_}),L=(e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e;return C({root:["root",l,r&&"disabled",`size${Bi(n)}`,`color${Bi(i)}`,a&&"clickable",a&&`clickableColor${Bi(i)}`,s&&"deletable",s&&`deletableColor${Bi(i)}`,`${l}${Bi(i)}`],label:["label",`label${Bi(n)}`],avatar:["avatar",`avatar${Bi(n)}`,`avatarColor${Bi(i)}`],icon:["icon",`icon${Bi(n)}`,`iconColor${Bi(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Bi(n)}`,`deleteIconColor${Bi(i)}`,`deleteIcon${Bi(l)}Color${Bi(i)}`]},yF,t)})(T),P=M===ma?u({component:d||"div",focusVisibleClassName:L.focusVisible},v&&{disableRipple:!0}):{};let j=null;v&&(j=p&&o.isValidElement(p)?o.cloneElement(p,{className:w(p.props.className,L.deleteIcon),onClick:I}):(0,i.jsx)(vF,{className:w(L.deleteIcon),onClick:I}));let N=null;n&&o.isValidElement(n)&&(N=o.cloneElement(n,{className:w(L.avatar,n.props.className)}));let D=null;return f&&o.isValidElement(f)&&(D=o.cloneElement(f,{className:w(L.icon,f.props.className)})),(0,i.jsxs)(wF,u({as:M,className:w(L.root,s),disabled:!(!O||!h)||void 0,onClick:g,onKeyDown:e=>{e.currentTarget===e.target&&_F(e)&&e.preventDefault(),y&&y(e)},onKeyUp:e=>{e.currentTarget===e.target&&(v&&_F(e)?v(e):"Escape"===e.key&&E.current&&E.current.blur()),b&&b(e)},ref:R,tabIndex:S&&h?-1:k,ownerState:T},P,A,{children:[N||D,(0,i.jsx)(CF,{className:w(L.label),ownerState:T,children:m}),j]}))})),SF=kF,AF=Da(SF)((({theme:e,ownerState:t})=>"rounded"!==t.shape?null:{borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})),EF={shape:"pill"},RF=s().forwardRef(((e,t)=>{const{shape:r,...n}={...EF,...e};return s().createElement(AF,{...n,ref:t,ownerState:{shape:r}})}));RF.defaultProps=EF;var IF=RF;const OF=Da(Ph)((({theme:e})=>({transform:"rtl"===e.direction?"scaleX(-1)":void 0}))),MF=({onDisconnect:e,onConnectClick:t,...r})=>{const{t:n}=gd("common",{i18n:jh}),{MY_ELEMENTOR_URL:o}=eF(),s=window.elementorOneSettingsData?.canUserManageOptions??!1,{data:a,isLoading:l}=XB({enabled:s}),{mutate:c,isPending:u}=(()=>{const e=Ug();return Zg({mutationFn:e=>nx.initConnect(e&&"string"==typeof e?e:"new"),onSuccess:t=>{window.open(t,"_self")?.focus(),e.invalidateQueries({queryKey:[KB]})}})})(),{mutate:d,isPending:p}=(()=>{const e=Ug();return Zg({mutationFn:()=>nx.disconnect(),onSuccess:()=>{e.invalidateQueries({queryKey:[KB]})}})})();return(0,i.jsx)(Jl,{colorScheme:"light",children:(0,i.jsx)(ph,{...r,"data-test":"user-profile-menu",anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{overflow:"visible !important",borderRadius:1,py:1,minWidth:300}},children:l?(0,i.jsxs)(Qo,{alignItems:"center",gap:1,children:[(0,i.jsx)(mF,{variant:"text",width:"90%",height:30}),(0,i.jsx)(yc,{sx:{mx:2,width:"80%"}}),(0,i.jsx)(mF,{variant:"text",width:"90%",height:30})]}):[(0,i.jsxs)(Mh,{dense:!0,onClick:async()=>{window.open(o,"_blank"),r.onClose?.({},"backdropClick")},"data-test":"user-menu-go-to-account",children:[(0,i.jsx)(Lh,{children:n("header.userProfileMenu.goToMyAccount")}),(0,i.jsx)(Th,{children:(0,i.jsx)(OF,{fontSize:"small"})})]},"go-to-account"),(0,i.jsx)(yc,{sx:{mx:2}},"divider"),a?.isUrlMismatch?(0,i.jsxs)(Mh,{dense:!0,onClick:()=>{window.location.href=window.location.origin+window.location.pathname+"?page=elementor-home#/home/url-mismatch",r.onClose?.({},"backdropClick")},sx:{justifyContent:"space-between"},"data-test":"user-menu-fix-url-mismatch",children:[(0,i.jsx)(Lh,{children:n("header.userProfileMenu.urlMismatch")}),(0,i.jsx)(ms,{sx:{color:"info.main"},variant:"caption",children:n("header.userProfileMenu.fixUrlMismatch")})]},"fix-url-mismatch"):a?.isConnected?(0,i.jsxs)(Mh,{dense:!0,disabled:p,"data-test":"user-menu-disconnect",children:[(0,i.jsxs)(Lh,{children:[n("header.userProfileMenu.elementorOneActive")," ",(0,i.jsx)(IF,{variant:"standard",label:n("header.userProfileMenu.active"),color:"success",size:"small"})]}),(0,i.jsx)(Lh,{onClick:()=>{p||d(void 0,{onSuccess:()=>{e?.(),r.onClose?.({},"backdropClick")}})},sx:{textAlign:"right",color:"info.main",cursor:"pointer"},children:n("header.userProfileMenu.disconnect")}),(0,i.jsx)(Th,{children:p?(0,i.jsx)(Zc,{size:16,"data-test":"user-menu-disconnect-loader"}):(0,i.jsx)(i.Fragment,{})})]},"disconnect"):(0,i.jsxs)(Mh,{dense:!0,onClick:()=>{u||(t?.(),c())},disabled:u,sx:{justifyContent:"space-between"},"data-test":"user-menu-connect",children:[(0,i.jsx)(Lh,{children:n("header.userProfileMenu.connectPreText")}),u?(0,i.jsx)(Zc,{size:16,"data-test":"user-menu-connect-loader"}):(0,i.jsx)(ms,{sx:{color:"info.main"},variant:"caption",children:n("header.userProfileMenu.connect")})]},"connect")]})})},TF=({onDisconnect:e,onClick:t,onConnectClick:r})=>{const{t:n}=gd("common",{i18n:jh}),s=rF(),a=(({popupId:e,...t})=>function({parentPopupState:e,popupId:t,variant:r,disableAutoFocus:n}){const i=(0,o.useRef)(!0);(0,o.useEffect)((()=>(i.current=!0,()=>{i.current=!1})),[]);const[s,a]=(0,o.useState)(bd),l=(0,o.useCallback)((e=>{i.current&&a(e)}),[]),c=(0,o.useCallback)((e=>l((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),u=vd((e=>(s.isOpen?h(e):d(e),s))),d=vd((t=>{const n=t instanceof Element?void 0:t,i=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==n?void 0:n.type))return void l((e=>({...e,_deferNextOpen:!0})));const o=null==n?void 0:n.clientX,s=null==n?void 0:n.clientY,a="number"==typeof o&&"number"==typeof s?{left:o,top:s}:void 0,c=o=>{if(t||o.setAnchorElUsed||"dialog"===r||yd.missingEventOrAnchorEl||(yd.missingEventOrAnchorEl=!0,console.error("[material-ui-popup-state] WARNING","eventOrAnchorEl should be defined if setAnchorEl is not used")),e){if(!e.isOpen)return o;setTimeout((()=>e._setChildPopupState(y)))}const s={...o,isOpen:!0,anchorPosition:a,hovered:"mouseover"===(null==n?void 0:n.type)||o.hovered,focused:"focus"===(null==n?void 0:n.type)||o.focused,_openEventType:null==n?void 0:n.type};return null!=n&&n.currentTarget?o.setAnchorElUsed||(s.anchorEl=null==n?void 0:n.currentTarget):i&&(s.anchorEl=i),s};l((e=>e._deferNextOpen?(setTimeout((()=>l(c)),0),{...e,_deferNextOpen:!1}):c(e)))})),p=t=>{const{_childPopupState:r}=t;return setTimeout((()=>{null==r||r.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},h=vd((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?l((e=>e._deferNextClose?(setTimeout((()=>l(p)),0),{...e,_deferNextClose:!1}):p(e))):l((e=>({...e,_deferNextClose:!0})))})),f=(0,o.useCallback)(((e,t)=>{e?d(t):h(t)}),[]),m=vd((e=>{const{relatedTarget:t}=e;l((e=>!e.hovered||t instanceof Element&&_d(t,y)?e:e.focused?{...e,hovered:!1}:p(e)))})),g=vd((e=>{if(!e)return;const{relatedTarget:t}=e;l((e=>!e.focused||t instanceof Element&&_d(t,y)?e:e.hovered?{...e,focused:!1}:p(e)))})),v=(0,o.useCallback)((e=>l((t=>({...t,_childPopupState:e})))),[]),y={...s,setAnchorEl:c,popupId:t,variant:r,open:d,close:h,toggle:u,setOpen:f,onBlur:g,onMouseLeave:m,disableAutoFocus:n??Boolean(s.hovered||s.focused),_setChildPopupState:v};return y}({...t,popupId:(0,o.useRef)(e||"eui-popup-"+Sd++).current}))({variant:"popover",popupId:"user-info-popover"}),l=e=>{t?.(),wd(a).onClick?.(e)};return(0,i.jsxs)(i.Fragment,{children:[s?(0,i.jsx)(rc,{...wd(a),onClick:l,"data-test":"header-user-button",children:(0,i.jsx)(bc,{})}):(0,i.jsx)(tu,{startIcon:(0,i.jsx)(bc,{}),color:"inherit",size:"small",...wd(a),onClick:l,"data-test":"header-user-button",children:n("header.userInfo")}),(0,i.jsx)(MF,{onDisconnect:e,onConnectClick:r,...Cd(a)})]})};var LF=o.forwardRef(((e,t)=>o.createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0221 2.2505C14.7086 2.2428 14.3993 2.32462 14.1306 2.48639C13.8619 2.64816 13.6449 2.88316 13.5049 3.16386L10.9999 8.19197L3.92384 11.2998C3.49889 11.4865 3.16549 11.8343 2.99698 12.2667C2.82848 12.6992 2.83867 13.1809 3.02531 13.6058L4.63384 17.2682C4.82048 17.6931 5.16829 18.0265 5.60074 18.195C6.0332 18.3635 6.51489 18.3533 6.93984 18.1667L8.9999 17.2619L10.709 21.1532C10.8956 21.5781 11.2434 21.9115 11.6759 22.08C12.1083 22.2485 12.59 22.2383 13.015 22.0517L13.9306 21.6496C14.3555 21.4629 14.6889 21.1151 14.8574 20.6827C15.0259 20.2502 15.0157 19.7685 14.8291 19.3436L13.12 15.4523L14.0159 15.0588L19.4131 16.616C19.7145 16.7029 20.0346 16.7021 20.3355 16.6137C20.6364 16.5253 20.9059 16.3529 21.1124 16.1168C21.3188 15.8807 21.4537 15.5907 21.5013 15.2806C21.5488 14.9707 21.507 14.6537 21.3808 14.3667M21.3808 14.3667L20.4142 12.1659C21.0102 11.7447 21.4752 11.1551 21.7441 10.4649C22.1052 9.53824 22.0834 8.50606 21.6834 7.59546C21.2835 6.68486 20.5382 5.97043 19.6115 5.60934C18.9213 5.3404 18.1726 5.28388 17.4591 5.43778L16.4927 3.23726C16.3667 2.95018 16.1613 2.70457 15.901 2.52988C15.6405 2.35511 15.3357 2.2582 15.0221 2.2505M18.0836 6.85961C18.4152 6.83504 18.7512 6.88399 19.0669 7.00698C19.6229 7.22364 20.0701 7.6523 20.3101 8.19866C20.55 8.74502 20.5631 9.36433 20.3465 9.92035C20.2235 10.236 20.0321 10.5166 19.7897 10.7441L18.0836 6.85961ZM15.1191 3.8401C15.1077 3.81399 15.0889 3.79133 15.0652 3.77544C15.0415 3.75956 15.0138 3.75075 14.9853 3.75005C14.9568 3.74935 14.9287 3.75678 14.9042 3.77149C14.8798 3.7862 14.8601 3.80756 14.8474 3.83308L12.2214 9.10391C12.1432 9.26095 12.0123 9.38559 11.8517 9.45615L10.7072 9.95881L12.5168 14.0789L13.6613 13.5763C13.8219 13.5057 14.0022 13.4937 14.1708 13.5423L19.8288 15.1748C19.8562 15.1827 19.8852 15.1826 19.9126 15.1746C19.9399 15.1665 19.9645 15.1509 19.9832 15.1294C20.002 15.1079 20.0143 15.0816 20.0186 15.0534C20.0229 15.0252 20.0191 14.9964 20.0076 14.9703L15.1191 3.8401ZM11.7466 16.0555L13.4557 19.9468C13.4824 20.0075 13.4838 20.0763 13.4598 20.1381C13.4357 20.1999 13.3881 20.2495 13.3274 20.2762L12.4118 20.6783C12.3511 20.705 12.2823 20.7064 12.2205 20.6824C12.1587 20.6583 12.109 20.6107 12.0824 20.55L10.3733 16.6587L11.7466 16.0555ZM11.1434 14.6821L9.33384 10.562L4.52704 12.6732C4.46633 12.6999 4.4187 12.7496 4.39463 12.8113C4.37056 12.8731 4.37201 12.9419 4.39868 13.0026L6.00721 16.665C6.03387 16.7257 6.08356 16.7733 6.14534 16.7974C6.20712 16.8214 6.27593 16.82 6.33664 16.7933L11.1434 14.6821Z"}))));const PF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jF(e,t,r){const n=function(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=Fd(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const e=o.getComputedStyle(t);s=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let a=0,l=0;if(s&&"none"!==s&&"string"==typeof s){const e=s.split("(")[1].split(")")[0].split(",");a=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+a-n.left}px)`:`translateX(${o.innerWidth+a-n.left}px)`:"right"===e?i?`translateX(-${n.right-i.left-a}px)`:`translateX(-${n.left+n.width-a}px)`:"up"===e?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}(e,t,function(e){return"function"==typeof e?e():e}(r));n&&(t.style.webkitTransform=n,t.style.transform=n)}const NF=o.forwardRef((function(e,t){const r=jo(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:d,container:p,direction:h="down",easing:f=n,in:m,onEnter:g,onEntered:v,onEntering:y,onExit:b,onExited:x,onExiting:w,style:C,timeout:_=s,TransitionComponent:k=Ws}=e,S=c(e,PF),A=o.useRef(null),E=bs(d.ref,A,t),R=e=>t=>{e&&(void 0===t?e(A.current):e(A.current,t))},I=R(((e,t)=>{jF(h,e,p),g&&g(e,t)})),O=R(((e,t)=>{const n=cp({timeout:_,style:C,easing:f},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",u({},n)),e.style.transition=r.transitions.create("transform",u({},n)),e.style.webkitTransform="none",e.style.transform="none",y&&y(e,t)})),M=R(v),T=R(w),L=R((e=>{const t=cp({timeout:_,style:C,easing:f},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),jF(h,e,p),b&&b(e)})),P=R((e=>{e.style.webkitTransition="",e.style.transition="",x&&x(e)})),j=o.useCallback((()=>{A.current&&jF(h,A.current,p)}),[h,p]);return o.useEffect((()=>{if(m||"down"===h||"right"===h)return;const e=Nd((()=>{A.current&&jF(h,A.current,p)})),t=Fd(A.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,m,p]),o.useEffect((()=>{m||j()}),[m,j]),(0,i.jsx)(k,u({nodeRef:A,onEnter:I,onEntered:M,onEntering:O,onExit:L,onExited:P,onExiting:T,addEndListener:e=>{a&&a(A.current,e)},appear:l,in:m,timeout:_},S,{children:(e,t)=>o.cloneElement(d,u({ref:E,style:u({visibility:"exited"!==e||m?void 0:"hidden"},C,d.props.style)},t))}))})),DF=NF;function BF(e){return Kn("MuiDrawer",e)}No("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const FF=["BackdropProps"],$F=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],zF=(e,t)=>{const{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},UF=Oi($p,{name:"MuiDrawer",slot:"Root",overridesResolver:zF})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),WF=Oi("div",{shouldForwardProp:Ii,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:zF})({flex:"0 0 auto"}),qF=Oi(zo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Bi(r.anchor)}`],"temporary"!==r.variant&&t[`paperAnchorDocked${Bi(r.anchor)}`]]}})((({theme:e,ownerState:t})=>u({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}`}))),VF={left:"right",right:"left",top:"down",bottom:"up"},HF=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiDrawer"}),n=jo(),s=_o(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:d,children:p,className:h,elevation:f=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:g}={},onClose:v,open:y=!1,PaperProps:b={},SlideProps:x,TransitionComponent:_=DF,transitionDuration:k=a,variant:S="temporary"}=r,A=c(r.ModalProps,FF),E=c(r,$F),R=o.useRef(!1);o.useEffect((()=>{R.current=!0}),[]);const I=function({direction:e},t){return"rtl"===e&&function(e){return-1!==["left","right"].indexOf(e)}(t)?VF[t]:t}({direction:s?"rtl":"ltr"},l),O=u({},r,{anchor:l,elevation:f,open:y,variant:S},E),M=(e=>{const{classes:t,anchor:r,variant:n}=e;return C({root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Bi(r)}`,"temporary"!==n&&`paperAnchorDocked${Bi(r)}`]},BF,t)})(O),T=(0,i.jsx)(qF,u({elevation:"temporary"===S?f:0,square:!0},b,{className:w(M.paper,b.className),ownerState:O,children:p}));if("permanent"===S)return(0,i.jsx)(WF,u({className:w(M.root,M.docked,h),ownerState:O,ref:t},E,{children:T}));const L=(0,i.jsx)(_,u({in:y,direction:VF[I],timeout:k,appear:R.current},x,{children:T}));return"persistent"===S?(0,i.jsx)(WF,u({className:w(M.root,M.docked,h),ownerState:O,ref:t},E,{children:L})):(0,i.jsx)(UF,u({BackdropProps:u({},d,g,{transitionDuration:k}),className:w(M.root,M.modal,h),open:y,ownerState:O,onClose:v,hideBackdrop:m,ref:t},E,A,{children:L}))})),GF=HF;var ZF=s().forwardRef(((e,t)=>s().createElement(GF,{...e,ref:t})));const KF=No("MuiBox",["root"]),XF=Si(),YF=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:s}=e,a=cr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Tn);return o.forwardRef((function(e,o){const l=ji(r),d=Bn(e),{className:p,component:h="div"}=d,f=c(d,Hi);return(0,i.jsx)(a,u({as:h,ref:o,className:Vi(p,s?s(n):n),theme:t&&l[t]||l},f))}))}({themeId:Ei,defaultTheme:XF,defaultClassName:KF.root,generateClassName:Gn.generate}),JF=YF;var QF=s().forwardRef(((e,t)=>s().createElement(JF,{...e,ref:t})));const e$=()=>(0,i.jsx)(Qo,{children:new Array(3).fill(0).map(((e,t)=>(0,i.jsxs)(QF,{children:[(0,i.jsxs)(Qo,{gap:.5,sx:{mt:2},children:[(0,i.jsx)(mF,{variant:"text",width:50,height:24}),(0,i.jsx)(mF,{variant:"text",width:"100%",height:48}),(0,i.jsx)(mF,{variant:"rectangular",width:"100%",height:200,sx:{borderRadius:1}}),(0,i.jsx)(mF,{variant:"rounded",width:100,height:32,sx:{borderRadius:3,mt:1}}),(0,i.jsx)(mF,{variant:"text",width:200,height:24}),(0,i.jsx)(mF,{variant:"text",width:250,height:24}),(0,i.jsx)(mF,{variant:"text",width:170,height:24})]}),t<2&&(0,i.jsx)(yc,{sx:{mt:1.5}})]},t)))});var t$,r$={},n$={},i$={},o$={},s$={},a$={};function l$(){return t$||(t$=1,e=a$,Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype),a$;var e,t}var c$,u$,d$={};function p$(){if(c$)return d$;c$=1;var e,t=d$&&d$.__extends||(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),r=d$&&d$.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(d$,"__esModule",{value:!0}),d$.cloneNode=d$.hasChildren=d$.isDocument=d$.isDirective=d$.isComment=d$.isText=d$.isCDATA=d$.isTag=d$.Element=d$.Document=d$.CDATA=d$.NodeWithChildren=d$.ProcessingInstruction=d$.Comment=d$.Text=d$.DataNode=d$.Node=void 0;var n=l$(),i=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),b(this,e)},e}();d$.Node=i;var o=function(e){function r(t){var r=e.call(this)||this;return r.data=t,r}return t(r,e),Object.defineProperty(r.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),r}(i);d$.DataNode=o;var s=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=n.ElementType.Text,t}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),r}(o);d$.Text=s;var a=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=n.ElementType.Comment,t}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),r}(o);d$.Comment=a;var l=function(e){function r(t,r){var i=e.call(this,r)||this;return i.name=t,i.type=n.ElementType.Directive,i}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),r}(o);d$.ProcessingInstruction=l;var c=function(e){function r(t){var r=e.call(this)||this;return r.children=t,r}return t(r,e),Object.defineProperty(r.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),r}(i);d$.NodeWithChildren=c;var u=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=n.ElementType.CDATA,t}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(c);d$.CDATA=u;var d=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=n.ElementType.Root,t}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(c);d$.Document=d;var p=function(e){function r(t,r,i,o){void 0===i&&(i=[]),void 0===o&&(o="script"===t?n.ElementType.Script:"style"===t?n.ElementType.Style:n.ElementType.Tag);var s=e.call(this,i)||this;return s.name=t,s.attribs=r,s.type=o,s}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),r}(c);function h(e){return(0,n.isTag)(e)}function f(e){return e.type===n.ElementType.CDATA}function m(e){return e.type===n.ElementType.Text}function g(e){return e.type===n.ElementType.Comment}function v(e){return e.type===n.ElementType.Directive}function y(e){return e.type===n.ElementType.Root}function b(e,t){var n;if(void 0===t&&(t=!1),m(e))n=new s(e.data);else if(g(e))n=new a(e.data);else if(h(e)){var i=t?x(e.children):[],o=new p(e.name,r({},e.attribs),i);i.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=o}else if(f(e)){i=t?x(e.children):[];var c=new u(i);i.forEach((function(e){return e.parent=c})),n=c}else if(y(e)){i=t?x(e.children):[];var b=new d(i);i.forEach((function(e){return e.parent=b})),e["x-mode"]&&(b["x-mode"]=e["x-mode"]),n=b}else{if(!v(e))throw new Error("Not implemented yet: ".concat(e.type));var w=new l(e.name,e.data);null!=e["x-name"]&&(w["x-name"]=e["x-name"],w["x-publicId"]=e["x-publicId"],w["x-systemId"]=e["x-systemId"]),n=w}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return b(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}return d$.Element=p,d$.isTag=h,d$.isCDATA=f,d$.isText=m,d$.isComment=g,d$.isDirective=v,d$.isDocument=y,d$.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},d$.cloneNode=b,d$}function h$(){return u$||(u$=1,function(e){var t=s$&&s$.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=s$&&s$.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=l$(),i=p$();r(p$(),e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,r){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?n.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,r);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===n.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new i.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new i.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=s,e.default=s}(s$)),s$}var f$,m$,g$,v$,y$={};function b$(){if(m$)return o$;m$=1,Object.defineProperty(o$,"__esModule",{value:!0}),o$.formatAttributes=r,o$.escapeSpecialCharacters=function(e){return e.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)},o$.revertEscapedCharacters=i,o$.formatDOM=function t(o,s,a){void 0===s&&(s=null);for(var l,c=[],u=0,d=o.length;u<d;u++){var p=o[u];switch(p.nodeType){case 1:var h=n(p.nodeName);(l=new e.Element(h,r(p.attributes))).children=t("template"===h?p.content.childNodes:p.childNodes,l);break;case 3:l=new e.Text(i(p.nodeValue));break;case 8:l=new e.Comment(p.nodeValue);break;default:continue}var f=c[u-1]||null;f&&(f.next=l),l.parent=s,l.prev=f,l.next=null,c.push(l)}return a&&((l=new e.ProcessingInstruction(a.substring(0,a.indexOf(" ")).toLowerCase(),a)).next=c[0]||null,l.parent=s,c.unshift(l),c[1]&&(c[1].prev=c[0])),c};var e=h$(),t=function(){return f$||(f$=1,e=y$,Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")),y$;var e}();function r(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function n(e){return function(e){return t.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function i(e){return e.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}return o$}var x$,w$,C$={},_$={},k$={};var S$,A$,E$,R$={},I$={};var O$,M$,T$,L$,P$,j$={};function N$(){if(T$)return M$;T$=1;var e=(M$&&M$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(function(){if(E$)return I$;E$=1;var e=I$&&I$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I$,"__esModule",{value:!0}),I$.default=function(e,r){var n=null;if(!e||"string"!=typeof e)return n;var i=(0,t.default)(e),o="function"==typeof r;return i.forEach((function(e){if("declaration"===e.type){var t=e.property,i=e.value;o?r(t,i,e):i&&((n=n||{})[t]=i)}})),n};var t=e(function(){if(A$)return S$;A$=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(a,l):l}return S$=function(a,u){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];u=u||{};var d=1,p=1;function h(e){var r=e.match(t);r&&(d+=r.length);var n=e.lastIndexOf("\n");p=~n?e.length-n:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=p,t.source=a,!u.silent)throw t}function v(e){var t=e.exec(a);if(t){var r=t[0];return h(r),a=a.slice(r.length),t}}function y(){v(r)}function b(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var e=f();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;l!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,l===a.charAt(t-1))return g("End of comment missing");var r=a.slice(2,t-2);return p+=2,h(r),a=a.slice(t),p+=2,e({type:"comment",comment:r})}}function w(){var t=f(),r=v(n);if(r){if(x(),!v(i))return g("property missing ':'");var a=v(o),u=t({type:"declaration",property:c(r[0].replace(e,l)),value:a?c(a[0].replace(e,l)):l});return v(s),u}}return m.prototype.content=a,y(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()},S$}());return I$}()),t=function(){if(O$)return j$;O$=1,Object.defineProperty(j$,"__esModule",{value:!0}),j$.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};return j$.camelCase=function(a,l){return void 0===l&&(l={}),function(t){return!t||r.test(t)||e.test(t)}(a)?a:(a=a.toLowerCase(),(a=l.reactCompat?a.replace(i,s):a.replace(n,s)).replace(t,o))},j$}();function r(r,n){var i={};return r&&"string"==typeof r?((0,e.default)(r,(function(e,r){e&&r&&(i[(0,t.camelCase)(e,n)]=r)})),i):i}return r.default=r,M$=r}function D$(){return L$||(L$=1,function(e){var t=R$&&R$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=function(e,t){return e.includes("-")?!i.has(e):Boolean(t&&"string"==typeof t.is)},e.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,n.default)(e,o)}catch(e){t.style={}}else t.style={}};var r=s(),n=t(N$()),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),o={reactCompat:!0};e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)},e.returnFirstArg=function(e){return e}}(R$)),R$}function B$(){if(P$)return C$;P$=1,Object.defineProperty(C$,"__esModule",{value:!0}),C$.default=function(s,a){void 0===s&&(s={});var l={},c=Boolean(s.type&&i[s.type]);for(var u in s){var d=s[u];if((0,e.isCustomAttribute)(u))l[u]=d;else{var p=u.toLowerCase(),h=o(p);if(h){var f=(0,e.getPropertyInfo)(h);switch(r.includes(h)&&n.includes(a)&&!c&&(h=o("default"+p)),l[h]=d,f&&f.type){case e.BOOLEAN:l[h]=!0;break;case e.OVERLOADED_BOOLEAN:""===d&&(l[h]=!0)}}else t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[u]=d)}}return(0,t.setStyleProp)(s.style,l),l};var e=function(){if(w$)return _$;function e(e,t,r,n,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}w$=1;const t={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((r=>{t[r]=new e(r,0,!1,r,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([r,n])=>{t[r]=new e(r,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((r=>{t[r]=new e(r,2,!1,r.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((r=>{t[r]=new e(r,2,!1,r,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((r=>{t[r]=new e(r,3,!1,r.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((r=>{t[r]=new e(r,3,!0,r,null,!1,!1)})),["capture","download"].forEach((r=>{t[r]=new e(r,4,!1,r,null,!1,!1)})),["cols","rows","size","span"].forEach((r=>{t[r]=new e(r,6,!1,r,null,!1,!1)})),["rowSpan","start"].forEach((r=>{t[r]=new e(r,5,!1,r.toLowerCase(),null,!1,!1)}));const r=/[\-\:]([a-z])/g,n=e=>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"].forEach((i=>{const o=i.replace(r,n);t[o]=new e(o,1,!1,i,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((i=>{const o=i.replace(r,n);t[o]=new e(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((i=>{const o=i.replace(r,n);t[o]=new e(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((r=>{t[r]=new e(r,1,!1,r.toLowerCase(),null,!1,!1)})),t.xlinkHref=new e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((r=>{t[r]=new e(r,1,!1,r.toLowerCase(),null,!0,!0)}));const{CAMELCASE:i,SAME:o,possibleStandardNames:s}=(x$||(x$=1,k$.SAME=0,k$.CAMELCASE=1,k$.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}),k$),a=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),l=Object.keys(s).reduce(((e,t)=>{const r=s[t];return r===o?e[t]=t:r===i?e[t.toLowerCase()]=t:e[t]=r,e}),{});return _$.BOOLEAN=3,_$.BOOLEANISH_STRING=2,_$.NUMERIC=5,_$.OVERLOADED_BOOLEAN=4,_$.POSITIVE_NUMERIC=6,_$.RESERVED=0,_$.STRING=1,_$.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},_$.isCustomAttribute=a,_$.possibleStandardNames=l,_$}(),t=D$(),r=["checked","value"],n=["input","select","textarea"],i={reset:!0,submit:!0};function o(t){return e.possibleStandardNames[t]}return C$}var F$,$$,z$={};const U$=d(($$||($$=1,function(e){var t=r$&&r$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,i.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||a),t):[]};var r=t(function(){if(v$)return n$;v$=1;var e=n$&&n$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n$,"__esModule",{value:!0}),n$.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var i=e.match(n),o=i?i[1]:void 0;return(0,r.formatDOM)((0,t.default)(e),null,o)};var t=e(function(){if(g$)return i$;g$=1,Object.defineProperty(i$,"__esModule",{value:!0}),i$.default=function(c){var u,d,h=(c=(0,e.escapeSpecialCharacters)(c)).match(i),f=h&&h[1]?h[1].toLowerCase():"";switch(f){case t:var m=l(c);return o.test(c)||null===(u=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===u||u.removeChild(v),s.test(c)||null===(d=null==(v=m.querySelector(n))?void 0:v.parentNode)||void 0===d||d.removeChild(v),m.querySelectorAll(t);case r:case n:var g=a(c).querySelectorAll(f);return s.test(c)&&o.test(c)?g[0].parentNode.childNodes:g;default:return p?p(c):(v=a(c,n).querySelector(n)).childNodes;var v}};var e=b$(),t="html",r="head",n="body",i=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,s=/<body[^]*>/i,a=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;a=l=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();a=function(e,t){if(t){var r=d.documentElement.querySelector(t);return r&&(r.innerHTML=e),d}return d.documentElement.innerHTML=e,d}}var p,h="object"==typeof document&&document.createElement("template");return h&&h.content&&(p=function(e){return h.innerHTML=e,h.content.childNodes}),i$}()),r=b$(),n=/<(![a-zA-Z\s]+)>/;return n$}());e.htmlToDOM=r.default;var n=t(B$());e.attributesToProps=n.default;var i=t(function(){if(F$)return z$;F$=1;var e=z$&&z$.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z$,"__esModule",{value:!0}),z$.default=function e(t,s){void 0===s&&(s={});for(var a=[],l="function"==typeof s.replace,c=s.transform||n.returnFirstArg,u=s.library||i,d=u.cloneElement,p=u.createElement,h=u.isValidElement,f=t.length,m=0;m<f;m++){var g=t[m];if(l){var v=s.replace(g,m);if(h(v)){f>1&&(v=d(v,{key:v.key||m})),a.push(c(v,g,m));continue}}if("text"!==g.type){var y=g,b={};o(y)?((0,n.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,r.default)(y.attribs,y.name));var x=void 0;switch(g.type){case"script":case"style":g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=e(g.children,s));break;default:continue}f>1&&(b.key=m),a.push(c(p(g.name,b,x),g,m))}else{var w=!g.data.trim().length;if(w&&g.parent&&!(0,n.canTextBeChildOfNode)(g.parent))continue;if(s.trim&&w)continue;a.push(c(g.data,g,m))}}return 1===a.length?a[0]:a};var t=s(),r=e(B$()),n=D$(),i={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function o(e){return n.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,n.isCustomComponent)(e.name,e.attribs)}return z$}());e.domToReact=i.default;var o=h$();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return o.Text}});var a={lowerCaseAttributeNames:!1}}(r$)),r$)),W$=U$.default||U$,{slots:q$,classNames:V$}=Ta("Image",["root"]),H$=Da("img",q$.root)((({theme:e,ownerState:t})=>{const{variant:r="square"}=t;return{borderRadius:{square:void 0,rounded:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],circle:"50%"}[r]}})),G$={variant:"square"},Z$=s().forwardRef(((e,t)=>{const r=Di({props:{...G$,...e},name:q$.root.name});return s().createElement(H$,{...r,ref:t,className:w([[V$.root,r.className]]),ownerState:r})}));Z$.defaultProps=G$;var K$=Z$;const X$=({id:e,title:t,description:r,topic:n,imageSrc:s,chipTags:a,link:l,readMoreText:c,cta:u,ctaLink:d,onItemClickedCallback:p})=>{const{t:h}=gd("assets-whatsnew",{i18n:jh}),[f,m]=(0,o.useState)(!!s);(0,o.useEffect)((()=>{s&&m(!0)}),[s]);const g=(0,o.useMemo)((()=>{const t=h(`${e}.description`,{defaultValue:r}),n=W$(t);return Array.isArray(n)?n.map(((t,r)=>(0,i.jsx)(o.Fragment,{children:t},`${e}-description-${r}`))):n}),[h,e,r]),v=(0,o.useMemo)((()=>{const t=`${e}.chipTags`;if(jh.exists(t,{ns:"assets-whatsnew"})){const e=h(t,{returnObjects:!0});if(Array.isArray(e)&&e.length>0)return e}return a}),[h,e,a]),y=()=>{p?.()};return(0,i.jsxs)(QF,{marginTop:2,children:[n&&(0,i.jsx)(ms,{variant:"caption",color:"text.tertiary",children:h(`${e}.topic`,{defaultValue:n})}),(0,i.jsx)(ms,{variant:"subtitle1",color:"text.primary",children:h(`${e}.title`,{defaultValue:t})}),s&&(0,i.jsxs)(QF,{style:{marginBottom:16,position:"relative"},children:[f&&(0,i.jsx)(mF,{variant:"rectangular",width:"100%",height:200,sx:{borderRadius:1}}),(0,i.jsx)(K$,{src:s,alt:h(`${e}.title`,{defaultValue:t}),onLoad:()=>{m(!1)},onError:()=>{m(!1)},style:{width:"100%",height:"auto",display:f?"none":"block"}})]}),a&&v&&(0,i.jsx)(QF,{display:"flex",gap:1,flexWrap:"wrap",marginBottom:1,children:a.map(((t,r)=>{const n=v[r]||t;return(0,i.jsx)(IF,{variant:"outlined",label:n},`${e}-${t}`)}))}),(0,i.jsxs)(ms,{variant:"body2",color:e=>e.palette.text.secondary,sx:{marginBottom:1},children:[g,c&&(0,i.jsx)("a",{href:l,target:"_blank",rel:"noreferrer",onClick:y,children:" "+h(`${e}.readMoreText`,{defaultValue:c})})]}),u&&(0,i.jsx)(tu,{variant:"contained",color:"promotion",href:d,target:"_blank",onClick:y,children:h(`${e}.cta`,{defaultValue:u})})]})};var Y$=o.forwardRef(((e,t)=>o.createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9302 3.00684C12.3573 3.03542 12.7729 3.16362 13.1431 3.38184C13.5618 3.6287 13.9074 3.98244 14.1451 4.40625L21.2456 16.6562L21.2915 16.751C21.4597 17.1668 21.524 17.6183 21.4781 18.0645C21.432 18.5106 21.2773 18.9397 21.0279 19.3125C20.7784 19.685 20.4411 19.9915 20.0464 20.2041C19.6517 20.4166 19.2105 20.529 18.7622 20.5322L18.7564 20.5332H4.75638C4.73812 20.5332 4.71964 20.5316 4.7017 20.5303C4.69631 20.5307 4.69052 20.5319 4.6851 20.5322L4.60795 20.5312L4.44388 20.5186C4.06393 20.476 3.69614 20.3543 3.36478 20.1611C2.98591 19.9403 2.66472 19.6317 2.42924 19.2617C2.19395 18.8919 2.051 18.4707 2.01127 18.0342C1.97166 17.5975 2.03678 17.1563 2.2017 16.75L2.2476 16.6562L9.34721 4.40625C9.58473 3.98261 9.93165 3.62868 10.3501 3.38184C10.7731 3.13252 11.2556 3.00006 11.7466 3L11.9302 3.00684ZM11.7574 15.7822C11.2051 15.7822 10.7574 16.2299 10.7574 16.7822C10.7574 17.3345 11.2051 17.7822 11.7574 17.7822H11.7671L11.8697 17.7773C12.3737 17.7259 12.7671 17.2998 12.7671 16.7822C12.7671 16.2647 12.3737 15.8386 11.8697 15.7871L11.7671 15.7822H11.7574ZM11.7564 8.0332C11.3424 8.03352 11.0064 8.36919 11.0064 8.7832V13.7832C11.0069 14.1968 11.3428 14.5329 11.7564 14.5332C12.1702 14.5332 12.5059 14.1969 12.5064 13.7832V8.7832C12.5064 8.36902 12.1706 8.03325 11.7564 8.0332Z"}))));const J$=({appSettings:e})=>{const{t}=gd("common",{i18n:jh}),{data:r,isLoading:n,error:o}=(({appName:e,appVersion:t})=>Gg({queryKey:["notifications",e,t],queryFn:async()=>(await nx.getNotifications(e,t)).filter(((e,t,r)=>r.findIndex((t=>t.id===e.id))===t)),retry:!1}))({appName:e.slug,appVersion:e.version});return n?(0,i.jsx)(e$,{}):o?(0,i.jsxs)(Qo,{sx:{height:"100%"},alignItems:"center",justifyContent:"center",children:[(0,i.jsx)(Y$,{color:"error",fontSize:"large"}),(0,i.jsx)(ms,{variant:"subtitle2",color:"text.secondary",textAlign:"center",children:t("header.whatsNewError")})]}):r?.map(((e,t)=>(0,i.jsxs)(QF,{"data-test":`whats-new-card-${t}`,children:[(0,i.jsx)(X$,{...e}),(0,i.jsx)(yc,{sx:{margin:"16px 0"}})]},e.id)))};var Q$=o.forwardRef(((e,t)=>o.createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"}))));const ez=({appSettings:e,onClose:t})=>{const{t:r}=gd("common",{i18n:jh});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(QF,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsx)(ms,{variant:"subtitle1",color:"primary.text",children:r("header.whatsNew")}),(0,i.jsx)(rc,{onClick:()=>{t()},"data-test":"service-banner-close",children:(0,i.jsx)(Q$,{})})]}),(0,i.jsx)(J$,{appSettings:e})]})};function tz(e){return Di}function rz(e){return Kn("MuiBadge",e)}const nz=No("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"]),iz=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],oz=tz(),sz=Oi("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),az=Oi("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${Bi(r.anchorOrigin.vertical)}${Bi(r.anchorOrigin.horizontal)}${Bi(r.overlap)}`],"default"!==r.color&&t[`color${Bi(r.color)}`],r.invisible&&t.invisible]}})((({theme:e})=>{var t;return{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}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var r,n;return(null!=(r=e.vars)?r:e).palette[t].main&&(null!=(n=e.vars)?n:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${nz.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),lz=o.forwardRef((function(e,t){var r,n,o,s,a,l;const d=oz({props:e,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:f,components:m={},componentsProps:g={},children:v,overlap:y="rectangular",color:b="default",invisible:x=!1,max:_=99,badgeContent:k,slots:S,slotProps:A,showZero:E=!1,variant:R="standard"}=d,I=c(d,iz),{badgeContent:O,invisible:M,max:T,displayValue:L}=function(e){const{badgeContent:t,invisible:r=!1,max:n=99,showZero:i=!1}=e,o=Vd({badgeContent:t,max:n});let s=r;!1!==r||0!==t||i||(s=!0);const{badgeContent:a,max:l=n}=s?o:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:_,invisible:x,badgeContent:k,showZero:E}),P=Vd({anchorOrigin:p,color:b,overlap:y,variant:R,badgeContent:k}),j=M||null==O&&"dot"!==R,{color:N=b,overlap:D=y,anchorOrigin:B=p,variant:F=R}=j?P:d,$="dot"!==F?L:void 0,z=u({},d,{badgeContent:O,invisible:j,max:T,displayValue:$,showZero:E,anchorOrigin:B,color:N,overlap:D,variant:F}),U=(e=>{const{color:t,anchorOrigin:r,invisible:n,overlap:i,variant:o,classes:s={}}=e;return C({root:["root"],badge:["badge",o,n&&"invisible",`anchorOrigin${Bi(r.vertical)}${Bi(r.horizontal)}`,`anchorOrigin${Bi(r.vertical)}${Bi(r.horizontal)}${Bi(i)}`,`overlap${Bi(i)}`,"default"!==t&&`color${Bi(t)}`]},rz,s)})(z),W=null!=(r=null!=(n=null==S?void 0:S.root)?n:m.Root)?r:sz,q=null!=(o=null!=(s=null==S?void 0:S.badge)?s:m.Badge)?o:az,V=null!=(a=null==A?void 0:A.root)?a:g.root,H=null!=(l=null==A?void 0:A.badge)?l:g.badge,G=Kd({elementType:W,externalSlotProps:V,externalForwardedProps:I,additionalProps:{ref:t,as:f},ownerState:z,className:w(null==V?void 0:V.className,U.root,h)}),Z=Kd({elementType:q,externalSlotProps:H,ownerState:z,className:w(U.badge,null==H?void 0:H.className)});return(0,i.jsxs)(W,u({},G,{children:[v,(0,i.jsx)(q,u({},Z,{children:$}))]}))})),cz=lz;var uz=s().forwardRef(((e,t)=>s().createElement(cz,{...e,ref:t})));const dz=({appSettings:e,containerSx:t={},notificationsApiUrl:r,onClick:n})=>{gd("assets-whatsnew",{i18n:jh});const[s,a]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1),u=()=>{a(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(uz,{color:"primary",overlap:"circular",badgeContent:"",invisible:l,variant:"dot",children:(0,i.jsx)(rc,{onClick:()=>{n(),s||l||c(!0),a(!s)},"data-test":"whats-new-button",size:"small",children:(0,i.jsx)(LF,{fontSize:"small"})})}),(0,i.jsx)(Jl,{colorScheme:"light",children:(0,i.jsx)(ZF,{variant:"temporary",open:s,disableScrollLock:!0,anchor:"right",onClose:u,sx:t,disableEnforceFocus:!0,children:(0,i.jsx)(ez,{appSettings:e,onClose:u,notificationsApiUrl:r})})})]})};var pz=e=>"checkbox"===e.type,hz=e=>e instanceof Date,fz=e=>null==e;const mz=e=>"object"==typeof e;var gz=e=>!fz(e)&&!Array.isArray(e)&&mz(e)&&!hz(e),vz=e=>gz(e)&&e.target?pz(e.target)?e.target.checked:e.target.value:e,yz=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),bz="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function xz(e){let t;const r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else{if(bz&&(e instanceof Blob||n)||!r&&!gz(e))return e;if(t=r?[]:Object.create(Object.getPrototypeOf(e)),r||(e=>{const t=e.constructor&&e.constructor.prototype;return gz(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=xz(e[r]));else t=e}return t}var wz=e=>/^\w*$/.test(e),Cz=e=>void 0===e,_z=e=>Array.isArray(e)?e.filter(Boolean):[],kz=e=>_z(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Sz=(e,t,r)=>{if(!t||!gz(e))return r;const n=(wz(t)?[t]:kz(t)).reduce(((e,t)=>fz(e)?e:e[t]),e);return Cz(n)||n===e?Cz(e[t])?r:e[t]:n},Az=e=>"boolean"==typeof e,Ez=(e,t,r)=>{let n=-1;const i=wz(t)?[t]:kz(t),o=i.length,s=o-1;for(;++n<o;){const t=i[n];let o=r;if(n!==s){const r=e[t];o=gz(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const Rz="blur",Iz="onChange",Oz="onSubmit",Mz="all",Tz="pattern",Lz="required",Pz=s().createContext(null);Pz.displayName="HookFormContext";const jz=()=>s().useContext(Pz);var Nz=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Mz&&(t._proxyFormState[i]=!n||Mz),r&&(r[i]=!0),e[i]}});return i};const Dz="undefined"!=typeof window?s().useLayoutEffect:s().useEffect;var Bz=e=>"string"==typeof e,Fz=(e,t,r,n,i)=>Bz(e)?(n&&t.watch.add(e),Sz(r,e,i)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),Sz(r,e)))):(n&&(t.watchAll=!0),r),$z=e=>fz(e)||!mz(e);function zz(e,t,r=new WeakSet){if($z(e)||$z(t))return e===t;if(hz(e)&&hz(t))return e.getTime()===t.getTime();const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of n){const n=e[o];if(!i.includes(o))return!1;if("ref"!==o){const e=t[o];if(hz(n)&&hz(e)||gz(n)&&gz(e)||Array.isArray(n)&&Array.isArray(e)?!zz(n,e,r):n!==e)return!1}}return!0}const Uz=e=>e.render(function(e){const t=jz(),{name:r,disabled:n,control:i=t.control,shouldUnregister:o,defaultValue:a}=e,l=yz(i._names.array,r),c=s().useMemo((()=>Sz(i._formValues,r,Sz(i._defaultValues,r,a))),[i,r,a]),u=function(e){const t=jz(),{control:r=t.control,name:n,defaultValue:i,disabled:o,exact:a,compute:l}=e||{},c=s().useRef(i),u=s().useRef(l),d=s().useRef(void 0);u.current=l;const p=s().useMemo((()=>r._getWatch(n,c.current)),[r,n]),[h,f]=s().useState(u.current?u.current(p):p);return Dz((()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:e=>{if(!o){const t=Fz(n,r._names,e.values||r._formValues,!1,c.current);if(u.current){const e=u.current(t);zz(e,d.current)||(f(e),d.current=e)}else f(t)}}})),[r,o,n,a]),s().useEffect((()=>r._removeUnmounted())),h}({control:i,name:r,defaultValue:c,exact:!0}),d=function(e){const t=jz(),{control:r=t.control,disabled:n,name:i,exact:o}=e||{},[a,l]=s().useState(r._formState),c=s().useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Dz((()=>r._subscribe({name:i,formState:c.current,exact:o,callback:e=>{!n&&l({...r._formState,...e})}})),[i,n,o]),s().useEffect((()=>{c.current.isValid&&r._setValid(!0)}),[r]),s().useMemo((()=>Nz(a,r,c.current,!1)),[a,r])}({control:i,name:r,exact:!0}),p=s().useRef(e),h=s().useRef(i.register(r,{...e.rules,value:u,...Az(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const f=s().useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Sz(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!Sz(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Sz(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Sz(d.validatingFields,r)},error:{enumerable:!0,get:()=>Sz(d.errors,r)}})),[d,r]),m=s().useCallback((e=>h.current.onChange({target:{value:vz(e),name:r},type:"change"})),[r]),g=s().useCallback((()=>h.current.onBlur({target:{value:Sz(i._formValues,r),name:r},type:Rz})),[r,i._formValues]),v=s().useCallback((e=>{const t=Sz(i._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus&&e.focus(),select:()=>e.select&&e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[i._fields,r]),y=s().useMemo((()=>({name:r,value:u,...Az(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:m,onBlur:g,ref:v})),[r,n,d.disabled,m,g,v,u]);return s().useEffect((()=>{const e=i._options.shouldUnregister||o;i.register(r,{...p.current.rules,...Az(p.current.disabled)?{disabled:p.current.disabled}:{}});const t=(e,t)=>{const r=Sz(i._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){const e=xz(Sz(i._options.defaultValues,r));Ez(i._defaultValues,r,e),Cz(Sz(i._formValues,r))&&Ez(i._formValues,r,e)}return!l&&i.register(r),()=>{(l?e&&!i._state.action:e)?i.unregister(r):t(r,!1)}}),[r,i,l,o]),s().useEffect((()=>{i._setDisabledField({disabled:n,name:r})}),[n,r,i]),s().useMemo((()=>({field:y,formState:d,fieldState:f})),[y,d,f])}(e));var Wz=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},qz=e=>Array.isArray(e)?e:[e],Vz=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Hz=e=>gz(e)&&!Object.keys(e).length,Gz=e=>"file"===e.type,Zz=e=>"function"==typeof e,Kz=e=>{if(!bz)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Xz=e=>"select-multiple"===e.type,Yz=e=>"radio"===e.type,Jz=e=>Kz(e)&&e.isConnected;function Qz(e,t){const r=Array.isArray(t)?t:wz(t)?[t]:kz(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Cz(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(gz(n)&&Hz(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Cz(e[t]))return!1;return!0}(n))&&Qz(e,r.slice(0,-1)),e}var eU=e=>{for(const t in e)if(Zz(e[t]))return!0;return!1};function tU(e,t={}){const r=Array.isArray(e);if(gz(e)||r)for(const r in e)Array.isArray(e[r])||gz(e[r])&&!eU(e[r])?(t[r]=Array.isArray(e[r])?[]:{},tU(e[r],t[r])):fz(e[r])||(t[r]=!0);return t}function rU(e,t,r){const n=Array.isArray(e);if(gz(e)||n)for(const n in e)Array.isArray(e[n])||gz(e[n])&&!eU(e[n])?Cz(t)||$z(r[n])?r[n]=Array.isArray(e[n])?tU(e[n],[]):{...tU(e[n])}:rU(e[n],fz(t)?{}:t[n],r[n]):r[n]=!zz(e[n],t[n]);return r}var nU=(e,t)=>rU(e,t,tU(t));const iU={value:!1,isValid:!1},oU={value:!0,isValid:!0};var sU=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Cz(e[0].attributes.value)?Cz(e[0].value)||""===e[0].value?oU:{value:e[0].value,isValid:!0}:oU:iU}return iU},aU=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Cz(e)?e:t?""===e?NaN:e?+e:e:r&&Bz(e)?new Date(e):n?n(e):e;const lU={isValid:!1,value:null};var cU=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),lU):lU;function uU(e){const t=e.ref;return Gz(t)?t.files:Yz(t)?cU(e.refs).value:Xz(t)?[...t.selectedOptions].map((({value:e})=>e)):pz(t)?sU(e.refs).value:aU(Cz(t.value)?e.ref.value:t.value,e)}var dU=e=>e instanceof RegExp,pU=e=>Cz(e)?e:dU(e)?e.source:gz(e)?dU(e.value)?e.value.source:e.value:e,hU=e=>({isOnSubmit:!e||e===Oz,isOnBlur:"onBlur"===e,isOnChange:e===Iz,isOnAll:e===Mz,isOnTouch:"onTouched"===e});const fU="AsyncFunction";var mU=e=>!!e&&!!e.validate&&!!(Zz(e.validate)&&e.validate.constructor.name===fU||gz(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===fU))),gU=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const vU=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const r=Sz(e,i);if(r){const{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(vU(o,t))break}else if(gz(o)&&vU(o,t))break}}};function yU(e,t,r){const n=Sz(e,r);if(n||wz(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),o=Sz(t,n),s=Sz(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(s&&s.type)return{name:n,error:s};if(s&&s.root&&s.root.type)return{name:`${n}.root`,error:s.root};i.pop()}return{name:r}}var bU=(e,t,r)=>{const n=qz(Sz(e,r));return Ez(n,"root",t[r]),Ez(e,r,n),e},xU=e=>Bz(e);function wU(e,t,r="validate"){if(xU(e)||Array.isArray(e)&&e.every(xU)||Az(e)&&!e)return{type:r,message:xU(e)?e:"",ref:t}}var CU=e=>gz(e)&&!dU(e)?e:{value:e,message:""},_U=async(e,t,r,n,i,o)=>{const{ref:s,refs:a,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:h,validate:f,name:m,valueAsNumber:g,mount:v}=e._f,y=Sz(r,m);if(!v||t.has(m))return{};const b=a?a[0]:s,x=e=>{i&&b.reportValidity&&(b.setCustomValidity(Az(e)?"":e||""),b.reportValidity())},w={},C=Yz(s),_=pz(s),k=C||_,S=(g||Gz(s))&&Cz(s.value)&&Cz(y)||Kz(s)&&""===s.value||""===y||Array.isArray(y)&&!y.length,A=Wz.bind(null,m,n,w),E=(e,t,r,n="maxLength",i="minLength")=>{const o=e?t:r;w[m]={type:e?n:i,message:o,ref:s,...A(e?n:i,o)}};if(o?!Array.isArray(y)||!y.length:l&&(!k&&(S||fz(y))||Az(y)&&!y||_&&!sU(a).isValid||C&&!cU(a).isValid)){const{value:e,message:t}=xU(l)?{value:!!l,message:l}:CU(l);if(e&&(w[m]={type:Lz,message:t,ref:b,...A(Lz,t)},!n))return x(t),w}if(!(S||fz(d)&&fz(p))){let e,t;const r=CU(p),i=CU(d);if(fz(y)||isNaN(y)){const n=s.valueAsDate||new Date(y),o=e=>new Date((new Date).toDateString()+" "+e),a="time"==s.type,l="week"==s.type;Bz(r.value)&&y&&(e=a?o(y)>o(r.value):l?y>r.value:n>new Date(r.value)),Bz(i.value)&&y&&(t=a?o(y)<o(i.value):l?y<i.value:n<new Date(i.value))}else{const n=s.valueAsNumber||(y?+y:y);fz(r.value)||(e=n>r.value),fz(i.value)||(t=n<i.value)}if((e||t)&&(E(!!e,r.message,i.message,"max","min"),!n))return x(w[m].message),w}if((c||u)&&!S&&(Bz(y)||o&&Array.isArray(y))){const e=CU(c),t=CU(u),r=!fz(e.value)&&y.length>+e.value,i=!fz(t.value)&&y.length<+t.value;if((r||i)&&(E(r,e.message,t.message),!n))return x(w[m].message),w}if(h&&!S&&Bz(y)){const{value:e,message:t}=CU(h);if(dU(e)&&!y.match(e)&&(w[m]={type:Tz,message:t,ref:s,...A(Tz,t)},!n))return x(t),w}if(f)if(Zz(f)){const e=wU(await f(y,r),b);if(e&&(w[m]={...e,...A("validate",e.message)},!n))return x(e.message),w}else if(gz(f)){let e={};for(const t in f){if(!Hz(e)&&!n)break;const i=wU(await f[t](y,r),b,t);i&&(e={...i,...A(t,i.message)},x(i.message),n&&(w[m]=e))}if(!Hz(e)&&(w[m]={ref:b,...e},!n))return w}return x(!0),w};const kU={mode:Oz,reValidateMode:Iz,shouldFocusError:!0};function SU(e){return Kn("MuiDialog",e)}const AU=No("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),EU=o.createContext({}),RU=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],IU=Oi(Pp,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),OU=Oi($p,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),MU=Oi("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Bi(r.scroll)}`]]}})((({ownerState:e})=>u({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"}}))),TU=Oi(zo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Bi(r.scroll)}`],t[`paperWidth${Bi(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>u({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${AU.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}`,[`&.${AU.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,[`&.${AU.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),LU=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiDialog"}),n=jo(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:d,BackdropProps:p,children:h,className:f,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:b,onClick:x,onClose:_,open:k,PaperComponent:S=zo,PaperProps:A={},scroll:E="paper",TransitionComponent:R=Ip,transitionDuration:I=s,TransitionProps:O}=r,M=c(r,RU),T=u({},r,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:v,maxWidth:y,scroll:E}),L=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:o}=e;return C({root:["root"],container:["container",`scroll${Bi(r)}`],paper:["paper",`paperScroll${Bi(r)}`,`paperWidth${Bi(String(n))}`,i&&"paperFullWidth",o&&"paperFullScreen"]},SU,t)})(T),P=o.useRef(),j=Ud(l),N=o.useMemo((()=>({titleId:j})),[j]);return(0,i.jsx)(OU,u({className:w(L.root,f),closeAfterTransition:!0,components:{Backdrop:IU},componentsProps:{backdrop:u({transitionDuration:I,as:d},p)},disableEscapeKeyDown:m,onClose:_,open:k,ref:t,onClick:e=>{x&&x(e),P.current&&(P.current=null,b&&b(e),_&&_(e,"backdropClick"))},ownerState:T},M,{children:(0,i.jsx)(R,u({appear:!0,in:k,timeout:I,role:"presentation"},O,{children:(0,i.jsx)(MU,{className:w(L.container),onMouseDown:e=>{P.current=e.target===e.currentTarget},ownerState:T,children:(0,i.jsx)(TU,u({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j},A,{className:w(L.paper,A.className),ownerState:T,children:(0,i.jsx)(EU.Provider,{value:N,children:h})}))})}))}))})),PU=LU;var jU=s().forwardRef(((e,t)=>s().createElement(PU,{...e,ref:t})));function NU(e){return Kn("MuiDialogContent",e)}function DU(e){return Kn("MuiDialogTitle",e)}No("MuiDialogContent",["root","dividers"]);const BU=No("MuiDialogTitle",["root"]),FU=["className","dividers"],$U=Oi("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>u({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}`}:{[`.${BU.root} + &`]:{paddingTop:0}}))),zU=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,s=c(r,FU),a=u({},r,{dividers:o}),l=(e=>{const{classes:t,dividers:r}=e;return C({root:["root",r&&"dividers"]},NU,t)})(a);return(0,i.jsx)($U,u({className:w(l.root,n),ownerState:a,ref:t},s))})),UU=zU;var WU=s().forwardRef(((e,t)=>s().createElement(UU,{...e,ref:t})));function qU(e){return Kn("MuiDialogActions",e)}No("MuiDialogActions",["root","spacing"]);const VU=["className","disableSpacing"],HU=Oi("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((({ownerState:e})=>u({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),GU=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,s=c(r,VU),a=u({},r,{disableSpacing:o}),l=(e=>{const{classes:t,disableSpacing:r}=e;return C({root:["root",!r&&"spacing"]},qU,t)})(a);return(0,i.jsx)(HU,u({className:w(l.root,n),ownerState:a,ref:t},s))})),ZU=GU;var KU=s().forwardRef(((e,t)=>s().createElement(ZU,{...e,ref:t})));const XU=["className","id"],YU=Oi(ps,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),JU=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiDialogTitle"}),{className:n,id:s}=r,a=c(r,XU),l=r,d=(e=>{const{classes:t}=e;return C({root:["root"]},DU,t)})(l),{titleId:p=s}=o.useContext(EU);return(0,i.jsx)(YU,u({component:"h2",className:w(d.root,n),ownerState:l,ref:t,variant:"h6",id:null!=s?s:p},a))})),QU=JU,eW={variant:"subtitle1"},tW=s().forwardRef(((e,t)=>s().createElement(QU,{...eW,...e,ref:t})));tW.defaultProps=eW;var rW=tW;function nW(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function iW(e,t=!1){return e&&(nW(e.value)&&""!==e.value||t&&nW(e.defaultValue)&&""!==e.defaultValue)}const oW=o.createContext(void 0);function sW(e){return Kn("MuiFormControl",e)}No("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const aW=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],lW=Oi("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>u({},t.root,t[`margin${Bi(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>u({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%"}))),cW=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiFormControl"}),{children:n,className:s,color:a="primary",component:l="div",disabled:d=!1,error:p=!1,focused:h,fullWidth:f=!1,hiddenLabel:m=!1,margin:g="none",required:v=!1,size:y="medium",variant:b="outlined"}=r,x=c(r,aW),_=u({},r,{color:a,component:l,disabled:d,error:p,fullWidth:f,hiddenLabel:m,margin:g,required:v,size:y,variant:b}),k=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return C({root:["root","none"!==r&&`margin${Bi(r)}`,n&&"fullWidth"]},sW,t)})(_),[S,A]=o.useState((()=>{let e=!1;return n&&o.Children.forEach(n,(t=>{if(!Dd(t,["Input","Select"]))return;const r=Dd(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[E,R]=o.useState((()=>{let e=!1;return n&&o.Children.forEach(n,(t=>{Dd(t,["Input","Select"])&&(iW(t.props,!0)||iW(t.props.inputProps,!0))&&(e=!0)})),e})),[I,O]=o.useState(!1);d&&I&&O(!1);const M=void 0===h||d?I:h;let T;const L=o.useMemo((()=>({adornedStart:S,setAdornedStart:A,color:a,disabled:d,error:p,filled:E,focused:M,fullWidth:f,hiddenLabel:m,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{O(!0)},registerEffect:T,required:v,variant:b})),[S,a,d,p,E,M,f,m,T,v,y,b]);return(0,i.jsx)(oW.Provider,{value:L,children:(0,i.jsx)(lW,u({as:l,ownerState:_,className:w(k.root,s),ref:t},x,{children:n}))})})),uW=cW;function dW(){return o.useContext(oW)}var pW=s().forwardRef(((e,t)=>s().createElement(uW,{...e,ref:t})));const hW=s().forwardRef(((e,t)=>s().createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"})))),{slots:fW,classNames:mW}=Ta("CloseButton",["root","icon"]),gW=Da(rc,fW.root)({}),vW=Da(hW,fW.icon)({}),yW={"aria-label":"close",color:"default"},bW=s().forwardRef(((e,t)=>{const r=Di({props:{...yW,...e},name:fW.root.name}),{slotProps:n={},...i}=r;return s().createElement(gW,{...i,size:"small",ref:t,className:w([[mW.root,i.className]]),ownerState:r},s().createElement(vW,{...n.icon,className:w([mW.icon,n.icon?.className]),ownerState:r}))}));bW.defaultProps=yW;var xW=bW;const wW=Da((e=>s().createElement(lc,{viewBox:"0 0 32 32",...e},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"}))))((({theme:e})=>({width:e.spacing(3),height:e.spacing(3),"& path":{fill:e.palette.text.primary},marginRight:e.spacing(1)}))),CW=Da("span")((({theme:e})=>({marginRight:e.spacing(1)}))),_W=({logo:e,...t})=>!1===e?null:e?s().createElement(CW,null,e):s().createElement(wW,{...t}),{slots:kW,classNames:SW}=Ta("DialogHeader",["root","logo","toolbar"]),AW=Da(Xo,kW.root)({"& .MuiDialogTitle-root":{padding:0}}),EW=Da(os,kW.toolbar)({}),RW={color:"transparent",position:"relative"},IW=s().forwardRef(((e,t)=>{const r=Di({props:{...RW,...e},name:kW.root.name}),{slotProps:n={},logo:i,onClose:o,...a}=r;return s().createElement(AW,{...a,ref:t,className:w([[SW.root,a.className]]),ownerState:r},s().createElement(EW,{variant:"dense",...n.toolbar,className:w([SW.toolbar,n.toolbar?.className]),ownerState:r},s().createElement(_W,{logo:i,className:w([SW.logo,n.logo?.className])}),s().createElement(Qo,{direction:"row",alignItems:"center",flex:1},r.children),o&&s().createElement(xW,{edge:"end",onClick:o,sx:{"&.MuiButtonBase-root":{ml:.5}}})))}));IW.defaultProps=RW;var OW=IW;const MW="base";function TW(e,t){const r=Zn[t];return r?`${MW}--${r}`:function(e,t){return`${MW}-${e}-${t}`}(e,t)}function LW(e){return e.substring(2).toLowerCase()}function PW(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:s,touchEvent:a="onTouchEnd"}=e,l=o.useRef(!1),c=o.useRef(null),u=o.useRef(!1),d=o.useRef(!1);o.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const p=bs(t.ref,c),h=ws((e=>{const t=d.current;d.current=!1;const n=Bd(c.current);if(!u.current||!c.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(l.current)return void(l.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(c.current)>-1:!n.documentElement.contains(e.target)||c.current.contains(e.target),i||!r&&t||s(e)})),f=e=>r=>{d.current=!0;const n=t.props[e];n&&n(r)},m={ref:p};return!1!==a&&(m[a]=f(a)),o.useEffect((()=>{if(!1!==a){const e=LW(a),t=Bd(c.current),r=()=>{l.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",r)}}}),[h,a]),!1!==n&&(m[n]=f(n)),o.useEffect((()=>{if(!1!==n){const e=LW(n),t=Bd(c.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,n]),(0,i.jsx)(o.Fragment,{children:o.cloneElement(t,m)})}var jW="top",NW="bottom",DW="right",BW="left",FW="auto",$W=[jW,NW,DW,BW],zW="start",UW="end",WW="viewport",qW="popper",VW=$W.reduce((function(e,t){return e.concat([t+"-"+zW,t+"-"+UW])}),[]),HW=[].concat($W,[FW]).reduce((function(e,t){return e.concat([t,t+"-"+zW,t+"-"+UW])}),[]),GW=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ZW(e){return e?(e.nodeName||"").toLowerCase():null}function KW(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function XW(e){return e instanceof KW(e).Element||e instanceof Element}function YW(e){return e instanceof KW(e).HTMLElement||e instanceof HTMLElement}function JW(e){return"undefined"!=typeof ShadowRoot&&(e instanceof KW(e).ShadowRoot||e instanceof ShadowRoot)}const QW={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];YW(i)&&ZW(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});YW(n)&&ZW(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function eq(e){return e.split("-")[0]}var tq=Math.max,rq=Math.min,nq=Math.round;function iq(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function oq(){return!/^((?!chrome|android).)*safari/i.test(iq())}function sq(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&YW(e)&&(i=e.offsetWidth>0&&nq(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&nq(n.height)/e.offsetHeight||1);var s=(XW(e)?KW(e):window).visualViewport,a=!oq()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/i,c=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/i,d=n.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function aq(e){var t=sq(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lq(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&JW(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function cq(e){return KW(e).getComputedStyle(e)}function uq(e){return["table","td","th"].indexOf(ZW(e))>=0}function dq(e){return((XW(e)?e.ownerDocument:e.document)||window.document).documentElement}function pq(e){return"html"===ZW(e)?e:e.assignedSlot||e.parentNode||(JW(e)?e.host:null)||dq(e)}function hq(e){return YW(e)&&"fixed"!==cq(e).position?e.offsetParent:null}function fq(e){for(var t=KW(e),r=hq(e);r&&uq(r)&&"static"===cq(r).position;)r=hq(r);return r&&("html"===ZW(r)||"body"===ZW(r)&&"static"===cq(r).position)?t:r||function(e){var t=/firefox/i.test(iq());if(/Trident/i.test(iq())&&YW(e)&&"fixed"===cq(e).position)return null;var r=pq(e);for(JW(r)&&(r=r.host);YW(r)&&["html","body"].indexOf(ZW(r))<0;){var n=cq(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function mq(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gq(e,t,r){return tq(e,rq(t,r))}function vq(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yq(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}const bq={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,a=eq(r.placement),l=mq(a),c=[BW,DW].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return vq("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yq(e,$W))}(i.padding,r),d=aq(o),p="y"===l?jW:BW,h="y"===l?NW:DW,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],g=fq(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[p],x=v-d[c]-u[h],w=v/2-d[c]/2+y,C=gq(b,w,x),_=l;r.modifiersData[n]=((t={})[_]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&lq(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xq(e){return e.split("-")[1]}var wq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cq(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,h=void 0===p?0:p,f=s.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=BW,x=jW,w=window;if(c){var C=fq(r),_="clientHeight",k="clientWidth";C===KW(r)&&"static"!==cq(C=dq(r)).position&&"absolute"===a&&(_="scrollHeight",k="scrollWidth"),(i===jW||(i===BW||i===DW)&&o===UW)&&(x=NW,m-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[_])-n.height,m*=l?1:-1),i!==BW&&(i!==jW&&i!==NW||o!==UW)||(b=DW,h-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[k])-n.width,h*=l?1:-1)}var S,A=Object.assign({position:a},c&&wq),E=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:nq(r*i)/i||0,y:nq(n*i)/i||0}}({x:h,y:m},KW(r)):{x:h,y:m};return h=E.x,m=E.y,l?Object.assign({},A,((S={})[x]=y?"0":"",S[b]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},A,((t={})[x]=y?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}var _q={passive:!0};const kq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,s=n.resize,a=void 0===s||s,l=KW(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",r.update,_q)})),a&&l.addEventListener("resize",r.update,_q),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",r.update,_q)})),a&&l.removeEventListener("resize",r.update,_q)}},data:{}};var Sq={left:"right",right:"left",bottom:"top",top:"bottom"};function Aq(e){return e.replace(/left|right|bottom|top/g,(function(e){return Sq[e]}))}var Eq={start:"end",end:"start"};function Rq(e){return e.replace(/start|end/g,(function(e){return Eq[e]}))}function Iq(e){var t=KW(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Oq(e){return sq(dq(e)).left+Iq(e).scrollLeft}function Mq(e){var t=cq(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Tq(e){return["html","body","#document"].indexOf(ZW(e))>=0?e.ownerDocument.body:YW(e)&&Mq(e)?e:Tq(pq(e))}function Lq(e,t){var r;void 0===t&&(t=[]);var n=Tq(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=KW(n),s=i?[o].concat(o.visualViewport||[],Mq(n)?n:[]):n,a=t.concat(s);return i?a:a.concat(Lq(pq(s)))}function Pq(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jq(e,t,r){return t===WW?Pq(function(e,t){var r=KW(e),n=dq(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=oq();(c||!c&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+Oq(e),y:l}}(e,r)):XW(t)?function(e,t){var r=sq(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Pq(function(e){var t,r=dq(e),n=Iq(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=tq(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=tq(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+Oq(e),l=-n.scrollTop;return"rtl"===cq(i||r).direction&&(a+=tq(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(dq(e)))}function Nq(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?eq(i):null,s=i?xq(i):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case jW:t={x:a,y:r.y-n.height};break;case NW:t={x:a,y:r.y+r.height};break;case DW:t={x:r.x+r.width,y:l};break;case BW:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?mq(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case zW:t[c]=t[c]-(r[u]/2-n[u]/2);break;case UW:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function Dq(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,s=void 0===o?e.strategy:o,a=r.boundary,l=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?WW:c,d=r.elementContext,p=void 0===d?qW:d,h=r.altBoundary,f=void 0!==h&&h,m=r.padding,g=void 0===m?0:m,v=vq("number"!=typeof g?g:yq(g,$W)),y=p===qW?"reference":qW,b=e.rects.popper,x=e.elements[f?y:p],w=function(e,t,r,n){var i="clippingParents"===t?function(e){var t=Lq(pq(e)),r=["absolute","fixed"].indexOf(cq(e).position)>=0&&YW(e)?fq(e):e;return XW(r)?t.filter((function(e){return XW(e)&&lq(e,r)&&"body"!==ZW(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),s=o[0],a=o.reduce((function(t,r){var i=jq(e,r,n);return t.top=tq(i.top,t.top),t.right=rq(i.right,t.right),t.bottom=rq(i.bottom,t.bottom),t.left=tq(i.left,t.left),t}),jq(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(XW(x)?x:x.contextElement||dq(e.elements.popper),l,u,s),C=sq(e.elements.reference),_=Nq({reference:C,element:b,strategy:"absolute",placement:i}),k=Pq(Object.assign({},b,_)),S=p===qW?k:C,A={top:w.top-S.top+v.top,bottom:S.bottom-w.bottom+v.bottom,left:w.left-S.left+v.left,right:S.right-w.right+v.right},E=e.modifiersData.offset;if(p===qW&&E){var R=E[i];Object.keys(A).forEach((function(e){var t=[DW,NW].indexOf(e)>=0?1:-1,r=[jW,NW].indexOf(e)>=0?"y":"x";A[e]+=R[r]*t}))}return A}const Bq={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,f=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=eq(g),y=l||(v!==g&&f?function(e){if(eq(e)===FW)return[];var t=Aq(e);return[Rq(e),t,Rq(t)]}(g):[Aq(g)]),b=[g].concat(y).reduce((function(e,r){return e.concat(eq(r)===FW?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?HW:l,u=xq(n),d=u?a?VW:VW.filter((function(e){return xq(e)===u})):$W,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,r){return t[r]=Dq(e,{placement:r,boundary:i,rootBoundary:o,padding:s})[eq(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):r)}),[]),x=t.rects.reference,w=t.rects.popper,C=new Map,_=!0,k=b[0],S=0;S<b.length;S++){var A=b[S],E=eq(A),R=xq(A)===zW,I=[jW,NW].indexOf(E)>=0,O=I?"width":"height",M=Dq(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=I?R?DW:BW:R?NW:jW;x[O]>w[O]&&(T=Aq(T));var L=Aq(T),P=[];if(o&&P.push(M[E]<=0),a&&P.push(M[T]<=0,M[L]<=0),P.every((function(e){return e}))){k=A,_=!1;break}C.set(A,P)}if(_)for(var j=function(e){var t=b.find((function(t){var r=C.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=f?3:1;N>0&&"break"!==j(N);N--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Fq(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $q(e){return[jW,DW,NW,BW].some((function(t){return e[t]>=0}))}const zq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,s=HW.reduce((function(e,r){return e[r]=function(e,t,r){var n=eq(e),i=[BW,jW].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[BW,DW].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(r,t.rects,o),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}},Uq={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,h=void 0===p||p,f=r.tetherOffset,m=void 0===f?0:f,g=Dq(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=eq(t.placement),y=xq(t.placement),b=!y,x=mq(v),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(C){if(o){var I,O="y"===x?jW:BW,M="y"===x?NW:DW,T="y"===x?"height":"width",L=C[x],P=L+g[O],j=L-g[M],N=h?-k[T]/2:0,D=y===zW?_[T]:k[T],B=y===zW?-k[T]:-_[T],F=t.elements.arrow,$=h&&F?aq(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=z[O],W=z[M],q=gq(0,_[T],$[T]),V=b?_[T]/2-N-q-U-A.mainAxis:D-q-U-A.mainAxis,H=b?-_[T]/2+N+q+W+A.mainAxis:B+q+W+A.mainAxis,G=t.elements.arrow&&fq(t.elements.arrow),Z=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,K=null!=(I=null==E?void 0:E[x])?I:0,X=L+H-K,Y=gq(h?rq(P,L+V-K-Z):P,L,h?tq(j,X):j);C[x]=Y,R[x]=Y-L}if(a){var J,Q="x"===x?jW:BW,ee="x"===x?NW:DW,te=C[w],re="y"===w?"height":"width",ne=te+g[Q],ie=te-g[ee],oe=-1!==[jW,BW].indexOf(v),se=null!=(J=null==E?void 0:E[w])?J:0,ae=oe?ne:te-_[re]-k[re]-se+A.altAxis,le=oe?te+_[re]+k[re]-se-A.altAxis:ie,ce=h&&oe?function(e,t,r){var n=gq(e,t,r);return n>r?r:n}(ae,te,le):gq(h?ae:ne,te,h?le:ie);C[w]=ce,R[w]=ce-te}t.modifiersData[n]=R}},requiresIfExists:["offset"]};function Wq(e,t,r){void 0===r&&(r=!1);var n=YW(t),i=YW(t)&&function(e){var t=e.getBoundingClientRect(),r=nq(t.width)/e.offsetWidth||1,n=nq(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=dq(t),s=sq(e,i,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==ZW(t)||Mq(o))&&(a=function(e){return e!==KW(e)&&YW(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Iq(e);var t}(t)),YW(t)?((l=sq(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Oq(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function qq(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}var Vq={placement:"bottom",modifiers:[],strategy:"absolute"};function Hq(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var Gq=function(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?Vq:i;return function(e,t,r){void 0===r&&(r=o);var i,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vq,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var i="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},o,a.options,i),a.scrollParents={reference:XW(e)?Lq(e):e.contextElement?Lq(e.contextElement):[],popper:Lq(t)};var s,c,p=function(e){var t=qq(e);return GW.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(n,a.options.modifiers),c=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=p.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:a,name:t,instance:u,options:n});l.push(o||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,r=e.popper;if(Hq(t,r)){a.rects={reference:Wq(t,fq(r),"fixed"===a.options.strategy),popper:aq(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var i=a.orderedModifiers[n],o=i.fn,s=i.options,l=void 0===s?{}:s,d=i.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,n=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){d(),c=!0}};if(!Hq(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}({defaultModifiers:[kq,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Nq({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,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,s=void 0===o||o,a=r.roundOffsets,l=void 0===a||a,c={placement:eq(t.placement),variation:xq(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Cq(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cq(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:{}},QW,zq,Bq,Uq,bq,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Dq(t,{elementContext:"reference"}),a=Dq(t,{altBoundary:!0}),l=Fq(s,n),c=Fq(a,i,o),u=$q(l),d=$q(c);t.modifiersData[r]={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})}}]});const Zq="Popper";function Kq(e){return TW(Zq,e)}!function(e){const t={};["root"].forEach((r=>{t[r]=TW(e,r)}))}(Zq);const Xq=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Yq=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Jq(e){return"function"==typeof e?e():e}const Qq={},eV=o.forwardRef((function(e,t){var r;const{anchorEl:n,children:s,direction:a,disablePortal:l,modifiers:d,open:p,placement:h,popperOptions:f,popperRef:m,slotProps:g={},slots:v={},TransitionProps:y}=e,b=c(e,Xq),x=o.useRef(null),w=bs(x,t),_=o.useRef(null),k=bs(_,m),S=o.useRef(k);xs((()=>{S.current=k}),[k]),o.useImperativeHandle(m,(()=>_.current),[]);const A=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,a),[E,R]=o.useState(A),[I,O]=o.useState(Jq(n));o.useEffect((()=>{_.current&&_.current.forceUpdate()})),o.useEffect((()=>{n&&O(Jq(n))}),[n]),xs((()=>{if(!I||!p)return;let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{R(e.placement)}}];null!=d&&(e=e.concat(d)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));const t=Gq(I,x.current,u({placement:A},f,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[I,l,d,p,f,A]);const M={placement:E};null!==y&&(M.TransitionProps=y);const T=C({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(Td);return r=>t?"":e(r)}(Kq)),L=null!=(r=v.root)?r:"div",P=Kd({elementType:L,externalSlotProps:g.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:T.root});return(0,i.jsx)(L,u({},P,{children:"function"==typeof s?s(M):s}))})),tV=o.forwardRef((function(e,t){const{anchorEl:r,children:n,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:p,open:h,placement:f="bottom",popperOptions:m=Qq,popperRef:g,style:v,transition:y=!1,slotProps:b={},slots:x={}}=e,w=c(e,Yq),[C,_]=o.useState(!0);if(!d&&!h&&(!y||C))return null;let k;if(s)k=s;else if(r){const e=Jq(r);k=e&&function(e){return void 0!==e.nodeType}(e)?Bd(e).body:Bd(null).body}const S=y?{in:h,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:void 0;return(0,i.jsx)(Sp,{disablePortal:l,container:k,children:(0,i.jsx)(eV,u({anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:t,open:y?!C:h,placement:f,popperOptions:m,popperRef:g,slotProps:b,slots:x},w,{style:u({position:"fixed",top:0,left:0,display:h||!d||y&&!C?void 0:"none"},v),TransitionProps:S,children:n}))})})),rV=["onChange","maxRows","minRows","style","value"];function nV(e){return parseInt(e,10)||0}const iV={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},oV=o.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:s=1,style:a,value:l}=e,d=c(e,rV),{current:p}=o.useRef(null!=l),h=o.useRef(null),f=bs(t,h),m=o.useRef(null),g=o.useCallback((()=>{const t=h.current,r=Fd(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const i=m.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const o=r.boxSizing,a=nV(r.paddingBottom)+nV(r.paddingTop),l=nV(r.borderBottomWidth)+nV(r.borderTopWidth),c=i.scrollHeight;i.value="x";const u=i.scrollHeight;let d=c;return s&&(d=Math.max(Number(s)*u,d)),n&&(d=Math.min(Number(n)*u,d)),d=Math.max(d,u),{outerHeightStyle:d+("border-box"===o?a+l:0),overflowing:Math.abs(d-c)<=1}}),[n,s,e.placeholder]),v=o.useCallback((()=>{const e=g();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=h.current;r.style.height=`${e.outerHeightStyle}px`,r.style.overflow=e.overflowing?"hidden":""}),[g]);return xs((()=>{const e=()=>{v()},t=Nd(e),r=h.current,n=Fd(r);let i;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(r)),()=>{t.clear(),cancelAnimationFrame(void 0),n.removeEventListener("resize",t),i&&i.disconnect()}}),[g,v]),xs((()=>{v()})),(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("textarea",u({value:l,onChange:e=>{p||v(),r&&r(e)},ref:f,rows:s,style:a},d)),(0,i.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:m,tabIndex:-1,style:u({},iV,a,{paddingTop:0,paddingBottom:0})})]})}));function sV(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function aV(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const lV=function(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:s=!1}=e;return(e,{inputValue:a,getOptionLabel:l})=>{let c=s?a.trim():a;r&&(c=c.toLowerCase()),t&&(c=sV(c));const u=c?e.filter((e=>{let n=(o||l)(e);return r&&(n=n.toLowerCase()),t&&(n=sV(n)),"start"===i?0===n.indexOf(c):n.indexOf(c)>-1})):e;return"number"==typeof n?u.slice(0,n):u}}(),cV=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};var uV,dV={};const pV=d(function(){if(uV)return dV;uV=1,Object.defineProperty(dV,"__esModule",{value:!0}),dV.default=void 0;var e=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r(void 0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(s()),t=pr;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}return dV.default=function(r=null){const n=e.useContext(t.ThemeContext);return n&&(i=n,0!==Object.keys(i).length)?n:r;var i},dV}()),hV=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],fV=Oi(tV,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mV=o.forwardRef((function(e,t){var r;const n=pV(),o=Di({props:e,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:d,container:p,disablePortal:h,keepMounted:f,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:x,slots:w,slotProps:C}=o,_=c(o,hV),k=null!=(r=null==w?void 0:w.root)?r:null==l?void 0:l.Root,S=u({anchorEl:s,container:p,disablePortal:h,keepMounted:f,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:x},_);return(0,i.jsx)(fV,u({as:a,direction:null==n?void 0:n.direction,slots:{root:k},slotProps:null!=C?C:d},S,{ref:t}))})),gV=mV;function vV(e){return Kn("MuiListSubheader",e)}No("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const yV=["className","color","component","disableGutters","disableSticky","inset"],bV=Oi("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Bi(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>u({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),xV=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:d=!1}=r,p=c(r,yV),h=u({},r,{color:o,component:s,disableGutters:a,disableSticky:l,inset:d}),f=(e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e;return C({root:["root","default"!==r&&`color${Bi(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]},vV,t)})(h);return(0,i.jsx)(bV,u({as:s,className:w(f.root,n),ref:t,ownerState:h},p))}));xV.muiSkipListHighlight=!0;const wV=xV;function CV({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}function _V(e){return Kn("MuiInputBase",e)}const kV=No("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),SV=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],AV=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Bi(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},EV=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},RV=Oi("div",{name:"MuiInputBase",slot:"Root",overridesResolver:AV})((({theme:e,ownerState:t})=>u({},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",[`&.${kV.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&u({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),IV=Oi("input",{name:"MuiInputBase",slot:"Input",overridesResolver:EV})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=u({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return u({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${kV.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${kV.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"})})),OV=(0,i.jsx)((function(e){return(0,i.jsx)(zi,u({},e,{defaultTheme:Ai,themeId:Ei}))}),{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),MV=o.forwardRef((function(e,t){var r;const n=Di({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:l,className:d,components:p={},componentsProps:h={},defaultValue:f,disabled:m,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:b,inputComponent:x="input",inputProps:_={},inputRef:k,maxRows:S,minRows:A,multiline:E=!1,name:R,onBlur:I,onChange:O,onClick:M,onFocus:T,onKeyDown:L,onKeyUp:P,placeholder:j,readOnly:N,renderSuffix:D,rows:B,slotProps:F={},slots:$={},startAdornment:z,type:U="text",value:W}=n,q=c(n,SV),V=null!=_.value?_.value:W,{current:H}=o.useRef(null!=V),G=o.useRef(),Z=o.useCallback((e=>{}),[]),K=bs(G,k,_.ref,Z),[X,Y]=o.useState(!1),J=dW(),Q=CV({props:n,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=J?J.focused:X,o.useEffect((()=>{!J&&m&&X&&(Y(!1),I&&I())}),[J,m,X,I]);const ee=J&&J.onFilled,te=J&&J.onEmpty,re=o.useCallback((e=>{iW(e)?ee&&ee():te&&te()}),[ee,te]);xs((()=>{H&&re({value:V})}),[V,re,H]),o.useEffect((()=>{re(G.current)}),[]);let ne=x,ie=_;E&&"input"===ne&&(ie=u(B?{type:void 0,minRows:B,maxRows:B}:{type:void 0,maxRows:S,minRows:A},ie),ne=oV),o.useEffect((()=>{J&&J.setAdornedStart(Boolean(z))}),[J,z]);const oe=u({},n,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:v,error:Q.error,focused:Q.focused,formControl:J,fullWidth:y,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:z,type:U}),se=(e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:f}=e;return C({root:["root",`color${Bi(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&"medium"!==p&&`size${Bi(p)}`,u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},_V,t)})(oe),ae=$.root||p.Root||RV,le=F.root||h.root||{},ce=$.input||p.Input||IV;return ie=u({},ie,null!=(r=F.input)?r:h.input),(0,i.jsxs)(o.Fragment,{children:[!g&&OV,(0,i.jsxs)(ae,u({},le,!Od(ae)&&{ownerState:u({},oe,le.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),M&&M(e)}},q,{className:w(se.root,le.className,d,N&&"MuiInputBase-readOnly"),children:[z,(0,i.jsx)(oW.Provider,{value:null,children:(0,i.jsx)(ce,u({ownerState:oe,"aria-invalid":Q.error,"aria-describedby":s,autoComplete:a,autoFocus:l,defaultValue:f,disabled:Q.disabled,id:b,onAnimationStart:e=>{re("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:R,placeholder:j,readOnly:N,required:Q.required,rows:B,value:V,onKeyDown:L,onKeyUp:P,type:U},ie,!Od(ce)&&{as:ne,ownerState:u({},oe,ie.ownerState)},{ref:K,className:w(se.input,ie.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{I&&I(e),_.onBlur&&_.onBlur(e),J&&J.onBlur?J.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||G.current;if(null==t)throw new Error(Un(1));re({value:t.value})}_.onChange&&_.onChange(e,...t),O&&O(e,...t)},onFocus:e=>{Q.disabled?e.stopPropagation():(T&&T(e),_.onFocus&&_.onFocus(e),J&&J.onFocus?J.onFocus(e):Y(!0))}}))}),v,D?D(u({},Q,{startAdornment:z})):null]}))]})})),TV=MV;function LV(e){return Kn("MuiInput",e)}const PV=u({},kV,No("MuiInput",["root","underline","input"]));function jV(e){return Kn("MuiOutlinedInput",e)}const NV=u({},kV,No("MuiOutlinedInput",["root","notchedOutline","input"]));function DV(e){return Kn("MuiFilledInput",e)}const BV=u({},kV,No("MuiFilledInput",["root","underline","input"])),FV=gF((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$V=gF((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function zV(e){return Kn("MuiAutocomplete",e)}const UV=No("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var WV,qV;const VV=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],HV=["ref"],GV=tz(),ZV=Oi("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:s,size:a}=r;return[{[`& .${UV.tag}`]:t.tag},{[`& .${UV.tag}`]:t[`tagSize${Bi(a)}`]},{[`& .${UV.inputRoot}`]:t.inputRoot},{[`& .${UV.input}`]:t.input},{[`& .${UV.input}`]:s&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${UV.focused} .${UV.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${UV.clearIndicator}`]:{visibility:"visible"}},[`& .${UV.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${UV.inputRoot}`]:{flexWrap:"wrap",[`.${UV.hasPopupIcon}&, .${UV.hasClearIcon}&`]:{paddingRight:30},[`.${UV.hasPopupIcon}.${UV.hasClearIcon}&`]:{paddingRight:56},[`& .${UV.input}`]:{width:0,minWidth:30}},[`& .${PV.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${PV.root}.${kV.sizeSmall}`]:{[`& .${PV.input}`]:{padding:"2px 4px 3px 0"}},[`& .${NV.root}`]:{padding:9,[`.${UV.hasPopupIcon}&, .${UV.hasClearIcon}&`]:{paddingRight:39},[`.${UV.hasPopupIcon}.${UV.hasClearIcon}&`]:{paddingRight:65},[`& .${UV.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${UV.endAdornment}`]:{right:9}},[`& .${NV.root}.${kV.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${UV.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${BV.root}`]:{paddingTop:19,paddingLeft:8,[`.${UV.hasPopupIcon}&, .${UV.hasClearIcon}&`]:{paddingRight:39},[`.${UV.hasPopupIcon}.${UV.hasClearIcon}&`]:{paddingRight:65},[`& .${BV.input}`]:{padding:"7px 4px"},[`& .${UV.endAdornment}`]:{right:9}},[`& .${BV.root}.${kV.sizeSmall}`]:{paddingBottom:1,[`& .${BV.input}`]:{padding:"2.5px 4px"}},[`& .${kV.hiddenLabel}`]:{paddingTop:8},[`& .${BV.root}.${kV.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${UV.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${BV.root}.${kV.hiddenLabel}.${kV.sizeSmall}`]:{[`& .${UV.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${UV.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${UV.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${UV.input}`]:{opacity:1}}}]}),KV=Oi("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),XV=Oi(wa,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),YV=Oi(wa,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>u({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),JV=Oi(gV,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${UV.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),QV=Oi(zo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>u({},e.typography.body1,{overflow:"auto"}))),eH=Oi("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),tH=Oi("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),rH=Oi("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${UV.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${UV.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${UV.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ti.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${UV.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ti.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${UV.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ti.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),nH=Oi(wV,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),iH=Oi("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${UV.option}`]:{paddingLeft:24}}),oH=o.forwardRef((function(e,t){var r,n,s,a;const l=GV({props:e,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:p=!1,autoSelect:h=!1,blurOnSelect:f=!1,ChipProps:m,className:g,clearIcon:v=WV||(WV=(0,i.jsx)(FV,{fontSize:"small"})),clearOnBlur:y=!l.freeSolo,clearOnEscape:b=!1,clearText:x="Clear",closeText:_="Close",componentsProps:k={},defaultValue:S=(l.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:E=!1,disabled:R=!1,disabledItemsFocusable:I=!1,disableListWrap:O=!1,disablePortal:M=!1,filterSelectedOptions:T=!1,forcePopupIcon:L="auto",freeSolo:P=!1,fullWidth:j=!1,getLimitTagsText:N=e=>`+${e}`,getOptionLabel:D,groupBy:B,handleHomeEndKeys:F=!l.freeSolo,includeInputInList:$=!1,limitTags:z=-1,ListboxComponent:U="ul",ListboxProps:W,loading:q=!1,loadingText:V="Loading…",multiple:H=!1,noOptionsText:G="No options",openOnFocus:Z=!1,openText:K="Open",PaperComponent:X=zo,PopperComponent:Y=gV,popupIcon:J=qV||(qV=(0,i.jsx)($V,{})),readOnly:Q=!1,renderGroup:ee,renderInput:te,renderOption:re,renderTags:ne,selectOnFocus:ie=!l.freeSolo,size:oe="medium",slotProps:se={}}=l,ae=c(l,VV),{getRootProps:le,getInputProps:ce,getInputLabelProps:ue,getPopupIndicatorProps:de,getClearProps:pe,getTagProps:he,getListboxProps:fe,getOptionProps:me,value:ge,dirty:ve,expanded:ye,id:be,popupOpen:xe,focused:we,focusedTag:Ce,anchorEl:_e,setAnchorEl:ke,inputValue:Se,groupedOptions:Ae}=function(e){const{unstable_isActiveElementInListbox:t=cV,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:p=(e.multiple?[]:null),disableClearable:h=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:v=!1,filterOptions:y=lV,filterSelectedOptions:b=!1,freeSolo:x=!1,getOptionDisabled:w,getOptionKey:C,getOptionLabel:_=e=>{var t;return null!=(t=e.label)?t:e},groupBy:k,handleHomeEndKeys:S=!e.freeSolo,id:A,includeInputInList:E=!1,inputValue:R,isOptionEqualToValue:I=(e,t)=>e===t,multiple:O=!1,onChange:M,onClose:T,onHighlightChange:L,onInputChange:P,onOpen:j,open:N,openOnFocus:D=!1,options:B,readOnly:F=!1,selectOnFocus:$=!e.freeSolo,value:z}=e,U=Ud(A);let W=_;W=e=>{const t=_(e);return"string"!=typeof t?String(t):t};const q=o.useRef(!1),V=o.useRef(!0),H=o.useRef(null),G=o.useRef(null),[Z,K]=o.useState(null),[X,Y]=o.useState(-1),J=i?0:-1,Q=o.useRef(J),[ee,te]=Wd({controlled:z,default:p,name:d}),[re,ne]=Wd({controlled:R,default:"",name:d,state:"inputValue"}),[ie,oe]=o.useState(!1),se=o.useCallback(((e,t)=>{if(!(O?ee.length<t.length:null!==t)&&!l)return;let r;if(O)r="";else if(null==t)r="";else{const e=W(t);r="string"==typeof e?e:""}re!==r&&(ne(r),P&&P(e,r,"reset"))}),[W,re,O,P,ne,l,ee]),[ae,le]=Wd({controlled:N,default:!1,name:d,state:"open"}),[ce,ue]=o.useState(!0),de=!O&&null!=ee&&re===W(ee),pe=ae&&!F,he=pe?y(B.filter((e=>!b||!(O?ee:[ee]).some((t=>null!==t&&I(e,t))))),{inputValue:de&&ce?"":re,getOptionLabel:W}):[],fe=Vd({filteredOptions:he,value:ee,inputValue:re});o.useEffect((()=>{const e=ee!==fe.value;ie&&!e||x&&!e||se(null,ee)}),[ee,se,ie,fe.value,x]);const me=ae&&he.length>0&&!F,ge=ws((e=>{-1===e?H.current.focus():Z.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{O&&X>ee.length-1&&(Y(-1),ge(-1))}),[ee,O,X,ge]);const ve=ws((({event:e,index:t,reason:n="auto"})=>{if(Q.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${U}-option-${t}`),L&&L(e,-1===t?null:he[t],n),!G.current)return;const i=G.current.querySelector(`[role="option"].${r}-focused`);i&&(i.classList.remove(`${r}-focused`),i.classList.remove(`${r}-focusVisible`));let o=G.current;if("listbox"!==G.current.getAttribute("role")&&(o=G.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t)return void(o.scrollTop=0);const s=G.current.querySelector(`[data-option-index="${t}"]`);if(s&&(s.classList.add(`${r}-focused`),"keyboard"===n&&s.classList.add(`${r}-focusVisible`),o.scrollHeight>o.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=s,t=o.clientHeight+o.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?o.scrollTop=r-o.clientHeight:e.offsetTop-e.offsetHeight*(k?1.3:0)<o.scrollTop&&(o.scrollTop=e.offsetTop-e.offsetHeight*(k?1.3:0))}})),ye=ws((({event:e,diff:t,direction:r="next",reason:i="auto"})=>{if(!pe)return;const o=function(e,t){if(!G.current||e<0||e>=he.length)return-1;let r=e;for(;;){const n=G.current.querySelector(`[data-option-index="${r}"]`),i=!g&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!i)return r;if(r="next"===t?(r+1)%he.length:(r-1+he.length)%he.length,r===e)return-1}}((()=>{const e=he.length-1;if("reset"===t)return J;if("start"===t)return 0;if("end"===t)return e;const r=Q.current+t;return r<0?-1===r&&E?-1:v&&-1!==Q.current||Math.abs(t)>1?0:e:r>e?r===e+1&&E?-1:v||Math.abs(t)>1?e:0:r})(),r);if(ve({index:o,reason:i,event:e}),n&&"reset"!==t)if(-1===o)H.current.value=re;else{const e=W(he[o]);H.current.value=e,0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&H.current.setSelectionRange(re.length,e.length)}})),be=o.useCallback((()=>{if(!pe)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==he.length&&fe.inputValue===re&&(O?ee.length===fe.value.length&&fe.value.every(((e,t)=>W(ee[t])===W(e))):(e=fe.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return aV(he,(t=>W(t)===W(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=O?ee[0]:ee;if(0!==he.length&&null!=t){if(G.current){if(null!=t){const e=he[Q.current];if(O&&e&&-1!==aV(ee,(t=>I(e,t))))return;const r=aV(he,(e=>I(e,t)));return void(-1===r?ye({diff:"reset"}):ve({index:r}))}Q.current>=he.length-1?ve({index:he.length-1}):ve({index:Q.current})}}else ye({diff:"reset"})}),[he.length,!O&&ee,b,ye,ve,pe,re,O]),xe=ws((e=>{ys(G,e),e&&be()}));o.useEffect((()=>{be()}),[be]);const we=e=>{ae||(le(!0),ue(!0),j&&j(e))},Ce=(e,t)=>{ae&&(le(!1),T&&T(e,t))},_e=(e,t,r,n)=>{if(O){if(ee.length===t.length&&ee.every(((e,r)=>e===t[r])))return}else if(ee===t)return;M&&M(e,t,r,n),te(t)},ke=o.useRef(!1),Se=(e,t,r="selectOption",n="options")=>{let i=r,o=t;if(O){o=Array.isArray(ee)?ee.slice():[];const e=aV(o,(e=>I(t,e)));-1===e?o.push(t):"freeSolo"!==n&&(o.splice(e,1),i="removeOption")}se(e,o),_e(e,o,i,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||Ce(e,i),(!0===a||"touch"===a&&ke.current||"mouse"===a&&!ke.current)&&H.current.blur()},Ae=(e,t)=>{if(!O)return;""===re&&Ce(e,"toggleInput");let r=X;-1===X?""===re&&"previous"===t&&(r=ee.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===ee.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return-1;const e=Z.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),Y(r),ge(r)},Ee=e=>{q.current=!0,ne(""),P&&P(e,"","clear"),_e(e,O?[]:null,"clear")},Re=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==X&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Y(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":pe&&S&&(t.preventDefault(),ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":pe&&S&&(t.preventDefault(),ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ye({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ye({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ye({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Ae(t,"previous");break;case"ArrowRight":Ae(t,"next");break;case"Enter":if(-1!==Q.current&&pe){const e=he[Q.current],r=!!w&&w(e);if(t.preventDefault(),r)return;Se(t,e,"selectOption"),n&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else x&&""!==re&&!1===de&&(O&&t.preventDefault(),Se(t,re,"createOption","freeSolo"));break;case"Escape":pe?(t.preventDefault(),t.stopPropagation(),Ce(t,"escape")):c&&(""!==re||O&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if(O&&!F&&""===re&&ee.length>0){const e=-1===X?ee.length-1:X,r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if(O&&!F&&""===re&&ee.length>0&&-1!==X){const e=X,r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})}}},Ie=e=>{oe(!0),D&&!q.current&&we(e)},Oe=e=>{t(G)?H.current.focus():(oe(!1),V.current=!0,q.current=!1,s&&-1!==Q.current&&pe?Se(e,he[Q.current],"blur"):s&&x&&""!==re?Se(e,re,"blur","freeSolo"):l&&se(e,ee),Ce(e,"blur"))},Me=e=>{const t=e.target.value;re!==t&&(ne(t),ue(!1),P&&P(e,t,"input")),""===t?h||O||_e(e,null,"clear"):we(e)},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&ve({event:e,index:t,reason:"mouse"})},Le=e=>{ve({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},Pe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Se(e,he[t],"selectOption"),ke.current=!1},je=e=>t=>{const r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})},Ne=e=>{ae?Ce(e,"toggleInput"):we(e)},De=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==U&&e.preventDefault()},Be=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),$&&V.current&&H.current.selectionEnd-H.current.selectionStart==0&&H.current.select(),V.current=!1)},Fe=e=>{m||""!==re&&ae||Ne(e)};let $e=x&&re.length>0;$e=$e||(O?ee.length>0:null!==ee);let ze=he;return k&&(new Map,ze=he.reduce(((e,t,r)=>{const n=k(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e}),[])),m&&ie&&Oe(),{getRootProps:(e={})=>u({"aria-owns":me?`${U}-listbox`:null},e,{onKeyDown:Re(e),onMouseDown:De,onClick:Be}),getInputLabelProps:()=>({id:`${U}-label`,htmlFor:U}),getInputProps:()=>({id:U,value:re,onBlur:Oe,onFocus:Ie,onChange:Me,onMouseDown:Fe,"aria-activedescendant":pe?"":null,"aria-autocomplete":n?"both":"list","aria-controls":me?`${U}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>u({key:e,"data-tag-index":e,tabIndex:-1},!F&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${U}-listbox`,"aria-labelledby":`${U}-label`,ref:xe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;const n=(O?ee:[ee]).some((e=>null!=e&&I(t,e))),i=!!w&&w(t);return{key:null!=(r=null==C?void 0:C(t))?r:W(t),tabIndex:-1,role:"option",id:`${U}-option-${e}`,onMouseMove:Te,onClick:Pe,onTouchStart:Le,"data-option-index":e,"aria-disabled":i,"aria-selected":n}},id:U,inputValue:re,value:ee,dirty:$e,expanded:pe&&Z,popupOpen:pe,focused:ie||-1!==X,anchorEl:Z,setAnchorEl:K,focusedTag:X,groupedOptions:ze}}(u({},l,{componentName:"Autocomplete"})),Ee=!A&&!R&&ve&&!Q,Re=(!P||!0===L)&&!1!==L,{onMouseDown:Ie}=ce(),{ref:Oe}=null!=W?W:{},Me=fe(),{ref:Te}=Me,Le=c(Me,HV),Pe=bs(Te,Oe),je=D||(e=>{var t;return null!=(t=e.label)?t:e}),Ne=u({},l,{disablePortal:M,expanded:ye,focused:we,fullWidth:j,getOptionLabel:je,hasClearIcon:Ee,hasPopupIcon:Re,inputFocused:-1===Ce,popupOpen:xe,size:oe}),De=(e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e;return C({root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Bi(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},zV,t)})(Ne);let Be;if(H&&ge.length>0){const e=e=>u({className:De.tag,disabled:R},he(e));Be=ne?ne(ge,e,Ne):ge.map(((t,r)=>(0,i.jsx)(SF,u({label:je(t),size:oe},e({index:r}),m))))}if(z>-1&&Array.isArray(Be)){const e=Be.length-z;!we&&e>0&&(Be=Be.splice(0,z),Be.push((0,i.jsx)("span",{className:De.tag,children:N(e)},Be.length)))}const Fe=ee||(e=>(0,i.jsxs)("li",{children:[(0,i.jsx)(nH,{className:De.groupLabel,ownerState:Ne,component:"div",children:e.group}),(0,i.jsx)(iH,{className:De.groupUl,ownerState:Ne,children:e.children})]},e.key)),$e=re||((e,t)=>(0,o.createElement)("li",u({},e,{key:e.key}),je(t))),ze=(e,t)=>{const r=me({option:e,index:t});return $e(u({},r,{className:De.option}),e,{selected:r["aria-selected"],index:t,inputValue:Se},Ne)},Ue=null!=(r=se.clearIndicator)?r:k.clearIndicator,We=null!=(n=se.paper)?n:k.paper,qe=null!=(s=se.popper)?s:k.popper,Ve=null!=(a=se.popupIndicator)?a:k.popupIndicator,He=e=>(0,i.jsx)(JV,u({as:Y,disablePortal:M,style:{width:_e?_e.clientWidth:null},ownerState:Ne,role:"presentation",anchorEl:_e,open:xe},qe,{className:w(De.popper,null==qe?void 0:qe.className),children:(0,i.jsx)(QV,u({ownerState:Ne,as:X},We,{className:w(De.paper,null==We?void 0:We.className),children:e}))}));let Ge=null;return Ae.length>0?Ge=He((0,i.jsx)(rH,u({as:U,className:De.listbox,ownerState:Ne},Le,W,{ref:Pe,children:Ae.map(((e,t)=>B?Fe({key:e.key,group:e.group,children:e.options.map(((t,r)=>ze(t,e.index+r)))}):ze(e,t)))}))):q&&0===Ae.length?Ge=He((0,i.jsx)(eH,{className:De.loading,ownerState:Ne,children:V})):0!==Ae.length||P||q||(Ge=He((0,i.jsx)(tH,{className:De.noOptions,ownerState:Ne,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:G}))),(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(ZV,u({ref:t,className:w(De.root,g),ownerState:Ne},le(ae),{children:te({id:be,disabled:R,fullWidth:!0,size:"small"===oe?"small":void 0,InputLabelProps:ue(),InputProps:u({ref:ke,className:De.inputRoot,startAdornment:Be,onClick:e=>{e.target===e.currentTarget&&Ie(e)}},(Ee||Re)&&{endAdornment:(0,i.jsxs)(KV,{className:De.endAdornment,ownerState:Ne,children:[Ee?(0,i.jsx)(XV,u({},pe(),{"aria-label":x,title:x,ownerState:Ne},Ue,{className:w(De.clearIndicator,null==Ue?void 0:Ue.className),children:v})):null,Re?(0,i.jsx)(YV,u({},de(),{disabled:R,"aria-label":xe?_:K,title:xe?_:K,ownerState:Ne},Ve,{className:w(De.popupIndicator,null==Ve?void 0:Ve.className),children:J})):null]})}),inputProps:u({className:De.input,disabled:R,readOnly:Q},ce())})})),_e?Ge:null]})})),sH=oH,aH="MuiAutocomplete-listbox",lH={slotProps:{paper:{elevation:6}}};var cH=s().forwardRef(((e,t)=>{const{renderInput:r,ListboxProps:n={},...i}=e,o={...lH,...i,slotProps:{...lH.slotProps,...i.slotProps,paper:{...lH.slotProps?.paper,...i.slotProps?.paper}}};return s().createElement(sH,{...o,ListboxProps:{...n,className:w([aH,`${aH}Size${a=i.size||"medium",a?a[0].toUpperCase()+a.slice(1):""}`,n.className])},renderInput:t=>r?.(function(e,t){const r=e;return t.size&&(r.size=t.size),r}(t,e)),ref:t});var a}));const uH=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],dH=["component","slots","slotProps"],pH=["component"];function hH(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:a}=t,l=c(t,uH),{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0}}=o,f=c(o,dH),m=p[e]||n,g=Pd(h[e],i),v=Gd(u({className:r},l,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:g})),{props:{component:y},internalRef:b}=v,x=c(v.props,pH),w=bs(b,null==g?void 0:g.ref,t.ref),C=s?s(x):{},_=u({},i,C),k="root"===e?y||d:y,S=Md(m,u({},"root"===e&&!d&&!p[e]&&a,"root"!==e&&!p[e]&&a,x,k&&{as:k},{ref:w}),_);return Object.keys(C).forEach((e=>{delete S[e]})),[m,S]}function fH(e){return Kn("MuiAlert",e)}const mH=No("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),gH=gF((0,i.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),vH=gF((0,i.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),yH=gF((0,i.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),bH=gF((0,i.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),xH=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],wH=tz(),CH=Oi(zo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Bi(r.color||r.severity)}`]]}})((({theme:e})=>{const t="light"===e.palette.mode?ti.darken:ti.lighten,r="light"===e.palette.mode?ti.lighten:ti.darken;return u({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${mH.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${mH.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.dark)).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:u({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})})))]})})),_H=Oi("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),kH=Oi("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),SH=Oi("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),AH={success:(0,i.jsx)(gH,{fontSize:"inherit"}),warning:(0,i.jsx)(vH,{fontSize:"inherit"}),error:(0,i.jsx)(yH,{fontSize:"inherit"}),info:(0,i.jsx)(bH,{fontSize:"inherit"})},EH=o.forwardRef((function(e,t){const r=wH({props:e,name:"MuiAlert"}),{action:n,children:o,className:s,closeText:a="Close",color:l,components:d={},componentsProps:p={},icon:h,iconMapping:f=AH,onClose:m,role:g="alert",severity:v="success",slotProps:y={},slots:b={},variant:x="standard"}=r,_=c(r,xH),k=u({},r,{color:l,severity:v,variant:x,colorSeverity:l||v}),S=(e=>{const{variant:t,color:r,severity:n,classes:i}=e;return C({root:["root",`color${Bi(r||n)}`,`${t}${Bi(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},fH,i)})(k),A={slots:u({closeButton:d.CloseButton,closeIcon:d.CloseIcon},b),slotProps:u({},p,y)},[E,R]=hH("closeButton",{elementType:wa,externalForwardedProps:A,ownerState:k}),[I,O]=hH("closeIcon",{elementType:FV,externalForwardedProps:A,ownerState:k});return(0,i.jsxs)(CH,u({role:g,elevation:0,ownerState:k,className:w(S.root,s),ref:t},_,{children:[!1!==h?(0,i.jsx)(_H,{ownerState:k,className:S.icon,children:h||f[v]||AH[v]}):null,(0,i.jsx)(kH,{ownerState:k,className:S.message,children:o}),null!=n?(0,i.jsx)(SH,{ownerState:k,className:S.action,children:n}):null,null==n&&m?(0,i.jsx)(SH,{ownerState:k,className:S.action,children:(0,i.jsx)(E,u({size:"small","aria-label":a,title:a,color:"inherit",onClick:m},R,{children:(0,i.jsx)(I,u({fontSize:"small"},O))}))}):null]}))})),RH=Da(EH)((({theme:e,severity:t,color:r,variant:n,ownerState:i})=>{const o="small"===i.size,s=function(e,t,r,n){const i=t||e;return i?"filled"===r?{"& .MuiButton-containedInherit:not(.Mui-disabled)":{color:n.palette[i].main,backgroundColor:"rgba(255, 255, 255, 1)","&:hover":{backgroundColor:"rgba(255, 255, 255, .96)"}},"& .MuiButton-outlinedInherit:not(.Mui-disabled):hover":{backgroundColor:n.palette[i].dark},"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)":{[Ca]:{color:n.palette[i].main}}}:{"&.MuiAlert-root":{color:n.palette.text.secondary},"& .MuiCloseButton-root":{color:n.palette.action.active},"& .MuiButton-containedInherit:not(.Mui-disabled)":{backgroundColor:n.palette[i].main,color:n.palette[i].contrastText,"&:hover":{backgroundColor:n.palette[i].dark,color:n.palette[i].contrastText}},"& .MuiButton-outlinedInherit:not(.Mui-disabled)":{borderColor:n.palette[i].main,color:n.palette[i].main,"&:hover":{backgroundColor:ho(n.palette[i].main,.08),color:n.palette[i].main}},"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)":{[Ca]:{color:n.palette[i].contrastText}},"& a.MuiButtonBase-root.MuiButton-outlinedInherit:not(.Mui-disabled)":{[Ca]:{color:n.palette[i].main}}}:{}}(t,r,n,e),a=function(e,t){return"small"!==e.size?{}:{"& .MuiButtonBase-root.MuiButton-root":{fontSize:t.typography.caption.fontSize,letterSpacing:t.typography.caption.letterSpacing,lineHeight:1},"& .MuiButtonBase-root.MuiButton-contained":{padding:"8px 9px"},"& .MuiButtonBase-root.MuiButton-outlined":{padding:"7px 9px"}}}(i,e),l=o?{...e.typography.caption,fontWeight:e.typography.subtitle2.fontWeight,lineHeight:e.typography.subtitle2.lineHeight}:e.typography.subtitle2,c=o?{...e.typography.caption,lineHeight:e.typography.body2.lineHeight}:{};return{borderRadius:i.square?void 0:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],padding:o?e.spacing(1.5):e.spacing(1.5,2),"& .MuiAlert-message":{width:"100%",padding:0,minHeight:o?"28px":"31px",display:"flex",flexDirection:"row",flexWrap:"wrap",gap:o?e.spacing(1):e.spacing(1.5),...c},"& .MuiAlertTitle-root":{marginBottom:0,lineHeight:"inherit",marginRight:o?e.spacing(.25):e.spacing(.5),marginTop:0,...l},"& .MuiAlert-icon":{fontSize:o?"18px":"22px",padding:o?e.spacing(.25):0,paddingTop:o?"5px":e.spacing(.5),marginRight:o?e.spacing(.5):e.spacing(1.5)},"& .MuiAlert-action":{padding:o?e.spacing(.25,0,0):0,marginLeft:o?e.spacing(.5):e.spacing(1)},"&.MuiAlert-filledWarning":{color:e.palette.common.white},...a,...s}})),{slots:IH,classNames:OH}=Ta("Alert",["actions","content"]),MH=Da("div",IH.content)((()=>({flexGrow:1,paddingTop:"6px"}))),TH=Da("div",IH.content)((({theme:e})=>({alignItems:"center",display:"flex",flexWrap:"wrap",gap:e.spacing(.25),maxWidth:"800px"}))),LH=({children:e,...t})=>s().createElement(MH,{...t},s().createElement(TH,null,e)),PH=Da("div")((({theme:e,ownerState:t})=>({display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:"small"===t.size?e.spacing(.5):e.spacing(1)}))),jH={closeText:"Close",severity:"success",size:"medium"},NH=s().forwardRef(((e,t)=>{const{onClose:r,action:n,secondaryAction:i,children:o,size:a,...l}={...jH,...e},c=Boolean(n||i);return s().createElement(RH,{iconMapping:{success:s().createElement(BH,null),error:s().createElement($H,null),info:s().createElement(FH,null),warning:s().createElement(zH,null)},...l,ref:t,action:!!r&&s().createElement(xW,{color:"inherit",onClick:r,slotProps:{icon:{fontSize:"small"===a?"tiny":"small"}},title:l.closeText,"aria-label":l.closeText}),ownerState:{size:a,square:l.square}},s().createElement(LH,{className:OH.content},o),c&&s().createElement(PH,{className:OH.actions,ownerState:{size:a}},i,n))}));NH.defaultProps=jH;var DH=NH;function BH(){return s().createElement(lc,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C10.7196 2.25 9.45176 2.50219 8.26884 2.99217C7.08591 3.48216 6.01108 4.20034 5.10571 5.10571C4.20034 6.01108 3.48216 7.08591 2.99217 8.26884C2.50219 9.45176 2.25 10.7196 2.25 12C2.25 13.2804 2.50219 14.5482 2.99217 15.7312C3.48216 16.9141 4.20034 17.9889 5.10571 18.8943C6.01108 19.7997 7.08591 20.5178 8.26884 21.0078C9.45176 21.4978 10.7196 21.75 12 21.75C13.2804 21.75 14.5482 21.4978 15.7312 21.0078C16.9141 20.5178 17.9889 19.7997 18.8943 18.8943C19.7997 17.9889 20.5178 16.9141 21.0078 15.7312C21.4978 14.5482 21.75 13.2804 21.75 12C21.75 10.7196 21.4978 9.45176 21.0078 8.26884C20.5178 7.08591 19.7997 6.01108 18.8943 5.10571C17.9889 4.20034 16.9141 3.48216 15.7312 2.99217C14.5482 2.50219 13.2804 2.25 12 2.25ZM16.2415 10.0563C16.5344 9.76339 16.5344 9.28852 16.2415 8.99563C15.9486 8.70273 15.4737 8.70273 15.1809 8.99563L10.7631 13.4134L8.81939 11.4697C8.5265 11.1768 8.05163 11.1768 7.75873 11.4697C7.46584 11.7626 7.46584 12.2374 7.75873 12.5303L10.2328 15.0044C10.3734 15.145 10.5642 15.224 10.7631 15.224C10.962 15.224 11.1528 15.145 11.2934 15.0044L16.2415 10.0563Z"}))}function FH(){return s().createElement(lc,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM10.75 10C10.3358 10 10 10.3358 10 10.75C10 11.1642 10.3358 11.5 10.75 11.5H11V15.75C11 16.1642 11.3358 16.5 11.75 16.5H12.75C13.1642 16.5 13.5 16.1642 13.5 15.75C13.5 15.3358 13.1642 15 12.75 15H12.5V10.75C12.5 10.3618 12.2051 10.0425 11.8271 10.0039L11.75 10H10.75ZM11.4502 6.75C10.8979 6.75 10.4502 7.19772 10.4502 7.75C10.4502 8.30228 10.8979 8.75 11.4502 8.75H11.46L11.5625 8.74512C12.0666 8.69378 12.46 8.26767 12.46 7.75C12.46 7.23233 12.0666 6.80622 11.5625 6.75488L11.46 6.75H11.4502Z"}))}function $H(){return s().createElement(lc,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0498 2C15.2873 2 15.5191 2.04048 15.7422 2.13965C15.962 2.23735 16.136 2.37531 16.2803 2.51953L20.9805 7.21973C21.1247 7.36397 21.2627 7.53802 21.3604 7.75781C21.4595 7.98094 21.5 8.21268 21.5 8.4502V15.0498C21.5 15.2873 21.4595 15.5191 21.3604 15.7422C21.2627 15.962 21.1247 16.136 20.9805 16.2803L16.2803 20.9805C16.136 21.1247 15.962 21.2627 15.7422 21.3604C15.5191 21.4595 15.2873 21.5 15.0498 21.5H8.4502C8.21268 21.5 7.98094 21.4595 7.75781 21.3604C7.53802 21.2627 7.36397 21.1247 7.21973 20.9805L2.51953 16.2803C2.37531 16.136 2.23735 15.962 2.13965 15.7422C2.04048 15.5191 2 15.2873 2 15.0498V8.4502C2 8.21268 2.04048 7.98094 2.13965 7.75781C2.23735 7.53802 2.37531 7.36397 2.51953 7.21973L7.21973 2.51953C7.36397 2.37531 7.53802 2.23735 7.75781 2.13965C7.98094 2.04048 8.21268 2 8.4502 2H15.0498ZM11.75 14.75C11.1977 14.75 10.75 15.1977 10.75 15.75C10.75 16.3023 11.1977 16.75 11.75 16.75H11.7598L11.8623 16.7451C12.3665 16.6939 12.7598 16.2678 12.7598 15.75C12.7598 15.2322 12.3665 14.8061 11.8623 14.7549L11.7598 14.75H11.75ZM11.75 7C11.3358 7 11 7.33579 11 7.75V12.75C11 13.1642 11.3358 13.5 11.75 13.5C12.1642 13.5 12.5 13.1642 12.5 12.75V7.75C12.5 7.33579 12.1642 7 11.75 7Z"}))}function zH(){return s().createElement(lc,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9302 3.00684C12.3573 3.03542 12.7729 3.16362 13.1431 3.38184C13.5618 3.6287 13.9074 3.98244 14.1451 4.40625L21.2456 16.6562L21.2915 16.751C21.4597 17.1668 21.524 17.6183 21.4781 18.0645C21.432 18.5106 21.2773 18.9397 21.0279 19.3125C20.7784 19.685 20.4411 19.9915 20.0464 20.2041C19.6517 20.4166 19.2105 20.529 18.7622 20.5322L18.7564 20.5332H4.75638C4.73812 20.5332 4.71964 20.5316 4.7017 20.5303C4.69631 20.5307 4.69052 20.5319 4.6851 20.5322L4.60795 20.5312L4.44388 20.5186C4.06393 20.476 3.69614 20.3543 3.36478 20.1611C2.98591 19.9403 2.66472 19.6317 2.42924 19.2617C2.19395 18.8919 2.051 18.4707 2.01127 18.0342C1.97166 17.5975 2.03678 17.1563 2.2017 16.75L2.2476 16.6562L9.34721 4.40625C9.58473 3.98261 9.93165 3.62868 10.3501 3.38184C10.7731 3.13252 11.2556 3.00006 11.7466 3L11.9302 3.00684ZM11.7574 15.7822C11.2051 15.7822 10.7574 16.2299 10.7574 16.7822C10.7574 17.3345 11.2051 17.7822 11.7574 17.7822H11.7671L11.8697 17.7773C12.3737 17.7259 12.7671 17.2998 12.7671 16.7822C12.7671 16.2647 12.3737 15.8386 11.8697 15.7871L11.7671 15.7822H11.7574ZM11.7564 8.0332C11.3424 8.03352 11.0064 8.36919 11.0064 8.7832V13.7832C11.0069 14.1968 11.3428 14.5329 11.7564 14.5332C12.1702 14.5332 12.5059 14.1969 12.5064 13.7832V8.7832C12.5064 8.36902 12.1706 8.03325 11.7564 8.0332Z"}))}const{slots:UH,classNames:WH}=Ta("AlertAction",["root"]),qH=Da(tu,UH.root)({}),VH={color:"inherit",variant:"outlined"},HH=s().forwardRef(((e,t)=>{const r=Di({props:{...VH,...e},name:UH.root.name});return s().createElement(qH,{...r,size:"small",ref:t,className:w([[WH.root,r.className]]),ownerState:r})}));HH.defaultProps=VH;var GH=HH;function ZH(e){return Kn("MuiSnackbarContent",e)}No("MuiSnackbarContent",["root","message","action"]);const KH=["action","className","message","role"],XH=Oi(zo,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,r=ti.emphasize(e.palette.background.default,t);return u({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,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}})})),YH=Oi("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),JH=Oi("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),QH=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:s,role:a="alert"}=r,l=c(r,KH),d=r,p=(e=>{const{classes:t}=e;return C({root:["root"],action:["action"],message:["message"]},ZH,t)})(d);return(0,i.jsxs)(XH,u({role:a,square:!0,elevation:6,className:w(p.root,o),ownerState:d,ref:t},l,{children:[(0,i.jsx)(YH,{className:p.message,ownerState:d,children:s}),n?(0,i.jsx)(JH,{className:p.action,ownerState:d,children:n}):null]}))})),eG=QH;function tG(e){return Kn("MuiSnackbar",e)}No("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const rG=["onEnter","onExited"],nG=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],iG=Oi("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Bi(r.anchorOrigin.vertical)}${Bi(r.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>u({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")]:u({},"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"})}))),oG=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiSnackbar"}),n=jo(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:h,className:f,ClickAwayListenerProps:m,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:b,TransitionComponent:x=mp,transitionDuration:w=s,TransitionProps:{onEnter:_,onExited:k}={}}=r,S=c(r.TransitionProps,rG),A=c(r,nG),E=u({},r,{anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:p,disableWindowBlurListener:v,TransitionComponent:x,transitionDuration:w}),R=(e=>{const{classes:t,anchorOrigin:r}=e;return C({root:["root",`anchorOrigin${Bi(r.vertical)}${Bi(r.horizontal)}`]},tG,t)})(E),{getRootProps:I,onClickAway:O}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:i,resumeHideDuration:s}=e,a=Ss();o.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}}),[i,n]);const l=ws(((e,t)=>{null==n||n(e,t)})),c=ws((e=>{n&&null!=e&&a.start(e,(()=>{l(null,"timeout")}))}));o.useEffect((()=>(i&&c(t),a.clear)),[i,t,c,a]);const d=a.clear,p=o.useCallback((()=>{null!=t&&c(null!=s?s:.5*t)}),[t,s,c]),h=e=>t=>{const r=e.onFocus;null==r||r(t),d()},f=e=>t=>{const r=e.onMouseEnter;null==r||r(t),d()},m=e=>t=>{const r=e.onMouseLeave;null==r||r(t),p()};return o.useEffect((()=>{if(!r&&i)return window.addEventListener("focus",p),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",d)}}),[r,i,p,d]),{getRootProps:(t={})=>{const r=u({},Ld(e),Ld(t));return u({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),p()}),onFocus:h(r),onMouseEnter:f(r),onMouseLeave:m(r)});var n},onClickAway:e=>{null==n||n(e,"clickaway")}}}(u({},E)),[M,T]=o.useState(!0),L=Kd({elementType:iG,getSlotProps:I,externalForwardedProps:A,ownerState:E,additionalProps:{ref:t},className:[R.root,f]});return!b&&M?null:(0,i.jsx)(PW,u({onClickAway:O},m,{children:(0,i.jsx)(iG,u({},L,{children:(0,i.jsx)(x,u({appear:!0,in:b,timeout:w,direction:"top"===l?"down":"up",onEnter:(e,t)=>{T(!1),_&&_(e,t)},onExited:e=>{T(!0),k&&k(e)}},S,{children:h||(0,i.jsx)(eG,u({message:y,action:a},g))}))}))}))})),sG=oG;var aG=s().forwardRef(((e,t)=>s().createElement(sG,{...e,ref:t})));const lG=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],cG=Oi(RV,{shouldForwardProp:e=>Ii(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...AV(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),u({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"},[`&.${PV.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${PV.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${PV.disabled}, .${PV.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${PV.disabled}:before`]:{borderBottomStyle:"dotted"}})})),uG=Oi(IV,{name:"MuiInput",slot:"Input",overridesResolver:EV})({}),dG=o.forwardRef((function(e,t){var r,n,o,s;const a=Di({props:e,name:"MuiInput"}),{disableUnderline:l,components:d={},componentsProps:p,fullWidth:h=!1,inputComponent:f="input",multiline:m=!1,slotProps:g,slots:v={},type:y="text"}=a,b=c(a,lG),x=(e=>{const{classes:t,disableUnderline:r}=e;return u({},t,C({root:["root",!r&&"underline"],input:["input"]},LV,t))})(a),w={root:{ownerState:{disableUnderline:l}}},_=(null!=g?g:p)?Vn(null!=g?g:p,w):w,k=null!=(r=null!=(n=v.root)?n:d.Root)?r:cG,S=null!=(o=null!=(s=v.input)?s:d.Input)?o:uG;return(0,i.jsx)(TV,u({slots:{root:k,input:S},slotProps:_,fullWidth:h,inputComponent:f,multiline:m,ref:t,type:y},b,{classes:x}))}));dG.muiName="Input";const pG=dG,hG=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fG=Oi(RV,{shouldForwardProp:e=>Ii(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...AV(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return u({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${BV.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${BV.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${BV.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${BV.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,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(.${BV.disabled}, .${BV.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${BV.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&u({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),mG=Oi(IV,{name:"MuiFilledInput",slot:"Input",overridesResolver:EV})((({theme:e,ownerState:t})=>u({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),gG=o.forwardRef((function(e,t){var r,n,o,s;const a=Di({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:f=!1,slotProps:m,slots:g={},type:v="text"}=a,y=c(a,hG),b=u({},a,{fullWidth:p,inputComponent:h,multiline:f,type:v}),x=(e=>{const{classes:t,disableUnderline:r}=e;return u({},t,C({root:["root",!r&&"underline"],input:["input"]},DV,t))})(a),w={root:{ownerState:b},input:{ownerState:b}},_=(null!=m?m:d)?Vn(w,null!=m?m:d):w,k=null!=(r=null!=(n=g.root)?n:l.Root)?r:fG,S=null!=(o=null!=(s=g.input)?s:l.Input)?o:mG;return(0,i.jsx)(TV,u({slots:{root:k,input:S},componentsProps:_,fullWidth:p,inputComponent:h,multiline:f,ref:t,type:v},y,{classes:x}))}));gG.muiName="Input";const vG=gG;var yG;const bG=["children","classes","className","label","notched"],xG=Oi("fieldset",{shouldForwardProp:Ii})({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%"}),wG=Oi("legend",{shouldForwardProp:Ii})((({ownerState:e,theme:t})=>u({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&u({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})))),CG=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],_G=Oi(RV,{shouldForwardProp:e=>Ii(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:AV})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return u({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${NV.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${NV.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${NV.focused} .${NV.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${NV.error} .${NV.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${NV.disabled} .${NV.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&u({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),kG=Oi((function(e){const{className:t,label:r,notched:n}=e,o=c(e,bG),s=null!=r&&""!==r,a=u({},e,{notched:n,withLabel:s});return(0,i.jsx)(xG,u({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,i.jsx)(wG,{ownerState:a,children:s?(0,i.jsx)("span",{children:r}):yG||(yG=(0,i.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}})),SG=Oi(IV,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:EV})((({theme:e,ownerState:t})=>u({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}))),AG=o.forwardRef((function(e,t){var r,n,s,a,l;const d=Di({props:e,name:"MuiOutlinedInput"}),{components:p={},fullWidth:h=!1,inputComponent:f="input",label:m,multiline:g=!1,notched:v,slots:y={},type:b="text"}=d,x=c(d,CG),w=(e=>{const{classes:t}=e;return u({},t,C({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jV,t))})(d),_=dW(),k=CV({props:d,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=u({},d,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:_,fullWidth:h,hiddenLabel:k.hiddenLabel,multiline:g,size:k.size,type:b}),A=null!=(r=null!=(n=y.root)?n:p.Root)?r:_G,E=null!=(s=null!=(a=y.input)?a:p.Input)?s:SG;return(0,i.jsx)(TV,u({slots:{root:A,input:E},renderSuffix:e=>(0,i.jsx)(kG,{ownerState:S,className:w.notchedOutline,label:null!=m&&""!==m&&k.required?l||(l=(0,i.jsxs)(o.Fragment,{children:[m," ","*"]})):m,notched:void 0!==v?v:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:h,inputComponent:f,multiline:g,ref:t,type:b},x,{classes:u({},w,{notchedOutline:null})}))}));AG.muiName="Input";const EG=AG;function RG(e){return Kn("MuiFormLabel",e)}const IG=No("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),OG=["children","className","color","component","disabled","error","filled","focused","required"],MG=Oi("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>u({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>u({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${IG.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${IG.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${IG.error}`]:{color:(e.vars||e).palette.error.main}}))),TG=Oi("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${IG.error}`]:{color:(e.vars||e).palette.error.main}}))),LG=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:s="label"}=r,a=c(r,OG),l=CV({props:r,muiFormControl:dW(),states:["color","required","focused","disabled","error","filled"]}),d=u({},r,{color:l.color||"primary",component:s,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),p=(e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:s,required:a}=e;return C({root:["root",`color${Bi(r)}`,i&&"disabled",o&&"error",s&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]},RG,t)})(d);return(0,i.jsxs)(MG,u({as:s,ownerState:d,className:w(p.root,o),ref:t},a,{children:[n,l.required&&(0,i.jsxs)(TG,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))})),PG=LG;function jG(e){return Kn("MuiInputLabel",e)}No("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const NG=["disableAnimation","margin","shrink","variant","className"],DG=Oi(PG,{shouldForwardProp:e=>Ii(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${IG.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((({theme:e,ownerState:t})=>u({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&&u({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&&u({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&&u({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),BG=o.forwardRef((function(e,t){const r=Di({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:s}=r,a=c(r,NG),l=dW();let d=o;void 0===d&&l&&(d=l.filled||l.focused||l.adornedStart);const p=CV({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),h=u({},r,{disableAnimation:n,formControl:l,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),f=(e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:s,required:a}=e;return u({},t,C({root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&"normal"!==n&&`size${Bi(n)}`,s],asterisk:[a&&"asterisk"]},jG,t))})(h);return(0,i.jsx)(DG,u({"data-shrink":d,ownerState:h,ref:t,className:w(f.root,s)},a,{classes:f}))})),FG=BG;function $G(e){return Kn("MuiFormHelperText",e)}const zG=No("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var UG;const WG=["children","className","component","disabled","error","filled","focused","margin","required","variant"],qG=Oi("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Bi(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>u({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${zG.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${zG.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),VG=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:s="p"}=r,a=c(r,WG),l=CV({props:r,muiFormControl:dW(),states:["variant","size","disabled","error","filled","focused","required"]}),d=u({},r,{component:s,contained:"filled"===l.variant||"outlined"===l.variant,variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),p=(e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:s,focused:a,required:l}=e;return C({root:["root",i&&"disabled",o&&"error",n&&`size${Bi(n)}`,r&&"contained",a&&"focused",s&&"filled",l&&"required"]},$G,t)})(d);return(0,i.jsx)(qG,u({as:s,ownerState:d,className:w(p.root,o),ref:t},a,{children:" "===n?UG||(UG=(0,i.jsx)("span",{className:"notranslate",children:"​"})):n}))})),HG=VG;function GG(e){return Kn("MuiNativeSelect",e)}const ZG=No("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),KG=["className","disabled","error","IconComponent","inputRef","variant"],XG=({ownerState:e,theme:t})=>u({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":u({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ZG.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),YG=Oi("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ii,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ZG.multiple}`]:t.multiple}]}})(XG),JG=({ownerState:e,theme:t})=>u({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ZG.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),QG=Oi("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Bi(r.variant)}`],r.open&&t.iconOpen]}})(JG),eZ=o.forwardRef((function(e,t){const{className:r,disabled:n,error:s,IconComponent:a,inputRef:l,variant:d="standard"}=e,p=c(e,KG),h=u({},e,{disabled:n,variant:d,error:s}),f=(e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:s}=e;return C({select:["select",r,n&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Bi(r)}`,o&&"iconOpen",n&&"disabled"]},GG,t)})(h);return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(YG,u({ownerState:h,className:w(f.select,r),disabled:n,ref:l||t},p)),e.multiple?null:(0,i.jsx)(QG,{as:a,ownerState:h,className:f.icon})]})})),tZ=eZ;function rZ(e){return Kn("MuiSelect",e)}const nZ=No("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var iZ;const oZ=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],sZ=Oi("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${nZ.select}`]:t.select},{[`&.${nZ.select}`]:t[r.variant]},{[`&.${nZ.error}`]:t.error},{[`&.${nZ.multiple}`]:t.multiple}]}})(XG,{[`&.${nZ.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),aZ=Oi("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Bi(r.variant)}`],r.open&&t.iconOpen]}})(JG),lZ=Oi("input",{shouldForwardProp:e=>Ri(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 cZ(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function uZ(e){return null==e||"string"==typeof e&&!e.trim()}const dZ=o.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":s,autoFocus:a,autoWidth:l,children:d,className:p,defaultOpen:h,defaultValue:f,disabled:m,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:b,labelId:x,MenuProps:_={},multiple:k,name:S,onBlur:A,onChange:E,onClose:R,onFocus:I,onOpen:O,open:M,readOnly:T,renderValue:L,SelectDisplayProps:P={},tabIndex:j,value:N,variant:D="standard"}=e,B=c(e,oZ),[F,$]=Wd({controlled:N,default:f,name:"Select"}),[z,U]=Wd({controlled:M,default:h,name:"Select"}),W=o.useRef(null),q=o.useRef(null),[V,H]=o.useState(null),{current:G}=o.useRef(null!=M),[Z,K]=o.useState(),X=bs(t,b),Y=o.useCallback((e=>{q.current=e,e&&H(e)}),[]),J=null==V?void 0:V.parentNode;o.useImperativeHandle(X,(()=>({focus:()=>{q.current.focus()},node:W.current,value:F})),[F]),o.useEffect((()=>{h&&z&&V&&!G&&(K(l?null:J.clientWidth),q.current.focus())}),[V,l]),o.useEffect((()=>{a&&q.current.focus()}),[a]),o.useEffect((()=>{if(!x)return;const e=Bd(q.current).getElementById(x);if(e){const t=()=>{getSelection().isCollapsed&&q.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[x]);const Q=(e,t)=>{e?O&&O(t):R&&R(t),G||(K(l?null:J.clientWidth),U(e))},ee=o.Children.toArray(d),te=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(k){r=Array.isArray(F)?F.slice():[];const t=F.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),F!==r&&($(r),E)){const n=t.nativeEvent||t,i=new n.constructor(n.type,n);Object.defineProperty(i,"target",{writable:!0,value:{value:r,name:S}}),E(i,e)}k||Q(!1,t)}},re=null!==V&&z;let ne,ie;delete B["aria-invalid"];const oe=[];let se=!1,ae=!1;(iW({value:F})||g)&&(L?ne=L(F):se=!0);const le=ee.map((e=>{if(!o.isValidElement(e))return null;let t;if(k){if(!Array.isArray(F))throw new Error(Un(2));t=F.some((t=>cZ(t,e.props.value))),t&&se&&oe.push(e.props.children)}else t=cZ(F,e.props.value),t&&se&&(ie=e.props.children);return t&&(ae=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:te(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));se&&(ne=k?0===oe.length?null:oe.reduce(((e,t,r)=>(e.push(t),r<oe.length-1&&e.push(", "),e)),[]):ie);let ce,ue=Z;!l&&G&&V&&(ue=J.clientWidth),ce=void 0!==j?j:m?null:0;const de=P.id||(S?`mui-component-select-${S}`:void 0),pe=u({},e,{variant:D,value:F,open:re,error:v}),he=(e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:s}=e;return C({select:["select",r,n&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Bi(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},rZ,t)})(pe),fe=u({},_.PaperProps,null==(r=_.slotProps)?void 0:r.paper),me=Ud();return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(sZ,u({ref:Y,tabIndex:ce,role:"combobox","aria-controls":me,"aria-disabled":m?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[x,de].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{T||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Q(!0,e))},onMouseDown:m||T?null:e=>{0===e.button&&(e.preventDefault(),q.current.focus(),Q(!0,e))},onBlur:e=>{!re&&A&&(Object.defineProperty(e,"target",{writable:!0,value:{value:F,name:S}}),A(e))},onFocus:I},P,{ownerState:pe,className:w(P.className,he.select,p),id:de,children:uZ(ne)?iZ||(iZ=(0,i.jsx)("span",{className:"notranslate",children:"​"})):ne})),(0,i.jsx)(lZ,u({"aria-invalid":v,value:Array.isArray(F)?F.join(","):F,name:S,ref:W,"aria-hidden":!0,onChange:e=>{const t=ee.find((t=>t.props.value===e.target.value));void 0!==t&&($(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:m,className:he.nativeInput,autoFocus:a,ownerState:pe},B)),(0,i.jsx)(aZ,{as:y,className:he.icon,ownerState:pe}),(0,i.jsx)(lh,u({id:`menu-${S||""}`,anchorEl:J,open:re,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:u({"aria-labelledby":x,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:me},_.MenuListProps),slotProps:u({},_.slotProps,{paper:u({},fe,{style:u({minWidth:ue},null!=fe?fe.style:null)})}),children:le}))]})})),pZ=dZ,hZ=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],fZ=["root"],mZ={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ii(e)&&"variant"!==e,slot:"Root"},gZ=Oi(pG,mZ)(""),vZ=Oi(EG,mZ)(""),yZ=Oi(vG,mZ)(""),bZ=o.forwardRef((function(e,t){const r=Di({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:s,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:h=$V,id:f,input:m,inputProps:g,label:v,labelId:y,MenuProps:b,multiple:x=!1,native:C=!1,onClose:_,onOpen:k,open:S,renderValue:A,SelectDisplayProps:E,variant:R="outlined"}=r,I=c(r,hZ),O=C?tZ:pZ,M=CV({props:r,muiFormControl:dW(),states:["variant","error"]}),T=M.variant||R,L=u({},r,{variant:T,classes:a}),P=(e=>{const{classes:t}=e;return t})(L),j=c(P,fZ),N=m||{standard:(0,i.jsx)(gZ,{ownerState:L}),outlined:(0,i.jsx)(vZ,{label:v,ownerState:L}),filled:(0,i.jsx)(yZ,{ownerState:L})}[T],D=bs(t,N.ref);return(0,i.jsx)(o.Fragment,{children:o.cloneElement(N,u({inputComponent:O,inputProps:u({children:s,error:M.error,IconComponent:h,variant:T,type:void 0,multiple:x},C?{id:f}:{autoWidth:n,defaultOpen:d,displayEmpty:p,labelId:y,MenuProps:b,onClose:_,onOpen:k,open:S,renderValue:A,SelectDisplayProps:u({id:f},E)},g,{classes:g?Vn(j,g.classes):j},m?m.props.inputProps:{})},(x&&C||p)&&"outlined"===T?{notched:!0}:{},{ref:D,className:w(N.props.className,l,P.root)},!m&&{variant:T},I))})}));bZ.muiName="Select";const xZ=bZ;function wZ(e){return Kn("MuiTextField",e)}No("MuiTextField",["root"]);const CZ=["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"],_Z={standard:pG,filled:vG,outlined:EG},kZ=Oi(uW,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SZ=o.forwardRef((function(e,t){const r=Di({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:s,className:a,color:l="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:y,inputProps:b,InputProps:x,inputRef:_,label:k,maxRows:S,minRows:A,multiline:E=!1,name:R,onBlur:I,onChange:O,onFocus:M,placeholder:T,required:L=!1,rows:P,select:j=!1,SelectProps:N,type:D,value:B,variant:F="outlined"}=r,$=c(r,CZ),z=u({},r,{autoFocus:o,color:l,disabled:p,error:h,fullWidth:m,multiline:E,required:L,select:j,variant:F}),U=(e=>{const{classes:t}=e;return C({root:["root"]},wZ,t)})(z),W={};"outlined"===F&&(y&&void 0!==y.shrink&&(W.notched=y.shrink),W.label=k),j&&(N&&N.native||(W.id=void 0),W["aria-describedby"]=void 0);const q=Ud(v),V=g&&q?`${q}-helper-text`:void 0,H=k&&q?`${q}-label`:void 0,G=(0,i.jsx)(_Z[F],u({"aria-describedby":V,autoComplete:n,autoFocus:o,defaultValue:d,fullWidth:m,multiline:E,name:R,rows:P,maxRows:S,minRows:A,type:D,value:B,id:q,inputRef:_,onBlur:I,onChange:O,onFocus:M,placeholder:T,inputProps:b},W,x));return(0,i.jsxs)(kZ,u({className:w(U.root,a),disabled:p,error:h,fullWidth:m,ref:t,required:L,color:l,variant:F,ownerState:z},$,{children:[null!=k&&""!==k&&(0,i.jsx)(FG,u({htmlFor:q,id:H},y,{children:k})),j?(0,i.jsx)(xZ,u({"aria-describedby":V,id:q,labelId:H,value:B,input:G},N,{children:s})):G,g&&(0,i.jsx)(HG,u({id:V},f,{children:g}))]}))})),AZ=SZ,EZ=s().forwardRef(((e,t)=>s().createElement(lc,{viewBox:"0 0 24 24",...e,ref:t},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 9.21967C5.76256 8.92678 6.23744 8.92678 6.53033 9.21967L12 14.6893L17.4697 9.21967C17.7626 8.92678 18.2374 8.92678 18.5303 9.21967C18.8232 9.51256 18.8232 9.98744 18.5303 10.2803L12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L5.46967 10.2803C5.17678 9.98744 5.17678 9.51256 5.46967 9.21967Z"}))));s().forwardRef(((e,t)=>{const{MenuProps:r={},...n}=e;return s().createElement(xZ,{...n,MenuProps:{...r,MenuListProps:{dense:"tiny"===n.size,...r.MenuListProps||{}}},ref:t})})).defaultProps={IconComponent:EZ};const RZ=s().forwardRef(((e,t)=>{const{enableCounter:r,...n}=e,[i,o]=s().useState(0),a=s().useRef(null),l={...n};l.select&&(l.SelectProps={IconComponent:EZ,...l.SelectProps||{}},"tiny"===l.size&&(l.SelectProps.MenuProps={...l.SelectProps?.MenuProps||{},MenuListProps:{dense:!0,...l.SelectProps?.MenuProps?.MenuListProps||{}}})),"tiny"===l.size&&(l.InputLabelProps={size:"tiny",...l.InputLabelProps||{}}),r&&(l.inputProps={...l.inputProps||{},maxLength:l.inputProps?.maxLength??100});const c=s().useMemo((()=>r?s().createElement(Qo,{direction:"row",justifyContent:"space-between",gap:1},l.helperText,s().createElement(ms,{variant:"caption",color:"text.secondary",sx:{whiteSpace:"nowrap"}},i," / ",l.inputProps?.maxLength??0)):l.helperText),[i,r,l.helperText,l.inputProps?.maxLength]),u=s().useCallback((e=>{a.current=e;const t=l.inputRef;"function"==typeof t?t(e):t&&(t.current=e)}),[l.inputRef]);return s().useEffect((()=>{if(!r)return;const e=a.current;if(!e)return;const t=()=>{void 0===l.value||null===l.value||"string"==typeof l.value?o(e.value.length):o(0)};return t(),e.addEventListener("input",t),()=>e.removeEventListener("input",t)}),[r,l.value]),s().createElement(AZ,{...l,helperText:c,inputRef:u,ref:t})})),IZ=Da(RZ)`
	width: 100%;

	.wp-admin & .MuiInputBase-input,
	& .MuiInputBase-input:focus {
		background-color: inherit;
		border: unset;
		box-shadow: none;
		min-height: initial;
		color: inherit;
		outline: 0;
		padding: ${({$isWrapped:e,$noPadding:t,theme:r})=>t?"0":e?`${r.spacing(1)} ${r.spacing(.5)}`:`${r.spacing(2)} ${r.spacing(1.5)}`};
	}
`,OZ=({isWrapped:e,noPadding:t,...r})=>(0,i.jsx)(IZ,{...r,$isWrapped:e,$noPadding:t});var MZ=function(e){return e.EN="en",e.DE="de",e.ES="es",e.IT="it",e.NL="nl",e.PT="pt-PT",e.PT_BR="pt-BR",e.FR="fr",e.HE="he-IL",e}({});const TZ=({open:e,onClose:t,colorScheme:r="light"})=>{const{t:n}=gd("send-feedback",{i18n:jh}),{SUPPORT_FORM_URL:a}=eF(),{control:l,handleSubmit:c,reset:u,formState:{isValid:d}}=function(e={}){const t=s().useRef(void 0),r=s().useRef(void 0),[n,i]=s().useState({isDirty:!1,isValidating:!1,isLoading:Zz(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Zz(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Zz(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...i}=function(e={}){let t,r={...kU,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Zz(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},i={},o=(gz(r.defaultValues)||gz(r.values))&&xz(r.defaultValues||r.values)||{},s=r.shouldUnregister?{}:xz(o),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const p={array:Vz(),state:Vz()},h=r.criteriaMode===Mz,f=async e=>{if(!r.disabled&&(u.isValid||d.isValid||e)){const e=r.resolver?Hz((await y()).errors):await b(i,!0);e!==n.isValid&&p.state.next({isValid:e})}},m=(e,t)=>{!r.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((e||Array.from(l.mount)).forEach((e=>{e&&(t?Ez(n.validatingFields,e,t):Qz(n.validatingFields,e))})),p.state.next({validatingFields:n.validatingFields,isValidating:!Hz(n.validatingFields)}))},g=(e,t,r,n)=>{const l=Sz(i,e);if(l){const i=Sz(s,e,Cz(r)?Sz(o,e):r);Cz(i)||n&&n.defaultChecked||t?Ez(s,e,t?i:uU(l._f)):C(e,i),a.mount&&f()}},v=(e,t,i,s,a)=>{let l=!1,c=!1;const h={name:e};if(!r.disabled){if(!i||s){(u.isDirty||d.isDirty)&&(c=n.isDirty,n.isDirty=h.isDirty=x(),l=c!==h.isDirty);const r=zz(Sz(o,e),t);c=!!Sz(n.dirtyFields,e),r?Qz(n.dirtyFields,e):Ez(n.dirtyFields,e,!0),h.dirtyFields=n.dirtyFields,l=l||(u.dirtyFields||d.dirtyFields)&&c!==!r}if(i){const t=Sz(n.touchedFields,e);t||(Ez(n.touchedFields,e,i),h.touchedFields=n.touchedFields,l=l||(u.touchedFields||d.touchedFields)&&t!==i)}l&&a&&p.state.next(h)}return l?h:{}},y=async e=>{m(e,!0);const t=await r.resolver(s,r.context,((e,t,r,n)=>{const i={};for(const r of e){const e=Sz(t,r);e&&Ez(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}})(e||l.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return m(e),t},b=async(e,t,i={valid:!0})=>{for(const o in e){const a=e[o];if(a){const{_f:e,...c}=a;if(e){const c=l.array.has(e.name),d=a._f&&mU(a._f);d&&u.validatingFields&&m([o],!0);const p=await _U(a,l.disabled,s,h,r.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&m([o]),p[e.name]&&(i.valid=!1,t))break;!t&&(Sz(p,e.name)?c?bU(n.errors,p,e.name):Ez(n.errors,e.name,p[e.name]):Qz(n.errors,e.name))}!Hz(c)&&await b(c,t,i)}}return i.valid},x=(e,t)=>!r.disabled&&(e&&t&&Ez(s,e,t),!zz(R(),o)),w=(e,t,r)=>Fz(e,l,{...a.mount?s:Cz(t)?o:Bz(e)?{[e]:t}:t},r,t),C=(e,t,r={})=>{const n=Sz(i,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&Ez(s,e,aU(t,r)),o=Kz(r.ref)&&fz(t)?"":t,Xz(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?pz(r.ref)?r.refs.forEach((e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find((t=>t===e.value)):e.checked=o===e.value||!!o)})):r.refs.forEach((e=>e.checked=e.value===o)):Gz(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||p.state.next({name:e,values:xz(s)})))}(r.shouldDirty||r.shouldTouch)&&v(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&E(e)},_=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const o=t[n],s=e+"."+n,a=Sz(i,s);(l.array.has(e)||gz(o)||a&&!a._f)&&!hz(o)?_(s,o,r):C(s,o,r)}},k=(e,t,r={})=>{const c=Sz(i,e),h=l.array.has(e),f=xz(t);Ez(s,e,f),h?(p.array.next({name:e,values:xz(s)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&r.shouldDirty&&p.state.next({name:e,dirtyFields:nU(o,s),isDirty:x(e,f)})):!c||c._f||fz(f)?C(e,f,r):_(e,f,r),gU(e,l)&&p.state.next({...n,name:e}),p.state.next({name:a.mount?e:void 0,values:xz(s)})},S=async e=>{a.mount=!0;const o=e.target;let g=o.name,x=!0;const w=Sz(i,g),C=e=>{x=Number.isNaN(e)||hz(e)&&isNaN(e.getTime())||zz(e,Sz(s,g,e))},_=hU(r.mode),k=hU(r.reValidateMode);if(w){let a,A;const R=o.type?uU(w._f):vz(e),I=e.type===Rz||"focusout"===e.type,O=!((S=w._f).mount&&(S.required||S.min||S.max||S.maxLength||S.minLength||S.pattern||S.validate)||r.resolver||Sz(n.errors,g)||w._f.deps)||((e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e))(I,Sz(n.touchedFields,g),n.isSubmitted,k,_),M=gU(g,l,I);Ez(s,g,R),I?o&&o.readOnly||(w._f.onBlur&&w._f.onBlur(e),t&&t(0)):w._f.onChange&&w._f.onChange(e);const T=v(g,R,I),L=!Hz(T)||M;if(!I&&p.state.next({name:g,type:e.type,values:xz(s)}),O)return(u.isValid||d.isValid)&&("onBlur"===r.mode?I&&f():I||f()),L&&p.state.next({name:g,...M?{}:T});if(!I&&M&&p.state.next({...n}),r.resolver){const{errors:e}=await y([g]);if(C(R),x){const t=yU(n.errors,i,g),r=yU(e,i,t.name||g);a=r.error,g=r.name,A=Hz(e)}}else m([g],!0),a=(await _U(w,l.disabled,s,h,r.shouldUseNativeValidation))[g],m([g]),C(R),x&&(a?A=!1:(u.isValid||d.isValid)&&(A=await b(i,!0)));x&&(w._f.deps&&E(w._f.deps),((e,i,o,s)=>{const a=Sz(n.errors,e),l=(u.isValid||d.isValid)&&Az(i)&&n.isValid!==i;var h;if(r.delayError&&o?(h=()=>((e,t)=>{Ez(n.errors,e,t),p.state.next({errors:n.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(h,e)},t(r.delayError)):(clearTimeout(c),t=null,o?Ez(n.errors,e,o):Qz(n.errors,e)),(o?!zz(a,o):a)||!Hz(s)||l){const t={...s,...l&&Az(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}})(g,A,a,T))}var S},A=(e,t)=>{if(Sz(n.errors,t)&&e.focus)return e.focus(),1},E=async(e,t={})=>{let o,s;const a=qz(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await y(e);if(e)for(const r of e){const e=Sz(t,r);e?Ez(n.errors,r,e):Qz(n.errors,r)}else n.errors=t;return t})(Cz(e)?e:a);o=Hz(t),s=e?!a.some((e=>Sz(t,e))):o}else e?(s=(await Promise.all(a.map((async e=>{const t=Sz(i,e);return await b(t&&t._f?{[e]:t}:t)})))).every(Boolean),(s||n.isValid)&&f()):s=o=await b(i);return p.state.next({...!Bz(e)||(u.isValid||d.isValid)&&o!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:o}:{},errors:n.errors}),t.shouldFocus&&!s&&vU(i,A,e?a:l.mount),s},R=e=>{const t={...a.mount?s:o};return Cz(e)?t:Bz(e)?Sz(t,e):e.map((e=>Sz(t,e)))},I=(e,t)=>({invalid:!!Sz((t||n).errors,e),isDirty:!!Sz((t||n).dirtyFields,e),error:Sz((t||n).errors,e),isValidating:!!Sz(n.validatingFields,e),isTouched:!!Sz((t||n).touchedFields,e)}),O=(e,t,r)=>{const o=(Sz(i,e,{_f:{}})._f||{}).ref,s=Sz(n.errors,e)||{},{ref:a,message:l,type:c,...u}=s;Ez(n.errors,e,{...u,...t,ref:o}),p.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},M=e=>p.state.subscribe({next:t=>{var r,i,a;r=e.name,i=t.name,a=e.exact,r&&i&&r!==i&&!qz(r).some((e=>e&&(a?e===i:e.startsWith(i)||i.startsWith(e))))||!((e,t,r,n)=>{r(e);const{name:i,...o}=e;return Hz(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||Mz)))})(t,e.formState||u,F,e.reRenderRoot)||e.callback({values:{...s},...n,...t,defaultValues:o})}}).unsubscribe,T=(e,t={})=>{for(const a of e?qz(e):l.mount)l.mount.delete(a),l.array.delete(a),t.keepValue||(Qz(i,a),Qz(s,a)),!t.keepError&&Qz(n.errors,a),!t.keepDirty&&Qz(n.dirtyFields,a),!t.keepTouched&&Qz(n.touchedFields,a),!t.keepIsValidating&&Qz(n.validatingFields,a),!r.shouldUnregister&&!t.keepDefaultValue&&Qz(o,a);p.state.next({values:xz(s)}),p.state.next({...n,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&f()},L=({disabled:e,name:t})=>{(Az(e)&&a.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t))},P=(e,t={})=>{let n=Sz(i,e);const s=Az(t.disabled)||Az(r.disabled);return Ez(i,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),n?L({disabled:Az(t.disabled)?t.disabled:r.disabled,name:e}):g(e,!0,t.value),{...s?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:pU(t.min),max:pU(t.max),minLength:pU(t.minLength),maxLength:pU(t.maxLength),pattern:pU(t.pattern)}:{},name:e,onChange:S,onBlur:S,ref:s=>{if(s){P(e,t),n=Sz(i,e);const r=Cz(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,a=(e=>Yz(e)||pz(e))(r),l=n._f.refs||[];if(a?l.find((e=>e===r)):r===n._f.ref)return;Ez(i,e,{_f:{...n._f,...a?{refs:[...l.filter(Jz),r,...Array.isArray(Sz(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),g(e,!1,void 0,r)}else n=Sz(i,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!yz(l.array,e)||!a.action)&&l.unMount.add(e)}}},j=()=>r.shouldFocusError&&vU(i,A,l.mount),N=(e,t)=>async o=>{let a;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=xz(s);if(p.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await y();n.errors=e,c=xz(t)}else await b(i);if(l.disabled.size)for(const e of l.disabled)Qz(c,e);if(Qz(n.errors,"root"),Hz(n.errors)){p.state.next({errors:{}});try{await e(c,o)}catch(e){a=e}}else t&&await t({...n.errors},o),j(),setTimeout(j);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Hz(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},D=(e,t={})=>{const c=e?xz(e):o,d=xz(c),h=Hz(e),f=h?o:d;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(nU(o,s))]);for(const t of Array.from(e))Sz(n.dirtyFields,t)?Ez(f,t,Sz(s,t)):k(t,Sz(f,t))}else{if(bz&&Cz(e))for(const e of l.mount){const t=Sz(i,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Kz(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of l.mount)k(e,Sz(f,e));else i={}}s=r.shouldUnregister?t.keepDefaultValues?xz(o):{}:xz(f),p.array.next({values:{...f}}),p.state.next({values:{...f}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,a.watch=!!r.shouldUnregister,p.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!h&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||zz(e,o))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&s?nU(o,s):n.dirtyFields:t.keepDefaultValues&&e?nU(o,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},B=(e,t)=>D(Zz(e)?e(s):e,t),F=e=>{n={...n,...e}},$={control:{register:P,unregister:T,getFieldState:I,handleSubmit:N,setError:O,_subscribe:M,_runSchema:y,_focusError:j,_getWatch:w,_getDirty:x,_setValid:f,_setFieldArray:(e,t=[],l,c,h=!0,f=!0)=>{if(c&&l&&!r.disabled){if(a.action=!0,f&&Array.isArray(Sz(i,e))){const t=l(Sz(i,e),c.argA,c.argB);h&&Ez(i,e,t)}if(f&&Array.isArray(Sz(n.errors,e))){const t=l(Sz(n.errors,e),c.argA,c.argB);h&&Ez(n.errors,e,t),((e,t)=>{!_z(Sz(e,t)).length&&Qz(e,t)})(n.errors,e)}if((u.touchedFields||d.touchedFields)&&f&&Array.isArray(Sz(n.touchedFields,e))){const t=l(Sz(n.touchedFields,e),c.argA,c.argB);h&&Ez(n.touchedFields,e,t)}(u.dirtyFields||d.dirtyFields)&&(n.dirtyFields=nU(o,s)),p.state.next({name:e,isDirty:x(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ez(s,e,t)},_setDisabledField:L,_setErrors:e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>_z(Sz(a.mount?s:o,e,r.shouldUnregister?Sz(o,e,[]):[])),_reset:D,_resetDefaultValues:()=>Zz(r.defaultValues)&&r.defaultValues().then((e=>{B(e,r.resetOptions),p.state.next({isLoading:!1})})),_removeUnmounted:()=>{for(const e of l.unMount){const t=Sz(i,e);t&&(t._f.refs?t._f.refs.every((e=>!Jz(e))):!Jz(t._f.ref))&&T(e)}l.unMount=new Set},_disableForm:e=>{Az(e)&&(p.state.next({disabled:e}),vU(i,((t,r)=>{const n=Sz(i,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:p,_proxyFormState:u,get _fields(){return i},get _formValues(){return s},get _state(){return a},set _state(e){a=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return n},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(a.mount=!0,d={...d,...e.formState},M({...e,formState:d})),trigger:E,register:P,handleSubmit:N,watch:(e,t)=>Zz(e)?p.state.subscribe({next:r=>"values"in r&&e(w(void 0,t),r)}):w(e,t,!0),setValue:k,getValues:R,reset:B,resetField:(e,t={})=>{Sz(i,e)&&(Cz(t.defaultValue)?k(e,xz(Sz(o,e))):(k(e,t.defaultValue),Ez(o,e,xz(t.defaultValue))),t.keepTouched||Qz(n.touchedFields,e),t.keepDirty||(Qz(n.dirtyFields,e),n.isDirty=t.defaultValue?x(e,xz(Sz(o,e))):x()),t.keepError||(Qz(n.errors,e),u.isValid&&f()),p.state.next({...n}))},clearErrors:e=>{e&&qz(e).forEach((e=>Qz(n.errors,e))),p.state.next({errors:e?n.errors:{}})},unregister:T,setError:O,setFocus:(e,t={})=>{const r=Sz(i,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&Zz(e.select)&&e.select())}},getFieldState:I};return{...$,formControl:$}}(e);t.current={...i,formState:n}}const o=t.current.control;return o._options=e,Dz((()=>{const e=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState}),reRenderRoot:!0});return i((e=>({...e,isReady:!0}))),o._formState.isReady=!0,e}),[o]),s().useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),s().useEffect((()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)}),[o,e.mode,e.reValidateMode]),s().useEffect((()=>{e.errors&&(o._setErrors(e.errors),o._focusError())}),[o,e.errors]),s().useEffect((()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})}),[o,e.shouldUnregister]),s().useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==n.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,n.isDirty]),s().useEffect((()=>{e.values&&!zz(e.values,r.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),r.current=e.values,i((e=>({...e})))):o._resetDefaultValues()}),[o,e.values]),s().useEffect((()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),t.current.formState=Nz(n,o),t.current}({defaultValues:{product:"",subject:"",title:"",description:""},mode:"onChange"}),{mutateAsync:p,isPending:h}=Zg({mutationFn:e=>nx.sendFeedback(e)}),{data:f}=Gg({queryKey:["countryCode"],queryFn:()=>ox.getCountryCode(),staleTime:1/0,gcTime:1/0}),[m,g]=(0,o.useState)(null),v=(0,o.useMemo)((()=>[{label:n("dialog.products.general"),value:"GENERAL"},{label:n("dialog.products.editor"),value:"EDITOR"},{label:n("dialog.products.imageOptimization"),value:"IO"},{label:n("dialog.products.accessibility"),value:"ALLY"},{label:n("dialog.products.emailDeliverability"),value:"SM"},{label:n("dialog.products.siteManagement"),value:"MANAGE"},{label:n("dialog.products.cookieConsent"),value:"COOKIEZ"}]),[n]),y=(0,o.useMemo)((()=>[{label:n("dialog.subjects.leaveFeedback"),value:n("dialog.subjects.leaveFeedback",{lng:MZ.EN})},{label:n("dialog.subjects.reportBug"),value:n("dialog.subjects.reportBug",{lng:MZ.EN})},{label:n("dialog.subjects.requestFeature"),value:n("dialog.subjects.requestFeature",{lng:MZ.EN})},{label:n("dialog.subjects.shareThoughts"),value:n("dialog.subjects.shareThoughts",{lng:MZ.EN})}]),[n]),b=()=>{u(),t()};return(0,i.jsxs)(Jl,{colorScheme:r,children:[(0,i.jsxs)(jU,{onClose:b,open:e,maxWidth:"sm",fullWidth:!0,"data-test":"send-feedback-dialog",children:[(0,i.jsx)(OW,{logo:!1,onClose:b,children:(0,i.jsx)(rW,{color:"text.primary",variant:"subtitle1",children:n("dialog.title")})}),(0,i.jsxs)(QF,{component:"form",onSubmit:c((e=>{p({...e,countryCode:f},{onSuccess:()=>{b(),g({type:"success",message:n("tooltipSuccess")})},onError:()=>{g({type:"error",message:n("tooltipError")})}})})),children:[(0,i.jsx)(WU,{sx:{px:3},dividers:!0,children:(0,i.jsxs)(Qo,{gap:2,children:[(0,i.jsx)(Uz,{name:"product",control:l,render:({field:{onChange:e,value:t}})=>(0,i.jsx)(cH,{multiple:!1,options:v,value:v.find((e=>e.value===t))||null,onChange:(t,r)=>e(r?.value||""),renderInput:e=>(0,i.jsx)(OZ,{"data-test":"product-send-feedback-input",...e,isWrapped:!0,placeholder:n("dialog.fieldProductPlaceholder"),color:"secondary"})})}),(0,i.jsx)(Uz,{name:"subject",control:l,render:({field:{onChange:e,value:t}})=>(0,i.jsx)(cH,{multiple:!1,options:y,value:y.find((e=>e.value===t))||null,onChange:(t,r)=>e(r?.value||""),renderInput:e=>(0,i.jsx)(OZ,{"data-test":"subject-send-feedback-input",...e,isWrapped:!0,placeholder:n("dialog.fieldSubjectPlaceholder"),color:"secondary"})})}),(0,i.jsx)(Uz,{name:"title",control:l,rules:{required:!0,maxLength:{value:90,message:n("dialog.titleLengthError")}},render:({field:e,fieldState:t})=>(0,i.jsx)(pW,{fullWidth:!0,children:(0,i.jsx)(OZ,{...e,fullWidth:!0,placeholder:n("dialog.fieldTitlePlaceholder"),"data-test":"title-send-feedback-input",error:Boolean(t.error),helperText:t.error?.message,required:!0,sx:{"& .MuiInputBase-root":{minHeight:56}},color:"secondary"})})}),(0,i.jsx)(Uz,{name:"description",control:l,rules:{required:!0,maxLength:{value:1024,message:n("dialog.descriptionLengthError")}},render:({field:e,fieldState:t})=>(0,i.jsx)(pW,{fullWidth:!0,children:(0,i.jsx)(OZ,{...e,multiline:!0,rows:5,fullWidth:!0,noPadding:!0,placeholder:n("dialog.fieldDescriptionPlaceholder"),"data-test":"description-send-feedback-input",error:Boolean(t.error),helperText:t.error?.message,required:!0,color:"secondary"})})}),(0,i.jsx)(DH,{severity:"info",action:(0,i.jsx)(GH,{href:a,target:"_blank",color:"info",children:n("dialog.alert.button")}),children:n("dialog.alert.title")}),(0,i.jsxs)(Qo,{direction:"row",gap:1,children:[(0,i.jsx)(ms,{sx:{ml:.5},variant:"body2",color:"text.primary",children:"• "}),(0,i.jsx)(ms,{variant:"body2",color:"text.primary",children:n("dialog.note")})]})]})}),(0,i.jsxs)(KU,{sx:{px:3,py:2,gap:1},children:[(0,i.jsx)(tu,{variant:"text",color:"secondary",onClick:b,"data-test":"cancel-send-feedback-modal",children:n("dialog.cancel")}),(0,i.jsx)(tu,{type:"submit",variant:"contained",loading:h,"data-test":"submit-feedback-button",disabled:!d||h,children:n("dialog.submit")})]})]})]}),(0,i.jsx)(aG,{open:Boolean(m),autoHideDuration:5e3,onClose:()=>g(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,i.jsx)(DH,{onClose:()=>g(null),severity:m?.type,variant:"filled",children:m?.message})})]})},LZ="action_type",PZ="app_context",jZ=e=>(0,i.jsx)(lc,{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",...e,children:(0,i.jsx)("path",{d:"M12.1207 0C5.42401 0 0 5.37 0 12C0 18.63 5.42401 24 12.1207 24C18.8174 24 24.2414 18.63 24.2414 12C24.2414 5.37 18.8174 0 12.1207 0ZM8.48448 18H6.06034V6H8.48448V18ZM18.181 18H10.9086V15.6H18.181V18ZM18.181 13.2H10.9086V10.8H18.181V13.2ZM18.181 8.4H10.9086V6H18.181V8.4Z",fill:"white"})});var NZ,DZ={exports:{}};const BZ=d((NZ||(NZ=1,function(e,t){var r;function n(e,t){var r=[],n=0;function i(e){return r.push(e),t}function o(){return r[n++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),o)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",i="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",s="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=i+"(?:\\s*"+o+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",h="((?:-?"+p+")|(?:inherit|auto))",f="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+i+"(?:\\s*"+o+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",v="(?![a-zA-Z])",y="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+g+a+"\\))",x="(?="+g+a+"\\))",w="(\\s*(?:!important\\s*)?[;}])",C=/`TMP`/g,_=/`TMPLTR`/g,k=/`TMPRTL`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+y+"[^;}]+;?)","gi"),E=new RegExp("("+c+"[^\\}]*?})","gi"),R=new RegExp("("+s+")ltr","gi"),I=new RegExp("("+s+")rtl","gi"),O=new RegExp(l+"(left)"+v+b+y,"gi"),M=new RegExp(l+"(right)"+v+b+y,"gi"),T=new RegExp(l+"(left)"+x,"gi"),L=new RegExp(l+"(right)"+x,"gi"),P=/(:dir\( *)ltr( *\))/g,j=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),D=new RegExp(l+"(rtl)"+x,"gi"),B=new RegExp(l+"([ns]?)e-resize","gi"),F=new RegExp(l+"([ns]?)w-resize","gi"),$=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+w,"gi"),z=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+w,"gi"),U=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),W=new RegExp("(background-position-x\\s*:\\s*)(-?"+i+"%)","gi"),q=new RegExp("(border-radius\\s*:\\s*)"+h+"(?:(?:\\s+"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?)?(?:(?:(?:\\s*\\/\\s*)"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?(?:\\s+"+h+")?)?"+w,"gi"),V=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+h,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+h+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+h,"gi"),Z=new RegExp("(text-shadow\\s*:\\s*)"+h,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+h+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+h+"((?:\\s*,\\s*"+h+"){0,2}\\s*\\))","gi");function Y(e,t,r){var n,i;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(i=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(i)+"%"):r=100-parseFloat(r)+"%"),t+r}function J(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),i=r.slice(6,10).filter((function(e){return e})),o=r[10]||"";return t+(i.length?J(n)+" / "+J(i):J(n))+o}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,i){return t+r+ee(n)+i}function ne(e,t,r,n,i){return t+r+n+ee(i)}return{transform:function(r,i){var o=new n(A,"`NOFLIP_SINGLE`"),s=new n(E,"`NOFLIP_CLASS`"),a=new n(S,t);return r=a.tokenize(s.tokenize(o.tokenize(r.replace("`","%60")))),i.transformDirInUrl&&(r=r.replace(P,"$1`TMPLTR`$2").replace(j,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(D,"$1ltr").replace(C,"rtl").replace(_,"ltr").replace(k,"rtl")),i.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(L,"$1left").replace(C,"right")),r=r.replace(R,"$1"+e).replace(I,"$1ltr").replace(C,"rtl").replace(O,"$1"+e).replace(M,"$1left").replace(C,"right").replace(B,"$1$2"+e).replace(F,"$1$2e-resize").replace(C,"w-resize").replace(q,Q).replace(V,te).replace(H,ne).replace(G,ne).replace(Z,te).replace(K,re).replace(X,re).replace($,"$1$2$3$8$5$6$7$4$9").replace(z,"$1$2$3$8$5$6$7$4$9").replace(U,Y).replace(W,Y),o.detokenize(s.detokenize(a.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var i;return"object"==typeof t?i=t:(i={},"boolean"==typeof t&&(i.transformDirInUrl=t),"boolean"==typeof n&&(i.transformEdgeInUrl=n)),r.transform(e,i)}:"undefined"!=typeof window&&(window.cssjanus=r)}(DZ,DZ.exports)),DZ.exports));var FZ="-ms-",$Z="-moz-",zZ="-webkit-",UZ="comm",WZ="rule",qZ="decl",VZ="@keyframes",HZ=Math.abs,GZ=String.fromCharCode,ZZ=Object.assign;function KZ(e){return e.trim()}function XZ(e,t){return(e=t.exec(e))?e[0]:e}function YZ(e,t,r){return e.replace(t,r)}function JZ(e,t){return e.indexOf(t)}function QZ(e,t){return 0|e.charCodeAt(t)}function eK(e,t,r){return e.slice(t,r)}function tK(e){return e.length}function rK(e){return e.length}function nK(e,t){return t.push(e),e}var iK=1,oK=1,sK=0,aK=0,lK=0,cK="";function uK(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:iK,column:oK,length:s,return:""}}function dK(e,t){return ZZ(uK("",null,null,"",null,null,0),e,{length:-e.length},t)}function pK(){return lK=aK<sK?QZ(cK,aK++):0,oK++,10===lK&&(oK=1,iK++),lK}function hK(){return QZ(cK,aK)}function fK(){return aK}function mK(e,t){return eK(cK,e,t)}function gK(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 vK(e){return KZ(mK(aK-1,xK(91===e?e+2:40===e?e+1:e)))}function yK(e){for(;(lK=hK())&&lK<33;)pK();return gK(e)>2||gK(lK)>3?"":" "}function bK(e,t){for(;--t&&pK()&&!(lK<48||lK>102||lK>57&&lK<65||lK>70&&lK<97););return mK(e,fK()+(t<6&&32==hK()&&32==pK()))}function xK(e){for(;pK();)switch(lK){case e:return aK;case 34:case 39:34!==e&&39!==e&&xK(lK);break;case 40:41===e&&xK(e);break;case 92:pK()}return aK}function wK(e,t){for(;pK()&&e+lK!==57&&(e+lK!==84||47!==hK()););return"/*"+mK(t,aK-1)+"*"+GZ(47===e?e:pK())}function CK(e){for(;!gK(hK());)pK();return mK(e,aK)}function _K(e){return function(e){return cK="",e}(kK("",null,null,null,[""],e=function(e){return iK=oK=1,sK=tK(cK=e),aK=0,[]}(e),0,[0],e))}function kK(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,C=n,_=b;g;)switch(f=y,y=pK()){case 40:if(108!=f&&58==QZ(_,d-1)){-1!=JZ(_+=YZ(vK(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=vK(y);break;case 9:case 10:case 13:case 32:_+=yK(f);break;case 92:_+=bK(fK()-1,7);continue;case 47:switch(hK()){case 42:case 47:nK(AK(wK(pK(),fK()),t,r),l);break;default:_+="/"}break;case 123*m:a[c++]=tK(_)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:h>0&&tK(_)-d&&nK(h>32?EK(_+";",n,r,d-1):EK(YZ(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(nK(C=SK(_,t,r,c,u,i,a,b,x=[],w=[],d),o),123===y)if(0===u)kK(_,t,C,C,x,o,d,a,w);else switch(99===p&&110===QZ(_,3)?100:p){case 100:case 109:case 115:kK(e,C,C,n&&nK(SK(e,C,C,0,0,i,a,b,i,x=[],d),w),i,w,d,a,n?x:w);break;default:kK(_,C,C,C,[""],w,0,a,w)}}c=u=h=0,m=v=1,b=_="",d=s;break;case 58:d=1+tK(_),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(lK=aK>0?QZ(cK,--aK):0,oK--,10===lK&&(oK=1,iK--),lK))continue;switch(_+=GZ(y),y*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(tK(_)-1)*v,v=1;break;case 64:45===hK()&&(_+=vK(pK())),p=hK(),u=d=tK(b=_+=CK(fK())),y++;break;case 45:45===f&&2==tK(_)&&(m=0)}}return o}function SK(e,t,r,n,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],h=rK(p),f=0,m=0,g=0;f<n;++f)for(var v=0,y=eK(e,d+1,d=HZ(m=s[f])),b=e;v<h;++v)(b=KZ(m>0?p[v]+" "+y:YZ(y,/&\f/g,p[v])))&&(l[g++]=b);return uK(e,t,r,0===i?WZ:a,l,c,u)}function AK(e,t,r){return uK(e,t,r,UZ,GZ(lK),eK(e,2,-2),0)}function EK(e,t,r,n){return uK(e,t,r,qZ,eK(e,0,n),eK(e,n+1,-1),n)}function RK(e,t,r){switch(function(e,t){return 45^QZ(e,0)?(((t<<2^QZ(e,0))<<2^QZ(e,1))<<2^QZ(e,2))<<2^QZ(e,3):0}(e,t)){case 5103:return zZ+"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 zZ+e+e;case 4789:return $Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zZ+e+$Z+e+FZ+e+e;case 5936:switch(QZ(e,t+11)){case 114:return zZ+e+FZ+YZ(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zZ+e+FZ+YZ(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zZ+e+FZ+YZ(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return zZ+e+FZ+e+e;case 6165:return zZ+e+FZ+"flex-"+e+e;case 5187:return zZ+e+YZ(e,/(\w+).+(:[^]+)/,zZ+"box-$1$2"+FZ+"flex-$1$2")+e;case 5443:return zZ+e+FZ+"flex-item-"+YZ(e,/flex-|-self/g,"")+(XZ(e,/flex-|baseline/)?"":FZ+"grid-row-"+YZ(e,/flex-|-self/g,""))+e;case 4675:return zZ+e+FZ+"flex-line-pack"+YZ(e,/align-content|flex-|-self/g,"")+e;case 5548:return zZ+e+FZ+YZ(e,"shrink","negative")+e;case 5292:return zZ+e+FZ+YZ(e,"basis","preferred-size")+e;case 6060:return zZ+"box-"+YZ(e,"-grow","")+zZ+e+FZ+YZ(e,"grow","positive")+e;case 4554:return zZ+YZ(e,/([^-])(transform)/g,"$1"+zZ+"$2")+e;case 6187:return YZ(YZ(YZ(e,/(zoom-|grab)/,zZ+"$1"),/(image-set)/,zZ+"$1"),e,"")+e;case 5495:case 3959:return YZ(e,/(image-set\([^]*)/,zZ+"$1$`$1");case 4968:return YZ(YZ(e,/(.+:)(flex-)?(.*)/,zZ+"box-pack:$3"+FZ+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zZ+e+e;case 4200:if(!XZ(e,/flex-|baseline/))return FZ+"grid-column-align"+eK(e,t)+e;break;case 2592:case 3360:return FZ+YZ(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,XZ(e.props,/grid-\w+-end/)}))?~JZ(e+(r=r[t].value),"span")?e:FZ+YZ(e,"-start","")+e+FZ+"grid-row-span:"+(~JZ(r,"span")?XZ(r,/\d+/):+XZ(r,/\d+/)-+XZ(e,/\d+/))+";":FZ+YZ(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return XZ(e.props,/grid-\w+-start/)}))?e:FZ+YZ(YZ(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return YZ(e,/(.+)-inline(.+)/,zZ+"$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(tK(e)-1-t>6)switch(QZ(e,t+1)){case 109:if(45!==QZ(e,t+4))break;case 102:return YZ(e,/(.+:)(.+)-([^]+)/,"$1"+zZ+"$2-$3$1"+$Z+(108==QZ(e,t+3)?"$3":"$2-$3"))+e;case 115:return~JZ(e,"stretch")?RK(YZ(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return YZ(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,i,o,s,a){return FZ+r+":"+n+a+(i?FZ+r+"-span:"+(o?s:+s-+n)+a:"")+e}));case 4949:if(121===QZ(e,t+6))return YZ(e,":",":"+zZ)+e;break;case 6444:switch(QZ(e,45===QZ(e,14)?18:11)){case 120:return YZ(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+zZ+(45===QZ(e,14)?"inline-":"")+"box$3$1"+zZ+"$2$3$1"+FZ+"$2box$3")+e;case 100:return YZ(e,":",":"+FZ)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return YZ(e,"scroll-","scroll-snap-")+e}return e}function IK(e,t){for(var r="",n=rK(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function OK(e,t,r){switch(e.type){case"@import":case qZ:case UZ:return e.return=e.return||e.value;case WZ:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===UZ&&(e.children=e.value)}))}var n=IK(Array.prototype.concat(e.children),OK);return tK(n)?e.return=e.value+"{"+n+"}":""}function MK(e,t,r,n){if(e.type===VZ||"@supports"===e.type||e.type===WZ&&(!e.parent||"@media"===e.parent.type||e.parent.type===WZ)){var i=BZ.transform(OK(e));e.children=i?_K(i)[0].children:[],e.return=""}}Object.defineProperty(MK,"name",{value:"stylisRTLPlugin"});const TK=Le({key:Oa,stylisPlugins:[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case qZ:return void(e.return=RK(e.value,e.length,r));case VZ:return IK([dK(e,{value:YZ(e.value,"@","@"+zZ)})],n);case WZ:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(XZ(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return IK([dK(e,{props:[YZ(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return IK([dK(e,{props:[YZ(t,/:(plac\w+)/,":"+zZ+"input-$1")]}),dK(e,{props:[YZ(t,/:(plac\w+)/,":-moz-$1")]}),dK(e,{props:[YZ(t,/:(plac\w+)/,FZ+"input-$1")]})],n)}return""}))}},MK]}),LK=Le({key:"eui"});var PK=({rtl:e,children:t})=>s().createElement(Ye,{value:e?TK:LK},t);const jK=({appSettings:e,colorScheme:t="dark",title:r,multiDelpoymentSlot:n,isWithinWpAdmin:s=!0,containerSx:a={},onDisconnect:l})=>{const{t:c}=gd("common",{i18n:jh}),u=(e=>{switch(e){case"image-optimizer":return"https://go.elementor.com/one-help-center-io/";case"ally":return"https://go.elementor.com/one-help-center-ally/";case"elementor-pro":case"elementor":return"https://go.elementor.com/one-help-center-editor/";case"site-mailer":return"https://go.elementor.com/one-help-center-sm/";case"angie":return"https://go.elementor.com/one-help-center-angie/";case"cookiez":return"https://go.elementor.com/cookiez-help-center/";default:return"https://go.elementor.com/one-help-center/"}})(e.slug),[d,p]=(0,o.useState)(!1),h=rF(),f=(()=>{const e=(0,o.useContext)(JB);if(!e)throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access RTL orientation");return e.isRTL})(),m=(0,o.useRef)(!1),g=window.elementorOneSettingsData?.canUserManageOptions??!1,v=window.elementorOneSettingsData?.shareUsageData??!1,{data:y}=XB({enabled:g});(0,o.useEffect)((()=>{if(v&&!m.current){const{appType:t,productName:r}=(e=>{switch(e){case"elementor":case"elementor-pro":return{appType:"Editor"};case"elementor-home":default:return{appType:"Infra"};case"ally":return{appType:"Apps",productName:"app_access"};case"image-optimization":return{appType:"Apps",productName:"app_io"};case"site-mailer":return{appType:"Apps",productName:"app_mailer"};case"angie":return{appType:"Apps",productName:"app_ai"};case"cookiez":return{appType:"Apps",productName:"app_cookiez"}}})(e.slug),n={appType:t};r&&(n.productName=r),ZB.registerOnce(n),m.current=!0}}),[e.slug,v]);const b=t=>{v&&ZB.track("top_bar_clicked",{[LZ]:t,[PZ]:e.slug})};return(0,i.jsx)(PK,{rtl:f,children:(0,i.jsxs)(Jl,{colorScheme:t,children:[(0,i.jsx)(Xo,{sx:{top:0,...a,position:"sticky",zIndex:1100},children:(0,i.jsx)(os,{sx:{pl:"30px !important",backgroundColor:"background.paper"},variant:"dense",children:(0,i.jsxs)(Qo,{direction:"row",justifyContent:"space-between",width:"100%",children:[(0,i.jsxs)(Qo,{direction:"row",alignItems:"center",gap:1,flexWrap:"nowrap",children:[(0,i.jsx)(jZ,{}),!h&&(0,i.jsx)(ms,{variant:"button",fontSize:"20px",fontWeight:400,whiteSpace:"nowrap",children:r||c("header.title")})]}),(0,i.jsxs)(Qo,{direction:"row",alignItems:"center",gap:1,children:[y?.isConnected&&(0,i.jsx)(rc,{size:"small",onClick:()=>{b("feedback"),p(!0)},"data-test":"header-feedback-button",children:(0,i.jsx)(cc,{fontSize:"small"})}),(0,i.jsx)(dz,{appSettings:e,onClick:()=>b("whats_new"),containerSx:{"& .MuiDrawer-paper":{width:320,padding:3,...s?{top:32,height:"calc(100vh - 32px)","@media (max-width: 784px)":{top:46,height:"calc(100vh - 46px)"}}:{}}}}),u&&(0,i.jsx)(rc,{size:"small",href:u,target:"_blank",onClick:()=>b("help"),"data-test":"header-help-button",children:(0,i.jsx)(uc,{fontSize:"small"})}),n,g&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(yc,{orientation:"vertical",flexItem:!0,sx:{my:1,mx:1}}),(0,i.jsx)(TF,{onDisconnect:l,onClick:()=>b("account"),onConnectClick:()=>b("connect")})]})]})]})})}),(0,i.jsx)(TZ,{open:d,onClose:()=>p(!1)})]})})};var NK=r(8168),DK=r(8587);function BK(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=BK(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const FK=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=BK(e))&&(n&&(n+=" "),n+=t);return n};var $K=r(2532),zK=r(3571),UK=r(9599),WK=r(8749),qK=r(9214);const VK=function(e=null){const t=o.useContext(qK.T);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r},HK=(0,WK.A)(),GK=function(e=HK){return VK(e)},ZK=["className","component"],KK=e=>e,XK=(()=>{let e=KK;return{configure(t){e=t},generate:t=>e(t),reset(){e=KK}}})();function YK(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."}function JK(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function QK(e){if(o.isValidElement(e)||!JK(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=QK(e[r])})),t}function eX(e,t,r={clone:!0}){const n=r.clone?(0,NK.A)({},e):e;return JK(e)&&JK(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])?n[i]=t[i]:JK(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&JK(e[i])?n[i]=eX(e[i],t[i],r):r.clone?n[i]=JK(t[i])?QK(t[i]):t[i]:n[i]=t[i]})),n}var tX=r(4188);function rX(e,t){return(0,NK.A)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var nX=r(771);const iX={black:"#000",white:"#fff"},oX={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"},sX="#f3e5f5",aX="#ce93d8",lX="#ba68c8",cX="#ab47bc",uX="#9c27b0",dX="#7b1fa2",pX="#e57373",hX="#ef5350",fX="#f44336",mX="#d32f2f",gX="#c62828",vX="#ffb74d",yX="#ffa726",bX="#ff9800",xX="#f57c00",wX="#e65100",CX="#e3f2fd",_X="#90caf9",kX="#42a5f5",SX="#1976d2",AX="#1565c0",EX="#4fc3f7",RX="#29b6f6",IX="#03a9f4",OX="#0288d1",MX="#01579b",TX="#81c784",LX="#66bb6a",PX="#4caf50",jX="#388e3c",NX="#2e7d32",DX="#1b5e20",BX=["mode","contrastThreshold","tonalOffset"],FX={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:iX.white,default:iX.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}},$X={text:{primary:iX.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:iX.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 zX(e,t,r,n){const i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,nX.a)(e.main,i):"dark"===t&&(e.dark=(0,nX.e$)(e.main,o)))}const UX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],WX={textTransform:"uppercase"},qX='"Roboto", "Helvetica", "Arial", sans-serif';function VX(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=qX,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,p=(0,DK.A)(r,UX),h=i/14,f=d||(e=>e/c*h+"rem"),m=(e,t,r,i,o)=>{return(0,NK.A)({fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r},n===qX?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5+"em")}:{},o,u);var s},g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,WX),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,WX),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return eX((0,NK.A)({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},g),p,{clone:!1})}function HX(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const GX=["none",HX(0,2,1,-1,0,1,1,0,0,1,3,0),HX(0,3,1,-2,0,2,2,0,0,1,5,0),HX(0,3,3,-2,0,3,4,0,0,1,8,0),HX(0,2,4,-1,0,4,5,0,0,1,10,0),HX(0,3,5,-1,0,5,8,0,0,1,14,0),HX(0,3,5,-1,0,6,10,0,0,1,18,0),HX(0,4,5,-2,0,7,10,1,0,2,16,1),HX(0,5,5,-3,0,8,10,1,0,3,14,2),HX(0,5,6,-3,0,9,12,1,0,3,16,2),HX(0,6,6,-3,0,10,14,1,0,4,18,3),HX(0,6,7,-4,0,11,15,1,0,4,20,3),HX(0,7,8,-4,0,12,17,2,0,5,22,4),HX(0,7,8,-4,0,13,19,2,0,5,24,4),HX(0,7,9,-4,0,14,21,2,0,5,26,4),HX(0,8,9,-5,0,15,22,2,0,6,28,5),HX(0,8,10,-5,0,16,24,2,0,6,30,5),HX(0,8,11,-5,0,17,26,2,0,6,32,5),HX(0,9,11,-5,0,18,28,2,0,7,34,6),HX(0,9,12,-6,0,19,29,2,0,7,36,6),HX(0,10,13,-6,0,20,31,3,0,8,38,7),HX(0,10,13,-6,0,21,33,3,0,8,40,7),HX(0,10,14,-6,0,22,35,3,0,8,42,7),HX(0,11,14,-7,0,23,36,3,0,9,44,8),HX(0,11,15,-7,0,24,38,3,0,9,46,8)],ZX=["duration","easing","delay"],KX={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)"},XX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function YX(e){return`${Math.round(e)}ms`}function JX(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function QX(e){const t=(0,NK.A)({},KX,e.easing),r=(0,NK.A)({},XX,e.duration);return(0,NK.A)({getAutoHeightDuration:JX,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:o=t.easeInOut,delay:s=0}=n;return(0,DK.A)(n,ZX),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:YX(i)} ${o} ${"string"==typeof s?s:YX(s)}`)).join(",")}},e,{easing:t,duration:r})}const eY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tY=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const rY=function(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,s=(0,DK.A)(e,tY);if(e.vars)throw new Error(YK(18));const a=function(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=(0,DK.A)(e,BX),o=e.primary||function(e="light"){return"dark"===e?{main:_X,light:CX,dark:kX}:{main:SX,light:kX,dark:AX}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:aX,light:sX,dark:cX}:{main:uX,light:lX,dark:dX}}(t),a=e.error||function(e="light"){return"dark"===e?{main:fX,light:pX,dark:mX}:{main:mX,light:hX,dark:gX}}(t),l=e.info||function(e="light"){return"dark"===e?{main:RX,light:EX,dark:OX}:{main:OX,light:IX,dark:MX}}(t),c=e.success||function(e="light"){return"dark"===e?{main:LX,light:TX,dark:jX}:{main:NX,light:PX,dark:DX}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:yX,light:vX,dark:xX}:{main:"#ed6c02",light:bX,dark:wX}}(t);function d(e){return(0,nX.eM)(e,$X.text.primary)>=r?$X.text.primary:FX.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=(0,NK.A)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(YK(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(YK(12,t?` (${t})`:"",JSON.stringify(e.main)));return zX(e,"light",i,n),zX(e,"dark",o,n),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:$X,light:FX};return eX((0,NK.A)({common:(0,NK.A)({},iX),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:oX,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},h[t]),i)}(n),l=(0,WK.A)(e);let c=eX(l,{mixins:rX(l.breakpoints,r),palette:a,shadows:GX.slice(),typography:VX(a,o),transitions:QX(i),zIndex:(0,NK.A)({},eY)});return c=eX(c,s),c=t.reduce(((e,t)=>eX(e,t)),c),c.unstable_sxConfig=(0,NK.A)({},tX.A,null==s?void 0:s.unstable_sxConfig),c.unstable_sx=function(e){return(0,zK.A)({sx:e,theme:this})},c},nY="$$material",iY={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function oY(e,t,r="Mui"){const n=iY[t];return n?`${r}-${n}`:`${XK.generate(e)}-${t}`}function sY(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=oY(e,t,r)})),n}const aY=sY("MuiBox",["root"]),lY=rY(),cY=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:s}=e,a=(0,$K.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(zK.A);return o.forwardRef((function(e,o){const l=GK(r),c=(0,UK.A)(e),{className:u,component:d="div"}=c,p=(0,DK.A)(c,ZK);return(0,i.jsx)(a,(0,NK.A)({as:d,ref:o,className:FK(u,s?s(n):n),theme:t&&l[t]||l},p))}))}({themeId:nY,defaultTheme:lY,defaultClassName:aY.root,generateClassName:XK.generate}),uY=cY;var dY=s().forwardRef(((e,t)=>s().createElement(uY,{...e,ref:t}))),pY=r(1242),hY=r.n(pY),fY="-ms-",mY="-moz-",gY="-webkit-",vY="comm",yY="rule",bY="decl",xY="@keyframes",wY=Math.abs,CY=String.fromCharCode,_Y=Object.assign;function kY(e){return e.trim()}function SY(e,t){return(e=t.exec(e))?e[0]:e}function AY(e,t,r){return e.replace(t,r)}function EY(e,t){return e.indexOf(t)}function RY(e,t){return 0|e.charCodeAt(t)}function IY(e,t,r){return e.slice(t,r)}function OY(e){return e.length}function MY(e){return e.length}function TY(e,t){return t.push(e),e}function LY(e,t){for(var r="",n=MY(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}var PY=1,jY=1,NY=0,DY=0,BY=0,FY="";function $Y(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:PY,column:jY,length:s,return:""}}function zY(e,t){return _Y($Y("",null,null,"",null,null,0),e,{length:-e.length},t)}function UY(){return BY=DY>0?RY(FY,--DY):0,jY--,10===BY&&(jY=1,PY--),BY}function WY(){return BY=DY<NY?RY(FY,DY++):0,jY++,10===BY&&(jY=1,PY++),BY}function qY(){return RY(FY,DY)}function VY(){return DY}function HY(e,t){return IY(FY,e,t)}function GY(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 ZY(e){return kY(HY(DY-1,YY(91===e?e+2:40===e?e+1:e)))}function KY(e){for(;(BY=qY())&&BY<33;)WY();return GY(e)>2||GY(BY)>3?"":" "}function XY(e,t){for(;--t&&WY()&&!(BY<48||BY>102||BY>57&&BY<65||BY>70&&BY<97););return HY(e,VY()+(t<6&&32==qY()&&32==WY()))}function YY(e){for(;WY();)switch(BY){case e:return DY;case 34:case 39:34!==e&&39!==e&&YY(BY);break;case 40:41===e&&YY(e);break;case 92:WY()}return DY}function JY(e,t){for(;WY()&&e+BY!==57&&(e+BY!==84||47!==qY()););return"/*"+HY(t,DY-1)+"*"+CY(47===e?e:WY())}function QY(e){for(;!GY(qY());)WY();return HY(e,DY)}function eJ(e){return function(e){return FY="",e}(tJ("",null,null,null,[""],e=function(e){return PY=jY=1,NY=OY(FY=e),DY=0,[]}(e),0,[0],e))}function tJ(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",x=i,w=o,C=n,_=b;g;)switch(f=y,y=WY()){case 40:if(108!=f&&58==RY(_,d-1)){-1!=EY(_+=AY(ZY(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=ZY(y);break;case 9:case 10:case 13:case 32:_+=KY(f);break;case 92:_+=XY(VY()-1,7);continue;case 47:switch(qY()){case 42:case 47:TY(nJ(JY(WY(),VY()),t,r),l);break;default:_+="/"}break;case 123*m:a[c++]=OY(_)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:h>0&&OY(_)-d&&TY(h>32?iJ(_+";",n,r,d-1):iJ(AY(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(TY(C=rJ(_,t,r,c,u,i,a,b,x=[],w=[],d),o),123===y)if(0===u)tJ(_,t,C,C,x,o,d,a,w);else switch(99===p&&110===RY(_,3)?100:p){case 100:case 109:case 115:tJ(e,C,C,n&&TY(rJ(e,C,C,0,0,i,a,b,i,x=[],d),w),i,w,d,a,n?x:w);break;default:tJ(_,C,C,C,[""],w,0,a,w)}}c=u=h=0,m=v=1,b=_="",d=s;break;case 58:d=1+OY(_),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==UY())continue;switch(_+=CY(y),y*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(OY(_)-1)*v,v=1;break;case 64:45===qY()&&(_+=ZY(WY())),p=qY(),u=d=OY(b=_+=QY(VY())),y++;break;case 45:45===f&&2==OY(_)&&(m=0)}}return o}function rJ(e,t,r,n,i,o,s,a,l,c,u){for(var d=i-1,p=0===i?o:[""],h=MY(p),f=0,m=0,g=0;f<n;++f)for(var v=0,y=IY(e,d+1,d=wY(m=s[f])),b=e;v<h;++v)(b=kY(m>0?p[v]+" "+y:AY(y,/&\f/g,p[v])))&&(l[g++]=b);return $Y(e,t,r,0===i?yY:a,l,c,u)}function nJ(e,t,r){return $Y(e,t,r,vY,CY(BY),IY(e,2,-2),0)}function iJ(e,t,r,n){return $Y(e,t,r,bY,IY(e,0,n),IY(e,n+1,-1),n)}function oJ(e,t,r){switch(e.type){case"@import":case bY:case vY:return e.return=e.return||e.value;case yY:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===vY&&(e.children=e.value)}))}var n=LY(Array.prototype.concat(e.children),oJ);return OY(n)?e.return=e.value+"{"+n+"}":""}function sJ(e,t,r,n){if(e.type===xY||"@supports"===e.type||e.type===yY&&(!e.parent||"@media"===e.parent.type||e.parent.type===yY)){var i=hY().transform(oJ(e));e.children=i?eJ(i)[0].children:[],e.return=""}}Object.defineProperty(sJ,"name",{value:"stylisRTLPlugin"});const aJ=sJ;var lJ=r(9695);function cJ(e,t,r){switch(function(e,t){return 45^RY(e,0)?(((t<<2^RY(e,0))<<2^RY(e,1))<<2^RY(e,2))<<2^RY(e,3):0}(e,t)){case 5103:return gY+"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 gY+e+e;case 4789:return mY+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gY+e+mY+e+fY+e+e;case 5936:switch(RY(e,t+11)){case 114:return gY+e+fY+AY(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gY+e+fY+AY(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gY+e+fY+AY(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gY+e+fY+e+e;case 6165:return gY+e+fY+"flex-"+e+e;case 5187:return gY+e+AY(e,/(\w+).+(:[^]+)/,gY+"box-$1$2"+fY+"flex-$1$2")+e;case 5443:return gY+e+fY+"flex-item-"+AY(e,/flex-|-self/g,"")+(SY(e,/flex-|baseline/)?"":fY+"grid-row-"+AY(e,/flex-|-self/g,""))+e;case 4675:return gY+e+fY+"flex-line-pack"+AY(e,/align-content|flex-|-self/g,"")+e;case 5548:return gY+e+fY+AY(e,"shrink","negative")+e;case 5292:return gY+e+fY+AY(e,"basis","preferred-size")+e;case 6060:return gY+"box-"+AY(e,"-grow","")+gY+e+fY+AY(e,"grow","positive")+e;case 4554:return gY+AY(e,/([^-])(transform)/g,"$1"+gY+"$2")+e;case 6187:return AY(AY(AY(e,/(zoom-|grab)/,gY+"$1"),/(image-set)/,gY+"$1"),e,"")+e;case 5495:case 3959:return AY(e,/(image-set\([^]*)/,gY+"$1$`$1");case 4968:return AY(AY(e,/(.+:)(flex-)?(.*)/,gY+"box-pack:$3"+fY+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gY+e+e;case 4200:if(!SY(e,/flex-|baseline/))return fY+"grid-column-align"+IY(e,t)+e;break;case 2592:case 3360:return fY+AY(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,SY(e.props,/grid-\w+-end/)}))?~EY(e+(r=r[t].value),"span")?e:fY+AY(e,"-start","")+e+fY+"grid-row-span:"+(~EY(r,"span")?SY(r,/\d+/):+SY(r,/\d+/)-+SY(e,/\d+/))+";":fY+AY(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return SY(e.props,/grid-\w+-start/)}))?e:fY+AY(AY(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return AY(e,/(.+)-inline(.+)/,gY+"$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(OY(e)-1-t>6)switch(RY(e,t+1)){case 109:if(45!==RY(e,t+4))break;case 102:return AY(e,/(.+:)(.+)-([^]+)/,"$1"+gY+"$2-$3$1"+mY+(108==RY(e,t+3)?"$3":"$2-$3"))+e;case 115:return~EY(e,"stretch")?cJ(AY(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return AY(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,i,o,s,a){return fY+r+":"+n+a+(i?fY+r+"-span:"+(o?s:+s-+n)+a:"")+e}));case 4949:if(121===RY(e,t+6))return AY(e,":",":"+gY)+e;break;case 6444:switch(RY(e,45===RY(e,14)?18:11)){case 120:return AY(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gY+(45===RY(e,14)?"inline-":"")+"box$3$1"+gY+"$2$3$1"+fY+"$2box$3")+e;case 100:return AY(e,":",":"+fY)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return AY(e,"scroll-","scroll-snap-")+e}return e}const uJ="&:hover,&:focus,&:active,&:visited",dJ="__unstableAccessibleMain",pJ="__unstableAccessibleLight",hJ="0.75rem",fJ="eui-rtl",mJ=[0,1,1,1,1],gJ=(0,lJ.A)({key:fJ,stylisPlugins:[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bY:return void(e.return=cJ(e.value,e.length,r));case xY:return LY([zY(e,{value:AY(e.value,"@","@"+gY)})],n);case yY:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(SY(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return LY([zY(e,{props:[AY(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return LY([zY(e,{props:[AY(t,/:(plac\w+)/,":"+gY+"input-$1")]}),zY(e,{props:[AY(t,/:(plac\w+)/,":-moz-$1")]}),zY(e,{props:[AY(t,/:(plac\w+)/,fY+"input-$1")]})],n)}return""}))}},aJ]}),vJ=(0,lJ.A)({key:"eui"});var yJ=({rtl:e,children:t})=>s().createElement(qK.C,{value:e?gJ:vJ},t);const bJ=o.createContext(null);function xJ(){return o.useContext(bJ)}const wJ="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",CJ=function(e){const{children:t,theme:r}=e,n=xJ(),s=o.useMemo((()=>{const e=null===n?r:function(e,t){return"function"==typeof t?t(e):(0,NK.A)({},e,t)}(n,r);return null!=e&&(e[wJ]=null!==n),e}),[r,n]);return(0,i.jsx)(bJ.Provider,{value:s,children:t})},_J=["value"],kJ=o.createContext(),SJ=()=>{const e=o.useContext(kJ);return null!=e&&e},AJ=function(e){let{value:t}=e,r=(0,DK.A)(e,_J);return(0,i.jsx)(kJ.Provider,(0,NK.A)({value:null==t||t},r))},EJ=o.createContext(void 0),RJ=function({value:e,children:t}){return(0,i.jsx)(EJ.Provider,{value:e,children:t})},IJ={};function OJ(e,t,r,n=!1){return o.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof r){const o=r(i),s=e?(0,NK.A)({},t,{[e]:o}):o;return n?()=>s:s}return e?(0,NK.A)({},t,{[e]:r}):(0,NK.A)({},t,r)}),[e,t,r,n])}const MJ=function(e){const{children:t,theme:r,themeId:n}=e,o=VK(IJ),s=xJ()||IJ,a=OJ(n,o,r),l=OJ(n,s,r,!0),c="rtl"===a.direction;return(0,i.jsx)(CJ,{theme:l,children:(0,i.jsx)(qK.T.Provider,{value:a,children:(0,i.jsx)(AJ,{value:c,children:(0,i.jsx)(RJ,{value:null==a?void 0:a.components,children:t})})})})},TJ=["theme"];function LJ(e){let{theme:t}=e,r=(0,DK.A)(e,TJ);const n=t[nY];return(0,i.jsx)(MJ,(0,NK.A)({},r,{themeId:n?nY:void 0,theme:n||t}))}const PJ="#FFFFFF",jJ="#f1f3f3",NJ="#d5d8dc",DJ="#babfc5",BJ="#9da5ae",FJ="#818a96",$J="#69727d",zJ="#515962",UJ="#3f444b",WJ="#1f2124",qJ="#0c0d0e",VJ="#f3bafd",HJ="#f0abfc",GJ="#eb8efb",ZJ="#ef4444",KJ="#dc2626",XJ="#b91c1c",YJ="#b15211",JJ="#3b82f6",QJ="#2563eb",eQ="#1d4ed8",tQ="#10b981",rQ="#0a875a",nQ="#047857",iQ="#99f6e4",oQ="#5eead4",sQ="#2adfcd",aQ="#b51243",lQ="#93003f",cQ="#7e013b",uQ={styleOverrides:{listbox:({theme:e})=>({"&.MuiAutocomplete-listboxSizeTiny":{fontSize:"0.875rem"},'&.MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected="true"]':{"&,&.Mui-Mui-focused":{backgroundColor:e.palette.action.selected}}})},variants:[{props:{size:"tiny"},style:()=>({"& .MuiOutlinedInput-root":{padding:"2.5px 0","& .MuiAutocomplete-input":{lineHeight:"1.25em",height:"1.25em",padding:"4px 2px 4px 8px"}},"& .MuiFilledInput-root":{padding:0,"& .MuiAutocomplete-input":{padding:"15px 8px 6px"}},"& .MuiInput-root":{paddingBottom:0,"& .MuiAutocomplete-input":{padding:"2px 0"}},"& .MuiAutocomplete-popupIndicator":{fontSize:"1.5em"},"& .MuiAutocomplete-clearIndicator":{fontSize:"1.2em"},"& .MuiAutocomplete-popupIndicator .MuiSvgIcon-root, & .MuiAutocomplete-clearIndicator .MuiSvgIcon-root":{fontSize:"1em"},"& .MuiInputAdornment-root .MuiIconButton-root":{padding:"2px"},"& .MuiAutocomplete-tagSizeTiny":{fontSize:hJ},"&.MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root .MuiAutocomplete-input":{paddingRight:"48px"}})},{props:{size:"tiny",multiple:!0},style:()=>({"& .MuiAutocomplete-tag":{margin:"1.5px 3px"}})}]},dQ=["primary","secondary","error","warning","info","success","accent","global","promotion","decorative","neutral"],pQ=["primary","global"],hQ=dQ.filter((e=>!pQ.includes(e))),fQ={styleOverrides:{root:()=>({boxShadow:"none","&:hover":{boxShadow:"none"}})},variants:dQ.map((e=>({props:{variant:"contained",color:e},style:({theme:t})=>({"& .MuiButtonGroup-grouped:not(:last-of-type), & .MuiButtonGroup-grouped:not(:last-of-type).Mui-disabled":{borderRight:0},"& .MuiButtonGroup-grouped:not(:last-child), & > *:not(:last-child) .MuiButtonGroup-grouped":{borderRight:`1px solid ${t.palette[e].dark}`},"& .MuiButtonGroup-grouped:not(:last-child).Mui-disabled, & > *:not(:last-child) .MuiButtonGroup-grouped.Mui-disabled":{borderRight:`1px solid ${t.palette.action.disabled}`}})})))};var mQ=r(644),gQ=r(6972);function vQ(e,t=0,r=1){return(0,gQ.A)(e,t,r)}function yQ(e){if(e.type)return e;if("#"===e.charAt(0))return yQ(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,mQ.A)(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),n=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(n))throw new Error((0,mQ.A)(10,n))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:r,values:i,colorSpace:n}}function bQ(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function xQ(e,t){return e=yQ(e),t=vQ(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bQ(e)}function wQ(e,t){if(e=yQ(e),t=vQ(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 r=0;r<3;r+=1)e.values[r]*=1-t;return bQ(e)}function CQ(e,t){if(e=yQ(e),t=vQ(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return bQ(e)}const _Q={variants:[{props:{color:"primary",variant:"outlined"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain,borderColor:e.palette.primary.__unstableAccessibleMain,"& .MuiChip-deleteIcon":{color:e.palette.primary.__unstableAccessibleLight,"&:hover":{color:e.palette.primary.__unstableAccessibleMain}}})},{props:{color:"global",variant:"outlined"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain,borderColor:e.palette.global.__unstableAccessibleMain,"& .MuiChip-deleteIcon":{color:e.palette.global.__unstableAccessibleLight,"&:hover":{color:e.palette.global.__unstableAccessibleMain}}})},{props:{color:"default",variant:"filled"},style:({theme:e})=>({backgroundColor:"light"===e.palette.mode?"#EBEBEB":"#434547","&.Mui-focusVisible, &.MuiChip-clickable:hover":{backgroundColor:e.palette.action.focus},"& .MuiChip-icon":{color:"inherit"}})},...kQ(["default"],(function(e){return{backgroundColor:{light:"#EBEBEB",dark:"#434547"},backgroundColorHover:{light:e.palette.action.focus,dark:e.palette.action.focus},color:{light:e.palette.text.primary,dark:e.palette.text.primary},deleteIconOpacity:.26,deleteIconOpacityHover:.7}})),...kQ(["primary","global"],(function(e,t){const r=e.palette[t];return{backgroundColor:{light:CQ(r.light,.8),dark:wQ(r.__unstableAccessibleMain,.8)},backgroundColorHover:{light:CQ(r.light,.6),dark:wQ(r.__unstableAccessibleMain,.9)},color:{light:wQ(r.__unstableAccessibleMain,.3),dark:CQ(r.light,.3)},deleteIconOpacity:.7,deleteIconOpacityHover:1}})),...kQ(hQ,(function(e,t){return{backgroundColor:{light:CQ(e.palette[t].light,.9),dark:wQ(e.palette[t].light,.8)},backgroundColorHover:{light:CQ(e.palette[t].light,.8),dark:wQ(e.palette[t].light,.9)},color:{light:wQ(e.palette[t].main,.3),dark:CQ(e.palette[t].main,.5)},deleteIconOpacity:.7,deleteIconOpacityHover:1}})),{props:{size:"tiny"},style:()=>({fontSize:hJ,height:"20px",paddingInline:"5px","& .MuiChip-avatar":{width:"1rem",height:"1rem",fontSize:"9px",marginLeft:0,marginRight:"1px"},"& .MuiChip-icon":{fontSize:"1rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"3px",paddingLeft:"3px"},"& .MuiChip-deleteIcon":{fontSize:"0.875rem",marginLeft:0,marginRight:0}})},{props:{size:"small"},style:()=>({height:"24px",paddingInline:"5px","& .MuiChip-avatar":{width:"1.125rem",height:"1.125rem",fontSize:"9px",marginLeft:0,marginRight:"2px"},"& .MuiChip-icon":{fontSize:"1.125rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"3px",paddingLeft:"3px"},"& .MuiChip-deleteIcon":{fontSize:"1rem",marginLeft:0,marginRight:0}})},{props:{size:"medium"},style:()=>({height:"32px",paddingInline:"6px","& .MuiChip-avatar":{width:"1.25rem",height:"1.25rem",fontSize:"0.75rem",marginLeft:0,marginRight:"2px"},"& .MuiChip-icon":{fontSize:"1.25rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"4px",paddingLeft:"4px"},"& .MuiChip-deleteIcon":{fontSize:"1.125rem",marginLeft:0,marginRight:0}})}]};function kQ(e,t){return e.map((e=>({props:{color:e,variant:"standard"},style:({theme:r})=>{const n=t(r,e),{mode:i}=r.palette;return{backgroundColor:n.backgroundColor[i],color:n.color[i],"&.Mui-focusVisible, &.MuiChip-clickable:hover":{backgroundColor:n.backgroundColorHover[i]},"& .MuiChip-icon":{color:"inherit"},"& .MuiChip-deleteIcon":{color:n.color[i],opacity:n.deleteIconOpacity,"&:hover,&:focus":{color:n.color[i],opacity:n.deleteIconOpacityHover}}}}})))}const SQ="0.75rem";var AQ={MuiAccordion:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.default,"&:before":{content:"none"},"&.Mui-expanded":{margin:0},"&.MuiAccordion-gutters + .MuiAccordion-root.MuiAccordion-gutters":{marginTop:e.spacing(1),marginBottom:e.spacing(0)},"&:not(.MuiAccordion-gutters) + .MuiAccordion-root:not(.MuiAccordion-gutters)":{borderTop:0},"&.Mui-disabled":{backgroundColor:e.palette.background.default}})},variants:[{props:{square:!1},style:({theme:e})=>{const t=e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[3];return{"&:first-of-type":{borderTopLeftRadius:t,borderTopRightRadius:t},"&:last-of-type":{borderBottomLeftRadius:t,borderBottomRightRadius:t}}}}]},MuiAccordionActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2)})}},MuiAccordionSummary:{styleOverrides:{root:()=>({minHeight:"64px"}),content:({theme:e})=>({margin:e.spacing(1,0),"&.MuiAccordionSummary-content.Mui-expanded":{margin:e.spacing(1,0)}})}},MuiAccordionSummaryIcon:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(1,0)})}},MuiAccordionSummaryText:{styleOverrides:{root:({theme:e})=>({marginTop:0,marginBottom:0,padding:e.spacing(1,0)})}},MuiAutocomplete:uQ,MuiAvatar:{variants:[{props:{variant:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiButton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],boxShadow:"none",whiteSpace:"nowrap","&:hover":{boxShadow:"none"},"& .MuiSvgIcon-root":{fill:"currentColor"}})},variants:[{props:{color:"primary",variant:"outlined"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain,borderColor:e.palette.primary.__unstableAccessibleMain,"&:hover":{borderColor:e.palette.primary.__unstableAccessibleMain}})},{props:{color:"primary",variant:"text"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain})},{props:{color:"global",variant:"outlined"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain,borderColor:e.palette.global.__unstableAccessibleMain,"&:hover":{borderColor:e.palette.global.__unstableAccessibleMain}})},{props:{color:"global",variant:"text"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain})}]},MuiButtonBase:{styleOverrides:{root:()=>({"&.MuiButtonBase-root.Mui-focusVisible":{boxShadow:"0 0 0 1px inset"},".MuiCircularProgress-root":{fontSize:"inherit"}})}},MuiButtonGroup:fQ,MuiCard:{defaultProps:{},styleOverrides:{root:()=>({position:"relative"})}},MuiCardActions:{styleOverrides:{root:({theme:e})=>({justifyContent:"flex-end",padding:e.spacing(1.5,2)})}},MuiCardGroup:{styleOverrides:{root:()=>({"& .MuiCard-root.MuiPaper-outlined:not(:last-child)":{borderBottom:0},"& .MuiCard-root.MuiPaper-rounded":{"&:first-child:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},"&:last-child:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0}}})}},MuiCardHeader:{styleOverrides:{action:()=>({alignSelf:"center"})}},MuiChip:_Q,MuiCircularProgress:{styleOverrides:{root:({theme:e})=>({fontSize:e.spacing(5)})}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[4]})}},MuiDialogActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,3)})}},MuiDialogContent:{styleOverrides:{dividers:()=>({"&:last-child":{borderBottom:"none"}})}},MuiFilledInput:{styleOverrides:{root:({theme:e})=>({borderTopLeftRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],borderTopRightRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})},variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:hJ,lineHeight:"1.25em","& .MuiInputBase-input":{fontSize:hJ,lineHeight:"1.25em",height:"1.25em",padding:"15px 8px 6px"},"&.MuiInputBase-adornedStart":{paddingLeft:e.spacing(1)},"&.MuiInputBase-adornedEnd":{paddingRight:e.spacing(1)},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart:not(.MuiInputAdornment-hiddenLabel)":{marginTop:e.spacing(1)},"& .MuiInputAdornment-root:not(.MuiInputAdornment-positionEnd)":{marginRight:0},"& .MuiInputAdornment-root.MuiInputAdornment-positionEnd":{marginLeft:0}})},{props:{size:"tiny",multiline:!0},style:()=>({padding:0})}]},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.tertiary,margin:e.spacing(.5,0,0)})}},MuiFormLabel:{variants:[{props:{size:"tiny"},style:()=>({fontSize:"0.75rem",lineHeight:"1.6",fontWeight:"400",letterSpacing:"0.19px"})},{props:{size:"small"},style:({theme:e})=>({...e.typography.body2})}]},MuiIconButton:{variants:[{props:{color:"primary"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain})},{props:{color:"global"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain})},{props:{edge:"start",size:"small"},style:({theme:e})=>({marginLeft:e.spacing(-1.5)})},{props:{edge:"end",size:"small"},style:({theme:e})=>({marginRight:e.spacing(-1.5)})},{props:{edge:"start",size:"large"},style:({theme:e})=>({marginLeft:e.spacing(-2)})},{props:{edge:"end",size:"large"},style:({theme:e})=>({marginRight:e.spacing(-2)})},{props:{size:"tiny"},style:({theme:e})=>({padding:e.spacing(.75)})},{props:{size:"tiny",edge:"start"},style:({theme:e})=>({marginLeft:e.spacing(-1)})},{props:{size:"tiny",edge:"end"},style:({theme:e})=>({marginRight:e.spacing(-1)})}]},MuiInput:{variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:hJ,lineHeight:"1.25em","&.MuiInput-root":{marginTop:e.spacing(1.5)},"& .MuiInputBase-input":{fontSize:hJ,lineHeight:"1.25em",height:"1.25em",padding:"6.5px 0"}})}]},MuiInputAdornment:{styleOverrides:{root:({theme:e})=>({"&.MuiInputAdornment-sizeTiny":{"&.MuiInputAdornment-positionStart":{marginRight:e.spacing(.5)},"&.MuiInputAdornment-positionEnd":{marginLeft:e.spacing(.5)}}})}},MuiInputBase:{styleOverrides:{input:()=>({".MuiInputBase-root.Mui-disabled &":{backgroundColor:"initial"}})}},MuiInputLabel:{variants:[{props:{size:"tiny",shrink:!1},style:()=>({"&.MuiInputLabel-outlined":{transform:"translate(7.5px, 5.5px) scale(1)"},"&.MuiInputLabel-standard":{transform:"translate(0px, 18px) scale(1)"},"&.MuiInputLabel-filled":{transform:"translate(8px, 11px) scale(1)"}})},{props:{size:"tiny",shrink:!0},style:()=>({"&.MuiInputLabel-filled":{transform:"translate(8px, 2px) scale(0.75)"}})}]},MuiListItem:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,"a&":{[uJ]:{color:e.palette.text.primary}}})}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:e.palette.action.focus}},"a&":{[uJ]:{color:e.palette.text.primary}}})}},MuiListItemIcon:{styleOverrides:{root:({theme:e})=>({minWidth:"initial","&:not(:last-child)":{marginRight:e.spacing(1)}})}},MuiListItemText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiListSubheader:{styleOverrides:{root:({theme:e})=>({backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12))",lineHeight:"36px",color:e.palette.text.secondary})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:e.palette.action.focus}},"a&":{[uJ]:{color:e.palette.text.primary}},"& .MuiListItemIcon-root":{minWidth:"initial"}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],"&.Mui-focused .MuiInputAdornment-root .MuiOutlinedInput-notchedOutline":{borderColor:"dark"===e.palette.mode?"rgba(255, 255, 255, 0.23)":"rgba(0, 0, 0, 0.23)",borderWidth:"1px"}})},variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:hJ,lineHeight:"1.25em","&.MuiInputBase-adornedStart":{paddingLeft:e.spacing(1)},"&.MuiInputBase-adornedEnd":{paddingRight:e.spacing(1)},"& .MuiInputBase-input":{fontSize:hJ,lineHeight:"1.25em",height:"1.25em",padding:"6.5px 8px"},"& .MuiInputAdornment-root + .MuiInputBase-input":{paddingLeft:0},"&:has(.MuiInputBase-input + .MuiInputAdornment-root) .MuiInputBase-input":{paddingRight:0}})},{props:{size:"tiny",multiline:!0},style:()=>({padding:0})},{props:e=>!!e.endAdornment&&"tiny"===e.size,style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{"&.MuiSelect-standard":{paddingTop:0,paddingBottom:0},"&.MuiSelect-outlined,&.MuiSelect-filled":{paddingTop:"4px",paddingBottom:"4px"}}})},{props:e=>!!e.endAdornment&&"small"===e.size,style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{paddingTop:"2.5px",paddingBottom:"2.5px"}})},{props:e=>!(!e.endAdornment||"medium"!==e.size&&e.size),style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{paddingTop:"8.5px",paddingBottom:"8.5px"}})}]},MuiPagination:{variants:[{props:{shape:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiPaper:{variants:[{props:{square:!1},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[3]})}]},MuiSelect:{styleOverrides:{nativeInput:()=>({".MuiInputBase-root.Mui-disabled &":{backgroundColor:"initial",opacity:0}})},variants:[{props:{size:"tiny"},style:()=>({"& .MuiSelect-icon":{fontSize:"1rem",right:"9px"},"& .MuiSelect-select.MuiSelect-outlined, & .MuiSelect-select.MuiSelect-filled":{minHeight:"1.25em"},"& .MuiSelect-select.MuiSelect-standard":{lineHeight:"1.25em",minHeight:"1.25em"}})}]},MuiSkeleton:{variants:[{props:{variant:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiSnackbarContent:{defaultProps:{},styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})}},MuiStepConnector:{styleOverrides:{root:({theme:e})=>({"& .MuiStepConnector-line":{borderColor:e.palette.divider}})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({"&:not(.Mui-active) .MuiStepIcon-text":{fill:e.palette.common.white}})}},MuiStepLabel:{styleOverrides:{root:()=>({alignItems:"flex-start"})}},MuiStepper:{styleOverrides:{root:()=>({"& .MuiStepLabel-root":{alignItems:"center"}})}},MuiSvgIcon:{variants:[{props:{fontSize:"tiny"},style:()=>({fontSize:"1rem"})}]},MuiTab:{styleOverrides:{root:{"&:not(.Mui-selected)":{fontWeight:400},"&.Mui-selected":{fontWeight:700}}},variants:[{props:{size:"small"},style:({theme:e})=>({fontSize:SQ,lineHeight:1.6,padding:e.spacing(.75,1),minWidth:72,"&:not(.MuiTab-labelIcon)":{minHeight:32},"&.MuiTab-labelIcon":{minHeight:32}})}]},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected}}})},variants:[{props:e=>"onClick"in e,style:()=>({cursor:"pointer"})}]},MuiTabPanel:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiTabs:{styleOverrides:{indicator:{height:"3px"}},variants:[{props:{size:"small"},style:({theme:e})=>({minHeight:32,"& .MuiTab-root":{fontSize:SQ,lineHeight:1.6,padding:e.spacing(.75,1),minWidth:72,"&:not(.MuiTab-labelIcon)":{minHeight:32},"&.MuiTab-labelIcon":{minHeight:32}}})}]},MuiTextField:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],"& legend":{transition:"unset"}})},variants:[{props:{size:"tiny",select:!0},style:()=>({"& .MuiSelect-icon":{fontSize:"1rem",right:"9px"},"& .MuiInputBase-root .MuiSelect-select":{minHeight:"auto"}})}]},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})},variants:[{props:{color:"primary"},style:({theme:e})=>({"&.MuiToggleButton-root.Mui-selected":{color:e.palette.primary.__unstableAccessibleMain}})},{props:{color:"global"},style:({theme:e})=>({"&.MuiToggleButton-root.Mui-selected":{color:e.palette.global.__unstableAccessibleMain}})},{props:{size:"tiny"},style:({theme:e})=>({fontSize:hJ,lineHeight:1.3334,padding:e.spacing(.625)})}]},MuiTooltip:{styleOverrides:{arrow:({theme:e})=>({color:e.palette.grey[700]}),tooltip:({theme:e})=>({backgroundColor:e.palette.grey[700],borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}}};const EQ={components:AQ,shape:{borderRadius:4,__unstableBorderRadiusMultipliers:mJ},typography:{display1:{fontSize:"0rem"},display2:{fontSize:"0rem"},display3:{fontSize:"0rem"},display4:{fontSize:"0rem"},display5:{fontSize:"0rem"},display6:{fontSize:"0rem"},button:{textTransform:"none"},h1:{fontWeight:700},h2:{fontWeight:700},h3:{fontSize:"2.75rem",fontWeight:700},h4:{fontSize:"2rem",fontWeight:700},h5:{fontWeight:700},subtitle1:{fontWeight:500,lineHeight:1.3},subtitle2:{lineHeight:1.3}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},RQ={...EQ,palette:{mode:"light",primary:{main:HJ,light:VJ,dark:GJ,contrastText:qJ,[dJ]:"#C00BB9",[pJ]:"#D355CE"},secondary:{main:zJ,light:$J,dark:UJ,contrastText:PJ},grey:{50:jJ,100:NJ,200:DJ,300:BJ,400:FJ,500:$J,600:zJ,700:UJ,800:WJ,900:qJ},text:{primary:qJ,secondary:UJ,tertiary:$J,disabled:BJ},background:{paper:PJ,default:PJ},success:{main:rQ,light:tQ,dark:nQ,contrastText:PJ},error:{main:KJ,light:ZJ,dark:XJ,contrastText:PJ},warning:{main:"#bb5b1d",light:"#d97706",dark:YJ,contrastText:PJ},info:{main:QJ,light:JJ,dark:eQ,contrastText:PJ},global:{main:oQ,light:iQ,dark:sQ,contrastText:qJ,[dJ]:"#17929B",[pJ]:"#5DB3B9"},accent:{main:lQ,light:aQ,dark:cQ,contrastText:PJ},promotion:{main:lQ,light:aQ,dark:cQ,contrastText:PJ},decorative:{main:oQ,light:iQ,dark:sQ,contrastText:qJ},neutral:{main:"#ffffff",light:"#ffffff",dark:"#ffffff",contrastText:"#ffffff"}}},IQ={...EQ,palette:{mode:"dark",primary:{main:HJ,light:VJ,dark:GJ,contrastText:qJ,[dJ]:"#C00BB9",[pJ]:"#D355CE"},secondary:{main:BJ,light:DJ,dark:FJ,contrastText:qJ},grey:{50:jJ,100:NJ,200:DJ,300:BJ,400:FJ,500:$J,600:zJ,700:UJ,800:WJ,900:qJ},text:{primary:PJ,secondary:DJ,tertiary:BJ,disabled:zJ},background:{paper:qJ,default:WJ},success:{main:rQ,light:tQ,dark:nQ,contrastText:PJ},error:{main:KJ,light:ZJ,dark:XJ,contrastText:PJ},warning:{main:"#f59e0b",light:"#fbbf24",dark:YJ,contrastText:"#000000"},info:{main:QJ,light:JJ,dark:eQ,contrastText:PJ},global:{main:oQ,light:iQ,dark:sQ,contrastText:qJ,[dJ]:"#17929B",[pJ]:"#5DB3B9"},accent:{main:lQ,light:aQ,dark:cQ,contrastText:PJ},promotion:{main:lQ,light:aQ,dark:cQ,contrastText:PJ},decorative:{main:oQ,light:iQ,dark:sQ,contrastText:qJ},neutral:{main:"#ffffff",light:"#ffffff",dark:"#ffffff",contrastText:"#ffffff"}}},OQ="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function MQ(e,t){const r=(0,NK.A)({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=(0,NK.A)({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},o&&Object.keys(o)?i&&Object.keys(i)?(r[n]=(0,NK.A)({},o),Object.keys(i).forEach((e=>{r[n][e]=MQ(i[e],o[e])}))):r[n]=o:r[n]=i}else void 0===r[n]&&(r[n]=e[n])})),r}function TQ(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?MQ(t.components[r].defaultProps,n):n}function LQ(e,t,r,n,i){const[s,a]=o.useState((()=>i&&r?r(e).matches:n?n(e).matches:t));return OQ((()=>{let t=!0;if(!r)return;const n=r(e),i=()=>{t&&a(n.matches)};return i(),n.addListener(i),()=>{t=!1,n.removeListener(i)}}),[e,r]),s}const PQ=o.useSyncExternalStore;function jQ(e,t,r,n,i){const s=o.useCallback((()=>t),[t]),a=o.useMemo((()=>{if(i&&r)return()=>r(e).matches;if(null!==n){const{matches:t}=n(e);return()=>t}return s}),[s,e,n,i,r]),[l,c]=o.useMemo((()=>{if(null===r)return[s,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[s,r,e]);return PQ(c,l,a)}const NQ=(e,...t)=>{const r={...e};return r.shape={borderRadius:4,__unstableBorderRadiusMultipliers:mJ,...r.shape},rY(r,...t)},DQ="#524CFF";var BQ={primary:{main:DQ,light:"#6B65FF",dark:"#4C43E5",contrastText:"#FFFFFF",[dJ]:"#524CFF",[pJ]:"#6B65FF"},action:{selected:xQ(DQ,.08)}};const FQ=WJ,$Q=UJ;var zQ={primary:{main:FQ,light:$Q,dark:qJ,contrastText:"#FFFFFF",[dJ]:FQ,[pJ]:$Q},accent:{main:HJ,light:VJ,dark:GJ,contrastText:qJ}};const UQ=jJ,WQ="#FFFFFF";var qQ={primary:{main:UQ,light:WQ,dark:NJ,contrastText:qJ,[dJ]:UQ,[pJ]:WQ},accent:{main:HJ,light:VJ,dark:GJ,contrastText:qJ}};const VQ=WJ,HQ=UJ;var GQ={primary:{main:VQ,light:HQ,dark:qJ,contrastText:"#FFFFFF",[dJ]:VQ,[pJ]:HQ},accent:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},decorative:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},neutral:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"}};const ZQ=jJ,KQ="#FFFFFF";var XQ={primary:{main:ZQ,light:KQ,dark:NJ,contrastText:qJ,[dJ]:ZQ,[pJ]:KQ},accent:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},decorative:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},neutral:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"}};const YQ=(0,o.createContext)(null),JQ=({value:e,children:t})=>o.createElement(YQ.Provider,{value:e},t),QQ={zIndex:EQ.zIndex};const e1=!0;function t1(e){return e?r1(e,{primary:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],secondary:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],success:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],info:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],warning:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],error:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],background:["default","paper","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],decorative:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],accent:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],neutral:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],text:["primary","secondary","tertiary","disabled"],action:["active","focus","hover","disabled","disabledBackground","selected","__unstableGradientAngle"],divider:e1}):{}}function r1(e,t){if(!e||!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{if(e[t])if("boolean"!=typeof n){if(Array.isArray(n)){const i=e[t];n.forEach((e=>{void 0!==i?.[e]&&(r[t]={...r[t],[e]:i[e]})}))}}else r[t]=e[t]})),r}const n1=new Map,i1=(0,qK.w)((({colorScheme:e,palette:t,children:r,overrides:n,unstableThemeV0:i},a)=>{const l=(0,o.useContext)(YQ),c=a.key===fJ,u=e||l?.colorScheme||"auto",d=function(e,t={}){const r=VK(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(n?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:a=!1}=TQ({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"==typeof e?e(r):e;return l=l.replace(/^@media( ?)/m,""),(void 0!==PQ?jQ:LQ)(l,i,o,s,a)}("(prefers-color-scheme: dark)"),p="auto"===u&&d||"dark"===u,h=function(e,t){if(!e)return t;if("function"!=typeof e)return console.error("overrides must be a function"),t;const r=e(structuredClone(t||QQ));return r&&"object"==typeof r?r:(console.error("overrides function must return an object"),t)}(n,l?.overrides),f=i?.name||t||l?.themeName,m=i||l?.customTheme;let g=m?((e,t=!1,r=!1)=>{if(!e.name)throw new Error("Custom theme must have a name");const n=`${e.name}-${t}-${r}`;if(n1.has(n))return n1.get(n);const i={typography:{subtitle1:{fontWeight:500,lineHeight:1.3},subtitle2:{lineHeight:1.3}}};r&&(i.direction="rtl");const o=function(e,t){const r={components:AQ};return t&&e.palette?.dark?r.palette={...IQ.palette,...t1(e.palette.dark),mode:"dark"}:e.palette?.light&&(r.palette={...RQ.palette,...t1(e.palette.light)}),e.shadows&&(r.shadows=e.shadows),e.shape&&(r.shape=e.shape),e.typography&&(r.typography=function(e={}){return e?r1(e,{fontFamily:e1,display1:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display2:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display3:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display4:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display5:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display6:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h1:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h2:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h3:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h4:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h5:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h6:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],subtitle1:["fontFamily"],subtitle2:["fontFamily"],body1:["fontFamily"],body2:["fontFamily"],caption:["fontFamily"],overline:["fontFamily"],button:["fontFamily","textTransform"]}):{}}(e.typography)),e.zIndex&&(r.zIndex=e.zIndex),r}(e,t),s=NQ(o,i);return n1.set(n,s),s})(m,p,c):(({palette:e="default",rtl:t=!1,isDarkMode:r=!1}={})=>{const n=`${e}-${r}-${t}`;if(n1.has(n))return n1.get(n);const i=r?IQ:RQ,o={};"marketing-suite"===e&&(o.palette=BQ),"unstable"===e&&(o.palette=r?qQ:zQ,o.shape={borderRadius:8,__unstableBorderRadiusMultipliers:[0,.5,1,1.5,2.5]}),"argon-beta"===e&&(o.palette=r?XQ:GQ,o.shape={borderRadius:8,__unstableBorderRadiusMultipliers:[0,.5,1,1.5,2.5]}),t&&(o.direction="rtl");const s=NQ(i,o);return n1.set(n,s),s})({rtl:c,isDarkMode:p,palette:t||l?.themeName});return h&&(g=((e,t)=>{if(!t)return e;const r={};return["zIndex"].forEach((e=>{e in t&&(r[e]=t[e])})),eX(e,r,{clone:!0})})(g,h)),s().createElement(JQ,{value:{colorScheme:e,themeName:f,overrides:h,customTheme:m}},s().createElement(LJ,{theme:g},r))}));var o1=r(6461);const s1=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,a1=NQ({}),l1=(0,o1.Ay)({themeId:nY,defaultTheme:a1,rootShouldForwardProp:s1}),c1=(e,t)=>{if(!t?.shouldForwardProp)return l1(e,t);const r=t.shouldForwardProp,n={...t};return n.shouldForwardProp=e=>s1(e)&&r(e),l1(e,n)};function u1(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=u1(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const d1=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=u1(e))&&(n&&(n+=" "),n+=t);return n};function p1(e,t,r=void 0){const n={};return Object.keys(e).forEach((i=>{n[i]=e[i].reduce(((e,n)=>{if(n){const i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const h1=function(e){if("string"!=typeof e)throw new Error(YK(7));return e.charAt(0).toUpperCase()+e.slice(1)};function f1({props:e,name:t,defaultTheme:r,themeId:n}){let i=GK(r);return n&&(i=i[n]||i),TQ({theme:i,name:t,props:e})}const m1=rY();function g1({props:e,name:t}){return f1({props:e,name:t,defaultTheme:m1,themeId:nY})}const v1=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},y1=e=>v1(e)&&"classes"!==e,b1=(0,o1.Ay)({themeId:nY,defaultTheme:m1,rootShouldForwardProp:y1});function x1(e){return oY("MuiSvgIcon",e)}sY("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const w1=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],C1=b1("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${h1(r.color)}`],t[`fontSize${h1(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,i,o,s,a,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(s=o.pxToRem)?void 0:s.call(o,20))||"1.25rem",medium:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),_1=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiSvgIcon"}),{children:n,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24"}=r,f=(0,DK.A)(r,w1),m=o.isValidElement(n)&&"svg"===n.type,g=(0,NK.A)({},r,{color:a,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:m}),v={};d||(v.viewBox=h);const y=(e=>{const{color:t,fontSize:r,classes:n}=e;return p1({root:["root","inherit"!==t&&`color${h1(t)}`,`fontSize${h1(r)}`]},x1,n)})(g);return(0,i.jsxs)(C1,(0,NK.A)({as:l,className:d1(y.root,s),focusable:"false",color:u,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:t},v,f,m&&n.props,{ownerState:g,children:[m?n.props.children:n,p?(0,i.jsx)("title",{children:p}):null]}))}));_1.muiName="SvgIcon";const k1=_1;var S1=s().forwardRef(((e,t)=>s().createElement(k1,{...e,ref:t}))),A1=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C10.7196 2.25 9.45176 2.50219 8.26884 2.99217C7.08591 3.48216 6.01108 4.20034 5.10571 5.10571C4.20034 6.01108 3.48216 7.08591 2.99217 8.26884C2.50219 9.45176 2.25 10.7196 2.25 12C2.25 13.2804 2.50219 14.5482 2.99217 15.7312C3.48216 16.9141 4.20034 17.9889 5.10571 18.8943C6.01108 19.7997 7.08591 20.5178 8.26884 21.0078C9.45176 21.4978 10.7196 21.75 12 21.75C13.2804 21.75 14.5482 21.4978 15.7312 21.0078C16.9141 20.5178 17.9889 19.7997 18.8943 18.8943C19.7997 17.9889 20.5178 16.9141 21.0078 15.7312C21.4978 14.5482 21.75 13.2804 21.75 12C21.75 10.7196 21.4978 9.45176 21.0078 8.26884C20.5178 7.08591 19.7997 6.01108 18.8943 5.10571C17.9889 4.20034 16.9141 3.48216 15.7312 2.99217C14.5482 2.50219 13.2804 2.25 12 2.25ZM16.2415 10.0563C16.5344 9.76339 16.5344 9.28852 16.2415 8.99563C15.9486 8.70273 15.4737 8.70273 15.1809 8.99563L10.7631 13.4134L8.81939 11.4697C8.5265 11.1768 8.05163 11.1768 7.75873 11.4697C7.46584 11.7626 7.46584 12.2374 7.75873 12.5303L10.2328 15.0044C10.3734 15.145 10.5642 15.224 10.7631 15.224C10.962 15.224 11.1528 15.145 11.2934 15.0044L16.2415 10.0563Z"}))));function E1(e,t){const r=(0,NK.A)({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=(0,NK.A)({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},o&&Object.keys(o)?i&&Object.keys(i)?(r[n]=(0,NK.A)({},o),Object.keys(i).forEach((e=>{r[n][e]=E1(i[e],o[e])}))):r[n]=o:r[n]=i}else void 0===r[n]&&(r[n]=e[n])})),r}function R1(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function I1(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{R1(e,t)}))}),e)}const O1=I1,M1="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,T1=function(e){const t=o.useRef(e);return M1((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current},L1=T1,P1={},j1=[];class N1{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new N1}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function D1(){const e=function(e){const t=o.useRef(P1);return t.current===P1&&(t.current=e(void 0)),t}(N1.create).current;return function(e){o.useEffect(e,j1)}(e.disposeEffect),e}let B1=!0,F1=!1;const $1=new N1,z1={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 U1(e){e.metaKey||e.altKey||e.ctrlKey||(B1=!0)}function W1(){B1=!1}function q1(){"hidden"===this.visibilityState&&F1&&(B1=!0)}const V1=function(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",U1,!0),t.addEventListener("mousedown",W1,!0),t.addEventListener("pointerdown",W1,!0),t.addEventListener("touchstart",W1,!0),t.addEventListener("visibilitychange",q1,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return B1||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!z1[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(F1=!0,$1.start(100,(()=>{F1=!1})),t.current=!1,!0)},ref:e}};function H1(e,t){return H1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H1(e,t)}function G1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H1(e,t)}const Z1=s().createContext(null);function K1(e,t){var r=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),r}function X1(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Y1(e,t,r){var n=K1(e.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];a[i[l][n]]=r(c)}a[l]=r(l)}for(n=0;n<o.length;n++)a[o[n]]=r(o[n]);return a}(t,n);return Object.keys(i).forEach((function(s){var a=i[s];if((0,o.isValidElement)(a)){var l=s in t,c=s in n,u=t[s],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[s]=(0,o.cloneElement)(a,{onExited:r.bind(null,a),in:u.props.in,exit:X1(a,"exit",e),enter:X1(a,"enter",e)})):i[s]=(0,o.cloneElement)(a,{in:!1}):i[s]=(0,o.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:X1(a,"exit",e),enter:X1(a,"enter",e)})}})),i}var J1=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Q1=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}G1(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,i=t.children,s=t.handleExited;return{children:t.firstRender?(r=e,n=s,K1(r.children,(function(e){return(0,o.cloneElement)(e,{onExited:n.bind(null,e),in:!0,appear:X1(e,"appear",r),enter:X1(e,"enter",r),exit:X1(e,"exit",r)})}))):Y1(e,i,s),firstRender:!1}},r.handleExited=function(e,t){var r=K1(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,NK.A)({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=(0,DK.A)(e,["component","childFactory"]),i=this.state.contextValue,o=J1(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?s().createElement(Z1.Provider,{value:i},o):s().createElement(Z1.Provider,{value:i},s().createElement(t,n,o))},t}(s().Component);Q1.propTypes={},Q1.defaultProps={component:"div",childFactory:function(e){return e}};const e0=Q1;var t0=r(7437);const r0=sY("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),n0=["center","classes","className"];let i0,o0,s0,a0,l0=e=>e;const c0=(0,t0.i7)(i0||(i0=l0`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),u0=(0,t0.i7)(o0||(o0=l0`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),d0=(0,t0.i7)(s0||(s0=l0`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),p0=b1("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),h0=b1((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:s,rippleY:a,rippleSize:l,in:c,onExited:u,timeout:d}=e,[p,h]=o.useState(!1),f=d1(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+s},g=d1(r.child,p&&r.childLeaving,n&&r.childPulsate);return c||p||h(!0),o.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,i.jsx)("span",{className:f,style:m,children:(0,i.jsx)("span",{className:g})})}),{name:"MuiTouchRipple",slot:"Ripple"})(a0||(a0=l0`
  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;
  }
`),r0.rippleVisible,c0,550,(({theme:e})=>e.transitions.easing.easeInOut),r0.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),r0.child,r0.childLeaving,u0,550,(({theme:e})=>e.transitions.easing.easeInOut),r0.childPulsate,d0,(({theme:e})=>e.transitions.easing.easeInOut)),f0=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:s={},className:a}=r,l=(0,DK.A)(r,n0),[c,u]=o.useState([]),d=o.useRef(0),p=o.useRef(null);o.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[c]);const h=o.useRef(!1),f=D1(),m=o.useRef(null),g=o.useRef(null),v=o.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,(0,i.jsx)(h0,{classes:{ripple:d1(s.ripple,r0.ripple),rippleVisible:d1(s.rippleVisible,r0.rippleVisible),ripplePulsate:d1(s.ripplePulsate,r0.ripplePulsate),child:d1(s.child,r0.child),childLeaving:d1(s.childLeaving,r0.childLeaving),childPulsate:d1(s.childPulsate,r0.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},d.current)])),d.current+=1,p.current=a}),[s]),y=o.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:i=!1,center:o=n||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&h.current)return void(h.current=!1);"touchstart"===(null==e?void 0:e.type)&&(h.current=!0);const a=s?null:g.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{v({pulsate:i,rippleX:c,rippleY:u,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):v({pulsate:i,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[n,v,f]),b=o.useCallback((()=>{y({},{pulsate:!0})}),[y]),x=o.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{x(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),p.current=t}),[f]);return o.useImperativeHandle(t,(()=>({pulsate:b,start:y,stop:x})),[b,y,x]),(0,i.jsx)(p0,(0,NK.A)({className:d1(r0.root,s.root,a),ref:g},l,{children:(0,i.jsx)(e0,{component:null,exit:!0,children:c})}))})),m0=f0;function g0(e){return oY("MuiButtonBase",e)}const v0=sY("MuiButtonBase",["root","disabled","focusVisible"]),y0=["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"],b0=b1("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"},[`&.${v0.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),x0=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,LinkComponent:f="a",onBlur:m,onClick:g,onContextMenu:v,onDragLeave:y,onFocus:b,onFocusVisible:x,onKeyDown:w,onKeyUp:C,onMouseDown:_,onMouseLeave:k,onMouseUp:S,onTouchEnd:A,onTouchMove:E,onTouchStart:R,tabIndex:I=0,TouchRippleProps:O,touchRippleRef:M,type:T}=r,L=(0,DK.A)(r,y0),P=o.useRef(null),j=o.useRef(null),N=O1(j,M),{isFocusVisibleRef:D,onFocus:B,onBlur:F,ref:$}=V1(),[z,U]=o.useState(!1);u&&z&&U(!1),o.useImperativeHandle(n,(()=>({focusVisible:()=>{U(!0),P.current.focus()}})),[]);const[W,q]=o.useState(!1);o.useEffect((()=>{q(!0)}),[]);const V=W&&!d&&!u;function H(e,t,r=p){return L1((n=>(t&&t(n),!r&&j.current&&j.current[e](n),!0)))}o.useEffect((()=>{z&&h&&!d&&W&&j.current.pulsate()}),[d,h,z,W]);const G=H("start",_),Z=H("stop",v),K=H("stop",y),X=H("stop",S),Y=H("stop",(e=>{z&&e.preventDefault(),k&&k(e)})),J=H("start",R),Q=H("stop",A),ee=H("stop",E),te=H("stop",(e=>{F(e),!1===D.current&&U(!1),m&&m(e)}),!1),re=L1((e=>{P.current||(P.current=e.currentTarget),B(e),!0===D.current&&(U(!0),x&&x(e)),b&&b(e)})),ne=()=>{const e=P.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ie=o.useRef(!1),oe=L1((e=>{h&&!ie.current&&z&&j.current&&" "===e.key&&(ie.current=!0,j.current.stop(e,(()=>{j.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),g&&g(e))})),se=L1((e=>{h&&" "===e.key&&j.current&&z&&!e.defaultPrevented&&(ie.current=!1,j.current.stop(e,(()=>{j.current.pulsate(e)}))),C&&C(e),g&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let ae=c;"button"===ae&&(L.href||L.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===T?"button":T,le.disabled=u):(L.href||L.to||(le.role="button"),u&&(le["aria-disabled"]=u));const ce=O1(t,$,P),ue=(0,NK.A)({},r,{centerRipple:s,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:I,focusVisible:z}),de=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=p1({root:["root",t&&"disabled",r&&"focusVisible"]},g0,i);return r&&n&&(o.root+=` ${n}`),o})(ue);return(0,i.jsxs)(b0,(0,NK.A)({as:ae,className:d1(de.root,l),ownerState:ue,onBlur:te,onClick:g,onContextMenu:Z,onFocus:re,onKeyDown:oe,onKeyUp:se,onMouseDown:G,onMouseLeave:Y,onMouseUp:X,onDragLeave:K,onTouchEnd:Q,onTouchMove:ee,onTouchStart:J,ref:ce,tabIndex:u?-1:I,type:T},le,L,{children:[a,V?(0,i.jsx)(m0,(0,NK.A)({ref:N,center:s},O)):null]}))})),w0=x0;function C0(e){return oY("MuiButton",e)}const _0=sY("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),k0=o.createContext({}),S0=o.createContext(void 0),A0=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],E0=e=>(0,NK.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),R0=b1(w0,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${h1(r.color)}`],t[`size${h1(r.size)}`],t[`${r.variant}Size${h1(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,NK.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,NK.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,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,NK.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${_0.focusVisible}`]:(0,NK.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${_0.disabled}`]:(0,NK.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,nX.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,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"},[`&.${_0.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_0.disabled}`]:{boxShadow:"none"}})),I0=b1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${h1(r.size)}`]]}})((({ownerState:e})=>(0,NK.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},E0(e)))),O0=b1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${h1(r.size)}`]]}})((({ownerState:e})=>(0,NK.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},E0(e)))),M0=o.forwardRef((function(e,t){const r=o.useContext(k0),n=o.useContext(S0),s=g1({props:E1(r,e),name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:m,fullWidth:g=!1,size:v="medium",startIcon:y,type:b,variant:x="text"}=s,w=(0,DK.A)(s,A0),C=(0,NK.A)({},s,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:g,size:v,type:b,variant:x}),_=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,classes:s}=e,a=p1({root:["root",o,`${o}${h1(t)}`,`size${h1(i)}`,`${o}Size${h1(i)}`,`color${h1(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${h1(i)}`],endIcon:["icon","endIcon",`iconSize${h1(i)}`]},C0,s);return(0,NK.A)({},s,a)})(C),k=y&&(0,i.jsx)(I0,{className:_.startIcon,ownerState:C,children:y}),S=f&&(0,i.jsx)(O0,{className:_.endIcon,ownerState:C,children:f}),A=n||"";return(0,i.jsxs)(R0,(0,NK.A)({ownerState:C,className:d1(r.className,_.root,u,A),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:d1(_.focusVisible,m),ref:t,type:b},w,{classes:_,children:[k,a,S]}))}));function T0(){const e=GK(m1);return e[nY]||e}function L0(e){return oY("MuiCircularProgress",e)}sY("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const P0=["className","color","disableShrink","size","style","thickness","value","variant"];let j0,N0,D0,B0,F0=e=>e;const $0=(0,t0.i7)(j0||(j0=F0`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),z0=(0,t0.i7)(N0||(N0=F0`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),U0=b1("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${h1(r.color)}`]]}})((({ownerState:e,theme:t})=>(0,NK.A)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,t0.AH)(D0||(D0=F0`
      animation: ${0} 1.4s linear infinite;
    `),$0))),W0=b1("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),q0=b1("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${h1(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,NK.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,t0.AH)(B0||(B0=F0`
      animation: ${0} 1.4s ease-in-out infinite;
    `),z0))),V0=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,p=(0,DK.A)(r,P0),h=(0,NK.A)({},r,{color:o,disableShrink:s,size:a,thickness:c,value:u,variant:d}),f=(e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e;return p1({root:["root",r,`color${h1(n)}`],svg:["svg"],circle:["circle",`circle${h1(r)}`,i&&"circleDisableShrink"]},L0,t)})(h),m={},g={},v={};if("determinate"===d){const e=2*Math.PI*((44-c)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,i.jsx)(U0,(0,NK.A)({className:d1(f.root,n),style:(0,NK.A)({width:a,height:a},g,l),ownerState:h,ref:t,role:"progressbar"},v,p,{children:(0,i.jsx)(W0,{className:f.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,i.jsx)(q0,{className:f.circle,style:m,ownerState:h,cx:44,cy:44,r:(44-c)/2,fill:"none",strokeWidth:c})})}))})),H0=V0,G0={color:"inherit",size:"1em"},Z0=s().forwardRef(((e,t)=>s().createElement(H0,{...G0,...e,ref:t})));Z0.defaultProps=G0;var K0=Z0;const X0="rgba(0, 0, 0, 0.04)",Y0="rgba(0, 0, 0, 0.08)",J0=c1(M0)((({theme:e,ownerState:t})=>{const{color:r,unstableToColor:n,unstableGradientAngle:i}=t,o=r&&"inherit"!==r?r:"primary",s=!!e.palette[o]?.__unstableTonalMain,a=({variant:e})=>"unstableTonal"===e&&s,l=({variant:e})=>!!e&&!["contained","outlined","text"].includes(e);return{variants:[{props:()=>t.loading&&"center"===t.loadingPosition,style:{"&.MuiButtonBase-root":{"&, &:hover, &:focus, &:active":{color:"transparent"}},"& .MuiButton-loadingWrapper":{display:"contents","& .MuiButton-loadingIndicator":{display:"flex",position:"absolute",left:"50%",transform:"translateX(-50%)",color:e.palette.action.disabled}}}},{props:e=>a(e)&&"inherit"!==e.color&&!e.disabled,style:{background:e.palette[o]?.__unstableTonalMain,color:e.palette[o].main,"&:hover":{backgroundColor:e.palette[o]?.__unstableTonalDark}}},{props:e=>e.disabled&&l(e),style:{background:e.palette.action.disabledBackground,color:e.palette.action.disabled}},{props:e=>a(e)&&"inherit"===e.color,style:{background:X0,color:"inherit","&:hover":{backgroundColor:Y0}}},{props:e=>"unstableTonal"===e.variant&&!s,style:{background:"#ff0000",color:"#ff0000"}},{props:e=>"small"===e.size&&l(e),style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:e=>"large"===e.size&&l(e),style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:e=>(({variant:e})=>"unstableGradient"===e&&s)(e)&&!e.disabled,style:i2(e,i,r,n)},{props:e=>"unstableGradient"===e.variant&&!s,style:{background:"#ff0000",color:"#ff0000"}}]}})),Q0=(e="primary",t="text",r)=>{if(e)return"inherit"===e?"inherit":"contained"===t?`${e}.contrastText`:"unstableTonal"===t?`${e}.main`:r.palette.primary.__unstableAccessibleMain&&pQ.includes(e)?`${e}.${dJ}`:`${e}.main`},e2={loading:!1,loadingIndicator:s().createElement(K0,{color:"inherit",size:16}),loadingPosition:"center"},t2=s().forwardRef(((e,t)=>{const r={...e2,...e},n=s().useContext(k0),i=T0(),{sx:o={},unstableToColor:a,unstableGradientAngle:l,...c}=function(e){const{loading:t,loadingPosition:r,loadingIndicator:n,...i}=e;if(!t)return i;switch(r){case"start":i.startIcon=n;break;case"end":i.endIcon=n;break;case"center":i.children=s().createElement(n2,{loadingIndicator:n},e.children)}return{...i,disabled:!0}}(r),u={...c,loading:r.loading,loadingPosition:r.loadingPosition,loadingIndicator:r.loadingIndicator,unstableToColor:a,unstableGradientAngle:l};let d={};const p=c.href?uJ:"&:hover,&:focus,&:active",h=c.color||n?.color,f=c.variant||n?.variant;return d={[p]:{color:Q0(h,f,i)}},s().createElement(J0,{...c,color:h,variant:f,sx:{...d,...o},ref:t,ownerState:u})}));var r2=t2;function n2({loadingIndicator:e,children:t}){return s().createElement(s().Fragment,null,s().createElement("div",{className:"MuiButton-loadingWrapper"},s().createElement("div",{className:"MuiButton-loadingIndicator"},e)),t)}function i2(e,t,r,n){if(!r)return;const i=r,o=function(e,t){if(void 0!==t)return t;const{__unstableGradientAngle:r}=e.palette.action;return void 0!==r?r:125}(e,t);let{main:s,__unstableTonalMain:a,__unstableTonalDark:l}=e.palette[i]||{};"inherit"===r&&(s="inherit",a=X0,l=Y0);const c=[a],u=[l];if(n){const t=n,{__unstableTonalMain:r,__unstableTonalDark:i}=e.palette[t];c.push(r),u.push(i)}return{color:s,backgroundImage:`linear-gradient( ${o}deg, ${c.join(", ")} )`,"&:hover":{backgroundImage:`linear-gradient( ${o}deg, ${u.join(",")} )`}}}t2.defaultProps=e2;var o2=r(9452);const s2=o.createContext();function a2(e){return oY("MuiGrid",e)}const l2=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],c2=sY("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...l2.map((e=>`grid-xs-${e}`)),...l2.map((e=>`grid-sm-${e}`)),...l2.map((e=>`grid-md-${e}`)),...l2.map((e=>`grid-lg-${e}`)),...l2.map((e=>`grid-xl-${e}`))]),u2=c2,d2=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function p2(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function h2({breakpoints:e,values:t}){let r="";Object.keys(t).forEach((e=>{""===r&&0!==t[e]&&(r=e)}));const n=Object.keys(e).sort(((t,r)=>e[t]-e[r]));return n.slice(0,n.indexOf(r))}const f2=b1("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:i,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=r;let u=[];n&&(u=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&n.push(r[`spacing-${t}-${String(i)}`])})),n}(s,c,t));const d=[];return c.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==a&&t[`wrap-xs-${String(a)}`],...d]}})((({ownerState:e})=>(0,NK.A)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const r=(0,o2.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,o2.NI)({theme:e},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${u2.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let i={};if(r&&0!==n){const t=(0,o2.kW)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=h2({breakpoints:e.breakpoints.values,values:t})),i=(0,o2.NI)({theme:e},t,((t,n)=>{var i;const o=e.spacing(t);return"0px"!==o?{marginTop:`-${p2(o)}`,[`& > .${u2.item}`]:{paddingTop:p2(o)}}:null!=(i=r)&&i.includes(n)?{}:{marginTop:0,[`& > .${u2.item}`]:{paddingTop:0}}}))}return i}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let i={};if(r&&0!==n){const t=(0,o2.kW)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=h2({breakpoints:e.breakpoints.values,values:t})),i=(0,o2.NI)({theme:e},t,((t,n)=>{var i;const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${p2(o)})`,marginLeft:`-${p2(o)}`,[`& > .${u2.item}`]:{paddingLeft:p2(o)}}:null!=(i=r)&&i.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${u2.item}`]:{paddingLeft:0}}}))}return i}),(function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce(((n,i)=>{let o={};if(t[i]&&(r=t[i]),!r)return n;if(!0===r)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,o2.kW)({values:t.columns,breakpoints:e.breakpoints.values}),a="object"==typeof s?s[i]:s;if(null==a)return n;const l=Math.round(r/a*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${p2(r)})`;c={flexBasis:e,maxWidth:e}}}o=(0,NK.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[i]?Object.assign(n,o):n[e.breakpoints.up(i)]=o,n}),{})})),m2=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiGrid"}),{breakpoints:n}=T0(),s=(0,UK.A)(r),{className:a,columns:l,columnSpacing:c,component:u="div",container:d=!1,direction:p="row",item:h=!1,rowSpacing:f,spacing:m=0,wrap:g="wrap",zeroMinWidth:v=!1}=s,y=(0,DK.A)(s,d2),b=f||m,x=c||m,w=o.useContext(s2),C=d?l||12:w,_={},k=(0,NK.A)({},y);n.keys.forEach((e=>{null!=y[e]&&(_[e]=y[e],delete k[e])}));const S=(0,NK.A)({},s,{columns:C,container:d,direction:p,item:h,rowSpacing:b,columnSpacing:x,wrap:g,zeroMinWidth:v,spacing:m},_,{breakpoints:n.keys}),A=(e=>{const{classes:t,container:r,direction:n,item:i,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];r&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(o,l));const u=[];return l.forEach((t=>{const r=e[t];r&&u.push(`grid-${t}-${String(r)}`)})),p1({root:["root",r&&"container",i&&"item",a&&"zeroMinWidth",...c,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==s&&`wrap-xs-${String(s)}`,...u]},a2,t)})(S);return(0,i.jsx)(s2.Provider,{value:C,children:(0,i.jsx)(f2,(0,NK.A)({ownerState:S,className:d1(A.root,a),as:u,ref:t},k))})})),g2=m2;var v2=s().forwardRef(((e,t)=>s().createElement(g2,{...e,ref:t})));const y2=o.createContext({});function b2(e){return oY("MuiList",e)}sY("MuiList",["root","padding","dense","subheader"]);const x2=["children","className","component","dense","disablePadding","subheader"],w2=b1("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>(0,NK.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),C2=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiList"}),{children:n,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,d=(0,DK.A)(r,x2),p=o.useMemo((()=>({dense:l})),[l]),h=(0,NK.A)({},r,{component:a,dense:l,disablePadding:c}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return p1({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},b2,t)})(h);return(0,i.jsx)(y2.Provider,{value:p,children:(0,i.jsxs)(w2,(0,NK.A)({as:a,className:d1(f.root,s),ref:t,ownerState:h},d,{children:[u,n]}))})}));var _2=s().forwardRef(((e,t)=>s().createElement(C2,{...e,ref:t})));function k2(e){return"string"==typeof e}const S2=function(e,t){var r,n;return o.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)},A2=M1;function E2(e){return oY("MuiListItem",e)}const R2=sY("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),I2=sY("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function O2(e){return oY("MuiListItemSecondaryAction",e)}sY("MuiListItemSecondaryAction",["root","disableGutters"]);const M2=["className"],T2=b1("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,NK.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),L2=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,s=(0,DK.A)(r,M2),a=o.useContext(y2),l=(0,NK.A)({},r,{disableGutters:a.disableGutters}),c=(e=>{const{disableGutters:t,classes:r}=e;return p1({root:["root",t&&"disableGutters"]},O2,r)})(l);return(0,i.jsx)(T2,(0,NK.A)({className:d1(c.root,n),ownerState:l,ref:t},s))}));L2.muiName="ListItemSecondaryAction";const P2=L2,j2=["className"],N2=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],D2=b1("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,NK.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,NK.A)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${I2.root}`]:{paddingRight:48}},{[`&.${R2.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${R2.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${R2.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${R2.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"}},[`&.${R2.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),B2=b1("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),F2=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:s=!1,button:a=!1,children:l,className:c,component:u,components:d={},componentsProps:p={},ContainerComponent:h="li",ContainerProps:{className:f}={},dense:m=!1,disabled:g=!1,disableGutters:v=!1,disablePadding:y=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:w,selected:C=!1,slotProps:_={},slots:k={}}=r,S=(0,DK.A)(r.ContainerProps,j2),A=(0,DK.A)(r,N2),E=o.useContext(y2),R=o.useMemo((()=>({dense:m||E.dense||!1,alignItems:n,disableGutters:v})),[n,E.dense,m,v]),I=o.useRef(null);A2((()=>{s&&I.current&&I.current.focus()}),[s]);const O=o.Children.toArray(l),M=O.length&&S2(O[O.length-1],["ListItemSecondaryAction"]),T=(0,NK.A)({},r,{alignItems:n,autoFocus:s,button:a,dense:R.dense,disabled:g,disableGutters:v,disablePadding:y,divider:b,hasSecondaryAction:M,selected:C}),L=(e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:o,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e;return p1({root:["root",i&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",o&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},E2,n)})(T),P=O1(I,t),j=k.root||d.Root||D2,N=_.root||p.root||{},D=(0,NK.A)({className:d1(L.root,N.className,c),disabled:g},A);let B=u||"li";return a&&(D.component=u||"div",D.focusVisibleClassName=d1(R2.focusVisible,x),B=w0),M?(B=D.component||u?B:"div","li"===h&&("li"===B?B="div":"li"===D.component&&(D.component="div")),(0,i.jsx)(y2.Provider,{value:R,children:(0,i.jsxs)(B2,(0,NK.A)({as:h,className:d1(L.container,f),ref:P,ownerState:T},S,{children:[(0,i.jsx)(j,(0,NK.A)({},N,!k2(j)&&{as:B,ownerState:(0,NK.A)({},T,N.ownerState)},D,{children:O})),O.pop()]}))})):(0,i.jsx)(y2.Provider,{value:R,children:(0,i.jsxs)(j,(0,NK.A)({},N,{as:B,ref:P},!k2(j)&&{ownerState:(0,NK.A)({},T,N.ownerState)},D,{children:[O,w&&(0,i.jsx)(P2,{children:w})]}))})})),$2=F2;var z2=s().forwardRef(((e,t)=>s().createElement($2,{...e,ref:t})));function U2(e){return oY("MuiListItemIcon",e)}const W2=sY("MuiListItemIcon",["root","alignItemsFlexStart"]),q2=["className"],V2=b1("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,NK.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),H2=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiListItemIcon"}),{className:n}=r,s=(0,DK.A)(r,q2),a=o.useContext(y2),l=(0,NK.A)({},r,{alignItems:a.alignItems}),c=(e=>{const{alignItems:t,classes:r}=e;return p1({root:["root","flex-start"===t&&"alignItemsFlexStart"]},U2,r)})(l);return(0,i.jsx)(V2,(0,NK.A)({className:d1(c.root,n),ownerState:l,ref:t},s))}));var G2=s().forwardRef(((e,t)=>s().createElement(H2,{...e,ref:t})));function Z2(e){return oY("MuiTypography",e)}sY("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const K2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],X2=b1("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${h1(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,NK.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Y2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},J2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Q2=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTypography"}),n=(e=>J2[e]||e)(r.color),o=(0,UK.A)((0,NK.A)({},r,{color:n})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=Y2}=o,f=(0,DK.A)(o,K2),m=(0,NK.A)({},o,{align:s,color:n,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:h}),g=l||(d?"p":h[p]||Y2[p])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:s}=e;return p1({root:["root",o,"inherit"!==e.align&&`align${h1(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]},Z2,s)})(m);return(0,i.jsx)(X2,(0,NK.A)({as:g,ref:t,ownerState:m,className:d1(v.root,a)},f))}));function e5(e){return oY("MuiListItemText",e)}const t5=sY("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),r5=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],n5=b1("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${t5.primary}`]:t.primary},{[`& .${t5.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>(0,NK.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),i5=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiListItemText"}),{children:n,className:s,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p}=r,h=(0,DK.A)(r,r5),{dense:f}=o.useContext(y2);let m=null!=c?c:n,g=d;const v=(0,NK.A)({},r,{disableTypography:a,inset:l,primary:!!m,secondary:!!g,dense:f}),y=(e=>{const{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return p1({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},e5,t)})(v);return null==m||m.type===Q2||a||(m=(0,i.jsx)(Q2,(0,NK.A)({variant:f?"body2":"body1",className:y.primary,component:null!=u&&u.variant?void 0:"span",display:"block"},u,{children:m}))),null==g||g.type===Q2||a||(g=(0,i.jsx)(Q2,(0,NK.A)({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},p,{children:g}))),(0,i.jsxs)(n5,(0,NK.A)({className:d1(y.root,s),ownerState:v,ref:t},h,{children:[m,g]}))}));var o5=s().forwardRef(((e,t)=>s().createElement(i5,{...e,ref:t})));function s5(e,t,r){return void 0===e||k2(e)?t:(0,NK.A)({},t,{ownerState:(0,NK.A)({},t.ownerState,r)})}function a5(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function l5(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}function c5(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const e=d1(null==r?void 0:r.className,o,null==i?void 0:i.className,null==n?void 0:n.className),t=(0,NK.A)({},null==r?void 0:r.style,null==i?void 0:i.style,null==n?void 0:n.style),s=(0,NK.A)({},r,i,n);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=a5((0,NK.A)({},i,n)),a=l5(n),l=l5(i),c=t(s),u=d1(null==c?void 0:c.className,null==r?void 0:r.className,o,null==i?void 0:i.className,null==n?void 0:n.className),d=(0,NK.A)({},null==c?void 0:c.style,null==r?void 0:r.style,null==i?void 0:i.style,null==n?void 0:n.style),p=(0,NK.A)({},c,r,l,a);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function u5(e,t,r){return"function"==typeof e?e(t,r):e}const d5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function p5(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=(0,DK.A)(e,d5),a=o?{}:u5(n,i),{props:l,internalRef:c}=c5((0,NK.A)({},s,{externalSlotProps:a})),u=I1(c,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref);return s5(r,(0,NK.A)({},l,{ref:u}),i)}function h5(e){return e&&e.ownerDocument||document}function f5(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function m5(e){return h5(e).defaultView||window}function g5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function v5(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function y5(e){return parseInt(m5(e).getComputedStyle(e).paddingRight,10)||0}function b5(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&v5(e,i)}))}function x5(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const w5=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&v5(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);b5(t,e.mount,e.modalRef,n,!0);const i=x5(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=x5(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=h5(e);return t.body===e?m5(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=g5(h5(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${y5(n)+e}px`;const t=h5(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${y5(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=h5(n).body;else{const t=n.parentElement,r=m5(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=x5(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&v5(e.modalRef,t),b5(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&v5(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const C5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _5(e){const t=[],r=[];return Array.from(e.querySelectorAll(C5)).forEach(((e,n)=>{const i=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!==i&&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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function k5(){return!0}function S5(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:s=!1,getTabbable:a=_5,isEnabled:l=k5,open:c}=e,u=o.useRef(!1),d=o.useRef(null),p=o.useRef(null),h=o.useRef(null),f=o.useRef(null),m=o.useRef(!1),g=o.useRef(null),v=I1(t.ref,g),y=o.useRef(null);o.useEffect((()=>{c&&g.current&&(m.current=!r)}),[r,c]),o.useEffect((()=>{if(!c||!g.current)return;const e=h5(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{s||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}}),[c]),o.useEffect((()=>{if(!c||!g.current)return;const e=h5(g.current),t=t=>{y.current=t,!n&&l()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(u.current=!0,p.current&&p.current.focus())},r=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==d.current&&e.activeElement!==p.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==p.current||(r=a(g.current)),r.length>0){var i,o;const e=Boolean((null==(i=y.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,s,l,c,a]);const b=e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0};return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("div",{tabIndex:c?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:v,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,i.jsx)("div",{tabIndex:c?0:-1,onFocus:b,ref:p,"data-testid":"sentinelEnd"})]})}const A5=o.forwardRef((function(e,t){const{children:r,container:n,disablePortal:s=!1}=e,[l,c]=o.useState(null),u=I1(o.isValidElement(r)?r.ref:null,t);if(M1((()=>{s||c(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,s]),M1((()=>{if(l&&!s)return R1(t,l),()=>{R1(t,null)}}),[t,l,s]),s){if(o.isValidElement(r)){const e={ref:u};return o.cloneElement(r,e)}return(0,i.jsx)(o.Fragment,{children:r})}return(0,i.jsx)(o.Fragment,{children:l?a.createPortal(r,l):l})}));var E5="unmounted",R5="exited",I5="entering",O5="entered",M5="exiting",T5=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=R5,n.appearStatus=I5):i=O5:i=t.unmountOnExit||t.mountOnEnter?E5:R5,n.state={status:i},n.nextCallback=null,n}G1(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===E5?{status:R5}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==I5&&r!==O5&&(t=I5):r!==I5&&r!==O5||(t=M5)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===I5){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===R5&&this.setState({status:E5})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[l().findDOMNode(this),n],o=i[0],s=i[1],a=this.getTimeouts(),c=n?a.appear:a.enter;e||r?(this.props.onEnter(o,s),this.safeSetState({status:I5},(function(){t.props.onEntering(o,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:O5},(function(){t.props.onEntered(o,s)}))}))}))):this.safeSetState({status:O5},(function(){t.props.onEntered(o)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:l().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:M5},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:R5},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:R5},(function(){e.props.onExited(n)}))},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,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===E5)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,DK.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s().createElement(Z1.Provider,{value:null},"function"==typeof r?r(e,n):s().cloneElement(s().Children.only(r),n))},t}(s().Component);function L5(){}T5.contextType=Z1,T5.propTypes={},T5.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:L5,onEntering:L5,onEntered:L5,onExit:L5,onExiting:L5,onExited:L5},T5.UNMOUNTED=E5,T5.EXITED=R5,T5.ENTERING=I5,T5.ENTERED=O5,T5.EXITING=M5;const P5=T5,j5=e=>e.scrollTop;function N5(e,t){var r,n;const{timeout:i,easing:o,style:s={}}=e;return{duration:null!=(r=s.transitionDuration)?r:"number"==typeof i?i:i[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"==typeof o?o[t.mode]:o,delay:s.transitionDelay}}const D5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],B5={entering:{opacity:1},entered:{opacity:1}},F5=o.forwardRef((function(e,t){const r=T0(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,style:v,timeout:y=n,TransitionComponent:b=P5}=e,x=(0,DK.A)(e,D5),w=o.useRef(null),C=O1(w,l.ref,t),_=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},k=_(h),S=_(((e,t)=>{j5(e);const n=N5({style:v,timeout:y,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),d&&d(e,t)})),A=_(p),E=_(g),R=_((e=>{const t=N5({style:v,timeout:y,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),I=_(m);return(0,i.jsx)(b,(0,NK.A)({appear:a,in:u,nodeRef:w,onEnter:S,onEntered:A,onEntering:k,onExit:R,onExited:I,onExiting:E,addEndListener:e=>{s&&s(w.current,e)},timeout:y},x,{children:(e,t)=>o.cloneElement(l,(0,NK.A)({style:(0,NK.A)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},B5[e],v,l.props.style),ref:C},t))}))})),$5=F5;function z5(e){return oY("MuiBackdrop",e)}sY("MuiBackdrop",["root","invisible"]);const U5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],W5=b1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,NK.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),q5=o.forwardRef((function(e,t){var r,n,o;const s=g1({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:h,slotProps:f={},slots:m={},TransitionComponent:g=$5,transitionDuration:v}=s,y=(0,DK.A)(s,U5),b=(0,NK.A)({},s,{component:c,invisible:p}),x=(e=>{const{classes:t,invisible:r}=e;return p1({root:["root",r&&"invisible"]},z5,t)})(b),w=null!=(r=f.root)?r:d.root;return(0,i.jsx)(g,(0,NK.A)({in:h,timeout:v},y,{children:(0,i.jsx)(W5,(0,NK.A)({"aria-hidden":!0},w,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:c,className:d1(x.root,l,null==w?void 0:w.className),ownerState:(0,NK.A)({},b,null==w?void 0:w.ownerState),classes:x,ref:t,children:a}))}))})),V5=q5;function H5(e){return oY("MuiModal",e)}sY("MuiModal",["root","hidden","backdrop"]);const G5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Z5=b1("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,NK.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),K5=b1(V5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),X5=o.forwardRef((function(e,t){var r,n,s,a,l,c;const u=g1({name:"MuiModal",props:e}),{BackdropComponent:d=K5,BackdropProps:p,className:h,closeAfterTransition:f=!1,children:m,container:g,component:v,components:y={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:_=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:A=!1,keepMounted:E=!1,onBackdropClick:R,open:I,slotProps:O,slots:M}=u,T=(0,DK.A)(u,G5),L=(0,NK.A)({},u,{closeAfterTransition:f,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:_,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:A,keepMounted:E}),{getRootProps:P,getBackdropProps:j,getTransitionProps:N,portalRef:D,isTopModal:B,exited:F,hasTransition:$}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=w5,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,h=o.useRef({}),f=o.useRef(null),m=o.useRef(null),g=I1(m,p),[v,y]=o.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),C=()=>{i.mount(w(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},_=T1((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||h5(f.current).body;i.add(w(),e),m.current&&C()})),k=o.useCallback((()=>i.isTopModal(w())),[i]),S=T1((e=>{f.current=e,e&&(d&&k()?C():m.current&&v5(m.current,x))})),A=o.useCallback((()=>{i.remove(w(),x)}),[x,i]);o.useEffect((()=>()=>{A()}),[A]),o.useEffect((()=>{d?_():b&&s||A()}),[d,A,b,s,_]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},R=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=a5(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,NK.A)({},r,t);return(0,NK.A)({role:"presentation"},n,{onKeyDown:E(n),ref:g})},getBackdropProps:(e={})=>{const t=e;return(0,NK.A)({"aria-hidden":!0},t,{onClick:R(t),open:d})},getTransitionProps:()=>({onEnter:f5((()=>{y(!1),a&&a()}),null==c?void 0:c.props.onEnter),onExited:f5((()=>{y(!0),l&&l(),s&&A()}),null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:S,isTopModal:k,exited:v,hasTransition:b}}((0,NK.A)({},L,{rootRef:t})),z=(0,NK.A)({},L,{exited:F}),U=(e=>{const{open:t,exited:r,classes:n}=e;return p1({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},H5,n)})(z),W={};if(void 0===m.props.tabIndex&&(W.tabIndex="-1"),$){const{onEnter:e,onExited:t}=N();W.onEnter=e,W.onExited=t}const q=null!=(r=null!=(n=null==M?void 0:M.root)?n:y.Root)?r:Z5,V=null!=(s=null!=(a=null==M?void 0:M.backdrop)?a:y.Backdrop)?s:d,H=null!=(l=null==O?void 0:O.root)?l:b.root,G=null!=(c=null==O?void 0:O.backdrop)?c:b.backdrop,Z=p5({elementType:q,externalSlotProps:H,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:t,as:v},ownerState:z,className:d1(h,null==H?void 0:H.className,null==U?void 0:U.root,!z.open&&z.exited&&(null==U?void 0:U.hidden))}),K=p5({elementType:V,externalSlotProps:G,additionalProps:p,getSlotProps:e=>j((0,NK.A)({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:d1(null==G?void 0:G.className,null==p?void 0:p.className,null==U?void 0:U.backdrop),ownerState:z});return E||I||$&&!F?(0,i.jsx)(A5,{ref:D,container:g,disablePortal:_,children:(0,i.jsxs)(q,(0,NK.A)({},Z,{children:[!A&&d?(0,i.jsx)(V,(0,NK.A)({},K)):null,(0,i.jsx)(S5,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:B,open:I,children:o.cloneElement(m,W)})]}))}):null})),Y5=X5;var J5=s().forwardRef(((e,t)=>s().createElement(Y5,{...e,ref:t})));const Q5={variantMapping:{display1:"h1",display2:"h2",display3:"h3",display4:"h4",display5:"h5",display6:"h6"}},e3=s().forwardRef(((e,t)=>{const r={...Q5,...e,variantMapping:{...Q5.variantMapping,...e.variantMapping}};return s().createElement(Q2,{...r,ref:t})}));e3.defaultProps=Q5;var t3=e3;const r3=window.wp.i18n,n3=window.wp.apiFetch;var i3=r.n(n3);const o3=window.wp.url;class s3 extends Error{constructor(e){super(e),this.name="APIError"}}const a3=s3,l3="/wp/v2",c3="/elementor-one/v1",u3=class{static async request({path:e,data:t,method:r="POST"}){try{"GET"!==r||e.startsWith(l3)||(e=(0,o3.addQueryArgs)(e,{sb_time:(new Date).getTime()}));const n=await i3()({path:e,method:r,data:t});if(e.startsWith(l3)||e.startsWith(c3))return n;if(!n.success)throw new a3(n.data.message);return n.data}catch(e){throw e instanceof a3?e:new a3(e.message)}}},d3=window.wp.coreData,p3=window.wp.data,h3=()=>({save:async e=>await(0,p3.dispatch)(d3.store).saveEntityRecord("root","site",e),get:(0,p3.useSelect)((e=>({data:e(d3.store).getEntityRecord("root","site"),hasFinishedResolution:e(d3.store).hasFinishedResolution("getEntityRecord",["root","site"])})),[])});var f3;if("undefined"==typeof window){var m3={hostname:""};f3={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:m3,referrer:""},screen:{width:0,height:0},location:m3,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else f3=window;var g3={DEBUG:!1,LIB_VERSION:"2.80.0"},v3="__mp_targeting",y3="__mp_recorder",b3="__MP_TARGETING_FILENAME__";function x3(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w3(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function C3(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){w3(o,n,i,s,a,"next",e)}function a(e){w3(o,n,i,s,a,"throw",e)}s(void 0)}))}}function _3(e,t,r){return _3=L3()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&O3(i,r.prototype),i},_3.apply(null,arguments)}function k3(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function S3(){return S3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S3.apply(this,arguments)}function A3(e){return A3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A3(e)}function E3(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&&O3(e,t)}function R3(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function I3(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function O3(e,t){return O3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O3(e,t)}function M3(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function T3(e){var t="function"==typeof Map?new Map:void 0;return T3=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _3(e,arguments,A3(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O3(r,e)},T3(e)}function L3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L3=function(){return!!e})()}function P3(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return x3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x3(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 j3(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function N3(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var D3,B3=Object.defineProperty,F3=function(e,t,r){return function(e,t,r){return t in e?B3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":M3(t))?t+"":t,r)},$3=Object.defineProperty,z3=function(e,t,r){return function(e,t,r){return t in e?$3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":M3(t))?t+"":t,r)},U3=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(U3||{}),W3={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},q3={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},V3={};function H3(e){if(V3[e])return V3[e];var t=globalThis[e],r=t.prototype,n=e in W3?W3[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in q3?q3[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return V3[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?V3[e]=c:r}catch(e){return r}}var G3={};function Z3(e,t,r){var n,i=e+"."+String(r);if(G3[i])return G3[i].call(t);var o=H3(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(G3[i]=s,s.call(t)):t[r]}var K3=function(e){return Z3("Node",e,"childNodes")},X3=function(e){return Z3("Node",e,"parentNode")},Y3=function(e){return Z3("Node",e,"parentElement")},J3=function(e){return Z3("Node",e,"textContent")},Q3=function(e){return e&&"host"in e?Z3("ShadowRoot",e,"host"):null},e4=function(e){return e&&"shadowRoot"in e?Z3("Element",e,"shadowRoot"):null};function t4(e){return e.nodeType===e.ELEMENT_NODE}function r4(e){var t=e&&"host"in e&&"mode"in e&&Q3(e)||null;return Boolean(t&&"shadowRoot"in t&&e4(t)===e)}function n4(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function i4(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,(function(e){return o4(e,r)})).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function o4(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=i4(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?g4(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?g4(i,t):i}var s4=function(){function e(){z3(this,"idNodeMap",new Map),z3(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach((function(e){return r.removeNodeFromMap(e,t)}))},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function a4(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",l=i&&l4(i);return(r[n.toLowerCase()]||l&&r[l])&&(a=s?s(a,t):"*".repeat(a.length)),a}function l4(e){return e.toLowerCase()}var c4="__rrweb_original__";function u4(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?l4(t):null}function d4(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var p4=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,h4=/^(?:[a-z+]+:)?\/\//i,f4=/^www\..*/i,m4=/^(data:)([^,]*),(.*)/i;function g4(e,t){return(e||"").replace(p4,(function(e,r,n,i,o,s){var a,l=n||o||s,c=r||i||"";if(!l)return e;if(h4.test(l)||f4.test(l))return"url("+c+l+c+")";if(m4.test(l))return"url("+c+l+c+")";if("/"===l[0])return"url("+c+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+l)+c+")";var u=t.split("/"),d=l.split("/");u.pop();for(var p,h=P3(d);!(p=h()).done;){var f=p.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"}))}function v4(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var y4,b4,x4=1,w4=new RegExp("[^a-z0-9-_:]");function C4(){return x4++}var _4=/^[^ \t\n\r\u000c]+/,k4=/^[, \t\n\r\u000c]+/,S4=new WeakMap;function A4(e,t){return t&&""!==t.trim()?R4(e,t):t}function E4(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function R4(e,t){var r=S4.get(e);if(r||(r=e.createElement("a"),S4.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function I4(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?A4(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(k4),!(r>=t.length);){var o=n(_4);if(","===o.slice(-1))o=A4(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=A4(e,o);for(var a=!1;;){var l=t.charAt(r);if(""===l){i.push((o+s).trim());break}if(a)")"===l&&(a=!1);else{if(","===l){r+=1,i.push((o+s).trim());break}"("===l&&(a=!0)}s+=l,r+=1}}}return i.join(", ")}(e,n):"style"===r?g4(n,R4(e)):"object"===t&&"data"===r?A4(e,n):n:A4(e,n):n}function O4(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function M4(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&M4(X3(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&M4(X3(e),t,r)}function T4(e,t,r,n){var i;if(t4(e)){if(!K3(i=e).length)return!1}else{if(null===Y3(e))return!1;i=Y3(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(M4(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(e){}return!1}function L4(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,l=t.maskInputOptions,c=void 0===l?{}:l,u=t.maskTextFn,d=t.maskInputFn,p=t.dataURLOptions,h=void 0===p?{}:p,f=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,b=t.cssCaptured,x=void 0!==b&&b,w=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:U3.Document,childNodes:[],compatMode:e.compatMode}:{type:U3.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:U3.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,l=t.dataURLOptions,c=void 0===l?{}:l,u=t.inlineImages,d=t.recordCanvas,p=t.keepIframeSrcFn,h=t.newlyAddedElement,f=void 0!==h&&h,m=t.rootId,g=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector),v=function(e){if(R3(e,HTMLFormElement))return"form";var t=l4(e.tagName);return w4.test(t)?"div":t}(e),y={},b=e.attributes.length,x=0;x<b;x++){var w=e.attributes[x];O4(v,w.name,w.value)||(y[w.name]=I4(n,v,l4(w.name),w.value))}if("link"===v&&i){var C=Array.from(n.styleSheets).find((function(t){return t.href===e.href})),_=null;C&&(_=i4(C)),_&&(delete y.rel,delete y.href,y._cssText=_)}if("style"===v&&e.sheet){var k=i4(e.sheet);k&&(e.childNodes.length>1&&(k=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=v4(e,r),a=s.length/e.length,l=1;l<n.length;l++)if(n[l].textContent&&"string"==typeof n[l].textContent){for(var c=v4(n[l].textContent,r),u=3;u<c.length&&(c[u].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,u),1));u++);for(;u<c.length;u++){var d=c.substring(0,u),p=s.split(d),h=-1;if(2===p.length)h=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[l-1].textContent)h=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),(p=s.split(d)).length<=1)return i.push(e),i;u=101}else u===c.length-1&&(h=s.indexOf(d));if(p.length>=2&&u>100){var f=n[l-1].textContent;if(f&&"string"==typeof f){var m=v4(f).length;h=s.indexOf(d,m)}-1===h&&(h=p[0].length)}if(-1!==h){for(var g=Math.floor(h/a);g>0&&g<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=v4(e.substring(0,g),r);if(v.length===h){i.push(e.substring(0,g)),e=e.substring(g),s=s.substring(h);break}v.length<h?g+=Math.max(1,Math.floor((h-v.length)/a)):g-=Math.max(1,Math.floor((v.length-h)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}(k,e)),y._cssText=k)}if("input"===v||"textarea"===v||"select"===v){var S=e.value,A=e.checked;"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&S?y.value=a4({element:e,type:u4(e),tagName:v,value:S,maskInputOptions:s,maskInputFn:a}):A&&(y.checked=A)}if("option"===v&&(e.selected&&!s.select?y.selected=!0:delete y.selected),"dialog"===v&&e.open&&(y.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&d)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=c4 in i?i[c4]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(e)||(y.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){var E=e.toDataURL(c.type,c.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,E!==R.toDataURL(c.type,c.quality)&&(y.rr_dataURL=E)}if("img"===v&&u){y4||(y4=n.createElement("canvas"),b4=y4.getContext("2d"));var I=e,O=I.currentSrc||I.getAttribute("src")||"<unknown-src>",M=I.crossOrigin,T=function(){I.removeEventListener("load",T);try{y4.width=I.naturalWidth,y4.height=I.naturalHeight,b4.drawImage(I,0,0),y.rr_dataURL=y4.toDataURL(c.type,c.quality)}catch(e){if("anonymous"!==I.crossOrigin)return I.crossOrigin="anonymous",void(I.complete&&0!==I.naturalWidth?T():I.addEventListener("load",T));console.warn("Cannot inline img src="+O+"! Error: "+e)}"anonymous"===I.crossOrigin&&(M?y.crossOrigin=M:I.removeAttribute("crossorigin"))};I.complete&&0!==I.naturalWidth?T():I.addEventListener("load",T)}if("audio"===v||"video"===v){var L=y;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),g){var P=e.getBoundingClientRect(),j=P.width,N=P.height;y={class:y.class,rr_width:j+"px",rr_height:N+"px"}}"iframe"!==v||p(y.src)||(e.contentDocument||(y.rr_src=y.src),delete y.src);try{customElements.get(v)&&(r=!0)}catch(e){}return{type:U3.Element,tagName:v,attributes:y,childNodes:[],isSVG:E4(e)||void 0,needBlock:g,rootId:m,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:d,dataURLOptions:h,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=X3(e),a=s&&s.tagName,l="",c="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?l="SCRIPT_PLACEHOLDER":o||(l=J3(e),c&&l&&(l=g4(l,R4(t.doc)))),!c&&!u&&l&&r&&(l=n?n(l,Y3(e)):l.replace(/[\S]/g,"*")),{type:U3.Text,textContent:l||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:u,rootId:w,cssCaptured:x});case e.CDATA_SECTION_NODE:return{type:U3.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:U3.Comment,textContent:J3(e)||"",rootId:w};default:return!1}}function P4(e){return null==e?"":e.toLowerCase()}function j4(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,l=t.skipChild,c=void 0!==l&&l,u=t.inlineStylesheet,d=void 0===u||u,p=t.maskInputOptions,h=void 0===p?{}:p,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,x=void 0!==b&&b,w=t.recordCanvas,C=void 0!==w&&w,_=t.onSerialize,k=t.onIframeLoad,S=t.iframeLoadTimeout,A=void 0===S?5e3:S,E=t.onStylesheetLoad,R=t.stylesheetLoadTimeout,I=void 0===R?5e3:R,O=t.keepIframeSrcFn,M=void 0===O?function(){return!1}:O,T=t.newlyAddedElement,L=void 0!==T&&T,P=t.cssCaptured,j=void 0!==P&&P,N=t.needsMask,D=t.preserveWhiteSpace,B=void 0===D||D;N||(N=T4(e,s,a,void 0===N));var F,$=L4(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:x,recordCanvas:C,keepIframeSrcFn:M,newlyAddedElement:L,cssCaptured:j});if(!$)return console.warn(e,"not serialized"),null;F=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===U3.Comment)return!0;if(e.type===U3.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===d4(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(P4(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===P4(e.attributes.name)||"icon"===P4(e.attributes.rel)||"apple-touch-icon"===P4(e.attributes.rel)||"shortcut icon"===P4(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&P4(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(P4(e.attributes.property).match(/^(og|twitter|fb):/)||P4(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===P4(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===P4(e.attributes.name)||"googlebot"===P4(e.attributes.name)||"bingbot"===P4(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===P4(e.attributes.name)||"generator"===P4(e.attributes.name)||"framework"===P4(e.attributes.name)||"publisher"===P4(e.attributes.name)||"progid"===P4(e.attributes.name)||P4(e.attributes.property).match(/^article:/)||P4(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===P4(e.attributes.name)||"yandex-verification"===P4(e.attributes.name)||"csrf-token"===P4(e.attributes.name)||"p:domain_verify"===P4(e.attributes.name)||"verify-v1"===P4(e.attributes.name)||"verification"===P4(e.attributes.name)||"shopify-checkout-api-token"===P4(e.attributes.name)))return!0}}return!1}($,g)||!B&&$.type===U3.Text&&!$.textContent.replace(/^\s+|\s+$/gm,"").length?-2:C4();var z=Object.assign($,{id:F});if(n.add(e,z),-2===F)return null;_&&_(e);var U=!c;if(z.type===U3.Element){U=U&&!z.needBlock,delete z.needBlock;var W=e4(e);W&&n4(W)&&(z.isShadowHost=!0)}if((z.type===U3.Document||z.type===U3.Element)&&U){g.headWhitespace&&z.type===U3.Element&&"head"===z.tagName&&(B=!1);var q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:x,recordCanvas:C,preserveWhiteSpace:B,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(z.type===U3.Element&&"textarea"===z.tagName&&void 0!==z.attributes.value);else{z.type===U3.Element&&void 0!==z.attributes._cssText&&"string"==typeof z.attributes._cssText&&(q.cssCaptured=!0);for(var V,H=P3(Array.from(K3(e)));!(V=H()).done;){var G=j4(V.value,q);G&&z.childNodes.push(G)}}var Z=null;if(t4(e)&&(Z=e4(e)))for(var K,X=P3(Array.from(K3(Z)));!(K=X()).done;){var Y=j4(K.value,q);Y&&(n4(Z)&&(Y.isShadow=!0),z.childNodes.push(Y))}}var J=X3(e);return J&&r4(J)&&n4(J)&&(z.isShadow=!0),z.type===U3.Element&&"iframe"===z.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),o=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&k){var r=j4(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:x,recordCanvas:C,preserveWhiteSpace:B,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&k(e,r)}}),A),z.type===U3.Element&&"link"===z.tagName&&"string"==typeof z.attributes.rel&&("stylesheet"===z.attributes.rel||"preload"===z.attributes.rel&&"string"==typeof z.attributes.href&&"css"===d4(z.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(o),i=!0,t()}))}}(e,(function(){if(E){var t=j4(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:x,recordCanvas:C,preserveWhiteSpace:B,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&E(e,t)}}),I),z}function N4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D4(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return R3(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var B4={exports:{}},F4=String,$4=function(){return{isColorSupported:!1,reset:F4,bold:F4,dim:F4,italic:F4,underline:F4,inverse:F4,hidden:F4,strikethrough:F4,black:F4,red:F4,green:F4,yellow:F4,blue:F4,magenta:F4,cyan:F4,white:F4,gray:F4,bgBlack:F4,bgRed:F4,bgGreen:F4,bgYellow:F4,bgBlue:F4,bgMagenta:F4,bgCyan:F4,bgWhite:F4}};B4.exports=$4(),B4.exports.createColors=$4;var z4=B4.exports,U4=D4(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),W4=z4,q4=U4,V4=function(e){function t(r,n,i,o,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),o&&(l.source=o),a&&(l.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}E3(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=W4.isColorSupported),q4&&e&&(r=q4(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;if(e){var c=W4.createColors(!0),u=c.bold,d=c.gray,p=c.red;n=function(e){return u(p(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(T3(Error)),H4=V4;V4.default=V4;var G4={};G4.isClean=Symbol("isClean"),G4.my=Symbol("my");var Z4={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},K4=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Z4[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=Z4[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),X4=K4;K4.default=K4;var Y4=X4;function J4(e,t){new Y4(t).stringify(e)}var Q4=J4;J4.default=J4;var e7=G4.isClean,t7=G4.my,r7=H4,n7=X4,i7=Q4;function o7(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":M3(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return o7(e,r)})):("object"===o&&null!==i&&(i=o7(i)),r[n]=i)}return r}var s7=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[e7]=!1,this[t7]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=P3(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=o7(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new r7(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[e7]){this[e7]=!1;for(var e=this;e=e.parent;)e[e7]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new n7).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=P3(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":M3(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":M3(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=i7),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},k3(e,[{key:"proxyOf",get:function(){return this}}]),e}(),a7=s7;s7.default=s7;var l7=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=S3({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return E3(t,e),k3(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(a7),c7=l7;l7.default=l7;var u7=U4.SourceMapConsumer,d7=U4.SourceMapGenerator,p7=U4.existsSync,h7=U4.readFileSync,f7=U4.dirname,m7=U4.join,g7=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=f7(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new u7(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":M3(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=f7(e),p7(e))return this.mapFile=e,h7(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(R3(t,u7))return d7.fromSourceMap(t).toString();if(R3(t,d7))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=m7(f7(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),v7=g7;g7.default=g7;var y7=U4.SourceMapConsumer,b7=U4.SourceMapGenerator,x7=U4.fileURLToPath,w7=U4.pathToFileURL,C7=U4.isAbsolute,_7=U4.resolve,k7=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},S7=U4,A7=H4,E7=v7,R7=Symbol("fromOffsetCache"),I7=Boolean(y7&&b7),O7=Boolean(_7&&C7),M7=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":M3(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!O7||/^\w+:\/\//.test(t.from)||C7(t.from)?this.file=t.from:this.file=_7(t.from)),O7&&I7){var r=new E7(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+k7(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":M3(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);o=u.line,s=u.col}else o=l.line,s=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var p=this.origin(t,r,o,s);return(i=p?new A7(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new A7(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(w7&&(i.input.url=w7(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[R7])t=this[R7];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[R7]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:_7(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=C7(a.source)?w7(a.source):new URL(a.source,this.map.consumer().sourceRoot||w7(this.map.mapFile));var l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!x7)throw new Error("file: protocol is not available in this PostCSS build");l.file=x7(o)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=S3({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},k3(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),T7=M7;M7.default=M7,S7&&S7.registerInput&&S7.registerInput(M7);var L7=U4.SourceMapConsumer,P7=U4.SourceMapGenerator,j7=U4.dirname,N7=U4.relative,D7=U4.resolve,B7=U4.sep,F7=U4.pathToFileURL,$7=T7,z7=Boolean(L7&&P7),U7=Boolean(j7&&D7&&N7&&B7),W7=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=P3(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||j7(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new L7(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),U7&&z7&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=P7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new P7({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new P7({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?j7(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=j7(D7(r,this.mapOpts.annotation)));var n=N7(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new $7(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(F7){var r=F7(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===B7&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),q7=W7,V7=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return E3(t,e),t}(a7),H7=V7;V7.default=V7;var G7,Z7,K7,X7,Y7=G4.isClean,J7=G4.my,Q7=c7,e6=H7;function t6(e){return e.map((function(e){return e.nodes&&(e.nodes=t6(e.nodes)),delete e.source,e}))}function r6(e){if(e[Y7]=!1,e.proxyOf.nodes)for(var t,r=P3(e.proxyOf.nodes);!(t=r()).done;)r6(t.value)}var n6=function(e){function t(){return e.apply(this,arguments)||this}E3(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=P3(t);!(n=i()).done;)for(var o,s=n.value,a=P3(this.normalize(s,this.last));!(o=a()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=P3(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=P3(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=P3(o);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(n,0,l)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=t6(G7(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=P3(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=P3(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Q7(e)]}else if(e.selector)e=[new Z7(e)];else if(e.name)e=[new K7(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new e6(e)]}var u=e.map((function(e){return e[J7]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Y7]&&r6(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return u},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=P3(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),l=P3(a);!(o=l()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=P3(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},k3(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(a7);n6.registerParse=function(e){G7=e},n6.registerRule=function(e){Z7=e},n6.registerAtRule=function(e){K7=e},n6.registerRoot=function(e){X7=e};var i6=n6;n6.default=n6,n6.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,K7.prototype):"rule"===e.type?Object.setPrototypeOf(e,Z7.prototype):"decl"===e.type?Object.setPrototypeOf(e,Q7.prototype):"comment"===e.type?Object.setPrototypeOf(e,e6.prototype):"root"===e.type&&Object.setPrototypeOf(e,X7.prototype),e[J7]=!0,e.nodes&&e.nodes.forEach((function(e){n6.rebuild(e)}))};var o6,s6,a6=function(e){function t(t){var r;return(r=e.call(this,S3({type:"document"},t))||this).nodes||(r.nodes=[]),r}return E3(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new o6(new s6,this,e).stringify()},t}(i6);a6.registerLazyResult=function(e){o6=e},a6.registerProcessor=function(e){s6=e};var l6=a6;a6.default=a6;var c6=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),u6=c6;c6.default=c6;var d6=u6,p6=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new d6(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},k3(e,[{key:"content",get:function(){return this.css}}]),e}(),h6=p6;p6.default=p6;var f6="'".charCodeAt(0),m6='"'.charCodeAt(0),g6="\\".charCodeAt(0),v6="/".charCodeAt(0),y6="\n".charCodeAt(0),b6=" ".charCodeAt(0),x6="\f".charCodeAt(0),w6="\t".charCodeAt(0),C6="\r".charCodeAt(0),_6="[".charCodeAt(0),k6="]".charCodeAt(0),S6="(".charCodeAt(0),A6=")".charCodeAt(0),E6="{".charCodeAt(0),R6="}".charCodeAt(0),I6=";".charCodeAt(0),O6="*".charCodeAt(0),M6=":".charCodeAt(0),T6="@".charCodeAt(0),L6=/[\t\n\f\r "#'()/;[\\\]{}]/g,P6=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,j6=/.[\r\n"'(/\\]/,N6=/[\da-f]/i,D6=i6,B6=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}E3(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(D6),F6=B6;B6.default=B6,D6.registerAtRule(B6);var $6,z6,U6=i6,W6=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}E3(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=P3(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new $6(new z6,this,e).stringify()},t}(U6);W6.registerLazyResult=function(e){$6=e},W6.registerProcessor=function(e){z6=e};var q6=W6;W6.default=W6,U6.registerRoot(W6);var V6={comma:function(e){return V6.split(e,[","],!0)},space:function(e){return V6.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,l=!1,c="",u=!1,d=P3(e);!(n=d()).done;){var p=n.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},H6=V6;V6.default=V6;var G6=i6,Z6=H6,K6=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return E3(t,e),k3(t,[{key:"selectors",get:function(){return Z6.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(G6),X6=K6;K6.default=K6,G6.registerRule(K6);var Y6=c7,J6=H7,Q6=F6,e8=q6,t8=X6,r8={empty:!0,space:!0},n8=function(){function e(e){this.input=e,this.root=new e8,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Q6;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=P3(e.entries());!(i=s()).done;){var a=i.value,l=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new J6;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,l,c,u,d,p=e.css.valueOf(),h=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case y6:case b6:case w6:case C6:case x6:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===b6||r===y6||r===w6||r===C6||r===x6);d=["space",p.slice(m,n)],m=n-1;break;case _6:case k6:case E6:case R6:case M6:case I6:case A6:var b=String.fromCharCode(r);d=[b,b,m];break;case S6:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==f6&&u!==m6&&u!==b6&&u!==y6&&u!==w6&&u!==x6&&u!==C6){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===g6;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||j6.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case f6:case m6:i=r===f6?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===g6;)l-=1,a=!a}while(a);d=["string",p.slice(m,n+1),m,n],m=n;break;case T6:L6.lastIndex=m+1,L6.test(p),n=0===L6.lastIndex?p.length-1:L6.lastIndex-2,d=["at-word",p.slice(m,n+1),m,n],m=n;break;case g6:for(n=m,s=!0;p.charCodeAt(n+1)===g6;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==v6&&r!==b6&&r!==y6&&r!==w6&&r!==C6&&r!==x6&&(n+=1,N6.test(p.charAt(n)))){for(;N6.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===b6&&(n+=1)}d=["word",p.slice(m,n+1),m,n],m=n;break;default:r===v6&&p.charCodeAt(m+1)===O6?(0===(n=p.indexOf("*/",m+2)+1)&&(h||t?n=p.length:y("comment")),d=["comment",p.slice(m,n+1),m,n],m=n):(P6.lastIndex=m+1,P6.test(p),n=0===P6.lastIndex?p.length-1:P6.lastIndex-2,d=["word",p.slice(m,n+1),m,n],g.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new Y6;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var h=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));f&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new t8;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,l=r.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(a=r[d-1]?r[d-1][0]:"empty",s=r[d+1]?r[d+1][0]:"empty",r8[a]||r8[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new t8;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),i8=i6,o8=n8,s8=T7;function a8(e,t){var r=new s8(e,t),n=new o8(r);try{n.parse()}catch(e){throw e}return n.root}var l8=a8;a8.default=a8,i8.registerParse(a8);var c8=G4.isClean,u8=G4.my,d8=q7,p8=Q4,h8=i6,f8=l6,m8=h6,g8=l8,v8=q6,y8={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},b8={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},x8={Once:!0,postcssPlugin:!0,prepare:!0};function w8(e){return"object"===(void 0===e?"undefined":M3(e))&&"function"==typeof e.then}function C8(e){var t=!1,r=y8[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function _8(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:C8(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function k8(e){return e[c8]=!1,e.nodes&&e.nodes.forEach((function(e){return k8(e)})),e}var S8={},A8=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":M3(r))||null===r||"root"!==r.type&&"document"!==r.type)if(R3(r,e)||R3(r,m8))i=k8(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=g8;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[u8]&&h8.rebuild(i)}else i=k8(r);this.result=new m8(t,i,n),this.helpers=S3({},S8,{postcss:S8,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":M3(e))&&e.prepare?S3({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=P3(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":M3(i)))for(var o in i){if(!b8[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!x8[o])if("object"===M3(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return C3((function(){var t,r,n,i,o,s,a,l,c,u,d,p;return j3(this,(function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!w8(n=e.runOnRoot(r)))return[3,5];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,n];case 3:return h.sent(),[3,5];case 4:throw i=h.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,h.label=7;case 7:if(o[c8])return[3,14];o[c8]=!0,s=[_8(o)],h.label=8;case 8:if(!(s.length>0))return[3,13];if(!w8(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return j3(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},d=P3(e.listeners.OnceExit),h.label=15;case 15:return(p=d()).done?[3,18]:[5,N3(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":M3(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return w8(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=p8;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new d8(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=P3(this.plugins);!(e=t()).done;){var r=e.value;if(w8(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[c8];)n[c8]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=P3(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=P3(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(w8(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,l=t.iterator;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[c8])return a[c8]=!0,void e.push(_8(a));t.iterator=0,delete r.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[c8]=!0,t.iterator=r.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[c8]=!0;for(var r,n=P3(C8(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[c8]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},k3(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();A8.registerPostcss=function(e){S8=e};var E8=A8;A8.default=A8,v8.registerLazyResult(A8),f8.registerLazyResult(A8);var R8=q7,I8=Q4,O8=l8,M8=h6,T8=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=I8;this.result=new M8(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new R8(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},k3(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=O8;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),L8=T8;T8.default=T8;var P8=L8,j8=E8,N8=l6,D8=q6,B8=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=P3(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":M3(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":M3(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":M3(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new j8(this,e,t):new P8(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),F8=B8;B8.default=B8,D8.registerProcessor(B8),N8.registerProcessor(B8);var $8=c7,z8=v7,U8=H7,W8=F6,q8=T7,V8=q6,H8=X6;function G8(e,t){if(Array.isArray(e))return e.map((function(e){return G8(e)}));var r=e.inputs,n=I3(e,["inputs"]);if(r){t=[];for(var i,o=P3(r);!(i=o()).done;){var s=S3({},i.value,{__proto__:q8.prototype});s.map&&(s.map=S3({},s.map,{__proto__:z8.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return G8(e,t)}))),n.source){var a=n.source,l=a.inputId,c=I3(a,["inputId"]);n.source=c,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new V8(n);if("decl"===n.type)return new $8(n);if("rule"===n.type)return new H8(n);if("comment"===n.type)return new U8(n);if("atrule"===n.type)return new W8(n);throw new Error("Unknown node type: "+e.type)}var Z8=G8;G8.default=G8;var K8=H4,X8=c7,Y8=E8,J8=i6,Q8=F8,e9=Q4,t9=Z8,r9=l6,n9=u6,i9=H7,o9=F6,s9=h6,a9=T7,l9=l8,c9=H6,u9=X6,d9=q6,p9=a7;function h9(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Q8(t)}h9.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Q8).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return h9([i(r)]).process(e,t)},i},h9.stringify=e9,h9.parse=l9,h9.fromJSON=t9,h9.list=c9,h9.comment=function(e){return new i9(e)},h9.atRule=function(e){return new o9(e)},h9.decl=function(e){return new X8(e)},h9.rule=function(e){return new u9(e)},h9.root=function(e){return new d9(e)},h9.document=function(e){return new r9(e)},h9.CssSyntaxError=K8,h9.Declaration=X8,h9.Container=J8,h9.Processor=Q8,h9.Document=r9,h9.Comment=i9,h9.Warning=n9,h9.AtRule=o9,h9.Result=s9,h9.Input=a9,h9.Rule=u9,h9.Root=d9,h9.Node=p9,Y8.registerPostcss(h9);var f9=h9;h9.default=h9;var m9=N4(f9);m9.stringify,m9.fromJSON,m9.plugin,m9.parse,m9.list,m9.document,m9.comment,m9.atRule,m9.rule,m9.decl,m9.root,m9.CssSyntaxError,m9.Declaration,m9.Container,m9.Processor,m9.Document,m9.Comment,m9.Warning,m9.AtRule,m9.Result,m9.Input,m9.Rule,m9.Root,m9.Node;var g9=Object.defineProperty,v9=function(e,t,r){return function(e,t,r){return t in e?g9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":M3(t))?t+"":t,r)};function y9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b9(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return R3(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var x9={exports:{}},w9=String,C9=function(){return{isColorSupported:!1,reset:w9,bold:w9,dim:w9,italic:w9,underline:w9,inverse:w9,hidden:w9,strikethrough:w9,black:w9,red:w9,green:w9,yellow:w9,blue:w9,magenta:w9,cyan:w9,white:w9,gray:w9,bgBlack:w9,bgRed:w9,bgGreen:w9,bgYellow:w9,bgBlue:w9,bgMagenta:w9,bgCyan:w9,bgWhite:w9}};x9.exports=C9(),x9.exports.createColors=C9;var _9=x9.exports,k9=b9(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),S9=_9,A9=k9,E9=function(e){function t(r,n,i,o,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),o&&(l.source=o),a&&(l.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}E3(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=S9.isColorSupported),A9&&e&&(r=A9(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;if(e){var c=S9.createColors(!0),u=c.bold,d=c.gray,p=c.red;n=function(e){return u(p(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(T3(Error)),R9=E9;E9.default=E9;var I9={};I9.isClean=Symbol("isClean"),I9.my=Symbol("my");var O9={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},M9=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return O9[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=O9[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),T9=M9;M9.default=M9;var L9=T9;function P9(e,t){new L9(t).stringify(e)}var j9=P9;P9.default=P9;var N9=I9.isClean,D9=I9.my,B9=R9,F9=T9,$9=j9;function z9(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":M3(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return z9(e,r)})):("object"===o&&null!==i&&(i=z9(i)),r[n]=i)}return r}var U9=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[N9]=!1,this[D9]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=P3(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=z9(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new B9(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[N9]){this[N9]=!1;for(var e=this;e=e.parent;)e[N9]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new F9).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=P3(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":M3(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":M3(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=$9),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},k3(e,[{key:"proxyOf",get:function(){return this}}]),e}(),W9=U9;U9.default=U9;var q9=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=S3({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return E3(t,e),k3(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(W9),V9=q9;q9.default=q9;var H9=k9.SourceMapConsumer,G9=k9.SourceMapGenerator,Z9=k9.existsSync,K9=k9.readFileSync,X9=k9.dirname,Y9=k9.join,J9=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=X9(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new H9(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":M3(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=X9(e),Z9(e))return this.mapFile=e,K9(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(R3(t,H9))return G9.fromSourceMap(t).toString();if(R3(t,G9))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Y9(X9(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Q9=J9;J9.default=J9;var eee=k9.SourceMapConsumer,tee=k9.SourceMapGenerator,ree=k9.fileURLToPath,nee=k9.pathToFileURL,iee=k9.isAbsolute,oee=k9.resolve,see=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},aee=k9,lee=R9,cee=Q9,uee=Symbol("fromOffsetCache"),dee=Boolean(eee&&tee),pee=Boolean(oee&&iee),hee=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":M3(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!pee||/^\w+:\/\//.test(t.from)||iee(t.from)?this.file=t.from:this.file=oee(t.from)),pee&&dee){var r=new cee(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+see(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":M3(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);o=u.line,s=u.col}else o=l.line,s=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var p=this.origin(t,r,o,s);return(i=p?new lee(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new lee(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(nee&&(i.input.url=nee(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[uee])t=this[uee];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[uee]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:oee(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=iee(a.source)?nee(a.source):new URL(a.source,this.map.consumer().sourceRoot||nee(this.map.mapFile));var l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!ree)throw new Error("file: protocol is not available in this PostCSS build");l.file=ree(o)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=S3({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},k3(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),fee=hee;hee.default=hee,aee&&aee.registerInput&&aee.registerInput(hee);var mee=k9.SourceMapConsumer,gee=k9.SourceMapGenerator,vee=k9.dirname,yee=k9.relative,bee=k9.resolve,xee=k9.sep,wee=k9.pathToFileURL,Cee=fee,_ee=Boolean(mee&&gee),kee=Boolean(vee&&bee&&yee&&xee),See=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=P3(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||vee(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new mee(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),kee&&_ee&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=gee.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new gee({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new gee({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?vee(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=vee(bee(r,this.mapOpts.annotation)));var n=yee(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new Cee(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wee){var r=wee(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===xee&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Aee=See,Eee=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return E3(t,e),t}(W9),Ree=Eee;Eee.default=Eee;var Iee,Oee,Mee,Tee,Lee=I9.isClean,Pee=I9.my,jee=V9,Nee=Ree;function Dee(e){return e.map((function(e){return e.nodes&&(e.nodes=Dee(e.nodes)),delete e.source,e}))}function Bee(e){if(e[Lee]=!1,e.proxyOf.nodes)for(var t,r=P3(e.proxyOf.nodes);!(t=r()).done;)Bee(t.value)}var Fee=function(e){function t(){return e.apply(this,arguments)||this}E3(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=P3(t);!(n=i()).done;)for(var o,s=n.value,a=P3(this.normalize(s,this.last));!(o=a()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=P3(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=P3(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=P3(o);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(n,0,l)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Dee(Iee(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=P3(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=P3(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new jee(e)]}else if(e.selector)e=[new Oee(e)];else if(e.name)e=[new Mee(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Nee(e)]}var u=e.map((function(e){return e[Pee]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Lee]&&Bee(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return u},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=P3(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),l=P3(a);!(o=l()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=P3(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},k3(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(W9);Fee.registerParse=function(e){Iee=e},Fee.registerRule=function(e){Oee=e},Fee.registerAtRule=function(e){Mee=e},Fee.registerRoot=function(e){Tee=e};var $ee=Fee;Fee.default=Fee,Fee.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Mee.prototype):"rule"===e.type?Object.setPrototypeOf(e,Oee.prototype):"decl"===e.type?Object.setPrototypeOf(e,jee.prototype):"comment"===e.type?Object.setPrototypeOf(e,Nee.prototype):"root"===e.type&&Object.setPrototypeOf(e,Tee.prototype),e[Pee]=!0,e.nodes&&e.nodes.forEach((function(e){Fee.rebuild(e)}))};var zee,Uee,Wee=function(e){function t(t){var r;return(r=e.call(this,S3({type:"document"},t))||this).nodes||(r.nodes=[]),r}return E3(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new zee(new Uee,this,e).stringify()},t}($ee);Wee.registerLazyResult=function(e){zee=e},Wee.registerProcessor=function(e){Uee=e};var qee=Wee;Wee.default=Wee;var Vee=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Hee=Vee;Vee.default=Vee;var Gee=Hee,Zee=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Gee(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},k3(e,[{key:"content",get:function(){return this.css}}]),e}(),Kee=Zee;Zee.default=Zee;var Xee="'".charCodeAt(0),Yee='"'.charCodeAt(0),Jee="\\".charCodeAt(0),Qee="/".charCodeAt(0),ete="\n".charCodeAt(0),tte=" ".charCodeAt(0),rte="\f".charCodeAt(0),nte="\t".charCodeAt(0),ite="\r".charCodeAt(0),ote="[".charCodeAt(0),ste="]".charCodeAt(0),ate="(".charCodeAt(0),lte=")".charCodeAt(0),cte="{".charCodeAt(0),ute="}".charCodeAt(0),dte=";".charCodeAt(0),pte="*".charCodeAt(0),hte=":".charCodeAt(0),fte="@".charCodeAt(0),mte=/[\t\n\f\r "#'()/;[\\\]{}]/g,gte=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,vte=/.[\r\n"'(/\\]/,yte=/[\da-f]/i,bte=$ee,xte=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}E3(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(bte),wte=xte;xte.default=xte,bte.registerAtRule(xte);var Cte,_te,kte=$ee,Ste=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}E3(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=P3(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Cte(new _te,this,e).stringify()},t}(kte);Ste.registerLazyResult=function(e){Cte=e},Ste.registerProcessor=function(e){_te=e};var Ate=Ste;Ste.default=Ste,kte.registerRoot(Ste);var Ete={comma:function(e){return Ete.split(e,[","],!0)},space:function(e){return Ete.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,l=!1,c="",u=!1,d=P3(e);!(n=d()).done;){var p=n.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Rte=Ete;Ete.default=Ete;var Ite=$ee,Ote=Rte,Mte=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return E3(t,e),k3(t,[{key:"selectors",get:function(){return Ote.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Ite),Tte=Mte;Mte.default=Mte,Ite.registerRule(Mte);var Lte=V9,Pte=Ree,jte=wte,Nte=Ate,Dte=Tte,Bte={empty:!0,space:!0},Fte=function(){function e(e){this.input=e,this.root=new Nte,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new jte;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=P3(e.entries());!(i=s()).done;){var a=i.value,l=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Pte;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,l,c,u,d,p=e.css.valueOf(),h=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case ete:case tte:case nte:case ite:case rte:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===tte||r===ete||r===nte||r===ite||r===rte);d=["space",p.slice(m,n)],m=n-1;break;case ote:case ste:case cte:case ute:case hte:case dte:case lte:var b=String.fromCharCode(r);d=[b,b,m];break;case ate:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==Xee&&u!==Yee&&u!==tte&&u!==ete&&u!==nte&&u!==rte&&u!==ite){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===Jee;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||vte.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case Xee:case Yee:i=r===Xee?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===Jee;)l-=1,a=!a}while(a);d=["string",p.slice(m,n+1),m,n],m=n;break;case fte:mte.lastIndex=m+1,mte.test(p),n=0===mte.lastIndex?p.length-1:mte.lastIndex-2,d=["at-word",p.slice(m,n+1),m,n],m=n;break;case Jee:for(n=m,s=!0;p.charCodeAt(n+1)===Jee;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Qee&&r!==tte&&r!==ete&&r!==nte&&r!==ite&&r!==rte&&(n+=1,yte.test(p.charAt(n)))){for(;yte.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===tte&&(n+=1)}d=["word",p.slice(m,n+1),m,n],m=n;break;default:r===Qee&&p.charCodeAt(m+1)===pte?(0===(n=p.indexOf("*/",m+2)+1)&&(h||t?n=p.length:y("comment")),d=["comment",p.slice(m,n+1),m,n],m=n):(gte.lastIndex=m+1,gte.test(p),n=0===gte.lastIndex?p.length-1:gte.lastIndex-2,d=["word",p.slice(m,n+1),m,n],g.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new Lte;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var h=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));f&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Dte;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,l=r.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(a=r[d-1]?r[d-1][0]:"empty",s=r[d+1]?r[d+1][0]:"empty",Bte[a]||Bte[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new Dte;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),$te=$ee,zte=Fte,Ute=fee;function Wte(e,t){var r=new Ute(e,t),n=new zte(r);try{n.parse()}catch(e){throw e}return n.root}var qte=Wte;Wte.default=Wte,$te.registerParse(Wte);var Vte=I9.isClean,Hte=I9.my,Gte=Aee,Zte=j9,Kte=$ee,Xte=qee,Yte=Kee,Jte=qte,Qte=Ate,ere={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tre={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},rre={Once:!0,postcssPlugin:!0,prepare:!0};function nre(e){return"object"===(void 0===e?"undefined":M3(e))&&"function"==typeof e.then}function ire(e){var t=!1,r=ere[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function ore(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ire(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function sre(e){return e[Vte]=!1,e.nodes&&e.nodes.forEach((function(e){return sre(e)})),e}var are={},lre=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":M3(r))||null===r||"root"!==r.type&&"document"!==r.type)if(R3(r,e)||R3(r,Yte))i=sre(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Jte;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Hte]&&Kte.rebuild(i)}else i=sre(r);this.result=new Yte(t,i,n),this.helpers=S3({},are,{postcss:are,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":M3(e))&&e.prepare?S3({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=P3(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":M3(i)))for(var o in i){if(!tre[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!rre[o])if("object"===M3(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return C3((function(){var t,r,n,i,o,s,a,l,c,u,d,p;return j3(this,(function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!nre(n=e.runOnRoot(r)))return[3,5];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,n];case 3:return h.sent(),[3,5];case 4:throw i=h.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,h.label=7;case 7:if(o[Vte])return[3,14];o[Vte]=!0,s=[ore(o)],h.label=8;case 8:if(!(s.length>0))return[3,13];if(!nre(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return j3(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},d=P3(e.listeners.OnceExit),h.label=15;case 15:return(p=d()).done?[3,18]:[5,N3(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":M3(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return nre(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Zte;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Gte(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=P3(this.plugins);!(e=t()).done;){var r=e.value;if(nre(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Vte];)n[Vte]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=P3(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=P3(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(nre(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,l=t.iterator;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[Vte])return a[Vte]=!0,void e.push(ore(a));t.iterator=0,delete r.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[Vte]=!0,t.iterator=r.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Vte]=!0;for(var r,n=P3(ire(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Vte]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},k3(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();lre.registerPostcss=function(e){are=e};var cre=lre;lre.default=lre,Qte.registerLazyResult(lre),Xte.registerLazyResult(lre);var ure=Aee,dre=j9,pre=qte,hre=Kee,fre=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=dre;this.result=new hre(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new ure(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},k3(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=pre;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),mre=fre;fre.default=fre;var gre=mre,vre=cre,yre=qee,bre=Ate,xre=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=P3(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":M3(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":M3(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":M3(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new vre(this,e,t):new gre(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),wre=xre;xre.default=xre,bre.registerProcessor(xre),yre.registerProcessor(xre);var Cre=V9,_re=Q9,kre=Ree,Sre=wte,Are=fee,Ere=Ate,Rre=Tte;function Ire(e,t){if(Array.isArray(e))return e.map((function(e){return Ire(e)}));var r=e.inputs,n=I3(e,["inputs"]);if(r){t=[];for(var i,o=P3(r);!(i=o()).done;){var s=S3({},i.value,{__proto__:Are.prototype});s.map&&(s.map=S3({},s.map,{__proto__:_re.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return Ire(e,t)}))),n.source){var a=n.source,l=a.inputId,c=I3(a,["inputId"]);n.source=c,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new Ere(n);if("decl"===n.type)return new Cre(n);if("rule"===n.type)return new Rre(n);if("comment"===n.type)return new kre(n);if("atrule"===n.type)return new Sre(n);throw new Error("Unknown node type: "+e.type)}var Ore=Ire;Ire.default=Ire;var Mre=R9,Tre=V9,Lre=cre,Pre=$ee,jre=wre,Nre=j9,Dre=Ore,Bre=qee,Fre=Hee,$re=Ree,zre=wte,Ure=Kee,Wre=fee,qre=qte,Vre=Rte,Hre=Tte,Gre=Ate,Zre=W9;function Kre(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new jre(t)}Kre.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new jre).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Kre([i(r)]).process(e,t)},i},Kre.stringify=Nre,Kre.parse=qre,Kre.fromJSON=Dre,Kre.list=Vre,Kre.comment=function(e){return new $re(e)},Kre.atRule=function(e){return new zre(e)},Kre.decl=function(e){return new Tre(e)},Kre.rule=function(e){return new Hre(e)},Kre.root=function(e){return new Gre(e)},Kre.document=function(e){return new Bre(e)},Kre.CssSyntaxError=Mre,Kre.Declaration=Tre,Kre.Container=Pre,Kre.Processor=jre,Kre.Document=Bre,Kre.Comment=$re,Kre.Warning=Fre,Kre.AtRule=zre,Kre.Result=Ure,Kre.Input=Wre,Kre.Rule=Hre,Kre.Root=Gre,Kre.Node=Zre,Lre.registerPostcss(Kre);var Xre=Kre;Kre.default=Kre;var Yre=y9(Xre);Yre.stringify,Yre.fromJSON,Yre.plugin,Yre.parse,Yre.list,Yre.document,Yre.comment,Yre.atRule,Yre.rule,Yre.decl,Yre.root,Yre.CssSyntaxError,Yre.Declaration,Yre.Container,Yre.Processor,Yre.Document,Yre.Comment,Yre.Warning,Yre.AtRule,Yre.Result,Yre.Input,Yre.Rule,Yre.Root,Yre.Node;var Jre=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v9(this,"parentElement",null),v9(this,"parentNode",null),v9(this,"ownerDocument"),v9(this,"firstChild",null),v9(this,"lastChild",null),v9(this,"previousSibling",null),v9(this,"nextSibling",null),v9(this,"ELEMENT_NODE",1),v9(this,"TEXT_NODE",3),v9(this,"nodeType"),v9(this,"nodeName"),v9(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!R3(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},k3(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Qre={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ene={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tne={};function rne(e){if(tne[e])return tne[e];var t=globalThis[e],r=t.prototype,n=e in Qre?Qre[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in ene?ene[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return tne[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?tne[e]=c:r}catch(e){return r}}var nne={};function ine(e,t,r){var n,i=e+"."+String(r);if(nne[i])return nne[i].call(t);var o=rne(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(nne[i]=s,s.call(t)):t[r]}var one={};function sne(e,t,r){var n=e+"."+String(r);if(one[n])return one[n].bind(t);var i=rne(e)[r];return"function"!=typeof i?t[r]:(one[n]=i,i.bind(t))}function ane(){return rne("MutationObserver").constructor}function lne(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var cne=function(e){return ine("Node",e,"childNodes")},une=function(e){return ine("Node",e,"parentNode")},dne=function(e){return ine("Node",e,"parentElement")},pne=function(e){return ine("Node",e,"textContent")},hne=function(e,t){return sne("Node",e,"contains")(t)},fne=function(e){return sne("Node",e,"getRootNode")()},mne=function(e){return e&&"host"in e?ine("ShadowRoot",e,"host"):null},gne=function(e){return e&&"shadowRoot"in e?ine("Element",e,"shadowRoot"):null};function vne(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var yne="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",bne={map:{},getId:function(){return console.error(yne),-1},getNode:function(){return console.error(yne),null},removeNodeFromMap:function(){console.error(yne)},has:function(){return console.error(yne),!1},reset:function(){console.error(yne)}};function xne(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=Date.now();i||!1!==r.leading||(i=l);var c=t-(l-i),u=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=l,e.apply(u,s)):n||!1===r.trailing||(n=setTimeout((function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(u,s)}),c))}}function wne(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),o&&o.set&&o.set.call(this,e)}}),function(){return wne(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(bne=new Proxy(bne,{get:function(e,t,r){return"map"===t&&console.error(yne),Reflect.get(e,t,r)}}));var Cne=Date.now;function _ne(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=dne(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=dne(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function kne(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Sne(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ane(e){return e?e.nodeType===e.ELEMENT_NODE?e:dne(e):null}function Ene(e,t,r,n){if(!e)return!1;var i=Ane(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(M4(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function Rne(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function Ine(e,t){if(r4(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=une(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Ine(n,t))}function One(e){return Boolean(e.changedTouches)}function Mne(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Tne(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Lne(e){return!!e&&(R3(e,Jre)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(gne(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Cne=function(){return(new Date).getTime()});var Pne=function(){function e(){F3(this,"id",1),F3(this,"styleIDMap",new WeakMap),F3(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function jne(e){var t,r=null;return"getRootNode"in e&&(null==(t=fne(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&mne(fne(e))&&(r=mne(fne(e))),r}function Nne(e){var t=e.ownerDocument;return!!t&&(hne(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=jne(r);)r=t;return r}(e);return hne(t,r)}(e))}var Dne=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Dne||{}),Bne=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Bne||{}),Fne=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Fne||{}),$ne=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}($ne||{}),zne=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(zne||{}),Une=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Une||{}),Wne=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Wne||{});function qne(e){return"__ln"in e}var Vne,Hne=function(){function e(){F3(this,"length",0),F3(this,"head",null),F3(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&qne(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&qne(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Gne=function(e,t){return e+"@"+t},Zne=function(){function e(){var e=this;F3(this,"frozen",!1),F3(this,"locked",!1),F3(this,"texts",[]),F3(this,"attributes",[]),F3(this,"attributeMap",new WeakMap),F3(this,"removes",[]),F3(this,"mapRemoves",[]),F3(this,"movedMap",{}),F3(this,"addedSet",new Set),F3(this,"movedSet",new Set),F3(this,"droppedSet",new Set),F3(this,"removesSubTreeCache",new Set),F3(this,"mutationCb"),F3(this,"blockClass"),F3(this,"blockSelector"),F3(this,"maskTextClass"),F3(this,"maskTextSelector"),F3(this,"inlineStylesheet"),F3(this,"maskInputOptions"),F3(this,"maskTextFn"),F3(this,"maskInputFn"),F3(this,"keepIframeSrcFn"),F3(this,"recordCanvas"),F3(this,"inlineImages"),F3(this,"slimDOMOptions"),F3(this,"dataURLOptions"),F3(this,"doc"),F3(this,"mirror"),F3(this,"iframeManager"),F3(this,"stylesheetManager"),F3(this,"shadowDomManager"),F3(this,"canvasManager"),F3(this,"processedNodeManager"),F3(this,"unattachedDoc"),F3(this,"processMutations",(function(t){t.forEach(e.processMutation),e.emit()})),F3(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new Hne,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=une(o);if(s&&Nne(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var l=s.tagName;if("TEXTAREA"===l)return;"STYLE"===l&&e.addedSet.has(s)&&(a=!0)}var c=r4(s)?e.mirror.getId(jne(o)):e.mirror.getId(s),u=i(o);if(-1===c||-1===u)return n.addNode(o);var d=j4(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){Mne(t,e.mirror)&&e.iframeManager.addIframe(t),Tne(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Lne(o)&&e.shadowDomManager.addShadowRoot(gne(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});d&&(t.push({parentId:c,nextId:u,node:d}),r.add(d.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,l=P3(e.movedSet);!(a=l()).done;){var c=a.value;Xne(e.removesSubTreeCache,c,e.mirror)&&!e.movedSet.has(une(c))||o(c)}for(var u,d=P3(e.addedSet);!(u=d()).done;){var p=u.value;Yne(e.droppedSet,p)||Xne(e.removesSubTreeCache,p,e.mirror)?Yne(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var h=null;n.length;){var f=null;if(h){var m=e.mirror.getId(une(h.value)),g=i(h.value);-1!==m&&-1!==g&&(f=h)}if(!f)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var b=e.mirror.getId(une(y.value));if(-1===i(y.value))continue;if(-1!==b){f=y;break}var x=y.value,w=une(x);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var C=mne(w);if(-1!==e.mirror.getId(C)){f=y;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}h=f.previous,n.removeNode(f.value),o(f.value)}var _={texts:e.texts.map((function(t){var r=t.node,n=une(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),attributes:e.attributes.map((function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),removes:e.removes,adds:t};(_.texts.length||_.attributes.length||_.removes.length||_.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(_))}})),F3(this,"genTextAreaValueMutation",(function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(cne(t),(function(e){return pne(e)||""})).join("");r.attributes.value=a4({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:u4(t),value:n,maskInputFn:e.maskInputFn})})),F3(this,"processMutation",(function(t){if(!Rne(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=pne(t.target);Ene(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:T4(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,Ane(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=u4(n);o=a4({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Ene(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!O4(n.tagName,i))if(a.attributes[i]=I4(e.doc,l4(n.tagName),l4(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var l=e.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var c,u=P3(Array.from(n.style));!(c=u()).done;){var d=c.value,p=n.style.getPropertyValue(d),h=n.style.getPropertyPriority(d);p!==l.style.getPropertyValue(d)||h!==l.style.getPropertyPriority(d)?a.styleDiff[d]=""===h?p:[p,h]:a._unchangedStyles[d]=[p,h]}for(var f,m=P3(Array.from(l.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Ene(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach((function(r){return e.genAdds(r,t.target)})),t.removedNodes.forEach((function(r){var n=e.mirror.getId(r),i=r4(t.target)?e.mirror.getId(mne(t.target)):e.mirror.getId(t.target);Ene(t.target,e.blockClass,e.blockSelector,!1)||Rne(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Kne(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Ine(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Gne(n,i)]?Kne(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!r4(t.target)||!n4(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),cne(n).forEach((function(e){return r.push(e)})))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))}))}})),F3(this,"genAdds",(function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(Rne(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Gne(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Ene(t,e.blockClass,e.blockSelector,!1)||(cne(t).forEach((function(t){return e.genAdds(t)})),Lne(t)&&cne(gne(t)).forEach((function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)})))}})),F3(this,"cleanupRemovedNode",(function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach((function(t){e.cleanupRemovedNode(t)}))}))}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(r){t[r]=e[r]}))},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function Kne(e,t){e.delete(t),cne(t).forEach((function(t){return Kne(e,t)}))}function Xne(e,t,r){return 0!==e.size&&function(e,t){var r=une(t);return!!r&&e.has(r)}(e,t)}function Yne(e,t){return 0!==e.size&&Jne(e,t)}function Jne(e,t){var r=une(t);return!!r&&(!!e.has(r)||Jne(e,r))}var Qne=function(e){return Vne?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(Vne&&!0===Vne(e))return;throw e}}:e},eie=[];function tie(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function rie(e,t){var r=new Zne;eie.push(r),r.init(e);var n=new(ane())(Qne(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function nie(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Qne(xne(Qne((function(e){var s=tie(e);if(s&&!Ene(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var l=_ne(r.defaultView);t({id:a,x:l.left,y:l.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}})),s.scroll||100));return vne("scroll",a,r)}var iie=["INPUT","TEXTAREA","SELECT"],oie=new WeakMap;function sie(e){return function(e,t){if(uie("CSSGroupingRule")&&R3(e.parentRule,CSSGroupingRule)||uie("CSSMediaRule")&&R3(e.parentRule,CSSMediaRule)||uie("CSSSupportsRule")&&R3(e.parentRule,CSSSupportsRule)||uie("CSSConditionRule")&&R3(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function aie(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function lie(e,t){var r,n,i,o,s=e.mirror,a=e.stylesheetManager;o="#document"===t.nodeName?s.getId(t):s.getId(mne(t));var l="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,c=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&l&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{a.adoptStyleSheets(e,o)}catch(e){}return r}}),Qne((function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):function(){}}function cie(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,l=e.mediaInteractionCb,c=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,h=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=rie(e,e.doc));var i,o,s,a,l,c,u,d,p,h=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,l=[],c=xne(Qne((function(e){var r=Date.now()-o;t(l.map((function(e){return e.timeOffset-=r,e})),e),l=[],o=null})),a),u=Qne(xne(Qne((function(e){var t=tie(e),r=One(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Cne()),l.push({x:n,y:s,id:i.getId(t),timeOffset:Cne()-o}),c("undefined"!=typeof DragEvent&&R3(e,DragEvent)?Bne.Drag:R3(e,MouseEvent)?Bne.MouseMove:Bne.TouchMove)})),s,{trailing:!1})),d=[vne("mousemove",u,n),vne("touchmove",u,n),vne("drag",u,n)];return Qne((function(){d.forEach((function(e){return e()}))}))}(e),f=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],c=null;return Object.keys(Fne).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(e){var s=l4(e),a=function(e){return function(r){var s=tie(r);if(!Ene(s,i,o,!0)){var a=null,l=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=$ne.Mouse;break;case"touch":a=$ne.Touch;break;case"pen":a=$ne.Pen}a===$ne.Touch?Fne[e]===Fne.MouseDown?l="TouchStart":Fne[e]===Fne.MouseUp&&(l="TouchEnd"):$ne.Pen}else One(r)&&(a=$ne.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===$ne.Touch||l.startsWith("Mouse")&&a===$ne.Mouse)&&(a=null)):Fne[e]===Fne.Click&&(a=c,c=null);var u=One(r)?r.changedTouches[0]:r;if(u){var d=n.getId(s),p=u.clientX,h=u.clientY;Qne(t)(S3({type:Fne[l],id:d,x:p,y:h},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(Fne[e]){case Fne.MouseDown:case Fne.MouseUp:s=s.replace("mouse","pointer");break;case Fne.TouchStart:case Fne.TouchEnd:return}l.push(vne(s,a,r))})),Qne((function(){l.forEach((function(e){return e()}))}))}(e),m=nie(e),g=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return vne("resize",Qne(xne(Qne((function(){var e=kne(),t=Sne();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)})),200)),n)}(e,{win:n}),v=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,l=e.maskInputOptions,c=e.maskInputFn,u=e.sampling,d=e.userTriggeredOnInput;function p(e){var t=tie(e),n=e.isTrusted,u=t&&t.tagName;if(t&&"OPTION"===u&&(t=dne(t)),t&&u&&!(iie.indexOf(u)<0)&&!Ene(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,f=!1,m=u4(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(l[u.toLowerCase()]||l[m])&&(p=a4({element:t,maskInputOptions:l,tagName:u,type:m,value:p,maskInputFn:c})),h(t,d?{text:p,isChecked:f,userTriggered:n}:{text:p,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach((function(e){if(e!==t){var r=e.value;h(e,d?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}}))}}function h(e,r){var i=oie.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){oie.set(e,r);var o=n.getId(e);Qne(t)(S3({},r,{id:o}))}}var f=("last"===u.input?["change"]:["input","change"]).map((function(e){return vne(e,Qne(p),r)})),m=r.defaultView;if(!m)return function(){f.forEach((function(e){return e()}))};var g,v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(g=f).push.apply(g,[].concat(y.map((function(e){return wne(e[0],e[1],{set:function(){Qne(p)({target:this,isTrusted:!1})}},!1,m)})))),Qne((function(){f.forEach((function(e){return e()}))}))}(e),y=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,l=i.mirror,c=i.sampling,u=i.doc,d=Qne((function(e){return xne(Qne((function(t){var r=tie(t);if(r&&!Ene(r,s,a,!0)){var n=r.currentTime,i=r.volume,c=r.muted,u=r.playbackRate,d=r.loop;o({type:e,id:l.getId(r),currentTime:n,volume:i,muted:c,playbackRate:u,loop:d})}})),c.media||500)})),p=[vne("play",d(Une.Play),u),vne("pause",d(Une.Pause),u),vne("seeked",d(Une.Seeked),u),vne("volumechange",d(Une.VolumeChange),u),vne("ratechange",d(Une.RateChange),u)],Qne((function(){p.forEach((function(e){return e()}))}))),b=function(){},x=function(){},w=function(){},C=function(){};e.recordDOM&&(b=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Qne((function(e,t,o){var s=o[0],a=o[1],l=aie(t,n,i.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,adds:[{rule:s,index:a}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,l,c=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:Qne((function(e,t,o){var s=o[0],a=aie(t,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,removes:[{index:s}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Qne((function(e,t,o){var s=o[0],a=aie(t,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,replace:s}),e.apply(t,o)}))})),o.CSSStyleSheet.prototype.replaceSync&&(l=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Qne((function(e,t,o){var s=o[0],a=aie(t,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,replaceSync:s}),e.apply(t,o)}))}));var u={};die("CSSGroupingRule")?u.CSSGroupingRule=o.CSSGroupingRule:(die("CSSMediaRule")&&(u.CSSMediaRule=o.CSSMediaRule),die("CSSConditionRule")&&(u.CSSConditionRule=o.CSSConditionRule),die("CSSSupportsRule")&&(u.CSSSupportsRule=o.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=e[0],o=e[1];d[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(d[t].insertRule,{apply:Qne((function(e,t,o){var s=o[0],a=o[1],l=aie(t.parentStyleSheet,n,i.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,adds:[{rule:s,index:[].concat(sie(t),[a||0])}]}),e.apply(t,o)}))}),o.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:Qne((function(e,t,o){var s=o[0],a=aie(t.parentStyleSheet,n,i.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,removes:[{index:[].concat(sie(t),[s])}]}),e.apply(t,o)}))})})),Qne((function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=c,a&&(o.CSSStyleSheet.prototype.replace=a),l&&(o.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach((function(e){var t=e[0],r=e[1];r.prototype.insertRule=d[t].insertRule,r.prototype.deleteRule=d[t].deleteRule}))}))}(e,{win:n}),x=lie(e,e.doc),w=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Qne((function(e,t,s){var l,c=s[0],u=s[1],d=s[2];if(i.has(c))return a.apply(t,[c,u,d]);var p=aie(null==(l=t.parentRule)?void 0:l.parentStyleSheet,n,o.styleMirror),h=p.id,f=p.styleId;return(h&&-1!==h||f&&-1!==f)&&r({id:h,styleId:f,set:{property:c,value:u,priority:d},index:sie(t.parentRule)}),e.apply(t,s)}))});var l=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:Qne((function(e,t,s){var a,c=s[0];if(i.has(c))return l.apply(t,[c]);var u=aie(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),d=u.id,p=u.styleId;return(d&&-1!==d||p&&-1!==p)&&r({id:d,styleId:p,remove:{property:c},index:sie(t.parentRule)}),e.apply(t,s)}))}),Qne((function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=l}))}(e,{win:n}),e.collectFonts&&(C=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=lne(r.fonts,"add",(function(e){return function(r){return setTimeout(Qne((function(){var e=o.get(r);e&&(t(e),o.delete(r))})),0),e.apply(this,[r])}}));return i.push((function(){n.FontFace=s})),i.push(a),Qne((function(){i.forEach((function(e){return e()}))}))}(e)));for(var _,k=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Qne((function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],l=e.rangeCount||0,c=0;c<l;c++){var u=e.getRangeAt(c),d=u.startContainer,p=u.startOffset,h=u.endContainer,f=u.endOffset;Ene(d,n,i,!0)||Ene(h,n,i,!0)||a.push({start:r.getId(d),startOffset:p,end:r.getId(h),endOffset:f})}o({ranges:a})}}));return a(),vne("selectionchange",a)}(e),S=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?lne(n.customElements,"define",(function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}})):function(){}}(e),A=[],E=P3(e.plugins);!(_=E()).done;){var R=_.value;A.push(R.observer(R.callback,n,R.options))}return Qne((function(){eie.forEach((function(e){return e.reset()})),null==r||r.disconnect(),h(),f(),m(),g(),v(),y(),b(),x(),w(),C(),k(),S(),A.forEach((function(e){return e()}))}))}function uie(e){return void 0!==window[e]}function die(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var pie=function(){function e(e){F3(this,"iframeIdToRemoteIdMap",new WeakMap),F3(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,i)}))},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getRemoteId(e,t,n)}))},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),hie=function(){function e(e){F3(this,"iframes",new WeakMap),F3(this,"crossOriginIframeMap",new WeakMap),F3(this,"crossOriginIframeMirror",new pie(C4)),F3(this,"crossOriginIframeStyleMirror"),F3(this,"crossOriginIframeRootIdMap",new WeakMap),F3(this,"iframeContentDocumentMap",new WeakMap),F3(this,"iframeObserverCleanupMap",new WeakMap),F3(this,"mirror"),F3(this,"mutationCb"),F3(this,"wrappedEmit"),F3(this,"loadListener"),F3(this,"stylesheetManager"),F3(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pie(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Dne.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Dne.IncrementalSnapshot,data:{source:Bne.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Dne.Meta:case Dne.Load:case Dne.DomContentLoaded:return!1;case Dne.Plugin:return t;case Dne.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Dne.IncrementalSnapshot:switch(t.data.source){case Bne.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case Bne.Drag:case Bne.TouchMove:case Bne.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case Bne.ViewportResize:return!1;case Bne.MediaInteraction:case Bne.MouseInteraction:case Bne.Scroll:case Bne.CanvasMutation:case Bne.Input:return this.replaceIds(t.data,e,["id"]),t;case Bne.StyleSheetRule:case Bne.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Bne.Font:return t;case Bne.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case Bne.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach((function(t){n.replaceStyleIds(t,e,["styleId"])})),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=P3(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((function(e){r.replaceIdOnNode(e,t)}))},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Wne.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((function(e){r.patchRootIdOnNode(e,t)}))},e}(),fie=function(){function e(e){F3(this,"shadowDoms",new WeakSet),F3(this,"mutationCb"),F3(this,"scrollCb"),F3(this,"bypassOptions"),F3(this,"mirror"),F3(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(n4(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=rie(S3({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return n.disconnect()})),this.restoreHandlers.push(nie(S3({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(mne(e))),r.restoreHandlers.push(lie({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))}),0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(lne(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n),o=gne(this);return o&&Nne(this)&&r.addShadowRoot(o,t),i}})))},t.reset=function(){this.restoreHandlers.forEach((function(e){try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),mie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gie="undefined"==typeof Uint8Array?[]:new Uint8Array(256),vie=0;vie<64;vie++)gie[mie.charCodeAt(vie)]=vie;var yie=new Map,bie=function(e,t,r){if(e&&(Cie(e,t)||"object"===(void 0===e?"undefined":M3(e)))){var n=function(e,t){var r=yie.get(e);return r||(r=new Map,yie.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function xie(e,t,r){return R3(e,Array)?e.map((function(e){return xie(e,t,r)})):null===e?e:R3(e,Float32Array)||R3(e,Float64Array)||R3(e,Int32Array)||R3(e,Uint32Array)||R3(e,Uint8Array)||R3(e,Uint16Array)||R3(e,Int16Array)||R3(e,Int8Array)||R3(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:R3(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=mie[r[t]>>2],i+=mie[(3&r[t])<<4|r[t+1]>>4],i+=mie[(15&r[t+1])<<2|r[t+2]>>6],i+=mie[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:R3(e,DataView)?{rr_type:e.constructor.name,args:[xie(e.buffer,t,r),e.byteOffset,e.byteLength]}:R3(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:R3(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:R3(e,ImageData)?{rr_type:e.constructor.name,args:[xie(e.data,t,r),e.width,e.height]}:Cie(e,t)||"object"===(void 0===e?"undefined":M3(e))?{rr_type:e.constructor.name,index:bie(e,t,r)}:e}var wie=function(e,t,r){return e.map((function(e){return xie(e,t,r)}))},Cie=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return R3(e,t[r])})))};function _ie(e,t,r,n){var i=[];try{var o=lne(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Ene(this,t,r,!0)){var l=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=l),n&&["webgl","webgl2"].includes(l))if(s[0]&&"object"===M3(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}}));i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach((function(e){return e()}))}}function kie(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var c=lne(e,a,(function(e){return function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=e.apply(this,l);if(bie(u,o,this),"tagName"in this.canvas&&!Ene(this.canvas,n,i,!0)){var d=wie(l,o,this),p={type:t,property:a,args:d};r(this.canvas,p)}return u}}));l.push(c)}catch(n){var u=wne(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(u)}},l=[],c=P3(Object.getOwnPropertyNames(e));!(s=c()).done;)a();return l}var Sie,Aie="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Eie="undefined"!=typeof window&&window.Blob&&new Blob([(Sie=Aie,Uint8Array.from(atob(Sie),(function(e){return e.charCodeAt(0)})))],{type:"text/javascript;charset=utf-8"});function Rie(e){var t;try{if(!(t=Eie&&(window.URL||window.webkitURL).createObjectURL(Eie)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",(function(){(window.URL||window.webkitURL).revokeObjectURL(t)})),r}catch(t){return new Worker("data:text/javascript;base64,"+Aie,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Iie,Oie,Mie,Tie=function(){function e(e){var t=this;F3(this,"pendingCanvasMutations",new Map),F3(this,"rafStamps",{latestId:0,invokeId:null}),F3(this,"mirror"),F3(this,"mutationCb"),F3(this,"resetObservers"),F3(this,"frozen",!1),F3(this,"locked",!1),F3(this,"processMutation",(function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)}));var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,l=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:l})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=_ie(t,r,n,!0),a=new Map,l=new Rie;l.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,l=r.height;o.mutationCb({id:t,type:zne["2D"],commands:[{property:"clearRect",args:[0,0,s,l]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var c,u=1e3/e,d=0,p=function(e){if(d&&e-d<u)c=requestAnimationFrame(p);else{d=e;var s,h=o;(s=[],t.document.querySelectorAll("canvas").forEach((function(e){Ene(e,r,n,!0)||s.push(e)})),s).forEach(C3((function(e){var t,r,n,o;return j3(this,(function(s){switch(s.label){case 0:return r=h.mirror.getId(e),a.get(r)||0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),l.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}}))}))),c=requestAnimationFrame(p)}};c=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(c)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=_ie(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=lne(t.CanvasRenderingContext2D.prototype,o,(function(i){return function(){for(var s=this,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return Ene(this.canvas,r,n,!0)||setTimeout((function(){var r=wie(l,t,s);e(s.canvas,{type:zne["2D"],property:o,args:r})}),0),i.apply(this,l)}}));s.push(a)}catch(r){var l=wne(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:zne["2D"],property:o,args:[t],setter:!0})}});s.push(l)}},s=[],a=P3(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(kie(t.WebGLRenderingContext.prototype,zne.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(kie(t.WebGL2RenderingContext.prototype,zne.WebGL2,e,r,n,t))),function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){return e.type,I3(e,["type"])})),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Lie=function(){function e(e){F3(this,"trackedLinkElements",new WeakSet),F3(this,"mutationCb"),F3(this,"adoptedStyleSheetCb"),F3(this,"styleMirror",new Pne),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,(function(t,r){return{rule:o4(t,e.href),index:r}}))})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=P3(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=P3(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach((function(e){t.cleanupStylesheetsForRemovedNode(e)}))}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),Pie=function(){function e(){F3(this,"nodeMap",new WeakMap),F3(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some((function(e){return e!==t}))},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame((function(){r.nodeMap=new WeakMap,r.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function jie(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}var Nie=!1;try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var Die=document.createElement("iframe");document.body.appendChild(Die),Array.from=(null==(D3=Die.contentWindow)?void 0:D3.Array.from)||Array.from,document.body.removeChild(Die)}}catch(e){console.debug("Unable to override Array.from",e)}var Bie,Fie,$ie=new s4;function zie(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,l=void 0===a?null:a,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,d=e.ignoreSelector,p=void 0===d?null:d,h=e.maskTextClass,f=void 0===h?"rr-mask":h,m=e.maskTextSelector,g=void 0===m?null:m,v=e.inlineStylesheet,y=void 0===v||v,b=e.maskAllInputs,x=e.maskInputOptions,w=e.slimDOMOptions,C=e.maskInputFn,_=e.maskTextFn,k=e.hooks,S=e.packFn,A=e.sampling,E=void 0===A?{}:A,R=e.dataURLOptions,I=void 0===R?{}:R,O=e.mousemoveWait,M=e.recordDOM,T=void 0===M||M,L=e.recordCanvas,P=void 0!==L&&L,j=e.recordCrossOriginIframes,N=void 0!==j&&j,D=e.allowedIframeOrigins,B=e.recordAfter,F=void 0===B?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":B,$=e.userTriggeredOnInput,z=void 0!==$&&$,U=e.collectFonts,W=void 0!==U&&U,q=e.inlineImages,V=void 0!==q&&q,H=e.plugins,G=e.keepIframeSrcFn,Z=void 0===G?function(){return!1}:G,K=e.ignoreCSSAttributes,X=void 0===K?new Set([]):K,Y=e.errorHandler;Vne=Y,N&&D&&D.length>0&&0===(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":M3(n))+".");var i=jie(n);i&&t.add(i)}return Object.freeze(t)}(D)).size&&(t=void 0);var J=!N||window.parent===window,Q=!1;if(!J)try{window.parent.document&&(Q=!1)}catch(e){Q=!0}if(J&&!r)throw new Error("emit function is required");if(!J&&!Q)return function(){};void 0!==O&&void 0===E.mousemove&&(E.mousemove=O),$ie.reset();var ee,te=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==x?x:{password:!0},re=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ne=0,ie=function(e){for(var t,r=P3(H||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return S&&!Q&&(e=S(e)),e};Iie=function(e,o){var s,a=e;if(a.timestamp=Cne(),!(null==(s=eie[0])?void 0:s.isFrozen())||a.type===Dne.FullSnapshot||a.type===Dne.IncrementalSnapshot&&a.data.source===Bne.Mutation||eie.forEach((function(e){return e.unfreeze()})),J)null==r||r(ie(a),o);else if(Q){var l={type:"rrweb",event:ie(a),origin:window.location.origin,isCheckout:o};if(t)for(var c,u=P3(t);!(c=u()).done;){var d=c.value;window.parent.postMessage(l,d)}else window.parent.postMessage(l,"*")}if(a.type===Dne.FullSnapshot)ee=a,ne=0;else if(a.type===Dne.IncrementalSnapshot){if(a.data.source===Bne.Mutation&&a.data.isAttachIframe)return;ne++;var p=i&&ne>=i,h=n&&a.timestamp-ee.timestamp>n;(p||h)&&Oie(!0)}};for(var oe,se=function(e){Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.Mutation},e)})},ae=function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.Scroll},e)})},le=function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.CanvasMutation},e)})},ce=new Lie({mutationCb:se,adoptedStyleSheetCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.AdoptedStyleSheet},e)})}}),ue=new hie({mirror:$ie,mutationCb:se,stylesheetManager:ce,recordCrossOriginIframes:N,wrappedEmit:Iie}),de=P3(H||[]);!(oe=de()).done;){var pe=oe.value;pe.getMirror&&pe.getMirror({nodeMirror:$ie,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var he=new Pie;Mie=new Tie({recordCanvas:P,mutationCb:le,win:window,blockClass:s,blockSelector:l,mirror:$ie,sampling:E.canvas,dataURLOptions:I});var fe=new fie({mutationCb:se,scrollCb:ae,bypassOptions:{blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskInputOptions:te,dataURLOptions:I,maskTextFn:_,maskInputFn:C,recordCanvas:P,inlineImages:V,sampling:E,slimDOMOptions:re,iframeManager:ue,stylesheetManager:ce,canvasManager:Mie,keepIframeSrcFn:Z,processedNodeManager:he},mirror:$ie});Oie=function(e){if(void 0===e&&(e=!1),T){Iie({type:Dne.Meta,data:{href:window.location.href,width:Sne(),height:kne()}},e),ce.reset(),fe.init(),eie.forEach((function(e){return e.lock()}));var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new s4:n,o=r.blockClass,s=r.blockSelector,a=r.maskTextClass,l=r.maskTextSelector,c=r.inlineStylesheet,u=r.inlineImages,d=r.recordCanvas,p=r.maskAllInputs,h=void 0!==p&&p,f=r.slimDOM,m=void 0!==f&&f,g=r.keepIframeSrcFn;return j4(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===c||c,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===h?{password:!0}:h,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===m,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===m?{}:m,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==u&&u,recordCanvas:void 0!==d&&d,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===g?function(){return!1}:g,newlyAddedElement:!1})}(document,{mirror:$ie,blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskAllInputs:te,maskTextFn:_,maskInputFn:C,slimDOM:re,dataURLOptions:I,recordCanvas:P,inlineImages:V,onSerialize:function(e){Mne(e,$ie)&&ue.addIframe(e),Tne(e,$ie)&&ce.trackLinkElement(e),Lne(e)&&fe.addShadowRoot(gne(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!t)return console.warn("Failed to snapshot the document");Iie({type:Dne.FullSnapshot,data:{node:t,initialOffset:_ne(window)}},e),eie.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,$ie.getId(document))}};try{var me=[],ge=function(e){var t;return Qne(cie)({mutationCb:se,mousemoveCb:function(e,t){return Iie({type:Dne.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.MouseInteraction},e)})},scrollCb:ae,viewportResizeCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.ViewportResize},e)})},inputCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.Input},e)})},mediaInteractionCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.StyleDeclaration},e)})},canvasMutationCb:le,fontCb:function(e){return Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.Font},e)})},selectionCb:function(e){Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.Selection},e)})},customElementCb:function(e){Iie({type:Dne.IncrementalSnapshot,data:S3({source:Bne.CustomElement},e)})},blockClass:s,ignoreClass:u,ignoreSelector:p,maskTextClass:f,maskTextSelector:g,maskInputOptions:te,inlineStylesheet:y,sampling:E,recordDOM:T,recordCanvas:P,inlineImages:V,userTriggeredOnInput:z,collectFonts:W,doc:e,maskInputFn:C,maskTextFn:_,keepIframeSrcFn:Z,blockSelector:l,slimDOMOptions:re,dataURLOptions:I,mirror:$ie,iframeManager:ue,stylesheetManager:ce,shadowDomManager:fe,processedNodeManager:he,canvasManager:Mie,ignoreCSSAttributes:X,plugins:(null==(t=null==H?void 0:H.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return Iie({type:Dne.Plugin,data:{plugin:e.name,payload:t}})}}})))||[]},k)};ue.addLoadListener((function(e){try{var t=e.contentDocument,r=ge(t);me.push(r);var n=ue.getObserverCleanup(e);ue.setObserverCleanup(e,(function(){if(n)try{n()}catch(e){}try{r();var e=me.indexOf(r);-1!==e&&me.splice(e,1),function(e){for(var t=eie.length-1;t>=0;t--)eie[t].getDoc()===e&&eie.splice(t,1)}(t)}catch(e){}}))}catch(e){console.warn(e)}}));var ve=function(){Oie(),me.push(ge(document)),Nie=!0};return"interactive"===document.readyState||"complete"===document.readyState?ve():(me.push(vne("DOMContentLoaded",(function(){Iie({type:Dne.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ve()}))),me.push(vne("load",(function(){Iie({type:Dne.Load,data:{}}),"load"===F&&ve()}),window))),function(){me.forEach((function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}})),he.destroy(),Nie=!1,Vne=void 0}}catch(e){console.warn(e)}}zie.addCustomEvent=function(e,t){if(!Nie)throw new Error("please add custom event after start recording");Iie({type:Dne.Custom,data:{tag:e,payload:t}})},zie.freezePage=function(){eie.forEach((function(e){return e.freeze()}))},zie.takeFullSnapshot=function(e){if(!Nie)throw new Error("please take full snapshot after start recording");Oie(e)},zie.mirror=$ie,(Fie=Bie||(Bie={}))[Fie.NotStarted=0]="NotStarted",Fie[Fie.Running=1]="Running",Fie[Fie.Stopped=2]="Stopped",zie.addCustomEvent,zie.freezePage,zie.takeFullSnapshot;var Uie={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wie={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},qie={};function Vie(e){if(qie[e])return qie[e];var t=globalThis[e],r=t.prototype,n=e in Uie?Uie[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in Wie?Wie[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return qie[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?qie[e]=c:r}catch(e){return r}}var Hie={};function Gie(e,t,r){var n,i=e+"."+String(r);if(Hie[i])return Hie[i].call(t);var o=Vie(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Hie[i]=s,s.call(t)):t[r]}var Zie=function(e){return Gie("Node",e,"parentNode")};function Kie(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Kie(Zie(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return Kie(Zie(e),t)}function Xie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yie(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return R3(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Jie={exports:{}},Qie=String,eoe=function(){return{isColorSupported:!1,reset:Qie,bold:Qie,dim:Qie,italic:Qie,underline:Qie,inverse:Qie,hidden:Qie,strikethrough:Qie,black:Qie,red:Qie,green:Qie,yellow:Qie,blue:Qie,magenta:Qie,cyan:Qie,white:Qie,gray:Qie,bgBlack:Qie,bgRed:Qie,bgGreen:Qie,bgYellow:Qie,bgBlue:Qie,bgMagenta:Qie,bgCyan:Qie,bgWhite:Qie}};Jie.exports=eoe(),Jie.exports.createColors=eoe;var toe=Jie.exports,roe=Yie(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),noe=toe,ioe=roe,ooe=function(e){function t(r,n,i,o,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),o&&(l.source=o),a&&(l.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}E3(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=noe.isColorSupported),ioe&&e&&(r=ioe(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;if(e){var c=noe.createColors(!0),u=c.bold,d=c.gray,p=c.red;n=function(e){return u(p(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(T3(Error)),soe=ooe;ooe.default=ooe;var aoe={};aoe.isClean=Symbol("isClean"),aoe.my=Symbol("my");var loe={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},coe=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return loe[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=loe[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),uoe=coe;coe.default=coe;var doe=uoe;function poe(e,t){new doe(t).stringify(e)}var hoe=poe;poe.default=poe;var foe=aoe.isClean,moe=aoe.my,goe=soe,voe=uoe,yoe=hoe;function boe(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":M3(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return boe(e,r)})):("object"===o&&null!==i&&(i=boe(i)),r[n]=i)}return r}var xoe=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[foe]=!1,this[moe]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=P3(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=boe(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new goe(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[foe]){this[foe]=!1;for(var e=this;e=e.parent;)e[foe]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new voe).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=P3(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":M3(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":M3(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=yoe),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},k3(e,[{key:"proxyOf",get:function(){return this}}]),e}(),woe=xoe;xoe.default=xoe;var Coe=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=S3({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return E3(t,e),k3(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(woe),_oe=Coe;Coe.default=Coe;var koe=roe.SourceMapConsumer,Soe=roe.SourceMapGenerator,Aoe=roe.existsSync,Eoe=roe.readFileSync,Roe=roe.dirname,Ioe=roe.join,Ooe=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Roe(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new koe(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":M3(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Roe(e),Aoe(e))return this.mapFile=e,Eoe(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(R3(t,koe))return Soe.fromSourceMap(t).toString();if(R3(t,Soe))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Ioe(Roe(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Moe=Ooe;Ooe.default=Ooe;var Toe=roe.SourceMapConsumer,Loe=roe.SourceMapGenerator,Poe=roe.fileURLToPath,joe=roe.pathToFileURL,Noe=roe.isAbsolute,Doe=roe.resolve,Boe=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Foe=roe,$oe=soe,zoe=Moe,Uoe=Symbol("fromOffsetCache"),Woe=Boolean(Toe&&Loe),qoe=Boolean(Doe&&Noe),Voe=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":M3(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!qoe||/^\w+:\/\//.test(t.from)||Noe(t.from)?this.file=t.from:this.file=Doe(t.from)),qoe&&Woe){var r=new zoe(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Boe(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":M3(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);o=u.line,s=u.col}else o=l.line,s=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var p=this.origin(t,r,o,s);return(i=p?new $oe(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new $oe(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(joe&&(i.input.url=joe(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Uoe])t=this[Uoe];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Uoe]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Doe(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Noe(a.source)?joe(a.source):new URL(a.source,this.map.consumer().sourceRoot||joe(this.map.mapFile));var l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Poe)throw new Error("file: protocol is not available in this PostCSS build");l.file=Poe(o)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=S3({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},k3(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Hoe=Voe;Voe.default=Voe,Foe&&Foe.registerInput&&Foe.registerInput(Voe);var Goe=roe.SourceMapConsumer,Zoe=roe.SourceMapGenerator,Koe=roe.dirname,Xoe=roe.relative,Yoe=roe.resolve,Joe=roe.sep,Qoe=roe.pathToFileURL,ese=Hoe,tse=Boolean(Goe&&Zoe),rse=Boolean(Koe&&Yoe&&Xoe&&Joe),nse=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=P3(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Koe(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Goe(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),rse&&tse&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Zoe.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Zoe({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Zoe({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Koe(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Koe(Yoe(r,this.mapOpts.annotation)));var n=Xoe(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new ese(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Qoe){var r=Qoe(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Joe&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),ise=nse,ose=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return E3(t,e),t}(woe),sse=ose;ose.default=ose;var ase,lse,cse,use,dse=aoe.isClean,pse=aoe.my,hse=_oe,fse=sse;function mse(e){return e.map((function(e){return e.nodes&&(e.nodes=mse(e.nodes)),delete e.source,e}))}function gse(e){if(e[dse]=!1,e.proxyOf.nodes)for(var t,r=P3(e.proxyOf.nodes);!(t=r()).done;)gse(t.value)}var vse=function(e){function t(){return e.apply(this,arguments)||this}E3(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=P3(t);!(n=i()).done;)for(var o,s=n.value,a=P3(this.normalize(s,this.last));!(o=a()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=P3(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=P3(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=P3(o);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(n,0,l)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=mse(ase(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=P3(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=P3(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hse(e)]}else if(e.selector)e=[new lse(e)];else if(e.name)e=[new cse(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new fse(e)]}var u=e.map((function(e){return e[pse]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[dse]&&gse(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return u},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=P3(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),l=P3(a);!(o=l()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=P3(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?R3(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},k3(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(woe);vse.registerParse=function(e){ase=e},vse.registerRule=function(e){lse=e},vse.registerAtRule=function(e){cse=e},vse.registerRoot=function(e){use=e};var yse=vse;vse.default=vse,vse.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,cse.prototype):"rule"===e.type?Object.setPrototypeOf(e,lse.prototype):"decl"===e.type?Object.setPrototypeOf(e,hse.prototype):"comment"===e.type?Object.setPrototypeOf(e,fse.prototype):"root"===e.type&&Object.setPrototypeOf(e,use.prototype),e[pse]=!0,e.nodes&&e.nodes.forEach((function(e){vse.rebuild(e)}))};var bse,xse,wse=function(e){function t(t){var r;return(r=e.call(this,S3({type:"document"},t))||this).nodes||(r.nodes=[]),r}return E3(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new bse(new xse,this,e).stringify()},t}(yse);wse.registerLazyResult=function(e){bse=e},wse.registerProcessor=function(e){xse=e};var Cse=wse;wse.default=wse;var _se=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),kse=_se;_se.default=_se;var Sse=kse,Ase=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Sse(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},k3(e,[{key:"content",get:function(){return this.css}}]),e}(),Ese=Ase;Ase.default=Ase;var Rse="'".charCodeAt(0),Ise='"'.charCodeAt(0),Ose="\\".charCodeAt(0),Mse="/".charCodeAt(0),Tse="\n".charCodeAt(0),Lse=" ".charCodeAt(0),Pse="\f".charCodeAt(0),jse="\t".charCodeAt(0),Nse="\r".charCodeAt(0),Dse="[".charCodeAt(0),Bse="]".charCodeAt(0),Fse="(".charCodeAt(0),$se=")".charCodeAt(0),zse="{".charCodeAt(0),Use="}".charCodeAt(0),Wse=";".charCodeAt(0),qse="*".charCodeAt(0),Vse=":".charCodeAt(0),Hse="@".charCodeAt(0),Gse=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zse=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Kse=/.[\r\n"'(/\\]/,Xse=/[\da-f]/i,Yse=yse,Jse=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}E3(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Yse),Qse=Jse;Jse.default=Jse,Yse.registerAtRule(Jse);var eae,tae,rae=yse,nae=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}E3(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=P3(i);!(o=s()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new eae(new tae,this,e).stringify()},t}(rae);nae.registerLazyResult=function(e){eae=e},nae.registerProcessor=function(e){tae=e};var iae=nae;nae.default=nae,rae.registerRoot(nae);var oae={comma:function(e){return oae.split(e,[","],!0)},space:function(e){return oae.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,l=!1,c="",u=!1,d=P3(e);!(n=d()).done;){var p=n.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},sae=oae;oae.default=oae;var aae=yse,lae=sae,cae=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return E3(t,e),k3(t,[{key:"selectors",get:function(){return lae.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(aae),uae=cae;cae.default=cae,aae.registerRule(cae);var dae=_oe,pae=sse,hae=Qse,fae=iae,mae=uae,gae={empty:!0,space:!0},vae=function(){function e(e){this.input=e,this.root=new fae,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new hae;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=P3(e.entries());!(i=s()).done;){var a=i.value,l=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new pae;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,l,c,u,d,p=e.css.valueOf(),h=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case Tse:case Lse:case jse:case Nse:case Pse:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===Lse||r===Tse||r===jse||r===Nse||r===Pse);d=["space",p.slice(m,n)],m=n-1;break;case Dse:case Bse:case zse:case Use:case Vse:case Wse:case $se:var b=String.fromCharCode(r);d=[b,b,m];break;case Fse:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==Rse&&u!==Ise&&u!==Lse&&u!==Tse&&u!==jse&&u!==Pse&&u!==Nse){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===Ose;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||Kse.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case Rse:case Ise:i=r===Rse?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===Ose;)l-=1,a=!a}while(a);d=["string",p.slice(m,n+1),m,n],m=n;break;case Hse:Gse.lastIndex=m+1,Gse.test(p),n=0===Gse.lastIndex?p.length-1:Gse.lastIndex-2,d=["at-word",p.slice(m,n+1),m,n],m=n;break;case Ose:for(n=m,s=!0;p.charCodeAt(n+1)===Ose;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Mse&&r!==Lse&&r!==Tse&&r!==jse&&r!==Nse&&r!==Pse&&(n+=1,Xse.test(p.charAt(n)))){for(;Xse.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Lse&&(n+=1)}d=["word",p.slice(m,n+1),m,n],m=n;break;default:r===Mse&&p.charCodeAt(m+1)===qse?(0===(n=p.indexOf("*/",m+2)+1)&&(h||t?n=p.length:y("comment")),d=["comment",p.slice(m,n+1),m,n],m=n):(Zse.lastIndex=m+1,Zse.test(p),n=0===Zse.lastIndex?p.length-1:Zse.lastIndex-2,d=["word",p.slice(m,n+1),m,n],g.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new dae;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var h=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==h)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));f&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new mae;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,l=r.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(a=r[d-1]?r[d-1][0]:"empty",s=r[d+1]?r[d+1][0]:"empty",gae[a]||gae[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new mae;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),yae=yse,bae=vae,xae=Hoe;function wae(e,t){var r=new xae(e,t),n=new bae(r);try{n.parse()}catch(e){throw e}return n.root}var Cae=wae;wae.default=wae,yae.registerParse(wae);var _ae=aoe.isClean,kae=aoe.my,Sae=ise,Aae=hoe,Eae=yse,Rae=Cse,Iae=Ese,Oae=Cae,Mae=iae,Tae={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Lae={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Pae={Once:!0,postcssPlugin:!0,prepare:!0};function jae(e){return"object"===(void 0===e?"undefined":M3(e))&&"function"==typeof e.then}function Nae(e){var t=!1,r=Tae[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Dae(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Nae(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Bae(e){return e[_ae]=!1,e.nodes&&e.nodes.forEach((function(e){return Bae(e)})),e}var Fae={},$ae=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":M3(r))||null===r||"root"!==r.type&&"document"!==r.type)if(R3(r,e)||R3(r,Iae))i=Bae(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Oae;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[kae]&&Eae.rebuild(i)}else i=Bae(r);this.result=new Iae(t,i,n),this.helpers=S3({},Fae,{postcss:Fae,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":M3(e))&&e.prepare?S3({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=P3(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":M3(i)))for(var o in i){if(!Lae[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Pae[o])if("object"===M3(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return C3((function(){var t,r,n,i,o,s,a,l,c,u,d,p;return j3(this,(function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!jae(n=e.runOnRoot(r)))return[3,5];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,n];case 3:return h.sent(),[3,5];case 4:throw i=h.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,h.label=7;case 7:if(o[_ae])return[3,14];o[_ae]=!0,s=[Dae(o)],h.label=8;case 8:if(!(s.length>0))return[3,13];if(!jae(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,i,s;return j3(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},d=P3(e.listeners.OnceExit),h.label=15;case 15:return(p=d()).done?[3,18]:[5,N3(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":M3(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return jae(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Aae;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Sae(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=P3(this.plugins);!(e=t()).done;){var r=e.value;if(jae(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[_ae];)n[_ae]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=P3(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=P3(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(jae(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,l=t.iterator;a=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!a[_ae])return a[_ae]=!0,void e.push(Dae(a));t.iterator=0,delete r.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(r.nodes&&r.nodes.length&&(r[_ae]=!0,t.iterator=r.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[_ae]=!0;for(var r,n=P3(Nae(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[_ae]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},k3(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();$ae.registerPostcss=function(e){Fae=e};var zae=$ae;$ae.default=$ae,Mae.registerLazyResult($ae),Rae.registerLazyResult($ae);var Uae=ise,Wae=hoe,qae=Cae,Vae=Ese,Hae=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Wae;this.result=new Vae(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Uae(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},k3(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=qae;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Gae=Hae;Hae.default=Hae;var Zae=Gae,Kae=zae,Xae=Cse,Yae=iae,Jae=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=P3(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":M3(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":M3(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":M3(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Kae(this,e,t):new Zae(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Qae=Jae;Jae.default=Jae,Yae.registerProcessor(Jae),Xae.registerProcessor(Jae);var ele=_oe,tle=Moe,rle=sse,nle=Qse,ile=Hoe,ole=iae,sle=uae;function ale(e,t){if(Array.isArray(e))return e.map((function(e){return ale(e)}));var r=e.inputs,n=I3(e,["inputs"]);if(r){t=[];for(var i,o=P3(r);!(i=o()).done;){var s=S3({},i.value,{__proto__:ile.prototype});s.map&&(s.map=S3({},s.map,{__proto__:tle.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return ale(e,t)}))),n.source){var a=n.source,l=a.inputId,c=I3(a,["inputId"]);n.source=c,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new ole(n);if("decl"===n.type)return new ele(n);if("rule"===n.type)return new sle(n);if("comment"===n.type)return new rle(n);if("atrule"===n.type)return new nle(n);throw new Error("Unknown node type: "+e.type)}var lle=ale;ale.default=ale;var cle=soe,ule=_oe,dle=zae,ple=yse,hle=Qae,fle=hoe,mle=lle,gle=Cse,vle=kse,yle=sse,ble=Qse,xle=Ese,wle=Hoe,Cle=Cae,_le=sae,kle=uae,Sle=iae,Ale=woe;function Ele(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new hle(t)}Ele.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new hle).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Ele([i(r)]).process(e,t)},i},Ele.stringify=fle,Ele.parse=Cle,Ele.fromJSON=mle,Ele.list=_le,Ele.comment=function(e){return new yle(e)},Ele.atRule=function(e){return new ble(e)},Ele.decl=function(e){return new ule(e)},Ele.rule=function(e){return new kle(e)},Ele.root=function(e){return new Sle(e)},Ele.document=function(e){return new gle(e)},Ele.CssSyntaxError=cle,Ele.Declaration=ule,Ele.Container=ple,Ele.Processor=hle,Ele.Document=gle,Ele.Comment=yle,Ele.Warning=vle,Ele.AtRule=ble,Ele.Result=xle,Ele.Input=wle,Ele.Rule=kle,Ele.Root=Sle,Ele.Node=Ale,dle.registerPostcss(Ele);var Rle=Ele;Ele.default=Ele;var Ile=Xie(Rle);Ile.stringify,Ile.fromJSON,Ile.plugin,Ile.parse,Ile.list,Ile.document,Ile.comment,Ile.atRule,Ile.rule,Ile.decl,Ile.root,Ile.CssSyntaxError,Ile.Declaration,Ile.Container,Ile.Processor,Ile.Document,Ile.Comment,Ile.Warning,Ile.AtRule,Ile.Result,Ile.Input,Ile.Rule,Ile.Root,Ile.Node;var Ole=Object.defineProperty,Mle=function(e,t,r){return function(e,t,r){return t in e?Ole(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":M3(t))?t+"":t,r)},Tle=function(){function e(e){Mle(this,"fileName"),Mle(this,"functionName"),Mle(this,"lineNumber"),Mle(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),Lle=/(^|@)\S+:\d+/,Ple=/^\s*at .*(\S+:\d+|\(native\))/m,jle=/^(eval@)?(\[native code])?$/,Nle={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Ple)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter((function(e){return!!e.match(Ple)}),this);return t.map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new Tle({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})}),this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter((function(e){return!e.match(jle)}),this);return t.map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Tle({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Tle({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Tle({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Tle({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter((function(e){return!!e.match(Lle)&&!e.match(/^Error created at/)}),this);return t.map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Tle({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function Dle(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Ble(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fle(e,t){if(0===t)return!0;for(var r,n=P3(Object.keys(e));!(r=n()).done;){var i=r.value;if(Ble(e[i])&&Fle(e[i],t-1))return!0}return!1}function $le(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(Ble(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||Ble(s)&&Fle(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":M3(t)))return t.toString()+"n";if(R3(t,Event)){var a={};for(var l in t){var c=t[l];Array.isArray(c)?a[l]=Dle(c.length?c[0]:null):a[l]=c}return a}return R3(t,Node)?R3(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:R3(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var zle={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Ule(e,t,r){var n,i=r?Object.assign({},zle,r):zle,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,l=[];if(i.level.includes("error")){var c=function(t){var r=t.message,n=t.error,o=Nle.parse(n).map((function(e){return e.toString()})),s=[$le(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",c),l.push((function(){t.removeEventListener("error",c)}));var u=function(t){var r,n;R3(t.reason,Error)?n=[$le("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[$le("Uncaught (in promise)",i.stringifyOptions),$le(t.reason,i.stringifyOptions)]);var o=Nle.parse(r).map((function(e){return e.toString()}));e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",u),l.push((function(){t.removeEventListener("unhandledrejection",u)}))}for(var d,p=P3(i.level);!(d=p()).done;){var h=d.value;l.push(f(n,h))}return function(){l.forEach((function(e){return e()}))};function f(t,r){var n=this;return t[r]?function(t,o){try{if(!(o in t))return function(){};var l=t[o],c=function(t){var o=n;return function(){for(var n=arguments.length,l=new Array(n),c=0;c<n;c++)l[c]=arguments[c];if(t.apply(o,l),!("assert"===r&&l[0]||a)){a=!0;try{var u=Nle.parse(new Error).map((function(e){return e.toString()})).splice(1),d=("assert"===r?l.slice(1):l).map((function(e){return $le(e,i.stringifyOptions)}));++s<i.lengthThreshold?e({level:r,trace:u,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[$le("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],l))}finally{a=!1}}}}(l);return"function"==typeof c&&(c.prototype=c.prototype||{},Object.defineProperties(c,{__rrweb_original__:{enumerable:!1,value:l}})),t[o]=c,function(){t[o]=l}}catch(e){return function(){}}}(t,r):function(){}}}var Wle,qle,Vle,Hle=f3.setImmediate,Gle=Object.prototype.toString,Zle=void 0!==Hle?function(e){return Hle(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Wle=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){Wle=function(e,t,r){return e[t]=r,e}}function Kle(e,t){Vle.add(e,t),qle||(qle=Zle(Vle.drain))}function Xle(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function Yle(){for(var e=0;e<this.chain.length;e++)Jle(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Jle(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=Xle(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function Qle(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Xle(e))?Kle((function(){var n=new rce(r);try{t.call(e,(function(){Qle.apply(n,arguments)}),(function(){ece.apply(n,arguments)}))}catch(e){ece.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&Kle(Yle,r))}catch(e){ece.call(new rce(r),e)}}}function ece(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Kle(Yle,t))}function tce(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then((function(e){r(i,e)}),n)}(i)}function rce(e){this.def=e,this.triggered=!1}function nce(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function ice(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new nce(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&Kle(Yle,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){Qle.call(t,e)}),(function(e){ece.call(t,e)}))}catch(e){ece.call(t,e)}}Vle=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=qle=void 0;r;)r.fn.call(r.self),r=r.next}}}();var oce,sce=Wle({},"constructor",ice,!1);ice.prototype=sce,Wle(sce,"__NPO__",0,!1),Wle(ice,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),Wle(ice,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),Wle(ice,"all",(function(e){var t=this;return"[object Array]"!==Gle.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;tce(t,e,(function(e,t){o[e]=t,++s===i&&r(o)}),n)}))})),Wle(ice,"race",(function(e){var t=this;return"[object Array]"!==Gle.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");tce(t,e,(function(e,t){r(t)}),n)}))})),oce="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:ice;var ace=864e5,lce=Array.prototype,cce=Function.prototype,uce=Object.prototype,dce=lce.slice,pce=uce.toString,hce=uce.hasOwnProperty,fce=f3.console,mce=f3.navigator,gce=f3.document,vce=f3.opera,yce=f3.screen,bce=mce.userAgent,xce=cce.bind,wce=lce.forEach,Cce=lce.indexOf,_ce=lce.map,kce=Array.isArray,Sce={},Ace={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ece={log:function(){if(g3.DEBUG&&!Ace.isUndefined(fce)&&fce)try{fce.log.apply(fce,arguments)}catch(e){Ace.each(arguments,(function(e){fce.log(e)}))}},warn:function(){if(g3.DEBUG&&!Ace.isUndefined(fce)&&fce){var e=["Mixpanel warning:"].concat(Ace.toArray(arguments));try{fce.warn.apply(fce,e)}catch(t){Ace.each(e,(function(e){fce.warn(e)}))}}},error:function(){if(g3.DEBUG&&!Ace.isUndefined(fce)&&fce){var e=["Mixpanel error:"].concat(Ace.toArray(arguments));try{fce.error.apply(fce,e)}catch(t){Ace.each(e,(function(e){fce.error(e)}))}}},critical:function(){if(!Ace.isUndefined(fce)&&fce){var e=["Mixpanel error:"].concat(Ace.toArray(arguments));try{fce.error.apply(fce,e)}catch(t){Ace.each(e,(function(e){fce.error(e)}))}}}},Rce=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Ece,arguments)}},Ice=function(e){return{log:Rce(Ece.log,e),warn:Rce(Ece.warn,e),error:Rce(Ece.error,e),critical:Rce(Ece.critical,e)}},Oce=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Ece.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),g3.DEBUG&&Ece.critical(e)}}},Mce=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Oce(t[r]))};Ace.bind=function(e,t){var r,n;if(xce&&e.bind===xce)return xce.apply(e,dce.call(arguments,1));if(!Ace.isFunction(e))throw new TypeError;return r=dce.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(dce.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(dce.call(arguments)));return Object(s)===s?s:o},n},Ace.each=function(e,t,r){if(null!=e)if(wce&&e.forEach===wce)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===Sce)return}else for(var o in e)if(hce.call(e,o)&&t.call(r,e[o],o,e)===Sce)return},Ace.extend=function(e){return Ace.each(dce.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},Ace.isArray=kce||function(e){return"[object Array]"===pce.call(e)},Ace.isFunction=function(e){return"function"==typeof e},Ace.isArguments=function(e){return!(!e||!hce.call(e,"callee"))},Ace.toArray=function(e){return e?e.toArray?e.toArray():Ace.isArray(e)||Ace.isArguments(e)?dce.call(e):Ace.values(e):[]},Ace.map=function(e,t,r){if(_ce&&e.map===_ce)return e.map(t,r);var n=[];return Ace.each(e,(function(e){n.push(t.call(r,e))})),n},Ace.keys=function(e){var t=[];return null===e||Ace.each(e,(function(e,r){t[t.length]=r})),t},Ace.values=function(e){var t=[];return null===e||Ace.each(e,(function(e){t[t.length]=e})),t},Ace.include=function(e,t){var r=!1;return null===e?r:Cce&&e.indexOf===Cce?-1!=e.indexOf(t):(Ace.each(e,(function(e){if(r||(r=e===t))return Sce})),r)},Ace.includes=function(e,t){return-1!==e.indexOf(t)},Ace.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},Ace.isObject=function(e){return e===Object(e)&&!Ace.isArray(e)},Ace.isEmptyObject=function(e){if(Ace.isObject(e)){for(var t in e)if(hce.call(e,t))return!1;return!0}return!1},Ace.isUndefined=function(e){return void 0===e},Ace.isString=function(e){return"[object String]"==pce.call(e)},Ace.isDate=function(e){return"[object Date]"==pce.call(e)},Ace.isNumber=function(e){return"[object Number]"==pce.call(e)},Ace.isElement=function(e){return!(!e||1!==e.nodeType)},Ace.encodeDates=function(e){return Ace.each(e,(function(t,r){Ace.isDate(t)?e[r]=Ace.formatDate(t):Ace.isObject(t)&&(e[r]=Ace.encodeDates(t))})),e},Ace.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},Ace.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},Ace.strip_empty_properties=function(e){var t={};return Ace.each(e,(function(e,r){Ace.isString(e)&&e.length>0&&(t[r]=e)})),t},Ace.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Ace.isArray(e)?(r=[],Ace.each(e,(function(e){r.push(Ace.truncate(e,t))}))):Ace.isObject(e)?(r={},Ace.each(e,(function(e,n){r[n]=Ace.truncate(e,t)}))):r=e,r},Ace.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",l=0,c=i,u=[],d=n[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return t(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+="    ",u=[],"[object Array]"===pce.apply(d)){for(l=d.length,o=0;o<l;o+=1)u[o]=r(o,d)||"null";return a=0===u.length?"[]":i?"[\n"+i+u.join(",\n"+i)+"\n"+c+"]":"["+u.join(",")+"]",i=c,a}for(s in d)hce.call(d,s)&&(a=r(s,d))&&u.push(t(s)+(i?": ":":")+a);return a=0===u.length?"{}":i?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",i=c,a}};return r("",{"":e})},Ace.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(e=+r,isFinite(e))return e;o("Bad number")},l=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(s(),16),isFinite(e));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else{if("string"!=typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},c=function(){for(;t&&t<=" ";)s()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(s("{"),c(),"}"===t)return s("}"),r;for(;t;){if(e=l(),c(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return s("}"),r;s(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===t){if(s("["),c(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return s("]"),e;s(","),c()}}o("Bad array")}();case'"':return l();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')}()}},function(i){var s;return r=i,e=0,t=" ",s=n(),c(),t&&o("Syntax error"),s}}(),Ace.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,c="",u=[];if(!e)return e;e=Ace.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[l++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},Ace.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},Ace.UUID=function(){try{return f3.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",Ace.map(e,(function(e){return e.toString(16)})).join("")}};var Tce=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];Ace.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Tce.length;t++)if(-1!==e.indexOf(Tce[t]))return!0;return!1},Ace.HTTPBuildQuery=function(e,t){var r,n,i=[];return Ace.isUndefined(t)&&(t="&"),Ace.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r})),i.join(t)},Ace.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){Ece.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},Ace.cookie={get:function(e){for(var t=e+"=",r=gce.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=Ace.JSONDecode(Ace.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",l="",c="";if(s)a="; domain="+s;else if(n){var u=Hce(gce.location.hostname);a=u?"; domain=."+u:""}if(r){var d=new Date;d.setTime(d.getTime()+1e3*r),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),gce.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c},set:function(e,t,r,n,i,o,s){var a="",l="",c="";if(s)a="; domain="+s;else if(n){var u=Hce(gce.location.hostname);a=u?"; domain=."+u:""}if(r){var d=new Date;d.setTime(d.getTime()+24*r*60*60*1e3),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c;return gce.cookie=p,p},remove:function(e,t,r){Ace.cookie.set(e,"",-1,t,!1,!1,r)}};var Lce=function(e){var t=!0;try{var r="__mplss_"+Uce(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Pce=null,jce=function(e,t){return null===Pce||t?Pce=Lce(e):Pce},Nce=null;function Dce(e,t,r){var n=function(e){Ece.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Ece.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return Ace.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var Bce=function(){try{return f3.localStorage}catch(e){return null}};Ace.localStorage=Dce(Bce(),"localStorage",jce),Ace.sessionStorage=Dce(function(){try{return f3.sessionStorage}catch(e){return null}}(),"sessionStorage",(function(e,t){return null===Nce||t?Nce=Lce(e):Nce})),Ace.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){return function(i){if(i=i||e(f3.event)){var o,s,a=!0;return Ace.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}}}(t,n,a)}else Ece.error("No valid element provided to register_event")}}();var Fce=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');Ace.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!gce.getElementsByTagName)return[];var n,i,o,s,a,l,c,u,d,p,h=t.split(" "),f=[gce];for(l=0;l<h.length;l++)if((n=h[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var m=i[1],g=gce.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,c=0;c<f.length;c++)for(d="*"==o?e(f[c]):f[c].getElementsByTagName(o),u=0;u<d.length;u++)s[a++]=d[u];for(f=[],p=0,c=0;c<s.length;c++)s[c].className&&Ace.isString(s[c].className)&&r(s[c],v)&&(f[p++]=s[c])}else{var y=n.match(Fce);if(y){o=y[1];var b,x=y[2],w=y[3],C=y[4];for(o||(o="*"),s=[],a=0,c=0;c<f.length;c++)for(d="*"==o?e(f[c]):f[c].getElementsByTagName(o),u=0;u<d.length;u++)s[a++]=d[u];switch(f=[],p=0,w){case"=":b=function(e){return e.getAttribute(x)==C};break;case"~":b=function(e){return e.getAttribute(x).match(new RegExp("\\b"+C+"\\b"))};break;case"|":b=function(e){return e.getAttribute(x).match(new RegExp("^"+C+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(x).indexOf(C)};break;case"$":b=function(e){return e.getAttribute(x).lastIndexOf(C)==e.getAttribute(x).length-C.length};break;case"*":b=function(e){return e.getAttribute(x).indexOf(C)>-1};break;default:b=function(e){return e.getAttribute(x)}}for(f=[],p=0,c=0;c<s.length;c++)b(s[c])&&(f[p++]=s[c])}else{for(o=n,s=[],a=0,c=0;c<f.length;c++)for(d=f[c].getElementsByTagName(o),u=0;u<d.length;u++)s[a++]=d[u];f=s}}return f}return function(e){return Ace.isElement(e)?[e]:Ace.isObject(e)&&!Ace.isUndefined(e.length)?e:n.call(this,e)}}();var $ce=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],zce=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];Ace.info={campaignParams:function(e){var t="",r={};return Ace.each($ce,(function(n){(t=Ace.getQueryParam(gce.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return Ace.each(zce,(function(r){(e=Ace.getQueryParam(gce.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return Ace.extend(Ace.info.campaignParams(),Ace.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=Ace.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=Ace.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||Ace.includes(e," OPR/")?Ace.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Ace.includes(e,"IEMobile")||Ace.includes(e,"WPDesktop")?"Internet Explorer Mobile":Ace.includes(e,"SamsungBrowser/")?"Samsung Internet":Ace.includes(e,"Edge")||Ace.includes(e,"Edg/")?"Microsoft Edge":Ace.includes(e,"FBIOS")?"Facebook Mobile":Ace.includes(e,"Whale/")?"Whale Browser":Ace.includes(e,"Chrome")?"Chrome":Ace.includes(e,"CriOS")?"Chrome iOS":Ace.includes(e,"UCWEB")||Ace.includes(e,"UCBrowser")?"UC Browser":Ace.includes(e,"FxiOS")?"Firefox iOS":Ace.includes(t,"Apple")?Ace.includes(e,"Mobile")?"Mobile Safari":"Safari":Ace.includes(e,"Android")?"Android Mobile":Ace.includes(e,"Konqueror")?"Konqueror":Ace.includes(e,"Firefox")?"Firefox":Ace.includes(e,"MSIE")||Ace.includes(e,"Trident/")?"Internet Explorer":Ace.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[Ace.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=bce;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return f3.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Ace.extend(Ace.strip_empty_properties({$os:Ace.info.os(),$browser:Ace.info.browser(bce,mce.vendor,vce),$referrer:gce.referrer,$referring_domain:Ace.info.referringDomain(gce.referrer),$device:Ace.info.device(bce)}),{$current_url:Ace.info.currentUrl(),$browser_version:Ace.info.browserVersion(bce,mce.vendor,vce),$screen_height:yce.height,$screen_width:yce.width,mp_lib:"web",$lib_version:g3.LIB_VERSION,$insert_id:Uce(),time:Ace.timestamp()/1e3},Ace.strip_empty_properties(e))},people_properties:function(){return Ace.extend(Ace.strip_empty_properties({$os:Ace.info.os(),$browser:Ace.info.browser(bce,mce.vendor,vce)}),{$browser_version:Ace.info.browserVersion(bce,mce.vendor,vce)})},mpPageViewProperties:function(){return Ace.strip_empty_properties({current_page_title:gce.title,current_domain:f3.location.hostname,current_url_path:f3.location.pathname,current_url_protocol:f3.location.protocol,current_url_search:f3.location.search})}};var Uce=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Wce=function(){return"00-"+Ace.UUID().replace(/-/g,"")+"-"+Ace.UUID().replace(/-/g,"").substring(0,16)+"-01"},qce=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Vce=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Hce=function(e){var t=Vce,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=qce);var i=e.match(t);return i?i[0]:""},Gce=function(){},Zce=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Kce=null,Xce=null;"undefined"!=typeof JSON&&(Kce=JSON.stringify,Xce=JSON.parse),Kce=Kce||Ace.JSONEncode,Xce=Xce||Ace.JSONDecode,Ace.info=Ace.info,Ace.info.browser=Ace.info.browser,Ace.info.browserVersion=Ace.info.browserVersion,Ace.info.device=Ace.info.device,Ace.info.properties=Ace.info.properties,Ace.isBlockedUA=Ace.isBlockedUA,Ace.isEmptyObject=Ace.isEmptyObject,Ace.isObject=Ace.isObject,Ace.JSONDecode=Ace.JSONDecode,Ace.JSONEncode=Ace.JSONEncode,Ace.toArray=Ace.toArray,Ace.NPO=ice;var Yce=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};Yce.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new oce((function(n,i){var o=f3.indexedDB.open(e,t);o.onerror=function(){i(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach((function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)}))}}))},Yce.prototype.init=function(){return f3.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then((function(e){return e instanceof f3.IDBDatabase?oce.resolve():oce.reject(e)}))):oce.reject("indexedDB is not supported in this browser")},Yce.prototype.isInitialized=function(){return!!this.dbPromise},Yce.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new oce((function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))}))};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):oce.reject(e)}.bind(this))},Yce.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",(function(r){r.put(t,e)}))},Yce.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",(function(r){t=r.get(e)})).then((function(){return t.result}))},Yce.prototype.removeItem=function(e){return this.makeTransaction("readwrite",(function(t){t.delete(e)}))},Yce.prototype.getAll=function(){var e;return this.makeTransaction("readonly",(function(t){e=t.getAll()})).then((function(){return e.result}))};var Jce="mixpanelBrowserDb",Qce="mixpanelRecordingEvents",eue="mixpanelRecordingRegistry",tue={version:1,storeNames:[Qce,eue]};function rue(e,t){hue(!0,e,t)}function nue(e,t){hue(!1,e,t)}function iue(e,t){return"1"===pue(e,t)}function oue(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||f3,r=t.navigator||{},n=!1;return Ace.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){Ace.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return Ece.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===pue(e,t);return r&&Ece.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function sue(e){return fue(e,(function(e){return this.get_config(e)}))}function aue(e){return fue(e,(function(e){return this._get_config(e)}))}function lue(e){return fue(e,(function(e){return this._get_config(e)}))}function cue(e,t){uue(t=t||{}).remove(due(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function uue(e){return"localStorage"===(e=e||{}).persistenceType?Ace.localStorage:Ace.cookie}function due(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function pue(e,t){return uue(t).get(due(e,t))}function hue(e,t,r){Ace.isString(t)&&t.length?(uue(r=r||{}).set(due(t,r),e?1:0,Ace.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):Ece.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function fue(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=oue(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Ece.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var mue=Ice("lock"),gue=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Bce(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||oce};gue.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Ace.bind((function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,u=s+":X",d=s+":Y",p=s+":Z",h=function(e){if((new Date).getTime()-o>l)return mue.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),c.removeItem(p),c.removeItem(d),void g();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=c.getItem(d);return!(e&&e!==i||(c.setItem(d,i),c.getItem(d)!==i&&(jce(c,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},g=function(){c.setItem(u,i),f(m,(function(){c.getItem(u)!==i?h((function(){c.getItem(d)===i?f((function(){return!c.getItem(p)}),v):g()})):v()}))},v=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(d)===i&&c.removeItem(d),c.getItem(u)===i&&c.removeItem(u)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!jce(c,!0))throw new Error("localStorage support check failed");g()}catch(e){n(e)}}),this))};var vue=function(e){this.storage=e||Bce()};vue.prototype.init=function(){return this.storage?oce.resolve():oce.reject(new Error("localStorage is not available"))},vue.prototype.isInitialized=function(){return!0},vue.prototype.setItem=function(e,t){return new oce(Ace.bind((function(r,n){try{this.storage.setItem(e,Kce(t))}catch(e){n(e)}r()}),this))},vue.prototype.getItem=function(e){return new oce(Ace.bind((function(t,r){var n;try{n=Xce(this.storage.getItem(e))}catch(e){r(e)}t(n)}),this))},vue.prototype.removeItem=function(e){return new oce(Ace.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var yue=Ice("batch"),bue=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new vue,this.lock=new gue(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Ace.bind(yue.error,yue),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new oce((function(i){setTimeout((function(){var t=e.apply(o,[n]);r=null,n=[],i(t)}),t)}))),r}}(Ace.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=Ace.bind((function(e){return this._enqueuePersisted([e])}),this)};bue.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?oce.resolve():this.queueStorage.init().then(Ace.bind((function(){this.initialized=!0}),this)).catch(Ace.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},bue.prototype.enqueue=function(e,t){var r={id:Uce(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),oce.resolve(!0))},bue.prototype._enqueuePersisted=function(e){var t=Ace.bind((function(){return this.ensureInit().then(Ace.bind((function(){return this.readFromStorage()}),this)).then(Ace.bind((function(t){return this.saveToStorage(t.concat(e))}),this)).then(Ace.bind((function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t}),this)).catch(Ace.bind((function(t){return this.reportError("Error enqueueing items",t,e),!1}),this))}),this);return this.lock.withLock(t,this.pid).catch(Ace.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},bue.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(Ace.bind((function(){return this.readFromStorage()}),this)).then(Ace.bind((function(r){if(r.length){var n={};Ace.each(t,(function(e){n[e.id]=!0}));for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t}),this)):oce.resolve(t)};var xue=function(e,t){var r=[];return Ace.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};bue.prototype.removeItemsByID=function(e){var t={};if(Ace.each(e,(function(e){t[e]=!0})),this.memQueue=xue(this.memQueue,t),this.usePersistence){var r=Ace.bind((function(){return this.ensureInit().then(Ace.bind((function(){return this.readFromStorage()}),this)).then(Ace.bind((function(e){return e=xue(e,t),this.saveToStorage(e)}),this)).then(Ace.bind((function(){return this.readFromStorage()}),this)).then(Ace.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(Ace.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(Ace.bind((function(e){return this.reportError("Error acquiring storage lock",e),!jce(this.lock.storage,!0)&&r().then(Ace.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(Ace.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return oce.resolve(!0)};var wue=function(e,t){var r=[];return Ace.each(e,(function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)})),r};bue.prototype.updatePayloads=function(e){return this.memQueue=wue(this.memQueue,e),this.usePersistence?this.lock.withLock(Ace.bind((function(){return this.ensureInit().then(Ace.bind((function(){return this.readFromStorage()}),this)).then(Ace.bind((function(t){return t=wue(t,e),this.saveToStorage(t)}),this)).catch(Ace.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(Ace.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):oce.resolve(!0)},bue.prototype.readFromStorage=function(){return this.ensureInit().then(Ace.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(Ace.bind((function(e){return e&&(Ace.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(Ace.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},bue.prototype.saveToStorage=function(e){return this.ensureInit().then(Ace.bind((function(){return this.queueStorage.setItem(this.storageKey,e)}),this)).then((function(){return!0})).catch(Ace.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},bue.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(Ace.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):oce.resolve()};var Cue=Ice("batch"),_ue=function(e,t){this.errorReporter=t.errorReporter,this.queue=new bue(e,{errorReporter:Ace.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};_ue.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},_ue.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},_ue.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},_ue.prototype.clear=function(){return this.queue.clear()},_ue.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},_ue.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},_ue.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(Ace.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},_ue.prototype.sendRequestPromise=function(e,t){return new oce(Ace.bind((function(r){this.sendRequest(e,t,r)}),this))},_ue.prototype.flush=function(e){if(this.requestInProgress)return Cue.log("Flush: Request already in progress"),oce.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(Ace.bind((function(i){var o=i.length===n,s=[],a={};if(Ace.each(i,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=Ace.extend({},t.properties,{mp_sent_by_lib_version:g3.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t}),this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),oce.resolve();var l=Ace.bind((function(){return this.queue.removeItemsByID(Ace.map(i,(function(e){return e.id}))).then(Ace.bind((function(e){return Ace.each(i,Ace.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),oce.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),oce.resolve())}),this))}),this),c=Ace.bind((function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(Ace.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Ace.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(u=f3.navigator.onLine,!Ace.isUndefined(u)&&!u)||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),oce.resolve()}if(Ace.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var c=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,c,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),oce.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),l()}return l()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var u}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),Cue.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,u).then(c)}),this)).catch(Ace.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},_ue.prototype.reportError=function(e,t){if(Cue.error.apply(Cue.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Cue.error(t)}};var kue=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Sue=function(e,t){if(!Ace.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},Aue="change",Eue="click",Rue="hashchange",Iue="load",Oue="mp_locationchange",Mue="popstate",Tue="scrollend",Lue="scroll",Pue="submit",jue="visibilitychange",Nue=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Due=["mp-include"],Bue=["mp-no-track"],Fue=Bue.concat(["mp-sensitive"]),$ue=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],zue={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Uue={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Wue={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},que=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Vue=Ice("autocapture");function Hue(e){for(var t={},r=Gue(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Gue(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Zue(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Que(e));return e}function Kue(e,t,r,n,i,o){var s={$classes:Gue(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),nde(e,t,i,o)&&Ace.each($ue.concat(n),(function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);ide(n)&&(s["$attr-"+t]=n)}}));for(var l=1,c=1,u=e;u=Zue(u);)l++,u.tagName===e.tagName&&c++;return s.$nth_child=l,s.$nth_of_type=c,s}function Xue(e,t,r,n){var i="";return nde(e,t,r,n)&&e.childNodes&&e.childNodes.length&&Ace.each(e.childNodes,(function(e){tde(e)&&e.textContent&&(i+=Ace.trim(e.textContent).split(/(\s+)/).filter(ide).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),Ace.trim(i)}function Yue(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Vue.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Vue.critical("Error while checking selector: "+o,e)}}return!1}function Jue(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Vue.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Vue.critical("Error while checking selector: "+o,e)}}var s=Hue(e);for(i=0;i<Bue.length;i++)if(s[Bue[i]])return!0;return!1}function Que(e){return e&&1===e.nodeType}function ede(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function tde(e){return e&&3===e.nodeType}function rde(e){var t=(e.name||e.id||"").toString().toLowerCase();return!("string"!=typeof t||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))}function nde(e,t,r,n){var i;if(!Yue(e,t,r,n))return!1;for(var o=e;o.parentNode&&!ede(o,"body");o=o.parentNode){var s=Hue(o);for(i=0;i<Fue.length;i++)if(s[Fue[i]])return!1}var a=Hue(e);for(i=0;i<Due.length;i++)if(a[Due[i]])return!0;if(ede(e,"input")||ede(e,"select")||ede(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var l=e.type||"";if("string"==typeof l)switch(l.toLowerCase()){case"hidden":case"password":return!1}return!rde(e)}function ide(e){if(null===e||Ace.isUndefined(e))return!1;if("string"==typeof e){if(e=Ace.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function ode(e){var t="onscrollend"in f3,r=Oce(e),n=Tue;if(!t){var i=null;r=Oce((function(){clearTimeout(i),i=setTimeout(e,100)})),n=Lue}return{listener:r,eventType:n}}function sde(e){var t=e.tagName.toLowerCase();return!!("button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<que.length;t++)if(e.hasAttribute(que[t]))return!0;return!1}(e)||function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return zue[r]}(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function ade(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Uue[t])return!0;if(sde(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(sde(r))return!1;if(r.getRootNode&&r.getRootNode()!==gce){var i=r.getRootNode();if(i.host&&sde(i.host))return!1}r=r.parentElement,n++}return!!Wue[t]}function lde(e){return"composedPath"in e?e.composedPath():[]}function cde(e){var t=lde(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var ude=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",dde=["password","email","tel","hidden"];function pde(e){return e?Array.isArray(e)?e:[e]:[]}function hde(e,t){return!!t&&!!e.closest(t)}function fde(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==dde.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!((!n||""===n||"off"===n)&&!e.hasAttribute("data-rr-is-password")&&!rde(e)&&(t.input.maskAll?hde(e,t.input.unmaskingSelector):!hde(e,t.input.maskingSelector)&&!hde(e,ude)))}function mde(e,t){return!(!e||(!t.text._legacyClassRegex||!Kie(e,t.text._legacyClassRegex))&&(t.text.maskAll?hde(e,t.text.unmaskingSelector):!hde(e,t.text.maskingSelector)&&!hde(e,ude)))}var gde=Ice("network-plugin");function vde(e){return Math.round(Date.now()-e.performance.now())}var yde={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function bde(e){return"resource"===e.entryType}function xde(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var wde=1048576;function Cde(e){return e&&"string"==typeof e&&e.length>wde?(gde.error("Body truncated from "+e.length+" to "+wde+" characters"),e.substring(0,wde)+"... [truncated]"):e}function _de(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function kde(e,t,r){return!(!t[e]||0===t[e].length)&&Zce(r,t[e])}function Sde(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=Ace.HTTPBuildQuery(e);else{if(!Ace.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return Cde(t)}function Ade(e){return new Promise((function(t){var r=setTimeout((function(){t("Timeout while trying to read body")}),500);try{e.clone().text().then((function(e){clearTimeout(r),t(Cde(e))}),(function(e){clearTimeout(r),t("Failed to read body: "+String(e))}))}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}}))}function Ede(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return gde.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e){for(var r=e.length-1;r>=0;r-=1)if(bde(o=e[r])&&o.initiatorType===t&&(!n||o.startTime>=n)&&(!i||o.startTime<=i))return e[r];var o}(e.performance.getEntriesByName(r));return s?Promise.resolve(s):new Promise((function(e){setTimeout(e,50*o)})).then((function(){return Ede(e,t,r,n,i,o+1)}))}function Rde(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},yde.recordHeaders,r.recordHeaders||{}),i=Object.assign({},yde.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},yde,r),s=function(t){var r=t.requests.filter((function(e){return!Zce(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)}));(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return gde.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter((function(e){return function(e){return"navigation"===e.entryType}(e)||bde(e)&&r.initiatorTypes.includes(e.initiatorType)}));e({requests:n.map((function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:vde(t)}})),isInitial:!0})}var i=new t.PerformanceObserver((function(n){var i=n.getEntries().filter((function(e){return bde(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType}));e({requests:i.map((function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:vde(t)}}))})}));return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(s,t,o),l=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=xde(t.XMLHttpRequest.prototype,"open",(function(n){return function(i,o,s,a,l){void 0===s&&(s=!0);var c,u,d=this,p=new Request(o,{method:i}),h={},f={},m=d.setRequestHeader.bind(d);d.setRequestHeader=function(e,t){return _de("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},h.requestHeaders=f;var g=d.send.bind(d);d.send=function(e){return kde("request",r.recordBodyUrls,p.url)&&(h.requestBody=Sde(e)),c=t.performance.now(),g(e)},d.addEventListener("readystatechange",(function(){if(d.readyState===d.DONE){u=t.performance.now();var n={},i=d.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach((function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&_de("response",r.recordHeaders,i)&&(n[i]=o)}}})),h.responseHeaders=n,kde("response",r.recordBodyUrls,p.url)&&(h.responseBody=Sde(d.response)),Ede(t,"xmlhttprequest",p.url,c,u).then((function(r){if(r){var n={url:r.name,method:p.method,initiatorType:r.initiatorType,status:d.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:vde(t),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};e({requests:[n]})}else gde.error("Failed to get performance entry for XHR request to "+p.url)})).catch((function(e){gde.error("Error recording XHR request to "+p.url+": "+String(e))}))}})),n.call(d,i,o,s,a,l)}}));return function(){n()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=xde(t,"fetch",(function(n){return function(){var i,o,s,a,l=new Request(arguments[0],arguments[1]),c={},u=Promise.resolve(void 0),d=Promise.resolve(void 0);try{var p={};l.headers.forEach((function(e,t){_de("request",r.recordHeaders,t)&&(p[t]=e)})),c.requestHeaders=p,kde("request",r.recordBodyUrls,l.url)&&(u=Ade(l).then((function(e){c.requestBody=e}))),o=t.performance.now(),a=n.apply(t,arguments).then((function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach((function(e,t){_de("response",r.recordHeaders,t)&&(n[t]=e)})),c.responseHeaders=n,kde("response",r.recordBodyUrls,l.url)&&(d=Ade(i).then((function(e){c.responseBody=e}))),i}))}catch(e){a=Promise.reject(e)}return Promise.all([u,d,a]).then((function(){return Ede(t,"fetch",l.url,o,s)})).then((function(r){if(r){var n={url:r.name,method:l.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:vde(t),requestHeaders:c.requestHeaders,requestBody:c.requestBody,responseHeaders:c.responseHeaders,responseBody:c.responseBody};e({requests:[n]})}else gde.error("Failed to get performance entry for fetch request to "+l.url)})).catch((function(e){gde.error("Error recording fetch request to "+l.url+": "+String(e))})),a}}));return function(){n()}}(s,t,o);return function(){a(),l(),c()}}var Ide=Ice("recorder"),Ode=f3.CompressionStream,Mde={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Tde=new Set([Bne.MouseMove,Bne.MouseInteraction,Bne.Scroll,Bne.ViewportResize,Bne.Input,Bne.TouchMove,Bne.MediaInteraction,Bne.Drag,Bne.Selection]),Lde=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Gce,this._onMaxLengthReached=e.onMaxLengthReached||Gce,this._onBatchSent=e.onBatchSent||Gce,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=ace,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=jce(e.sharedLockStorage||Bce(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Yce(Jce,Qce,tue),this.batcher=new _ue(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Mde,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Lde.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Lde.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},Lde.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Lde.prototype.get_config=function(e){return this.getConfig(e)},Lde.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>ace&&(this.recordMaxMs=ace,Ide.critical("record_max_ms cannot be greater than "+ace+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Ace.info.currentUrl(),this.replayStartUrl=Ace.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=pde(r).join(","),t.input.unmaskingSelector=pde(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),l=e.get_config("record_mask_text_class"),c=pde(o);if(l)if(l instanceof RegExp)t.text._legacyClassRegex=l;else{var u="."+l;-1===c.indexOf(u)&&c.push(u)}return t.text.maskingSelector=c.join(","),t.text.unmaskingSelector=pde(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(function(e){return{name:"rrweb/network@1.mp",observer:Rde,options:e}}(o))}this.getConfig("record_console")&&i.push({name:"rrweb/console@1",observer:Ule,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=Sue(this.getConfig("record_allowed_iframe_origins"),Ide);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),function(e){return e.type===Dne.IncrementalSnapshot&&Tde.has(e.data.source)}(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(fde,n),maskTextFn:this._getMaskFn(mde,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var l=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),l)}else Ide.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Lde.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Lde.prototype.isRrwebStopped=function(){return null===this._stopRecording},Lde.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Lde.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Lde.deserialize=function(e,t){return new Lde(Ace.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Lde.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},Lde.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Ace.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");f3.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){i(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},Lde.prototype._flushEvents=sue((function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,l=0;l<n;l++)o=Math.min(o,e[l].timestamp),s=Math.max(s,e[l].timestamp),e[l].type===Dne.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:g3.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(e);if(Object.assign(u,this.getUserIdInfo()),function(e,t,r){if(!f3.CompressionStream)return!1;var n=Ace.info.browser(e,t,r),i=Ace.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)}(bce,mce.vendor,vce)){var p=new Blob([d],{type:"application/json"}).stream().pipeThrough(new Ode("gzip"));new Response(p).blob().then(function(e){u.format="gzip",this._sendRequest(i,u,e,r)}.bind(this))}else u.format="body",this._sendRequest(i,u,d,r)}})),Lde.prototype.reportError=function(e,t){Ide.error.apply(Ide.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Ide.error(t)}},Lde.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Lde.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Ide.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},Lde.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var Pde=function(e){this.idb=new Yce(Jce,eue,tue),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Pde.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Pde.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Pde.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return oce.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),oce.resolve())},Pde.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return kue(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):oce.resolve(null)},Pde.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Pde.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Pde.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):oce.resolve()},Pde.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter((function(e){return kue(e)})).map(function(e){return Lde.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return oce.all(t)}.bind(this)).catch(this.handleError.bind(this)):oce.resolve([])};var jde=Ice("recorder"),Nde=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||zie,this.sharedLockStorage=r,this.recordingRegistry=new Pde({mixpanelInstance:this.mixpanelInstance,errorReporter:jde.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Dde(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Nde.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){jde.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){jde.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:Ace.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Lde.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Lde(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}jde.log("Recording already in progress, skipping startRecording.")},Nde.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Nde.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Nde.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return oce.resolve()},Nde.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),oce.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(jde.log("No resumable recording found."),null)}.bind(this))},Nde.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Nde.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Nde.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Nde.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),f3[y3]=Nde;var Bde,Fde={exports:{}},$de=(Bde||(Bde=1,Fde.exports=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);null!==o&&""!==o||t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map((function(t){return e.apply(t,n)}));if(!e.is_logic(r))return r;var i,o,s,a,l,c=e.get_operator(r),u=r[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(i=0;i<u.length-1;i+=2)if(e.truthy(e.apply(u[i],n)))return e.apply(u[i+1],n);return u.length===i+1?e.apply(u[i],n):null}if("and"===c){for(i=0;i<u.length;i+=1)if(o=e.apply(u[i],n),!e.truthy(o))return o;return o}if("or"===c){for(i=0;i<u.length;i+=1)if(o=e.apply(u[i],n),e.truthy(o))return o;return o}if("filter"===c)return a=e.apply(u[0],n),s=u[1],Array.isArray(a)?a.filter((function(t){return e.truthy(e.apply(s,t))})):[];if("map"===c)return a=e.apply(u[0],n),s=u[1],Array.isArray(a)?a.map((function(t){return e.apply(s,t)})):[];if("reduce"===c)return a=e.apply(u[0],n),s=u[1],l=void 0!==u[2]?e.apply(u[2],n):null,Array.isArray(a)?a.reduce((function(t,r){return e.apply(s,{current:r,accumulator:t})}),l):l;if("all"===c){if(a=e.apply(u[0],n),s=u[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(s,a[i])))return!1;return!0}if("none"===c){if(a=e.apply(u[0],n),s=u[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!1;return!0}if("some"===c){if(a=e.apply(u[0],n),s=u[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!0;return!1}if(u=u.map((function(t){return e.apply(t,n)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(n,u);if(c.indexOf(".")>0){var d=String(c).split("."),p=t;for(i=0;i<d.length;i++){if(!p.hasOwnProperty(d[i]))throw new Error("Unrecognized operation "+c+" (failed at "+d.slice(0,i+1).join(".")+")");p=p[d[i]]}return p.apply(n,u)}throw new Error("Unrecognized operation "+c)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach((function(t){r.push.apply(r,e.uses_data(t))}))}return function(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r)},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1}return!1},e}()),Fde.exports),zde=Dde($de),Ude={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!Ace.isEmptyObject(n))try{i=zde.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};function Wde(){this.clicks=[]}function qde(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}f3[v3]=Promise.resolve(Ude),Wde.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var o=cde(e);if(!o||ade(o))return!1}var s=Date.now(),a=e.pageX,l=e.pageY,c=this.clicks[this.clicks.length-1];if(c&&s-c.timestamp<n&&Math.sqrt(Math.pow(a-c.x,2)+Math.pow(l-c.y,2))<r){if(this.clicks.push({x:a,y:l,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:l,timestamp:s}];return!1},qde.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return cde(e)},qde.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=lde(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},qde.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver((function(){t.changeCallback()}));r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Vue.critical("Error while observing shadow root",e)}}},qde.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Vue.critical("Shadow DOM observation unavailable: WeakSet not supported"))},qde.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Vue.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Vde=[Aue,"input",Pue,"select","toggle"],Hde=[Tue],Gde=[Rue],Zde={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Kde(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Kde.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||ade(t)||(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),0))},Kde.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Kde.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Kde.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Kde.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Kde.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Kde.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout((function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}}),t)}else this.processingActive=!1},Kde.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Vde.forEach((function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})})),Gde.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})})),Hde.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})}));var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver((function(){e.recordChangeEvent()})),this.mutationObserver.observe(document.body||document.documentElement,Zde)}catch(e){Vue.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new qde((function(){e.recordChangeEvent()}),Zde),this.shadowDOMObserver.start()}catch(e){Vue.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Kde.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Vue.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Vue.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Vue.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var Xde="autocapture",Yde="full-url",Jde="allow_selectors",Qde="allow_url_regexes",epe="block_attrs",tpe="block_element_callback",rpe="block_selectors",npe="block_url_regexes",ipe="capture_extra_attrs",ope="capture_text_content",spe="scroll_capture_all",ape="scroll_depth_percent_checkpoints",lpe="click",cpe="dead_click",upe="input",dpe="pageview",ppe="rage_click",hpe="scroll",fpe="page_leave",mpe="submit",gpe={};gpe[Jde]=[],gpe[Qde]=[],gpe[epe]=[],gpe[tpe]=null,gpe[rpe]=[],gpe[npe]=[],gpe[ipe]=[],gpe[ope]=!1,gpe[spe]=!1,gpe[ape]=[25,50,75,100],gpe[lpe]=!0,gpe[cpe]=!0,gpe[upe]=!0,gpe[dpe]=Yde,gpe[ppe]=!0,gpe[hpe]=!0,gpe[fpe]=!1,gpe[mpe]=!0;var vpe={$mp_autocapture:!0},ype="$mp_click",bpe="$mp_dead_click",xpe="$mp_rage_click",wpe=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};wpe.prototype.init=function(){!function(){try{return!!gce.createElement("div").matches}catch(e){return!1}}()?Vue.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},wpe.prototype.getFullConfig=function(){var e=this.mp.get_config(Xde);return e?Ace.isObject(e)?Ace.extend({},gpe,e):gpe:{}},wpe.prototype.getConfig=function(e){return this.getFullConfig()[e]},wpe.prototype.currentUrlBlocked=function(){var e=Ace.info.currentUrl(),t=this.getConfig(Qde)||[];if(t.length)try{return!Zce(e,t)}catch(e){return Vue.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(npe)||[];if(!r||!r.length)return!1;try{return Zce(e,r)}catch(e){return Vue.critical("Error while checking block URL regexes: ",e),!0}},wpe.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Xde)?this.getConfig(dpe):this.mp.get_config("track_pageview")},wpe.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===ype&&!this.getConfig(lpe)||t===xpe&&!this._getClickTrackingConfig(ppe)||t===bpe&&!this._getClickTrackingConfig(cpe)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,l=t.captureExtraAttrs||[],c=t.capturedForHeatMap||!1,u={};Ace.each(i,(function(e){u[e]=!0}));var d=null,p=void 0===e.target?e.srcElement:e.target;if(tde(p)&&(p=p.parentNode),function(e,t){if(!e||ede(e,"html")||!Que(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Pue;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Aue:t.type===Eue;case"select":case"textarea":return t.type===Aue;default:return t.type===Eue}}(p,e)&&Yue(p,e,r,n)&&!Jue(p,e,o,s)){for(var h=[p],f=p;f.parentNode&&!ede(f,"body");)h.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(Ace.each(h,(function(t){var i=nde(t,e,r,n);u.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&ide(m)&&m),Jue(t,e,o,s)&&(v=!0),g.push(Kue(t,e,u,l,r,n))}),this),!v){var y=gce.documentElement;if(d={$event_type:e.type,$host:f3.location.host,$pathname:f3.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y.clientHeight,f3.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,f3.innerWidth||0),$pageHeight:gce.body.offsetHeight||0,$pageWidth:gce.body.offsetWidth||0},Ace.each(l,(function(e){if(!u[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);ide(t)&&(d["$el_attr__"+e]=t)}})),a&&(b=Xue(p,e,r,n))&&b.length&&(d.$el_text=b),e.type===Eue&&(Ace.each(Nue,(function(t){t in e&&(d["$"+t]=e[t])})),c&&(d.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(ede(i,"a")||ede(i,"button")||ede(i,"input")||ede(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var b=Xue(p,e,r,n);b&&b.length&&(d.$el_text=b)}if(p){if(!Yue(p,e,r,n)||Jue(p,e,o,s))return null;var x=Kue(p,e,u,l,r,n);d.$target=x,d.$el_classes=x.$classes,Ace.extend(d,Ace.strip_empty_properties({$el_id:x.$id,$el_tag_name:x.$tag_name}))}}}return d}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(Jde),blockAttrs:this.getConfig(epe),blockElementCallback:this.getConfig(tpe),blockSelectors:this.getConfig(rpe),captureExtraAttrs:this.getConfig(ipe),captureTextContent:this.getConfig(ope),capturedForHeatMap:r});n&&(Ace.extend(n,vpe),this.mp.track(t,n))}},wpe.prototype.initPageListeners=function(){if(f3.removeEventListener(Mue,this.listenerPopstate),f3.removeEventListener(Rue,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(fpe)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){f3.dispatchEvent(new Event(Oue))},this.listenerHashchange=function(){f3.dispatchEvent(new Event(Oue))},f3.addEventListener(Mue,this.listenerPopstate),f3.addEventListener(Rue,this.listenerHashchange);var e=f3.history.pushState;"function"==typeof e&&(f3.history.pushState=function(t,r,n){e.call(f3.history,t,r,n),f3.dispatchEvent(new Event(Oue))});var t=f3.history.replaceState;"function"==typeof t&&(f3.history.replaceState=function(e,r,n){t.call(f3.history,e,r,n),f3.dispatchEvent(new Event(Oue))})}},wpe.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},wpe.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(fpe)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(gce.documentElement.clientHeight,f3.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=Ace.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||Ace.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(gce.documentElement.clientWidth,f3.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},vpe);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},wpe.prototype._initScrollDepthTracking=function(){if(f3.removeEventListener(Lue,this.listenerScrollDepth),f3.removeEventListener(Tue,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Vue.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(gce.documentElement.clientHeight,f3.innerHeight||0);var e=ode(function(){if(!this.currentUrlBlocked()){var e=Math.max(gce.documentElement.clientHeight,f3.innerHeight||0)+f3.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=gce.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,f3.addEventListener(e.eventType,this.listenerScrollDepth)}},wpe.prototype.initClickTracking=function(){f3.removeEventListener(Eue,this.listenerClick,!0),(this.getConfig(lpe)||this.mp.get_config("record_heatmap_data"))&&(Vue.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(lpe)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,ype)}.bind(this),f3.addEventListener(Eue,this.listenerClick,!0))},wpe.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(cpe)||this.mp.get_config("record_heatmap_data")?(Vue.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Kde(function(e){this.trackDomEvent(e,bpe)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(cpe);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),f3.addEventListener(Eue,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},wpe.prototype.initInputTracking=function(){f3.removeEventListener(Aue,this.listenerChange,!0),this.getConfig(upe)&&(Vue.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(upe)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),f3.addEventListener(Aue,this.listenerChange,!0))},wpe.prototype.initPageviewTracking=function(){if(f3.removeEventListener(Oue,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Vue.log("Initializing pageview tracking");var e="",t=!1;!this.pageviewTrackingConfig()&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||(t=this.mp.track_pageview(vpe)),t&&(e=Ace.info.currentUrl()),this.listenerLocationchange=Oce(function(){if(!this.currentUrlBlocked()){var t=Ace.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();!i&&this.mp.is_recording_heatmap_data()&&(i=Yde),i===Yde?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(vpe)&&(e=t),n&&(this.lastScrollCheckpoint=0,Vue.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),f3.addEventListener(Oue,this.listenerLocationchange)}},wpe.prototype.initRageClickTracking=function(){f3.removeEventListener(Eue,this.listenerRageClick,!0),(this._getClickTrackingConfig(ppe)||this.mp.get_config("record_heatmap_data"))&&(Vue.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Wde),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(ppe);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,xpe))}.bind(this),f3.addEventListener(Eue,this.listenerRageClick,!0))},wpe.prototype.initScrollTracking=function(){if(f3.removeEventListener(Tue,this.listenerScroll),f3.removeEventListener(Lue,this.listenerScroll),this.getConfig(hpe)){Vue.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=ode(function(){if(this.getConfig(hpe)&&!this.currentUrlBlocked()){var e=this.getConfig(spe),t=(this.getConfig(ape)||[]).slice().sort((function(e,t){return e-t})),r=f3.scrollY,n=Ace.extend({$scroll_top:r},vpe);try{var i=gce.body.scrollHeight,o=Math.round(r/(i-f3.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){Vue.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,f3.addEventListener(e.eventType,this.listenerScroll)}},wpe.prototype.initSubmitTracking=function(){f3.removeEventListener(Pue,this.listenerSubmit,!0),this.getConfig(mpe)&&(Vue.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(mpe)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),f3.addEventListener(Pue,this.listenerSubmit,!0))},wpe.prototype.initPageLeaveTracking=function(){if(gce.removeEventListener(jue,this.listenerPageLeaveVisibilitychange),f3.removeEventListener(Oue,this.listenerPageLeaveLocationchange),f3.removeEventListener(Iue,this.listenerPageLoad),this.getConfig(fpe)||this.mp.get_config("record_heatmap_data")){Vue.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=Ace.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=gce.body.scrollHeight}.bind(this),f3.addEventListener(Iue,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Oce(function(t){if(!this.currentUrlBlocked()){var r=Ace.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(gce.documentElement.clientHeight,f3.innerHeight||0),this.previousScrollHeight=gce.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),f3.addEventListener(Oue,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){gce.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),gce.addEventListener(jue,this.listenerPageLeaveVisibilitychange)}},wpe.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(f3.removeEventListener(Eue,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Mce(wpe);var Cpe=function(e,t){return f3[v3]&&"function"==typeof f3[v3].then||(f3[v3]=new Promise((function(r){e(t,r)})).then((function(){var e=f3[v3];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")})).catch((function(e){throw delete f3[v3],e}))),f3[v3]},_pe=Ice("flags"),kpe="mixpanelFlags",Spe={version:1,storeNames:[kpe]},Ape=864e5,Epe=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),Rpe=[Epe.NETWORK_ONLY,Epe.NETWORK_FIRST,Epe.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Ipe=function(e,t,r){this.idb=new Yce("mixpanelFlagsDb",kpe,Spe),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};Ipe.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Epe.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},Ipe.prototype.getTtlMs=function(){return this._isConfigValid()?this.persistenceConfig.persistenceTtlMs??Ape:Ape},Ipe.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!(!e||(-1===Rpe.indexOf(e.variantLookupPolicy)?(_pe.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),1):void 0!==e.persistenceTtlMs&&null!==e.persistenceTtlMs&&e.persistenceTtlMs<=0&&(_pe.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),1)))},Ipe.prototype.loadFlagsFromStorage=function(e){var t=Ace.bind((function(){return this.clear().then((function(){return null})).catch((function(){return null}))}),this);if(this.getPolicy()===Epe.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(Ace.bind((function(){return this.idb.getItem(this.persistedVariantsKey)}),this)).then(Ace.bind((function(n){if(!n)return _pe.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n.persistedAt>=r)return _pe.log("Persisted variants are expiring"),null;if(!e||n.distinctId!==e.distinct_id)return _pe.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return Ace.each(n.flagVariants,(function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:n.persistedAt,ttl_in_ms:r})})),_pe.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n.distinctId),{flags:i,pendingFirstTimeEvents:n.pendingFirstTimeEvents||{},persistedAtMs:n.persistedAt,ttlMs:r}}),this)).catch(Ace.bind((function(e){return _pe.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()}),this))},Ipe.prototype.save=function(e,t,r){if(this.getPolicy()===Epe.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach((function(e,t){n[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}}));var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(Ace.bind((function(){return this.idb.setItem(this.persistedVariantsKey,i)}),this)).then((function(){_pe.log("Saved",t.size,"variants to IndexedDB for distinct_id",i.distinctId)})).catch((function(e){_pe.error("Failed to persist variants to IndexedDB:",e)}))},Ipe.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(Ace.bind((function(){return this.idb.removeItem(this.persistedVariantsKey)}),this)).then((function(){_pe.log("Cleared persisted variants from IndexedDB")})).catch((function(e){_pe.error("Failed to clear persisted variants from IndexedDB:",e)}))};var Ope=Ice("flags"),Mpe="flags",Tpe="context",Lpe={};Lpe[Tpe]={};var Ppe=function(e){return Ace.isObject(e)?Ace.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},jpe=function(e){this.fetch=f3.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function Npe(e){return null!=e}jpe.prototype.init=function(){if(this.minApisSupported())return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Ipe(this.getConfig("persistence"),this.getMpConfig("token"),Ace.bind((function(){return this.getMpConfig("disable_persistence")}),this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(Ace.bind((function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)}),this)),this.persistenceLoadedPromise.then(Ace.bind((function(){return this.fetchFlags()}),this)).catch((function(){Ope.error("Error initializing feature flags")}));Ope.critical("Feature Flags unavailable: missing minimum required APIs")},jpe.prototype._buildContext=function(){return Ace.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(Tpe))},jpe.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(Ace.bind((function(){return this.fetchFlags()}),this)).catch((function(){Ope.error("Error during flags reset")}))):Promise.resolve()},jpe.prototype.getFullConfig=function(){var e=this.getMpConfig(Mpe);return e?Ace.isObject(e)?Ace.extend({},Lpe,e):Lpe:{}},jpe.prototype.getConfig=function(e){return this.getFullConfig()[e]},jpe.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Mpe)},jpe.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Ope.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Mpe);Ace.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Tpe);r[Tpe]=Ace.extend({},n,e);var i={};return i[Mpe]=r,this.setMpConfig(i),this.fetchFlags().catch((function(){Ope.error("Error fetching flags during updateContext")}))},jpe.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ope.error("Feature Flags not enabled"),!!this.flags},jpe.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=Wce();Ope.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",g3.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(f3,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(t){var n=t.flags;if(!n)throw new Error("No flags in API response");var i=new Map,o={};Ace.each(n,(function(e,t){var r=!1,n=t+":";if(Ace.each(this.activatedFirstTimeEvents,(function(e,t){t.startsWith(n)&&(r=!0)})),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"network"})}),this);var s=t.pending_first_time_events;s&&s.length>0&&Ace.each(s,(function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})}),this),this.activatedFirstTimeEvents&&Ace.each(this.activatedFirstTimeEvents,(function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))}),this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Ope.error(e),e}.bind(this)),this.fetchPromise},jpe.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Ope.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},jpe.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Ope.error("Fetch in progress started time not set, cannot mark fetch complete")},jpe.prototype._loadTargetingIfNeeded=function(){var e=!1;Ace.each(this.pendingFirstTimeEvents,(function(t){t.property_filters&&!Ace.isEmptyObject(t.property_filters)&&(e=!0)})),e&&this.getTargeting().then((function(){Ope.log("targeting loaded for property filter evaluation")}))},jpe.prototype.getTargeting=function(){return Cpe(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){Ope.error("Failed to load targeting: "+e)}.bind(this))},jpe.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!Ace.isEmptyObject(this.pendingFirstTimeEvents)&&(f3[v3]&&Ace.isFunction(f3[v3].then)?f3[v3].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},jpe.prototype._processFirstTimeEventCheck=function(e,t,r){Ace.each(this.pendingFirstTimeEvents,(function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||Ace.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)Ope.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){Ope.log('First-time event matched for flag "'+s+'": '+e);var l={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,l),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else Ope.warn('Skipping event check for "'+s+'" - property filters require targeting library')}}),this)},jpe.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},jpe.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Wce(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",g3.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};Ope.log("Recording first-time event for flag: "+e),this.fetch.call(f3,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch((function(t){Ope.error("Failed to record first-time event for flag "+e+": "+t)}))},jpe.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise((function(e){Ope.critical("Feature Flags not initialized"),e(Ppe(t))}));var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(Ace.bind((function(){if(r===Epe.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(Ace.bind((function(){return this.getVariantSync(e,t)}),this)).catch((function(e){return Ope.error(e),Ppe(t)})):Ppe(t);var n=Ace.bind((function(){return this.getVariantSync(e,t)}),this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):Ppe(t)}),this))},jpe.prototype._loadedPersistenceIsStale=function(){return!(!this._loadedPersistedAtMs||!this._loadedTtlMs)&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},jpe.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return Ope.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),Ppe(t);if(!this.areFlagsReady())return Ope.log("Flags not loaded yet"),Ppe(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Ope.log('No flag found: "'+e+'"'),Ppe(t))},jpe.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return Ope.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(Ace.bind((function(){if(e===Epe.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(Ace.bind((function(){return this.getAllVariantsSync()}),this)).catch((function(e){return Ope.error(e),new Map})):new Map;var t=Ace.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map}),this))},jpe.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(Ope.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},jpe.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then((function(e){return e.value})).catch((function(e){return Ope.error(e),t}))},jpe.prototype.getFeatureData=function(e,t){return Ope.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},jpe.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},jpe.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch((function(e){return Ope.error(e),t}))},jpe.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Ope.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},jpe.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":Npe(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":Npe(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};Npe(t.experiment_id)&&(r.$experiment_id=t.experiment_id),Npe(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),Npe(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),Npe(t.variant_source)&&(r.$variant_source=t.variant_source),Npe(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),Npe(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},jpe.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},jpe.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Mce(jpe),jpe.prototype.are_flags_ready=jpe.prototype.areFlagsReady,jpe.prototype.get_variant=jpe.prototype.getVariant,jpe.prototype.get_variant_sync=jpe.prototype.getVariantSync,jpe.prototype.get_all_variants=jpe.prototype.getAllVariants,jpe.prototype.get_all_variants_sync=jpe.prototype.getAllVariantsSync,jpe.prototype.get_variant_value=jpe.prototype.getVariantValue,jpe.prototype.get_variant_value_sync=jpe.prototype.getVariantValueSync,jpe.prototype.is_enabled=jpe.prototype.isEnabled,jpe.prototype.is_enabled_sync=jpe.prototype.isEnabledSync,jpe.prototype.load_flags=jpe.prototype.loadFlags,jpe.prototype.update_context=jpe.prototype.updateContext,jpe.prototype.when_ready=jpe.prototype.whenReady,jpe.prototype.get_feature_data=jpe.prototype.getFeatureData,jpe.prototype.getTargeting=jpe.prototype.getTargeting;var Dpe=Ice("recorder"),Bpe="mp_iframe_handshake_request",Fpe="mp_iframe_handshake_response",$pe=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};$pe.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return Ece.log("Load recorder check skipped due to disable_persistence config"),oce.resolve(!1);var e=new Yce(Jce,eue,tue),t=this.getTabId();return e.init().then((function(){return e.getAll()})).then((function(e){for(var r=0;r<e.length;r++)if(kue(e[r])||e[r].tabId===t)return!0;return!1})).catch(Ace.bind((function(e){return this.reportError("Error checking recording registry",e),!1}),this))},$pe.prototype.checkAndStartSessionRecording=function(e,t){if(!f3.MutationObserver)return Ece.critical("Browser does not support MutationObserver; skipping session recording"),oce.resolve();var r=Ace.bind((function(e){return new oce(Ace.bind((function(t){var r=Oce(Ace.bind((function(){this._recorder=this._recorder||new f3[y3](this.mixpanelInstance),this._recorder.resumeRecording(e),t()}),this));if(Ace.isUndefined(f3[y3])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()}),this))}),this),n=Sue(this.getMpConfig("record_allowed_iframe_origins"),Dpe);if(n.length>0&&(this._setupParentFrameListener(n),f3.parent!==f3))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),oce.resolve();var i=Ace.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(Ace.bind((function(e){return e?r(!1):oce.resolve()}),this))},$pe.prototype.isRecording=function(){if(!this._recorder||!Ace.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},$pe.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!Ace.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+b3;Cpe(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){Ece.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch((function(e){Ece.critical("Failed to load targeting library:",e)}))}else this.checkAndStartSessionRecording(!1,o)}}},$pe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():oce.resolve()},$pe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():oce.resolve()},$pe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():oce.resolve()},$pe.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},$pe.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},$pe.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Ace.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},$pe.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},$pe.prototype.getRecorder=function(){return this._recorder},$pe.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===Fpe&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,f3.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},f3.addEventListener("message",this._childFrameMessageHandler)}},$pe.prototype._sendParentFrameRequest=function(e){var t={};t.type=Bpe,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{f3.parent.postMessage(t,e[r])}catch(e){}},$pe.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),function i(){setTimeout((function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())}),n)}()},$pe.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===Bpe&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=Fpe,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},f3.addEventListener("message",this._parentFrameMessageHandler)}},Mce($pe);var zpe=function(){};zpe.prototype.create_properties=function(){},zpe.prototype.event_handler=function(){},zpe.prototype.after_track_handler=function(){},zpe.prototype.init=function(e){return this.mp=e,this},zpe.prototype.track=function(e,t,r,n){var i=this,o=Ace.dom_query(e);if(0!==o.length)return Ace.each(o,(function(e){Ace.register_event(e,this.override_event,(function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))}))}),this),!0;Ece.error("The DOM query ("+e+") returned 0 elements")},zpe.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},zpe.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):Ace.extend({},e)};var Upe=function(){this.override_event="click"};Ace.inherit(Upe,zpe),Upe.prototype.create_properties=function(e,t){var r=Upe.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Upe.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Upe.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var Wpe=function(){this.override_event="submit"};Ace.inherit(Wpe,zpe),Wpe.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Wpe.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var qpe="$set",Vpe="$set_once",Hpe="$unset",Gpe="$add",Zpe="$append",Kpe="$union",Xpe="$remove",Ype={set_action:function(e,t){var r={},n={};return Ace.isObject(e)?Ace.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[qpe]=n,r},unset_action:function(e){var t={},r=[];return Ace.isArray(e)||(e=[e]),Ace.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[Hpe]=r,t},set_once_action:function(e,t){var r={},n={};return Ace.isObject(e)?Ace.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Vpe]=n,r},union_action:function(e,t){var r={},n={};return Ace.isObject(e)?Ace.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=Ace.isArray(e)?e:[e])}),this):n[e]=Ace.isArray(t)?t:[t],r[Kpe]=n,r},append_action:function(e,t){var r={},n={};return Ace.isObject(e)?Ace.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Zpe]=n,r},remove_action:function(e,t){var r={},n={};return Ace.isObject(e)?Ace.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Xpe]=n,r},delete_action:function(){return{$delete:""}}},Jpe=function(){};Ace.extend(Jpe.prototype,Ype),Jpe.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Jpe.prototype.set=lue((function(e,t,r){var n=this.set_action(e,t);return Ace.isObject(e)&&(r=t),this._send_request(n,r)})),Jpe.prototype.set_once=lue((function(e,t,r){var n=this.set_once_action(e,t);return Ace.isObject(e)&&(r=t),this._send_request(n,r)})),Jpe.prototype.unset=lue((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Jpe.prototype.union=lue((function(e,t,r){Ace.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Jpe.prototype.delete=lue((function(e){var t=this.delete_action();return this._send_request(t,e)})),Jpe.prototype.remove=lue((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),Jpe.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=Ace.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},Jpe.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Jpe.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Jpe.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Jpe.prototype.remove=Jpe.prototype.remove,Jpe.prototype.set=Jpe.prototype.set,Jpe.prototype.set_once=Jpe.prototype.set_once,Jpe.prototype.union=Jpe.prototype.union,Jpe.prototype.unset=Jpe.prototype.unset,Jpe.prototype.toString=Jpe.prototype.toString;var Qpe=function(){};Ace.extend(Qpe.prototype,Ype),Qpe.prototype._init=function(e){this._mixpanel=e},Qpe.prototype.set=aue((function(e,t,r){var n=this.set_action(e,t);return Ace.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[qpe]=Ace.extend({},Ace.info.people_properties(),n[qpe]),this._send_request(n,r)})),Qpe.prototype.set_once=aue((function(e,t,r){var n=this.set_once_action(e,t);return Ace.isObject(e)&&(r=t),this._send_request(n,r)})),Qpe.prototype.unset=aue((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Qpe.prototype.increment=aue((function(e,t,r){var n={},i={};return Ace.isObject(e)?(Ace.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Ece.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),r=t):(Ace.isUndefined(t)&&(t=1),i[e]=t),n[Gpe]=i,this._send_request(n,r)})),Qpe.prototype.append=aue((function(e,t,r){Ace.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),Qpe.prototype.remove=aue((function(e,t,r){Ace.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),Qpe.prototype.union=aue((function(e,t,r){Ace.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Qpe.prototype.track_charge=aue((function(){Ece.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")})),Qpe.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Qpe.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Ece.error("mixpanel.people.delete_user() requires you to call identify() first")},Qpe.prototype.toString=function(){return this._mixpanel.toString()+".people"},Qpe.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=Ace.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),Ace.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),Ace.truncate(o,255))},Qpe.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Qpe.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Qpe.prototype._enqueue=function(e){qpe in e?this._mixpanel.persistence._add_to_people_queue(qpe,e):Vpe in e?this._mixpanel.persistence._add_to_people_queue(Vpe,e):Hpe in e?this._mixpanel.persistence._add_to_people_queue(Hpe,e):Gpe in e?this._mixpanel.persistence._add_to_people_queue(Gpe,e):Zpe in e?this._mixpanel.persistence._add_to_people_queue(Zpe,e):Xpe in e?this._mixpanel.persistence._add_to_people_queue(Xpe,e):Kpe in e?this._mixpanel.persistence._add_to_people_queue(Kpe,e):Ece.error("Invalid call to _enqueue():",e)},Qpe.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=Ace.extend({},this._mixpanel.persistence.load_queue(e)),s=o;Ace.isUndefined(o)||!Ace.isObject(o)||Ace.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,(function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),Ace.isUndefined(r)||r(t,n)})))},Qpe.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(qpe,this.set,e),this._flush_one_queue(Vpe,this.set_once,n),this._flush_one_queue(Hpe,this.unset,o,(function(e){return Ace.keys(e)})),this._flush_one_queue(Gpe,this.increment,t),this._flush_one_queue(Kpe,this.union,i);var l=this._mixpanel.persistence.load_queue(Zpe);if(!Ace.isUndefined(l)&&Ace.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Zpe,c),Ace.isUndefined(r)||r(e,t)},d=l.length-1;d>=0;d--)l=this._mixpanel.persistence.load_queue(Zpe),c=l.pop(),a._mixpanel.persistence.save(),Ace.isEmptyObject(c)||a.append(c,u);var p=this._mixpanel.persistence.load_queue(Xpe);if(!Ace.isUndefined(p)&&Ace.isArray(p)&&p.length)for(var h,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Xpe,h),Ace.isUndefined(s)||s(e,t)},m=p.length-1;m>=0;m--)p=this._mixpanel.persistence.load_queue(Xpe),h=p.pop(),a._mixpanel.persistence.save(),Ace.isEmptyObject(h)||a.remove(h,f)},Qpe.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Qpe.prototype.set=Qpe.prototype.set,Qpe.prototype.set_once=Qpe.prototype.set_once,Qpe.prototype.unset=Qpe.prototype.unset,Qpe.prototype.increment=Qpe.prototype.increment,Qpe.prototype.append=Qpe.prototype.append,Qpe.prototype.remove=Qpe.prototype.remove,Qpe.prototype.union=Qpe.prototype.union,Qpe.prototype.track_charge=Qpe.prototype.track_charge,Qpe.prototype.clear_charges=Qpe.prototype.clear_charges,Qpe.prototype.delete_user=Qpe.prototype.delete_user,Qpe.prototype.toString=Qpe.prototype.toString;var ehe,the="__mps",rhe="__mpso",nhe="__mpus",ihe="__mpa",ohe="__mpap",she="__mpr",ahe="__mpu",lhe="$people_distinct_id",che="__alias",uhe="__timers",dhe=[the,rhe,nhe,ihe,ohe,she,ahe,lhe,che,uhe],phe=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Ece.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Ace.localStorage.is_supported()?this.storage=Ace.localStorage:this.storage=Ace.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};phe.prototype.properties=function(){var e={};return this.load(),Ace.each(this.props,(function(t,r){Ace.include(dhe,r)||(e[r]=t)})),e},phe.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Ace.extend({},e))}},phe.prototype.upgrade=function(){var e,t;this.storage===Ace.localStorage?(e=Ace.cookie.parse(this.name),Ace.cookie.remove(this.name),Ace.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Ace.cookie&&(t=Ace.localStorage.parse(this.name),Ace.localStorage.remove(this.name),t&&this.register_once(t))},phe.prototype.save=function(){this.disabled||this.storage.set(this.name,Kce(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},phe.prototype.load_prop=function(e){return this.load(),this.props[e]},phe.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},phe.prototype.clear=function(){this.remove(),this.props={}},phe.prototype.register_once=function(e,t,r){return!!Ace.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Ace.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},phe.prototype.register=function(e,t){return!!Ace.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Ace.extend(this.props,e),this.save(),!0)},phe.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},phe.prototype.update_search_keyword=function(e){this.register(Ace.info.searchInfo(e))},phe.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Ace.info.referringDomain(e)||"$direct"},"")},phe.prototype.get_referrer_info=function(){return Ace.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},phe.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},phe.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},phe.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},phe.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},phe.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},phe.prototype.get_cross_subdomain=function(){return this.cross_subdomain},phe.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},phe.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(qpe),o=this._get_or_create_queue(Vpe),s=this._get_or_create_queue(Hpe),a=this._get_or_create_queue(Gpe),l=this._get_or_create_queue(Kpe),c=this._get_or_create_queue(Xpe,[]),u=this._get_or_create_queue(Zpe,[]);r===the?(Ace.extend(i,n),this._pop_from_people_queue(Gpe,n),this._pop_from_people_queue(Kpe,n),this._pop_from_people_queue(Hpe,n)):r===rhe?(Ace.each(n,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue(Hpe,n)):r===nhe?Ace.each(n,(function(e){Ace.each([i,o,a,l],(function(t){e in t&&delete t[e]})),Ace.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===ihe?(Ace.each(n,(function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(Hpe,n)):r===ahe?(Ace.each(n,(function(e,t){Ace.isArray(e)&&(t in l||(l[t]=[]),Ace.each(e,(function(e){Ace.include(l[t],e)||l[t].push(e)})))})),this._pop_from_people_queue(Hpe,n)):r===she?(c.push(n),this._pop_from_people_queue(Zpe,n)):r===ohe&&(u.push(n),this._pop_from_people_queue(Hpe,n)),Ece.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ece.log(t),this.save()},phe.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Ace.isUndefined(r)||Ace.each(t,(function(t,n){e===Zpe||e===Xpe?Ace.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},phe.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},phe.prototype._get_queue_key=function(e){return e===qpe?the:e===Vpe?rhe:e===Hpe?nhe:e===Gpe?ihe:e===Zpe?ohe:e===Xpe?she:e===Kpe?ahe:void Ece.error("Invalid queue:",e)},phe.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Ace.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},phe.prototype.set_event_timer=function(e,t){var r=this.load_prop(uhe)||{};r[e]=t,this.props[uhe]=r,this.save()},phe.prototype.remove_event_timer=function(e){var t=(this.load_prop(uhe)||{})[e];return Ace.isUndefined(t)||(delete this.props[uhe][e],this.save()),t};var hhe,fhe=function(e,t){throw new Error(e+" not available in this build.")},mhe="mixpanel",ghe="base64",vhe="$device:",yhe=f3.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,bhe=!yhe&&-1===bce.indexOf("MSIE")&&-1===bce.indexOf("Mozilla"),xhe=null;mce.sendBeacon&&(xhe=function(){return mce.sendBeacon.apply(mce,arguments)});var whe={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Che={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:whe,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ghe,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Gce,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Gce,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:ace,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},_he=!1,khe=function(){},She=function(e,t,r){var n,i=r===mhe?hhe:hhe[r];if(i&&0===ehe)n=i;else{if(i&&!Ace.isArray(i))return void Ece.error("You have already initialized "+r);n=new khe}if(n._cached_groups={},n._init(e,t,r),n.people=new Qpe,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=Ace.info.campaignParams(null),s={},a=!1;Ace.each(o,(function(e,t){s["initial_"+t]=e,e&&(a=!0)})),a&&n.people.set_once(s)}g3.DEBUG=g3.DEBUG||n.get_config("debug");var l=0===ehe?"module":"snippet";return f3.dispatchEvent(new f3.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:l,token:e,name:r,info:Ace.info}})),!Ace.isUndefined(i)&&Ace.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};khe.prototype.init=function(e,t,r){if(Ace.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==mhe){var n=She(e,t,r);return hhe[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},khe.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||Che.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(Ace.extend({},Che,n,t,{name:r,token:e,callback_fn:(r===mhe?r:mhe+"."+r)+"._jsc"})),this.recorderManager=new $pe({mixpanelInstance:this,getConfigFunc:Ace.bind(this.get_config,this),setConfigFunc:Ace.bind(this.set_config,this),getTabIdFunc:Ace.bind(this.get_tab_id,this),reportErrorFunc:Ace.bind(this.report_error,this),getDistinctIdFunc:Ace.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:fhe}),this._jsc=Gce,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(Ace.localStorage.is_supported(!0)&&yhe){if(this.init_batchers(),xhe&&f3.addEventListener){var i=Ace.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);f3.addEventListener("pagehide",(function(e){e.persisted&&i()})),f3.addEventListener("visibilitychange",(function(){"hidden"===gce.visibilityState&&i()}))}}else this._batch_requests=!1,Ece.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Ace.each(this.get_batcher_configs(),(function(e){Ece.log("Clearing batch queue "+e.queue_key),Ace.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new phe(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=Ace.UUID();this.get_distinct_id()||this.register_once({distinct_id:vhe+o,$device_id:o},""),this.flags=new jpe({getFullApiRoute:Ace.bind((function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags}),this),getConfigFunc:Ace.bind(this.get_config,this),setConfigFunc:Ace.bind(this.set_config,this),getPropertyFunc:Ace.bind(this.get_property,this),trackingFunc:Ace.bind(this.track,this),loadExtraBundle:fhe,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+b3}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(Ace.bind((function(){return this._check_and_start_session_recording()}),this)):this._check_and_start_session_recording(),this.autocapture=new wpe(this),this.autocapture.init()},khe.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Ece.log("Tab ID initialization skipped due to disable_persistence config");else if(Ace.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!Ace.sessionStorage.get(r)&&Ace.sessionStorage.get(t)||Ace.sessionStorage.set(t,"$tab-"+Ace.UUID()),Ace.sessionStorage.set(r,"1"),this.tab_id=Ace.sessionStorage.get(t),f3.addEventListener("beforeunload",(function(){Ace.sessionStorage.remove(r)}))}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},khe.prototype.get_tab_id=function(){return this.tab_id||null},khe.prototype._check_and_start_session_recording=sue((function(e){return this.recorderManager.checkAndStartSessionRecording(e)})),khe.prototype._start_recording_on_event=Oce((function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(Ace.bind((function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)}),this))})),khe.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},khe.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},khe.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},khe.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},khe.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},khe.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},khe.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},khe.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},khe.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},khe.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=Ace.info.campaignParams(null);Ace.each(e,function(e,t){this.unregister(t)}.bind(this))}},khe.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(gce.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Ace.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(gce.referrer)},khe.prototype._dom_loaded=function(){Ace.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||Ace.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},khe.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!_he)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},khe.prototype._prepare_callback=function(e,t){if(Ace.isUndefined(e))return null;if(yhe)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},khe.prototype._send_request=function(e,t,r,n){var i=!0;if(bhe)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!Ace.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Ace.extend(o,r||{}),yhe||(r.method="GET");var a="POST"===r.method,l=xhe&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),yhe||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),Ace.extend(t,this.get_config("api_extra_query_params")),e+="?"+Ace.HTTPBuildQuery(t);var u=this;if("img"in t){var d=gce.createElement("img");d.src=e,gce.body.appendChild(d)}else if(l){try{i=xhe(e,s)}catch(e){u.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){u.report_error(e)}}else if(yhe)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),Ace.each(h,(function(e,t){p.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var f=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(c){var t;try{t=Ace.JSONDecode(p.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,u.report_error(e),n)if(c){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){u.report_error(e),i=!1}else{var m=gce.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=gce.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},khe.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!f3.AbortController)return Ece.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:g3.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=n+"?"+Ace.HTTPBuildQuery(i),s=new AbortController,a=setTimeout((function(){s.abort()}),500),l={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return f3.fetch(o,l).then((function(e){return clearTimeout(a),e.ok?e.json():(Ece.critical("Network response was not ok"),void r())})).then((function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};Ace.each(n,(function(e,t){Che.hasOwnProperty(t)&&(i[t]=e)})),Ace.isEmptyObject(i)?(Ece.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()})).catch((function(e){clearTimeout(a),Ece.critical("Failed to fetch remote settings",e),r()}))},khe.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Ace.each(e,(function(e){e&&(t=e[0],Ace.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Ace.isArray(e)&&"alias"===t?r.push(e):Ace.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))}),this);var o=function(e,t){Ace.each(e,(function(e){if(Ace.isArray(e[0])){var r=t;Ace.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(r,this),o(n,this),o(i,this)},khe.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},khe.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},khe.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Ace.bind((function(e){return new _ue(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Ace.bind((function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:Ace.bind((function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null}),this),stopAllBatchingFunc:Ace.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},khe.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Ace.each(this.request_batchers,(function(e){e.start()})))},khe.prototype.stop_batch_senders=function(){this._batch_requests=!1,Ace.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},khe.prototype.push=function(e){this._execute_array([e])},khe.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},khe.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},khe.prototype._encode_data_for_request=function(e){var t=Kce(e);return this.get_config("api_payload_format")===ghe&&(t=Ace.base64Encode(t)),{data:t}},khe.prototype._track_or_batch=function(e,t){var r=Ace.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Gce;var a=!0,l=Ace.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Ece.log("MIXPANEL REQUEST:"),Ece.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!o?i.enqueue(r).then((function(e){e?t(1,r):l()})):a=l(),a&&r},khe.prototype.track=sue((function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=Gce),Ace.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Ace.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!Ace.isUndefined(a)){var l=(new Date).getTime()-a;t.$duration=parseFloat((l/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?Ace.info.marketingParams():{};t=Ace.extend({},Ace.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");Ace.isArray(u)?Ace.each(u,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+u),this._start_recording_on_event(e,t);var d={event:e,properties:t};return i=this._track_or_batch({type:"events",data:d,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}})),khe.prototype.set_group=sue((function(e,t,r){Ace.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),khe.prototype.add_group=sue((function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)})),khe.prototype.remove_group=sue((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),khe.prototype.track_with_groups=sue((function(e,t,r,n){var i=Ace.extend({},t||{});return Ace.each(r,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,n)})),khe.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},khe.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},khe.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new Jpe)._init(this,e,t),this._cached_groups[r]=n),n},khe.prototype.track_pageview=sue((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Ace.extend(Ace.info.mpPageViewProperties(),Ace.info.campaignParams(),Ace.info.clickParams()),i=Ace.extend({},n,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(r,i)})),khe.prototype.track_links=function(){return this._track_dom.call(this,Upe,arguments)},khe.prototype.track_forms=function(){return this._track_dom.call(this,Wpe,arguments)},khe.prototype.time_event=function(e){Ace.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var Ahe={persistent:!0},Ehe=function(e){var t;return t=Ace.isObject(e)?e:Ace.isUndefined(e)?{}:{days:e},Ace.extend({},Ahe,t)};khe.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=Ehe(t);n.persistent?this.persistence.register(e,n.days):Ace.extend(this.unpersisted_superprops,e)}},khe.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=Ehe(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),Ace.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))}},khe.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=Ehe(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},khe.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},khe.prototype.identify=function(e,t,r,n,i,o,s,a){var l=this._run_hook("before_identify",e);if(null===l)return-1;e=l[0];var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(vhe))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(che)&&(this.unregister(che),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags().catch((function(){Ece.error("[flags] Error fetching flags during identify")}))},khe.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Ace.UUID();this.register_once({distinct_id:vhe+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},khe.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},khe.prototype.alias=function(e,t){if(e===this.get_property(lhe))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Ace.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(che,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},khe.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},khe.prototype.set_config=function(e){Ace.isObject(e)&&(Ace.extend(this.config,e),e.batch_size&&Ace.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),g3.DEBUG=g3.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),Ace.isObject(e.hooks)&&(this.hooks={},Ace.each(e.hooks,(function(e,t){if(Ace.isFunction(e))this.hooks[t]=[e];else if(Ace.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)Ace.isFunction(e[r])||Ece.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else Ece.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")}),this)))},khe.prototype.get_config=function(e){return this.config[e]},khe.prototype._run_hook=function(e){var t=dce.call(arguments,1);return Ace.each(this.hooks[e],(function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(Ace.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))}),this),t},khe.prototype.get_property=function(e){return this.persistence.load_prop([e])},khe.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},khe.prototype.toString=function(){var e=this.get_config("name");return e!==mhe&&(e=mhe+"."+e),e},khe.prototype._event_is_disabled=function(e){return Ace.isBlockedUA(bce)||this._flags.disable_all_events||Ace.include(this.__disabled_events,e)},khe.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Ace.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!Ace.cookie.get("mp_optout")||(Ace.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},khe.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},khe.prototype._gdpr_call_func=function(e,t){return t=Ace.extend({track:Ace.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),Ace.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},khe.prototype.opt_in_tracking=function(e){e=Ace.extend({enable_persistence:!0},e),this._gdpr_call_func(rue,e),this._gdpr_update_persistence(e)},khe.prototype.opt_out_tracking=function(e){(e=Ace.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(nue,e),this._gdpr_update_persistence(e)},khe.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(iue,e)},khe.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(oue,e)},khe.prototype.clear_opt_in_out_tracking=function(e){e=Ace.extend({enable_persistence:!0},e),this._gdpr_call_func(cue,e),this._gdpr_update_persistence(e)},khe.prototype.report_error=function(e,t){Ece.error.apply(Ece.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Ece.error(t)}},khe.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},khe.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):Ece.log("remove_hook failed. Matching hook was not found"))},khe.prototype.init=khe.prototype.init,khe.prototype.reset=khe.prototype.reset,khe.prototype.enable=khe.prototype.enable,khe.prototype.disable=khe.prototype.disable,khe.prototype.time_event=khe.prototype.time_event,khe.prototype.track=khe.prototype.track,khe.prototype.track_links=khe.prototype.track_links,khe.prototype.track_forms=khe.prototype.track_forms,khe.prototype.track_pageview=khe.prototype.track_pageview,khe.prototype.register=khe.prototype.register,khe.prototype.register_once=khe.prototype.register_once,khe.prototype.unregister=khe.prototype.unregister,khe.prototype.identify=khe.prototype.identify,khe.prototype.alias=khe.prototype.alias,khe.prototype.name_tag=khe.prototype.name_tag,khe.prototype.set_config=khe.prototype.set_config,khe.prototype.get_config=khe.prototype.get_config,khe.prototype.get_api_host=khe.prototype.get_api_host,khe.prototype.get_property=khe.prototype.get_property,khe.prototype.get_distinct_id=khe.prototype.get_distinct_id,khe.prototype.toString=khe.prototype.toString,khe.prototype.opt_out_tracking=khe.prototype.opt_out_tracking,khe.prototype.opt_in_tracking=khe.prototype.opt_in_tracking,khe.prototype.has_opted_out_tracking=khe.prototype.has_opted_out_tracking,khe.prototype.has_opted_in_tracking=khe.prototype.has_opted_in_tracking,khe.prototype.clear_opt_in_out_tracking=khe.prototype.clear_opt_in_out_tracking,khe.prototype.get_group=khe.prototype.get_group,khe.prototype.set_group=khe.prototype.set_group,khe.prototype.add_group=khe.prototype.add_group,khe.prototype.remove_group=khe.prototype.remove_group,khe.prototype.add_hook=khe.prototype.add_hook,khe.prototype.remove_hook=khe.prototype.remove_hook,khe.prototype.track_with_groups=khe.prototype.track_with_groups,khe.prototype.start_batch_senders=khe.prototype.start_batch_senders,khe.prototype.stop_batch_senders=khe.prototype.stop_batch_senders,khe.prototype.start_session_recording=khe.prototype.start_session_recording,khe.prototype.stop_session_recording=khe.prototype.stop_session_recording,khe.prototype.pause_session_recording=khe.prototype.pause_session_recording,khe.prototype.resume_session_recording=khe.prototype.resume_session_recording,khe.prototype.get_session_recording_properties=khe.prototype.get_session_recording_properties,khe.prototype.get_session_replay_url=khe.prototype.get_session_replay_url,khe.prototype.get_tab_id=khe.prototype.get_tab_id,khe.prototype.DEFAULT_API_ROUTES=whe,khe.prototype.__get_recorder=khe.prototype.__get_recorder,khe.prototype.__get_recording_init_promise=khe.prototype.__get_recording_init_promise,phe.prototype.properties=phe.prototype.properties,phe.prototype.update_search_keyword=phe.prototype.update_search_keyword,phe.prototype.update_referrer_info=phe.prototype.update_referrer_info,phe.prototype.get_cross_subdomain=phe.prototype.get_cross_subdomain,phe.prototype.clear=phe.prototype.clear;var Rhe={};fhe=function(e,t){t()},ehe=0,(hhe=new khe).init=function(e,t,r){if(r)return hhe[r]||(hhe[r]=Rhe[r]=She(e,t,r),hhe[r]._loaded()),hhe[r];var n=hhe;Rhe[mhe]?n=Rhe[mhe]:e&&((n=She(e,t,mhe))._loaded(),Rhe[mhe]=n),hhe=n,1===ehe&&(f3[mhe]=hhe),Ace.each(Rhe,(function(e,t){t!==mhe&&(hhe[t]=e)})),hhe._=Ace},hhe.init(),function(){function e(){e.done||(e.done=!0,_he=!0,bhe=!1,Ace.each(Rhe,(function(e){e._dom_loaded()})))}if(gce.addEventListener)"complete"===gce.readyState?e():gce.addEventListener("DOMContentLoaded",e,!1);else if(gce.attachEvent){gce.attachEvent("onreadystatechange",e);var t=!1;try{t=null===f3.frameElement}catch(e){}gce.documentElement.doScroll&&t&&function t(){try{gce.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}Ace.register_event(f3,"load",e,!0)}();const Ihe="/site-mailer/v1";class Ohe extends u3{static async initConnect(e="new"){const t={wp_rest:window?.siteMailerSettingsData?.wpRestNonce},r=`${Ihe}/connect/${"update"===e?"switch-domain":"authorize"}`;return Ohe.request({method:"POST",path:r,data:t})}static async clearSession(){return Ohe.request({method:"POST",path:`${Ihe}/connect/authorize`,data:{wp_rest:window?.siteMailerSettingsData?.wpRestNonce,clearSession:!0}})}static async deactivate(){return Ohe.request({method:"POST",path:`${Ihe}/connect/deactivate`,data:{wp_rest:window?.siteMailerSettingsData?.wpRestNonce}})}static async disconnect(){return Ohe.request({method:"POST",path:`${Ihe}/connect/disconnect`,data:{wp_rest:window?.siteMailerSettingsData?.wpRestNonce}})}static async reconnect(){return Ohe.request({method:"POST",path:`${Ihe}/connect/reconnect`,data:{wp_rest:window?.siteMailerSettingsData?.wpRestNonce}})}static async getStats(){return Ohe.request({method:"GET",path:`${Ihe}/stats`})}static async getSettings(){return Ohe.request({method:"GET",path:"/wp/v2/settings"})}static async updateSettings(e){return Ohe.request({method:"PUT",path:"/wp/v2/settings",data:e})}static async getLogs({limit:e,page:t,period:r,orderBy:n,order:i}){const o=(0,o3.addQueryArgs)(`${Ihe}/logs/get-logs`,{limit:e,page:t,period:r,order:i,orderBy:n});return Ohe.request({method:"GET",path:o})}static async getLogStats({period:e}){const t=(0,o3.addQueryArgs)(`${Ihe}/statuses/get-stats`,{period:e});return Ohe.request({method:"GET",path:t})}static async getStatuses({logId:e,limit:t,page:r}){const n=(0,o3.addQueryArgs)(`${Ihe}/statuses/get-statuses`,{log_id:e,limit:t,page:r});return Ohe.request({method:"GET",path:n})}static async getPluginSettings(){return Ohe.request({method:"GET",path:`${Ihe}/settings/get-settings`})}static async refreshLogsStatuses(){return Ohe.request({method:"GET",path:`${Ihe}/logs/refresh-statuses`})}static async resendMails(e){return Ohe.request({method:"POST",path:`${Ihe}/mailer/resend-mails`,data:e})}static async sendTestMail(e){return Ohe.request({method:"POST",path:`${Ihe}/mailer/send-test-mail`,data:{email:e}})}static async deleteLogs(e){return Ohe.request({method:"DELETE",path:`${Ihe}/logs/delete-logs`,data:e})}static async registerDomain(e){return Ohe.request({method:"POST",path:`${Ihe}/domain/register`,data:{data:e}})}static async verifyDomain(e){return Ohe.request({method:"POST",path:`${Ihe}/domain/verify`,data:{data:e}})}static async deleteDomain(){return Ohe.request({method:"POST",path:`${Ihe}/domain/delete`,data:{}})}static async getSuppressions({limit:e,page:t,orderBy:r,order:n}){const i=(0,o3.addQueryArgs)(`${Ihe}/suppressions/get-suppressions`,{limit:e,page:t,order:n,orderBy:r});return Ohe.request({method:"GET",path:i})}static async addSuppressionsItem(e){return Ohe.request({method:"POST",path:`${Ihe}/suppressions/add-suppression`,data:{email:e}})}static async deleteSuppressions(e){return Ohe.request({method:"DELETE",path:`${Ihe}/suppressions/delete-suppressions`,data:e})}static async migrateToOne(){return Ohe.request({path:`${c3}/plugins/site-mailer/migration/run`,method:"POST"})}}const Mhe=Ohe,The=(e=!0)=>{const[t,r]=(0,n.useState)(e);return{isOpen:t,setIsOpen:r,open:()=>{r(!0)},close:()=>{r(!1)}}},Lhe=()=>(0,i.jsxs)(S1,{viewBox:"0 0 376 167",sx:{width:"367px",height:"167px",fill:"none"},xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_4586_17927)",children:[(0,i.jsx)("path",{d:"M260.135 124.169C272.348 115.941 281.79 100.886 279.712 85.5902C278.462 76.3975 273.222 68.2597 266.566 62.3974C259.909 56.5352 251.898 52.7376 243.796 49.6482C227.396 43.3791 209.747 39.702 192.459 42.4297C177.34 44.8107 179.478 48.1261 164.042 50.9744C132.237 56.8667 118.398 42.0529 101.471 52.5115C92.0441 58.3285 88.5805 68.8775 87.5263 72.2382C84.3187 82.3803 86.3367 91.1058 87.6167 96.7119C89.725 105.874 93.6103 112.249 95.583 115.414C98.1732 119.588 101.652 125.179 107.856 130.092C109.438 131.343 123.518 143.278 141.017 140.083C151.227 138.215 160.413 132.232 170.427 129.323C178.273 127.048 186.571 126.807 194.522 128.434C202.488 130.062 208.949 135.984 216.524 137.717C222.487 139.089 230.258 135.819 236.056 134.312C244.459 132.126 252.771 129.127 260.15 124.154L260.135 124.169Z",fill:"#fae8ff"}),(0,i.jsx)("path",{d:"M181.455 131.036C147.504 131.169 104.259 131.303 70.3078 131.451C69.6784 126.107 73.2676 120.576 78.6114 118.62C83.9685 116.652 90.6114 118.433 94.04 122.745C92.3525 115.647 94.6293 107.826 99.9194 102.482C100.589 101.812 101.299 101.183 102.049 100.594C111.919 92.8793 127.214 95.6382 133.241 106.272C134.848 109.111 135.022 111.924 135.049 112.741C135.236 118.634 131.567 122.799 130.442 123.991C134.594 121.527 140.915 118.607 149.058 117.669C154.174 117.08 162.678 116.089 171.009 120.723C176.835 123.964 179.995 128.518 181.455 131.036Z",fill:"black",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M253.817 135.951L122.487 152.036L116.795 73.8079L248.018 63.04L253.817 135.951Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M122.486 152.692C122.339 152.692 122.192 152.639 122.071 152.545C121.937 152.438 121.844 152.264 121.83 152.089L116.125 73.8617C116.098 73.5001 116.366 73.1921 116.728 73.1653L247.951 62.3975C248.125 62.3975 248.299 62.4376 248.433 62.5582C248.567 62.6653 248.647 62.826 248.661 63.0001L254.46 135.911C254.486 136.259 254.232 136.567 253.884 136.621L122.567 152.692C122.567 152.692 122.513 152.692 122.486 152.692ZM117.491 74.4109L123.089 151.299L253.107 135.389L247.415 63.7501L117.491 74.4109Z",fill:"black"}),(0,i.jsx)("path",{d:"M122.486 152.692C122.339 152.692 122.192 152.639 122.071 152.545C121.937 152.438 121.844 152.264 121.83 152.089L116.125 73.8617C116.098 73.5001 116.366 73.1921 116.728 73.1653L247.951 62.3975C248.125 62.3975 248.299 62.4376 248.433 62.5582C248.567 62.6653 248.647 62.826 248.661 63.0001L254.46 135.911C254.486 136.259 254.232 136.567 253.884 136.621L122.567 152.692C122.567 152.692 122.513 152.692 122.486 152.692ZM117.491 74.4109L123.089 151.299L253.107 135.389L247.415 63.7501L117.491 74.4109Z",fill:"black"}),(0,i.jsx)("rect",{x:"169.268",y:"83.6924",width:"122.464",height:"74.8929",fill:"url(#pattern0_4586_17927)"}),(0,i.jsx)("path",{d:"M116.795 73.8079L190.322 114.978L248.018 63.04L116.795 73.8079Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M190.322 115.634C190.214 115.634 190.107 115.607 190 115.554L116.473 74.384C116.219 74.2367 116.085 73.9555 116.152 73.6742C116.219 73.393 116.447 73.1787 116.741 73.1653L247.964 62.3974C248.259 62.3707 248.514 62.5314 248.621 62.7858C248.728 63.0403 248.661 63.3483 248.46 63.5358L190.763 115.487C190.643 115.594 190.482 115.661 190.322 115.661V115.634ZM118.991 74.2769L190.228 114.174L246.13 63.8439L118.991 74.2769Z",fill:"black"}),(0,i.jsx)("path",{d:"M234.035 152.21C234.624 143.384 240.37 135.094 248.432 131.464C256.495 127.835 266.513 129 273.517 134.397C269.272 127.045 271.736 116.585 278.807 111.897C285.879 107.21 296.473 109.018 301.589 115.795C300.705 106.969 304.508 97.8081 311.379 92.1965C318.249 86.5849 327.986 84.6965 336.464 87.3215",stroke:"black",strokeWidth:"0.98",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M73.7629 84.469L74.0307 85.085C74.7673 87.6699 80.2852 89.5047 86.2048 88.8216C87.2897 88.7011 88.3879 88.4868 89.4727 88.1788C89.7539 88.0984 90.0218 88.0181 90.2896 87.9377C96.8521 85.8886 101.406 81.9913 100.575 79.0582L100.308 78.4422C99.437 75.3752 91.87 73.3663 84.8655 75.3484C77.8611 77.3306 72.8923 81.4154 73.7495 84.4824L73.7629 84.469Z",fill:"#fff",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M86.2044 88.8215C87.2893 88.701 88.3875 88.4867 89.4723 88.1786C89.7535 88.0983 90.0214 88.0179 90.2893 87.9376C91.441 86.5313 91.95 84.134 91.4678 81.6161C90.7714 77.9599 88.2669 75.4152 85.883 75.9242C83.4857 76.4465 82.1062 79.8215 82.8026 83.4777C83.2714 86.009 84.6241 88.0045 86.191 88.8215H86.2044Z",fill:"black",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M69.4368 70.3393L69.4636 70.7143C69.7716 72.1875 67.4948 74.5178 64.3743 75.6964C63.7984 75.9107 63.1957 76.0848 62.5797 76.2187C62.419 76.2455 62.2582 76.2857 62.1109 76.3125C58.3207 76.9821 55.0529 76.2187 54.7047 74.5446L54.6779 74.1696C54.3163 72.4285 57.5707 69.4821 61.5618 68.6652C65.5529 67.8482 69.0752 68.5982 69.4368 70.3527V70.3393Z",fill:"#fff",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M64.3746 75.6968C63.7987 75.9111 63.196 76.0852 62.58 76.2191C62.4193 76.2459 62.2585 76.2861 62.1112 76.3129C61.1737 75.9111 60.3032 74.8531 59.9014 73.4736C59.2987 71.4781 59.9014 69.5629 61.2139 69.2147C62.5398 68.8531 64.0934 70.179 64.696 72.1879C65.1112 73.5674 64.9505 74.9066 64.388 75.7236L64.3746 75.6968Z",fill:"black",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M166.709 49.7412C163 52.2189 161.165 57.0805 161.982 61.4734C162.799 65.8662 166.04 69.643 170.111 71.4644C174.183 73.2859 178.991 73.2323 183.183 71.6921C187.375 70.1519 190.977 67.2055 193.656 63.6296",fill:"#fff"}),(0,i.jsx)("path",{d:"M166.709 49.7412C163 52.2189 161.165 57.0805 161.982 61.4734C162.799 65.8662 166.04 69.643 170.111 71.4644C174.183 73.2859 178.991 73.2323 183.183 71.6921C187.375 70.1519 190.977 67.2055 193.656 63.6296",stroke:"black",strokeWidth:"0.98",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M231.504 99.4555L181.428 106.46L179.66 103.795L232.562 94.835L231.504 99.4555Z",fill:"black",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M230.325 85.2587L231.798 98.7319L181.16 105.656L179.968 91.5399L185.62 90.7631C191.218 89.9997 199.133 87.6962 198.423 81.2542L195.169 51.4685L204.838 50.1426L208.16 80.5176C208.856 86.9462 213.53 87.5354 219.128 86.772L230.338 85.2453L230.325 85.2587Z",fill:"#f3bafd",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M206.914 74.8926C206.338 74.7988 204.222 74.5444 202.146 75.8435C199.468 77.5176 199.013 80.4238 198.946 80.839C198.638 78.5354 198.33 76.2185 198.021 73.9149L206.633 72.7363L206.901 74.8926H206.914Z",fill:"black"}),(0,i.jsx)("path",{d:"M215.553 56.8658C215.566 56.9729 215.58 57.0667 215.593 57.1604C215.888 59.9461 215.044 62.4774 213.397 64.5801C213.357 64.6337 213.33 64.6738 213.276 64.714C210.906 67.6336 206.941 69.6961 202.307 70.3122C195.504 71.2363 189.504 69.1336 187.361 64.0176C187.227 63.6694 187.093 63.3211 186.986 62.9595C186.812 62.3703 186.678 61.7542 186.611 61.1113C185.941 55.0176 190.669 49.2319 197.486 47.3703C198.236 47.1694 198.986 47.0087 199.776 46.9015C201.464 46.6738 203.098 46.6872 204.651 46.9417C206.017 47.1426 207.29 47.531 208.482 48.0399C212.272 49.714 215.004 52.8881 215.553 56.8524V56.8658Z",fill:"#f3bafd",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M209.54 73.018L196.442 74.8127C195.504 74.9466 194.634 74.277 194.513 73.3395L194.326 71.8796C194.205 70.9421 194.875 70.0582 195.812 69.9377L208.91 68.143C209.848 68.0091 210.718 68.6788 210.839 69.6163L211.026 71.0761C211.147 72.0136 210.477 72.8975 209.54 73.018Z",fill:"#f3bafd",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M233.325 98.5042L179.66 105.83L178.146 91.6069L231.812 84.2676L233.325 98.5042Z",fill:"#f3bafd",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M233.325 98.5039L179.66 105.83L179.365 101.517L233.03 94.1914L233.325 98.5039Z",fill:"black",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M197.677 57.7778C199.344 55.3424 199.419 52.4943 197.844 51.4164C196.269 50.3385 193.641 51.439 191.974 53.8744C190.307 56.3099 190.233 59.158 191.807 60.2358C193.382 61.3137 196.01 60.2132 197.677 57.7778Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M182.513 25.4198C174.718 24.5225 167.299 27.8037 163.749 33.8037C159.397 41.1832 162.839 49.3662 163.682 51.3886C166.026 56.9734 170.031 59.893 172.495 61.835C177.129 65.518 183.075 68.3841 188.848 67.0582C190.281 66.7234 191.7 66.1207 192.745 65.0761C193.79 64.0448 194.446 62.5314 194.205 61.0716C193.937 59.4243 192.665 58.1654 191.459 57.0136C188.687 54.3752 184.321 50.6788 178.602 44.7725",fill:"#fff"}),(0,i.jsx)("path",{d:"M182.513 25.4198C174.718 24.5225 167.299 27.8037 163.749 33.8037C159.397 41.1832 162.839 49.3662 163.682 51.3886C166.026 56.9734 170.031 59.893 172.495 61.835C177.129 65.518 183.075 68.3841 188.848 67.0582C190.281 66.7234 191.7 66.1207 192.745 65.0761C193.79 64.0448 194.446 62.5314 194.205 61.0716C193.937 59.4243 192.665 58.1654 191.459 57.0136C188.687 54.3752 184.321 50.6788 178.602 44.7725",stroke:"black",strokeWidth:"0.98",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M207.919 32.6784C208.642 31.6873 209.285 30.4016 208.776 29.29C208.2 28.0311 206.54 27.79 205.16 27.7498C200.901 27.6561 196.642 27.9641 192.45 28.6605C190.374 29.0088 188.272 29.4641 186.41 30.4686C184.549 31.473 182.941 33.107 182.392 35.1427C181.843 37.1516 182.486 39.4954 184.133 40.7945C186.584 42.723 193.535 40.8748 196.401 40.2186C200.955 39.1739 205.16 36.4954 207.932 32.6918L207.919 32.6784Z",fill:"#fff",stroke:"black",strokeWidth:"0.98",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M277.991 111.161C276.651 94.4195 257.674 76.0447 248.031 67.2456C244.642 64.1518 239.861 60.1339 232.816 57.7768C229.642 56.7188 228.008 56.1831 225.678 56.3706C217.629 57.0268 214.147 65.2768 209.834 63.817C207.919 63.1741 206.928 60.9643 206.647 59.6116C206.044 56.5581 208.294 53.8259 210.142 51.5357C219.45 39.9643 223.321 37.6741 222.624 35.6518C222.022 33.9241 218.754 34.0581 203.727 33.6831C194.044 33.4286 191.031 32.9465 190.241 34.6072C188.941 37.3125 194.62 43.567 197.54 50.8125C197.794 51.4554 198.276 53.0625 198.116 55.0714C197.995 56.5045 197.379 57.9509 196.214 58.8081C194.151 60.3081 191.232 59.4375 188.982 58.2322C180.424 53.6652 174.303 44.8125 173.044 35.1965C172.508 31.1518 173.406 28.9688 174.29 27.5491C176.232 24.4286 180.008 23.1965 180.892 22.9152C205.174 14.9732 223.776 17.6786 223.776 17.6786C260.205 22.9956 299.406 49.5536 305.808 53.9464",fill:"url(#paint0_linear_4586_17927)"}),(0,i.jsx)("path",{d:"M277.991 111.161C276.651 94.4195 257.674 76.0447 248.031 67.2456C244.642 64.1518 239.861 60.134 232.816 57.7768C229.642 56.7188 228.008 56.1831 225.678 56.3706C217.629 57.0268 214.147 65.2768 209.834 63.817C207.919 63.1741 206.928 60.9643 206.647 59.6116C206.044 56.5581 208.294 53.8259 210.142 51.5357C219.45 39.9643 223.321 37.6741 222.624 35.6518C222.022 33.9241 218.754 34.0581 203.727 33.6831C194.044 33.4286 191.031 32.9465 190.241 34.6072C188.941 37.3125 194.62 43.567 197.54 50.8125C197.794 51.4554 198.276 53.0625 198.116 55.0714C197.995 56.5045 197.379 57.9509 196.214 58.8081C194.151 60.3081 191.232 59.4375 188.982 58.2322C180.424 53.6652 174.303 44.8125 173.044 35.1965C172.508 31.1518 173.406 28.9688 174.29 27.5491C176.232 24.4286 180.008 23.1965 180.892 22.9152C205.174 14.9732 223.776 17.6786 223.776 17.6786C260.205 22.9956 299.406 49.5536 305.808 53.9464",stroke:"black",strokeWidth:"0.98",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M63.9731 51.924L64.6428 53.4374C66.4642 59.7722 81.5177 64.5937 97.8436 63.3079C100.83 63.0669 103.87 62.6249 106.884 61.9553C107.647 61.7812 108.411 61.607 109.161 61.4062C127.375 56.8526 140.178 47.7053 138.116 40.5133L137.446 38.9999C135.29 31.4999 114.611 26.1294 95.2052 30.482C75.8124 34.8347 61.8169 44.424 63.9731 51.924Z",fill:"#fff",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M137.031 38.7188C134.875 31.2321 114.196 25.8482 94.7899 30.2009C75.3836 34.5536 61.4149 44.1429 63.5711 51.6429",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M72.7448 38.612L65.8877 34.0049",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M80.1782 34.9021L76.4951 29.1699",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M89.3125 26.8525L91.6429 31.1115",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M101.325 23.0625L101.941 29.0759",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M121.816 23.665L118.2 28.4329",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M134.339 25.5L128.888 30.9509",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M105.274 62.5297C110.742 61.1043 113.315 52.8119 111.02 44.0082C108.725 35.2044 102.432 29.2231 96.9638 30.6486C91.4955 32.074 88.9228 40.3663 91.2177 49.17C93.5125 57.9738 99.8058 63.9551 105.274 62.5297Z",fill:"black",stroke:"black",strokeWidth:"0.98",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M356.133 108.751C354.494 96.5202 343.219 87.0537 329.553 87.0537C314.759 87.0537 302.097 97.0984 302.097 114.509C302.097 115.574 302.174 116.607 302.322 117.606C298.757 112.82 293.473 109.822 288.035 109.822C278.419 109.822 271.963 116.947 271.963 126.563C271.963 129.567 272.855 132.589 274.374 135.325C274.323 135.334 274.273 135.344 274.222 135.354C270.063 132.098 264.516 130.112 258.422 130.112C249.083 129.29 237.226 137.593 235.29 148.132C234.888 149.089 234.611 150.152 234.463 151.339C234.205 153.399 235.142 155.195 237.083 156.754C238.272 158.119 239.949 158.961 242.023 159.477C254.385 164.445 280.303 166.071 308.356 166.071C348.17 166.071 357.678 130.081 357.678 121.205C357.678 118.483 357.354 113.673 356.133 108.751ZM306.43 127.174C306.48 127.168 306.53 127.162 306.581 127.155C306.514 127.074 306.447 126.992 306.381 126.909C306.398 126.997 306.414 127.085 306.43 127.174Z",fill:"#fff"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsx)("pattern",{id:"pattern0_4586_17927",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,i.jsx)("use",{xlinkHref:"#image0_4586_17927",transform:"scale(0.00262467 0.00429185)"})}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_4586_17927",x1:"241.83",y1:"62.9463",x2:"288.705",y2:"69.6428",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.291243",stopColor:"#fff"}),(0,i.jsx)("stop",{offset:"0.986265",stopColor:"#fff",stopOpacity:"0"})]}),(0,i.jsx)("clipPath",{id:"clip0_4586_17927",children:(0,i.jsx)("rect",{width:"375",height:"166.071",fill:"#fff",transform:"translate(0.0888672)"})}),(0,i.jsx)("image",{id:"image0_4586_17927",width:"381",height:"233",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAX0AAADpCAYAAADI+eewAAAACXBIWXMAAC4jAAAuIwF4pT92AAAFUklEQVR4Xu3b0WrjVhRAUav0/39ZfSiCy0WyncROZO21oCSO5enAwPbx0c2yrusNgIZ/Hl0AwHWIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AOEiD5AiOgDhIg+QIjoA4SIPkCI6AO32+12W5ZlfXQNn29ZV//OABUmfYhalmWdp3vT/vWZ9IHb7fZ/8Nd1XR5dx2cz6UPYONkLfoPoQ5A1Tte/jy4Armee6k38HSZ9gBDRh7B1XRernhbRh4s7ivp4ZHNb6VjtXJ8jmxBw7zjm/KYg/NfmRi5c3Bh8gcd6BwKOYr+9IWz/7b+aKxF9uLAx6uP+fu/7+SvXZKcPF3K0u392p7+9CZj6r0v04SLmWO9N7M8e0RT967LegQuYb9aOj8evR1O8yHeIPnygLex7u/nt8d5XsN6BD7RN7Huhn6+bf/YMbxLXZdKHD3Q0yY+RHz8FHL2OHtGHDzQerxyDP8d8fuxYJn4jF07uXswfTfjizsxOH07s3pn5e0E/mvCfZf1zXSZ9OKmjUG9vBHtrnb0bvDAy6cMJ3Zvw966bw//odY888//mM7mRCydzL9rLcDZ/vm58TrQ5IvpwEmOwx2iPcd+ee/RJ4KfT/k9fz3mJPpzEM9P5fDJnfgN45s+gTfThpMZpe479/L0buDzLjVz4I0f793urmznur7x5O/Op4Zoc2YQ/8uxkPu/09z4BwLOsd+Bk5un96KYufIfowx/YW8+M+/nxOqHnlUQffsm8phmfm49i3rsWfkL04Y32pvR70/tR4IWfV3EjF95oL9ZHN2OPbuxa7/BKJn14o6OTN3uBF3d+g+jDG+3t7r9y5NJah1cTfXiDo739/LPtBu78/dH18FN+IxdeaDt9853nzxh4nzSuR/Thl8zHMY9u3P4lkb8+p3fgjb563v7dbwTP/B24NpM+vNjeRL/9/Og1r4q9qPOI6MMPjXv6MfhzyOf4fyf0os5PiT68yRz8vcd7nwjgnUQfXmxvehd0zkL04YtM5nwy0QcI8Ru5ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxAi+gAhog8QIvoAIaIPECL6ACGiDxDyH3IoUtUNxiZ6AAAAAElFTkSuQmCC"})]})]}),Phe=function(){const{isOpen:e}=The(),t={margin:"8px",padding:0},r={color:"text.secondary",margin:0,padding:0};return(0,i.jsx)(J5,{open:e,children:(0,i.jsxs)(v2,{container:!0,gap:2,direction:"column",justifyContent:"center",alignItems:"center",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:600,height:580,bgcolor:"background.paper",boxShadow:24,p:"16px 24px",textAlign:"center",borderRadius:"4px"},children:[(0,i.jsx)(Lhe,{}),(0,i.jsx)(t3,{variant:"h5",children:(0,r3.__)("Let's start sending and monitoring emails!","site-mailer")}),(0,i.jsxs)(t3,{variant:"body2",width:400,children:[(0,r3.__)("Connect Email Deliverability to enable your site to send emails.","site-mailer"),(0,i.jsx)("br",{}),(0,r3.__)("We'll take care of the rest.","site-mailer")]}),(0,i.jsx)(dY,{children:(0,i.jsxs)(_2,{dense:!0,children:[(0,i.jsxs)(z2,{disableGutters:!0,sx:t,children:[(0,i.jsx)(G2,{sx:{color:"primary.main"},children:(0,i.jsx)(A1,{width:20})}),(0,i.jsx)(o5,{sx:r,primary:(0,r3.__)("Improve deliverability and reduce spam","site-mailer")})]}),(0,i.jsxs)(z2,{disableGutters:!0,sx:t,children:[(0,i.jsx)(G2,{sx:{color:"primary.main"},children:(0,i.jsx)(A1,{width:20})}),(0,i.jsx)(o5,{sx:r,primary:(0,r3.__)("No extra integration needed","site-mailer")})]}),(0,i.jsxs)(z2,{disableGutters:!0,sx:t,children:[(0,i.jsx)(G2,{sx:{color:"primary.main"},children:(0,i.jsx)(A1,{width:20})}),(0,i.jsx)(o5,{sx:r,primary:(0,r3.__)("Monitor email logs","site-mailer")})]})]})}),(0,i.jsx)(r2,{variant:"contained",sx:{padding:"8px 22px",width:"300px"},onClick:async()=>{const e=await(async()=>Mhe.initConnect())();window.open(e,"_self").focus()},children:(0,r3.__)("Connect to start","site-mailer")})]})})};var jhe=r(5556),Nhe=r.n(jhe);const Dhe=(0,n.createContext)({modalData:{},statusesModal:{},params:{},list:{},stats:{},updateList:()=>{},updateStats:()=>{}}),Bhe=({children:e})=>{const[t,r]=(0,n.useState)({isOpen:!1,ids:null}),[o,s]=(0,n.useState)({isOpen:!1,subject:null,id:null}),[a,l]=(0,n.useState)({logs:[],total:null}),[c,u]=(0,n.useState)({limit:10,page:1,period:null,orderBy:"created_at",order:"desc"}),[d,p]=(0,n.useState)({delivered:null,opened:null,failed:null,total:null}),h=async(e=null)=>{e=e||c,Mhe.getLogStats({period:e.period}).then((e=>{p(e)}))},f=async(e=null)=>{u(e=e||c),Mhe.getLogs(e).then((e=>{l(e)}))},m=(0,n.useCallback)((e=>{r({isOpen:!0,ids:e})}),[]),g=(0,n.useCallback)((()=>{r({isOpen:!1,ids:null})}),[]),v=(0,n.useCallback)(((e,t)=>{s({isOpen:!0,subject:t,id:e})}),[]),y=(0,n.useCallback)((()=>{s({isOpen:!1,subject:null,ids:null})}),[]);return(0,i.jsx)(Dhe.Provider,{value:{modalData:{modal:t,openModal:m,closeModal:g,deleteLog:async()=>{await Mhe.deleteLogs(t.ids),await Promise.all([f(),h()]),g()}},statusesModal:{modal:o,openStatusesModal:v,closeStatusesModal:y},params:c,stats:d,list:a,setParams:u,updateList:f,updateStats:h},children:e})},Fhe=()=>(0,n.useContext)(Dhe);Bhe.propTypes={children:Nhe().node};const $he=(e,t)=>{const r=e.split(/\{\{(\w+)\}\}([^]*?)\{\{\/\1\}\}/g);return r.map(((e,i)=>i%3==0?e:i%3==1?(0,n.createElement)(t[e],{key:i},r[i+1]):void 0))},zhe=(e,t)=>t?(0,o3.addQueryArgs)(e,{subscription_id:t}):e,Uhe=(Object.freeze({SETTINGS:"site-mailer-settings"}),"https://go.elementor.com/sm-panel-wp-dash-upgrade-panel/?subscription_id={subscriptionId}"),Whe="https://go.elementor.com/sm-panel-wp-dash-learn-more/?subscription_id={subscriptionId}",qhe="/wp-admin/admin.php?page=elementor-home#/home/url-mismatch",Vhe=(0,r3.__)("Resend Email","site-mailer"),Hhe=$he((0,r3.__)("First you need to go to {{strong}}General settings > Save email content{{/strong}} and toggle it on.","site-mailer"),{strong:({children:e})=>(0,i.jsx)("strong",{children:e})}),Ghe=$he((0,r3.__)("This email can’t be resent because {{strong}}Save email{{/strong}} content wasn’t toggled on.","site-mailer"),{strong:({children:e})=>(0,i.jsx)("strong",{children:e})}),Zhe=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("strong",{children:Vhe}),(0,i.jsx)("br",{}),Hhe]}),Khe=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("strong",{children:Vhe}),(0,i.jsx)("br",{}),Ghe]}),Xhe="multiple",Yhe={pending:(0,r3.__)("Sending","site-mailer"),accepted:(0,r3.__)("Accepted","site-mailer"),processed:(0,r3.__)("Pending","site-mailer"),delivered:(0,r3.__)("Delivered","site-mailer"),failed:(0,r3.__)("Failed","site-mailer"),bounce:(0,r3.__)("Failed","site-mailer"),dropped:(0,r3.__)("Failed","site-mailer"),deferred:(0,r3.__)("Deferred","site-mailer"),"not sent":(0,r3.__)("Not Sent","site-mailer"),"rate limit":(0,r3.__)("Not Sent","site-mailer"),"not valid":(0,r3.__)("Not Sent","site-mailer"),unsubscribed:(0,r3.__)("Not Sent","site-mailer"),multiple:(0,r3.__)("Multiple","site-mailer")},Jhe={pending:"secondary",accepted:"secondary",processed:"secondary",delivered:"success",failed:"error",bounce:"error",dropped:"error",deferred:"secondary","not sent":"warning","rate limit":"warning","not valid":"warning",unsubscribed:"warning",multiple:"primary"},Qhe={failed:(0,r3.__)("Network error occurred. Please try resending the email later.","site-mailer"),bounce:(0,r3.__)("A server informed us that this message bounced.","site-mailer"),dropped:(0,r3.__)("This email was not sent because the email address previously bounced.","site-mailer"),"not sent":(0,r3.__)("You’ve used all your quota. Upgrade now for your site to keep sending emails.","site-mailer"),"rate limit":(0,r3.__)("Rate limit reached. It has been automatically rescheduled and will be sent later.","site-mailer"),"not valid":(0,r3.__)("Invalid email address, or recipient/message field is empty.","site-mailer"),unsubscribed:(0,r3.__)("Recipient unsubscribed or manually added to the suppressions list.","site-mailer")},efe={cc:(0,r3.__)("Cc:","site-mailer"),bcc:(0,r3.__)("Bcc:","site-mailer")},tfe="APIError: Quota Status Guard Request Failed!: Quota exceeded",rfe="logs",nfe="settings",ife="suppressions",ofe={unsubscribed:(0,r3.__)("Unsubscribed","site-mailer"),manual:(0,r3.__)("Manual","site-mailer")},sfe=(Object.freeze({SPEED:2,FOREGROUND_COLOR:"#D9D9D9"}),(0,r3.__)(" of the emails don't have saved content because logging is disabled. You can send the remaining emails or go back and adjust your selection.","site-mailer")),afe=(0,r3.__)("Some emails can't be sent","site-mailer"),lfe=(0,r3.__)("You can only resend up to 10 emails at a time.","site-mailer"),cfe=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("strong",{children:Vhe}),(0,i.jsx)("br",{}),lfe]}),ufe=(0,n.createContext)(null);function dfe(){return(0,n.useContext)(ufe)}const pfe=()=>{const{setNotificationMessage:e,setNotificationType:t,setShowNotification:r}=(0,n.useContext)(ufe);return{success:n=>{e(n),t("success"),r(!0)},error:n=>{e(n),t("error"),r(!0)},hint:n=>{e(n),t("hint"),r(!0)}}},hfe=({children:e})=>{const[t,r]=(0,n.useState)(""),[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(""),[d,p]=(0,n.useState)(0),[h,f]=(0,n.useState)(new Set),[m,g]=(0,n.useState)(!1),[v,y]=(0,n.useState)(!0),[b,x]=(0,n.useState)(!1),[w,C]=(0,n.useState)({}),[_,k]=(0,n.useState)({}),[S,A]=(0,n.useState)(!1),[E,R]=(0,n.useState)(!1),[I,O]=(0,n.useState)(!1),[M,T]=(0,n.useState)(!1),[L,P]=(0,n.useState)(!1),[j,N]=(0,n.useState)(!1),[D,B]=(0,n.useState)(""),[F,$]=(0,n.useState)(""),[z,U]=(0,n.useState)(!1),[W,q]=(0,n.useState)(!0),[V,H]=(0,n.useState)(rfe),[G,Z]=(0,n.useState)(!0),[K,X]=(0,n.useState)(!1),[Y,J]=(0,n.useState)(!0),[Q,ee]=(0,n.useState)(!0);return(0,i.jsx)(ufe.Provider,{value:{from:t,setFrom:r,replyTo:o,setReplyTo:s,customDomain:a,setCustomDomain:l,customEmailPrefix:c,setCustomEmailPrefix:u,activeStep:d,setActiveStep:p,skipped:h,setSkipped:f,isDomainSettingsOpened:m,setIsDomainSettingsOpened:g,isValidDomain:v,setIsValidDomain:y,readWelcomeMessage:b,setReadWelcomeMessage:x,registrationData:w,setRegistrationData:C,confirmDnsSettingsAdded:S,setConfirmDnsSettingsAdded:A,verificationData:_,setVerificationData:k,showNotification:j,setShowNotification:N,registrationStarted:E,setRegistrationStarted:R,verificationStarted:I,setVerificationStarted:O,isVerifying:M,setIsVerifying:T,showCustomDomainVerifiedAlert:L,setShowCustomDomainVerifiedAlert:P,notificationMessage:D,setNotificationMessage:B,notificationType:F,setNotificationType:$,editEmail:z,setEditEmail:U,isValidReplyToEmail:W,setIsValidReplyToEmail:q,currentTab:V,setCurrentTab:H,openSidebar:G,setOpenSidebar:Z,isTestMailInFocus:K,setTestMailInFocus:X,hideLogInfotip:Y,setHideLogInfotip:J,hideWalkthroughModal:Q,setHideWalkthroughModal:ee},children:e})},ffe=(0,n.createContext)({}),mfe=({children:e})=>{const{error:t}=pfe(),[r,o]=(0,n.useState)(),[s,a]=(0,n.useState)(!1),l=(0,n.useCallback)((()=>{Mhe.getPluginSettings().then((e=>{"isConnected"in e&&(e.isConnected=Boolean(e.isConnected)),"isUrlMismatch"in e&&(e.isUrlMismatch=Boolean(e.isUrlMismatch)),"keepLog"in e&&(e.keepLog=Boolean(e.keepLog)),"closePostConnectModal"in e&&(e.closePostConnectModal=Boolean(e.closePostConnectModal)),"senderEmail"in e&&(e.senderEmail=e.senderEmail||""),e.settings&&"object"==typeof e.settings&&"errors"in e.settings&&(e.settings={user:{email:""},plan:{quota:{allowed:0,used:0},name:"None"},sender:{sender_in_used:""}}),"registrationStarted"in e&&(e.registrationStarted=Boolean(e.registrationStarted)),"verificationStarted"in e&&(e.verificationStarted=Boolean(e.verificationStarted)),"isValidPlanData"in e&&(e.isValidPlanData=Boolean(e.isValidPlanData)),"hideWalkthroughModal"in e&&(e.hideWalkthroughModal=Boolean(e.hideWalkthroughModal)),"hasElementorOneSubscription"in e&&(e.hasElementorOneSubscription=Boolean(e.hasElementorOneSubscription)),"isMigrationPopupDismissed"in e&&(e.isMigrationPopupDismissed=Boolean(e.isMigrationPopupDismissed)),o(e),a(!0)})).catch((()=>{t((0,r3.__)("An error occurred.","site-mailer")),a(!0)}))}),[]);return(0,n.useEffect)((()=>{l()}),[l]),(0,i.jsx)(ffe.Provider,{value:{...r,loaded:s,refreshPluginSettings:l},children:e})},gfe=()=>(0,n.useContext)(ffe),vfe=({loading:e,hideBackdrop:t=!1})=>(0,i.jsx)(J5,{open:e,hideBackdrop:t,sx:{zIndex:2e3},children:(0,i.jsx)(dY,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,i.jsx)(K0,{color:"primary"})})});vfe.propTypes={loading:Nhe().bool.isRequired,hideBackdrop:Nhe().bool};const yfe=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function bfe(e){return oY("MuiPaper",e)}sY("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 xfe=["className","component","elevation","square","variant"],wfe=b1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return(0,NK.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,NK.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,nX.X4)("#fff",yfe(t.elevation))}, ${(0,nX.X4)("#fff",yfe(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Cfe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=(0,DK.A)(r,xfe),u=(0,NK.A)({},r,{component:o,elevation:s,square:a,variant:l}),d=(e=>{const{square:t,elevation:r,variant:n,classes:i}=e;return p1({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},bfe,i)})(u);return(0,i.jsx)(wfe,(0,NK.A)({as:o,ownerState:u,className:d1(d.root,n),ref:t},c))}));function _fe(e){return oY("MuiCard",e)}sY("MuiCard",["root"]);const kfe=["className","raised"],Sfe=b1(Cfe,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),Afe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiCard"}),{className:n,raised:o=!1}=r,s=(0,DK.A)(r,kfe),a=(0,NK.A)({},r,{raised:o}),l=(e=>{const{classes:t}=e;return p1({root:["root"]},_fe,t)})(a);return(0,i.jsx)(Sfe,(0,NK.A)({className:d1(l.root,n),elevation:o?8:void 0,ref:t,ownerState:a},s))}));var Efe=s().forwardRef(((e,t)=>s().createElement(Afe,{...e,ref:t})));function Rfe({title:e,count:t,description:r}){const n=t<1e3?t:`${Math.floor(t/1e3)}k`;return(0,i.jsx)(v2,{item:!0,xs:6,sm:4,lg:2,children:(0,i.jsx)(Efe,{variant:"outlined",square:!1,sx:{height:"100%"},children:(0,i.jsxs)(dY,{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",sx:{padding:"24px 8px"},children:[(0,i.jsx)(t3,{variant:"subtitle2",color:"text.primary",sx:{paddingBottom:"10px"},children:e}),(0,i.jsx)(t3,{variant:"h3",color:"text.primary",children:n||"--"}),r&&(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",children:r})]})})})}Rfe.propTypes={title:Nhe().string.isRequired,count:Nhe().number.isRequired,description:Nhe().string};const Ife=Rfe,Ofe=({data:e,size:t=200})=>{const r=(e,t,r,n)=>{const i=(n-90)*Math.PI/180;return{x:e+r*Math.cos(i),y:t+r*Math.sin(i)}},n=(e,t,n,i,o)=>{if(0===i&&360===o)return["M",e+n,t,"A",n,n,0,1,1,e-n,t,"A",n,n,0,1,1,e+n,t,"Z"].join(" ");const s=r(e,t,n,o),a=r(e,t,n,i),l=o-i<=180?"0":"1";return["M",s.x,s.y,"A",n,n,0,l,0,a.x,a.y,"L",e,t,"Z"].join(" ")},o=t/2,s=e.reduce(((e,t)=>e+t.value),0);let a=0;return(0,i.jsx)("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,children:e.map(((e,t)=>{const r=a,l=e.value/s*360,c=a+l;return a+=l,(0,i.jsx)("path",{d:n(o,o,o,r,c),fill:e.color},t)}))})};Ofe.propTypes={data:Nhe().arrayOf(Nhe().shape({value:Nhe().number.isRequired,color:Nhe().string.isRequired})).isRequired,size:Nhe().number};const Mfe=Ofe;function Tfe({total:e,delivered:t,failed:r}){const n=T0(),o=e<1e3?e:`${Math.floor(e/1e3)}k`,s=e-t-r,a=e?Math.floor(t/e*100):0,l=e?Math.floor(r/e*100):0,c=[{value:a,color:n.palette.success.main},{value:100-a-l,color:n.palette.text.tertiary},{value:l,color:n.palette.error.main}];return(0,i.jsx)(v2,{item:!0,xs:12,sm:8,lg:4,children:(0,i.jsx)(Efe,{variant:"outlined",square:!1,sx:{height:"100%"},children:(0,i.jsxs)(dY,{display:"flex",alignItems:"center",sx:{padding:"24px"},children:[(0,i.jsxs)(Pfe,{sx:{backgroundColor:a?"text.secondary":"text.disabled"},children:[e?(0,i.jsx)(Mfe,{data:c,size:100}):null,(0,i.jsx)(jfe,{variant:"h4",children:o||"--"})]}),(0,i.jsxs)(dY,{children:[(0,i.jsxs)(dY,{display:"flex",alignItems:"center",sx:{marginBottom:"14px"},children:[(0,i.jsx)(Lfe,{as:"span",sx:{backgroundColor:"text.tertiary"}}),(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",children:`${(0,r3.__)("Sending:","site-mailer")} ${s||"--"}`})]}),(0,i.jsxs)(dY,{display:"flex",alignItems:"center",sx:{marginBottom:"14px"},children:[(0,i.jsx)(Lfe,{as:"span",sx:{backgroundColor:"success.main"}}),(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",children:`${(0,r3.__)("Delivered:","site-mailer")} ${t||"--"}`})]}),(0,i.jsxs)(dY,{display:"flex",alignItems:"center",children:[(0,i.jsx)(Lfe,{as:"span",sx:{backgroundColor:"error.main"}}),(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",children:`${(0,r3.__)("Failed:","site-mailer")} ${r||"--"}`})]})]})]})})})}const Lfe=c1(dY)`
    display: inline-block;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin-right: 4px;
`,Pfe=c1(dY)`
    border-radius: 50%;
    margin-right: 24px;
    position: relative;
    width: 100px;
    height: 100px;
`,jfe=c1(t3)`
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    color: ${({theme:e})=>e.palette.text.secondary};
    background-color: ${({theme:e})=>e.palette.success.contrastText};
    line-height: 80px;
    text-align: center;
`;Tfe.propTypes={total:Nhe().number.isRequired,delivered:Nhe().number.isRequired,failed:Nhe().number.isRequired};const Nfe=Tfe;function Dfe({stats:e}){const t=(e,t)=>Number(e)?Math.floor(t/e*100):0,r=e.delivered>0?(0,r3.sprintf)(
// Translators: %s - percentage
// Translators: %s - percentage
(0,r3.__)("%s of total emails","site-mailer"),t(e.total,e.delivered)+"%"):null,n=e.opened>0?(0,r3.sprintf)(
// Translators: %s - percentage
// Translators: %s - percentage
(0,r3.__)("%s of emails delivered","site-mailer"),t(e.delivered,e.opened)+"%"):null,o=e.failed>0?(0,r3.sprintf)(
// Translators: %s - percentage
// Translators: %s - percentage
(0,r3.__)("%s of total emails","site-mailer"),t(e.total,e.failed)+"%"):null;return(0,i.jsxs)(v2,{container:!0,spacing:3,sx:{marginBottom:"26px"},children:[(0,i.jsx)(Nfe,{total:Number(e.total),delivered:Number(e.delivered),failed:Number(e.failed)}),(0,i.jsx)(Ife,{count:Number(e?.total??0),title:(0,r3.__)("Total Emails","site-mailer")}),(0,i.jsx)(Ife,{count:Number(e?.delivered??0),title:(0,r3.__)("Emails Delivered","site-mailer"),description:r}),(0,i.jsx)(Ife,{count:Number(e?.opened??0),title:(0,r3.__)("Emails Opened","site-mailer"),description:n}),(0,i.jsx)(Ife,{count:Number(e?.failed??0),title:(0,r3.__)("Emails Failed","site-mailer"),description:o})]})}Dfe.propTypes={stats:Nhe().shape({})};const Bfe=Dfe;function Ffe(e){return oY("MuiCardContent",e)}sY("MuiCardContent",["root"]);const $fe=["className","component"],zfe=b1("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),Ufe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiCardContent"}),{className:n,component:o="div"}=r,s=(0,DK.A)(r,$fe),a=(0,NK.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return p1({root:["root"]},Ffe,t)})(a);return(0,i.jsx)(zfe,(0,NK.A)({as:o,className:d1(l.root,n),ownerState:a,ref:t},s))}));var Wfe=s().forwardRef(((e,t)=>s().createElement(Ufe,{...e,ref:t})));const qfe=e=>e,Vfe=(()=>{let e=qfe;return{configure(t){e=t},generate:t=>e(t),reset(){e=qfe}}})(),Hfe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Gfe(e,t,r="Mui"){const n=Hfe[t];return n?`${r}-${n}`:`${Vfe.generate(e)}-${t}`}function Zfe(e,t,r=void 0){const n={};return Object.keys(e).forEach((i=>{n[i]=e[i].reduce(((e,n)=>{if(n){const i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}var Kfe=r(3366),Xfe=r(7900);const Yfe=["ownerState"],Jfe=["variants"],Qfe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eme(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const tme=(0,WK.A)(),rme=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function nme({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ime(e){return e?(t,r)=>r[e]:null}function ome(e,t){let{ownerState:r}=t,n=(0,DK.A)(t,Yfe);const i="function"==typeof e?e((0,NK.A)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap((e=>ome(e,(0,NK.A)({ownerState:r},n))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,DK.A)(i,Jfe);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,NK.A)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,NK.A)({ownerState:r},n,r)):e.style))})),t}return i}const sme=function(e={}){const{themeId:t,defaultTheme:r=tme,rootShouldForwardProp:n=eme,slotShouldForwardProp:i=eme}=e,o=e=>(0,zK.A)((0,NK.A)({},e,{theme:nme((0,NK.A)({},e,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(e,s={})=>{(0,$K.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=ime(rme(l))}=s,p=(0,DK.A)(s,Qfe),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let m=eme;"Root"===l||"root"===l?m=n:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,$K.default)(e,(0,NK.A)({shouldForwardProp:m,label:void 0},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Xfe.Q)(e)?n=>ome(e,(0,NK.A)({},n,{theme:nme({theme:n.theme,defaultTheme:r,themeId:t})})):e,y=(n,...i)=>{let s=v(n);const l=i?i.map(v):[];a&&d&&l.push((e=>{const n=nme((0,NK.A)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[a]||!n.components[a].styleOverrides)return null;const i=n.components[a].styleOverrides,o={};return Object.entries(i).forEach((([t,r])=>{o[t]=ome(r,(0,NK.A)({},e,{theme:n}))})),d(e,o)})),a&&!h&&l.push((e=>{var n;const i=nme((0,NK.A)({},e,{defaultTheme:r,themeId:t}));return ome({variants:null==i||null==(n=i.components)||null==(n=n[a])?void 0:n.variants},(0,NK.A)({},e,{theme:i}))})),f||l.push(o);const c=l.length-i.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const u=g(s,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(y.withConfig=g.withConfig),y}}(),ame=sme,lme=["className","component","disableGutters","fixed","maxWidth","classes"],cme=(0,WK.A)(),ume=ame("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,Kfe.A)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),dme=e=>f1({props:e,name:"MuiContainer",defaultTheme:cme}),pme=function(e={}){const{createStyledComponent:t=ume,useThemeProps:r=dme,componentName:n="MuiContainer"}=e,s=t((({theme:e,ownerState:t})=>(0,NK.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,r)=>{const n=r,i=e.breakpoints.values[n];return 0!==i&&(t[e.breakpoints.up(n)]={maxWidth:`${i}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,NK.A)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),a=o.forwardRef((function(e,t){const o=r(e),{className:a,component:l="div",disableGutters:c=!1,fixed:u=!1,maxWidth:d="lg"}=o,p=(0,DK.A)(o,lme),h=(0,NK.A)({},o,{component:l,disableGutters:c,fixed:u,maxWidth:d}),f=((e,t)=>{const{classes:r,fixed:n,disableGutters:i,maxWidth:o}=e;return Zfe({root:["root",o&&`maxWidth${(0,Kfe.A)(String(o))}`,n&&"fixed",i&&"disableGutters"]},(e=>Gfe(t,e)),r)})(h,n);return(0,i.jsx)(s,(0,NK.A)({as:l,ownerState:h,className:FK(f.root,a),ref:t},p))}));return a}({createStyledComponent:b1("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${h1(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>g1({props:e,name:"MuiContainer"})}),hme=pme;var fme=s().forwardRef(((e,t)=>s().createElement(hme,{...e,ref:t})));const mme=o.createContext();function gme(e){return oY("MuiTable",e)}sY("MuiTable",["root","stickyHeader"]);const vme=["className","component","padding","size","stickyHeader"],yme=b1("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,NK.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,NK.A)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),bme="table",xme=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTable"}),{className:n,component:s=bme,padding:a="normal",size:l="medium",stickyHeader:c=!1}=r,u=(0,DK.A)(r,vme),d=(0,NK.A)({},r,{component:s,padding:a,size:l,stickyHeader:c}),p=(e=>{const{classes:t,stickyHeader:r}=e;return p1({root:["root",r&&"stickyHeader"]},gme,t)})(d),h=o.useMemo((()=>({padding:a,size:l,stickyHeader:c})),[a,l,c]);return(0,i.jsx)(mme.Provider,{value:h,children:(0,i.jsx)(yme,(0,NK.A)({as:s,role:s===bme?null:"table",ref:t,className:d1(p.root,n),ownerState:d},u))})})),wme=xme;var Cme=s().forwardRef(((e,t)=>s().createElement(wme,{...e,ref:t})));function _me(e){return oY("MuiTableContainer",e)}sY("MuiTableContainer",["root"]);const kme=["className","component"],Sme=b1("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Ame=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,s=(0,DK.A)(r,kme),a=(0,NK.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return p1({root:["root"]},_me,t)})(a);return(0,i.jsx)(Sme,(0,NK.A)({ref:t,as:o,className:d1(l.root,n),ownerState:a},s))}));var Eme=s().forwardRef(((e,t)=>s().createElement(Ame,{...e,ref:t})));const Rme=e=>{const[t,r]=(0,n.useState)([]);return(0,n.useEffect)((()=>{r([])}),[e]),{isAllSelected:e.items?.length&&t.length===e.items.length||!1,selectedItems:t,setSelectedItems:r,toggleItem:e=>()=>{const n=t.indexOf(e),i=[...t];-1!==n?i.splice(n,1):i.push(e),r(i)},toggleAll:(t=!1)=>()=>{let n=[];t||(n=e.items.map((e=>e.api_id??e.id))),r(n)}}};function Ime(e){return oY("MuiAppBar",e)}sY("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Ome=["className","color","enableColorOnDark","position"],Mme=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,Tme=b1(Cfe,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${h1(r.position)}`],t[`color${h1(r.color)}`]]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,NK.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,NK.A)({},"default"===t.color&&{backgroundColor:r,color:e.palette.getContrastText(r)},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,NK.A)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,NK.A)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Mme(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Mme(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:Mme(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Mme(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"}))})),Lme=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,l=(0,DK.A)(r,Ome),c=(0,NK.A)({},r,{color:o,position:a,enableColorOnDark:s}),u=(e=>{const{color:t,position:r,classes:n}=e;return p1({root:["root",`color${h1(t)}`,`position${h1(r)}`]},Ime,n)})(c);return(0,i.jsx)(Tme,(0,NK.A)({square:!0,component:"header",ownerState:c,elevation:4,className:d1(u.root,n,"fixed"===a&&"mui-fixed"),ref:t},l))})),Pme=Lme,jme={elevation:0,color:"default"},Nme=s().forwardRef(((e,t)=>s().createElement(Pme,{...jme,...e,ref:t})));Nme.defaultProps=jme;var Dme=Nme,Bme=r(8248);const Fme=["component","direction","spacing","divider","children","className","useFlexGap"],$me=(0,WK.A)(),zme=ame("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ume(e){return f1({props:e,name:"MuiStack",defaultTheme:$me})}function Wme(e,t){const r=o.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,i)=>(e.push(n),i<r.length-1&&e.push(o.cloneElement(t,{key:`separator-${i}`})),e)),[])}const qme=({ownerState:e,theme:t})=>{let r=(0,NK.A)({display:"flex",flexDirection:"column"},(0,o2.NI)({theme:t},(0,o2.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,Bme.LX)(t),i=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),o=(0,o2.kW)({values:e.direction,base:i}),s=(0,o2.kW)({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach(((e,t,r)=>{if(!o[e]){const n=t>0?o[r[t-1]]:"column";o[e]=n}}));const a=(t,r)=>{return e.useFlexGap?{gap:(0,Bme._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=r?o[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,Bme._W)(n,t)}};var i};r=(0,Xfe.A)(r,(0,o2.NI)({theme:t},s,a))}return r=(0,o2.iZ)(t.breakpoints,r),r},Vme=function(e={}){const{createStyledComponent:t=zme,useThemeProps:r=Ume,componentName:n="MuiStack"}=e,s=t(qme),a=o.forwardRef((function(e,t){const o=r(e),a=(0,UK.A)(o),{component:l="div",direction:c="column",spacing:u=0,divider:d,children:p,className:h,useFlexGap:f=!1}=a,m=(0,DK.A)(a,Fme),g={direction:c,spacing:u,useFlexGap:f},v=Zfe({root:["root"]},(e=>Gfe(n,e)),{});return(0,i.jsx)(s,(0,NK.A)({as:l,ownerState:g,ref:t,className:FK(v.root,h)},m,{children:d?Wme(p,d):p}))}));return a}({createStyledComponent:b1("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>g1({props:e,name:"MuiStack"})}),Hme=Vme;var Gme=s().forwardRef(((e,t)=>s().createElement(Hme,{...e,ref:t})));function Zme(e){return oY("MuiToolbar",e)}sY("MuiToolbar",["root","gutters","regular","dense"]);const Kme=["className","component","disableGutters","variant"],Xme=b1("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((({theme:e,ownerState:t})=>(0,NK.A)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),Yme=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,l=(0,DK.A)(r,Kme),c=(0,NK.A)({},r,{component:o,disableGutters:s,variant:a}),u=(e=>{const{classes:t,disableGutters:r,variant:n}=e;return p1({root:["root",!r&&"gutters",n]},Zme,t)})(c);return(0,i.jsx)(Xme,(0,NK.A)({as:o,className:d1(u.root,n),ref:t,ownerState:c},l))}));var Jme=s().forwardRef(((e,t)=>s().createElement(Yme,{...e,ref:t})));const Qme=function(e){return(0,i.jsx)(S1,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33337 3.125C8.27812 3.125 8.22513 3.14695 8.18606 3.18602C8.14699 3.22509 8.12504 3.27808 8.12504 3.33333V5.20833H11.875V3.33333C11.875 3.27808 11.8531 3.22509 11.814 3.18602C11.775 3.14695 11.722 3.125 11.6667 3.125H8.33337ZM13.125 5.20833V3.33333C13.125 2.94656 12.9714 2.57563 12.6979 2.30214C12.4244 2.02865 12.0535 1.875 11.6667 1.875H8.33337C7.9466 1.875 7.57567 2.02865 7.30218 2.30214C7.02869 2.57563 6.87504 2.94656 6.87504 3.33333V5.20833H4.17402C4.16962 5.20829 4.16521 5.20829 4.16079 5.20833H3.33337C2.9882 5.20833 2.70837 5.48816 2.70837 5.83333C2.70837 6.17851 2.9882 6.45833 3.33337 6.45833H3.59162L4.37521 15.8614C4.38252 16.459 4.6231 17.0306 5.04625 17.4538C5.47602 17.8836 6.05892 18.125 6.66671 18.125H13.3334C13.9412 18.125 14.5241 17.8836 14.9538 17.4538C15.377 17.0306 15.6176 16.459 15.6249 15.8614L16.4085 6.45833H16.6667C17.0119 6.45833 17.2917 6.17851 17.2917 5.83333C17.2917 5.48816 17.0119 5.20833 16.6667 5.20833H15.8393C15.8349 5.20829 15.8305 5.20829 15.8261 5.20833H13.125ZM4.84596 6.45833L5.62288 15.7814C5.62432 15.7987 5.62504 15.816 5.62504 15.8333C5.62504 16.1096 5.73479 16.3746 5.93014 16.5699C6.12549 16.7653 6.39044 16.875 6.66671 16.875H13.3334C13.6096 16.875 13.8746 16.7653 14.0699 16.5699C14.2653 16.3746 14.375 16.1096 14.375 15.8333C14.375 15.816 14.3758 15.7987 14.3772 15.7814L15.1541 6.45833H4.84596ZM8.33337 8.54167C8.67855 8.54167 8.95837 8.82149 8.95837 9.16667V14.1667C8.95837 14.5118 8.67855 14.7917 8.33337 14.7917C7.9882 14.7917 7.70837 14.5118 7.70837 14.1667V9.16667C7.70837 8.82149 7.9882 8.54167 8.33337 8.54167ZM11.6667 8.54167C12.0119 8.54167 12.2917 8.82149 12.2917 9.16667V14.1667C12.2917 14.5118 12.0119 14.7917 11.6667 14.7917C11.3215 14.7917 11.0417 14.5118 11.0417 14.1667V9.16667C11.0417 8.82149 11.3215 8.54167 11.6667 8.54167Z",fill:"black",fillOpacity:"0.56"})})};var ege=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2295 8.24989H15C14.5858 8.24989 14.25 8.58568 14.25 8.99989C14.25 9.4141 14.5858 9.74989 15 9.74989H19.4164C19.4276 9.75014 19.4389 9.75015 19.4502 9.74989H20C20.4142 9.74989 20.75 9.4141 20.75 8.99989V3.99989C20.75 3.58568 20.4142 3.24989 20 3.24989C19.5858 3.24989 19.25 3.58568 19.25 3.99989V7.05997C17.216 4.05724 13.4602 2.59135 9.82139 3.52648C8.28303 3.92219 6.88124 4.72923 5.76667 5.86098C4.65209 6.99273 3.86662 8.40653 3.49449 9.95076C3.12236 11.495 3.1776 13.1114 3.6543 14.6266C4.13101 16.1418 5.01118 17.4987 6.20042 18.5517C7.38967 19.6047 8.84313 20.3141 10.4049 20.6039C11.9667 20.8936 13.5779 20.7528 15.0657 20.1964C16.5535 19.64 17.8618 18.6892 18.8503 17.4458C19.8388 16.2024 20.4702 14.7134 20.6767 13.1384C20.7306 12.7277 20.4413 12.3511 20.0306 12.2972C19.6199 12.2434 19.2433 12.5327 19.1894 12.9434C19.0183 14.2483 18.4952 15.4821 17.6761 16.5123C16.8571 17.5426 15.7731 18.3304 14.5403 18.7914C13.3076 19.2524 11.9726 19.3691 10.6785 19.129C9.38447 18.889 8.18018 18.3012 7.1948 17.4287C6.20943 16.5562 5.48014 15.4319 5.08516 14.1765C4.69018 12.921 4.6444 11.5817 4.95274 10.3022C5.26108 9.02267 5.9119 7.85123 6.83541 6.9135C7.75887 5.9758 8.92032 5.30712 10.1949 4.97924M10.1949 4.97924C13.3573 4.1666 16.6106 5.53614 18.2295 8.24989L10.1949 4.97924Z"}))));function tge(e){return g1}function rge(e){return oY("MuiAlertTitle",e)}sY("MuiAlertTitle",["root"]);const nge=["className"],ige=tge(),oge=b1(Q2,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),sge=o.forwardRef((function(e,t){const r=ige({props:e,name:"MuiAlertTitle"}),{className:n}=r,o=(0,DK.A)(r,nge),s=r,a=(e=>{const{classes:t}=e;return p1({root:["root"]},rge,t)})(s);return(0,i.jsx)(oge,(0,NK.A)({gutterBottom:!0,component:"div",ownerState:s,ref:t,className:d1(a.root,n)},o))}));var age=s().forwardRef(((e,t)=>s().createElement(sge,{...e,ref:t})));const lge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cge(e){return`scale(${e}, ${e**2})`}const uge={entering:{opacity:1,transform:cge(1)},entered:{opacity:1,transform:"none"}},dge="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pge=o.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:s,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:f,style:m,timeout:g="auto",TransitionComponent:v=P5}=e,y=(0,DK.A)(e,lge),b=D1(),x=o.useRef(),w=T0(),C=o.useRef(null),_=O1(C,s.ref,t),k=e=>t=>{if(e){const r=C.current;void 0===t?e(r):e(r,t)}},S=k(d),A=k(((e,t)=>{j5(e);const{duration:r,delay:n,easing:i}=N5({style:m,timeout:g,easing:a},{mode:"enter"});let o;"auto"===g?(o=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=r,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:dge?o:.666*o,delay:n,easing:i})].join(","),c&&c(e,t)})),E=k(u),R=k(f),I=k((e=>{const{duration:t,delay:r,easing:n}=N5({style:m,timeout:g,easing:a},{mode:"exit"});let i;"auto"===g?(i=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=i):i=t,e.style.transition=[w.transitions.create("opacity",{duration:i,delay:r}),w.transitions.create("transform",{duration:dge?i:.666*i,delay:dge?r:r||.333*i,easing:n})].join(","),e.style.opacity=0,e.style.transform=cge(.75),p&&p(e)})),O=k(h);return(0,i.jsx)(v,(0,NK.A)({appear:n,in:l,nodeRef:C,onEnter:A,onEntered:E,onEntering:S,onExit:I,onExited:O,onExiting:R,addEndListener:e=>{"auto"===g&&b.start(x.current||0,e),r&&r(C.current,e)},timeout:"auto"===g?null:g},y,{children:(e,t)=>o.cloneElement(s,(0,NK.A)({style:(0,NK.A)({opacity:0,transform:cge(.75),visibility:"exited"!==e||l?void 0:"hidden"},uge[e],m,s.props.style),ref:_},t))}))}));pge.muiSupportAuto=!0;const hge=pge;function fge(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mge(e){return e instanceof fge(e).Element||e instanceof Element}function gge(e){return e instanceof fge(e).HTMLElement||e instanceof HTMLElement}function vge(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fge(e).ShadowRoot||e instanceof ShadowRoot)}var yge=Math.max,bge=Math.min,xge=Math.round;function wge(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Cge(){return!/^((?!chrome|android).)*safari/i.test(wge())}function _ge(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&gge(e)&&(i=e.offsetWidth>0&&xge(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&xge(n.height)/e.offsetHeight||1);var s=(mge(e)?fge(e):window).visualViewport,a=!Cge()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/i,c=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/i,d=n.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function kge(e){var t=fge(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sge(e){return e?(e.nodeName||"").toLowerCase():null}function Age(e){return((mge(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ege(e){return _ge(Age(e)).left+kge(e).scrollLeft}function Rge(e){return fge(e).getComputedStyle(e)}function Ige(e){var t=Rge(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Oge(e,t,r){void 0===r&&(r=!1);var n=gge(t),i=gge(t)&&function(e){var t=e.getBoundingClientRect(),r=xge(t.width)/e.offsetWidth||1,n=xge(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=Age(t),s=_ge(e,i,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==Sge(t)||Ige(o))&&(a=function(e){return e!==fge(e)&&gge(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:kge(e);var t}(t)),gge(t)?((l=_ge(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Ege(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Mge(e){var t=_ge(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Tge(e){return"html"===Sge(e)?e:e.assignedSlot||e.parentNode||(vge(e)?e.host:null)||Age(e)}function Lge(e){return["html","body","#document"].indexOf(Sge(e))>=0?e.ownerDocument.body:gge(e)&&Ige(e)?e:Lge(Tge(e))}function Pge(e,t){var r;void 0===t&&(t=[]);var n=Lge(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=fge(n),s=i?[o].concat(o.visualViewport||[],Ige(n)?n:[]):n,a=t.concat(s);return i?a:a.concat(Pge(Tge(s)))}function jge(e){return["table","td","th"].indexOf(Sge(e))>=0}function Nge(e){return gge(e)&&"fixed"!==Rge(e).position?e.offsetParent:null}function Dge(e){for(var t=fge(e),r=Nge(e);r&&jge(r)&&"static"===Rge(r).position;)r=Nge(r);return r&&("html"===Sge(r)||"body"===Sge(r)&&"static"===Rge(r).position)?t:r||function(e){var t=/firefox/i.test(wge());if(/Trident/i.test(wge())&&gge(e)&&"fixed"===Rge(e).position)return null;var r=Tge(e);for(vge(r)&&(r=r.host);gge(r)&&["html","body"].indexOf(Sge(r))<0;){var n=Rge(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Bge="top",Fge="bottom",$ge="right",zge="left",Uge="auto",Wge=[Bge,Fge,$ge,zge],qge="start",Vge="end",Hge="viewport",Gge="popper",Zge=Wge.reduce((function(e,t){return e.concat([t+"-"+qge,t+"-"+Vge])}),[]),Kge=[].concat(Wge,[Uge]).reduce((function(e,t){return e.concat([t,t+"-"+qge,t+"-"+Vge])}),[]),Xge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yge(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}function Jge(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Qge={placement:"bottom",modifiers:[],strategy:"absolute"};function eve(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function tve(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?Qge:i;return function(e,t,r){void 0===r&&(r=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qge,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:i,setOptions:function(r){var a="function"==typeof r?r(i.options):r;c(),i.options=Object.assign({},o,i.options,a),i.scrollParents={reference:mge(e)?Pge(e):e.contextElement?Pge(e.contextElement):[],popper:Pge(t)};var u,d,p=function(e){var t=Yge(e);return Xge.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((u=[].concat(n,i.options.modifiers),d=u.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return i.orderedModifiers=p.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:i,name:t,instance:l,options:n});s.push(a||function(){})}})),l.update()},forceUpdate:function(){if(!a){var e=i.elements,t=e.reference,r=e.popper;if(eve(t,r)){i.rects={reference:Oge(t,Dge(r),"fixed"===i.options.strategy),popper:Mge(r)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<i.orderedModifiers.length;n++)if(!0!==i.reset){var o=i.orderedModifiers[n],s=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"==typeof s&&(i=s({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,n=-1}}},update:Jge((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),a=!0}};if(!eve(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(r).then((function(e){!a&&r.onFirstUpdate&&r.onFirstUpdate(e)})),l}}var rve={passive:!0};const nve={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,s=n.resize,a=void 0===s||s,l=fge(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",r.update,rve)})),a&&l.addEventListener("resize",r.update,rve),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",r.update,rve)})),a&&l.removeEventListener("resize",r.update,rve)}},data:{}};function ive(e){return e.split("-")[0]}function ove(e){return e.split("-")[1]}function sve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ave(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?ive(i):null,s=i?ove(i):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case Bge:t={x:a,y:r.y-n.height};break;case Fge:t={x:a,y:r.y+r.height};break;case $ge:t={x:r.x+r.width,y:l};break;case zge:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?sve(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case qge:t[c]=t[c]-(r[u]/2-n[u]/2);break;case Vge:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}const lve={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ave({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var cve={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uve(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,h=void 0===p?0:p,f=s.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=zge,x=Bge,w=window;if(c){var C=Dge(r),_="clientHeight",k="clientWidth";C===fge(r)&&"static"!==Rge(C=Age(r)).position&&"absolute"===a&&(_="scrollHeight",k="scrollWidth"),(i===Bge||(i===zge||i===$ge)&&o===Vge)&&(x=Fge,m-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[_])-n.height,m*=l?1:-1),i!==zge&&(i!==Bge&&i!==Fge||o!==Vge)||(b=$ge,h-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[k])-n.width,h*=l?1:-1)}var S,A=Object.assign({position:a},c&&cve),E=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:xge(r*i)/i||0,y:xge(n*i)/i||0}}({x:h,y:m},fge(r)):{x:h,y:m};return h=E.x,m=E.y,l?Object.assign({},A,((S={})[x]=y?"0":"",S[b]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},A,((t={})[x]=y?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}const dve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];gge(i)&&Sge(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});gge(n)&&Sge(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},pve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,s=Kge.reduce((function(e,r){return e[r]=function(e,t,r){var n=ive(e),i=[zge,Bge].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[zge,$ge].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(r,t.rects,o),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}};var hve={left:"right",right:"left",bottom:"top",top:"bottom"};function fve(e){return e.replace(/left|right|bottom|top/g,(function(e){return hve[e]}))}var mve={start:"end",end:"start"};function gve(e){return e.replace(/start|end/g,(function(e){return mve[e]}))}function vve(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&vge(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yve(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bve(e,t,r){return t===Hge?yve(function(e,t){var r=fge(e),n=Age(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=Cge();(c||!c&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+Ege(e),y:l}}(e,r)):mge(t)?function(e,t){var r=_ge(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):yve(function(e){var t,r=Age(e),n=kge(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=yge(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=yge(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+Ege(e),l=-n.scrollTop;return"rtl"===Rge(i||r).direction&&(a+=yge(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Age(e)))}function xve(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function wve(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Cve(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,s=void 0===o?e.strategy:o,a=r.boundary,l=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?Hge:c,d=r.elementContext,p=void 0===d?Gge:d,h=r.altBoundary,f=void 0!==h&&h,m=r.padding,g=void 0===m?0:m,v=xve("number"!=typeof g?g:wve(g,Wge)),y=p===Gge?"reference":Gge,b=e.rects.popper,x=e.elements[f?y:p],w=function(e,t,r,n){var i="clippingParents"===t?function(e){var t=Pge(Tge(e)),r=["absolute","fixed"].indexOf(Rge(e).position)>=0&&gge(e)?Dge(e):e;return mge(r)?t.filter((function(e){return mge(e)&&vve(e,r)&&"body"!==Sge(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),s=o[0],a=o.reduce((function(t,r){var i=bve(e,r,n);return t.top=yge(i.top,t.top),t.right=bge(i.right,t.right),t.bottom=bge(i.bottom,t.bottom),t.left=yge(i.left,t.left),t}),bve(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(mge(x)?x:x.contextElement||Age(e.elements.popper),l,u,s),C=_ge(e.elements.reference),_=ave({reference:C,element:b,strategy:"absolute",placement:i}),k=yve(Object.assign({},b,_)),S=p===Gge?k:C,A={top:w.top-S.top+v.top,bottom:S.bottom-w.bottom+v.bottom,left:w.left-S.left+v.left,right:S.right-w.right+v.right},E=e.modifiersData.offset;if(p===Gge&&E){var R=E[i];Object.keys(A).forEach((function(e){var t=[$ge,Fge].indexOf(e)>=0?1:-1,r=[Bge,Fge].indexOf(e)>=0?"y":"x";A[e]+=R[r]*t}))}return A}const _ve={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,f=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=ive(g),y=l||(v!==g&&f?function(e){if(ive(e)===Uge)return[];var t=fve(e);return[gve(e),t,gve(t)]}(g):[fve(g)]),b=[g].concat(y).reduce((function(e,r){return e.concat(ive(r)===Uge?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Kge:l,u=ove(n),d=u?a?Zge:Zge.filter((function(e){return ove(e)===u})):Wge,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,r){return t[r]=Cve(e,{placement:r,boundary:i,rootBoundary:o,padding:s})[ive(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):r)}),[]),x=t.rects.reference,w=t.rects.popper,C=new Map,_=!0,k=b[0],S=0;S<b.length;S++){var A=b[S],E=ive(A),R=ove(A)===qge,I=[Bge,Fge].indexOf(E)>=0,O=I?"width":"height",M=Cve(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=I?R?$ge:zge:R?Fge:Bge;x[O]>w[O]&&(T=fve(T));var L=fve(T),P=[];if(o&&P.push(M[E]<=0),a&&P.push(M[T]<=0,M[L]<=0),P.every((function(e){return e}))){k=A,_=!1;break}C.set(A,P)}if(_)for(var j=function(e){var t=b.find((function(t){var r=C.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=f?3:1;N>0&&"break"!==j(N);N--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function kve(e,t,r){return yge(e,bge(t,r))}const Sve={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,h=void 0===p||p,f=r.tetherOffset,m=void 0===f?0:f,g=Cve(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=ive(t.placement),y=ove(t.placement),b=!y,x=sve(v),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(C){if(o){var I,O="y"===x?Bge:zge,M="y"===x?Fge:$ge,T="y"===x?"height":"width",L=C[x],P=L+g[O],j=L-g[M],N=h?-k[T]/2:0,D=y===qge?_[T]:k[T],B=y===qge?-k[T]:-_[T],F=t.elements.arrow,$=h&&F?Mge(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=z[O],W=z[M],q=kve(0,_[T],$[T]),V=b?_[T]/2-N-q-U-A.mainAxis:D-q-U-A.mainAxis,H=b?-_[T]/2+N+q+W+A.mainAxis:B+q+W+A.mainAxis,G=t.elements.arrow&&Dge(t.elements.arrow),Z=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,K=null!=(I=null==E?void 0:E[x])?I:0,X=L+H-K,Y=kve(h?bge(P,L+V-K-Z):P,L,h?yge(j,X):j);C[x]=Y,R[x]=Y-L}if(a){var J,Q="x"===x?Bge:zge,ee="x"===x?Fge:$ge,te=C[w],re="y"===w?"height":"width",ne=te+g[Q],ie=te-g[ee],oe=-1!==[Bge,zge].indexOf(v),se=null!=(J=null==E?void 0:E[w])?J:0,ae=oe?ne:te-_[re]-k[re]-se+A.altAxis,le=oe?te+_[re]+k[re]-se-A.altAxis:ie,ce=h&&oe?function(e,t,r){var n=kve(e,t,r);return n>r?r:n}(ae,te,le):kve(h?ae:ne,te,h?le:ie);C[w]=ce,R[w]=ce-te}t.modifiersData[n]=R}},requiresIfExists:["offset"]},Ave={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,a=ive(r.placement),l=sve(a),c=[zge,$ge].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return xve("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:wve(e,Wge))}(i.padding,r),d=Mge(o),p="y"===l?Bge:zge,h="y"===l?Fge:$ge,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],g=Dge(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[p],x=v-d[c]-u[h],w=v/2-d[c]/2+y,C=kve(b,w,x),_=l;r.modifiersData[n]=((t={})[_]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&vve(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Eve(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Rve(e){return[Bge,$ge,Fge,zge].some((function(t){return e[t]>=0}))}const Ive={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Cve(t,{elementContext:"reference"}),a=Cve(t,{altBoundary:!0}),l=Eve(s,n),c=Eve(a,i,o),u=Rve(l),d=Rve(c);t.modifiersData[r]={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})}};var Ove=tve({defaultModifiers:[nve,lve,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,s=void 0===o||o,a=r.roundOffsets,l=void 0===a||a,c={placement:ive(t.placement),variation:ove(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,uve(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,uve(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:{}},dve,pve,_ve,Sve,Ave,Ive]});const Mve="base";function Tve(e,t){const r=iY[t];return r?`${Mve}--${r}`:function(e,t){return`${Mve}-${e}-${t}`}(e,t)}const Lve="Popper";function Pve(e){return Tve(Lve,e)}!function(e){const t={};["root"].forEach((r=>{t[r]=Tve(e,r)}))}(Lve);const jve={disableDefaultClasses:!1},Nve=o.createContext(jve),Dve=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Bve=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fve(e){return"function"==typeof e?e():e}const $ve={},zve=o.forwardRef((function(e,t){var r;const{anchorEl:n,children:s,direction:a,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:f={},slots:m={},TransitionProps:g}=e,v=(0,DK.A)(e,Dve),y=o.useRef(null),b=I1(y,t),x=o.useRef(null),w=I1(x,h),C=o.useRef(w);M1((()=>{C.current=w}),[w]),o.useImperativeHandle(h,(()=>x.current),[]);const _=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}}(d,a),[k,S]=o.useState(_),[A,E]=o.useState(Fve(n));o.useEffect((()=>{x.current&&x.current.forceUpdate()})),o.useEffect((()=>{n&&E(Fve(n))}),[n]),M1((()=>{if(!A||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{S(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=Ove(A,y.current,(0,NK.A)({placement:_},p,{modifiers:e}));return C.current(t),()=>{t.destroy(),C.current(null)}}),[A,l,c,u,p,_]);const R={placement:k};null!==g&&(R.TransitionProps=g);const I=p1({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(Nve);return r=>t?"":e(r)}(Pve)),O=null!=(r=m.root)?r:"div",M=p5({elementType:O,externalSlotProps:f.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:I.root});return(0,i.jsx)(O,(0,NK.A)({},M,{children:"function"==typeof s?s(R):s}))})),Uve=o.forwardRef((function(e,t){const{anchorEl:r,children:n,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:h=$ve,popperRef:f,style:m,transition:g=!1,slotProps:v={},slots:y={}}=e,b=(0,DK.A)(e,Bve),[x,w]=o.useState(!0);if(!c&&!d&&(!g||x))return null;let C;if(s)C=s;else if(r){const e=Fve(r);C=e&&void 0!==e.nodeType?h5(e).body:h5(null).body}const _=d||!c||g&&!x?void 0:"none",k=g?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,i.jsx)(A5,{disablePortal:l,container:C,children:(0,i.jsx)(zve,(0,NK.A)({anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:t,open:g?!x:d,placement:p,popperOptions:h,popperRef:f,slotProps:v,slots:y},b,{style:(0,NK.A)({position:"fixed",top:0,left:0,display:_},m),TransitionProps:k,children:n}))})}));var Wve=r(2923);const qve=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Vve=b1(Uve,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hve=o.forwardRef((function(e,t){var r;const n=(0,Wve.A)(),o=g1({props:e,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:f,placement:m,popperOptions:g,popperRef:v,transition:y,slots:b,slotProps:x}=o,w=(0,DK.A)(o,qve),C=null!=(r=null==b?void 0:b.root)?r:null==l?void 0:l.Root,_=(0,NK.A)({anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:f,placement:m,popperOptions:g,popperRef:v,transition:y},w);return(0,i.jsx)(Vve,(0,NK.A)({as:a,direction:null==n?void 0:n.direction,slots:{root:C},slotProps:null!=x?x:c},_,{ref:t}))})),Gve=Hve;let Zve=0;const Kve=o["useId".toString()];function Xve(e){if(void 0!==Kve){const t=Kve();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&(Zve+=1,r(`mui-${Zve}`))}),[t]),n}(e)}const Yve=Xve,Jve=function({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=o.useRef(void 0!==e),[s,a]=o.useState(t);return[i?e:s,o.useCallback((e=>{i||a(e)}),[])]};function Qve(e){return oY("MuiTooltip",e)}const eye=sY("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),tye=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],rye=b1(Gve,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((({theme:e,ownerState:t,open:r})=>(0,NK.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${eye.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${eye.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${eye.arrow}`]:(0,NK.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${eye.arrow}`]:(0,NK.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),nye=b1("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${h1(r.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,NK.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,nX.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${eye.popper}[data-popper-placement*="left"] &`]:(0,NK.A)({transformOrigin:"right center"},t.isRtl?(0,NK.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,NK.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${eye.popper}[data-popper-placement*="right"] &`]:(0,NK.A)({transformOrigin:"left center"},t.isRtl?(0,NK.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,NK.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${eye.popper}[data-popper-placement*="top"] &`]:(0,NK.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${eye.popper}[data-popper-placement*="bottom"] &`]:(0,NK.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var r})),iye=b1("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,nX.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let oye=!1;const sye=new N1;let aye={x:0,y:0};function lye(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const cye=o.forwardRef((function(e,t){var r,n,s,a,l,c,u,d,p,h,f,m,g,v,y,b,x,w,C;const _=g1({props:e,name:"MuiTooltip"}),{arrow:k=!1,children:S,components:A={},componentsProps:E={},describeChild:R=!1,disableFocusListener:I=!1,disableHoverListener:O=!1,disableInteractive:M=!1,disableTouchListener:T=!1,enterDelay:L=100,enterNextDelay:P=0,enterTouchDelay:j=700,followCursor:N=!1,id:D,leaveDelay:B=0,leaveTouchDelay:F=1500,onClose:$,onOpen:z,open:U,placement:W="bottom",PopperComponent:q,PopperProps:V={},slotProps:H={},slots:G={},title:Z,TransitionComponent:K=hge,TransitionProps:X}=_,Y=(0,DK.A)(_,tye),J=o.isValidElement(S)?S:(0,i.jsx)("span",{children:S}),Q=T0(),ee=SJ(),[te,re]=o.useState(),[ne,ie]=o.useState(null),oe=o.useRef(!1),se=M||N,ae=D1(),le=D1(),ce=D1(),ue=D1(),[de,pe]=Jve({controlled:U,default:!1,name:"Tooltip",state:"open"});let he=de;const fe=Yve(D),me=o.useRef(),ge=L1((()=>{void 0!==me.current&&(document.body.style.WebkitUserSelect=me.current,me.current=void 0),ue.clear()}));o.useEffect((()=>ge),[ge]);const ve=e=>{sye.clear(),oye=!0,pe(!0),z&&!he&&z(e)},ye=L1((e=>{sye.start(800+B,(()=>{oye=!1})),pe(!1),$&&he&&$(e),ae.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(te&&te.removeAttribute("title"),le.clear(),ce.clear(),L||oye&&P?le.start(oye?P:L,(()=>{ve(e)})):ve(e))},xe=e=>{le.clear(),ce.start(B,(()=>{ye(e)}))},{isFocusVisibleRef:we,onBlur:Ce,onFocus:_e,ref:ke}=V1(),[,Se]=o.useState(!1),Ae=e=>{Ce(e),!1===we.current&&(Se(!1),xe(e))},Ee=e=>{te||re(e.currentTarget),_e(e),!0===we.current&&(Se(!0),be(e))},Re=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect((()=>{if(he)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ye(e)}}),[ye,he]);const Ie=O1(J.ref,ke,re,t);Z||0===Z||(he=!1);const Oe=o.useRef(),Me={},Te="string"==typeof Z;R?(Me.title=he||!Te||O?null:Z,Me["aria-describedby"]=he?fe:null):(Me["aria-label"]=Te?Z:null,Me["aria-labelledby"]=he&&!Te?fe:null);const Le=(0,NK.A)({},Me,Y,J.props,{className:d1(Y.className,J.props.className),onTouchStart:Re,ref:Ie},N?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),aye={x:e.clientX,y:e.clientY},Oe.current&&Oe.current.update()}}:{}),Pe={};T||(Le.onTouchStart=e=>{Re(e),ce.clear(),ae.clear(),ge(),me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(j,(()=>{document.body.style.WebkitUserSelect=me.current,be(e)}))},Le.onTouchEnd=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),ge(),ce.start(F,(()=>{ye(e)}))}),O||(Le.onMouseOver=lye(be,Le.onMouseOver),Le.onMouseLeave=lye(xe,Le.onMouseLeave),se||(Pe.onMouseOver=be,Pe.onMouseLeave=xe)),I||(Le.onFocus=lye(Ee,Le.onFocus),Le.onBlur=lye(Ae,Le.onBlur),se||(Pe.onFocus=Ee,Pe.onBlur=Ae));const je=o.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=V.popperOptions)&&e.modifiers&&(t=t.concat(V.popperOptions.modifiers)),(0,NK.A)({},V.popperOptions,{modifiers:t})}),[ne,V]),Ne=(0,NK.A)({},_,{isRtl:ee,arrow:k,disableInteractive:se,placement:W,PopperComponentProp:q,touch:oe.current}),De=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e;return p1({popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${h1(o.split("-")[0])}`],arrow:["arrow"]},Qve,t)})(Ne),Be=null!=(r=null!=(n=G.popper)?n:A.Popper)?r:rye,Fe=null!=(s=null!=(a=null!=(l=G.transition)?l:A.Transition)?a:K)?s:hge,$e=null!=(c=null!=(u=G.tooltip)?u:A.Tooltip)?c:nye,ze=null!=(d=null!=(p=G.arrow)?p:A.Arrow)?d:iye,Ue=s5(Be,(0,NK.A)({},V,null!=(h=H.popper)?h:E.popper,{className:d1(De.popper,null==V?void 0:V.className,null==(f=null!=(m=H.popper)?m:E.popper)?void 0:f.className)}),Ne),We=s5(Fe,(0,NK.A)({},X,null!=(g=H.transition)?g:E.transition),Ne),qe=s5($e,(0,NK.A)({},null!=(v=H.tooltip)?v:E.tooltip,{className:d1(De.tooltip,null==(y=null!=(b=H.tooltip)?b:E.tooltip)?void 0:y.className)}),Ne),Ve=s5(ze,(0,NK.A)({},null!=(x=H.arrow)?x:E.arrow,{className:d1(De.arrow,null==(w=null!=(C=H.arrow)?C:E.arrow)?void 0:w.className)}),Ne);return(0,i.jsxs)(o.Fragment,{children:[o.cloneElement(J,Le),(0,i.jsx)(Be,(0,NK.A)({as:null!=q?q:Gve,placement:W,anchorEl:N?{getBoundingClientRect:()=>({top:aye.y,left:aye.x,right:aye.x,bottom:aye.y,width:0,height:0})}:te,popperRef:Oe,open:!!te&&he,id:fe,transition:!0},Pe,Ue,{popperOptions:je,children:({TransitionProps:e})=>(0,i.jsx)(Fe,(0,NK.A)({timeout:Q.transitions.duration.shorter},e,We,{children:(0,i.jsxs)($e,(0,NK.A)({},qe,{children:[Z,k?(0,i.jsx)(ze,(0,NK.A)({},Ve,{ref:ie})):null]}))}))}))]})})),uye=cye,dye={arrow:!0},pye=s().forwardRef(((e,t)=>s().createElement(uye,{...dye,...e,ref:t})));pye.defaultProps=dye;var hye=pye,fye=s().forwardRef(((e,t)=>s().createElement(Gve,{...e,ref:t})));const mye=(e,t)=>{const r={},n={};return t.forEach((t=>{n[t]=`Mui${e}-${t}`,r[t]={slot:t,name:`Mui${e}`}})),{slots:r,classNames:n}},{slots:gye,classNames:vye}=mye("Infotip",["root","popper"]),yye=c1(hye,gye.root)({}),bye=c1(fye,gye.popper)((({theme:e,color:t})=>{const r=function(e,t){if(!e||"default"===e)return t.palette.background.paper;return("dark"===t.palette.mode?wQ:CQ)(t.palette[e].light,.9)}(t,e);return{"& .MuiTooltip-tooltip":{padding:0,minHeight:48,minWidth:80,maxWidth:"initial",backgroundColor:r,borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[3],color:e.palette.text.primary,boxShadow:"0px 0px 10px 4px rgba(0,0,0,0.03),6px 0px 10px 4px rgba(0,0,0,0.03),-6px 0px 10px 4px rgba(0,0,0,0.03),0px 6px 10px 4px rgba(0,0,0,0.03)"},"& .MuiTooltip-arrow":{color:r,fontSize:"1.2rem"},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{marginTop:e.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementRight":{marginLeft:e.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementLeft":{marginRight:e.spacing(2)},"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementTop":{marginBottom:e.spacing(2)}}}));var xye=s().forwardRef(((e,t)=>{const r=g1({props:e,name:gye.root.name}),[n,i]=(0,o.useState)(!1),[a,l]=(0,o.useState)(null),{children:c,content:u,PopperProps:d={},color:p,...h}=r;return(0,o.useEffect)((()=>{const e=()=>i(!0),t=()=>i(!1);return a&&(a.addEventListener("mouseenter",e),a.addEventListener("mouseleave",t)),()=>{a&&(a.removeEventListener("mouseenter",e),a.removeEventListener("mouseleave",t))}}),[a]),s().createElement(yye,{disableFocusListener:n,...h,ref:t,title:u,ownerState:r,PopperComponent:bye,PopperProps:{role:"presentation",ref:l,...d,className:d1([[vye.root,h.className]]),color:p}},c)}));function wye({content:e,width:t}){return(0,i.jsx)(Efe,{elevation:6,sx:{maxWidth:t??"300px",maxHeight:"60vh",overflowY:"auto"},children:(0,i.jsx)(dY,{display:"flex",justifyContent:"center",flexDirection:"column",sx:{padding:"8px 16px",minHeight:"32px"},children:(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",component:"div",children:e})})})}wye.propTypes={content:Nhe().node,width:Nhe().string};const Cye=wye,_ye=e=>(0,i.jsx)(S1,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9932 3C11.5018 3 11.0194 3.13134 10.596 3.38038C10.175 3.62805 9.82781 3.98314 9.59 4.40906L2.4909 16.6309C2.47341 16.661 2.45804 16.6923 2.44491 16.7246C2.27977 17.1303 2.21428 17.5695 2.25392 18.0056C2.29356 18.4416 2.43717 18.8619 2.67276 19.2313C2.90835 19.6008 3.22909 19.9086 3.6082 20.1291C3.98731 20.3496 4.41379 20.4764 4.85202 20.499C4.88374 20.5006 4.9151 20.5003 4.94598 20.498C4.96405 20.4993 4.98229 20.5 5.00069 20.5H19.0057L19.011 20.5C19.4598 20.4968 19.9011 20.3841 20.2962 20.1718C20.6914 19.9594 21.0285 19.6537 21.2781 19.2815C21.5277 18.9093 21.6822 18.4818 21.7282 18.0362C21.7742 17.5907 21.7102 17.1408 21.5419 16.7256C21.5287 16.693 21.5132 16.6613 21.4955 16.6309L14.3964 4.40904C14.1586 3.98312 13.8114 3.62805 13.3904 3.38038C12.9671 3.13134 12.4846 3 11.9932 3ZM12.7538 8.76945C12.7538 8.35599 12.4179 8.02081 12.0035 8.02081C11.5891 8.02081 11.2532 8.35599 11.2532 8.76945V12.7658C11.2532 13.1793 11.5891 13.5145 12.0035 13.5145C12.4179 13.5145 12.7538 13.1793 12.7538 12.7658V8.76945ZM12.7538 15.7586C12.7538 15.3451 12.4179 15.0099 12.0035 15.0099C11.5891 15.0099 11.2532 15.3451 11.2532 15.7586V15.7686C11.2532 16.182 11.5891 16.5172 12.0035 16.5172C12.4179 16.5172 12.7538 16.182 12.7538 15.7686V15.7586Z",fill:"#bb5b1d"})}),kye=c1(dY)`
	display: flex;
	flex-direction: column;
	gap: 32px;
	background-color: #fff;
	border-radius: 4px;
	padding: 16px 24px;
	max-width: 600px;
	height: fit-content;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
`,Sye=c1(Gme)`
	margin-bottom: 16px;
	gap: 12px;
`,Aye=c1(t3)`
	font-size: 16px;
	margin-bottom: 12px;
	color: ${({theme:e})=>e.palette.text.primary};
	font-weight: 500;
`,Eye=c1(t3)`
	font-size: 14px;
	color: ${({theme:e})=>e.palette.text.primary};
	font-weight: 400;
`,Rye=c1(Gme)`
	display: flex;
	justify-content: flex-end;
	gap: 8px;
`,Iye=c1(((e,{size:t})=>(0,i.jsx)(S1,{viewBox:"0 0 20 20",fill:"none",fontSize:t,...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2334 5.23369C15.4775 4.98961 15.4775 4.59388 15.2334 4.34981C14.9894 4.10573 14.5936 4.10573 14.3496 4.34981L9.7915 8.90786L5.23345 4.34981C4.98937 4.10573 4.59364 4.10573 4.34956 4.34981C4.10548 4.59388 4.10548 4.98961 4.34956 5.23369L8.90762 9.79175L4.34956 14.3498C4.10548 14.5939 4.10548 14.9896 4.34956 15.2337C4.59364 15.4778 4.98937 15.4778 5.23345 15.2337L9.7915 10.6756L14.3496 15.2337C14.5936 15.4778 14.9894 15.4778 15.2334 15.2337C15.4775 14.9896 15.4775 14.5939 15.2334 14.3498L10.6754 9.79175L15.2334 5.23369Z",fill:"black",fillOpacity:"0.56"})})))`
	cursor: pointer;
`,Oye=({isOpen:e=!1,onClose:t=()=>{},title:r="",message:n="",onSubmit:o=()=>{}})=>(0,i.jsx)(J5,{open:e,onClose:t,"aria-labelledby":"resend-modal",children:(0,i.jsxs)(kye,{children:[(0,i.jsxs)(Sye,{direction:"row",children:[(0,i.jsx)(_ye,{}),(0,i.jsxs)(Gme,{children:[(0,i.jsx)(Aye,{variant:"text",children:r}),(0,i.jsx)(Eye,{variant:"body1",children:n})]}),(0,i.jsx)(Iye,{onClick:t})]}),(0,i.jsxs)(Rye,{direction:"row",children:[(0,i.jsx)(r2,{onClick:t,variant:"text",color:"secondary",children:(0,r3.__)("Go back","site-mailer")}),(0,i.jsx)(r2,{onClick:o,variant:"contained",color:"warning",children:(0,r3.__)("Send remaining emails","site-mailer")})]})]})});Oye.propTypes={isOpen:Nhe().bool,onClose:Nhe().func,title:Nhe().string,message:Nhe().string,onSubmit:Nhe().func};const Mye=Oye,Tye=({selectedItems:e=[]})=>{const t=T0(),{keepLog:r=!1}=gfe(),{success:o,error:s}=pfe(),{updateList:a,updateStats:l}=Fhe(),[c,u]=(0,n.useState)([]),[d,p]=(0,n.useState)(0),[h,f]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),[v,y]=(0,n.useState)(!1),[b,x]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const t=[];let r=0;e?.length>0&&e.forEach((e=>{e?.message?t.push(e.api_id):r++})),u(t),p(r)}),[e]),(0,n.useEffect)((()=>{const t=c.length>0&&r&&e.length<=10,n=e.length>10;g(t),y(n)}),[c,r,e]);const w=async()=>{try{x(!0),await Mhe.resendMails(c),await Promise.all([a(),l()]),o((0,i.jsx)(age,{sx:{marginRight:"4px"},children:`${c.length} ${(0,r3.__)("Emails were resend successfully","site-mailer")}`}))}catch(e){s((0,i.jsx)(age,{children:tfe===String(e)?(0,r3.__)("Emails resend failed, quota reached.","site-mailer"):(0,r3.__)("Emails resend failed, try again.","site-mailer")}))}finally{h&&f(!1),x(!1)}},C=(0,i.jsx)(dY,{as:"span",children:(0,i.jsx)(r2,{disabled:!m,variant:"icon",color:"secondary",startIcon:(0,i.jsx)(ege,{color:m?"secondary":t.palette.action.disabled}),size:"small",sx:{marginRight:"8px"},onClick:()=>{m&&d>0?f(!0):m&&0===d&&w()},children:(0,r3.__)("Resend","site-mailer")})});let _;r?!m&&v&&(_=cfe):_=Zhe;const k=d+sfe;return(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsx)(Mye,{isOpen:h,onClose:()=>{f(!1)},title:afe,message:k,onSubmit:w}),m?(0,i.jsx)(hye,{title:(0,r3.__)("Resend","site-mailer"),arrow:!1,children:C}):(0,i.jsx)(xye,{content:(0,i.jsx)(Cye,{content:_}),placement:"bottom-start",children:C,arrow:!1}),(0,i.jsx)(vfe,{loading:b})]})};Tye.propTypes={selectedItems:Nhe().arrayOf(Nhe().object).isRequired};const Lye=Tye,Pye=({selectedItems:e,deleteItems:t,actionText:r})=>{const{list:n}=Fhe(),o=n?.items?.filter((t=>e.includes(t.api_id)))||[];return e.length>1?(0,i.jsx)(Dme,{elevation:0,position:"static",square:!0,sx:{backgroundColor:"action.selected"},children:(0,i.jsxs)(Jme,{sx:{padding:"8px 16px"},children:[(0,i.jsx)(t3,{variant:"body1",sx:{flexGrow:1},children:`${e.length} ${(0,r3.__)("selected","site-mailer")}`}),(0,i.jsxs)(Gme,{direction:"row",children:[(0,i.jsx)(Lye,{selectedItems:o}),(0,i.jsx)(r2,{size:"small",color:"secondary",variant:"text",startIcon:(0,i.jsx)(Qme,{}),onClick:()=>{t(e)},children:r})]})]})}):null};Pye.propTypes={selectedItems:Nhe().arrayOf(Nhe().string).isRequired,deleteItems:Nhe().func.isRequired,actionText:Nhe().string.isRequired};const jye=Pye;function Nye(e){return oY("MuiCardHeader",e)}const Dye=sY("MuiCardHeader",["root","avatar","action","content","title","subheader"]),Bye=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Fye=b1("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,NK.A)({[`& .${Dye.title}`]:t.title,[`& .${Dye.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),$ye=b1("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),zye=b1("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Uye=b1("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Wye=c1(o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiCardHeader"}),{action:n,avatar:o,className:s,component:a="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p}=r,h=(0,DK.A)(r,Bye),f=(0,NK.A)({},r,{component:a,disableTypography:l}),m=(e=>{const{classes:t}=e;return p1({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Nye,t)})(f);let g=d;null==g||g.type===Q2||l||(g=(0,i.jsx)(Q2,(0,NK.A)({variant:o?"body2":"h5",className:m.title,component:"span",display:"block"},p,{children:g})));let v=c;return null==v||v.type===Q2||l||(v=(0,i.jsx)(Q2,(0,NK.A)({variant:o?"body2":"body1",className:m.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:v}))),(0,i.jsxs)(Fye,(0,NK.A)({className:d1(m.root,s),as:a,ref:t,ownerState:f},h,{children:[o&&(0,i.jsx)($ye,{className:m.avatar,ownerState:f,children:o}),(0,i.jsxs)(Uye,{className:m.content,ownerState:f,children:[g,v]}),n&&(0,i.jsx)(zye,{className:m.action,ownerState:f,children:n})]}))})))((()=>({variants:[{props:({ownerState:e})=>!0===e.disableActionOffset,style:()=>({"& .MuiCardHeader-action":{marginRight:0}})}]}))),qye={titleTypographyProps:{variant:"subtitle1"}},Vye=s().forwardRef((({disableActionOffset:e,...t},r)=>{const n={...qye,...t,titleTypographyProps:{...qye.titleTypographyProps,...t.titleTypographyProps}};return s().createElement(Wye,{...n,ownerState:{disableActionOffset:e},ref:r})}));Vye.defaultProps=qye;var Hye=Vye;function Gye(e){return oY("MuiDialog",e)}const Zye=sY("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Kye=o.createContext({}),Xye=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Yye=b1(V5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Jye=b1(Y5,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Qye=b1("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${h1(r.scroll)}`]]}})((({ownerState:e})=>(0,NK.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),ebe=b1(Cfe,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${h1(r.scroll)}`],t[`paperWidth${h1(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,NK.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Zye.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}`,[`&.${Zye.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,[`&.${Zye.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),tbe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiDialog"}),n=T0(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:h=!1,fullScreen:f=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:v,onClick:y,onClose:b,open:x,PaperComponent:w=Cfe,PaperProps:C={},scroll:_="paper",TransitionComponent:k=$5,transitionDuration:S=s,TransitionProps:A}=r,E=(0,DK.A)(r,Xye),R=(0,NK.A)({},r,{disableEscapeKeyDown:h,fullScreen:f,fullWidth:m,maxWidth:g,scroll:_}),I=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:o}=e;return p1({root:["root"],container:["container",`scroll${h1(r)}`],paper:["paper",`paperScroll${h1(r)}`,`paperWidth${h1(String(n))}`,i&&"paperFullWidth",o&&"paperFullScreen"]},Gye,t)})(R),O=o.useRef(),M=Xve(l),T=o.useMemo((()=>({titleId:M})),[M]);return(0,i.jsx)(Jye,(0,NK.A)({className:d1(I.root,p),closeAfterTransition:!0,components:{Backdrop:Yye},componentsProps:{backdrop:(0,NK.A)({transitionDuration:S,as:c},u)},disableEscapeKeyDown:h,onClose:b,open:x,ref:t,onClick:e=>{y&&y(e),O.current&&(O.current=null,v&&v(e),b&&b(e,"backdropClick"))},ownerState:R},E,{children:(0,i.jsx)(k,(0,NK.A)({appear:!0,in:x,timeout:S,role:"presentation"},A,{children:(0,i.jsx)(Qye,{className:d1(I.container),onMouseDown:e=>{O.current=e.target===e.currentTarget},ownerState:R,children:(0,i.jsx)(ebe,(0,NK.A)({as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":M},C,{className:d1(I.paper,C.className),ownerState:R,children:(0,i.jsx)(Kye.Provider,{value:T,children:d})}))})}))}))}));var rbe=s().forwardRef(((e,t)=>s().createElement(tbe,{...e,ref:t})));function nbe(e){return oY("MuiDialogContent",e)}function ibe(e){return oY("MuiDialogTitle",e)}sY("MuiDialogContent",["root","dividers"]);const obe=sY("MuiDialogTitle",["root"]),sbe=["className","dividers"],abe=b1("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,NK.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${obe.root} + &`]:{paddingTop:0}}))),lbe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,s=(0,DK.A)(r,sbe),a=(0,NK.A)({},r,{dividers:o}),l=(e=>{const{classes:t,dividers:r}=e;return p1({root:["root",r&&"dividers"]},nbe,t)})(a);return(0,i.jsx)(abe,(0,NK.A)({className:d1(l.root,n),ownerState:a,ref:t},s))}));var cbe=s().forwardRef(((e,t)=>s().createElement(lbe,{...e,ref:t})));function ube(e){return oY("MuiIconButton",e)}const dbe=sY("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pbe=["edge","children","className","color","disabled","disableFocusRipple","size"],hbe=b1(w0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${h1(r.color)}`],r.edge&&t[`edge${h1(r.edge)}`],t[`size${h1(r.size)}`]]}})((({theme:e,ownerState:t})=>(0,NK.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return(0,NK.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,NK.A)({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":(0,NK.A)({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(n.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)},{[`&.${dbe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),fbe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=(0,DK.A)(r,pbe),p=(0,NK.A)({},r,{edge:n,color:a,disabled:l,disableFocusRipple:c,size:u}),h=(e=>{const{classes:t,disabled:r,color:n,edge:i,size:o}=e;return p1({root:["root",r&&"disabled","default"!==n&&`color${h1(n)}`,i&&`edge${h1(i)}`,`size${h1(o)}`]},ube,t)})(p);return(0,i.jsx)(hbe,(0,NK.A)({className:d1(h.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:t},d,{ownerState:p,children:o}))})),mbe=(e="default")=>"inherit"===e?"inherit":"default"===e?"action.active":pQ.includes(e)?`${e}.${dJ}`:`${e}.main`,gbe=s().forwardRef(((e,t)=>{const{sx:r={},color:n}=e,i=e.href?uJ:"&:hover,&:focus,&:active",o={[i]:{color:mbe(n)}};return s().createElement(fbe,{...e,sx:{...o,...r},ref:t})}));var vbe=gbe;const ybe=s().forwardRef(((e,t)=>s().createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"}),s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"})))),{slots:bbe,classNames:xbe}=mye("CloseButton",["root","icon"]),wbe=c1(vbe,bbe.root)({}),Cbe=c1(ybe,bbe.icon)({}),_be={"aria-label":"close",color:"default"},kbe=s().forwardRef(((e,t)=>{const r=g1({props:{..._be,...e},name:bbe.root.name}),{slotProps:n={},...i}=r;return s().createElement(wbe,{...i,size:"small",ref:t,className:d1([[xbe.root,i.className]]),ownerState:r},s().createElement(Cbe,{...n.icon,className:d1([xbe.icon,n.icon?.className]),ownerState:r}))}));kbe.defaultProps=_be;var Sbe=kbe;const Abe=c1((e=>s().createElement(S1,{viewBox:"0 0 32 32",...e},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"}))))((({theme:e})=>({width:e.spacing(3),height:e.spacing(3),"& path":{fill:e.palette.text.primary},marginRight:e.spacing(1)}))),Ebe=c1("span")((({theme:e})=>({marginRight:e.spacing(1)}))),Rbe=({logo:e,...t})=>!1===e?null:e?s().createElement(Ebe,null,e):s().createElement(Abe,{...t}),{slots:Ibe,classNames:Obe}=mye("DialogHeader",["root","logo","toolbar"]),Mbe=c1(Dme,Ibe.root)({"& .MuiDialogTitle-root":{padding:0}}),Tbe=c1(Jme,Ibe.toolbar)({}),Lbe={color:"transparent",position:"relative"},Pbe=s().forwardRef(((e,t)=>{const r=g1({props:{...Lbe,...e},name:Ibe.root.name}),{slotProps:n={},logo:i,onClose:o,...a}=r;return s().createElement(Mbe,{...a,ref:t,className:d1([[Obe.root,a.className]]),ownerState:r},s().createElement(Tbe,{variant:"dense",...n.toolbar,className:d1([Obe.toolbar,n.toolbar?.className]),ownerState:r},s().createElement(Rbe,{logo:i,className:d1([Obe.logo,n.logo?.className])}),s().createElement(Gme,{direction:"row",alignItems:"center",flex:1},r.children),o&&s().createElement(Sbe,{edge:"end",onClick:o,sx:{"&.MuiButtonBase-root":{ml:.5}}})))}));Pbe.defaultProps=Lbe;var jbe=Pbe;const Nbe=["className","id"],Dbe=b1(Q2,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Bbe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiDialogTitle"}),{className:n,id:s}=r,a=(0,DK.A)(r,Nbe),l=r,c=(e=>{const{classes:t}=e;return p1({root:["root"]},ibe,t)})(l),{titleId:u=s}=o.useContext(Kye);return(0,i.jsx)(Dbe,(0,NK.A)({component:"h2",className:d1(c.root,n),ownerState:l,ref:t,variant:"h6",id:null!=s?s:u},a))})),Fbe={variant:"subtitle1"},$be=s().forwardRef(((e,t)=>s().createElement(Bbe,{...Fbe,...e,ref:t})));$be.defaultProps=Fbe;var zbe=$be;const Ube=o.createContext();function Wbe(e){return oY("MuiTableFooter",e)}sY("MuiTableFooter",["root"]);const qbe=["className","component"],Vbe=b1("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),Hbe={variant:"footer"},Gbe="tfoot",Zbe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTableFooter"}),{className:n,component:o=Gbe}=r,s=(0,DK.A)(r,qbe),a=(0,NK.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return p1({root:["root"]},Wbe,t)})(a);return(0,i.jsx)(Ube.Provider,{value:Hbe,children:(0,i.jsx)(Vbe,(0,NK.A)({as:o,className:d1(l.root,n),ref:t,role:o===Gbe?null:"rowgroup",ownerState:a},s))})}));var Kbe=s().forwardRef(((e,t)=>s().createElement(Zbe,{...e,ref:t})));function Xbe(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}const Ybe=["onChange","maxRows","minRows","style","value"];function Jbe(e){return parseInt(e,10)||0}const Qbe={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},exe=o.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:s=1,style:a,value:l}=e,c=(0,DK.A)(e,Ybe),{current:u}=o.useRef(null!=l),d=o.useRef(null),p=I1(t,d),h=o.useRef(null),f=o.useCallback((()=>{const t=d.current,r=m5(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const i=h.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const o=r.boxSizing,a=Jbe(r.paddingBottom)+Jbe(r.paddingTop),l=Jbe(r.borderBottomWidth)+Jbe(r.borderTopWidth),c=i.scrollHeight;i.value="x";const u=i.scrollHeight;let p=c;return s&&(p=Math.max(Number(s)*u,p)),n&&(p=Math.min(Number(n)*u,p)),p=Math.max(p,u),{outerHeightStyle:p+("border-box"===o?a+l:0),overflowing:Math.abs(p-c)<=1}}),[n,s,e.placeholder]),m=o.useCallback((()=>{const e=f();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=d.current;r.style.height=`${e.outerHeightStyle}px`,r.style.overflow=e.overflowing?"hidden":""}),[f]);return M1((()=>{const e=()=>{m()};const t=Xbe(e),r=d.current,n=m5(r);let i;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),i&&i.disconnect()}}),[f,m]),M1((()=>{m()})),(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("textarea",(0,NK.A)({value:l,onChange:e=>{u||m(),r&&r(e)},ref:p,rows:s,style:a},c)),(0,i.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,NK.A)({},Qbe,a,{paddingTop:0,paddingBottom:0})})]})}));function txe({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const rxe=o.createContext(void 0);function nxe(){return o.useContext(rxe)}var ixe=r(9940);const oxe=function({styles:e,themeId:t,defaultTheme:r={}}){const n=GK(r),o="function"==typeof e?e(t&&n[t]||n):e;return(0,i.jsx)(ixe.A,{styles:o})},sxe=function(e){return(0,i.jsx)(oxe,(0,NK.A)({},e,{defaultTheme:m1,themeId:nY}))};function axe(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function lxe(e,t=!1){return e&&(axe(e.value)&&""!==e.value||t&&axe(e.defaultValue)&&""!==e.defaultValue)}function cxe(e){return oY("MuiInputBase",e)}const uxe=sY("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),dxe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],pxe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${h1(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},hxe=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},fxe=b1("div",{name:"MuiInputBase",slot:"Root",overridesResolver:pxe})((({theme:e,ownerState:t})=>(0,NK.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${uxe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,NK.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),mxe=b1("input",{name:"MuiInputBase",slot:"Input",overridesResolver:hxe})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=(0,NK.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,NK.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${uxe.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${uxe.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"})})),gxe=(0,i.jsx)(sxe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),vxe=o.forwardRef((function(e,t){var r;const n=g1({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:l,className:c,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:g=!1,id:v,inputComponent:y="input",inputProps:b={},inputRef:x,maxRows:w,minRows:C,multiline:_=!1,name:k,onBlur:S,onChange:A,onClick:E,onFocus:R,onKeyDown:I,onKeyUp:O,placeholder:M,readOnly:T,renderSuffix:L,rows:P,slotProps:j={},slots:N={},startAdornment:D,type:B="text",value:F}=n,$=(0,DK.A)(n,dxe),z=null!=b.value?b.value:F,{current:U}=o.useRef(null!=z),W=o.useRef(),q=o.useCallback((e=>{}),[]),V=O1(W,x,b.ref,q),[H,G]=o.useState(!1),Z=nxe(),K=txe({props:n,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=Z?Z.focused:H,o.useEffect((()=>{!Z&&h&&H&&(G(!1),S&&S())}),[Z,h,H,S]);const X=Z&&Z.onFilled,Y=Z&&Z.onEmpty,J=o.useCallback((e=>{lxe(e)?X&&X():Y&&Y()}),[X,Y]);A2((()=>{U&&J({value:z})}),[z,J,U]),o.useEffect((()=>{J(W.current)}),[]);let Q=y,ee=b;_&&"input"===Q&&(ee=P?(0,NK.A)({type:void 0,minRows:P,maxRows:P},ee):(0,NK.A)({type:void 0,maxRows:w,minRows:C},ee),Q=exe),o.useEffect((()=>{Z&&Z.setAdornedStart(Boolean(D))}),[Z,D]);const te=(0,NK.A)({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:m,error:K.error,focused:K.focused,formControl:Z,fullWidth:g,hiddenLabel:K.hiddenLabel,multiline:_,size:K.size,startAdornment:D,type:B}),re=(e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:f}=e;return p1({root:["root",`color${h1(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&"medium"!==p&&`size${h1(p)}`,u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},cxe,t)})(te),ne=N.root||u.Root||fxe,ie=j.root||d.root||{},oe=N.input||u.Input||mxe;return ee=(0,NK.A)({},ee,null!=(r=j.input)?r:d.input),(0,i.jsxs)(o.Fragment,{children:[!f&&gxe,(0,i.jsxs)(ne,(0,NK.A)({},ie,!k2(ne)&&{ownerState:(0,NK.A)({},te,ie.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),E&&E(e)}},$,{className:d1(re.root,ie.className,c,T&&"MuiInputBase-readOnly"),children:[D,(0,i.jsx)(rxe.Provider,{value:null,children:(0,i.jsx)(oe,(0,NK.A)({ownerState:te,"aria-invalid":K.error,"aria-describedby":s,autoComplete:a,autoFocus:l,defaultValue:p,disabled:K.disabled,id:v,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:k,placeholder:M,readOnly:T,required:K.required,rows:P,value:z,onKeyDown:I,onKeyUp:O,type:B},ee,!k2(oe)&&{as:Q,ownerState:(0,NK.A)({},te,ee.ownerState)},{ref:V,className:d1(re.input,ee.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{S&&S(e),b.onBlur&&b.onBlur(e),Z&&Z.onBlur?Z.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!U){const t=e.target||W.current;if(null==t)throw new Error(YK(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),A&&A(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),b.onFocus&&b.onFocus(e),Z&&Z.onFocus?Z.onFocus(e):G(!0))}}))}),m,L?L((0,NK.A)({},K,{startAdornment:D})):null]}))]})})),yxe=vxe;function bxe(e){return oY("MuiDivider",e)}const xxe=sY("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function wxe(e){return oY("MuiMenuItem",e)}const Cxe=sY("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_xe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],kxe=b1(w0,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,NK.A)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cxe.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cxe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cxe.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cxe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cxe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xxe.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xxe.inset}`]:{marginLeft:52},[`& .${t5.root}`]:{marginTop:0,marginBottom:0},[`& .${t5.inset}`]:{paddingLeft:36},[`& .${W2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,NK.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${W2.root} svg`]:{fontSize:"1.25rem"}})))),Sxe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h}=r,f=(0,DK.A)(r,_xe),m=o.useContext(y2),g=o.useMemo((()=>({dense:a||m.dense||!1,disableGutters:c})),[m.dense,a,c]),v=o.useRef(null);A2((()=>{n&&v.current&&v.current.focus()}),[n]);const y=(0,NK.A)({},r,{dense:g.dense,divider:l,disableGutters:c}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:o,classes:s}=e,a=p1({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},wxe,s);return(0,NK.A)({},s,a)})(r),x=O1(v,t);let w;return r.disabled||(w=void 0!==p?p:-1),(0,i.jsx)(y2.Provider,{value:g,children:(0,i.jsx)(kxe,(0,NK.A)({ref:x,role:d,tabIndex:w,component:s,focusVisibleClassName:d1(b.focusVisible,u),className:d1(b.root,h)},f,{ownerState:y,classes:b}))})}));r(4363);const Axe=h5,Exe=g5,Rxe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ixe(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Oxe(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mxe(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Txe(e,t,r,n,i,o){let s=!1,a=i(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Mxe(a,o)&&!t)return a.focus(),!0;a=i(e,a,r)}return!1}const Lxe=o.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu"}=e,h=(0,DK.A)(e,Rxe),f=o.useRef(null),m=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});A2((()=>{n&&f.current.focus()}),[n]),o.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Exe(Axe(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const g=O1(f,t);let v=-1;o.Children.forEach(a,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===v)&&(v=t),v===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))):v===t&&(v+=1,v>=a.length&&(v=-1))}));const y=o.Children.map(a,((e,t)=>{if(t===v){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===p&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,i.jsx)(C2,(0,NK.A)({role:"menu",ref:g,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Axe(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Txe(t,n,u,c,Ixe);else if("ArrowUp"===r)e.preventDefault(),Txe(t,n,u,c,Oxe);else if("Home"===r)e.preventDefault(),Txe(t,null,u,c,Ixe);else if("End"===r)e.preventDefault(),Txe(t,null,u,c,Oxe);else if(1===r.length){const i=m.current,o=r.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(o);const a=n&&!i.repeating&&Mxe(n,i);i.previousKeyMatched&&(a||Txe(t,n,!1,c,Ixe,i))?e.preventDefault():i.previousKeyMatched=!1}d&&d(e)},tabIndex:n?0:-1},h,{children:y}))})),Pxe=Lxe,jxe=Xbe,Nxe=m5;function Dxe(e){return oY("MuiPopover",e)}sY("MuiPopover",["root","paper"]);const Bxe=["onEntering"],Fxe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],$xe=["slotProps"];function zxe(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Uxe(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Wxe(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function qxe(e){return"function"==typeof e?e():e}const Vxe=b1(Y5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hxe=b1(Cfe,{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}),Gxe=o.forwardRef((function(e,t){var r,n,s;const a=g1({props:e,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:p="anchorEl",children:h,className:f,container:m,elevation:g=8,marginThreshold:v=16,open:y,PaperProps:b={},slots:x,slotProps:w,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:_=hge,transitionDuration:k="auto",TransitionProps:{onEntering:S}={},disableScrollLock:A=!1}=a,E=(0,DK.A)(a.TransitionProps,Bxe),R=(0,DK.A)(a,Fxe),I=null!=(r=null==w?void 0:w.paper)?r:b,O=o.useRef(),M=O1(O,I.ref),T=(0,NK.A)({},a,{anchorOrigin:u,anchorReference:p,elevation:g,marginThreshold:v,externalPaperSlotProps:I,transformOrigin:C,TransitionComponent:_,transitionDuration:k,TransitionProps:E}),L=(e=>{const{classes:t}=e;return p1({root:["root"],paper:["paper"]},Dxe,t)})(T),P=o.useCallback((()=>{if("anchorPosition"===p)return d;const e=qxe(c),t=(e&&1===e.nodeType?e:Axe(O.current).body).getBoundingClientRect();return{top:t.top+zxe(t,u.vertical),left:t.left+Uxe(t,u.horizontal)}}),[c,u.horizontal,u.vertical,d,p]),j=o.useCallback((e=>({vertical:zxe(e,C.vertical),horizontal:Uxe(e,C.horizontal)})),[C.horizontal,C.vertical]),N=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=j(t);if("none"===p)return{top:null,left:null,transformOrigin:Wxe(r)};const n=P();let i=n.top-r.vertical,o=n.left-r.horizontal;const s=i+t.height,a=o+t.width,l=Nxe(qxe(c)),u=l.innerHeight-v,d=l.innerWidth-v;if(null!==v&&i<v){const e=i-v;i-=e,r.vertical+=e}else if(null!==v&&s>u){const e=s-u;i-=e,r.vertical+=e}if(null!==v&&o<v){const e=o-v;o-=e,r.horizontal+=e}else if(a>d){const e=a-d;o-=e,r.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:Wxe(r)}}),[c,p,P,j,v]),[D,B]=o.useState(y),F=o.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,B(!0)}),[N]);o.useEffect((()=>(A&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[c,A,F]),o.useEffect((()=>{y&&F()})),o.useImperativeHandle(l,(()=>y?{updatePosition:()=>{F()}}:null),[y,F]),o.useEffect((()=>{if(!y)return;const e=jxe((()=>{F()})),t=Nxe(c);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[c,y,F]);let $=k;"auto"!==k||_.muiSupportAuto||($=void 0);const z=m||(c?Axe(qxe(c)).body:void 0),U=null!=(n=null==x?void 0:x.root)?n:Vxe,W=null!=(s=null==x?void 0:x.paper)?s:Hxe,q=p5({elementType:W,externalSlotProps:(0,NK.A)({},I,{style:D?I.style:(0,NK.A)({},I.style,{opacity:0})}),additionalProps:{elevation:g,ref:M},ownerState:T,className:d1(L.paper,null==I?void 0:I.className)}),V=p5({elementType:U,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:y},ownerState:T,className:d1(L.root,f)}),{slotProps:H}=V,G=(0,DK.A)(V,$xe);return(0,i.jsx)(U,(0,NK.A)({},G,!k2(U)&&{slotProps:H,disableScrollLock:A},{children:(0,i.jsx)(_,(0,NK.A)({appear:!0,in:y,onEntering:(e,t)=>{S&&S(e,t),F()},onExited:()=>{B(!1)},timeout:$},E,{children:(0,i.jsx)(W,(0,NK.A)({},q,{children:h}))}))}))})),Zxe=Gxe;function Kxe(e){return oY("MuiMenu",e)}sY("MuiMenu",["root","paper","list"]);const Xxe=["onEntering"],Yxe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Jxe={vertical:"top",horizontal:"right"},Qxe={vertical:"top",horizontal:"left"},ewe=b1(Zxe,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),twe=b1(Hxe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rwe=b1(Pxe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nwe=o.forwardRef((function(e,t){var r,n;const s=g1({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:p,open:h,PaperProps:f={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:v}={},variant:y="selectedMenu",slots:b={},slotProps:x={}}=s,w=(0,DK.A)(s.TransitionProps,Xxe),C=(0,DK.A)(s,Yxe),_=SJ(),k=(0,NK.A)({},s,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:v,PaperProps:f,transitionDuration:g,TransitionProps:w,variant:y}),S=(e=>{const{classes:t}=e;return p1({root:["root"],paper:["paper"],list:["list"]},Kxe,t)})(k),A=a&&!u&&h,E=o.useRef(null);let R=-1;o.Children.map(l,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===R)&&(R=t))}));const I=null!=(r=b.paper)?r:twe,O=null!=(n=x.paper)?n:f,M=p5({elementType:b.root,externalSlotProps:x.root,ownerState:k,className:[S.root,c]}),T=p5({elementType:I,externalSlotProps:O,ownerState:k,className:S.paper});return(0,i.jsx)(ewe,(0,NK.A)({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Jxe:Qxe,slots:{paper:I,root:b.root},slotProps:{root:M,paper:T},open:h,ref:t,transitionDuration:g,TransitionProps:(0,NK.A)({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:_?"rtl":"ltr"}),v&&v(e,t)}},w),ownerState:k},C,{classes:m,children:(0,i.jsx)(rwe,(0,NK.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:E,autoFocus:a&&(-1===R||u),autoFocusItem:A,variant:y},d,{className:d1(S.list,d.className),children:l}))}))})),iwe=nwe;function owe(e){return oY("MuiNativeSelect",e)}const swe=sY("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),awe=["className","disabled","error","IconComponent","inputRef","variant"],lwe=({ownerState:e,theme:t})=>(0,NK.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,NK.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${swe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),cwe=b1("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:y1,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${swe.multiple}`]:t.multiple}]}})(lwe),uwe=({ownerState:e,theme:t})=>(0,NK.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${swe.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),dwe=b1("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${h1(r.variant)}`],r.open&&t.iconOpen]}})(uwe),pwe=o.forwardRef((function(e,t){const{className:r,disabled:n,error:s,IconComponent:a,inputRef:l,variant:c="standard"}=e,u=(0,DK.A)(e,awe),d=(0,NK.A)({},e,{disabled:n,variant:c,error:s}),p=(e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:s}=e;return p1({select:["select",r,n&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${h1(r)}`,o&&"iconOpen",n&&"disabled"]},owe,t)})(d);return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(cwe,(0,NK.A)({ownerState:d,className:d1(p.select,r),disabled:n,ref:l||t},u)),e.multiple?null:(0,i.jsx)(dwe,{as:a,ownerState:d,className:p.icon})]})}));function hwe(e){return oY("MuiSelect",e)}const fwe=sY("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var mwe;const gwe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],vwe=b1("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${fwe.select}`]:t.select},{[`&.${fwe.select}`]:t[r.variant]},{[`&.${fwe.error}`]:t.error},{[`&.${fwe.multiple}`]:t.multiple}]}})(lwe,{[`&.${fwe.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ywe=b1("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${h1(r.variant)}`],r.open&&t.iconOpen]}})(uwe),bwe=b1("input",{shouldForwardProp:e=>v1(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 xwe(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wwe(e){return null==e||"string"==typeof e&&!e.trim()}const Cwe=o.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":s,autoFocus:a,autoWidth:l,children:c,className:u,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:f,error:m=!1,IconComponent:g,inputRef:v,labelId:y,MenuProps:b={},multiple:x,name:w,onBlur:C,onChange:_,onClose:k,onFocus:S,onOpen:A,open:E,readOnly:R,renderValue:I,SelectDisplayProps:O={},tabIndex:M,value:T,variant:L="standard"}=e,P=(0,DK.A)(e,gwe),[j,N]=Jve({controlled:T,default:p,name:"Select"}),[D,B]=Jve({controlled:E,default:d,name:"Select"}),F=o.useRef(null),$=o.useRef(null),[z,U]=o.useState(null),{current:W}=o.useRef(null!=E),[q,V]=o.useState(),H=O1(t,v),G=o.useCallback((e=>{$.current=e,e&&U(e)}),[]),Z=null==z?void 0:z.parentNode;o.useImperativeHandle(H,(()=>({focus:()=>{$.current.focus()},node:F.current,value:j})),[j]),o.useEffect((()=>{d&&D&&z&&!W&&(V(l?null:Z.clientWidth),$.current.focus())}),[z,l]),o.useEffect((()=>{a&&$.current.focus()}),[a]),o.useEffect((()=>{if(!y)return;const e=Axe($.current).getElementById(y);if(e){const t=()=>{getSelection().isCollapsed&&$.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[y]);const K=(e,t)=>{e?A&&A(t):k&&k(t),W||(V(l?null:Z.clientWidth),B(e))},X=o.Children.toArray(c),Y=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(x){r=Array.isArray(j)?j.slice():[];const t=j.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),j!==r&&(N(r),_)){const n=t.nativeEvent||t,i=new n.constructor(n.type,n);Object.defineProperty(i,"target",{writable:!0,value:{value:r,name:w}}),_(i,e)}x||K(!1,t)}},J=null!==z&&D;let Q,ee;delete P["aria-invalid"];const te=[];let re=!1,ne=!1;(lxe({value:j})||f)&&(I?Q=I(j):re=!0);const ie=X.map((e=>{if(!o.isValidElement(e))return null;let t;if(x){if(!Array.isArray(j))throw new Error(YK(2));t=j.some((t=>xwe(t,e.props.value))),t&&re&&te.push(e.props.children)}else t=xwe(j,e.props.value),t&&re&&(ee=e.props.children);return t&&(ne=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));re&&(Q=x?0===te.length?null:te.reduce(((e,t,r)=>(e.push(t),r<te.length-1&&e.push(", "),e)),[]):ee);let oe,se=q;!l&&W&&z&&(se=Z.clientWidth),oe=void 0!==M?M:h?null:0;const ae=O.id||(w?`mui-component-select-${w}`:void 0),le=(0,NK.A)({},e,{variant:L,value:j,open:J,error:m}),ce=(e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:s}=e;return p1({select:["select",r,n&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${h1(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},hwe,t)})(le),ue=(0,NK.A)({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),de=Xve();return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(vwe,(0,NK.A)({ref:G,tabIndex:oe,role:"combobox","aria-controls":de,"aria-disabled":h?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[y,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{R||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:h||R?null:e=>{0===e.button&&(e.preventDefault(),$.current.focus(),K(!0,e))},onBlur:e=>{!J&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:j,name:w}}),C(e))},onFocus:S},O,{ownerState:le,className:d1(O.className,ce.select,u),id:ae,children:wwe(Q)?mwe||(mwe=(0,i.jsx)("span",{className:"notranslate",children:"​"})):Q})),(0,i.jsx)(bwe,(0,NK.A)({"aria-invalid":m,value:Array.isArray(j)?j.join(","):j,name:w,ref:F,"aria-hidden":!0,onChange:e=>{const t=X.find((t=>t.props.value===e.target.value));void 0!==t&&(N(t.props.value),_&&_(e,t))},tabIndex:-1,disabled:h,className:ce.nativeInput,autoFocus:a,ownerState:le},P)),(0,i.jsx)(ywe,{as:g,className:ce.icon,ownerState:le}),(0,i.jsx)(iwe,(0,NK.A)({id:`menu-${w||""}`,anchorEl:Z,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:(0,NK.A)({"aria-labelledby":y,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:de},b.MenuListProps),slotProps:(0,NK.A)({},b.slotProps,{paper:(0,NK.A)({},ue,{style:(0,NK.A)({minWidth:se},null!=ue?ue.style:null)})}),children:ie}))]})})),_we=Cwe;function kwe(e,t){function r(r,n){return(0,i.jsx)(k1,(0,NK.A)({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=k1.muiName,o.memo(o.forwardRef(r))}const Swe=kwe((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Awe(e){return oY("MuiInput",e)}const Ewe=(0,NK.A)({},uxe,sY("MuiInput",["root","underline","input"])),Rwe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Iwe=b1(fxe,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...pxe(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,NK.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ewe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ewe.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Ewe.disabled}, .${Ewe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ewe.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Owe=b1(mxe,{name:"MuiInput",slot:"Input",overridesResolver:hxe})({}),Mwe=o.forwardRef((function(e,t){var r,n,o,s;const a=g1({props:e,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:f,slots:m={},type:g="text"}=a,v=(0,DK.A)(a,Rwe),y=(e=>{const{classes:t,disableUnderline:r}=e,n=p1({root:["root",!r&&"underline"],input:["input"]},Awe,t);return(0,NK.A)({},t,n)})(a),b={root:{ownerState:{disableUnderline:l}}},x=(null!=f?f:u)?eX(null!=f?f:u,b):b,w=null!=(r=null!=(n=m.root)?n:c.Root)?r:Iwe,C=null!=(o=null!=(s=m.input)?s:c.Input)?o:Owe;return(0,i.jsx)(yxe,(0,NK.A)({slots:{root:w,input:C},slotProps:x,fullWidth:d,inputComponent:p,multiline:h,ref:t,type:g},v,{classes:y}))}));Mwe.muiName="Input";const Twe=Mwe;function Lwe(e){return oY("MuiFilledInput",e)}const Pwe=(0,NK.A)({},uxe,sY("MuiFilledInput",["root","underline","input"])),jwe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Nwe=b1(fxe,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...pxe(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,NK.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Pwe.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Pwe.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${Pwe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pwe.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,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(.${Pwe.disabled}, .${Pwe.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pwe.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,NK.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Dwe=b1(mxe,{name:"MuiFilledInput",slot:"Input",overridesResolver:hxe})((({theme:e,ownerState:t})=>(0,NK.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Bwe=o.forwardRef((function(e,t){var r,n,o,s;const a=g1({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=a,g=(0,DK.A)(a,jwe),v=(0,NK.A)({},a,{fullWidth:u,inputComponent:d,multiline:p,type:m}),y=(e=>{const{classes:t,disableUnderline:r}=e,n=p1({root:["root",!r&&"underline"],input:["input"]},Lwe,t);return(0,NK.A)({},t,n)})(a),b={root:{ownerState:v},input:{ownerState:v}},x=(null!=h?h:c)?eX(b,null!=h?h:c):b,w=null!=(r=null!=(n=f.root)?n:l.Root)?r:Nwe,C=null!=(o=null!=(s=f.input)?s:l.Input)?o:Dwe;return(0,i.jsx)(yxe,(0,NK.A)({slots:{root:w,input:C},componentsProps:x,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:y}))}));Bwe.muiName="Input";const Fwe=Bwe;var $we;const zwe=["children","classes","className","label","notched"],Uwe=b1("fieldset",{shouldForwardProp:y1})({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%"}),Wwe=b1("legend",{shouldForwardProp:y1})((({ownerState:e,theme:t})=>(0,NK.A)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,NK.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function qwe(e){return oY("MuiOutlinedInput",e)}const Vwe=(0,NK.A)({},uxe,sY("MuiOutlinedInput",["root","notchedOutline","input"])),Hwe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Gwe=b1(fxe,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:pxe})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,NK.A)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Vwe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vwe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Vwe.focused} .${Vwe.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Vwe.error} .${Vwe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Vwe.disabled} .${Vwe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,NK.A)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Zwe=b1((function(e){const{className:t,label:r,notched:n}=e,o=(0,DK.A)(e,zwe),s=null!=r&&""!==r,a=(0,NK.A)({},e,{notched:n,withLabel:s});return(0,i.jsx)(Uwe,(0,NK.A)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,i.jsx)(Wwe,{ownerState:a,children:s?(0,i.jsx)("span",{children:r}):$we||($we=(0,i.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}})),Kwe=b1(mxe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:hxe})((({theme:e,ownerState:t})=>(0,NK.A)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Xwe=o.forwardRef((function(e,t){var r,n,s,a,l;const c=g1({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:p="input",label:h,multiline:f=!1,notched:m,slots:g={},type:v="text"}=c,y=(0,DK.A)(c,Hwe),b=(e=>{const{classes:t}=e,r=p1({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qwe,t);return(0,NK.A)({},t,r)})(c),x=nxe(),w=txe({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=(0,NK.A)({},c,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:f,size:w.size,type:v}),_=null!=(r=null!=(n=g.root)?n:u.Root)?r:Gwe,k=null!=(s=null!=(a=g.input)?a:u.Input)?s:Kwe;return(0,i.jsx)(yxe,(0,NK.A)({slots:{root:_,input:k},renderSuffix:e=>(0,i.jsx)(Zwe,{ownerState:C,className:b.notchedOutline,label:null!=h&&""!==h&&w.required?l||(l=(0,i.jsxs)(o.Fragment,{children:[h," ","*"]})):h,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:d,inputComponent:p,multiline:f,ref:t,type:v},y,{classes:(0,NK.A)({},b,{notchedOutline:null})}))}));Xwe.muiName="Input";const Ywe=Xwe,Jwe=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Qwe=["root"],eCe={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>y1(e)&&"variant"!==e,slot:"Root"},tCe=b1(Twe,eCe)(""),rCe=b1(Ywe,eCe)(""),nCe=b1(Fwe,eCe)(""),iCe=o.forwardRef((function(e,t){const r=g1({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=Swe,id:p,input:h,inputProps:f,label:m,labelId:g,MenuProps:v,multiple:y=!1,native:b=!1,onClose:x,onOpen:w,open:C,renderValue:_,SelectDisplayProps:k,variant:S="outlined"}=r,A=(0,DK.A)(r,Jwe),E=b?pwe:_we,R=txe({props:r,muiFormControl:nxe(),states:["variant","error"]}),I=R.variant||S,O=(0,NK.A)({},r,{variant:I,classes:a}),M=(e=>{const{classes:t}=e;return t})(O),T=(0,DK.A)(M,Qwe),L=h||{standard:(0,i.jsx)(tCe,{ownerState:O}),outlined:(0,i.jsx)(rCe,{label:m,ownerState:O}),filled:(0,i.jsx)(nCe,{ownerState:O})}[I],P=O1(t,L.ref);return(0,i.jsx)(o.Fragment,{children:o.cloneElement(L,(0,NK.A)({inputComponent:E,inputProps:(0,NK.A)({children:s,error:R.error,IconComponent:d,variant:I,type:void 0,multiple:y},b?{id:p}:{autoWidth:n,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:v,onClose:x,onOpen:w,open:C,renderValue:_,SelectDisplayProps:(0,NK.A)({id:p},k)},f,{classes:f?eX(T,f.classes):T},h?h.props.inputProps:{})},(y&&b||u)&&"outlined"===I?{notched:!0}:{},{ref:P,className:d1(L.props.className,l,M.root)},!h&&{variant:I},A))})}));iCe.muiName="Select";const oCe=iCe;function sCe(e){return oY("MuiTableCell",e)}const aCe=sY("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),lCe=["align","className","component","padding","scope","size","sortDirection","variant"],cCe=b1("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${h1(r.size)}`],"normal"!==r.padding&&t[`padding${h1(r.padding)}`],"inherit"!==r.align&&t[`align${h1(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,NK.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===e.palette.mode?(0,nX.a)((0,nX.X4)(e.palette.divider,1),.88):(0,nX.e$)((0,nX.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${aCe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),uCe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTableCell"}),{align:n="inherit",className:s,component:a,padding:l,scope:c,size:u,sortDirection:d,variant:p}=r,h=(0,DK.A)(r,lCe),f=o.useContext(mme),m=o.useContext(Ube),g=m&&"head"===m.variant;let v;v=a||(g?"th":"td");let y=c;"td"===v?y=void 0:!y&&g&&(y="col");const b=p||m&&m.variant,x=(0,NK.A)({},r,{align:n,component:v,padding:l||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:d,stickyHeader:"head"===b&&f&&f.stickyHeader,variant:b}),w=(e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:s}=e;return p1({root:["root",r,s&&"stickyHeader","inherit"!==n&&`align${h1(n)}`,"normal"!==i&&`padding${h1(i)}`,`size${h1(o)}`]},sCe,t)})(x);let C=null;return d&&(C="asc"===d?"ascending":"descending"),(0,i.jsx)(cCe,(0,NK.A)({as:v,ref:t,className:d1(w.root,s),"aria-sort":C,scope:y,ownerState:x},h))})),dCe=uCe,pCe=kwe((0,i.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hCe=kwe((0,i.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),fCe=kwe((0,i.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),mCe=kwe((0,i.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),gCe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],vCe=o.forwardRef((function(e,t){var r,n,o,s,a,l,c,u;const{backIconButtonProps:d,count:p,disabled:h=!1,getItemAriaLabel:f,nextIconButtonProps:m,onPageChange:g,page:v,rowsPerPage:y,showFirstButton:b,showLastButton:x,slots:w={},slotProps:C={}}=e,_=(0,DK.A)(e,gCe),k=SJ(),S=null!=(r=w.firstButton)?r:fbe,A=null!=(n=w.lastButton)?n:fbe,E=null!=(o=w.nextButton)?o:fbe,R=null!=(s=w.previousButton)?s:fbe,I=null!=(a=w.firstButtonIcon)?a:mCe,O=null!=(l=w.lastButtonIcon)?l:fCe,M=null!=(c=w.nextButtonIcon)?c:hCe,T=null!=(u=w.previousButtonIcon)?u:pCe,L=k?A:S,P=k?E:R,j=k?R:E,N=k?S:A,D=k?C.lastButton:C.firstButton,B=k?C.nextButton:C.previousButton,F=k?C.previousButton:C.nextButton,$=k?C.firstButton:C.lastButton;return(0,i.jsxs)("div",(0,NK.A)({ref:t},_,{children:[b&&(0,i.jsx)(L,(0,NK.A)({onClick:e=>{g(e,0)},disabled:h||0===v,"aria-label":f("first",v),title:f("first",v)},D,{children:k?(0,i.jsx)(O,(0,NK.A)({},C.lastButtonIcon)):(0,i.jsx)(I,(0,NK.A)({},C.firstButtonIcon))})),(0,i.jsx)(P,(0,NK.A)({onClick:e=>{g(e,v-1)},disabled:h||0===v,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},null!=B?B:d,{children:k?(0,i.jsx)(M,(0,NK.A)({},C.nextButtonIcon)):(0,i.jsx)(T,(0,NK.A)({},C.previousButtonIcon))})),(0,i.jsx)(j,(0,NK.A)({onClick:e=>{g(e,v+1)},disabled:h||-1!==p&&v>=Math.ceil(p/y)-1,color:"inherit","aria-label":f("next",v),title:f("next",v)},null!=F?F:m,{children:k?(0,i.jsx)(T,(0,NK.A)({},C.previousButtonIcon)):(0,i.jsx)(M,(0,NK.A)({},C.nextButtonIcon))})),x&&(0,i.jsx)(N,(0,NK.A)({onClick:e=>{g(e,Math.max(0,Math.ceil(p/y)-1))},disabled:h||v>=Math.ceil(p/y)-1,"aria-label":f("last",v),title:f("last",v)},$,{children:k?(0,i.jsx)(I,(0,NK.A)({},C.firstButtonIcon)):(0,i.jsx)(O,(0,NK.A)({},C.lastButtonIcon))}))]}))})),yCe=vCe;function bCe(e){return oY("MuiTablePagination",e)}const xCe=sY("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var wCe;const CCe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_Ce=b1(dCe,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),kCe=b1(Yme,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,NK.A)({[`& .${xCe.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${xCe.actions}`]:{flexShrink:0,marginLeft:20}}))),SCe=b1("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),ACe=b1("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>(0,NK.A)({},e.typography.body2,{flexShrink:0}))),ECe=b1(oCe,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,NK.A)({[`& .${xCe.selectIcon}`]:t.selectIcon,[`& .${xCe.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${xCe.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),RCe=b1(Sxe,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),ICe=b1("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>(0,NK.A)({},e.typography.body2,{flexShrink:0})));function OCe({from:e,to:t,count:r}){return`${e}–${t} of ${-1!==r?r:`more than ${t}`}`}function MCe(e){return`Go to ${e} page`}const TCe=o.forwardRef((function(e,t){var r;const n=g1({props:e,name:"MuiTablePagination"}),{ActionsComponent:s=yCe,backIconButtonProps:a,className:l,colSpan:c,component:u=dCe,count:d,disabled:p=!1,getItemAriaLabel:h=MCe,labelDisplayedRows:f=OCe,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:v,onRowsPerPageChange:y,page:b,rowsPerPage:x,rowsPerPageOptions:w=[10,25,50,100],SelectProps:C={},showFirstButton:_=!1,showLastButton:k=!1,slotProps:S={},slots:A={}}=n,E=(0,DK.A)(n,CCe),R=n,I=(e=>{const{classes:t}=e;return p1({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},bCe,t)})(R),O=null!=(r=null==S?void 0:S.select)?r:C,M=O.native?"option":RCe;let T;u!==dCe&&"td"!==u||(T=c||1e3);const L=Yve(O.id),P=Yve(O.labelId);return(0,i.jsx)(_Ce,(0,NK.A)({colSpan:T,ref:t,as:u,ownerState:R,className:d1(I.root,l)},E,{children:(0,i.jsxs)(kCe,{className:I.toolbar,children:[(0,i.jsx)(SCe,{className:I.spacer}),w.length>1&&(0,i.jsx)(ACe,{className:I.selectLabel,id:P,children:m}),w.length>1&&(0,i.jsx)(ECe,(0,NK.A)({variant:"standard"},!O.variant&&{input:wCe||(wCe=(0,i.jsx)(yxe,{}))},{value:x,onChange:y,id:L,labelId:P},O,{classes:(0,NK.A)({},O.classes,{root:d1(I.input,I.selectRoot,(O.classes||{}).root),select:d1(I.select,(O.classes||{}).select),icon:d1(I.selectIcon,(O.classes||{}).icon)}),disabled:p,children:w.map((e=>(0,o.createElement)(M,(0,NK.A)({},!k2(M)&&{ownerState:R},{className:I.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,i.jsx)(ICe,{className:I.displayedRows,children:f({from:0===d?0:b*x+1,to:-1===d?(b+1)*x:-1===x?d:Math.min(d,(b+1)*x),count:-1===d?-1:d,page:b})}),(0,i.jsx)(s,{className:I.actions,backIconButtonProps:a,count:d,nextIconButtonProps:g,onPageChange:v,page:b,rowsPerPage:x,showFirstButton:_,showLastButton:k,slotProps:S.actions,slots:A.actions,getItemAriaLabel:h,disabled:p})]})}))})),LCe=TCe;var PCe=s().forwardRef(((e,t)=>s().createElement(LCe,{...e,ref:t})));function jCe(e){return oY("MuiTableRow",e)}const NCe=sY("MuiTableRow",["root","selected","hover","head","footer"]),DCe=["className","component","hover","selected"],BCe=b1("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NCe.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${NCe.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,nX.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),FCe="tr",$Ce=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTableRow"}),{className:n,component:s=FCe,hover:a=!1,selected:l=!1}=r,c=(0,DK.A)(r,DCe),u=o.useContext(Ube),d=(0,NK.A)({},r,{component:s,hover:a,selected:l,head:u&&"head"===u.variant,footer:u&&"footer"===u.variant}),p=(e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return p1({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},jCe,t)})(d);return(0,i.jsx)(BCe,(0,NK.A)({as:s,ref:t,className:d1(p.root,n),role:s===FCe?null:"row",ownerState:d},c))})),zCe=c1($Ce)((({ownerState:e})=>e.disableDivider?{"& td, & th":{borderBottom:0}}:{})),UCe={disableDivider:!1},WCe=s().forwardRef(((e,t)=>{const{disableDivider:r,...n}={...UCe,...e};return s().createElement(zCe,{...n,ref:t,ownerState:{disableDivider:r}})}));WCe.defaultProps=UCe;var qCe=WCe;Kbe.propTypes={count:Nhe().number,params:Nhe().objectOf(Nhe().string),setParams:Nhe().func,updateList:Nhe().func,rowsPerPageOptions:Nhe().arrayOf(Nhe().number)};const VCe=({count:e=0,params:t,updateList:r,setParams:n,rowsPerPageOptions:o})=>(0,i.jsx)(Kbe,{children:(0,i.jsx)(qCe,{children:(0,i.jsx)(PCe,{count:Number(e??0),onPageChange:(e,i)=>{const o={...t,page:i+1};n(o),r(o)},page:t.page-1,rowsPerPage:t.limit,onRowsPerPageChange:e=>{const i={...t,limit:e.target.value,page:1};n(i),r(i)},sx:{borderBottom:"none"},rowsPerPageOptions:o})})});function HCe(e){return oY("MuiTableBody",e)}sY("MuiTableBody",["root"]);const GCe=["className","component"],ZCe=b1("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),KCe={variant:"body"},XCe="tbody",YCe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTableBody"}),{className:n,component:o=XCe}=r,s=(0,DK.A)(r,GCe),a=(0,NK.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return p1({root:["root"]},HCe,t)})(a);return(0,i.jsx)(Ube.Provider,{value:KCe,children:(0,i.jsx)(ZCe,(0,NK.A)({className:d1(l.root,n),as:o,ref:t,role:o===XCe?null:"rowgroup",ownerState:a},s))})}));var JCe=s().forwardRef(((e,t)=>s().createElement(YCe,{...e,ref:t}))),QCe=s().forwardRef(((e,t)=>s().createElement(dCe,{...e,ref:t})));const e_e=window.wp.date,t_e=kwe((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function r_e(e){return oY("MuiChip",e)}const n_e=sY("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),i_e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],o_e=b1("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=r;return[{[`& .${n_e.avatar}`]:t.avatar},{[`& .${n_e.avatar}`]:t[`avatar${h1(a)}`]},{[`& .${n_e.avatar}`]:t[`avatarColor${h1(n)}`]},{[`& .${n_e.icon}`]:t.icon},{[`& .${n_e.icon}`]:t[`icon${h1(a)}`]},{[`& .${n_e.icon}`]:t[`iconColor${h1(i)}`]},{[`& .${n_e.deleteIcon}`]:t.deleteIcon},{[`& .${n_e.deleteIcon}`]:t[`deleteIcon${h1(a)}`]},{[`& .${n_e.deleteIcon}`]:t[`deleteIconColor${h1(n)}`]},{[`& .${n_e.deleteIcon}`]:t[`deleteIcon${h1(l)}Color${h1(n)}`]},t.root,t[`size${h1(a)}`],t[`color${h1(n)}`],o&&t.clickable,o&&"default"!==n&&t[`clickableColor${h1(n)})`],s&&t.deletable,s&&"default"!==n&&t[`deletableColor${h1(n)}`],t[l],t[`${l}${h1(n)}`]]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,NK.A)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${n_e.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${n_e.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${n_e.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${n_e.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${n_e.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${n_e.icon}`]:(0,NK.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,NK.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),[`& .${n_e.deleteIcon}`]:(0,NK.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,nX.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,nX.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,nX.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${n_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,nX.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${n_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,NK.A)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,nX.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${n_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,nX.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${n_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,NK.A)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${n_e.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${n_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${n_e.avatar}`]:{marginLeft:4},[`& .${n_e.avatarSmall}`]:{marginLeft:2},[`& .${n_e.icon}`]:{marginLeft:4},[`& .${n_e.iconSmall}`]:{marginLeft:2},[`& .${n_e.deleteIcon}`]:{marginRight:5},[`& .${n_e.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,nX.X4)(e.palette[t.color].main,.7)}`,[`&.${n_e.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${n_e.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,nX.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${n_e.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,nX.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),s_e=b1("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${h1(n)}`]]}})((({ownerState:e})=>(0,NK.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function a_e(e){return"Backspace"===e.key||"Delete"===e.key}const l_e=c1(o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiChip"}),{avatar:n,className:s,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:h,onClick:f,onDelete:m,onKeyDown:g,onKeyUp:v,size:y="medium",variant:b="filled",tabIndex:x,skipFocusWhenDisabled:w=!1}=r,C=(0,DK.A)(r,i_e),_=o.useRef(null),k=O1(_,t),S=e=>{e.stopPropagation(),m&&m(e)},A=!(!1===a||!f)||a,E=A||m?w0:c||"div",R=(0,NK.A)({},r,{component:E,disabled:d,size:y,color:l,iconColor:o.isValidElement(p)&&p.props.color||l,onDelete:!!m,clickable:A,variant:b}),I=(e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e;return p1({root:["root",l,r&&"disabled",`size${h1(n)}`,`color${h1(i)}`,a&&"clickable",a&&`clickableColor${h1(i)}`,s&&"deletable",s&&`deletableColor${h1(i)}`,`${l}${h1(i)}`],label:["label",`label${h1(n)}`],avatar:["avatar",`avatar${h1(n)}`,`avatarColor${h1(i)}`],icon:["icon",`icon${h1(n)}`,`iconColor${h1(o)}`],deleteIcon:["deleteIcon",`deleteIcon${h1(n)}`,`deleteIconColor${h1(i)}`,`deleteIcon${h1(l)}Color${h1(i)}`]},r_e,t)})(R),O=E===w0?(0,NK.A)({component:c||"div",focusVisibleClassName:I.focusVisible},m&&{disableRipple:!0}):{};let M=null;m&&(M=u&&o.isValidElement(u)?o.cloneElement(u,{className:d1(u.props.className,I.deleteIcon),onClick:S}):(0,i.jsx)(t_e,{className:d1(I.deleteIcon),onClick:S}));let T=null;n&&o.isValidElement(n)&&(T=o.cloneElement(n,{className:d1(I.avatar,n.props.className)}));let L=null;return p&&o.isValidElement(p)&&(L=o.cloneElement(p,{className:d1(I.icon,p.props.className)})),(0,i.jsxs)(o_e,(0,NK.A)({as:E,className:d1(I.root,s),disabled:!(!A||!d)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&a_e(e)&&e.preventDefault(),g&&g(e)},onKeyUp:e=>{e.currentTarget===e.target&&(m&&a_e(e)?m(e):"Escape"===e.key&&_.current&&_.current.blur()),v&&v(e)},ref:k,tabIndex:w&&d?-1:x,ownerState:R},O,C,{children:[T||L,(0,i.jsx)(s_e,{className:d1(I.label),ownerState:R,children:h}),M]}))})))((({theme:e,ownerState:t})=>"rounded"!==t.shape?null:{borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})),c_e={shape:"pill"},u_e=s().forwardRef(((e,t)=>{const{shape:r,...n}={...c_e,...e};return s().createElement(l_e,{...n,ref:t,ownerState:{shape:r}})}));u_e.defaultProps=c_e;var d_e=u_e;const p_e=c1("div")`
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
`,h_e=c1(QCe)`
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
`,f_e=c1(dY)`
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
`,m_e=c1(QCe)`
	white-space: nowrap;
	position: relative;
`,g_e=c1(qCe)`

	.el-mailer-date, .el-mailer-cta {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		padding: 16px;
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: end;
	}

	.el-mailer-date {
		opacity: 1;
		z-index: 2;
		align-items: start;
		text-align: right;
	}

	.el-mailer-cta {
		opacity: 0;
		z-index: 1;
	}

	&:hover {
		.el-mailer-date {
			opacity: 0;
			z-index: 1;
		}

		.el-mailer-cta {
			opacity: 1;
			z-index: 2;
		}
	}
`,v_e=c1(d_e)`
	text-transform: capitalize;
	cursor: default;
	margin: 5px 0;
`,y_e=e=>(0,i.jsx)(v_e,{size:"small",variant:"outlined",label:Yhe[e],color:Jhe[e]}),b_e=({status:e})=>Qhe[e]?(0,i.jsx)(xye,{content:(0,i.jsx)(Cye,{content:Qhe[e]}),placement:"bottom-start",children:y_e(e),arrow:!1}):y_e(e);b_e.propType={status:Nhe().string.isRequired};const x_e=function(){return(0,i.jsx)(S1,{viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5303 6.46967C20.8232 6.76256 20.8232 7.23744 20.5303 7.53033L10.5303 17.5303C10.2374 17.8232 9.76256 17.8232 9.46967 17.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697C4.76256 11.1768 5.23744 11.1768 5.53033 11.4697L10 15.9393L19.4697 6.46967C19.7626 6.17678 20.2374 6.17678 20.5303 6.46967Z",fill:"#0A875A"})})},w_e=({statuses:e})=>(0,i.jsx)(JCe,{children:e?.map((e=>(0,i.jsxs)(qCe,{children:[(0,i.jsxs)(QCe,{sx:{wordBreak:"break-word"},children:["to"!==e.type?`${efe[e.type]} `:"",e.email]}),(0,i.jsx)(QCe,{children:(0,i.jsx)(b_e,{status:e.status})}),(0,i.jsx)(QCe,{children:"1"===e.opened&&(0,i.jsx)(S1,{color:"success",sx:{marginTop:"5px"},children:(0,i.jsx)(x_e,{})})}),(0,i.jsx)(QCe,{children:(0,i.jsx)(t3,{variant:"body2",color:"text.tertiary",children:(0,r3.sprintf)(
// Translators: %1$s - date, %2$s - time
// Translators: %1$s - date, %2$s - time
(0,r3.__)("%1$s at %2$s","site-mailer"),(0,e_e.dateI18n)("Y/m/d",e.updated_at,!1),(0,e_e.dateI18n)("g:i a",e.updated_at,!1))})})]},`status-item-${e.id}`)))});function C_e(e){return oY("MuiTableHead",e)}w_e.propTypes={statuses:Nhe().arrayOf(Nhe().shape({id:Nhe().number.isRequired,log_id:Nhe().string.isRequired,email:Nhe().string.isRequired,type:Nhe().string.isRequired,status:Nhe().string.isRequired,opened:Nhe().string,updated_at:Nhe().string.isRequired}))},sY("MuiTableHead",["root"]);const __e=["className","component"],k_e=b1("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),S_e={variant:"head"},A_e="thead",E_e=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTableHead"}),{className:n,component:o=A_e}=r,s=(0,DK.A)(r,__e),a=(0,NK.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return p1({root:["root"]},C_e,t)})(a);return(0,i.jsx)(Ube.Provider,{value:S_e,children:(0,i.jsx)(k_e,(0,NK.A)({as:o,className:d1(l.root,n),ref:t,role:o===A_e?null:"rowgroup",ownerState:a},s))})}));var R_e=s().forwardRef(((e,t)=>s().createElement(E_e,{...e,ref:t})));const I_e=()=>(0,i.jsx)(R_e,{children:(0,i.jsxs)(qCe,{children:[(0,i.jsx)(QCe,{variant:"head",sx:{minWidth:"200px",maxWidth:"200px"},children:(0,r3.__)("Email","site-mailer")}),(0,i.jsx)(QCe,{variant:"head",children:(0,r3.__)("Status","site-mailer")}),(0,i.jsx)(QCe,{variant:"head",children:(0,r3.__)("Opened","site-mailer")}),(0,i.jsx)(QCe,{variant:"head",children:(0,r3.__)("Updated on","site-mailer")})]})}),O_e=()=>{const{statusesModal:e}=Fhe(),{error:t}=pfe(),[r,o]=(0,n.useState)({logId:null,limit:5,page:1}),[s,a]=(0,n.useState)({items:[],total:null}),[l,c]=(0,n.useState)(!1),{modal:u,closeStatusesModal:d}=e,p=(0,n.useCallback)((e=>{Mhe.getStatuses(e).then((e=>a(e))).catch((()=>t((0,r3.__)("An error occurred.","site-mailer")))).finally((()=>c(!0)))}),[]);(0,n.useEffect)((()=>{if(u.id){const e={...r,logId:u.id};o(e),p(e)}}),[u.id]);const h=()=>{c(!1),d()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(rbe,{onClose:h,open:u.isOpen,PaperProps:{sx:{maxWidth:"initial"}},children:l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(jbe,{logo:!1,onClose:h,children:(0,i.jsx)(zbe,{children:(0,r3.__)("Emails & Statuses","site-mailer")})}),(0,i.jsxs)(cbe,{children:[(0,i.jsxs)(dY,{display:"flex",gap:1,sx:{paddingBottom:2},alignItems:"center",children:[(0,i.jsx)(t3,{variant:"subtitle2",children:`${(0,r3.__)("Email subject:","site-mailer")}`}),(0,i.jsx)(t3,{variant:"body2",children:u.subject})]}),(0,i.jsxs)(Efe,{variant:"outlined",children:[(0,i.jsx)(Hye,{subheader:(0,r3.sprintf)(
// Translators: %s - statuses count
// Translators: %s - statuses count
(0,r3.__)("%s Items","site-mailer"),s.total??""),sx:{paddingBottom:0}}),(0,i.jsx)(Eme,{sx:{maxHeight:"445px"},children:(0,i.jsxs)(Cme,{stickyHeader:!0,children:[(0,i.jsx)(I_e,{}),(0,i.jsx)(w_e,{statuses:s.items}),(0,i.jsx)(VCe,{params:r,count:Number(s?.total??0),updateList:p,setParams:o,rowsPerPageOptions:[5,10,20]})]})})]})]})]})}),(0,i.jsx)(vfe,{loading:u.isOpen&&!l,hideBackdrop:!0})]})};function M_e(e){return oY("MuiDialogActions",e)}sY("MuiDialogActions",["root","spacing"]);const T_e=["className","disableSpacing"],L_e=b1("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,NK.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),P_e=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,s=(0,DK.A)(r,T_e),a=(0,NK.A)({},r,{disableSpacing:o}),l=(e=>{const{classes:t,disableSpacing:r}=e;return p1({root:["root",!r&&"spacing"]},M_e,t)})(a);return(0,i.jsx)(L_e,(0,NK.A)({className:d1(l.root,n),ownerState:a,ref:t},s))}));var j_e=s().forwardRef(((e,t)=>s().createElement(P_e,{...e,ref:t})));const N_e=function(){return(0,i.jsx)(S1,{viewBox:"0 0 24 24",fill:"none",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.7 2.25C8.46249 2.25 8.23103 2.29047 8.0079 2.38964C7.78802 2.48736 7.61395 2.62539 7.46967 2.76967L2.76967 7.46967C2.62539 7.61395 2.48736 7.78802 2.38964 8.0079C2.29047 8.23103 2.25 8.46249 2.25 8.7V15.3C2.25 15.5375 2.29047 15.769 2.38964 15.9921C2.48736 16.212 2.62539 16.3861 2.76967 16.5303L7.46967 21.2303C7.61395 21.3746 7.78802 21.5126 8.0079 21.6104C8.23103 21.7095 8.46249 21.75 8.7 21.75H15.3C15.5375 21.75 15.769 21.7095 15.9921 21.6104C16.212 21.5126 16.3861 21.3746 16.5303 21.2303L21.2303 16.5303C21.3746 16.3861 21.5126 16.212 21.6104 15.9921C21.7095 15.769 21.75 15.5375 21.75 15.3V8.7C21.75 8.46249 21.7095 8.23103 21.6104 8.0079C21.5126 7.78802 21.3746 7.61395 21.2303 7.46967L16.5303 2.76967C16.3861 2.62539 16.212 2.48736 15.9921 2.38964C15.769 2.29047 15.5375 2.25 15.3 2.25H8.7ZM12.75 8C12.75 7.58579 12.4142 7.25 12 7.25C11.5858 7.25 11.25 7.58579 11.25 8V12C11.25 12.4142 11.5858 12.75 12 12.75C12.4142 12.75 12.75 12.4142 12.75 12V8ZM12 15.25C11.5858 15.25 11.25 15.5858 11.25 16C11.25 16.4142 11.5858 16.75 12 16.75H12.01C12.4242 16.75 12.76 16.4142 12.76 16C12.76 15.5858 12.4242 15.25 12.01 15.25H12Z",fill:"#dc2626"})})},D_e=({title:e,onCancel:t,onClose:r,onApprove:n,approveText:o=(0,r3.__)("Submit","site-mailer"),cancelText:s=(0,r3.__)("Cancel","site-mailer"),approveButtonColor:a="error",approveButtonSize:l="medium",children:c,logo:u=(0,i.jsx)(N_e,{}),showCancelButton:d=!0,showApproveButton:p=!0,approveButtonDisabled:h=!1,showCloseButton:f=!1,dividers:m=!1,...g})=>(0,i.jsxs)(rbe,{open:!0,onClose:r,...g,children:[(0,i.jsx)(jbe,{logo:u,onClose:!!f&&r,children:(0,i.jsx)(t3,{variant:"subtitle1",children:e})}),(0,i.jsx)(cbe,{dividers:m,children:c}),(0,i.jsxs)(j_e,{children:[d&&(0,i.jsx)(r2,{onClick:t,color:"secondary",children:s}),p&&(0,i.jsx)(r2,{variant:"contained",disabled:h,color:a,size:l,onClick:n,children:o})]})]});D_e.propTypes={title:Nhe().string.isRequired,isDestructive:Nhe().bool,onClose:Nhe().func.isRequired,onApprove:Nhe().func.isRequired,onCancel:Nhe().func,approveText:Nhe().string,cancelText:Nhe().string,approveButtonDisabled:Nhe().bool,showCloseButton:Nhe().bool,children:Nhe().node};const B_e=D_e,F_e=function(){const{modalData:e}=Fhe();return(0,i.jsx)(B_e,{title:(0,r3.__)("Are you sure you want to delete the log/s?","site-mailer"),approveText:(0,r3.__)("Delete","site-mailer"),onClose:e.closeModal,onCancel:e.closeModal,onApprove:e.deleteLog,showCloseButton:!0,open:e.modal.isOpen})};function $_e(e){return oY("MuiSkeleton",e)}sY("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const z_e=["animation","className","component","height","style","variant","width"];let U_e,W_e,q_e,V_e,H_e=e=>e;const G_e=(0,t0.i7)(U_e||(U_e=H_e`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),Z_e=(0,t0.i7)(W_e||(W_e=H_e`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),K_e=b1("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const r=function(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}(e.shape.borderRadius)||"px",n=(i=e.shape.borderRadius,parseFloat(i));var i;return(0,NK.A)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:xQ(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&(0,t0.AH)(q_e||(q_e=H_e`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),G_e)),(({ownerState:e,theme:t})=>"wave"===e.animation&&(0,t0.AH)(V_e||(V_e=H_e`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),Z_e,(t.vars||t).palette.action.hover))),X_e=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:o,component:s="span",height:a,style:l,variant:c="text",width:u}=r,d=(0,DK.A)(r,z_e),p=(0,NK.A)({},r,{animation:n,component:s,variant:c,hasChildren:Boolean(d.children)}),h=(e=>{const{classes:t,variant:r,animation:n,hasChildren:i,width:o,height:s}=e;return p1({root:["root",r,n,i&&"withChildren",i&&!o&&"fitContent",i&&!s&&"heightAuto"]},$_e,t)})(p);return(0,i.jsx)(K_e,(0,NK.A)({as:s,ref:t,className:d1(h.root,o),ownerState:p},d,{style:(0,NK.A)({width:u,height:a},l)}))})),Y_e=X_e;var J_e=s().forwardRef(((e,t)=>s().createElement(Y_e,{...e,ref:t})));const Q_e=async()=>{const e=await eke();window.open(e,"_self").focus()},eke=async()=>Mhe.initConnect(),tke=function(){return(0,i.jsxs)("svg",{width:"129",height:"63",viewBox:"0 0 129 63",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M12.3926 24.8283C29.6698 24.8283 46.9396 24.8283 64.2168 24.8283C66.8827 12.5069 56.8782 2.068 48.17 1.33277C41.0805 0.736988 33.09 6.41596 31.2517 15.5492C30.5413 15.0041 26.0884 11.6576 20.9909 12.7414C16.0033 13.7999 12.4512 18.6612 12.3926 24.8219V24.8283Z",fill:"#f1f2f3"}),(0,i.jsx)("path",{d:"M64.3193 14.3258C64.2461 14.104 64.1582 13.8758 64.0703 13.6603C63.9897 13.4321 63.9018 13.2166 63.8066 12.9948C62.9497 10.9856 61.7633 9.08417 60.2618 7.34752C56.9441 3.52562 52.4472 1.03473 48.2433 0.679796C39.7182 -0.0490896 32.7311 7.02427 30.7464 14.3448C28.8202 13.0899 25.041 11.1948 20.8078 12.1011C15.5565 13.2166 11.9385 18.0209 11.6382 24.1626C11.6309 24.3781 11.6235 24.5999 11.6235 24.8218C11.6235 25.0056 11.7041 25.1704 11.8433 25.2971C11.9897 25.4239 12.1875 25.4936 12.3926 25.4936H64.2168C64.583 25.4999 64.8979 25.2718 64.9711 24.9549C64.9785 24.9359 64.9785 24.9232 64.9785 24.9042C65.0371 24.6506 65.0883 24.4035 65.1249 24.1499C65.1689 23.9091 65.2055 23.6619 65.2348 23.421C65.6523 20.3407 65.33 17.2477 64.3193 14.3258ZM63.6016 23.9471C63.5942 24.0232 63.5796 24.0929 63.5649 24.1689H13.1835C13.4765 18.7245 16.6917 14.3448 21.174 13.3941C25.6342 12.4434 29.6185 15.1878 30.7317 16.0498C30.9441 16.2082 31.2371 16.2589 31.5007 16.1829C31.7644 16.1005 31.9548 15.904 32.0061 15.6695C33.8444 6.54258 41.7835 1.46573 48.0895 2.00447C51.8759 2.32137 55.97 4.62212 59.0314 8.14612C60.3278 9.64192 61.3751 11.2772 62.1587 12.9948C62.2686 13.2166 62.3638 13.4321 62.4517 13.6603C62.5469 13.8758 62.6275 14.0976 62.708 14.3258C63.8506 17.3998 64.1728 20.6956 63.6016 23.9471Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M19.7312 25.4941H1.08444C0.659655 25.4941 0.31543 25.1962 0.31543 24.8286C0.31543 24.461 0.659655 24.1631 1.08444 24.1631H19.7312C20.156 24.1631 20.5002 24.461 20.5002 24.8286C20.5002 25.1962 20.156 25.4941 19.7312 25.4941Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M112.16 13.6602L112.116 14.4968L110.534 45.8706L110.512 46.4347C110.512 46.4727 110.504 46.5044 110.504 46.5424L110.416 48.3044L110.358 49.4643L110.343 49.6608C110.299 49.6481 110.255 49.6354 110.211 49.6291C110.006 49.5784 109.801 49.534 109.589 49.4897C107.553 49.065 105.165 48.8812 102.58 49.2805C99.577 49.7495 96.7792 50.9348 94.3989 52.6714C94.2378 52.7855 94.0767 52.9059 93.9156 53.0327C93.7911 53.1278 93.6592 53.2292 93.5347 53.3369H36.3494L36.906 42.3402L36.9353 41.6747L36.9646 41.117V41.0156L37.0012 40.4515L37.0305 39.7923L37.5212 30.0696L37.5578 29.4041L37.5871 28.7386L37.6018 28.4724V28.2949L37.6384 27.8069V27.6294L37.6677 27.1477V26.9703L37.7556 25.4935L37.7849 24.828L37.8215 24.1625L38.3122 14.4271L38.3488 13.6602H112.16Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M112.914 13.5339C112.914 13.4958 112.892 13.4515 112.877 13.4134C112.863 13.3817 112.841 13.3501 112.826 13.3184C112.789 13.274 112.76 13.236 112.716 13.2043C112.679 13.1726 112.643 13.1409 112.599 13.1155C112.555 13.0902 112.511 13.0648 112.46 13.0522C112.416 13.0331 112.365 13.0205 112.313 13.0078C112.262 13.0015 112.211 12.9951 112.159 12.9951H38.3487C38.2975 12.9951 38.2462 13.0015 38.2023 13.0078C38.1437 13.0205 38.0851 13.0331 38.0338 13.0585C38.0045 13.0648 37.9679 13.0839 37.9386 13.0965C37.8947 13.1219 37.858 13.1472 37.8214 13.1789C37.7848 13.2106 37.7555 13.2423 37.7262 13.274C37.6749 13.3374 37.631 13.4008 37.609 13.4768C37.5871 13.5402 37.5797 13.6036 37.5797 13.6606L37.0524 24.1629L37.0158 24.8284L36.9792 25.4939L36.9059 26.9771V27.1545L36.8766 27.6489L36.862 27.82L36.84 28.3144V28.4919L36.818 28.7391L36.7814 29.4046L36.7521 30.0701L36.2614 39.7421L36.2321 40.4012L36.2028 40.9463V41.0667L36.1662 41.6118L36.1369 42.29L35.5803 53.312C35.573 53.4895 35.6535 53.667 35.7927 53.8001C35.9392 53.9332 36.1442 54.0029 36.3493 54.0029H92.7656C93.022 53.7747 93.2783 53.5529 93.5347 53.3374C93.6592 53.2296 93.791 53.1282 93.9155 53.0331C94.0766 52.9064 94.2378 52.786 94.3989 52.6719H37.1549L37.6749 42.3597L37.7116 41.6879L37.7335 41.1365V41.0224L37.7702 40.4709L37.8068 39.7991L38.2975 30.0701L38.3268 29.4046L38.3634 28.7391V28.4982L38.3854 28.3271L38.4073 27.839V27.6616L38.444 27.1735V27.0024L38.5245 25.5003L38.5611 24.8348L38.5904 24.1693L39.0592 14.8395L39.0885 14.3261H111.361L111.332 14.9663L109.786 45.4844L109.655 48.1401L109.596 49.3253V49.4901C109.801 49.5345 110.006 49.5789 110.211 49.6296C110.255 49.6359 110.299 49.6486 110.343 49.6613C110.607 49.7246 110.856 49.7944 111.105 49.8641L111.119 49.6296L111.178 48.495L112.928 13.6923V13.667C112.936 13.6226 112.928 13.5782 112.914 13.5339Z",fill:"#a6adb4"}),(0,i.jsx)("g",{children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{d:"M110.563 45.8841C110.548 46.0742 110.526 46.258 110.512 46.4355C110.512 46.4735 110.504 46.5052 110.504 46.5432C110.446 47.1897 110.387 47.7665 110.343 48.2862C110.299 48.7109 110.263 49.0975 110.226 49.4398C110.219 49.5031 110.219 49.5728 110.211 49.6299C110.006 49.5792 109.801 49.5348 109.589 49.4905C107.553 49.0658 105.165 48.882 102.58 49.2813C99.5769 49.7503 96.7792 50.9356 94.3989 52.6722C94.2378 52.7863 94.0767 52.9067 93.9155 53.0335L93.0586 53.0588L91.6305 53.1095L84.4091 53.3377L81.0327 53.4455C81.0327 53.4455 81.0547 53.4074 81.106 53.3377C81.1938 53.2109 81.3623 52.9828 81.604 52.6722C84.1088 49.4905 94.5893 37.917 109.787 45.4847C110.036 45.6052 110.285 45.7319 110.534 45.8714C110.541 45.8714 110.556 45.8777 110.563 45.8841Z",fill:"#f1f2f3"})})}),(0,i.jsx)("path",{d:"M38.3489 13.6602L76.6458 34.7091L112.16 13.6602H38.3489Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M73.6503 32.2757L72.9984 31.9145L71.7021 31.2046L69.6807 30.0891L70.0469 31.0842L71.0576 31.6356L71.4238 32.6307L72.7714 33.3786H72.7787L73.2108 32.8208L73.87 33.1821L74.3021 32.6307L73.6503 32.2757ZM112.914 13.5339C112.914 13.5339 112.914 13.4832 112.899 13.4641C112.892 13.4451 112.885 13.4324 112.877 13.4134C112.863 13.3817 112.841 13.3501 112.826 13.3184C112.789 13.274 112.76 13.236 112.716 13.2043C112.68 13.1726 112.643 13.1409 112.599 13.1155C112.555 13.0902 112.511 13.0648 112.46 13.0522C112.416 13.0331 112.365 13.0205 112.313 13.0078C112.262 13.0015 112.211 12.9951 112.16 12.9951H38.3488C38.2976 12.9951 38.2463 13.0015 38.2024 13.0078C38.1438 13.0205 38.0852 13.0331 38.0339 13.0585C38.0046 13.0648 37.968 13.0839 37.9387 13.0965C37.8948 13.1219 37.8581 13.1472 37.8215 13.1789C37.7849 13.2106 37.7556 13.2423 37.7263 13.274C37.675 13.3374 37.6311 13.4008 37.6091 13.4768C37.5872 13.5402 37.5798 13.6036 37.5798 13.6606C37.5798 13.8888 37.7117 14.098 37.9387 14.2247L38.3122 14.4275L39.0593 14.8395L56.0288 24.1693L57.2373 24.8348L58.4457 25.5003L59.559 26.1087L60.2328 26.4827L60.9139 26.8566L64.2317 28.6757L64.8835 29.0369L65.5646 29.4109L70.4131 32.0729L71.4238 32.6307L72.7714 33.3786H72.7787L73.4305 33.7335L76.2283 35.2737C76.3601 35.3434 76.4993 35.3751 76.6457 35.3751C76.675 35.3751 76.7043 35.3751 76.7336 35.3687C76.8508 35.3561 76.9753 35.3244 77.0779 35.261L78.3522 34.5068L80.1173 33.461L85.31 30.387L85.9472 30.0067L86.5697 29.6391L111.332 14.9663L112.116 14.4973L112.599 14.212C112.804 14.0916 112.921 13.9015 112.929 13.6923V13.667C112.936 13.6226 112.929 13.5782 112.914 13.5339ZM82.5269 30.4123L80.7691 31.4581L79.0114 32.4976L76.6311 33.911L74.3021 32.6307L73.6503 32.2757L72.9984 31.9145L71.7021 31.2046L69.6807 30.0891L66.3996 28.289L65.7111 27.9151L65.0519 27.5475L62.2908 26.0263L61.5731 25.6334L61.3241 25.5003L60.8627 25.2467L60.1156 24.8348L58.8998 24.1693L40.9928 14.3261H109.677L85.7201 28.5236L85.0976 28.8912L84.4604 29.2715L82.5269 30.4123ZM73.6503 32.2757L72.9984 31.9145L71.7021 31.2046L69.6807 30.0891L70.0469 31.0842L71.0576 31.6356L71.4238 32.6307L72.7714 33.3786H72.7787L73.2108 32.8208L73.87 33.1821L74.3021 32.6307L73.6503 32.2757Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M110.358 49.4642C110.621 49.5149 110.878 49.5719 111.119 49.6289L111.105 49.8635C110.856 49.7937 110.607 49.724 110.343 49.6606C110.299 49.648 110.255 49.6353 110.211 49.6289C110.006 49.5782 109.801 49.5339 109.589 49.4895C107.553 49.0648 105.165 48.881 102.58 49.2803C99.5768 49.7494 96.779 50.9346 94.3988 52.6712C94.2376 52.7853 94.0765 52.9058 93.9154 53.0325C93.7909 53.1276 93.659 53.229 93.5345 53.3368C93.2782 53.5523 93.0218 53.7741 92.7655 54.0023C90.3193 56.2396 88.459 59.1108 87.463 62.3813H86.5182C86.672 61.8172 87.8804 57.5896 91.9159 54.0023C92.165 53.7804 92.4286 53.5523 92.7069 53.3368C92.8241 53.2417 92.9413 53.1529 93.0585 53.0579C93.2343 52.9311 93.4174 52.798 93.6005 52.6712C94.9114 51.7459 96.4421 50.9219 98.2438 50.2691C102.514 48.7289 106.549 48.8177 109.596 49.3247C109.808 49.3564 110.021 49.3944 110.226 49.4388C110.27 49.4451 110.314 49.4515 110.358 49.4642Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M127.606 39.7038C127.203 39.8242 126.807 39.9636 126.412 40.1158C126.749 39.7989 127.093 39.4819 127.43 39.165L127.606 39.7038Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M127.877 39.6211C127.789 39.6464 127.693 39.6718 127.606 39.7035C127.203 39.8239 126.807 39.9633 126.412 40.1154C121.593 41.9598 117.433 45.8388 116.166 49.6797C115.748 50.0663 115.331 50.4593 114.913 50.8459C114.496 50.6621 113.126 50.0853 111.119 49.629L111.105 49.8635C110.856 49.7938 110.607 49.7241 110.343 49.6607C110.299 49.648 110.255 49.6353 110.211 49.629C110.006 49.5783 109.801 49.5339 109.589 49.4895C107.553 49.0649 105.165 48.8811 102.58 49.2804C99.5768 49.7494 96.7791 50.9346 94.3988 52.6713C94.2377 52.7854 94.0766 52.9058 93.9154 53.0326C93.7909 53.1276 93.6591 53.229 93.5346 53.3368C93.2782 53.5523 93.0219 53.7741 92.7656 54.0023C90.3194 56.2397 88.4591 59.1108 87.463 62.3813C87.3678 62.6792 87.0675 62.8757 86.7233 62.8757C86.6574 62.8757 86.5915 62.8694 86.5256 62.8567C86.1154 62.7616 85.8737 62.4003 85.9763 62.0454C86.8991 58.9841 88.5543 56.246 90.7222 54.0023C90.9346 53.7741 91.1616 53.5523 91.3887 53.3368C91.4692 53.2607 91.5498 53.1847 91.6304 53.1086C91.7915 52.9565 91.9526 52.8107 92.1211 52.6713C94.9554 50.2311 98.4783 48.5642 102.309 47.9684C105.004 47.5501 107.509 47.7212 109.655 48.1395C109.889 48.1839 110.116 48.2346 110.343 48.2853C110.365 48.2916 110.394 48.298 110.416 48.3043C110.68 48.3614 110.929 48.4247 111.178 48.4945C112.504 48.8431 113.646 49.2677 114.569 49.667C115.961 44.869 121.278 40.1154 127.386 38.3534C127.796 38.2393 128.228 38.4295 128.36 38.7781C128.499 39.1267 128.279 39.5006 127.877 39.6211Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M87.4121 35.4626C87.9632 29.3624 81.352 23.9398 72.6456 23.3508C63.9392 22.7618 56.4346 27.2294 55.8835 33.3296C55.3325 39.4298 61.9437 44.8525 70.65 45.4415C79.3564 46.0305 86.8611 41.5628 87.4121 35.4626Z",fill:"#f1f2f3"}),(0,i.jsx)("path",{d:"M86.5694 29.6386C86.4449 29.4484 86.3131 29.2519 86.1593 29.0681C86.0275 28.8843 85.881 28.7005 85.7199 28.523C85.4416 28.1871 85.134 27.8639 84.7971 27.5533C84.6286 27.3885 84.4455 27.2237 84.2551 27.0653C84.072 26.9068 83.8889 26.7547 83.6911 26.6026C82.7683 25.8864 81.721 25.2462 80.5858 24.7011C80.3587 24.5934 80.1317 24.492 79.8973 24.3906C79.6703 24.2892 79.4359 24.1941 79.1942 24.1054C77.1289 23.3004 74.7999 22.7934 72.3317 22.6666C69.8562 22.5398 67.4466 22.806 65.2348 23.4208C64.9638 23.4906 64.7002 23.5666 64.4365 23.6617C64.1509 23.7441 63.8725 23.8392 63.6016 23.9469C63.4038 24.0166 63.2207 24.0927 63.0303 24.1687C62.5396 24.3716 62.0635 24.5871 61.6094 24.8342C61.3531 24.961 61.1041 25.1004 60.8624 25.2462C60.7233 25.3223 60.5841 25.411 60.4449 25.4997C60.3644 25.5505 60.2765 25.6012 60.1959 25.6645C59.9762 25.7976 59.7638 25.9498 59.5587 26.1082C59.4635 26.1716 59.3683 26.2413 59.2731 26.3174C56.739 28.2822 55.2596 30.8555 55.1058 33.5619C54.7396 40.0268 61.8658 45.6677 70.9841 46.1367C71.3869 46.1557 71.7897 46.1684 72.1925 46.1684C76.7334 46.1684 80.9959 44.8564 84.0427 42.4923C85.3024 41.5099 86.3058 40.3754 87.0162 39.1458C87.7193 37.9162 88.1294 36.5978 88.2027 35.2415C88.3125 33.2513 87.7193 31.3435 86.5694 29.6386ZM86.6647 35.1781C86.5328 37.5612 85.2731 39.7479 83.0173 41.4972C80.0072 43.836 75.6494 45.0466 71.072 44.8057C62.7886 44.3811 56.3216 39.3676 56.6438 33.6252C56.783 31.2421 58.0427 29.0554 60.2985 27.3061C60.4962 27.154 60.7013 27.0019 60.9137 26.8561C61.1334 26.7103 61.3531 26.5646 61.5802 26.4315C61.8072 26.2857 62.0489 26.1526 62.2906 26.0258C62.6421 25.8357 63.0083 25.6645 63.3892 25.4997C63.9018 25.2779 64.4292 25.0751 64.9785 24.904C66.868 24.2955 68.9554 23.9723 71.1159 23.9723C71.4895 23.9723 71.863 23.9786 72.2365 23.9976C74.419 24.1117 76.4697 24.5363 78.308 25.2209C78.5497 25.3033 78.7914 25.3983 79.0185 25.4997C79.2528 25.5948 79.4872 25.6962 79.7142 25.804C80.8641 26.3364 81.9041 26.9765 82.8123 27.6991C83.01 27.8512 83.1931 28.0096 83.3762 28.1744C83.5593 28.3329 83.7424 28.504 83.9109 28.6752C84.1013 28.8653 84.2917 29.0681 84.4601 29.2709C84.6213 29.4484 84.7678 29.6322 84.9069 29.816C85.0534 30.0062 85.1852 30.1963 85.3097 30.3865C86.1886 31.7301 86.6793 33.2133 86.6793 34.7598C86.6793 34.8992 86.672 35.0386 86.6647 35.1781Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M70.7936 42.1951C70.7204 42.1951 70.6471 42.1951 70.5739 42.1888C69.5998 42.1127 68.7942 41.5296 68.4793 40.674L64.8319 30.7991C64.3559 29.5061 65.1176 27.9913 66.5384 27.4146C67.9593 26.8378 69.4973 27.4209 69.9733 28.7202L72.0387 34.3041L85.068 17.8693C86.0055 16.6841 87.7119 16.3608 88.8838 17.1404C90.0556 17.92 90.2387 19.5109 89.3012 20.6961L73.1666 41.0479C72.5953 41.7704 71.7018 42.2014 70.7936 42.2014V42.1951Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M73.2106 32.8208L72.7785 33.3785H72.7711L71.4235 32.6306L71.0573 31.6419L70.0466 31.0841L70.4128 32.0729L71.3063 34.5067C71.3942 34.7476 71.6359 34.925 71.9289 34.9631C72.2145 35.0011 72.5075 34.8933 72.6759 34.6842L73.4303 33.7335L73.8697 33.182L73.2106 32.8208ZM89.3525 16.6142C88.6641 16.1578 87.8072 15.9677 86.9283 16.0881C85.9469 16.2212 85.0387 16.7346 84.4309 17.4952L79.1942 24.1058L78.7548 24.6573L78.308 25.2213L72.9982 31.9144L72.5661 32.4658L72.2951 32.8081L72.068 32.1933L71.7018 31.2045L70.7131 28.5172C70.4128 27.7059 69.7756 27.0784 68.9187 26.7552C68.0618 26.4319 67.1024 26.4573 66.2162 26.8122C65.7768 26.9897 65.3813 27.2432 65.0517 27.5474C64.8759 27.7122 64.7221 27.8897 64.583 28.0798C64.4438 28.27 64.3266 28.4665 64.2314 28.6756C63.8872 29.4109 63.814 30.2412 64.0996 31.0081L67.7469 40.8765C68.1571 41.9984 69.219 42.7526 70.508 42.854C70.6033 42.854 70.6985 42.8667 70.7937 42.8667C71.9655 42.8667 73.0861 42.328 73.8038 41.4216L80.1171 33.4609L81.3255 31.9398H81.3328L82.5266 30.4123L83.9109 28.6756L84.3576 28.1115L84.7971 27.5538L89.9385 21.0699C91.103 19.6058 90.8393 17.6029 89.3525 16.6142ZM83.2517 27.1481L82.8123 27.6996L79.0111 32.4975L77.8027 34.025L76.7334 35.3687L72.5368 40.6674C72.068 41.2505 71.3723 41.5928 70.6472 41.5294C69.9807 41.4787 69.4314 41.073 69.2117 40.4709L65.5644 30.6024C65.4252 30.2158 65.4325 29.8038 65.5644 29.4109C65.6303 29.1954 65.7402 28.9862 65.8866 28.7961C66.0185 28.5996 66.1942 28.4284 66.3993 28.289C66.5385 28.1813 66.6996 28.0925 66.868 28.0228C67.1244 27.9151 67.3954 27.8644 67.659 27.8644C67.8787 27.8644 68.0985 27.9024 68.3035 27.9784C68.7503 28.1432 69.0799 28.4791 69.2483 28.9228L69.6804 30.089L70.0466 31.0841L70.4128 32.0729L71.3063 34.5067C71.3942 34.7476 71.6359 34.925 71.9289 34.9631C72.2145 35.0011 72.5075 34.8933 72.6759 34.6842L73.4303 33.7335L73.8697 33.182L74.3018 32.6306L79.7142 25.8045L80.1537 25.2467L80.5858 24.7016L85.7052 18.2494C86.0714 17.7867 86.5987 17.4825 87.17 17.4064C87.4849 17.3621 87.961 17.3684 88.4151 17.6663C89.2647 18.2367 89.3818 19.4219 88.6714 20.3156L83.6911 26.6031L83.2517 27.1481ZM73.2106 32.8208L72.7785 33.3785H72.7711L71.4235 32.6306L71.0573 31.6419L70.0466 31.0841L70.4128 32.0729L71.3063 34.5067C71.3942 34.7476 71.6359 34.925 71.9289 34.9631C72.2145 35.0011 72.5075 34.8933 72.6759 34.6842L73.4303 33.7335L73.8697 33.182L73.2106 32.8208Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M54.6738 49.0715V56.0435H21.3059L21.5256 48.7673H25.2462C28.9301 48.7673 34.24 48.1398 34.2327 44.8123L34.218 29.4043H40.5899L40.6045 45.1165C40.6045 48.4441 43.5927 49.0715 47.2839 49.0715H54.6665H54.6738Z",fill:"#f1f2f3"}),(0,i.jsx)("path",{d:"M55.4428 48.4065H47.2839C43.036 48.4065 41.3808 47.4811 41.3735 45.117V28.7393H33.449V40.5662L33.4636 44.8191C33.4636 46.0044 32.614 46.8537 30.8563 47.4178C29.0839 47.9819 26.8281 48.1023 25.2462 48.1023H20.7786L20.5149 56.7095H55.4501V48.4065H55.4428ZM53.8974 55.3785H22.0895L22.2726 49.4333H25.2462C26.9526 49.4333 29.4062 49.3002 31.3909 48.6664C34.3791 47.7093 35.0017 46.0424 35.0017 44.8128V39.5585L34.987 30.0703H39.8281V45.117C39.8428 49.7375 45.0574 49.7375 47.2839 49.7375H53.9048V55.3785H53.8974Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M40.3994 27.9531V41.371C39.5059 41.5801 38.5465 41.6942 37.5504 41.6942C36.4665 41.6942 35.4192 41.5611 34.4451 41.3076V28.0165C35.4118 27.763 36.4592 27.6299 37.5431 27.6299C38.5392 27.6299 39.5059 27.744 40.4068 27.9531H40.3994Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M41.1684 28.9862V27.4461L40.5971 27.313C39.9087 27.1545 39.1836 27.0468 38.4512 27.0024C38.1949 26.977 37.9386 26.9707 37.6749 26.9707C37.4186 26.9707 37.1622 26.9707 36.9059 26.977C35.9904 27.0214 35.0749 27.1545 34.2107 27.3763L33.6614 27.5221V29.0559L33.676 39.2287V41.8019L34.2253 41.9477H34.2326C34.489 42.0174 34.7453 42.0745 35.0017 42.1189C35.3752 42.1949 35.756 42.2456 36.1369 42.29C36.3932 42.3153 36.6422 42.3343 36.9059 42.3407C37.1183 42.3534 37.3307 42.3597 37.5504 42.3597H37.6749C38.4073 42.3534 39.1324 42.29 39.8355 42.1696C40.0918 42.1252 40.3481 42.0745 40.6045 42.0111H40.6118L41.1831 41.878V39.2984L41.1684 28.9862ZM35.1994 28.5235C35.7267 28.4158 36.2833 28.3461 36.84 28.3144C37.0963 28.3017 37.3526 28.2954 37.609 28.2954C37.8653 28.2954 38.129 28.3081 38.3853 28.3271C38.8101 28.3524 39.2276 28.4095 39.6304 28.4792V40.8449C39.0225 40.9526 38.3853 41.016 37.7408 41.0224C37.4845 41.0287 37.2281 41.0224 36.9718 41.016C36.7155 41.0033 36.4591 40.978 36.2028 40.9463C35.8659 40.9083 35.5363 40.8576 35.2141 40.7942V39.5963L35.1994 30.0701V28.5235Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M47.0862 34.1389C47.0862 37.6376 42.8163 40.4707 37.5504 40.4707C33.0682 40.4707 29.311 38.4235 28.2783 35.6664C28.2124 35.4763 28.1465 35.2988 28.1099 35.1023C28.0366 34.7854 28 34.4685 28 34.1326C28 30.6339 32.2699 27.8008 37.5431 27.8008C38.6563 27.8008 39.7183 27.9275 40.707 28.1684C41.5786 28.3649 42.3769 28.6501 43.1093 28.9987C45.5115 30.1396 47.0862 32.022 47.0862 34.1389Z",fill:"#f1f2f3"}),(0,i.jsx)("path",{d:"M43.4755 28.4156C42.7284 28.0606 41.9448 27.7818 41.1684 27.5916C41.0805 27.5663 41 27.5472 40.9121 27.5282C40.1211 27.3444 39.2935 27.2177 38.4439 27.1733C38.1876 27.1543 37.9312 27.1416 37.6676 27.1479C37.6236 27.1416 37.5797 27.1416 37.5357 27.1416C37.3234 27.1416 37.111 27.1479 36.8986 27.1543C35.7707 27.1986 34.6867 27.3698 33.6614 27.6487C32.431 27.9846 31.2957 28.4853 30.3143 29.1318C28.3222 30.4564 27.2236 32.2375 27.2236 34.1389C27.2236 34.5255 27.2676 34.8868 27.3481 35.2291C27.3921 35.4509 27.4653 35.6537 27.5386 35.8756C28.3442 38.0305 30.578 39.7291 33.4563 40.5658C33.5296 40.5848 33.6028 40.6101 33.676 40.6228C33.8591 40.6799 34.0422 40.7242 34.2253 40.7623C34.2986 40.7813 34.3718 40.8003 34.445 40.8066C34.6208 40.851 34.8039 40.889 34.9943 40.9207C35.3825 40.9904 35.7853 41.0411 36.1955 41.0665C36.4445 41.0982 36.7008 41.1172 36.9645 41.1172C37.1549 41.1299 37.3526 41.1362 37.5504 41.1362H37.7335C38.4512 41.1235 39.1543 41.0665 39.8355 40.9651C40.0259 40.9334 40.2236 40.9017 40.4067 40.8637L40.6045 40.8256C40.8022 40.7876 40.9927 40.7432 41.1831 40.6925C41.249 40.6799 41.3076 40.6608 41.3735 40.6418C42.6259 40.3059 43.7757 39.8052 44.7645 39.146C45.7605 38.4869 46.5295 37.7073 47.0569 36.858C47.5842 36.0087 47.8552 35.0896 47.8552 34.1389C47.8552 31.8572 46.2146 29.7212 43.4755 28.4156ZM43.827 38.0876C43.1019 38.5629 42.2743 38.9559 41.3735 39.2411C41.3076 39.2601 41.249 39.2791 41.1831 39.2982C40.9927 39.3552 40.8022 39.4059 40.6045 39.4503C40.5386 39.4693 40.4727 39.482 40.4067 39.4946C40.2163 39.539 40.0259 39.577 39.8355 39.6087C39.7696 39.6214 39.7036 39.6341 39.6377 39.6404C39.0445 39.7355 38.4293 39.7925 37.8067 39.7989C37.7188 39.7989 37.6383 39.7989 37.5504 39.7989C37.3746 39.7989 37.1988 39.7989 37.0304 39.7862C36.7667 39.7798 36.5104 39.7608 36.2614 39.7355C35.9025 39.7038 35.551 39.6594 35.2141 39.5897C35.1408 39.5834 35.0676 39.5707 34.9943 39.5517C34.8112 39.52 34.6281 39.482 34.445 39.4313C34.3718 39.4186 34.2986 39.3996 34.2253 39.3805C34.0349 39.3298 33.8518 39.2791 33.676 39.2221C33.6028 39.1967 33.5296 39.1777 33.4563 39.1524C31.2738 38.4108 29.6186 37.0988 29.0107 35.4636C28.9521 35.3051 28.8935 35.1467 28.8569 34.9692C28.791 34.703 28.7617 34.4305 28.7617 34.1326C28.7617 32.6558 29.6479 31.2487 31.2518 30.1839C31.9036 29.7529 32.6434 29.3916 33.449 29.1191C33.5149 29.0937 33.5881 29.0747 33.6614 29.0494C33.9104 28.967 34.1667 28.8973 34.4304 28.8339C34.5769 28.7959 34.7307 28.7642 34.8845 28.7325C34.987 28.7071 35.0969 28.6881 35.1994 28.6754C35.7267 28.574 36.276 28.5106 36.8326 28.4853C37.067 28.4726 37.3014 28.4663 37.5357 28.4663H37.6017C37.858 28.4663 38.1143 28.4789 38.3707 28.4916C38.8028 28.517 39.2203 28.5677 39.6304 28.6374C39.8062 28.6628 39.9819 28.6944 40.1504 28.7325C40.2383 28.7451 40.3188 28.7642 40.3994 28.7832C40.436 28.7832 40.4727 28.8022 40.5093 28.8085C40.729 28.8592 40.9487 28.9163 41.1684 28.9797C41.2343 28.9987 41.3003 29.0177 41.3662 29.043C41.8349 29.1888 42.289 29.3663 42.7358 29.5754C43.8563 30.1079 44.7498 30.7987 45.365 31.5846C45.9803 32.3642 46.3172 33.2389 46.3172 34.1326C46.3172 35.6157 45.431 37.0164 43.827 38.0812V38.0876Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M53.6851 56.9619H22.3093V59.719H53.6851V56.9619Z",fill:"#a6adb4"}),(0,i.jsx)("path",{d:"M21.533 56.2969V60.385H54.4468V56.2969H21.533ZM52.9087 59.0603H23.0783V57.6279H52.9087V59.0603Z",fill:"#a6adb4"})]})},rke=function(){const{isConnected:e,loaded:t}=gfe(),{setCurrentTab:r,setTestMailInFocus:n}=dfe();return t?(0,i.jsxs)(dY,{sx:{textAlign:"center",padding:"40px 20px 16px"},children:[(0,i.jsx)(cbe,{sx:{padding:0},children:(0,i.jsx)(tke,{})}),(0,i.jsx)(j_e,{sx:{justifyContent:"center",padding:"8px 0"},children:(0,i.jsxs)(dY,{display:"flex",flexDirection:"column",alignItems:"center",children:[(0,i.jsx)(t3,{variant:"subtitle2",children:(0,r3.__)("Nothing to show here, yet…","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",children:(0,r3.__)("This is where you’ll see all the emails that have been sent from your site.","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",children:(0,r3.__)("In the meantime, send yourself a test email to check that things are working.","site-mailer")})]})}),e?(0,i.jsx)(r2,{size:"small",color:"primary",variant:"text",onClick:()=>{n(!0),r(nfe)},children:(0,r3.__)("Send test email","site-mailer")}):(0,i.jsx)(r2,{size:"small",color:"primary",variant:"text",onClick:Q_e,children:(0,r3.__)("Connect","site-mailer")})]}):(0,i.jsx)(J_e,{sx:{marginTop:3,height:16}})};var nke=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M11.8271 10.0039C12.2051 10.0425 12.5 10.3618 12.5 10.75V15H12.75C13.1642 15 13.5 15.3358 13.5 15.75C13.5 16.1642 13.1642 16.5 12.75 16.5H11.75C11.3358 16.5 11 16.1642 11 15.75V11.5H10.75C10.3358 11.5 10 11.1642 10 10.75C10 10.3358 10.3358 10 10.75 10H11.75L11.8271 10.0039Z"}),o.createElement("path",{d:"M11.5625 6.75488C12.0666 6.80622 12.46 7.23233 12.46 7.75C12.46 8.26767 12.0666 8.69378 11.5625 8.74512L11.46 8.75H11.4502C10.8979 8.75 10.4502 8.30228 10.4502 7.75C10.4502 7.19772 10.8979 6.75 11.4502 6.75H11.46L11.5625 6.75488Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM11.75 3.5C7.19365 3.5 3.5 7.19365 3.5 11.75C3.5 16.3063 7.19365 20 11.75 20C16.3063 20 20 16.3063 20 11.75C20 7.19365 16.3063 3.5 11.75 3.5Z"}))));function ike(e){return oY("PrivateSwitchBase",e)}sY("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const oke=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ske=b1(w0)((({ownerState:e})=>(0,NK.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),ake=b1("input",{shouldForwardProp:y1})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lke=o.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:f,name:m,onBlur:g,onChange:v,onFocus:y,readOnly:b,required:x=!1,tabIndex:w,type:C,value:_}=e,k=(0,DK.A)(e,oke),[S,A]=Jve({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),E=nxe();let R=l;E&&void 0===R&&(R=E.disabled);const I="checkbox"===C||"radio"===C,O=(0,NK.A)({},e,{checked:S,disabled:R,disableFocusRipple:c,edge:u}),M=(e=>{const{classes:t,checked:r,disabled:n,edge:i}=e;return p1({root:["root",r&&"checked",n&&"disabled",i&&`edge${h1(i)}`],input:["input"]},ike,t)})(O);return(0,i.jsxs)(ske,(0,NK.A)({component:"span",className:d1(M.root,s),centerRipple:!0,focusRipple:!c,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{g&&g(e),E&&E.onBlur&&E.onBlur(e)},ownerState:O,ref:t},k,{children:[(0,i.jsx)(ake,(0,NK.A)({autoFocus:r,checked:n,defaultChecked:a,className:M.input,disabled:R,id:I?p:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;A(t),v&&v(e,t)},readOnly:b,ref:f,required:x,ownerState:O,tabIndex:w,type:C},"checkbox"===C&&void 0===_?{}:{value:_},h)),S?o:d]}))})),cke=lke,uke=kwe((0,i.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),dke=kwe((0,i.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),pke=kwe((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function hke(e){return oY("MuiCheckbox",e)}const fke=sY("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mke=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],gke=b1(cke,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${h1(r.size)}`],"default"!==r.color&&t[`color${h1(r.color)}`]]}})((({theme:e,ownerState:t})=>(0,NK.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${fke.checked}, &.${fke.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${fke.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),vke=(0,i.jsx)(dke,{}),yke=(0,i.jsx)(uke,{}),bke=(0,i.jsx)(pke,{}),xke=o.forwardRef((function(e,t){var r,n;const s=g1({props:e,name:"MuiCheckbox"}),{checkedIcon:a=vke,color:l="primary",icon:c=yke,indeterminate:u=!1,indeterminateIcon:d=bke,inputProps:p,size:h="medium",className:f}=s,m=(0,DK.A)(s,mke),g=u?d:c,v=u?d:a,y=(0,NK.A)({},s,{color:l,indeterminate:u,size:h}),b=(e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,o=p1({root:["root",r&&"indeterminate",`color${h1(n)}`,`size${h1(i)}`]},hke,t);return(0,NK.A)({},t,o)})(y);return(0,i.jsx)(gke,(0,NK.A)({type:"checkbox",inputProps:(0,NK.A)({"data-indeterminate":u},p),icon:o.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:h}),checkedIcon:o.cloneElement(v,{fontSize:null!=(n=v.props.fontSize)?n:h}),ownerState:y,ref:t,className:d1(b.root,f)},m,{classes:b}))}));var wke=s().forwardRef(((e,t)=>s().createElement(xke,{...e,ref:t})));function Cke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cke(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const kke=Object.entries,Ske=Object.setPrototypeOf,Ake=Object.isFrozen,Eke=Object.getPrototypeOf,Rke=Object.getOwnPropertyDescriptor;let Ike=Object.freeze,Oke=Object.seal,Mke=Object.create,Tke="undefined"!=typeof Reflect&&Reflect,Lke=Tke.apply,Pke=Tke.construct;Ike||(Ike=function(e){return e}),Oke||(Oke=function(e){return e}),Lke||(Lke=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return e.apply(t,n)}),Pke||(Pke=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});const jke=rSe(Array.prototype.forEach),Nke=rSe(Array.prototype.lastIndexOf),Dke=rSe(Array.prototype.pop),Bke=rSe(Array.prototype.push),Fke=rSe(Array.prototype.splice),$ke=Array.isArray,zke=rSe(String.prototype.toLowerCase),Uke=rSe(String.prototype.toString),Wke=rSe(String.prototype.match),qke=rSe(String.prototype.replace),Vke=rSe(String.prototype.indexOf),Hke=rSe(String.prototype.trim),Gke=rSe(Number.prototype.toString),Zke=rSe(Boolean.prototype.toString),Kke="undefined"==typeof BigInt?null:rSe(BigInt.prototype.toString),Xke="undefined"==typeof Symbol?null:rSe(Symbol.prototype.toString),Yke=rSe(Object.prototype.hasOwnProperty),Jke=rSe(Object.prototype.toString),Qke=rSe(RegExp.prototype.test),eSe=(tSe=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pke(tSe,t)});var tSe;function rSe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Lke(e,t,n)}}function nSe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zke;if(Ske&&Ske(e,null),!$ke(t))return e;let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){const e=r(i);e!==i&&(Ake(t)||(t[n]=e),i=e)}e[i]=!0}return e}function iSe(e){for(let t=0;t<e.length;t++)Yke(e,t)||(e[t]=null);return e}function oSe(e){const t=Mke(null);for(const n of kke(e)){var r=_ke(n,2);const i=r[0],o=r[1];Yke(e,i)&&($ke(o)?t[i]=iSe(o):o&&"object"==typeof o&&o.constructor===Object?t[i]=oSe(o):t[i]=o)}return t}function sSe(e,t){for(;null!==e;){const r=Rke(e,t);if(r){if(r.get)return rSe(r.get);if("function"==typeof r.value)return rSe(r.value)}e=Eke(e)}return function(){return null}}const aSe=Ike(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),lSe=Ike(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cSe=Ike(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),uSe=Ike(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dSe=Ike(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),pSe=Ike(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hSe=Ike(["#text"]),fSe=Ike(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mSe=Ike(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gSe=Ike(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),vSe=Ike(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ySe=Oke(/{{[\w\W]*|^[\w\W]*}}/g),bSe=Oke(/<%[\w\W]*|^[\w\W]*%>/g),xSe=Oke(/\${[\w\W]*/g),wSe=Oke(/^data-[\-\w.\u00B7-\uFFFF]+$/),CSe=Oke(/^aria-[\-\w]+$/),_Se=Oke(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kSe=Oke(/^(?:\w+script|data):/i),SSe=Oke(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ASe=Oke(/^html$/i),ESe=Oke(/^[a-z][.\w]*(-[.\w]+)+$/i),RSe=Oke(/<[/\w!]/g),ISe=Oke(/<[/\w]/g),OSe=Oke(/<\/no(script|embed|frames)/i),MSe=Oke(/\/>/i),TSe=function(){return"undefined"==typeof window?null:window},LSe=function(e,t,r,n){return Yke(e,t)&&$ke(e[t])?nSe(n.base?oSe(n.base):{},e[t],n.transform):r};var PSe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TSe();const r=t=>e(t);if(r.version="3.4.11",r.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return r.isSupported=!1,r;let n=t.document;const i=n,o=i.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const u=t.DOMParser,d=t.trustedTypes,p=l.prototype,h=sSe(p,"cloneNode"),f=sSe(p,"remove"),m=sSe(p,"nextSibling"),g=sSe(p,"childNodes"),v=sSe(p,"parentNode"),y=sSe(p,"shadowRoot"),b=sSe(p,"attributes"),x=a&&a.prototype?sSe(a.prototype,"nodeType"):null,w=a&&a.prototype?sSe(a.prototype,"nodeName"):null;if("function"==typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let C,_,k="",S=!1,A=0;const E=function(){if(A>0)throw eSe('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},R=function(e){E(),A++;try{return C.createHTML(e)}finally{A--}},I=n,O=I.implementation,M=I.createNodeIterator,T=I.createDocumentFragment,L=I.getElementsByTagName,P=i.importNode;let j={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof kke&&"function"==typeof v&&O&&void 0!==O.createHTMLDocument;const N=ySe,D=bSe,B=xSe,F=wSe,$=CSe,z=kSe,U=SSe,W=ESe;let q=_Se,V=null;const H=nSe({},[...aSe,...lSe,...cSe,...dSe,...hSe]);let G=null;const Z=nSe({},[...fSe,...mSe,...gSe,...vSe]);let K=Object.seal(Mke(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),X=null,Y=null;const J=Object.seal(Mke(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Q=!0,ee=!0,te=!1,re=!0,ne=!1,ie=!0,oe=!1,se=!1,ae=null,le=null,ce=!1,ue=!1,de=!1,pe=!1,he=!0,fe=!1;const me="user-content-";let ge=!0,ve=!1,ye={},be=null;const xe=nSe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let we=null;const Ce=nSe({},["audio","video","img","source","image","track"]);let _e=null;const ke=nSe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Se="http://www.w3.org/1998/Math/MathML",Ae="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml";let Re=Ee,Ie=!1,Oe=null;const Me=nSe({},[Se,Ae,Ee],Uke),Te=Ike(["mi","mo","mn","ms","mtext"]);let Le=nSe({},Te);const Pe=Ike(["annotation-xml"]);let je=nSe({},Pe);const Ne=nSe({},["title","style","font","a","script"]);let De=null;const Be=["application/xhtml+xml","text/html"];let Fe=null,$e=null;const ze=n.createElement("form"),Ue=function(e){return e instanceof RegExp||e instanceof Function},We=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($e&&$e===e)return;e&&"object"==typeof e||(e={}),e=oSe(e),De=-1===Be.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Fe="application/xhtml+xml"===De?Uke:zke,V=LSe(e,"ALLOWED_TAGS",H,{transform:Fe}),G=LSe(e,"ALLOWED_ATTR",Z,{transform:Fe}),Oe=LSe(e,"ALLOWED_NAMESPACES",Me,{transform:Uke}),_e=LSe(e,"ADD_URI_SAFE_ATTR",ke,{transform:Fe,base:ke}),we=LSe(e,"ADD_DATA_URI_TAGS",Ce,{transform:Fe,base:Ce}),be=LSe(e,"FORBID_CONTENTS",xe,{transform:Fe}),X=LSe(e,"FORBID_TAGS",oSe({}),{transform:Fe}),Y=LSe(e,"FORBID_ATTR",oSe({}),{transform:Fe}),ye=!!Yke(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?oSe(e.USE_PROFILES):e.USE_PROFILES),Q=!1!==e.ALLOW_ARIA_ATTR,ee=!1!==e.ALLOW_DATA_ATTR,te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ne=e.SAFE_FOR_TEMPLATES||!1,ie=!1!==e.SAFE_FOR_XML,oe=e.WHOLE_DOCUMENT||!1,ue=e.RETURN_DOM||!1,de=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,ce=e.FORCE_BODY||!1,he=!1!==e.SANITIZE_DOM,fe=e.SANITIZE_NAMED_PROPS||!1,ge=!1!==e.KEEP_CONTENT,ve=e.IN_PLACE||!1,q=function(e){try{return Qke(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:_Se,Re="string"==typeof e.NAMESPACE?e.NAMESPACE:Ee,Le=Yke(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?oSe(e.MATHML_TEXT_INTEGRATION_POINTS):nSe({},Te),je=Yke(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?oSe(e.HTML_INTEGRATION_POINTS):nSe({},Pe);const t=Yke(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?oSe(e.CUSTOM_ELEMENT_HANDLING):Mke(null);if(K=Mke(null),Yke(t,"tagNameCheck")&&Ue(t.tagNameCheck)&&(K.tagNameCheck=t.tagNameCheck),Yke(t,"attributeNameCheck")&&Ue(t.attributeNameCheck)&&(K.attributeNameCheck=t.attributeNameCheck),Yke(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(K.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Oke(K),ne&&(ee=!1),de&&(ue=!0),ye&&(V=nSe({},hSe),G=Mke(null),!0===ye.html&&(nSe(V,aSe),nSe(G,fSe)),!0===ye.svg&&(nSe(V,lSe),nSe(G,mSe),nSe(G,vSe)),!0===ye.svgFilters&&(nSe(V,cSe),nSe(G,mSe),nSe(G,vSe)),!0===ye.mathMl&&(nSe(V,dSe),nSe(G,gSe),nSe(G,vSe))),J.tagCheck=null,J.attributeCheck=null,Yke(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?J.tagCheck=e.ADD_TAGS:$ke(e.ADD_TAGS)&&(V===H&&(V=oSe(V)),nSe(V,e.ADD_TAGS,Fe))),Yke(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?J.attributeCheck=e.ADD_ATTR:$ke(e.ADD_ATTR)&&(G===Z&&(G=oSe(G)),nSe(G,e.ADD_ATTR,Fe))),Yke(e,"ADD_URI_SAFE_ATTR")&&$ke(e.ADD_URI_SAFE_ATTR)&&nSe(_e,e.ADD_URI_SAFE_ATTR,Fe),Yke(e,"FORBID_CONTENTS")&&$ke(e.FORBID_CONTENTS)&&(be===xe&&(be=oSe(be)),nSe(be,e.FORBID_CONTENTS,Fe)),Yke(e,"ADD_FORBID_CONTENTS")&&$ke(e.ADD_FORBID_CONTENTS)&&(be===xe&&(be=oSe(be)),nSe(be,e.ADD_FORBID_CONTENTS,Fe)),ge&&(V["#text"]=!0),oe&&nSe(V,["html","head","body"]),V.table&&(nSe(V,["tbody"]),delete X.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw eSe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw eSe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=C;C=e.TRUSTED_TYPES_POLICY;try{k=R("")}catch(e){throw C=t,e}}else null===e.TRUSTED_TYPES_POLICY?(C=void 0,k=""):(void 0===C&&(S||(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(d,o),S=!0),C=_),C&&"string"==typeof k&&(k=R("")));Ike&&Ike(e),$e=e},qe=nSe({},[...lSe,...cSe,...uSe]),Ve=nSe({},[...dSe,...pSe]),He=function(e){Bke(r.removed,{element:e});try{v(e).removeChild(e)}catch(t){if(f(e),!v(e))throw eSe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ge=function(e){const t=g(e);if(t){const e=[];jke(t,(t=>{Bke(e,t)})),jke(e,(e=>{try{f(e)}catch(e){}}))}const r=b(e);if(r)for(let t=r.length-1;t>=0;--t){const n=r[t],i=n&&n.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(e){}}},Ze=function(e,t){try{Bke(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Bke(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ue||de)try{He(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ke=function(e){const t=b(e);if(t)for(let r=t.length-1;r>=0;--r){const n=t[r],i=n&&n.name;if("string"==typeof i&&!G[Fe(i)])try{e.removeAttribute(i)}catch(e){}}},Xe=function(e){let t=null,r=null;if(ce)e="<remove></remove>"+e;else{const t=Wke(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===De&&Re===Ee&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=C?R(e):e;if(Re===Ee)try{t=(new u).parseFromString(i,De)}catch(e){}if(!t||!t.documentElement){t=O.createDocument(Re,"template",null);try{t.documentElement.innerHTML=Ie?k:i}catch(e){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),Re===Ee?L.call(t,oe?"html":"body")[0]:oe?t.documentElement:o},Ye=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Je=function(e){return e=qke(e,N," "),e=qke(e,D," "),qke(e,B," ")},Qe=function(e){var t;e.normalize();const r=M.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=r.nextNode();for(;n;)n.data=Je(n.data),n=r.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&jke(i,(e=>{tt(e.content)&&Qe(e.content)}))},et=function(e){const t=w?w(e):null;return"string"==typeof t&&"form"===Fe(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==b(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==x(e)||e.childNodes!==g(e))},tt=function(e){if(!x||"object"!=typeof e||null===e)return!1;try{return 11===x(e)}catch(e){return!1}},rt=function(e){if(!x||"object"!=typeof e||null===e)return!1;try{return"number"==typeof x(e)}catch(e){return!1}};function nt(e,t,n){0!==e.length&&jke(e,(e=>{e.call(r,t,n,$e)}))}const it=function(e){if(nt(j.beforeSanitizeElements,e,null),et(e))return He(e),!0;const t=Fe(w?w(e):e.nodeName);if(nt(j.uponSanitizeElement,e,{tagName:t,allowedTags:V}),function(e,t){return!!(ie&&e.hasChildNodes()&&!rt(e.firstElementChild)&&Qke(RSe,e.textContent)&&Qke(RSe,e.innerHTML))||!(!ie||e.namespaceURI!==Ee||"style"!==t||!rt(e.firstElementChild))||7===e.nodeType||!(!ie||8!==e.nodeType||!Qke(ISe,e.data))}(e,t))return He(e),!0;if(X[t]||!(J.tagCheck instanceof Function&&J.tagCheck(t))&&!V[t])return function(e,t){if(!X[t]&&at(t)){if(K.tagNameCheck instanceof RegExp&&Qke(K.tagNameCheck,t))return!1;if(K.tagNameCheck instanceof Function&&K.tagNameCheck(t))return!1}if(ge&&!be[t]){const t=v(e),r=g(e);if(r&&t)for(let n=r.length-1;n>=0;--n){const i=ve?r[n]:h(r[n],!0);t.insertBefore(i,m(e))}}return He(e),!0}(e,t);if(1===(x?x(e):e.nodeType)&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Re,tagName:"template"});const r=zke(e.tagName),n=zke(t.tagName);return!!Oe[e.namespaceURI]&&(e.namespaceURI===Ae?function(e,t,r){return t.namespaceURI===Ee?"svg"===e:t.namespaceURI===Se?"svg"===e&&("annotation-xml"===r||Le[r]):Boolean(qe[e])}(r,t,n):e.namespaceURI===Se?function(e,t,r){return t.namespaceURI===Ee?"math"===e:t.namespaceURI===Ae?"math"===e&&je[r]:Boolean(Ve[e])}(r,t,n):e.namespaceURI===Ee?function(e,t,r){return!(t.namespaceURI===Ae&&!je[r])&&!(t.namespaceURI===Se&&!Le[r])&&!Ve[e]&&(Ne[e]||!qe[e])}(r,t,n):!("application/xhtml+xml"!==De||!Oe[e.namespaceURI]))}(e))return He(e),!0;if(("noscript"===t||"noembed"===t||"noframes"===t)&&Qke(OSe,e.innerHTML))return He(e),!0;if(ne&&3===e.nodeType){const t=Je(e.textContent);e.textContent!==t&&(Bke(r.removed,{element:e.cloneNode()}),e.textContent=t)}return nt(j.afterSanitizeElements,e,null),!1},ot=function(e,t,r){if(Y[t])return!1;if(he&&("id"===t||"name"===t)&&(r in n||r in ze))return!1;const i=G[t]||J.attributeCheck instanceof Function&&J.attributeCheck(t,e);if(ee&&Qke(F,t));else if(Q&&Qke($,t));else if(i){if(_e[t]);else if(Qke(q,qke(r,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Vke(r,"data:")||!we[e])if(te&&!Qke(z,qke(r,U,"")));else if(r)return!1}else if(!(at(e)&&(K.tagNameCheck instanceof RegExp&&Qke(K.tagNameCheck,e)||K.tagNameCheck instanceof Function&&K.tagNameCheck(e))&&(K.attributeNameCheck instanceof RegExp&&Qke(K.attributeNameCheck,t)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(t,e))||"is"===t&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&Qke(K.tagNameCheck,r)||K.tagNameCheck instanceof Function&&K.tagNameCheck(r))))return!1;return!0},st=nSe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),at=function(e){return!st[zke(e)]&&Qke(W,e)},lt=function(e,t,r,n){if(C&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!r)switch(d.getAttributeType(e,t)){case"TrustedHTML":return R(n);case"TrustedScriptURL":return function(e){E(),A++;try{return C.createScriptURL(e)}finally{A--}}(n)}return n},ct=function(e,t,n,i){try{n?e.setAttributeNS(n,t,i):e.setAttribute(t,i),et(e)?He(e):Dke(r.removed)}catch(r){Ze(t,e)}},ut=function(e){nt(j.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||et(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let n=t.length;const i=Fe(e.nodeName);for(;n--;){const o=t[n],s=o.name,a=o.namespaceURI,l=o.value,c=Fe(s),u=l;let d="value"===s?u:Hke(u);r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,nt(j.uponSanitizeAttribute,e,r),d=r.attrValue,!fe||"id"!==c&&"name"!==c||0===Vke(d,me)||(Ze(s,e),d=me+d),ie&&Qke(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===c&&Wke(d,"href")?Ze(s,e):r.forceKeepAttr||(!r.keepAttr||!re&&Qke(MSe,d)?Ze(s,e):(ne&&(d=Je(d)),ot(i,c,d)?(d=lt(i,c,a,d),d!==u&&ct(e,s,a,d)):Ze(s,e)))}nt(j.afterSanitizeAttributes,e,null)},dt=function(e){let t=null;const r=Ye(e);for(nt(j.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(nt(j.uponSanitizeShadowNode,t,null),it(t),ut(t),tt(t.content)&&dt(t.content),1===(x?x(t):t.nodeType)){const e=y(t);tt(e)&&(pt(e),dt(e))}nt(j.afterSanitizeShadowDOM,e,null)},pt=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){dt(e.shadow);continue}const r=e.node,n=1===(x?x(r):r.nodeType),i=g(r);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(n){const e=w?w(r):null;if("string"==typeof e&&"template"===Fe(e)){const e=r.content;tt(e)&&t.push({node:e,shadow:null})}}if(n){const e=y(r);tt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,s=null,a=null;if(Ie=!e,Ie&&(e="\x3c!--\x3e"),"string"!=typeof e&&!rt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Gke(e);case"boolean":return Zke(e);case"bigint":return Kke?Kke(e):"0";case"symbol":return Xke?Xke(e):"Symbol()";case"undefined":default:return Jke(e);case"function":case"object":{if(null===e)return Jke(e);const t=e,r=sSe(t,"toString");if("function"==typeof r){const e=r(t);return"string"==typeof e?e:Jke(e)}return Jke(e)}}}(e)))throw eSe("dirty is not a string, aborting");if(!r.isSupported)return e;se?(V=ae,G=le):We(t),(j.uponSanitizeElement.length>0||j.uponSanitizeAttribute.length>0)&&(V=oSe(V)),j.uponSanitizeAttribute.length>0&&(G=oSe(G)),r.removed=[];const l=ve&&"string"!=typeof e&&rt(e);if(l){const t=w?w(e):e.nodeName;if("string"==typeof t){const e=Fe(t);if(!V[e]||X[e])throw eSe("root node is forbidden and cannot be sanitized in-place")}if(et(e))throw eSe("root node is clobbered and cannot be sanitized in-place");try{pt(e)}catch(t){throw Ge(e),t}}else if(rt(e))n=Xe("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),pt(o);else{if(!ue&&!ne&&!oe&&-1===e.indexOf("<"))return C&&pe?R(e):e;if(n=Xe(e),!n)return ue?null:pe?k:""}n&&ce&&He(n.firstChild);const c=Ye(l?e:n);try{for(;s=c.nextNode();)it(s),ut(s),tt(s.content)&&dt(s.content)}catch(t){throw l&&Ge(e),t}if(l)return jke(r.removed,(e=>{e.element&&function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(x?x(e):e.nodeType)&&Ke(e);const r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e.element)})),ne&&Qe(e),e;if(ue){if(ne&&Qe(n),de)for(a=T.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(G.shadowroot||G.shadowrootmode)&&(a=P.call(i,a,!0)),a}let u=oe?n.outerHTML:n.innerHTML;return oe&&V["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Qke(ASe,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),ne&&(u=Je(u)),C&&pe?R(u):u},r.setConfig=function(){We(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),se=!0,ae=V,le=G},r.clearConfig=function(){$e=null,se=!1,ae=null,le=null,C=_,k=""},r.isValidAttribute=function(e,t,r){$e||We({});const n=Fe(e),i=Fe(t);return ot(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&Yke(j,e)&&Bke(j[e],t)},r.removeHook=function(e,t){if(Yke(j,e)){if(void 0!==t){const r=Nke(j[e],t);return-1===r?void 0:Fke(j[e],r,1)[0]}return Dke(j[e])}},r.removeHooks=function(e){Yke(j,e)&&(j[e]=[])},r.removeAllHooks=function(){j={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),jSe=r(442);const NSe=jSe.default||jSe;var DSe;!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(DSe||(DSe={}));const BSe=DSe.Root,FSe=DSe.Text,$Se=DSe.Directive,zSe=DSe.Comment,USe=DSe.Script,WSe=DSe.Style,qSe=DSe.Tag,VSe=DSe.CDATA,HSe=DSe.Doctype;class GSe{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return nAe(this,e)}}class ZSe extends GSe{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class KSe extends ZSe{constructor(){super(...arguments),this.type=DSe.Text}get nodeType(){return 3}}class XSe extends ZSe{constructor(){super(...arguments),this.type=DSe.Comment}get nodeType(){return 8}}class YSe extends ZSe{constructor(e,t){super(t),this.name=e,this.type=DSe.Directive}get nodeType(){return 1}}class JSe extends GSe{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class QSe extends JSe{constructor(){super(...arguments),this.type=DSe.CDATA}get nodeType(){return 4}}class eAe extends JSe{constructor(){super(...arguments),this.type=DSe.Root}get nodeType(){return 9}}class tAe extends JSe{constructor(e,t,r=[],n=("script"===e?DSe.Script:"style"===e?DSe.Style:DSe.Tag)){super(r),this.name=e,this.attribs=t,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,r;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(r=this["x-attribsPrefix"])||void 0===r?void 0:r[e]}}))}}function rAe(e){return(t=e).type===DSe.Tag||t.type===DSe.Script||t.type===DSe.Style;var t}function nAe(e,t=!1){let r;if(function(e){return e.type===DSe.Text}(e))r=new KSe(e.data);else if(function(e){return e.type===DSe.Comment}(e))r=new XSe(e.data);else if(rAe(e)){const n=t?iAe(e.children):[],i=new tAe(e.name,{...e.attribs},n);n.forEach((e=>e.parent=i)),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(function(e){return e.type===DSe.CDATA}(e)){const n=t?iAe(e.children):[],i=new QSe(n);n.forEach((e=>e.parent=i)),r=i}else if(function(e){return e.type===DSe.Root}(e)){const n=t?iAe(e.children):[],i=new eAe(n);n.forEach((e=>e.parent=i)),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else{if(!function(e){return e.type===DSe.Directive}(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new YSe(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function iAe(e){const t=e.map((e=>nAe(e,!0)));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const oAe={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class sAe{constructor(e,t,r){this.dom=[],this.root=new eAe(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=oAe),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:oAe,this.elementCB=null!=r?r:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new eAe(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const r=this.options.xmlMode?DSe.Tag:void 0,n=new tAe(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)}ontext(e){const{lastNode:t}=this;if(t&&t.type===DSe.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new KSe(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===DSe.Comment)return void(this.lastNode.data+=e);const t=new XSe(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new KSe(""),t=new QSe([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const r=new YSe(e,t);this.addNode(r)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null}}const aAe=/\n/g;function lAe(e){const t=[...e.matchAll(aAe)].map((e=>e.index||0));t.unshift(-1);const r=cAe(t,0,t.length);return e=>uAe(r,e)}function cAe(e,t,r){if(r-t==1)return{offset:e[t],index:t+1};const n=Math.ceil((t+r)/2),i=cAe(e,t,n),o=cAe(e,n,r);return{offset:i.offset,low:i,high:o}}function uAe(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,"index")}(e)?{line:e.index,column:t-e.offset}:uAe(e.high.offset<t?e.high:e.low,t)}function dAe(e,t="",r={}){const n="string"!=typeof t?t:r,i="string"==typeof t?t:"",o=e.map(pAe),s=!!n.lineNumbers;return function(e,t=0){const r=s?lAe(e):()=>({line:0,column:0});let n=t;const a=[];e:for(;n<e.length;){let t=!1;for(const s of o){s.regex.lastIndex=n;const o=s.regex.exec(e);if(o&&o[0].length>0){if(!s.discard){const e=r(n),t="string"==typeof s.replace?o[0].replace(new RegExp(s.regex.source,s.regex.flags),s.replace):o[0];a.push({state:i,name:s.name,text:t,offset:n,len:o[0].length,line:e.line,column:e.column})}if(n=s.regex.lastIndex,t=!0,s.push){const t=s.push(e,n);a.push(...t.tokens),n=t.offset}if(s.pop)break e;break}}if(!t)break}return{tokens:a,offset:n,complete:e.length<=n}}}function pAe(e,t){return{...e,regex:hAe(e,t)}}function hAe(e,t){if(0===e.name.length)throw new Error(`Rule #${t} has empty name, which is not allowed.`);if(function(e){return Object.prototype.hasOwnProperty.call(e,"regex")}(e))return function(e){if(e.global)throw new Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:new RegExp(e.source,e.flags+"y")}(e.regex);if(function(e){return Object.prototype.hasOwnProperty.call(e,"str")}(e)){if(0===e.str.length)throw new Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(fAe(e.str),"y")}return new RegExp(fAe(e.name),"y")}function fAe(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function mAe(e,t){return(r,n)=>{let i,o=n;return n<r.tokens.length?(i=e(r.tokens[n],r,n),void 0!==i&&o++):t?.(r,n),void 0===i?{matched:!1}:{matched:!0,position:o,value:i}}}function gAe(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function vAe(e,t){return e.matched?t(e):e}function yAe(e,t){return(r,n)=>gAe(e(r,n),((e,i)=>t(e,r,n,i)))}function bAe(e,t){return(r,n)=>{const i=e(r,n);return i.matched?i:{matched:!0,position:n,value:t}}}function xAe(...e){return(t,r)=>{for(const n of e){const e=n(t,r);if(e.matched)return e}return{matched:!1}}}function wAe(e,t){return(r,n)=>{const i=e(r,n);return i.matched?i:t(r,n)}}function CAe(e){return function(e,t){return(r,n)=>{const i=[];let o=!0;do{const s=e(r,n);s.matched&&t(s.value,i.length+1,r,n,s.position)?(i.push(s.value),n=s.position):o=!1}while(o);return{matched:!0,position:n,value:i}}}(e,(()=>!0))}function _Ae(e,t,r){return(n,i)=>vAe(e(n,i),(e=>gAe(t(n,e.position),((t,o)=>r(e.value,t,n,i,o)))))}function kAe(e,t){return _Ae(e,t,((e,t)=>t))}function SAe(e,t,r,n){return(i,o)=>vAe(e(i,o),(e=>vAe(t(i,e.position),(t=>gAe(r(i,t.position),((r,s)=>n(e.value,t.value,r,i,o,s)))))))}function AAe(e,t,r){return SAe(e,t,r,((e,t)=>t))}function EAe(e,t,r){return function(e,t){return(r,n)=>vAe(e(r,n),(e=>t(e.value,r,n,e.position)(r,e.position)))}(e,(e=>function(e,t,r){return function(e,t){return(r,n)=>{let i=!0,o=e,s=n;do{const e=t(o)(r,s);e.matched?(o=e.value,s=e.position):i=!1}while(i);return{matched:!0,position:s,value:o}}}(e,(e=>yAe(t,((t,n,i,o)=>r(e,t,n,i,o)))))}(e,_Ae(t,r,((e,t)=>[e,t])),((e,[t,r])=>t(e,r)))))}const RAe="(?:\\n|\\r\\n|\\r|\\f)",IAe="[^\\x00-\\x7F]",OAe="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",MAe="(?:\\\\[^\\n\\r\\f0-9a-f])",TAe=`(?:[_a-z0-9-]|${IAe}|${OAe}|${MAe})`,LAe=`(?:${TAe}+)`,PAe=`(?:[-]?(?:[_a-z]|${IAe}|${OAe}|${MAe})${TAe}*)`,jAe=`'([^\\n\\r\\f\\\\']|\\\\${RAe}|${IAe}|${OAe}|${MAe})*'`,NAe=`"([^\\n\\r\\f\\\\"]|\\\\${RAe}|${IAe}|${OAe}|${MAe})*"`,DAe=dAe([{name:"ws",regex:new RegExp("(?:[ \\t\\r\\n\\f]*)")},{name:"hash",regex:new RegExp(`#${LAe}`,"i")},{name:"ident",regex:new RegExp(PAe,"i")},{name:"str1",regex:new RegExp(jAe,"i")},{name:"str2",regex:new RegExp(NAe,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),BAe=dAe([{name:"unicode",regex:new RegExp(OAe,"i")},{name:"escape",regex:new RegExp(MAe,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function FAe([e,t,r],[n,i,o]){return[e+n,t+i,r+o]}function $Ae(e){return e.reduce(FAe,[0,0,0])}const zAe=mAe((e=>"unicode"===e.name?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0)),UAe=mAe((e=>"escape"===e.name?e.text.slice(1):void 0)),WAe=mAe((e=>"any"===e.name?e.text:void 0)),qAe=yAe(CAe(xAe(zAe,UAe,WAe)),(e=>e.join("")));function VAe(e){const t=BAe(e);return qAe({tokens:t.tokens,options:void 0},0).value}function HAe(e){return mAe((t=>t.name===e||void 0))}const GAe=mAe((e=>"ws"===e.name?null:void 0)),ZAe=bAe(GAe,null);function KAe(e){return AAe(ZAe,e,ZAe)}const XAe=mAe((e=>"ident"===e.name?VAe(e.text):void 0)),YAe=mAe((e=>"hash"===e.name?VAe(e.text.slice(1)):void 0)),JAe=mAe((e=>e.name.startsWith("str")?VAe(e.text.slice(1,-1)):void 0)),QAe=function(e,t){return _Ae(e,t,(e=>e))}(bAe(XAe,""),HAe("|")),eEe=wAe(_Ae(QAe,XAe,((e,t)=>({name:t,namespace:e}))),yAe(XAe,(e=>({name:e,namespace:null})))),tEe=wAe(_Ae(QAe,HAe("*"),(e=>({type:"universal",namespace:e,specificity:[0,0,0]}))),yAe(HAe("*"),(()=>({type:"universal",namespace:null,specificity:[0,0,0]})))),rEe=yAe(eEe,(({name:e,namespace:t})=>({type:"tag",name:e,namespace:t,specificity:[0,0,1]}))),nEe=_Ae(HAe("."),XAe,((e,t)=>({type:"class",name:t,specificity:[0,1,0]}))),iEe=yAe(YAe,(e=>({type:"id",name:e,specificity:[1,0,0]}))),oEe=mAe((e=>{if("ident"===e.name){if("i"===e.text||"I"===e.text)return"i";if("s"===e.text||"S"===e.text)return"s"}})),sEe=wAe(_Ae(JAe,bAe(kAe(ZAe,oEe),null),((e,t)=>({value:e,modifier:t}))),_Ae(XAe,bAe(kAe(GAe,oEe),null),((e,t)=>({value:e,modifier:t})))),aEe=xAe(yAe(HAe("="),(()=>"=")),_Ae(HAe("~"),HAe("="),(()=>"~=")),_Ae(HAe("|"),HAe("="),(()=>"|=")),_Ae(HAe("^"),HAe("="),(()=>"^=")),_Ae(HAe("$"),HAe("="),(()=>"$=")),_Ae(HAe("*"),HAe("="),(()=>"*="))),lEe=wAe(SAe(HAe("["),KAe(eEe),HAe("]"),((e,{name:t,namespace:r})=>({type:"attrPresence",name:t,namespace:r,specificity:[0,1,0]}))),AAe(HAe("["),SAe(KAe(eEe),aEe,KAe(sEe),(({name:e,namespace:t},r,{value:n,modifier:i})=>({type:"attrValue",name:e,namespace:t,matcher:r,value:n,modifier:i,specificity:[0,1,0]}))),HAe("]"))),cEe=wAe(tEe,rEe),uEe=xAe(iEe,nEe,lEe),dEe=yAe(wAe(function(...e){return yAe(function(...e){return(t,r)=>{const n=[];let i=r;for(const r of e){const e=r(t,i);if(!e.matched)return{matched:!1};n.push(e.value),i=e.position}return{matched:!0,position:i,value:n}}}(...e),(e=>e.flatMap((e=>e))))}(cEe,CAe(uEe)),_Ae(pEe=uEe,CAe(pEe),((e,t)=>[e,...t]))),(e=>({type:"compound",list:e,specificity:$Ae(e.map((e=>e.specificity)))})));var pEe;const hEe=wAe(KAe(xAe(yAe(HAe(">"),(()=>">")),yAe(HAe("+"),(()=>"+")),yAe(HAe("~"),(()=>"~")),_Ae(HAe("|"),HAe("|"),(()=>"||")))),yAe(GAe,(()=>" "))),fEe=EAe(dEe,yAe(hEe,(e=>(t,r)=>({type:"compound",list:[...r.list,{type:"combinator",combinator:e,left:t,specificity:t.specificity}],specificity:FAe(t.specificity,r.specificity)}))),dEe);function mEe(e,t,r=1){return`${e.replace(/(\t)|(\r)|(\n)/g,((e,t,r)=>t?"␉":r?"␍":"␊"))}\n${"".padEnd(t)}${"^".repeat(r)}`}function gEe(e){return function(e,t){if(!("string"==typeof t||t instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const r=DAe(t);if(!r.complete)throw new Error(`The input "${t}" was only partially tokenized, stopped at offset ${r.offset}!\n`+mEe(t,r.offset));const n=KAe(e)({tokens:r.tokens,options:void 0},0);if(!n.matched)throw new Error(`No match for "${t}" input!`);if(n.position<r.tokens.length){const e=r.tokens[n.position];throw new Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!\n`+mEe(t,e.offset,e.len))}return n.value}(fEe,e)}function vEe(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"universal":return yEe(e.namespace)+"*";case"tag":return yEe(e.namespace)+xEe(e.name);case"class":return"."+xEe(e.name);case"id":return"#"+xEe(e.name);case"attrPresence":return`[${yEe(e.namespace)}${xEe(e.name)}]`;case"attrValue":return`[${yEe(e.namespace)}${xEe(e.name)}${e.matcher}"${t=e.value,t.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,((e,t,r,n,i)=>t?'\\"':r?"\\\\":n?"�":bEe(i)))}"${e.modifier?e.modifier:""}]`;case"combinator":return vEe(e.left)+e.combinator;case"compound":return e.list.reduce(((e,t)=>"combinator"===t.type?vEe(t)+e:e+vEe(t)),"");case"list":return e.list.map(vEe).join(",")}var t}function yEe(e){return e||""===e?xEe(e)+"|":""}function bEe(e){return`\\${e.codePointAt(0).toString(16)} `}function xEe(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,((e,t,r,n,i,o,s,a)=>t?bEe(t):r?"-"+bEe(r.slice(1)):n?"\\-":i||(o?"�":s?bEe(s):"\\"+a)))}function wEe(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"compound":e.list.forEach(wEe),e.list.sort(((e,t)=>kEe(CEe(e),CEe(t))));break;case"combinator":wEe(e.left);break;case"list":e.list.forEach(wEe),e.list.sort(((e,t)=>vEe(e)<vEe(t)?-1:1))}return e}function CEe(e){switch(e.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,e.name];case"attrPresence":return[4,vEe(e)];case"attrValue":return[5,vEe(e)];case"combinator":return[15,vEe(e)]}}function _Ee(e,t){return kEe(e,t)}function kEe(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw new Error("Arguments must be arrays.");const r=e.length<t.length?e.length:t.length;for(let n=0;n<r;n++)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return e.length-t.length}EAe(yAe(fEe,(e=>({type:"list",list:[e]}))),yAe(KAe(HAe(",")),(()=>(e,t)=>({type:"list",list:[...e.list,t]}))),fEe);class SEe{constructor(e){this.branches=REe(function(e){const t=e.length,r=new Array(t);for(let n=0;n<t;n++){const[t,i]=e[n],o=AEe(gEe(t));r[n]={ast:o,terminal:{type:"terminal",valueContainer:{index:n,value:i,specificity:o.specificity}}}}return r}(e))}build(e){return e(this.branches)}}function AEe(e){return EEe(e),wEe(e),e}function EEe(e){const t=[];e.list.forEach((e=>{switch(e.type){case"class":t.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:e.specificity,type:"attrValue",value:e.name});break;case"id":t.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:e.specificity,type:"attrValue",value:e.name});break;case"combinator":EEe(e.left),t.push(e);break;case"universal":break;default:t.push(e)}})),e.list=t}function REe(e){const t=[];for(;e.length;){const r=DEe(e,(e=>!0),MEe),{matches:n,nonmatches:i,empty:o}=OEe(e,r);e=i,n.length&&t.push(TEe(r,n)),o.length&&t.push(...IEe(o))}return t}function IEe(e){const t=[];for(const r of e){const e=r.terminal;if("terminal"===e.type)t.push(e);else{const{matches:r,rest:n}=BEe(e.cont,(e=>"terminal"===e.type));r.forEach((e=>t.push(e))),n.length&&(e.cont=n,t.push(e))}}return t}function OEe(e,t){const r=[],n=[],i=[];for(const o of e){const e=o.ast.list;if(e.length){const i=e.some((e=>MEe(e)===t));(i?r:n).push(o)}else i.push(o)}return{matches:r,nonmatches:n,empty:i}}function MEe(e){switch(e.type){case"attrPresence":return`attrPresence ${e.name}`;case"attrValue":return`attrValue ${e.name}`;case"combinator":return`combinator ${e.combinator}`;default:return e.type}}function TEe(e,t){if("tag"===e)return function(e){const t=jEe(e,(e=>"tag"===e.type),(e=>e.name));return{type:"tagName",variants:Object.entries(t).map((([e,t])=>({type:"variant",value:e,cont:REe(t.items)})))}}(t);if(e.startsWith("attrValue "))return function(e,t){const r=jEe(t,(t=>"attrValue"===t.type&&t.name===e),(e=>`${e.matcher} ${e.modifier||""} ${e.value}`)),n=[];for(const e of Object.values(r)){const t=e.oneSimpleSelector,r=LEe(t),i=REe(e.items);n.push({type:"matcher",matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:r,cont:i})}return{type:"attrValue",name:e,matchers:n}}(e.substring(10),t);if(e.startsWith("attrPresence "))return function(e,t){for(const r of t)NEe(r,(t=>"attrPresence"===t.type&&t.name===e));return{type:"attrPresence",name:e,cont:REe(t)}}(e.substring(13),t);if("combinator >"===e)return PEe(">",t);if("combinator +"===e)return PEe("+",t);throw new Error(`Unsupported selector kind: ${e}`)}function LEe(e){if("i"===e.modifier){const t=e.value.toLowerCase();switch(e.matcher){case"=":return e=>t===e.toLowerCase();case"~=":return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case"^=":return e=>e.toLowerCase().startsWith(t);case"$=":return e=>e.toLowerCase().endsWith(t);case"*=":return e=>e.toLowerCase().includes(t);case"|=":return e=>{const r=e.toLowerCase();return t===r||r.startsWith(t)&&"-"===r[t.length]}}}else{const t=e.value;switch(e.matcher){case"=":return e=>t===e;case"~=":return e=>e.split(/[ \t]+/).includes(t);case"^=":return e=>e.startsWith(t);case"$=":return e=>e.endsWith(t);case"*=":return e=>e.includes(t);case"|=":return e=>t===e||e.startsWith(t)&&"-"===e[t.length]}}}function PEe(e,t){const r=jEe(t,(t=>"combinator"===t.type&&t.combinator===e),(e=>vEe(e.left))),n=[];for(const e of Object.values(r)){const t=REe(e.items),r=e.oneSimpleSelector.left;n.push({ast:r,terminal:{type:"popElement",cont:t}})}return{type:"pushElement",combinator:e,cont:REe(n)}}function jEe(e,t,r){const n={};for(;e.length;){const i=DEe(e,t,r),o=e=>t(e)&&r(e)===i,s=e=>e.ast.list.some(o),{matches:a,rest:l}=FEe(e,s);let c=null;for(const e of a){const t=NEe(e,o);c||(c=t)}if(null==c)throw new Error("No simple selector is found.");n[i]={oneSimpleSelector:c,items:a},e=l}return n}function NEe(e,t){const r=e.ast.list,n=new Array(r.length);let i=-1;for(let e=r.length;e-- >0;)t(r[e])&&(n[e]=!0,i=e);if(-1==i)throw new Error("Couldn't find the required simple selector.");const o=r[i];return e.ast.list=r.filter(((e,t)=>!n[t])),o}function DEe(e,t,r){const n={};for(const i of e){const e={};for(const n of i.ast.list.filter(t))e[r(n)]=!0;for(const t of Object.keys(e))n[t]?n[t]++:n[t]=1}let i="",o=0;for(const e of Object.entries(n))e[1]>o&&(i=e[0],o=e[1]);return i}function BEe(e,t){const r=[],n=[];for(const i of e)t(i)?r.push(i):n.push(i);return{matches:r,rest:n}}function FEe(e,t){const r=[],n=[];for(const i of e)t(i)?r.push(i):n.push(i);return{matches:r,rest:n}}class $Ee{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){const r=this.f(e),n=r.length;if(0===n)return null;if(1===n)return r[0].value;const i=t?zEe:UEe;let o=r[0];for(let e=1;e<n;e++){const t=r[e];i(o,t)&&(o=t)}return o.value}}function zEe(e,t){const r=_Ee(t.specificity,e.specificity);return r>0||0===r&&t.index<e.index}function UEe(e,t){const r=_Ee(t.specificity,e.specificity);return r>0||0===r&&t.index>e.index}function WEe(e){return new $Ee(qEe(e))}function qEe(e){const t=e.map(VEe);return(e,...r)=>t.flatMap((t=>t(e,...r)))}function VEe(e){switch(e.type){case"terminal":{const t=[e.valueContainer];return(e,...r)=>t}case"tagName":return function(e){const t={};for(const r of e.variants)t[r.value]=qEe(r.cont);return(e,...r)=>{const n=t[e.name];return n?n(e,...r):[]}}(e);case"attrValue":return function(e){const t=[];for(const r of e.matchers){const e=r.predicate,n=qEe(r.cont);t.push(((t,r,...i)=>e(t)?n(r,...i):[]))}const r=e.name;return(e,...n)=>{const i=e.attribs[r];return i||""===i?t.flatMap((t=>t(i,e,...n))):[]}}(e);case"attrPresence":return function(e){const t=e.name,r=qEe(e.cont);return(e,...n)=>Object.prototype.hasOwnProperty.call(e.attribs,t)?r(e,...n):[]}(e);case"pushElement":return function(e){const t=qEe(e.cont),r="+"===e.combinator?HEe:GEe;return(e,...n)=>{const i=r(e);return null===i?[]:t(i,e,...n)}}(e);case"popElement":return function(e){const t=qEe(e.cont);return(e,r,...n)=>t(r,...n)}(e)}}const HEe=e=>{const t=e.prev;return null===t?null:rAe(t)?t:HEe(t)},GEe=e=>{const t=e.parent;return t&&rAe(t)?t:null},ZEe=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),KEe=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var XEe;const YEe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),JEe=null!==(XEe=String.fromCodePoint)&&void 0!==XEe?XEe:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function QEe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=YEe.get(e))&&void 0!==t?t:e}var eRe,tRe,rRe,nRe,iRe,oRe,sRe;function aRe(e){return e>=eRe.ZERO&&e<=eRe.NINE}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(eRe||(eRe={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(tRe||(tRe={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(rRe||(rRe={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(nRe||(nRe={}));class lRe{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=rRe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=nRe.Strict}startEntity(e){this.decodeMode=e,this.state=rRe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case rRe.EntityStart:return e.charCodeAt(t)===eRe.NUM?(this.state=rRe.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=rRe.NamedEntity,this.stateNamedEntity(e,t));case rRe.NumericStart:return this.stateNumericStart(e,t);case rRe.NumericDecimal:return this.stateNumericDecimal(e,t);case rRe.NumericHex:return this.stateNumericHex(e,t);case rRe.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===eRe.LOWER_X?(this.state=rRe.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=rRe.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!(aRe(i)||(n=i,n>=eRe.UPPER_A&&n<=eRe.UPPER_F||n>=eRe.LOWER_A&&n<=eRe.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}var n;return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!aRe(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===eRe.SEMI)this.consumed+=1;else if(this.decodeMode===nRe.Strict)return 0;return this.emitCodePoint(QEe(this.result),this.consumed),this.errors&&(e!==eRe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let n=r[this.treeIndex],i=(n&tRe.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=uRe(r,n,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return 0===this.result||this.decodeMode===nRe.Attribute&&(0===i||((o=s)===eRe.EQUALS||function(e){return e>=eRe.UPPER_A&&e<=eRe.UPPER_Z||e>=eRe.LOWER_A&&e<=eRe.LOWER_Z||aRe(e)}(o)))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&tRe.VALUE_LENGTH)>>14,0!==i){if(s===eRe.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==nRe.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var o;return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&tRe.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~tRe.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case rRe.NamedEntity:return 0===this.result||this.decodeMode===nRe.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case rRe.NumericDecimal:return this.emitNumericEntity(0,2);case rRe.NumericHex:return this.emitNumericEntity(0,3);case rRe.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case rRe.EntityStart:return 0}}}function cRe(e){let t="";const r=new lRe(e,(e=>t+=JEe(e)));return function(e,n){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),r.startEntity(n);const s=r.write(e,o+1);if(s<0){i=o+r.end();break}i=o+s,o=0===s?i+1:i}const s=t+e.slice(i);return t="",s}}function uRe(e,t,r,n){const i=(t&tRe.BRANCH_LENGTH)>>7,o=t&tRe.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){const t=n-o;return t<0||t>=i?-1:e[r+t]-1}let s=r,a=s+i-1;for(;s<=a;){const t=s+a>>>1,r=e[t];if(r<n)s=t+1;else{if(!(r>n))return e[t+i];a=t-1}}return-1}function dRe(e){return e===iRe.Space||e===iRe.NewLine||e===iRe.Tab||e===iRe.FormFeed||e===iRe.CarriageReturn}function pRe(e){return e===iRe.Slash||e===iRe.Gt||dRe(e)}function hRe(e){return e>=iRe.Zero&&e<=iRe.Nine}cRe(ZEe),cRe(KEe),function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(iRe||(iRe={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(oRe||(oRe={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(sRe||(sRe={}));const fRe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class mRe{constructor({xmlMode:e=!1,decodeEntities:t=!0},r){this.cbs=r,this.state=oRe.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=oRe.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?KEe:ZEe}reset(){this.state=oRe.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=oRe.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===iRe.Lt||!this.decodeEntities&&this.fastForwardTo(iRe.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=oRe.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===iRe.Amp&&(this.state=oRe.BeforeEntity)}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?pRe(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=oRe.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===iRe.Gt||dRe(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===fRe.TitleEnd?this.decodeEntities&&e===iRe.Amp&&(this.state=oRe.BeforeEntity):this.fastForwardTo(iRe.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===iRe.Lt)}stateCDATASequence(e){e===fRe.Cdata[this.sequenceIndex]?++this.sequenceIndex===fRe.Cdata.length&&(this.state=oRe.InCommentLike,this.currentSequence=fRe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=oRe.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===fRe.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=oRe.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!pRe(e):function(e){return e>=iRe.LowerA&&e<=iRe.LowerZ||e>=iRe.UpperA&&e<=iRe.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=oRe.SpecialStartSequence}stateBeforeTagName(e){if(e===iRe.ExclamationMark)this.state=oRe.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===iRe.Questionmark)this.state=oRe.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=32|e;this.sectionStart=this.index,this.xmlMode||t!==fRe.TitleEnd[2]?this.state=this.xmlMode||t!==fRe.ScriptEnd[2]?oRe.InTagName:oRe.BeforeSpecialS:this.startSpecial(fRe.TitleEnd,3)}else e===iRe.Slash?this.state=oRe.BeforeClosingTagName:(this.state=oRe.Text,this.stateText(e))}stateInTagName(e){pRe(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=oRe.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){dRe(e)||(e===iRe.Gt?this.state=oRe.Text:(this.state=this.isTagStartChar(e)?oRe.InClosingTagName:oRe.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===iRe.Gt||dRe(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=oRe.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===iRe.Gt||this.fastForwardTo(iRe.Gt))&&(this.state=oRe.Text,this.baseState=oRe.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===iRe.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=oRe.InSpecialTag,this.sequenceIndex=0):this.state=oRe.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===iRe.Slash?this.state=oRe.InSelfClosingTag:dRe(e)||(this.state=oRe.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===iRe.Gt?(this.cbs.onselfclosingtag(this.index),this.state=oRe.Text,this.baseState=oRe.Text,this.sectionStart=this.index+1,this.isSpecial=!1):dRe(e)||(this.state=oRe.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===iRe.Eq||pRe(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=oRe.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===iRe.Eq?this.state=oRe.BeforeAttributeValue:e===iRe.Slash||e===iRe.Gt?(this.cbs.onattribend(sRe.NoValue,this.index),this.state=oRe.BeforeAttributeName,this.stateBeforeAttributeName(e)):dRe(e)||(this.cbs.onattribend(sRe.NoValue,this.index),this.state=oRe.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===iRe.DoubleQuote?(this.state=oRe.InAttributeValueDq,this.sectionStart=this.index+1):e===iRe.SingleQuote?(this.state=oRe.InAttributeValueSq,this.sectionStart=this.index+1):dRe(e)||(this.sectionStart=this.index,this.state=oRe.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===iRe.DoubleQuote?sRe.Double:sRe.Single,this.index),this.state=oRe.BeforeAttributeName):this.decodeEntities&&e===iRe.Amp&&(this.baseState=this.state,this.state=oRe.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,iRe.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,iRe.SingleQuote)}stateInAttributeValueNoQuotes(e){dRe(e)||e===iRe.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(sRe.Unquoted,this.index),this.state=oRe.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===iRe.Amp&&(this.baseState=this.state,this.state=oRe.BeforeEntity)}stateBeforeDeclaration(e){e===iRe.OpeningSquareBracket?(this.state=oRe.CDATASequence,this.sequenceIndex=0):this.state=e===iRe.Dash?oRe.BeforeComment:oRe.InDeclaration}stateInDeclaration(e){(e===iRe.Gt||this.fastForwardTo(iRe.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=oRe.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===iRe.Gt||this.fastForwardTo(iRe.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=oRe.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===iRe.Dash?(this.state=oRe.InCommentLike,this.currentSequence=fRe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=oRe.InDeclaration}stateInSpecialComment(e){(e===iRe.Gt||this.fastForwardTo(iRe.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=oRe.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===fRe.ScriptEnd[3]?this.startSpecial(fRe.ScriptEnd,4):t===fRe.StyleEnd[3]?this.startSpecial(fRe.StyleEnd,4):(this.state=oRe.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===iRe.Number?this.state=oRe.BeforeNumericEntity:e===iRe.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=oRe.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=uRe(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];const t=this.trieCurrent&tRe.VALUE_LENGTH;if(t){const r=(t>>14)-1;if(this.allowLegacyEntity()||e===iRe.Semi){const e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}}emitNamedEntity(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&tRe.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~tRe.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(32|e)===iRe.LowerX?(this.entityExcess++,this.state=oRe.InHexEntity):(this.state=oRe.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){const t=this.index-this.entityExcess-1;t+2+Number(this.state===oRe.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(QEe(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===iRe.Semi?this.emitNumericEntity(!0):hRe(e)?(this.entityResult=10*this.entityResult+(e-iRe.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===iRe.Semi?this.emitNumericEntity(!0):hRe(e)?(this.entityResult=16*this.entityResult+(e-iRe.Zero),this.entityExcess++):function(e){return e>=iRe.UpperA&&e<=iRe.UpperF||e>=iRe.LowerA&&e<=iRe.LowerF}(e)?(this.entityResult=16*this.entityResult+((32|e)-iRe.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===oRe.Text||this.baseState===oRe.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===oRe.Text||this.state===oRe.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==oRe.InAttributeValueDq&&this.state!==oRe.InAttributeValueSq&&this.state!==oRe.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case oRe.Text:this.stateText(e);break;case oRe.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case oRe.InSpecialTag:this.stateInSpecialTag(e);break;case oRe.CDATASequence:this.stateCDATASequence(e);break;case oRe.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case oRe.InAttributeName:this.stateInAttributeName(e);break;case oRe.InCommentLike:this.stateInCommentLike(e);break;case oRe.InSpecialComment:this.stateInSpecialComment(e);break;case oRe.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case oRe.InTagName:this.stateInTagName(e);break;case oRe.InClosingTagName:this.stateInClosingTagName(e);break;case oRe.BeforeTagName:this.stateBeforeTagName(e);break;case oRe.AfterAttributeName:this.stateAfterAttributeName(e);break;case oRe.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case oRe.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case oRe.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case oRe.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case oRe.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case oRe.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case oRe.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case oRe.InDeclaration:this.stateInDeclaration(e);break;case oRe.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case oRe.BeforeComment:this.stateBeforeComment(e);break;case oRe.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case oRe.InNamedEntity:this.stateInNamedEntity(e);break;case oRe.BeforeEntity:this.stateBeforeEntity(e);break;case oRe.InHexEntity:this.stateInHexEntity(e);break;case oRe.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===oRe.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.state===oRe.InCommentLike?this.currentSequence===fRe.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===oRe.InNumericEntity&&this.allowLegacyEntity()||this.state===oRe.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===oRe.InTagName||this.state===oRe.BeforeAttributeName||this.state===oRe.BeforeAttributeValue||this.state===oRe.AfterAttributeName||this.state===oRe.InAttributeName||this.state===oRe.InAttributeValueSq||this.state===oRe.InAttributeValueDq||this.state===oRe.InAttributeValueNq||this.state===oRe.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==oRe.Text&&this.baseState!==oRe.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==oRe.Text&&this.baseState!==oRe.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}}const gRe=new Set(["input","option","optgroup","select","button","datalist","textarea"]),vRe=new Set(["p"]),yRe=new Set(["thead","tbody"]),bRe=new Set(["dd","dt"]),xRe=new Set(["rt","rp"]),wRe=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",vRe],["h1",vRe],["h2",vRe],["h3",vRe],["h4",vRe],["h5",vRe],["h6",vRe],["select",gRe],["input",gRe],["output",gRe],["button",gRe],["datalist",gRe],["textarea",gRe],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",bRe],["dt",bRe],["address",vRe],["article",vRe],["aside",vRe],["blockquote",vRe],["details",vRe],["div",vRe],["dl",vRe],["fieldset",vRe],["figcaption",vRe],["figure",vRe],["footer",vRe],["form",vRe],["header",vRe],["hr",vRe],["main",vRe],["nav",vRe],["ol",vRe],["pre",vRe],["section",vRe],["table",vRe],["ul",vRe],["rt",xRe],["rp",xRe],["tbody",yRe],["tfoot",yRe]]),CRe=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_Re=new Set(["math","svg"]),kRe=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),SRe=/\s|\//;class ARe{constructor(e,t={}){var r,n,i,o,s;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:mRe)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}ontext(e,t){var r,n;const i=this.getSlice(e,t);this.endIndex=t-1,null===(n=(r=this.cbs).ontext)||void 0===n||n.call(r,i),this.startIndex=t}ontextentity(e){var t,r;const n=this.tokenizer.getSectionStart();this.endIndex=n-1,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,JEe(e)),this.startIndex=n}isVoidElement(e){return!this.options.xmlMode&&CRe.has(e)}onopentagname(e,t){this.endIndex=t;let r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(e){var t,r,n,i;this.openTagStart=this.startIndex,this.tagname=e;const o=!this.options.xmlMode&&wRe.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){const e=this.stack.pop();null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,e,!0)}this.isVoidElement(e)||(this.stack.push(e),_Re.has(e)?this.foreignContext.push(!0):kRe.has(e)&&this.foreignContext.push(!1)),null===(i=(n=this.cbs).onopentagname)||void 0===i||i.call(n,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&(null===(r=(t=this.cbs).onopentag)||void 0===r||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var r,n,i,o,s,a;this.endIndex=t;let l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(_Re.has(l)||kRe.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(n=(r=this.cbs).onopentagname)||void 0===n||n.call(r,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(a=(s=this.cbs).onclosetag)||void 0===a||a.call(s,"br",!1));else{const e=this.stack.lastIndexOf(l);if(-1!==e)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),0!==t)}else this.stack.length=e;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,r;const n=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===n&&(null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,n,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;const r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=JEe(e)}onattribend(e,t){var r,n;this.endIndex=t,null===(n=(r=this.cbs).onattribute)||void 0===n||n.call(r,this.attribname,this.attribvalue,e===sRe.Double?'"':e===sRe.Single?"'":e===sRe.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(SRe);let r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(e,t){this.endIndex=t;const r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${e}`,`!${r}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${e}`,`?${r}`)}this.startIndex=t+1}oncomment(e,t,r){var n,i,o,s;this.endIndex=t,null===(i=(n=this.cbs).oncomment)||void 0===i||i.call(n,this.getSlice(e,t-r)),null===(s=(o=this.cbs).oncommentend)||void 0===s||s.call(o),this.startIndex=t+1}oncdata(e,t,r){var n,i,o,s,a,l,c,u,d,p;this.endIndex=t;const h=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(n=this.cbs).oncdatastart)||void 0===i||i.call(n),null===(s=(o=this.cbs).ontext)||void 0===s||s.call(o,h),null===(l=(a=this.cbs).oncdataend)||void 0===l||l.call(a)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,`[CDATA[${h}]]`),null===(p=(d=this.cbs).oncommentend)||void 0===p||p.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,r;this.ended?null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,r;this.ended?null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}function ERe(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(ERe([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(ERe([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(ERe([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(ERe([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));const RRe=/["&'<>$\x80-\uFFFF]/g,IRe=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),ORe=null!=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function MRe(e){let t,r="",n=0;for(;null!==(t=RRe.exec(e));){const i=t.index,o=e.charCodeAt(i),s=IRe.get(o);void 0!==s?(r+=e.substring(n,i)+s,n=i+1):(r+=`${e.substring(n,i)}&#x${ORe(e,i).toString(16)};`,n=RRe.lastIndex+=Number(55296==(64512&o)))}return r+e.substr(n)}function TRe(e,t){return function(r){let n,i=0,o="";for(;n=e.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=t.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}TRe(/[&<>'"]/g,IRe);const LRe=TRe(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),PRe=TRe(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var jRe,NRe;!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(jRe||(jRe={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(NRe||(NRe={}));const DRe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),BRe=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),FRe=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function $Re(e){return e.replace(/"/g,"&quot;")}const zRe=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function URe(e,t={}){const r="length"in e?e:[e];let n="";for(let e=0;e<r.length;e++)n+=WRe(r[e],t);return n}function WRe(e,t){switch(e.type){case BSe:return URe(e.children,t);case HSe:case $Se:return`<${e.data}>`;case zSe:return`\x3c!--${e.data}--\x3e`;case VSe:return function(e){return`<![CDATA[${e.children[0].data}]]>`}(e);case USe:case WSe:case qSe:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=DRe.get(e.name))&&void 0!==r?r:e.name,e.parent&&qRe.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&VRe.has(e.name)&&(t={...t,xmlMode:"foreign"});let n=`<${e.name}`;const i=function(e,t){var r;if(!e)return;const n=!1===(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)?$Re:t.xmlMode||"utf8"!==t.encodeEntities?MRe:LRe;return Object.keys(e).map((r=>{var i,o;const s=null!==(i=e[r])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(r=null!==(o=BRe.get(r))&&void 0!==o?o:r),t.emptyAttrs||t.xmlMode||""!==s?`${r}="${n(s)}"`:r})).join(" ")}(e.attribs,t);return i&&(n+=` ${i}`),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&zRe.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=URe(e.children,t)),!t.xmlMode&&zRe.has(e.name)||(n+=`</${e.name}>`)),n}(e,t);case FSe:return function(e,t){var r;let n=e.data||"";return!1===(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)||!t.xmlMode&&e.parent&&FRe.has(e.parent.name)||(n=t.xmlMode||"utf8"!==t.encodeEntities?MRe(n):PRe(n)),n}(e,t)}}const qRe=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),VRe=new Set(["svg","math"]);var HRe;!function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(HRe||(HRe={}));var GRe=r(4744);function ZRe(e,t,r=()=>{}){if(void 0===e){const e=function(...r){return t(e,...r)};return e}return e>=0?function(...n){return t(ZRe(e-1,t,r),...n)}:r}function KRe(e,t){let r=0,n=e.length;for(;r<n&&e[r]===t;)++r;for(;n>r&&e[n-1]===t;)--n;return r>0||n<e.length?e.substring(r,n):e}function XRe(e,t){const r=new Map;for(let n=e.length;n-- >0;){const i=e[n],o=t(i);r.set(o,r.has(o)?GRe(i,r.get(o),{arrayMerge:YRe}):i)}return[...r.values()].reverse()}const YRe=(e,t,r)=>[...t];function JRe(e,t){for(const r of t){if(!e)return;e=e[r]}return e}function QRe(e,t="a",r=26){const n=[];do{e-=1,n.push(e%r),e=e/r|0}while(e>0);const i=t.charCodeAt(0);return n.reverse().map((e=>String.fromCharCode(i+e))).join("")}const eIe=["I","X","C","M"],tIe=["V","L","D"];function rIe(e){return[...e+""].map((e=>+e)).reverse().map(((e,t)=>e%5<4?(e<5?"":tIe[t])+eIe[t].repeat(e%5):eIe[t]+(e<5?tIe[t]:eIe[t+1]))).reverse().join("")}class nIe{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=JRe(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=JRe(e,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();const r=0===this.nextLineWords.length,n=e.length+(r?0:1);if(n<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=n;else{const[t,...n]=this.splitLongWord(e);r||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(const e of n)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){const e=this.nextLineWords.pop();if(void 0!==e){const t=0===this.nextLineWords.length,r=e.length+(t?0:1);this.nextLineAvailableChars+=r}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{const r=this.popWord();this.pushWord(r?r.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},(()=>[]))),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((e=>e.join(" "))).join("\n")}splitLongWord(e){const t=[];let r=0;for(;e.length>this.maxLineLength;){const n=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),o=n.lastIndexOf(this.wrapCharacters[r]);if(o>-1)e=n.substring(o+1)+i,t.push(n.substring(0,o+1));else{if(r++,!(r<this.wrapCharacters.length)){if(this.forceWrapOnLimit){if(t.push(n),(e=i).length>this.maxLineLength)continue}else e=n+i;break}e=n+i}}return t.push(e),t}}class iIe{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class oIe extends iIe{constructor(e,t=null,r=1,n=void 0){super(t),this.leadingLineBreaks=r,this.inlineTextBuilder=new nIe(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class sIe extends oIe{constructor(e,t=null,{interRowLineBreaks:r=1,leadingLineBreaks:n=2,maxLineLength:i,maxPrefixLength:o=0,prefixAlign:s="left"}={}){super(e,t,n,i),this.maxPrefixLength=o,this.prefixAlign=s,this.interRowLineBreaks=r}}class aIe extends oIe{constructor(e,t=null,{leadingLineBreaks:r=1,maxLineLength:n,prefix:i=""}={}){super(e,t,r,n),this.prefix=i}}class lIe extends iIe{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class cIe extends iIe{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class uIe extends iIe{constructor(e,t=null,r=void 0){super(t),this.inlineTextBuilder=new nIe(e,r),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class dIe extends iIe{constructor(e=null,t){super(e),this.transform=t}}class pIe{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;const t=(r=this.whitespaceChars,[...r].map((e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0"))).join(""));var r;if(this.leadingWhitespaceRe=new RegExp(`^[${t}]`),this.trailingWhitespaceRe=new RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${t}])`,"g"),this.newlineOrNonNewlineStringRe=new RegExp("(\\n|[^\\n]+)","g"),e.preserveNewlines){const e=new RegExp(`\\n|[^\\n${t}]+`,"gm");this.shrinkWrapAdd=function(t,r,n=e=>e,i=!1){if(!t)return;const o=r.stashedSpace;let s=!1,a=e.exec(t);if(a)for(s=!0,"\n"===a[0]?r.startNewLine():o||this.testLeadingWhitespace(t)?r.pushWord(n(a[0]),i):r.concatWord(n(a[0]),i);null!==(a=e.exec(t));)"\n"===a[0]?r.startNewLine():r.pushWord(n(a[0]),i);r.stashedSpace=o&&!s||this.testTrailingWhitespace(t)}}else{const e=new RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,r,n=e=>e,i=!1){if(!t)return;const o=r.stashedSpace;let s=!1,a=e.exec(t);if(a)for(s=!0,o||this.testLeadingWhitespace(t)?r.pushWord(n(a[0]),i):r.concatWord(n(a[0]),i);null!==(a=e.exec(t));)r.pushWord(n(a[0]),i);r.stashedSpace=o&&!s||this.testTrailingWhitespace(t)}}}addLiteral(e,t,r=!0){if(!e)return;const n=t.stashedSpace;let i=!1,o=this.newlineOrNonNewlineStringRe.exec(e);if(o)for(i=!0,"\n"===o[0]?t.startNewLine():n?t.pushWord(o[0],r):t.concatWord(o[0],r);null!==(o=this.newlineOrNonNewlineStringRe.exec(e));)"\n"===o[0]?t.startNewLine():t.pushWord(o[0],r);t.stashedSpace=n&&!i}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t,r=0;for(;null!==(t=this.newlineOrNonWhitespaceRe.exec(e));){if("\n"!==t[0])return 0;r++}return r}}class hIe{constructor(e,t,r=void 0){this.options=e,this.picker=t,this.metadata=r,this.whitespaceProcessor=new pIe(e),this._stackItem=new oIe(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new dIe(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;const e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){const e=this._wordTransformer?e=>gIe(e,this._wordTransformer):void 0,t=this.options.encodeCharacters;return e?t?r=>t(e(r)):e:t}_popStackItem(){const e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof oIe||this._stackItem instanceof aIe||this._stackItem instanceof uIe)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof oIe||this._stackItem instanceof aIe||this._stackItem instanceof uIe)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof oIe||this._stackItem instanceof aIe||this._stackItem instanceof uIe)if(this._stackItem.isPre)this._stackItem.rawText+=e;else if(0!==e.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){const t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0)return void this._stackItem.inlineTextBuilder.startNewLine(t)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,t?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}addLiteral(e){(this._stackItem instanceof oIe||this._stackItem instanceof aIe||this._stackItem instanceof uIe)&&0!==e.length&&(this._stackItem.isPre?this._stackItem.rawText+=e:(this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0))}openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:r=!1}={}){const n=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new oIe(this.options,this._stackItem,e,n),r&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){const r=this._popStackItem(),n=t?t(fIe(r)):fIe(r);mIe(this._stackItem,n,r.leadingLineBreaks,Math.max(r.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:t="left",interRowLineBreaks:r=1,leadingLineBreaks:n=2}={}){this._stackItem=new sIe(this.options,this._stackItem,{interRowLineBreaks:r,leadingLineBreaks:n,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=""}={}){if(!(this._stackItem instanceof sIe))throw new Error("Can't add a list item to something that is not a list! Check the formatter.");const t=this._stackItem,r=Math.max(e.length,t.maxPrefixLength),n=Math.max(20,t.inlineTextBuilder.maxLineLength-r);this._stackItem=new aIe(this.options,t,{prefix:e,maxLineLength:n,leadingLineBreaks:t.interRowLineBreaks})}closeListItem(){const e=this._popStackItem(),t=e.next,r=Math.max(e.prefix.length,t.maxPrefixLength),n="\n"+" ".repeat(r);mIe(t,("right"===t.prefixAlign?e.prefix.padStart(r):e.prefix.padEnd(r))+fIe(e).replace(/\n/g,n),e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){const t=this._popStackItem(),r=fIe(t);r&&mIe(this._stackItem,r,t.leadingLineBreaks,e)}openTable(){this._stackItem=new lIe(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof lIe))throw new Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new cIe(this._stackItem)}openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof cIe))throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new uIe(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:t=1}={}){const r=this._popStackItem(),n=KRe(fIe(r),"\n");r.next.cells.push({colspan:e,rowspan:t,text:n})}closeTableRow(){const e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:t=2,trailingLineBreaks:r=2}){const n=e(this._popStackItem().rows);n&&mIe(this._stackItem,n,t,r)}toString(){return fIe(this._stackItem.getRoot())}}function fIe(e){if(!(e instanceof oIe||e instanceof aIe||e instanceof uIe))throw new Error("Only blocks, list items and table cells can be requested for text contents.");return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function mIe(e,t,r,n){if(!(e instanceof oIe||e instanceof aIe||e instanceof uIe))throw new Error("Only blocks, list items and table cells can contain text.");const i=fIe(e),o=Math.max(e.stashedLineBreaks,r);e.inlineTextBuilder.clear(),i?e.rawText=i+"\n".repeat(o)+t:(e.rawText=t,e.leadingLineBreaks=o),e.stashedLineBreaks=n}function gIe(e,t){return t?gIe(t.transform(e),t.next):e}function vIe(e={}){const t=e.selectors.filter((e=>!e.format));if(t.length)throw new Error("Following selectors have no specified format: "+t.map((e=>`\`${e.selector}\``)).join(", "));const r=new SEe(e.selectors.map((e=>[e.selector,e]))).build(WEe);"function"!=typeof e.encodeCharacters&&(e.encodeCharacters=function(e){if(!e||0===Object.keys(e).length)return;const t=Object.entries(e).filter((([,e])=>!1!==e)),r=new RegExp(t.map((([e])=>{return`(${t=[...e][0],t.replace(/[\s\S]/g,(e=>"\\u"+e.charCodeAt().toString(16).padStart(4,"0")))})`;var t})).join("|"),"g"),n=t.map((([,e])=>e)),i=(e,...t)=>n[t.findIndex((e=>e))];return e=>e.replace(r,i)}(e.encodeCharacters));const n=new SEe(e.baseElements.selectors.map(((e,t)=>[e,t+1]))).build(WEe);function i(t){return function(e,t,r){const n=[];const i=ZRe(t.limits.maxDepth,(function(e,i){i=i.slice(0,t.limits.maxChildNodes);for(const o of i){if("tag"!==o.type)continue;const i=r.pick1(o);if(i>0?n.push({selectorIndex:i,element:o}):o.children&&e(o.children),n.length>=t.limits.maxBaseElements)return}}));return i(e),"occurrence"!==t.baseElements.orderBy&&n.sort(((e,t)=>e.selectorIndex-t.selectorIndex)),t.baseElements.returnDomByDefault&&0===n.length?e:n.map((e=>e.element))}(t,e,n)}const o=ZRe(e.limits.maxDepth,yIe,(function(t,r){r.addInline(e.limits.ellipsis||"")}));return function(t,n=void 0){return function(e,t,r,n,i,o){const s=r.limits.maxInputLength;s&&e&&e.length>s&&(console.warn(`Input length ${e.length} is above allowed limit of ${s}. Truncating without ellipsis.`),e=e.substring(0,s));const a=function(e,t){const r=new sAe(void 0,t);return new ARe(r,t).end(e),r.root}(e,{decodeEntities:r.decodeEntities}),l=i(a.children),c=new hIe(r,n,t);return o(l,c),c.toString()}(t,n,e,r,i,o)}}function yIe(e,t,r){if(!t)return;const n=r.options;t.length>n.limits.maxChildNodes&&(t=t.slice(0,n.limits.maxChildNodes)).push({data:n.limits.ellipsis,type:"text"});for(const i of t)switch(i.type){case"text":r.addInline(i.data);break;case"tag":{const t=r.picker.pick1(i);(0,n.formatters[t.format])(i,e,r,t.options||{});break}}}function bIe(e){const t=e.attribs&&e.attribs.length?" "+Object.entries(e.attribs).map((([e,t])=>""===t?e:`${e}=${t.replace(/"/g,"&quot;")}`)).join(" "):"";return`<${e.name}${t}>`}function xIe(e){return`</${e.name}>`}var wIe=Object.freeze({__proto__:null,block:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},blockHtml:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.startNoWrap(),r.addLiteral(URe(e,{decodeEntities:r.options.decodeEntities})),r.stopNoWrap(),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},blockString:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.addLiteral(n.string||""),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},blockTag:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.startNoWrap(),r.addLiteral(bIe(e)),r.stopNoWrap(),t(e.children,r),r.startNoWrap(),r.addLiteral(xIe(e)),r.stopNoWrap(),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},inline:function(e,t,r,n){t(e.children,r)},inlineHtml:function(e,t,r,n){r.startNoWrap(),r.addLiteral(URe(e,{decodeEntities:r.options.decodeEntities})),r.stopNoWrap()},inlineString:function(e,t,r,n){r.addLiteral(n.string||"")},inlineSurround:function(e,t,r,n){r.addLiteral(n.prefix||""),t(e.children,r),r.addLiteral(n.suffix||"")},inlineTag:function(e,t,r,n){r.startNoWrap(),r.addLiteral(bIe(e)),r.stopNoWrap(),t(e.children,r),r.startNoWrap(),r.addLiteral(xIe(e)),r.stopNoWrap()},skip:function(e,t,r,n){}});function CIe(e,t){return e[t]||(e[t]=[]),e[t]}function _Ie(e,t=0){for(;e[t];)t++;return t}function kIe(e,t,r,n){for(let i=0;i<e.rowspan;i++){const o=CIe(t,r+i);for(let t=0;t<e.colspan;t++)o[n+t]=e}}function SIe(e,t){return void 0===e[t]&&(e[t]=0===t?0:1+SIe(e,t-1)),e[t]}function AIe(e,t,r,n){e[t+r]=Math.max(SIe(e,t+r),SIe(e,t)+n)}function EIe(e,t){return t?("string"==typeof t[0]?t[0]:"[")+e+("string"==typeof t[1]?t[1]:"]"):e}function RIe(e,t,r,n,i){const o="function"==typeof t?t(e,n,i):e;return"/"===o[0]&&r?function(e){let t=e.length;for(;t>0&&"/"===e[t-1];)--t;return t<e.length?e.substring(0,t):e}(r)+o:o}function IIe(e,t,r,n,i){const o="li"===JRe(e,["parent","name"]);let s=0;const a=(e.children||[]).filter((e=>"text"!==e.type||!/^\s*$/.test(e.data))).map((function(e){if("li"!==e.name)return{node:e,prefix:""};const t=o?i().trimStart():i();return t.length>s&&(s=t.length),{node:e,prefix:t}}));if(a.length){r.openList({interRowLineBreaks:1,leadingLineBreaks:o?1:n.leadingLineBreaks||2,maxPrefixLength:s,prefixAlign:"left"});for(const{node:e,prefix:n}of a)r.openListItem({prefix:n}),t([e],r),r.closeListItem();r.closeList({trailingLineBreaks:o?1:n.trailingLineBreaks||2})}}function OIe(e,t,r,n){function i(e){const i=+JRe(e,["attribs","colspan"])||1,o=+JRe(e,["attribs","rowspan"])||1;r.openTableCell({maxColumnWidth:n.maxColumnWidth}),t(e.children,r),r.closeTableCell({colspan:i,rowspan:o})}r.openTable(),e.children.forEach((function e(t){if("tag"!==t.type)return;const o=!1!==n.uppercaseHeaderCells?e=>{r.pushWordTransform((e=>e.toUpperCase())),i(e),r.popWordTransform()}:i;switch(t.name){case"thead":case"tbody":case"tfoot":case"center":return void t.children.forEach(e);case"tr":r.openTableRow();for(const e of t.children)if("tag"===e.type)switch(e.name){case"th":o(e);break;case"td":i(e)}r.closeTableRow()}})),r.closeTable({tableToString:e=>function(e,t,r){const n=[];let i=0;const o=e.length,s=[0];for(let r=0;r<o;r++){const o=CIe(n,r),a=e[r];let l=0;for(let e=0;e<a.length;e++){const i=a[e];l=_Ie(o,l),kIe(i,n,r,l),l+=i.colspan,i.lines=i.text.split("\n");const c=i.lines.length;AIe(s,r,i.rowspan,c+t)}i=o.length>i?o.length:i}!function(e,t){for(let r=0;r<t;r++){const t=CIe(e,r);for(let n=0;n<r;n++){const i=CIe(e,n);if(t[n]||i[r]){const e=t[n];t[n]=i[r],i[r]=e}}}}(n,o>i?o:i);const a=[],l=[0];for(let e=0;e<i;e++){let t,i=0;const c=Math.min(o,n[e].length);for(;i<c;)if(t=n[e][i],t){if(!t.rendered){let n=0;for(let r=0;r<t.lines.length;r++){const o=t.lines[r],c=s[i]+r;a[c]=(a[c]||"").padEnd(l[e])+o,n=o.length>n?o.length:n}AIe(l,e,t.colspan,n+r),t.rendered=!0}i+=t.rowspan}else{const e=s[i];a[e]=a[e]||"",i++}}return a.join("\n")}(e,n.rowSpacing??0,n.colSpacing??3),leadingLineBreaks:n.leadingLineBreaks,trailingLineBreaks:n.trailingLineBreaks})}var MIe=Object.freeze({__proto__:null,anchor:function(e,t,r,n){const i=function(){if(n.ignoreHref)return"";if(!e.attribs||!e.attribs.href)return"";let t=e.attribs.href.replace(/^mailto:/,"");return n.noAnchorUrl&&"#"===t[0]?"":(t=RIe(t,n.pathRewrite,n.baseUrl,r.metadata,e),t)}();if(i){let o="";r.pushWordTransform((e=>(e&&(o+=e),e))),t(e.children,r),r.popWordTransform(),n.hideLinkHrefIfSameAsText&&i===o||r.addInline(o?" "+EIe(i,n.linkBrackets):i,{noWordTransform:!0})}else t(e.children,r)},blockquote:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2,blockTransform:e=>(!1!==n.trimEmptyLines?KRe(e,"\n"):e).split("\n").map((e=>"> "+e)).join("\n")})},dataTable:OIe,heading:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),!1!==n.uppercase?(r.pushWordTransform((e=>e.toUpperCase())),t(e.children,r),r.popWordTransform()):t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},horizontalLine:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),r.addInline("-".repeat(n.length||r.options.wordwrap||40)),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},image:function(e,t,r,n){const i=e.attribs||{},o=i.alt?i.alt:"",s=i.src?RIe(i.src,n.pathRewrite,n.baseUrl,r.metadata,e):"",a=s?o?o+" "+EIe(s,n.linkBrackets):EIe(s,n.linkBrackets):o;r.addInline(a,{noWordTransform:!0})},lineBreak:function(e,t,r,n){r.addLineBreak()},orderedList:function(e,t,r,n){let i=Number(e.attribs.start||"1");const o=function(e="1"){switch(e){case"a":return e=>QRe(e,"a");case"A":return e=>QRe(e,"A");case"i":return e=>rIe(e).toLowerCase();case"I":return e=>rIe(e);default:return e=>e.toString()}}(e.attribs.type);return IIe(e,t,r,n,(()=>" "+o(i++)+". "))},paragraph:function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks||2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},pre:function(e,t,r,n){r.openBlock({isPre:!0,leadingLineBreaks:n.leadingLineBreaks||2}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks||2})},table:function(e,t,r,n){return function(e,t){if(!0===t)return!0;if(!e)return!1;const{classes:r,ids:n}=function(e){const t=[],r=[];for(const n of e)n.startsWith(".")?t.push(n.substring(1)):n.startsWith("#")&&r.push(n.substring(1));return{classes:t,ids:r}}(t),i=(e.class||"").split(" "),o=(e.id||"").split(" ");return i.some((e=>r.includes(e)))||o.some((e=>n.includes(e)))}(e.attribs,r.options.tables)?OIe(e,t,r,n):function(e,t,r,n){r.openBlock({leadingLineBreaks:n.leadingLineBreaks}),t(e.children,r),r.closeBlock({trailingLineBreaks:n.trailingLineBreaks})}(e,t,r,n)},unorderedList:function(e,t,r,n){const i=n.itemPrefix||" * ";return IIe(e,t,r,n,(()=>i))},wbr:function(e,t,r,n){r.addWordBreakOpportunity()}});const TIe={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f​",wordwrap:80},LIe=(e,t,r)=>[...t],PIe=(e,t,r)=>e.some((e=>"object"==typeof e))?((e,t)=>[...e,...t])(e,t):LIe(0,t);function jIe(e,t={},r=void 0){return function(e={}){return(e=GRe(TIe,e,{arrayMerge:LIe,customMerge:e=>"selectors"===e?PIe:void 0})).formatters=Object.assign({},wIe,MIe,e.formatters),e.selectors=XRe(e.selectors,(e=>e.selector)),function(e){if(e.tags){const t=Object.entries(e.tags).map((([e,t])=>({...t,selector:e||"*"})));e.selectors.push(...t),e.selectors=XRe(e.selectors,(e=>e.selector))}function t(e,t,r){const n=t.pop();for(const r of t){let t=e[r];t||(t={},e[r]=t),e=t}e[n]=r}if(e.baseElement){const r=e.baseElement;t(e,["baseElements","selectors"],Array.isArray(r)?r:[r])}void 0!==e.returnDomByDefault&&t(e,["baseElements","returnDomByDefault"],e.returnDomByDefault);for(const r of e.selectors)"anchor"===r.format&&JRe(r,["options","noLinkBrackets"])&&t(r,["options","linkBrackets"],!1)}(e),vIe(e)}(t)(e,r)}const NIe=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),DIe=e=>{const t=NIe(e)?Object.values(e):e;return Array.isArray(t)?t:t.split(",")},BIe=e=>{const t=e.map((e=>e.trim()));return(0,i.jsx)(dY,{children:(0,i.jsx)(t3,{variant:"body2",sx:{whiteSpace:"pre-wrap"},children:t.join(",\n")})})};function FIe(e){return oY("MuiCardActions",e)}sY("MuiCardActions",["root","spacing"]);const $Ie=["disableSpacing","className"],zIe=b1("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,NK.A)({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),UIe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiCardActions"}),{disableSpacing:n=!1,className:o}=r,s=(0,DK.A)(r,$Ie),a=(0,NK.A)({},r,{disableSpacing:n}),l=(e=>{const{classes:t,disableSpacing:r}=e;return p1({root:["root",!r&&"spacing"]},FIe,t)})(a);return(0,i.jsx)(zIe,(0,NK.A)({className:d1(l.root,o),ownerState:a,ref:t},s))}));var WIe=s().forwardRef(((e,t)=>s().createElement(UIe,{...e,ref:t})));function qIe(){const{save:e}=h3(),{setHideLogInfotip:t}=dfe();return(0,i.jsxs)(Efe,{children:[(0,i.jsx)(Wfe,{children:(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",width:"260px",children:(0,r3.__)('Statuses auto-update every 12 hours. You can use the "Refresh data" button every 15 minutes for more frequent updates.',"site-mailer")})}),(0,i.jsx)(WIe,{children:(0,i.jsx)(r2,{variant:"contained",size:"small",onClick:()=>{e({site_mailer_hide_logs_status_refresh_infotip:!0}).then((()=>{t(!0)}))},children:(0,r3.__)("Got it","site-mailer")})})]})}function VIe({id:e,keepLog:t,msg:r}){const n=T0(),{success:o,error:s}=pfe(),{modalData:a,updateList:l,updateStats:c}=Fhe(),u=t&&r,d=(0,i.jsx)(dY,{as:"span",children:(0,i.jsx)(vbe,{disabled:!u,variant:"text",color:"secondary",size:"small",sx:{marginRight:"8px"},onClick:async()=>{try{await Mhe.resendMails([e]),await Promise.all([l(),c()]),o((0,i.jsx)(age,{sx:{marginRight:"4px"},children:(0,r3.__)("Email was resend successfully","site-mailer")}))}catch(e){s((0,i.jsx)(age,{children:tfe===String(e)?(0,r3.__)("Email resend failed, quota reached.","site-mailer"):(0,r3.__)("Email resend failed, try again.","site-mailer")}))}},children:(0,i.jsx)(ege,{color:u?"secondary":n.palette.action.disabled})})});return(0,i.jsxs)(Gme,{direction:"row",children:[u?(0,i.jsx)(hye,{title:(0,r3.__)("Resend","site-mailer"),arrow:!1,children:d}):(0,i.jsx)(xye,{content:(0,i.jsx)(Cye,{content:t?Khe:Zhe}),placement:"bottom-start",children:d,arrow:!1}),(0,i.jsx)(hye,{title:(0,r3.__)("Delete","site-mailer"),arrow:!1,children:(0,i.jsx)(vbe,{variant:"text",color:"secondary",size:"small",onClick:()=>{a.openModal([e])},children:(0,i.jsx)(Qme,{})})})]})}VIe.propTypes={id:Nhe().string.isRequired,keepLog:Nhe().bool.isRequired,msg:Nhe().string};const HIe=VIe;function GIe({logs:e,selectedItems:t,toggleItem:r,keepLog:n}){const o=n?"181px":"295px",s=n?"192px":"270px",{hideLogInfotip:a}=dfe(),{statusesModal:l}=Fhe(),c=(e,t)=>()=>l.openStatusesModal(e,t),u=e=>{const t=e.match(/<body[^>]*>([\s\S]*?)<\/body>/i);return!!t&&t[1]};return(0,i.jsx)(JCe,{children:e?.map(((e,l)=>{const d=t.includes(e.api_id),p=((e,t)=>{const r=JSON.parse(e);if(""===r||0===r?.length||null===r)return[];const n=(e=>{const t=JSON.parse(e);if(NIe(t))return(e=>{const t={};return Object.keys(e).forEach((r=>{const n=e[r].split(": ");n[1]?t[r.toLowerCase()]=n[1]:n[0].toLowerCase()!==r.toLowerCase()&&(t[r.toLowerCase()]=n[0])})),t})(t);const r={},n=Array.isArray(t)?t:t?.split(/\r?\n|\r|\n/g);return n?.forEach((e=>{const t=e.split(": ");t[0]&&t[1]&&(r[t[0].toLowerCase()]=t[1])})),r})(t);let i=DIe(r);return["cc","bcc"].forEach((e=>{n?.[e]&&(i=[...i,...DIe(n[e])])})),i})(e.to,e.headers),h=e.status||e.single_status,f=e.opened||e.single_opened,m=p.length<2?h:Xhe,g=m===Xhe&&e.status_count>1,v=p.length<2&&f,y=PSe.sanitize(e.message||"");return(0,i.jsxs)(g_e,{hover:!0,selected:d,children:[(0,i.jsx)(QCe,{padding:"none",sx:{maxWidth:"42px",minWidth:"42px"},children:(0,i.jsx)(wke,{onClick:r(e.api_id),checked:d,color:"secondary"})}),(0,i.jsx)(QCe,{sx:{maxWidth:o,minWidth:o,paddingLeft:0},children:(0,i.jsx)(p_e,{children:(0,i.jsx)(t3,{variant:"body2",fontWeight:500,children:PSe.sanitize(e.subject)})})}),n?(0,i.jsx)(QCe,{sx:{maxWidth:"192px",minWidth:"192px"},children:y?(0,i.jsx)(xye,{content:(0,i.jsx)(Cye,{content:(b=y,/<\/?[a-z][\s\S]*>/i.test(b)?NSe(u(y)||y):(0,i.jsx)(dY,{dangerouslySetInnerHTML:{__html:y.replace(/\n/g,"<br />")}})),width:"500px"}),placement:"bottom-start",children:y?(0,i.jsx)(p_e,{children:(0,i.jsx)(t3,{variant:"body2",color:"text.primary",children:jIe(y)})}):null,arrow:!1}):null}):null,(0,i.jsx)(QCe,{sx:{maxWidth:s,minWidth:s},children:p?.length>0&&(0,i.jsx)(t3,{variant:"body2",color:"text.primary",component:"div",children:(0,i.jsx)(xye,{content:(0,i.jsx)(Cye,{content:(0,i.jsx)(t3,{variant:"body2",color:"text.primary",sx:{whiteSpace:"pre-wrap"},children:BIe(p)}),width:"auto"}),placement:"bottom-start",children:(0,i.jsxs)(dY,{display:"flex",gap:"4px",justifyContent:"space-between",sx:{cursor:"default"},children:[(0,i.jsx)(f_e,{children:p?.[0]||""}),(p?.length||0)>1&&(0,i.jsx)(dY,{as:"span",children:"+"+(p.length-1)})]}),arrow:!1})})}),(0,i.jsx)(h_e,{sx:{maxWidth:"115px",minWidth:"115px"},children:(0,i.jsx)(t3,{variant:"body2",color:"text.primary",fontWeight:500,children:e.source})}),(0,i.jsx)(QCe,{sx:{maxWidth:"108px",minWidth:"108px"},children:(0,i.jsx)(dY,{children:(0,i.jsx)(xye,{content:(0,i.jsx)(qIe,{}),placement:"left",arrow:!0,open:!a&&0===l,children:g?(0,i.jsx)(r2,{variant:"text",size:"small",color:"secondary",endIcon:(0,i.jsx)(nke,{}),onClick:c(e.api_id,e.subject),children:Yhe[m]}):(0,i.jsx)(dY,{component:"span",display:"inline-flex",children:(0,i.jsx)(b_e,{status:m})})})})}),(0,i.jsx)(QCe,{sx:{maxWidth:"108px",minWidth:"108px"},children:1===p.length&&"1"===v&&(0,i.jsx)(S1,{color:"success",sx:{marginTop:"5px"},children:(0,i.jsx)(x_e,{})})}),(0,i.jsxs)(m_e,{sx:{maxWidth:"180px",minWidth:"180px"},children:[(0,i.jsx)(t3,{className:"el-mailer-date",variant:"body2",color:"text.tertiary",children:(0,r3.sprintf)(
// Translators: %1$s - date, %2$s - time
// Translators: %1$s - date, %2$s - time
(0,r3.__)("%1$s at %2$s","site-mailer"),(0,e_e.dateI18n)("Y/m/d",e.created_at,!1),(0,e_e.dateI18n)("g:i a",e.created_at,!1))}),(0,i.jsx)(dY,{as:"div",className:"el-mailer-cta",children:(0,i.jsx)(HIe,{id:e.api_id,keepLog:n,msg:y})})]})]},`log-item-row-${e.id}`);var b}))})}GIe.propTypes={logs:Nhe().arrayOf(Nhe().shape({id:Nhe().string.isRequired,activity:Nhe().string,api_id:Nhe().string.isRequired,created_at:Nhe().string.isRequired,message:Nhe().string,source:Nhe().string.isRequired,status_count:Nhe().string.isRequired,single_status:Nhe().string,single_opened:Nhe().string,subject:Nhe().string.isRequired,to:Nhe().string.isRequired,updated_at:Nhe().string.isRequired})),selectedItems:Nhe().arrayOf(Nhe().string).isRequired,toggleItem:Nhe().func.isRequired,keepLog:Nhe().bool.isRequired};const ZIe=GIe,KIe=kwe((0,i.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function XIe(e){return oY("MuiTableSortLabel",e)}const YIe=sY("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),JIe=["active","children","className","direction","hideSortIcon","IconComponent"],QIe=b1(w0,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${YIe.icon}`]:{opacity:.5}},[`&.${YIe.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${YIe.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),eOe=b1("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${h1(r.direction)}`]]}})((({theme:e,ownerState:t})=>(0,NK.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"}))),tOe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTableSortLabel"}),{active:n=!1,children:o,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:c=KIe}=r,u=(0,DK.A)(r,JIe),d=(0,NK.A)({},r,{active:n,direction:a,hideSortIcon:l,IconComponent:c}),p=(e=>{const{classes:t,direction:r,active:n}=e;return p1({root:["root",n&&"active"],icon:["icon",`iconDirection${h1(r)}`]},XIe,t)})(d);return(0,i.jsxs)(QIe,(0,NK.A)({className:d1(p.root,s),component:"span",disableRipple:!0,ownerState:d,ref:t},u,{children:[o,l&&!n?null:(0,i.jsx)(eOe,{as:c,className:d1(p.icon),ownerState:d})]}))}));var rOe=s().forwardRef(((e,t)=>s().createElement(tOe,{...e,ref:t})));function nOe({toggleAll:e,isAllSelected:t,keepLog:r}){const{params:o,updateList:s}=Fhe(),[a,l]=(0,n.useState)({subject:"desc",to:"desc",source:"desc",status:"desc",opened:"desc",created_at:"desc"}),c=(e,t)=>async()=>{const r="desc"!==t?"desc":"asc",n={...o,orderBy:e,order:r};await s(n),l({...a,[e]:r})};return(0,i.jsx)(R_e,{children:(0,i.jsxs)(qCe,{children:[(0,i.jsx)(QCe,{variant:"head",padding:"none",children:(0,i.jsx)(wke,{checked:t,onClick:e(t),color:"secondary"})}),(0,i.jsx)(QCe,{variant:"head",style:{paddingLeft:0},children:(0,i.jsx)(rOe,{onClick:c("subject",a.subject),direction:a.subject,active:"subjects"===o.orderBy,children:(0,r3.__)("Subject","site-mailer")})}),r?(0,i.jsx)(QCe,{variant:"head",children:(0,r3.__)("Message","site-mailer")}):null,(0,i.jsx)(QCe,{variant:"head",children:(0,i.jsx)(rOe,{onClick:c("to",a.to),direction:a.to,active:"to"===o.orderBy,children:(0,r3.__)("To","site-mailer")})}),(0,i.jsx)(QCe,{variant:"head",children:(0,i.jsx)(rOe,{onClick:c("source",a.source),direction:a.source,active:"source"===o.orderBy,children:(0,r3.__)("Source","site-mailer")})}),(0,i.jsx)(QCe,{variant:"head",children:(0,i.jsx)(rOe,{onClick:c("status",a.status),direction:a.status,active:"status"===o.orderBy,children:(0,r3.__)("Status","site-mailer")})}),(0,i.jsx)(QCe,{variant:"head",children:(0,i.jsx)(rOe,{onClick:c("opened",a.opened),direction:a.opened,active:"opened"===o.orderBy,children:(0,r3.__)("Opened","site-mailer")})}),(0,i.jsx)(QCe,{variant:"head",children:(0,i.jsx)(rOe,{onClick:c("created_at",a.created_at),direction:a.created_at,active:"created_at"===o.orderBy,children:(0,r3.__)("Date sent","site-mailer")})})]})})}nOe.propTypes={toggleAll:Nhe().func.isRequired,isAllSelected:Nhe().bool.isRequired,keepLog:Nhe().bool.isRequired};const iOe=nOe,oOe=function(){const{keepLog:e=!1}=gfe(),{list:t,params:r,modalData:n,updateList:o,setParams:s}=Fhe(),{isAllSelected:a,selectedItems:l,toggleItem:c,toggleAll:u}=Rme(t);return(0,i.jsxs)(fme,{disableGutters:!0,maxWidth:"xl",children:[(0,i.jsx)(Efe,{variant:"outlined",square:!1,children:(0,i.jsxs)(Wfe,{children:[(0,i.jsx)(jye,{actionText:(0,r3.__)("Delete","site-mailer"),selectedItems:l,deleteItems:n.openModal}),(0,i.jsxs)(Eme,{children:[(0,i.jsxs)(Cme,{children:[(0,i.jsx)(iOe,{toggleAll:u,isAllSelected:a,keepLog:e}),t.items?.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ZIe,{logs:t?.items??[],toggleItem:c,selectedItems:l,keepLog:e}),(0,i.jsx)(VCe,{count:Number(t?.total??0),params:r,updateList:o,setParams:s})]})]}),t.total&&0===Number(t.total)&&(0,i.jsx)(rke,{})]})]})}),t.items?.length>0&&(0,i.jsx)(O_e,{}),(0,i.jsx)(F_e,{})]})};var sOe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 9.21967C5.76256 8.92678 6.23744 8.92678 6.53033 9.21967L12 14.6893L17.4697 9.21967C17.7626 8.92678 18.2374 8.92678 18.5303 9.21967C18.8232 9.51256 18.8232 9.98744 18.5303 10.2803L12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L5.46967 10.2803C5.17678 9.98744 5.17678 9.51256 5.46967 9.21967Z"})))),aOe=s().forwardRef(((e,t)=>s().createElement(Sxe,{...e,ref:t})));const lOe=s().forwardRef(((e,t)=>s().createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 9.21967C5.76256 8.92678 6.23744 8.92678 6.53033 9.21967L12 14.6893L17.4697 9.21967C17.7626 8.92678 18.2374 8.92678 18.5303 9.21967C18.8232 9.51256 18.8232 9.98744 18.5303 10.2803L12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L5.46967 10.2803C5.17678 9.98744 5.17678 9.51256 5.46967 9.21967Z"})))),cOe=s().forwardRef(((e,t)=>{const{MenuProps:r={},...n}=e;return s().createElement(oCe,{...n,MenuProps:{...r,MenuListProps:{dense:"tiny"===n.size,...r.MenuListProps||{}}},ref:t})}));cOe.defaultProps={IconComponent:lOe};var uOe=cOe;const dOe=c1(S1)`
	position: absolute;
	top: 50%;
	right: 8px;
	cursor: pointer;
	pointer-events: none;
	transform: translateY(-50%);
`,pOe=function({period:e,handleChange:t}){return(0,i.jsxs)(uOe,{onChange:t,value:e,size:"small",IconComponent:()=>(0,i.jsx)(dOe,{children:(0,i.jsx)(sOe,{})}),sx:{width:"270px",marginRight:2,position:"relative"},children:[(0,i.jsx)(aOe,{value:0,children:(0,r3.__)("Today","site-mailer")}),(0,i.jsx)(aOe,{value:1,children:(0,r3.__)("Yesterday","site-mailer")}),(0,i.jsx)(aOe,{value:7,children:(0,r3.__)("Last 7 days","site-mailer")}),(0,i.jsx)(aOe,{value:30,children:(0,r3.__)("Last 30 days","site-mailer")})]})};var hOe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.55012 4.45178C9.23098 3.48072 11.1845 3.08925 13.1097 3.33767C15.035 3.58609 16.8251 4.46061 18.2045 5.82653C19.5838 7.19245 20.4757 8.97399 20.743 10.8967C20.8 11.307 20.5136 11.6858 20.1033 11.7428C19.6931 11.7998 19.3142 11.5135 19.2572 11.1032C19.0353 9.50635 18.2945 8.02677 17.149 6.89236C16.0035 5.75795 14.5167 5.03165 12.9178 4.82534C11.3189 4.61902 9.69644 4.94414 8.30047 5.75061C7.24361 6.36117 6.36093 7.22198 5.72541 8.24995H8.00009C8.41431 8.24995 8.75009 8.58574 8.75009 8.99995C8.75009 9.41417 8.41431 9.74995 8.00009 9.74995H4.51686C4.5055 9.75021 4.49412 9.75021 4.48272 9.74995H4.00009C3.58588 9.74995 3.25009 9.41417 3.25009 8.99995V4.99995C3.25009 4.58574 3.58588 4.24995 4.00009 4.24995C4.41431 4.24995 4.75009 4.58574 4.75009 4.99995V7.00691C5.48358 5.96916 6.43655 5.0951 7.55012 4.45178Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.89686 12.2571C4.30713 12.2001 4.68594 12.4864 4.74295 12.8967C4.96487 14.4936 5.70565 15.9731 6.85119 17.1075C7.99673 18.242 9.48347 18.9683 11.0824 19.1746C12.6813 19.3809 14.3037 19.0558 15.6997 18.2493C16.7566 17.6387 17.6393 16.7779 18.2748 15.75H16.0001C15.5859 15.75 15.2501 15.4142 15.2501 15C15.2501 14.5857 15.5859 14.25 16.0001 14.25H19.4833C19.4947 14.2497 19.5061 14.2497 19.5175 14.25H20.0001C20.4143 14.25 20.7501 14.5857 20.7501 15V19C20.7501 19.4142 20.4143 19.75 20.0001 19.75C19.5859 19.75 19.2501 19.4142 19.2501 19V16.993C18.5166 18.0307 17.5636 18.9048 16.4501 19.5481C14.7692 20.5192 12.8157 20.9107 10.8904 20.6622C8.9652 20.4138 7.17504 19.5393 5.79572 18.1734C4.4164 16.8074 3.52443 15.0259 3.25723 13.1032C3.20022 12.6929 3.48658 12.3141 3.89686 12.2571Z"}))));const fOe=({refreshStatuses:e})=>{const{lastLogRefresh:t}=gfe(),r=(0,i.jsx)(dY,{padding:2,children:(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",children:(0,r3.__)("Manual refresh available every 15 minutes","site-mailer")})});return(0,i.jsx)(xye,{content:r,arrow:!1,disableHoverListener:!t,children:(0,i.jsx)(dY,{itemType:"div",children:(0,i.jsx)(r2,{startIcon:(0,i.jsx)(hOe,{}),size:"large",color:"secondary",variant:"outlined",onClick:e,disabled:t??!0,sx:{py:0,height:40},children:(0,r3.__)("Refresh Data","site-mailer")})})})};fOe.propTypes={refreshStatuses:Nhe().func.isRequired};const mOe=fOe,gOe=function(){const{refreshPluginSettings:e}=gfe(),{stats:t,params:r,updateStats:o,updateList:s}=Fhe(),{success:a}=pfe(),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(30);return(0,n.useEffect)((()=>{const e=new Date;e.setDate(e.getDate()-u),e.setHours(0,0,0,0);const t={...r,period:e.toISOString().slice(0,19).replace("T"," ")};s(t),o({period:t.period})}),[u]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(dY,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{marginBottom:3},children:[(0,i.jsx)(t3,{variant:"h5",children:(0,r3.__)("Email logs","site-mailer")}),(0,i.jsxs)(dY,{display:"flex",alignItems:"center",children:[(0,i.jsx)(pOe,{period:u,handleChange:e=>{d(Number(e.target.value))}}),(0,i.jsx)(mOe,{refreshStatuses:async()=>{try{c(!0),await Mhe.refreshLogsStatuses(),await Promise.all([o(),s(),e()]),a((0,r3.__)("Data was refreshed","site-mailer"))}finally{c(!1)}}})]})]}),(0,i.jsx)(Bfe,{stats:t}),(0,i.jsx)(oOe,{}),(0,i.jsx)(vfe,{loading:l})]})};function vOe(e){return oY("MuiDialogContentText",e)}sY("MuiDialogContentText",["root"]);const yOe=["children","className"],bOe=b1(Q2,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xOe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiDialogContentText"}),{className:n}=r,o=(0,DK.A)(r,yOe),s=(e=>{const{classes:t}=e,r=p1({root:["root"]},vOe,t);return(0,NK.A)({},t,r)})(o);return(0,i.jsx)(bOe,(0,NK.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:d1(s.root,n)},r,{classes:s}))}));var wOe=s().forwardRef(((e,t)=>s().createElement(xOe,{...e,ref:t})));const COe=function(){const{redirectToConnect:e}=(()=>{const{subscriptionId:e}=gfe(),t=async()=>Mhe.initConnect();return{redirectToConnect:async()=>{const e=await t();window.open(e,"_self").focus()},getConnectLink:t,getUpgradeLink:()=>{const t=new URL(Uhe);return t.searchParams.append("subscription_id",e),t.toString()}}})();return(0,i.jsx)(B_e,{title:(0,r3.__)("Email Deliverability","site-mailer"),onApprove:async()=>{await Mhe.disconnect(),await e()},approveText:(0,r3.__)("Reconnect","site-mailer"),approveButtonColor:"primary",showCancelButton:!1,logo:!1,dividers:!0,children:(0,i.jsxs)(wOe,{id:"alert-dialog-description",children:[(0,i.jsx)(t3,{children:(0,r3.__)("Sorry there was a glitch. Please try refreshing the page.","site-mailer")}),(0,i.jsx)(t3,{children:(0,r3.__)("If that does not resolve the issue try reconnecting your account to continue using Email Deliverability.","site-mailer")})]})})};function _Oe(e){return oY("MuiLink",e)}const kOe=sY("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var SOe=r(6481);const AOe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},EOe=({theme:e,ownerState:t})=>{const r=(e=>AOe[e]||e)(t.color),n=(0,SOe.Yn)(e,`palette.${r}`,!1)||t.color,i=(0,SOe.Yn)(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,nX.X4)(n,.4)},ROe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],IOe=b1(Q2,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${h1(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>(0,NK.A)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,NK.A)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:EOe({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kOe.focusVisible}`]:{outline:"auto"}}))),OOe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiLink"}),{className:n,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:h}=r,f=(0,DK.A)(r,ROe),{isFocusVisibleRef:m,onBlur:g,onFocus:v,ref:y}=V1(),[b,x]=o.useState(!1),w=O1(t,y),C=(0,NK.A)({},r,{color:s,component:a,focusVisible:b,underline:d,variant:p}),_=(e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e;return p1({root:["root",`underline${h1(i)}`,"button"===r&&"button",n&&"focusVisible"]},_Oe,t)})(C);return(0,i.jsx)(IOe,(0,NK.A)({color:s,className:d1(_.root,n),classes:u,component:a,onBlur:e=>{g(e),!1===m.current&&x(!1),l&&l(e)},onFocus:e=>{v(e),!0===m.current&&x(!0),c&&c(e)},ref:w,ownerState:C,variant:p,sx:[...Object.keys(AOe).includes(s)?[]:[{color:s}],...Array.isArray(h)?h:[h]]},f))})),MOe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},TOe=c1(OOe)((()=>({cursor:"pointer"}))),LOe={color:"primary.main"},POe=s().forwardRef(((e,t)=>{const{sx:r={},...n}={...LOe,...e},i=T0(),o=((e,t)=>!t.palette.primary.__unstableAccessibleMain||"primary.main"!==e&&"primary"!==e?t.palette.global?.__unstableAccessibleMain&&"global.main"===e?`global.${dJ}`:MOe[e]||e:`primary.${dJ}`)(n.color,i);return s().createElement(TOe,{...n,color:o,sx:{[uJ]:{color:o},...r},ref:t})}));POe.defaultProps=LOe;var jOe=POe;const NOe=c1(_2)`
	padding-inline-start: ${({theme:e})=>e.spacing(2)};
	list-style-type: disc;
`,DOe=c1(z2)`
	padding-block: 0;
	min-height: auto;
`,BOe=c1(o5)`
	display: list-item;
	color: ${({theme:e})=>e.palette.text.secondary};
	margin: 0;
`,FOe=({onClose:e})=>{const t=pfe(),[r,o]=(0,n.useState)(!1),s=()=>{(0,p3.dispatch)(d3.store).saveEntityRecord("root","site",{site_mailer_is_migration_popup_dismissed:!0}),e(),t.hint((0,i.jsxs)(i.Fragment,{children:[(0,r3.__)("You can always migrate your subscriptions from the","site-mailer")," ",(0,i.jsx)(jOe,{href:"/wp-admin/admin.php?page=elementor-home#/home/tool-manager",underline:"always",children:(0,r3.__)("Tool Manager","site-mailer")}),"."]}))};return(0,i.jsxs)(B_e,{onClose:s,onCancel:s,onApprove:async()=>{o(!0);try{const r=await Mhe.migrateToOne();console.log(r),r?.isMigrated?(e(),t.success((0,r3.__)("Site Mailer has successfully moved to your One subscription.","site-mailer")),setTimeout((()=>{window.location.reload()}),1500)):(o(!1),t.error((0,r3.__)("Site Mailer could not move to your One subscription. Please try again.","site-mailer")))}catch(e){o(!1);const r=e?.message??(0,r3.__)("Unknown error","site-mailer");t.error(`${(0,r3.__)("Site Mailer could not move to your One subscription.","site-mailer")} ${(0,r3.__)("Error:","site-mailer")} ${r}`)}},title:(0,r3.__)("Move Site Mailer to Elementor One","site-mailer"),approveText:(0,r3.__)("Move to One","site-mailer"),cancelText:(0,r3.__)("Not now","site-mailer"),approveButtonColor:"primary",approveButtonDisabled:r,showCloseButton:!0,logo:!1,maxWidth:"sm",fullWidth:!0,children:[(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",marginBlockEnd:2,children:(0,r3.__)("Site Mailer is currently active with its own subscription. You also have an Elementor One subscription for this site.","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",marginBlockEnd:1,children:(0,r3.__)("If you switch to Elementor One:","site-mailer")}),(0,i.jsxs)(NOe,{dense:!0,disablePadding:!0,children:[(0,i.jsx)(DOe,{disableGutters:!0,children:(0,i.jsx)(BOe,{primary:(0,r3.__)("Your current Site Mailer subscription will be deactivated","site-mailer")})}),(0,i.jsx)(DOe,{disableGutters:!0,children:(0,i.jsx)(BOe,{primary:(0,r3.__)("Site Mailer will use your shared Elementor One credits","site-mailer")})})]})]})};var $Oe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V4C12.75 4.41421 12.4142 4.75 12 4.75C11.5858 4.75 11.25 4.41421 11.25 4V3C11.25 2.58579 11.5858 2.25 12 2.25ZM5.06967 5.06967C5.36256 4.77678 5.83744 4.77678 6.13033 5.06967L6.83033 5.76967C7.12322 6.06256 7.12322 6.53744 6.83033 6.83033C6.53744 7.12322 6.06256 7.12322 5.76967 6.83033L5.06967 6.13033C4.77678 5.83744 4.77678 5.36256 5.06967 5.06967ZM18.9303 5.06967C19.2232 5.36256 19.2232 5.83744 18.9303 6.13033L18.2303 6.83033C17.9374 7.12322 17.4626 7.12322 17.1697 6.83033C16.8768 6.53744 16.8768 6.06256 17.1697 5.76967L17.8697 5.06967C18.1626 4.77678 18.6374 4.77678 18.9303 5.06967ZM12 7.75C11.108 7.75 10.2386 8.03066 9.51498 8.55222C8.79135 9.07378 8.25017 9.80981 7.9681 10.656C7.68602 11.5023 7.67735 12.4158 7.94332 13.2672C8.20928 14.1186 8.7364 14.8648 9.45 15.4C9.47737 15.4205 9.50331 15.4429 9.52763 15.467C9.76639 15.7033 9.97545 15.9663 10.1511 16.25H13.8489C14.0246 15.9663 14.2336 15.7033 14.4724 15.467C14.4967 15.4429 14.5226 15.4205 14.55 15.4C15.2636 14.8648 15.7907 14.1186 16.0567 13.2672C16.3226 12.4158 16.314 11.5023 16.0319 10.656C15.7498 9.80981 15.2086 9.07378 14.485 8.55222C13.7614 8.03066 12.892 7.75 12 7.75ZM14.9408 17.3899C14.9685 17.3444 14.9916 17.2956 15.0092 17.2444C15.1354 16.9955 15.2989 16.7666 15.4949 16.566C16.4376 15.8445 17.1342 14.8485 17.4885 13.7145C17.8483 12.5625 17.8366 11.3266 17.4549 10.1817C17.0733 9.0368 16.3411 8.041 15.3621 7.33536C14.3831 6.62971 13.2068 6.25 12 6.25C10.7932 6.25 9.61694 6.62971 8.63792 7.33536C7.65889 8.041 6.9267 9.0368 6.54507 10.1817C6.16344 11.3266 6.15171 12.5625 6.51155 13.7145C6.86579 14.8485 7.56245 15.8445 8.50515 16.566C8.7009 16.7665 8.86438 16.9951 8.99046 17.2438C9.00821 17.2954 9.03145 17.3446 9.05947 17.3905C9.0918 17.4648 9.12088 17.5406 9.14662 17.6178C9.28311 18.0273 9.3213 18.4632 9.25809 18.8902C9.2527 18.9265 9.25 18.9632 9.25 19C9.25 19.7293 9.53973 20.4288 10.0555 20.9445C10.5712 21.4603 11.2707 21.75 12 21.75C12.7293 21.75 13.4288 21.4603 13.9445 20.9445C14.4603 20.4288 14.75 19.7293 14.75 19C14.75 18.9632 14.7473 18.9265 14.7419 18.8902C14.6787 18.4632 14.7169 18.0273 14.8534 17.6178C14.8792 17.5404 14.9083 17.4644 14.9408 17.3899ZM13.2767 17.75H10.7233C10.7985 18.177 10.8081 18.6141 10.7509 19.0461C10.7625 19.3609 10.8926 19.6604 11.1161 19.8839C11.3505 20.1183 11.6685 20.25 12 20.25C12.3315 20.25 12.6495 20.1183 12.8839 19.8839C13.1074 19.6604 13.2375 19.3609 13.2491 19.0461C13.1919 18.6141 13.2015 18.177 13.2767 17.75ZM2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H4C4.41421 11.25 4.75 11.5858 4.75 12C4.75 12.4142 4.41421 12.75 4 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12ZM19.25 12C19.25 11.5858 19.5858 11.25 20 11.25H21C21.4142 11.25 21.75 11.5858 21.75 12C21.75 12.4142 21.4142 12.75 21 12.75H20C19.5858 12.75 19.25 12.4142 19.25 12Z"}))));const zOe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],UOe=["component","slots","slotProps"],WOe=["component"];function qOe(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:a}=t,l=(0,DK.A)(t,zOe),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=o,p=(0,DK.A)(o,UOe),h=u[e]||n,f=u5(d[e],i),m=c5((0,NK.A)({className:r},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:v}=m,y=(0,DK.A)(m.props,WOe),b=I1(v,null==f?void 0:f.ref,t.ref),x=s?s(y):{},w=(0,NK.A)({},i,x),C="root"===e?g||c:g,_=s5(h,(0,NK.A)({},"root"===e&&!c&&!u[e]&&a,"root"!==e&&!u[e]&&a,y,C&&{as:C},{ref:b}),w);return Object.keys(x).forEach((e=>{delete _[e]})),[h,_]}function VOe(e){return oY("MuiAlert",e)}const HOe=sY("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),GOe=kwe((0,i.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ZOe=kwe((0,i.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),KOe=kwe((0,i.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),XOe=kwe((0,i.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),YOe=kwe((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),JOe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],QOe=tge(),eMe=b1(Cfe,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${h1(r.color||r.severity)}`]]}})((({theme:e})=>{const t="light"===e.palette.mode?nX.e$:nX.a,r="light"===e.palette.mode?nX.a:nX.e$;return(0,NK.A)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${HOe.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${HOe.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.dark)).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,NK.A)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})})))]})})),tMe=b1("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),rMe=b1("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),nMe=b1("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),iMe={success:(0,i.jsx)(GOe,{fontSize:"inherit"}),warning:(0,i.jsx)(ZOe,{fontSize:"inherit"}),error:(0,i.jsx)(KOe,{fontSize:"inherit"}),info:(0,i.jsx)(XOe,{fontSize:"inherit"})},oMe=o.forwardRef((function(e,t){const r=QOe({props:e,name:"MuiAlert"}),{action:n,children:o,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:p=iMe,onClose:h,role:f="alert",severity:m="success",slotProps:g={},slots:v={},variant:y="standard"}=r,b=(0,DK.A)(r,JOe),x=(0,NK.A)({},r,{color:l,severity:m,variant:y,colorSeverity:l||m}),w=(e=>{const{variant:t,color:r,severity:n,classes:i}=e;return p1({root:["root",`color${h1(r||n)}`,`${t}${h1(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},VOe,i)})(x),C={slots:(0,NK.A)({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:(0,NK.A)({},u,g)},[_,k]=qOe("closeButton",{elementType:fbe,externalForwardedProps:C,ownerState:x}),[S,A]=qOe("closeIcon",{elementType:YOe,externalForwardedProps:C,ownerState:x});return(0,i.jsxs)(eMe,(0,NK.A)({role:f,elevation:0,ownerState:x,className:d1(w.root,s),ref:t},b,{children:[!1!==d?(0,i.jsx)(tMe,{ownerState:x,className:w.icon,children:d||p[m]||iMe[m]}):null,(0,i.jsx)(rMe,{ownerState:x,className:w.message,children:o}),null!=n?(0,i.jsx)(nMe,{ownerState:x,className:w.action,children:n}):null,null==n&&h?(0,i.jsx)(nMe,{ownerState:x,className:w.action,children:(0,i.jsx)(_,(0,NK.A)({size:"small","aria-label":a,title:a,color:"inherit",onClick:h},k,{children:(0,i.jsx)(S,(0,NK.A)({fontSize:"small"},A))}))}):null]}))})),sMe=c1(oMe)((({theme:e,severity:t,color:r,variant:n,ownerState:i})=>{const o="small"===i.size,s=function(e,t,r,n){const i=t||e;return i?"filled"===r?{"& .MuiButton-containedInherit:not(.Mui-disabled)":{color:n.palette[i].main,backgroundColor:"rgba(255, 255, 255, 1)","&:hover":{backgroundColor:"rgba(255, 255, 255, .96)"}},"& .MuiButton-outlinedInherit:not(.Mui-disabled):hover":{backgroundColor:n.palette[i].dark},"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)":{[uJ]:{color:n.palette[i].main}}}:{"&.MuiAlert-root":{color:n.palette.text.secondary},"& .MuiCloseButton-root":{color:n.palette.action.active},"& .MuiButton-containedInherit:not(.Mui-disabled)":{backgroundColor:n.palette[i].main,color:n.palette[i].contrastText,"&:hover":{backgroundColor:n.palette[i].dark,color:n.palette[i].contrastText}},"& .MuiButton-outlinedInherit:not(.Mui-disabled)":{borderColor:n.palette[i].main,color:n.palette[i].main,"&:hover":{backgroundColor:xQ(n.palette[i].main,.08),color:n.palette[i].main}},"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)":{[uJ]:{color:n.palette[i].contrastText}},"& a.MuiButtonBase-root.MuiButton-outlinedInherit:not(.Mui-disabled)":{[uJ]:{color:n.palette[i].main}}}:{}}(t,r,n,e),a=function(e,t){return"small"!==e.size?{}:{"& .MuiButtonBase-root.MuiButton-root":{fontSize:t.typography.caption.fontSize,letterSpacing:t.typography.caption.letterSpacing,lineHeight:1},"& .MuiButtonBase-root.MuiButton-contained":{padding:"8px 9px"},"& .MuiButtonBase-root.MuiButton-outlined":{padding:"7px 9px"}}}(i,e),l=o?{...e.typography.caption,fontWeight:e.typography.subtitle2.fontWeight,lineHeight:e.typography.subtitle2.lineHeight}:e.typography.subtitle2,c=o?{...e.typography.caption,lineHeight:e.typography.body2.lineHeight}:{};return{borderRadius:i.square?void 0:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],padding:o?e.spacing(1.5):e.spacing(1.5,2),"& .MuiAlert-message":{width:"100%",padding:0,minHeight:o?"28px":"31px",display:"flex",flexDirection:"row",flexWrap:"wrap",gap:o?e.spacing(1):e.spacing(1.5),...c},"& .MuiAlertTitle-root":{marginBottom:0,lineHeight:"inherit",marginRight:o?e.spacing(.25):e.spacing(.5),marginTop:0,...l},"& .MuiAlert-icon":{fontSize:o?"18px":"22px",padding:o?e.spacing(.25):0,paddingTop:o?"5px":e.spacing(.5),marginRight:o?e.spacing(.5):e.spacing(1.5)},"& .MuiAlert-action":{padding:o?e.spacing(.25,0,0):0,marginLeft:o?e.spacing(.5):e.spacing(1)},"&.MuiAlert-filledWarning":{color:e.palette.common.white},...a,...s}})),{slots:aMe,classNames:lMe}=mye("Alert",["actions","content"]),cMe=c1("div",aMe.content)((()=>({flexGrow:1,paddingTop:"6px"}))),uMe=c1("div",aMe.content)((({theme:e})=>({alignItems:"center",display:"flex",flexWrap:"wrap",gap:e.spacing(.25),maxWidth:"800px"}))),dMe=({children:e,...t})=>s().createElement(cMe,{...t},s().createElement(uMe,null,e)),pMe=c1("div")((({theme:e,ownerState:t})=>({display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:"small"===t.size?e.spacing(.5):e.spacing(1)}))),hMe={closeText:"Close",severity:"success",size:"medium"},fMe=s().forwardRef(((e,t)=>{const{onClose:r,action:n,secondaryAction:i,children:o,size:a,...l}={...hMe,...e},c=Boolean(n||i);return s().createElement(sMe,{iconMapping:{success:s().createElement(gMe,null),error:s().createElement(yMe,null),info:s().createElement(vMe,null),warning:s().createElement(bMe,null)},...l,ref:t,action:!!r&&s().createElement(Sbe,{color:"inherit",onClick:r,slotProps:{icon:{fontSize:"small"===a?"tiny":"small"}},title:l.closeText,"aria-label":l.closeText}),ownerState:{size:a,square:l.square}},s().createElement(dMe,{className:lMe.content},o),c&&s().createElement(pMe,{className:lMe.actions,ownerState:{size:a}},i,n))}));fMe.defaultProps=hMe;var mMe=fMe;function gMe(){return s().createElement(S1,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C10.7196 2.25 9.45176 2.50219 8.26884 2.99217C7.08591 3.48216 6.01108 4.20034 5.10571 5.10571C4.20034 6.01108 3.48216 7.08591 2.99217 8.26884C2.50219 9.45176 2.25 10.7196 2.25 12C2.25 13.2804 2.50219 14.5482 2.99217 15.7312C3.48216 16.9141 4.20034 17.9889 5.10571 18.8943C6.01108 19.7997 7.08591 20.5178 8.26884 21.0078C9.45176 21.4978 10.7196 21.75 12 21.75C13.2804 21.75 14.5482 21.4978 15.7312 21.0078C16.9141 20.5178 17.9889 19.7997 18.8943 18.8943C19.7997 17.9889 20.5178 16.9141 21.0078 15.7312C21.4978 14.5482 21.75 13.2804 21.75 12C21.75 10.7196 21.4978 9.45176 21.0078 8.26884C20.5178 7.08591 19.7997 6.01108 18.8943 5.10571C17.9889 4.20034 16.9141 3.48216 15.7312 2.99217C14.5482 2.50219 13.2804 2.25 12 2.25ZM16.2415 10.0563C16.5344 9.76339 16.5344 9.28852 16.2415 8.99563C15.9486 8.70273 15.4737 8.70273 15.1809 8.99563L10.7631 13.4134L8.81939 11.4697C8.5265 11.1768 8.05163 11.1768 7.75873 11.4697C7.46584 11.7626 7.46584 12.2374 7.75873 12.5303L10.2328 15.0044C10.3734 15.145 10.5642 15.224 10.7631 15.224C10.962 15.224 11.1528 15.145 11.2934 15.0044L16.2415 10.0563Z"}))}function vMe(){return s().createElement(S1,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM10.75 10C10.3358 10 10 10.3358 10 10.75C10 11.1642 10.3358 11.5 10.75 11.5H11V15.75C11 16.1642 11.3358 16.5 11.75 16.5H12.75C13.1642 16.5 13.5 16.1642 13.5 15.75C13.5 15.3358 13.1642 15 12.75 15H12.5V10.75C12.5 10.3618 12.2051 10.0425 11.8271 10.0039L11.75 10H10.75ZM11.4502 6.75C10.8979 6.75 10.4502 7.19772 10.4502 7.75C10.4502 8.30228 10.8979 8.75 11.4502 8.75H11.46L11.5625 8.74512C12.0666 8.69378 12.46 8.26767 12.46 7.75C12.46 7.23233 12.0666 6.80622 11.5625 6.75488L11.46 6.75H11.4502Z"}))}function yMe(){return s().createElement(S1,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0498 2C15.2873 2 15.5191 2.04048 15.7422 2.13965C15.962 2.23735 16.136 2.37531 16.2803 2.51953L20.9805 7.21973C21.1247 7.36397 21.2627 7.53802 21.3604 7.75781C21.4595 7.98094 21.5 8.21268 21.5 8.4502V15.0498C21.5 15.2873 21.4595 15.5191 21.3604 15.7422C21.2627 15.962 21.1247 16.136 20.9805 16.2803L16.2803 20.9805C16.136 21.1247 15.962 21.2627 15.7422 21.3604C15.5191 21.4595 15.2873 21.5 15.0498 21.5H8.4502C8.21268 21.5 7.98094 21.4595 7.75781 21.3604C7.53802 21.2627 7.36397 21.1247 7.21973 20.9805L2.51953 16.2803C2.37531 16.136 2.23735 15.962 2.13965 15.7422C2.04048 15.5191 2 15.2873 2 15.0498V8.4502C2 8.21268 2.04048 7.98094 2.13965 7.75781C2.23735 7.53802 2.37531 7.36397 2.51953 7.21973L7.21973 2.51953C7.36397 2.37531 7.53802 2.23735 7.75781 2.13965C7.98094 2.04048 8.21268 2 8.4502 2H15.0498ZM11.75 14.75C11.1977 14.75 10.75 15.1977 10.75 15.75C10.75 16.3023 11.1977 16.75 11.75 16.75H11.7598L11.8623 16.7451C12.3665 16.6939 12.7598 16.2678 12.7598 15.75C12.7598 15.2322 12.3665 14.8061 11.8623 14.7549L11.7598 14.75H11.75ZM11.75 7C11.3358 7 11 7.33579 11 7.75V12.75C11 13.1642 11.3358 13.5 11.75 13.5C12.1642 13.5 12.5 13.1642 12.5 12.75V7.75C12.5 7.33579 12.1642 7 11.75 7Z"}))}function bMe(){return s().createElement(S1,{viewBox:"0 0 24 24",fontSize:"inherit"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9302 3.00684C12.3573 3.03542 12.7729 3.16362 13.1431 3.38184C13.5618 3.6287 13.9074 3.98244 14.1451 4.40625L21.2456 16.6562L21.2915 16.751C21.4597 17.1668 21.524 17.6183 21.4781 18.0645C21.432 18.5106 21.2773 18.9397 21.0279 19.3125C20.7784 19.685 20.4411 19.9915 20.0464 20.2041C19.6517 20.4166 19.2105 20.529 18.7622 20.5322L18.7564 20.5332H4.75638C4.73812 20.5332 4.71964 20.5316 4.7017 20.5303C4.69631 20.5307 4.69052 20.5319 4.6851 20.5322L4.60795 20.5312L4.44388 20.5186C4.06393 20.476 3.69614 20.3543 3.36478 20.1611C2.98591 19.9403 2.66472 19.6317 2.42924 19.2617C2.19395 18.8919 2.051 18.4707 2.01127 18.0342C1.97166 17.5975 2.03678 17.1563 2.2017 16.75L2.2476 16.6562L9.34721 4.40625C9.58473 3.98261 9.93165 3.62868 10.3501 3.38184C10.7731 3.13252 11.2556 3.00006 11.7466 3L11.9302 3.00684ZM11.7574 15.7822C11.2051 15.7822 10.7574 16.2299 10.7574 16.7822C10.7574 17.3345 11.2051 17.7822 11.7574 17.7822H11.7671L11.8697 17.7773C12.3737 17.7259 12.7671 17.2998 12.7671 16.7822C12.7671 16.2647 12.3737 15.8386 11.8697 15.7871L11.7671 15.7822H11.7574ZM11.7564 8.0332C11.3424 8.03352 11.0064 8.36919 11.0064 8.7832V13.7832C11.0069 14.1968 11.3428 14.5329 11.7564 14.5332C12.1702 14.5332 12.5059 14.1969 12.5064 13.7832V8.7832C12.5064 8.36902 12.1706 8.03325 11.7564 8.0332Z"}))}function xMe(e){return e.substring(2).toLowerCase()}function wMe(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:s,touchEvent:a="onTouchEnd"}=e,l=o.useRef(!1),c=o.useRef(null),u=o.useRef(!1),d=o.useRef(!1);o.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const p=I1(t.ref,c),h=T1((e=>{const t=d.current;d.current=!1;const n=h5(c.current);if(!u.current||!c.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(l.current)return void(l.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(c.current)>-1:!n.documentElement.contains(e.target)||c.current.contains(e.target),i||!r&&t||s(e)})),f=e=>r=>{d.current=!0;const n=t.props[e];n&&n(r)},m={ref:p};return!1!==a&&(m[a]=f(a)),o.useEffect((()=>{if(!1!==a){const e=xMe(a),t=h5(c.current),r=()=>{l.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",r)}}}),[h,a]),!1!==n&&(m[n]=f(n)),o.useEffect((()=>{if(!1!==n){const e=xMe(n),t=h5(c.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,n]),(0,i.jsx)(o.Fragment,{children:o.cloneElement(t,m)})}function CMe(e){return oY("MuiSnackbarContent",e)}sY("MuiSnackbarContent",["root","message","action"]);const _Me=["action","className","message","role"],kMe=b1(Cfe,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,r=(0,nX.tL)(e.palette.background.default,t);return(0,NK.A)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,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}})})),SMe=b1("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),AMe=b1("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),EMe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:s,role:a="alert"}=r,l=(0,DK.A)(r,_Me),c=r,u=(e=>{const{classes:t}=e;return p1({root:["root"],action:["action"],message:["message"]},CMe,t)})(c);return(0,i.jsxs)(kMe,(0,NK.A)({role:a,square:!0,elevation:6,className:d1(u.root,o),ownerState:c,ref:t},l,{children:[(0,i.jsx)(SMe,{className:u.message,ownerState:c,children:s}),n?(0,i.jsx)(AMe,{className:u.action,ownerState:c,children:n}):null]}))}));function RMe(e){return oY("MuiSnackbar",e)}sY("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const IMe=["onEnter","onExited"],OMe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],MMe=b1("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${h1(r.anchorOrigin.vertical)}${h1(r.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>(0,NK.A)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,NK.A)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})}))),TMe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiSnackbar"}),n=T0(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:h,ContentProps:f,disableWindowBlurListener:m=!1,message:g,open:v,TransitionComponent:y=hge,transitionDuration:b=s,TransitionProps:{onEnter:x,onExited:w}={}}=r,C=(0,DK.A)(r.TransitionProps,IMe),_=(0,DK.A)(r,OMe),k=(0,NK.A)({},r,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:u,disableWindowBlurListener:m,TransitionComponent:y,transitionDuration:b}),S=(e=>{const{classes:t,anchorOrigin:r}=e;return p1({root:["root",`anchorOrigin${h1(r.vertical)}${h1(r.horizontal)}`]},RMe,t)})(k),{getRootProps:A,onClickAway:E}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:i,resumeHideDuration:s}=e,a=D1();o.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}}),[i,n]);const l=T1(((e,t)=>{null==n||n(e,t)})),c=T1((e=>{n&&null!=e&&a.start(e,(()=>{l(null,"timeout")}))}));o.useEffect((()=>(i&&c(t),a.clear)),[i,t,c,a]);const u=a.clear,d=o.useCallback((()=>{null!=t&&c(null!=s?s:.5*t)}),[t,s,c]),p=e=>t=>{const r=e.onFocus;null==r||r(t),u()},h=e=>t=>{const r=e.onMouseEnter;null==r||r(t),u()},f=e=>t=>{const r=e.onMouseLeave;null==r||r(t),d()};return o.useEffect((()=>{if(!r&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[r,i,d,u]),{getRootProps:(t={})=>{const r=(0,NK.A)({},a5(e),a5(t));return(0,NK.A)({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),d()}),onFocus:p(r),onMouseEnter:h(r),onMouseLeave:f(r)});var n},onClickAway:e=>{null==n||n(e,"clickaway")}}}((0,NK.A)({},k)),[R,I]=o.useState(!0),O=p5({elementType:MMe,getSlotProps:A,externalForwardedProps:_,ownerState:k,additionalProps:{ref:t},className:[S.root,p]});return!v&&R?null:(0,i.jsx)(wMe,(0,NK.A)({onClickAway:E},h,{children:(0,i.jsx)(MMe,(0,NK.A)({},O,{children:(0,i.jsx)(y,(0,NK.A)({appear:!0,in:v,timeout:b,direction:"top"===l?"down":"up",onEnter:(e,t)=>{I(!1),x&&x(e,t)},onExited:e=>{I(!0),w&&w(e)}},C,{children:d||(0,i.jsx)(EMe,(0,NK.A)({message:g,action:a},f))}))}))}))})),LMe=TMe;var PMe=s().forwardRef(((e,t)=>s().createElement(LMe,{...e,ref:t})));const jMe=c1(mMe,{shouldForwardProp:e=>"$isHint"!==e})`
	${({$isHint:e,theme:t})=>e&&`\n\t\tbackground-color: #2d2d2d;\n\t\tcolor: ${t.palette.common.white};\n\n\t\t& .MuiAlert-action {\n\t\t\tcolor: ${t.palette.common.white};\n\t\t}\n\n\t\t& a {\n\t\t\tcolor: #3F8CFF;\n\t\t\ttext-decoration: underline;\n\t\t}\n\t`}
`,NMe=({type:e,message:t})=>{const{showNotification:r,setShowNotification:n,setNotificationMessage:o,setNotificationType:s}=dfe(),a="hint"===e;return(0,i.jsx)(PMe,{open:r,autoHideDuration:(()=>{switch(e){case"error":return 1e4;case"hint":return 8e3;default:return 2e3}})(),onClose:()=>{n(!r),o(""),s("")},anchorOrigin:{vertical:"bottom",horizontal:"right"},sx:{zIndex:99999},children:(0,i.jsx)(jMe,{$isHint:a,onClose:()=>n(!r),severity:a?"info":e,variant:"filled",icon:a?(0,i.jsx)($Oe,{}):void 0,children:t})})},DMe=()=>(0,i.jsxs)(S1,{sx:{height:"200px",width:"500px",fill:"none"},viewBox:"0 0 376 167",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6025_54697)",children:[(0,i.jsx)("path",{d:"M320.937 153.512L20.8568 154.834C31.612 154.185 41.7439 148.128 46.1784 140.863C50.6128 133.599 45.288 123.033 50.0658 115.716C54.8437 108.399 60.1661 104.54 78.0562 107.334C68.0607 87.7945 57.1552 63.2234 68.5101 44.961C79.865 26.6987 105.767 18.3819 123.819 21.2804C141.871 24.1789 155.151 34.2994 166.146 52.7847C174.822 67.4999 180.66 85.519 192.134 96.6264C207.568 111.544 228.738 110.004 248.109 109.153C264.682 108.443 281.634 108.788 297.287 115.821C312.94 122.854 315.879 133.263 320.937 153.512Z",fill:"#fae8ff"}),(0,i.jsx)("path",{d:"M89.5437 75.3355C91.6254 64.4008 85.6534 52.4444 75.6637 47.5417C70.7996 45.1539 63.7599 44.9931 61.1034 49.717C58.7829 53.8572 61.8553 59.6046 66.4264 60.8662C70.9974 62.1277 76.0291 59.5818 78.6893 55.6549C81.3495 51.728 81.9605 46.7307 81.5513 42.0092C80.6915 32.0087 75.4103 22.463 67.4006 16.4181",stroke:"black",strokeWidth:"1.26452",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M316.035 160.109C349.764 160.109 354.071 153.958 354.071 119.948C354.071 85.9381 354.586 116.735 320.857 116.735C287.128 116.735 286.035 136.013 242.643 151.006C242.643 185.016 282.307 160.109 316.035 160.109Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M105.997 54.1379L106.533 55.3481C107.99 60.4138 120.033 64.2693 133.094 63.2412C135.483 63.0484 137.915 62.695 140.326 62.1595C140.936 62.0203 141.547 61.881 142.147 61.7204C156.719 58.0791 166.961 50.7644 165.311 45.0133L164.776 43.8031C163.051 37.8057 146.508 33.5111 130.983 36.9917C115.469 40.4724 104.272 48.1405 105.997 54.1379Z",fill:"#fff",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M164.444 43.578C162.719 37.5913 146.176 33.286 130.651 36.7666C115.126 40.2473 103.951 47.9154 105.676 53.9128",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M113.015 43.4927L107.529 39.8086",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M118.962 40.5261L116.015 35.9424",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M126.269 34.0898L128.133 37.4955",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M135.879 31.0586L136.372 35.8672",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M152.272 31.541L149.379 35.3537",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M162.29 33.0078L157.929 37.3667",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M139.039 62.6185C143.413 61.4787 145.471 54.8477 143.635 47.8077C141.8 40.7678 136.765 35.9848 132.39 37.1246C128.016 38.2645 125.958 44.8955 127.793 51.9354C129.629 58.9754 134.664 63.7584 139.039 62.6185Z",fill:"black",stroke:"black",strokeWidth:"1.23923",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M181.558 144.067C149.83 144.201 109.424 144.335 77.7097 144.482C77.1204 139.141 80.4686 133.612 85.4776 131.658C90.4731 129.69 96.6874 131.47 99.8883 135.781C98.3213 128.686 100.437 120.868 105.379 115.526C105.995 114.857 106.665 114.228 107.361 113.639C116.589 105.928 130.879 108.685 136.504 119.315C138.004 122.153 138.165 124.964 138.192 125.781C138.366 131.671 134.937 135.834 133.893 137.026C137.763 134.563 143.683 131.644 151.29 130.707C156.071 130.118 164.013 129.127 171.795 133.759C177.245 136.999 180.192 141.551 181.558 144.067Z",fill:"black",stroke:"black",strokeWidth:"1.54903",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M254.589 135.505L124.464 161.436L115.812 79.7476L246.607 64.7139L254.589 135.505Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M124.464 162.092C124.33 162.092 124.182 162.051 124.075 161.958C123.928 161.851 123.834 161.677 123.807 161.503L115.156 79.8145C115.115 79.453 115.37 79.1317 115.731 79.0916L246.539 64.0445C246.714 64.0311 246.888 64.0712 247.022 64.1783C247.156 64.2854 247.249 64.4461 247.263 64.6201L255.245 135.411C255.285 135.746 255.057 136.067 254.723 136.134L124.598 162.078C124.598 162.078 124.517 162.078 124.464 162.078V162.092ZM116.535 80.3232L125.039 160.646L253.865 134.969L246.031 65.4233L116.522 80.3098L116.535 80.3232Z",fill:"black"}),(0,i.jsx)("rect",{x:"167.213",y:"70.3623",width:"129.214",height:"82.8929",fill:"url(#pattern0_6025_54697)"}),(0,i.jsx)("path",{d:"M115.812 79.7476L194.776 116.776L246.607 64.7139L115.812 79.7476Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M194.776 117.432C194.682 117.432 194.589 117.405 194.495 117.365L115.517 80.3362C115.249 80.2157 115.102 79.9212 115.142 79.6401C115.182 79.359 115.424 79.1314 115.718 79.0912L246.526 64.0441C246.807 64.0174 247.075 64.1646 247.196 64.4056C247.316 64.6599 247.263 64.9545 247.075 65.1553L195.245 117.218C195.124 117.338 194.95 117.405 194.776 117.405V117.432ZM118.169 80.1354L194.629 115.986L244.812 65.5703L118.169 80.1354Z",fill:"black"}),(0,i.jsx)("path",{d:"M234.218 152.132C234.808 143.31 240.553 135.023 248.616 131.395C256.678 127.767 266.696 128.932 273.7 134.327C269.455 126.977 271.919 116.522 278.991 111.837C286.062 107.151 296.656 108.958 301.772 115.732C300.888 106.91 304.691 97.7533 311.562 92.1441C318.433 86.5349 328.169 84.6473 336.647 87.2712",fill:"#fff"}),(0,i.jsx)("path",{d:"M234.218 152.132C234.808 143.31 240.553 135.023 248.616 131.395C256.678 127.767 266.696 128.932 273.7 134.327C269.455 126.977 271.919 116.522 278.991 111.837C286.062 107.151 296.656 108.958 301.772 115.732C300.888 106.91 304.691 97.7533 311.562 92.1441C318.433 86.5349 328.169 84.6473 336.647 87.2712",stroke:"black",strokeWidth:"1.54903",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M330.5 145.652C345.885 145.652 358.357 132.226 358.357 115.665C358.357 99.1034 345.885 85.6777 330.5 85.6777C315.115 85.6777 302.643 99.1034 302.643 115.665C302.643 132.226 315.115 145.652 330.5 145.652Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M259.25 170.284C271.972 170.284 282.286 161.413 282.286 150.471C282.286 139.529 271.972 130.658 259.25 130.658C246.528 130.658 236.214 139.529 236.214 150.471C236.214 161.413 246.528 170.284 259.25 170.284Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M288.714 145.652C297.59 145.652 304.785 137.74 304.785 127.981C304.785 118.221 297.59 110.31 288.714 110.31C279.838 110.31 272.643 118.221 272.643 127.981C272.643 137.74 279.838 145.652 288.714 145.652Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M239.161 41.5672L239.04 41.4869C228.674 34.0437 221.107 23.1734 217.719 10.8706C216.942 8.03256 217.478 5.89063 219.179 5.15434C219.527 5.00708 219.902 4.92676 220.263 4.92676C222.326 4.92676 223.853 7.2695 224.589 8.67514C233.295 25.3287 248.402 38.6087 266.054 45.1014L265.705 46.3598L239.161 41.5672Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M220.263 5.58244C221.817 5.58244 223.196 7.41648 224 8.96938C232.786 25.797 248 39.1573 265.812 45.717L239.415 40.9512C229.236 33.6418 221.67 22.7715 218.348 10.6963C217.853 8.91583 217.745 6.49277 219.433 5.75648C219.714 5.63599 219.982 5.58244 220.263 5.58244ZM220.263 4.27051C219.808 4.27051 219.353 4.36422 218.911 4.55164C216.888 5.43519 216.205 7.85825 217.076 11.0444C220.504 23.481 228.165 34.4852 238.652 42.0087L238.893 42.1828L239.187 42.2363L265.585 47.0021L266.268 44.4853C248.777 38.0462 233.79 24.8866 225.165 8.36696C224.361 6.84083 222.661 4.27051 220.263 4.27051Z",fill:"black"}),(0,i.jsx)("path",{d:"M211.678 37.7922L211.571 37.7253C199.531 30.8577 188.777 22.0892 179.616 11.6874C178.277 10.1746 176.951 8.52802 176.629 6.49318C176.428 5.2348 176.777 3.82915 177.527 2.81173C178.129 2.00851 178.973 1.4998 179.87 1.37931C180.018 1.36593 180.165 1.35254 180.312 1.35254C181.812 1.35254 183.111 2.30302 184.303 3.26689C207.178 21.9017 234.272 36.0251 262.652 44.0975L262.37 45.3827L211.665 37.7922H211.678Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M180.313 2.00822C181.638 2.00822 182.83 2.91855 183.875 3.77532C206.938 22.5574 233.844 36.5871 262.464 44.7265L211.879 37.1627C199.96 30.3487 189.165 21.5668 180.098 11.2587C178.839 9.82629 177.567 8.27339 177.272 6.38581C176.978 4.49822 178.076 2.27597 179.964 2.035C180.085 2.02161 180.205 2.00822 180.326 2.00822H180.313ZM180.326 0.696289C180.152 0.696289 179.978 0.696289 179.804 0.73645C178.719 0.870321 177.728 1.47274 177.018 2.42322C176.147 3.5879 175.759 5.14081 176 6.6C176.348 8.80887 177.741 10.5358 179.147 12.1289C188.362 22.5842 199.17 31.3929 211.263 38.3006L211.478 38.4211L211.719 38.4613L262.304 46.025L262.853 43.4681C234.554 35.4224 207.54 21.3392 184.732 2.7579C183.446 1.71371 182.054 0.696289 180.339 0.696289H180.326Z",fill:"black"}),(0,i.jsx)("path",{d:"M302.027 81.1118C278.121 82.5041 243.434 75.5964 239.309 74.1372C237.675 73.5615 236.027 72.8788 234.742 71.7141C233.456 70.5494 232.599 68.7823 232.934 67.0822C233.523 64.1102 237.112 62.9589 240.126 62.5707C250.411 61.2722 258.701 63.481 258.889 62.9991C259.103 62.4636 248.992 57.6443 202.009 38.1794C209.737 44.1233 212.509 51.7272 210.099 55.8638C208.8 58.086 205.746 59.7728 202.987 59.3578C199.786 58.8759 197.416 56.011 194.884 49.853C193.103 45.5022 191.309 41.1647 189.527 36.8139C188.563 34.4846 187.599 32.1017 187.371 29.5983C187.143 27.0815 187.786 24.3773 189.634 22.6504C205.371 29.0896 221.175 35.5556 237.661 39.7189C254.148 43.8957 283.826 41.7538 300.568 38.8086C300.568 38.8086 331.358 34.9397 346.853 29.518",fill:"#fff"}),(0,i.jsx)("path",{d:"M295.197 81.9556C271.759 81.9556 242.898 76.1054 239.094 74.7533C237.514 74.1911 235.719 73.4816 234.3 72.1964C232.706 70.7506 231.929 68.7291 232.291 66.9487C232.826 64.2712 235.585 62.4774 240.045 61.9151C247.009 61.0449 252.956 61.7277 256.331 62.1561C251.764 59.8803 238.505 54.0301 205.438 40.3083C210.822 45.69 213.059 52.1024 210.675 56.1988C209.175 58.7691 205.759 60.4425 202.893 60.0141C199.451 59.4921 196.96 56.6272 194.282 50.1077L188.925 37.0687C187.96 34.7125 186.956 32.2895 186.728 29.6522C186.46 26.6535 187.384 23.8556 189.192 22.1688L189.501 21.8877L189.889 22.0483C205.358 28.3804 221.349 34.9267 237.822 39.0901C254.978 43.4275 285.34 40.8304 300.46 38.1664C300.795 38.1262 331.398 34.244 346.652 28.9025L347.081 30.1341C331.692 35.5158 300.969 39.4114 300.648 39.4516C285.46 42.129 254.844 44.7395 237.501 40.3485C221.081 36.1985 205.184 29.7058 189.795 23.4138C188.469 24.8596 187.813 27.1087 188.027 29.5317C188.242 31.9682 189.206 34.2975 190.13 36.56L195.487 49.599C197.965 55.6232 200.175 58.2738 203.081 58.7156C205.411 59.077 208.304 57.6446 209.523 55.5429C211.652 51.9016 209.268 44.6056 201.608 38.7019L197.697 35.6898L202.264 37.5774C260.161 61.5537 259.893 62.2632 259.505 63.2404C259.264 63.8696 258.795 63.8027 256.545 63.5216C253.304 63.1066 247.277 62.3435 240.219 63.227C237.983 63.5082 234.152 64.4051 233.59 67.2164C233.268 68.8095 234.206 70.349 235.197 71.2325C236.429 72.357 238.09 72.9996 239.55 73.5217C243.554 74.9408 278.402 81.8351 302.014 80.4562L302.094 81.7682C299.884 81.9021 297.581 81.9556 295.224 81.9556H295.197Z",fill:"black"}),(0,i.jsx)("path",{d:"M222.89 120.082L173.778 97.5648L173.711 94.1377L226.506 116.534L222.89 120.082Z",fill:"black"}),(0,i.jsx)("path",{d:"M222.89 120.738C222.796 120.738 222.702 120.725 222.622 120.685L173.51 98.1678C173.282 98.0607 173.135 97.8331 173.122 97.5787L173.055 94.1516C173.055 93.9241 173.162 93.7233 173.349 93.5894C173.537 93.4689 173.765 93.4421 173.979 93.5358L226.773 115.932C226.974 116.013 227.122 116.2 227.162 116.414C227.202 116.629 227.135 116.856 226.974 117.003L223.358 120.551C223.238 120.671 223.064 120.738 222.903 120.738H222.89ZM174.434 97.137L222.756 119.293L225.354 116.749L174.407 95.1289L174.448 97.137H174.434Z",fill:"black"}),(0,i.jsx)("path",{d:"M230.979 103.804L224.537 116.776L174.97 93.8572L182.028 80.4701L187.559 83.0271C193.037 85.5572 201.488 88.0472 204.568 81.849L218.791 53.1738L228.26 57.5514L213.755 86.7888C210.688 92.9871 214.546 96.2 220.023 98.7301L230.992 103.804H230.979Z",fill:"#fae8ff"}),(0,i.jsx)("path",{d:"M224.537 117.432C224.443 117.432 224.349 117.418 224.255 117.365L174.688 94.4459C174.528 94.3656 174.407 94.2317 174.34 94.0577C174.287 93.8837 174.3 93.6963 174.38 93.5356L181.438 80.1485C181.599 79.8406 181.974 79.7201 182.296 79.854L187.827 82.4109C192.595 84.6198 201.046 87.4311 203.965 81.5408L218.188 52.8656C218.349 52.5443 218.738 52.4104 219.059 52.5577L228.528 56.9353C228.688 57.0156 228.809 57.1495 228.876 57.3101C228.93 57.4708 228.93 57.6582 228.849 57.8188L214.345 87.0563C213.3 89.158 213.059 90.9519 213.608 92.5182C214.331 94.5798 216.394 96.3067 220.291 98.1006L231.26 103.174C231.421 103.255 231.541 103.389 231.608 103.549C231.662 103.71 231.662 103.897 231.581 104.058L225.139 117.03C225.019 117.258 224.791 117.391 224.55 117.391L224.537 117.432ZM175.867 93.549L224.229 115.919L230.081 104.125L219.729 99.3322C216.876 98.0069 213.447 96.0925 212.363 92.9867C211.693 91.059 211.947 88.9438 213.153 86.5074L227.363 57.8724L219.086 54.0437L205.144 82.1432C201.715 89.0375 192.474 86.0254 187.278 83.6292L182.322 81.34L175.88 93.5624L175.867 93.549Z",fill:"black"}),(0,i.jsx)("path",{d:"M215.872 80.9779C215.403 80.5629 213.662 79.1171 211.037 79.0903C207.662 79.0502 205.572 81.4063 205.278 81.741C206.336 79.4919 207.381 77.2295 208.425 74.9805L216.863 78.8761L215.872 80.9779Z",fill:"black"}),(0,i.jsx)("path",{d:"M234.032 69.7465C233.992 69.8402 233.938 69.9339 233.898 70.041C232.559 72.7184 230.349 74.5123 227.644 75.4494C227.59 75.4761 227.523 75.5029 227.456 75.5163C223.639 76.7881 218.885 76.3463 214.358 74.2445C207.702 71.1655 203.523 65.8107 204.527 59.9739C204.608 59.5857 204.688 59.1974 204.795 58.8092C204.983 58.18 205.21 57.5508 205.532 56.935C208.452 51.0715 216.032 48.5815 223.224 50.8305C224.014 51.0715 224.791 51.366 225.554 51.7274C227.202 52.4905 228.661 53.4544 229.92 54.5789C231.032 55.5428 231.956 56.6271 232.733 57.7784C235.184 61.4732 235.813 65.9044 234.019 69.7866L234.032 69.7465Z",fill:"#fae8ff"}),(0,i.jsx)("path",{d:"M222.876 76.8549C220.05 76.8549 217.01 76.1722 214.09 74.8201C206.791 71.4465 202.88 65.7035 203.898 59.8399C203.979 59.4115 204.072 59.0099 204.193 58.5949C204.394 57.8988 204.648 57.2562 204.97 56.6136C208.01 50.4957 215.778 47.7915 223.452 50.1745C224.269 50.4288 225.072 50.7367 225.862 51.0982C227.537 51.8746 229.063 52.8653 230.389 54.0567C231.474 54.9938 232.465 56.1183 233.309 57.3767C236.001 61.4196 236.483 66.0382 234.648 70.0141L234.514 70.3086C233.148 73.053 230.858 75.0343 227.885 76.0651C227.831 76.0919 227.724 76.132 227.617 76.1454C226.157 76.6274 224.563 76.8683 222.903 76.8683L222.876 76.8549ZM217.88 50.6162C212.751 50.6162 208.211 53.0259 206.135 57.1893C205.854 57.7649 205.626 58.3406 205.438 58.9564C205.331 59.3312 205.251 59.6927 205.184 60.0675C204.273 65.3019 207.903 70.4961 214.639 73.6153C218.965 75.6233 223.572 76.0785 227.255 74.8603L227.644 75.4225L227.429 74.8067C230.081 73.8964 232.117 72.1427 233.309 69.733L233.429 69.4653C235.077 65.9043 234.621 61.7543 232.184 58.0996C231.394 56.9216 230.51 55.9175 229.492 55.034C228.26 53.9228 226.84 52.9991 225.287 52.2896C224.55 51.9549 223.8 51.6604 223.037 51.4328C221.295 50.8974 219.541 50.6296 217.854 50.6296L217.88 50.6162Z",fill:"black"}),(0,i.jsx)("path",{d:"M219.313 80.8172L206.496 74.8867C205.572 74.4584 205.184 73.3606 205.613 72.4503L206.296 71.0313C206.724 70.1209 207.836 69.7193 208.76 70.1343L221.577 76.0648C222.501 76.4932 222.889 77.5909 222.461 78.5013L221.778 79.9203C221.349 80.8306 220.238 81.2322 219.313 80.8172Z",fill:"#fae8ff"}),(0,i.jsx)("path",{d:"M220.09 81.6339C219.742 81.6339 219.38 81.5536 219.032 81.4063L206.215 75.4758C205.612 75.1947 205.157 74.6994 204.929 74.0702C204.702 73.441 204.729 72.7583 205.023 72.1558L205.706 70.7368C206.296 69.4918 207.796 68.9563 209.041 69.532L221.858 75.4625C222.461 75.7436 222.916 76.2389 223.144 76.8681C223.371 77.4973 223.345 78.18 223.05 78.7825L222.367 80.2015C221.938 81.1118 221.028 81.6339 220.09 81.6339ZM207.97 70.6029C207.514 70.6029 207.086 70.8573 206.871 71.2857L206.188 72.7047C206.054 72.9858 206.041 73.3071 206.148 73.6017C206.255 73.8962 206.47 74.1371 206.751 74.2576L219.568 80.1881C220.157 80.4692 220.88 80.2015 221.162 79.6125L221.845 78.1934C221.979 77.9123 221.992 77.591 221.885 77.2965C221.778 77.002 221.563 76.761 221.269 76.6271L208.452 70.6967C208.291 70.6163 208.117 70.5896 207.943 70.5896L207.97 70.6029Z",fill:"black"}),(0,i.jsx)("path",{d:"M226.05 117.432L173.523 93.134L180.354 79.4658L232.894 103.763L226.05 117.432Z",fill:"#fae8ff"}),(0,i.jsx)("path",{d:"M226.05 118.088C225.956 118.088 225.863 118.074 225.769 118.021L173.242 93.723C173.081 93.6427 172.961 93.5089 172.894 93.3482C172.84 93.1876 172.854 93.0001 172.921 92.8395L179.751 79.1713C179.912 78.85 180.3 78.7161 180.608 78.8634L233.135 103.161C233.296 103.241 233.416 103.375 233.483 103.536C233.537 103.696 233.523 103.884 233.456 104.044L226.626 117.713C226.505 117.94 226.278 118.074 226.037 118.074L226.05 118.088ZM174.407 92.8261L225.742 116.561L231.997 104.071L180.662 80.3359L174.407 92.8261Z",fill:"black"}),(0,i.jsx)("path",{d:"M226.05 117.431L173.523 93.1337L175.746 89.0908L228.273 113.388L226.05 117.431Z",fill:"black"}),(0,i.jsx)("path",{d:"M226.05 118.087C225.956 118.087 225.862 118.074 225.769 118.02L173.242 93.7227C173.081 93.6423 172.947 93.5085 172.894 93.3344C172.84 93.1604 172.853 92.973 172.947 92.8123L175.17 88.7694C175.331 88.4615 175.706 88.3411 176.028 88.4883L228.554 112.786C228.715 112.866 228.849 113 228.903 113.174C228.956 113.348 228.943 113.536 228.849 113.696L226.626 117.739C226.505 117.953 226.278 118.074 226.05 118.074V118.087ZM174.434 92.8391L225.769 116.574L227.362 113.683L176.028 89.9475L174.434 92.8391Z",fill:"black"}),(0,i.jsx)("path",{d:"M217.428 60.2937C220.328 59.063 222.033 56.5426 221.235 54.6642C220.437 52.7859 217.439 52.2608 214.539 53.4914C211.638 54.7221 209.934 57.2425 210.731 59.1208C211.529 60.9992 214.527 61.5243 217.428 60.2937Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M164.102 140.878C175.849 138.748 184.387 131.596 183.173 124.904C181.958 118.211 171.451 114.512 159.705 116.641C147.958 118.771 139.42 125.923 140.634 132.615C141.849 139.308 152.356 143.008 164.102 140.878Z",fill:"black",stroke:"#fff",strokeWidth:"1.54903",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M164.569 143.447C178.033 141.006 187.755 132.452 186.283 124.341C184.811 116.229 172.703 111.632 159.239 114.073C145.775 116.514 136.053 125.069 137.525 133.18C138.997 141.292 151.105 145.888 164.569 143.447Z",stroke:"black",strokeWidth:"1.54903",strokeMiterlimit:"10"}),(0,i.jsx)("path",{d:"M157.009 124.38L156.861 135.237L177.968 118.449",stroke:"#fff",strokeWidth:"2.2129",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M58.6142 134.171C56.6321 121.501 57.4035 120.602 70.7106 120.205C57.4035 120.602 56.3642 119.766 54.3821 107.097C56.3642 119.766 55.5928 120.666 42.2856 121.062C55.5928 120.666 56.6321 121.501 58.6142 134.171Z",fill:"black",stroke:"black",strokeWidth:"1.26452",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M64.5914 100.671L65.9202 105.884L71.2144 106.561L66.0863 107.239L66.0517 112.452L64.7299 107.239L59.4287 106.561L64.5568 105.884L64.5914 100.671Z",fill:"black"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsx)("pattern",{id:"pattern0_6025_54697",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,i.jsx)("use",{xlinkHref:"#image0_6025_54697",transform:"scale(0.00248756 0.00387597)"})}),(0,i.jsx)("clipPath",{id:"clip0_6025_54697",children:(0,i.jsx)("rect",{width:"375",height:"166",fill:"#fff",transform:"translate(0.5)"})}),(0,i.jsx)("image",{id:"image0_6025_54697",width:"402",height:"258",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAAECCAYAAADU5FG5AAAACXBIWXMAAC4jAAAuIwF4pT92AAAFuklEQVR4Xu3c0W6bShRAUXzV//9l7hMqHYFxsolj7LVeajmkykPVrXNmnNs8zxMAfNd/Rw8AwD1CAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiQAJEICQCIkACRCAkAiJAAkQgJAIiTAptvtNh89A9M0Tbd59m8FuG+JyjzPt6Nn+TwmEmDXOiDzPN9MKWwREmCapn9XWXsTiImELVZbwKbb7TYv4VhHRkwYmUiAaZr+xmJcXy1BERD2mEiAXWNUxIQtJhJg07jOctjOHiEBNtdZe8/CSEjggz0SjGUSeeRZPpOQwAfaOvtYYnH04UNBYSQk8IHGSNy7mSUcHBESeHP3QrAOx9FnRdzYYo+QwJsbP1S493mR8VbWGBaTCXuEBD7Asrpa/pymf+OwFYq9aQVGPpAIb2wdjqP3pi+w5mLNRAJvbFxrbb331YjASEjgzW2djdxbY8FXWW3Bm7q3wrLa4kxCAm9mHZC9cKyf3Xr/EWLC4s/RA8C1rG9n3bvSC2dxRgIXt3fmsRWQ9dXfCU5iIoGLuxeFMTDjwfvWrS74KhMJvIGtYCyrrfG98TkRoRISeCNLGI4O1622OJOQwEUdTRPrr9frvnCPMxK4oL011d7XhYOfZCKBi9iKwXqVtbWuujeVwFmEBF7Y3q2rR67x7n3vWc7++7guIYEXtA7G+vXeumqcPEwfPJNfkQIXsD7zeKVJQLCYJhMJvLzx4Hy91vIfOa9ASOAC1qurcaW1/13wHEICL2gdCFMHr05I4JetJ42tQ/atZ5fXIsMrEBJ4sr0V1RiFJSb31ldWW7wCIYEn2wrG+vXeVd5Xmz5e7efh97j+C7/gu2up35pAvvOz8jn8ri14kq14jJ8PWZ+N7L3+aaLBV5lI4IkemUSeGZSjnwUeISTwS84MwiNEg58iJPAEe5PIOH2cRTR4Jmck8CRjTI7WXI8GRjT4bUICP2QdijEK42vR4MqstuBJ1qF4JByiwVUICZxojMX43tp4G2vrGbgCIYETbAVhawIRDN6RkMCJ1rEQDj6FkMA3iAT8JSQAJH77LwCJkACQCAkAiZAAkAgJAImQAJAICQCJkACQCAkAiZAAkAgJAImQAJAICQCJkACQCAkAiZAAkAgJAImQAJAICQCJkACQCAkAiZAAkAgJAImQAJAICQCJkACQCAkAiZAAkAgJAImQAJAICQCJkACQCAkAiZAAkAgJAImQAJAICQCJkACQCAkAiZAAkAgJAMn/b64/LedyG3oAAAAASUVORK5CYII="})]})]}),BMe=function(){const{isOpen:e,close:t}=The(),{senderEmail:r,refreshPluginSettings:o}=gfe();return(0,n.useEffect)((()=>{o()}),[]),(0,i.jsx)(J5,{open:e,children:(0,i.jsxs)(v2,{container:!0,gap:5,direction:"column",alignItems:"center",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:600,maxWidth:"100%",height:530,bgcolor:"background.paper",boxShadow:24,p:"40px 20px",textAlign:"center",borderRadius:"4px"},children:[(0,i.jsx)(DMe,{}),(0,i.jsxs)(v2,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",gap:2,children:[(0,i.jsx)(t3,{variant:"h5",marginBottom:1,children:(0,r3.__)("Awesome! Your site can now send emails","site-mailer")}),(0,i.jsxs)(t3,{variant:"body2",sx:{width:"500px",maxWidth:"100%"},marginBottom:1,children:[(0,r3.__)("By default, emails from your site will be sent via:","site-mailer"),(0,i.jsx)("br",{}),(0,i.jsx)("strong",{children:r}),(0,i.jsx)("br",{}),(0,r3.__)("You can change this address by adding a custom domain in the settings tab.","site-mailer")]})]}),(0,i.jsx)(r2,{variant:"contained",sx:{padding:"8px 22px",width:"300px"},onClick:()=>{(0,p3.dispatch)(d3.store).saveEntityRecord("root","site",{site_mailer_close_post_connect_modal:!0}),t()},children:(0,r3.__)("Got it","site-mailer")})]})})},{slots:FMe,classNames:$Me}=mye("AlertAction",["root"]),zMe=c1(r2,FMe.root)({}),UMe={color:"inherit",variant:"outlined"},WMe=s().forwardRef(((e,t)=>{const r=g1({props:{...UMe,...e},name:FMe.root.name});return s().createElement(zMe,{...r,size:"small",ref:t,className:d1([[$Me.root,r.className]]),ownerState:r})}));WMe.defaultProps=UMe;var qMe=WMe;const VMe=c1(mMe)`
	.MuiAlert-content > div {
		max-width: 100%;
	}
`,HMe=()=>{const{isConnected:e,settings:t,loaded:r}=gfe(),n=Math.floor(t?.plan?.quota?.used/t?.plan?.quota?.allowed*100);return r&&e&&t&&n>79?(0,i.jsxs)(i.Fragment,{children:[100===n&&(0,i.jsxs)(VMe,{severity:"error",variant:"standard",action:(0,i.jsx)(qMe,{onClick:()=>{window.open(zhe(Whe,t?.plan?.subscription_id),"_blank")},children:(0,r3.__)("Upgrade now","site-mailer")}),children:[(0,i.jsx)(age,{children:t.plan.features.plan.toLowerCase().includes("trial")?(0,r3.__)("You’ve sent the maximum amount of emails.","site-mailer"):(0,r3.__)("You’ve sent the maximum amount of emails for this month.","site-mailer")}),t.plan.features.plan.toLowerCase().includes("trial")?(0,r3.__)("No more emails will be sent, unless you upgrade your plan.","site-mailer"):(0,r3.__)("No more emails will be sent until your next monthly quota renewal, unless you upgrade your plan.","site-mailer")]}),n>=80&&n<100&&(0,i.jsxs)(VMe,{severity:"warning",variant:"standard",action:(0,i.jsx)(qMe,{onClick:()=>{window.open(zhe(Whe,t?.plan?.subscription_id),"_blank")},children:(0,r3.__)("Upgrade now","site-mailer")}),children:[(0,i.jsx)(age,{children:(0,r3.__)("You’ve used over 80% of your quota.","site-mailer")}),(0,r3.__)("Upgrade now for your site to keep sending emails.","site-mailer")]})]}):null},GMe=class{static dispatch(e){const t=new Event(e);document.dispatchEvent(t)}static listen(e,t){document.addEventListener(e,((...e)=>t(...e)))}},ZMe=c1(dY)`
	display: flex;
	flex-direction: column;

	width: 38%;
	padding: 40px;

	border: 1px solid rgb(0 0 0 / 0.12);
	border-radius: 4px;

	text-align: center;

	@media screen and (max-width: 768px) {
		width: 100%;
	}

	& span {
		margin-right: 24px;
	}
`,KMe=c1(t3)`
	font-size: 16px;
	color: ${({theme:e})=>e.palette.text.primary}
`,XMe=c1(t3)`
	font-size: 14px;
	color: ${({theme:e})=>e.palette.text.secondary}
`,YMe=()=>{const{open:e,close:t}=The(!1),{setNotificationMessage:r,setNotificationType:o,setShowNotification:s}=dfe(),[a,l]=(0,n.useState)(!1),{isElementorOne:c}=gfe();(0,n.useEffect)((()=>{GMe.listen("site-mailer/auth/url-mismatch-modal/open",e)}),[]);const u=()=>l(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B_e,{open:e,onClose:t,logo:!1,title:(0,r3.__)("Fix mismatched URL","site-mailer"),showCancelButton:!1,showApproveButton:!1,maxWidth:"md",fullWidth:!0,dividers:!0,children:(0,i.jsxs)(v2,{container:!0,flexDirection:"column",justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(t3,{variant:"h4",color:"text.primary",marginTop:5,marginBottom:1,children:(0,r3.__)("Select the case that applies to you","site-mailer")}),(0,i.jsxs)(v2,{container:!0,justifyContent:"space-between",marginTop:10,children:[(0,i.jsxs)(ZMe,{children:[(0,i.jsx)(KMe,{variant:"h6",marginBottom:3,children:(0,r3.__)("Are you updating the URL?","site-mailer")}),(0,i.jsx)(XMe,{variant:"body1",marginBottom:3,children:(0,r3.__)("Choose this option if you want to just switch to the new URL for the same site","site-mailer")}),(0,i.jsx)(r2,{variant:"text",onClick:async()=>{if(c)window.location.href=qhe;else{try{await Mhe.initConnect("update"),window.location.reload()}catch(e){r((0,r3.__)("An error occurred.","site-mailer")),o("error"),s(!0)}t()}},children:(0,r3.__)("Update connected URL","site-mailer")})]}),(0,i.jsxs)(ZMe,{children:[(0,i.jsx)(KMe,{variant:"h6",marginBottom:3,children:(0,r3.__)("Are you creating a new site?","site-mailer")}),(0,i.jsx)(XMe,{variant:"body1",marginBottom:3,children:(0,r3.__)("Choose this if you are connecting the plugin to a new site","site-mailer")}),(0,i.jsx)(r2,{variant:"text",onClick:()=>l(!0),children:(0,r3.__)("Connect as a new site","site-mailer")})]})]})]})}),a&&(0,i.jsx)(B_e,{onClose:u,onCancel:u,title:(0,r3.__)("Are you sure you want to connect as a new site?","site-mailer"),approveText:(0,r3.__)("Connect","site-mailer"),onApprove:async()=>{if(c)window.location.href=qhe;else{try{l(!1),await Mhe.clearSession(),window.location.href=(0,o3.addQueryArgs)(window.location.href,{action:"connect"})}catch(e){r((0,r3.__)("An error occurred.","site-mailer")),o("error"),s(!0)}t()}},children:(0,i.jsx)(t3,{variant:"body1",children:(0,r3.__)("Connecting as a new site will change your default sender and delete any custom domains you’ve set up.","site-mailer")})})]})},JMe=({size:e})=>(0,i.jsxs)(S1,{viewBox:"0 0 24 24",fontSize:e,children:[(0,i.jsx)("g",{clipPath:"url(#a)",children:(0,i.jsx)("path",{fill:"#0c0d0e",fillRule:"evenodd",d:"M2.022 18.667A12 12 0 1 1 21.977 5.333 12 12 0 0 1 2.022 18.667ZM9 7H7v10h2V7Zm8 0h-6v2h6V7Zm0 3.999h-6v2h6v-2ZM17 15h-6v2h6v-2Z",clipRule:"evenodd"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"a",children:(0,i.jsx)("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),QMe=()=>{const{isOpen:e,close:t}=The(!0),{refreshPluginSettings:r,isConnected:o,closePostConnectModal:s}=gfe(),{hideWalkthroughModal:a,setHideWalkthroughModal:l}=dfe(),{save:c}=h3();return(0,n.useEffect)((()=>{r()}),[]),o&&s?a?null:(0,i.jsxs)(B_e,{open:e,onClose:t,logo:(0,i.jsx)(JMe,{}),title:(0,r3.__)("Email Deliverability","site-mailer"),showCancelButton:!1,showApproveButton:!0,onApprove:async()=>{await c({site_mailer_hide_walkthrough_modal:!0}),l(!0)},approveButtonColor:"primary",approveText:(0,r3.__)("Got it","site-mailer"),maxWidth:"sm",fullWidth:!0,dividers:!0,className:"walkthrough-modal",children:[(0,i.jsx)("iframe",{width:"550",height:"315",src:"https://www.youtube.com/embed/CLnTrZz4N9E?si=_xyvFiaAHgBkTxqn",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}),(0,i.jsx)(t3,{variant:"h5",color:"text.primary",marginTop:2,marginBottom:1,children:(0,r3.__)("Getting started with Email Deliverability","site-mailer")}),(0,i.jsx)(t3,{variant:"body1",color:"text.tertiary",children:(0,r3.__)("Watch this quick video to see how Email Deliverability improves email deliverability for transactional emails and more.","site-mailer")})]}):null};function eTe(e){return oY("MuiSwitch",e)}const tTe=sY("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),rTe=["className","color","edge","size","sx"],nTe=tge(),iTe=b1("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${h1(r.edge)}`],t[`size${h1(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${tTe.thumb}`]:{width:16,height:16},[`& .${tTe.switchBase}`]:{padding:4,[`&.${tTe.checked}`]:{transform:"translateX(16px)"}}}}]}),oTe=b1(cke,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${tTe.input}`]:t.input},"default"!==r.color&&t[`color${h1(r.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${tTe.checked}`]:{transform:"translateX(20px)"},[`&.${tTe.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${tTe.checked} + .${tTe.track}`]:{opacity:.5},[`&.${tTe.disabled} + .${tTe.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${tTe.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${tTe.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,nX.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tTe.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,nX.a)(e.palette[t].main,.62):(0,nX.e$)(e.palette[t].main,.55)}`}},[`&.${tTe.checked} + .${tTe.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),sTe=b1("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),aTe=b1("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),lTe=o.forwardRef((function(e,t){const r=nTe({props:e,name:"MuiSwitch"}),{className:n,color:o="primary",edge:s=!1,size:a="medium",sx:l}=r,c=(0,DK.A)(r,rTe),u=(0,NK.A)({},r,{color:o,edge:s,size:a}),d=(e=>{const{classes:t,edge:r,size:n,color:i,checked:o,disabled:s}=e,a=p1({root:["root",r&&`edge${h1(r)}`,`size${h1(n)}`],switchBase:["switchBase",`color${h1(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},eTe,t);return(0,NK.A)({},t,a)})(u),p=(0,i.jsx)(aTe,{className:d.thumb,ownerState:u});return(0,i.jsxs)(iTe,{className:d1(d.root,n),sx:l,ownerState:u,children:[(0,i.jsx)(oTe,(0,NK.A)({type:"checkbox",icon:p,checkedIcon:p,ref:t,ownerState:u},c,{classes:(0,NK.A)({},d,{root:d.switchBase})})),(0,i.jsx)(sTe,{className:d.track,ownerState:u})]})})),cTe=lTe;var uTe=s().forwardRef(((e,t)=>s().createElement(cTe,{...e,ref:t})));const dTe=c1(Wfe)`
	&:last-child {
		padding-bottom: 16px;
	}
`,pTe=function(){const{save:e}=h3(),{keepLog:t,refreshPluginSettings:r}=gfe(),{success:o,error:s}=pfe(),[a,l]=(0,n.useState)(t);return(0,i.jsx)(Efe,{variant:"outlined",sx:{marginTop:"24px"},children:(0,i.jsx)(dTe,{children:(0,i.jsxs)(v2,{container:!0,spacing:2,alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(v2,{item:!0,xs:12,sm:10,md:6,gap:1,children:[(0,i.jsx)(t3,{variant:"subtitle1",children:(0,r3.__)("Show email content in log","site-mailer")}),(0,i.jsxs)(t3,{variant:"body2",color:"text.secondary",children:[(0,r3.__)("Turn this on to include email messages in your log and resend them in the future.","site-mailer"),(0,i.jsx)("br",{}),(0,r3.__)("This includes any sensitive information you may send.","site-mailer")]})]}),(0,i.jsx)(v2,{item:!0,xs:12,sm:2,md:6,children:(0,i.jsx)(dY,{display:"flex",justifyContent:"end",children:(0,i.jsx)(uTe,{checked:a,onClick:(c=!a,async()=>{try{await e({site_mailer_keep_log:c}),l(c),o((0,r3.__)("Settings saved successfully.","site-mailer"))}catch(e){s((0,r3.__)("An error occurred.","site-mailer"))}finally{r()}}),size:"small",color:"primary"})})})]})})});var c};function hTe(e){return oY("MuiFormLabel",e)}const fTe=sY("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),mTe=["children","className","color","component","disabled","error","filled","focused","required"],gTe=b1("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,NK.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,NK.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${fTe.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${fTe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fTe.error}`]:{color:(e.vars||e).palette.error.main}}))),vTe=b1("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${fTe.error}`]:{color:(e.vars||e).palette.error.main}}))),yTe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:s="label"}=r,a=(0,DK.A)(r,mTe),l=txe({props:r,muiFormControl:nxe(),states:["color","required","focused","disabled","error","filled"]}),c=(0,NK.A)({},r,{color:l.color||"primary",component:s,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:s,required:a}=e;return p1({root:["root",`color${h1(r)}`,i&&"disabled",o&&"error",s&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]},hTe,t)})(c);return(0,i.jsxs)(gTe,(0,NK.A)({as:s,ownerState:c,className:d1(u.root,o),ref:t},a,{children:[n,l.required&&(0,i.jsxs)(vTe,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));function bTe(e){return oY("MuiInputLabel",e)}sY("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xTe=["disableAnimation","margin","shrink","variant","className"],wTe=b1(yTe,{shouldForwardProp:e=>y1(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${fTe.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((({theme:e,ownerState:t})=>(0,NK.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,NK.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,NK.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,NK.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),CTe=o.forwardRef((function(e,t){const r=g1({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:s}=r,a=(0,DK.A)(r,xTe),l=nxe();let c=o;void 0===c&&l&&(c=l.filled||l.focused||l.adornedStart);const u=txe({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=(0,NK.A)({},r,{disableAnimation:n,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=(e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:s,required:a}=e,l=p1({root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&"normal"!==n&&`size${h1(n)}`,s],asterisk:[a&&"asterisk"]},bTe,t);return(0,NK.A)({},t,l)})(d);return(0,i.jsx)(wTe,(0,NK.A)({"data-shrink":c,ownerState:d,ref:t,className:d1(p.root,s)},a,{classes:p}))}));function _Te(e){return oY("MuiFormControl",e)}sY("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kTe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],STe=b1("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,NK.A)({},t.root,t[`margin${h1(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,NK.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),ATe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiFormControl"}),{children:n,className:s,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:f="none",required:m=!1,size:g="medium",variant:v="outlined"}=r,y=(0,DK.A)(r,kTe),b=(0,NK.A)({},r,{color:a,component:l,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:f,required:m,size:g,variant:v}),x=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return p1({root:["root","none"!==r&&`margin${h1(r)}`,n&&"fullWidth"]},_Te,t)})(b),[w,C]=o.useState((()=>{let e=!1;return n&&o.Children.forEach(n,(t=>{if(!S2(t,["Input","Select"]))return;const r=S2(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[_,k]=o.useState((()=>{let e=!1;return n&&o.Children.forEach(n,(t=>{S2(t,["Input","Select"])&&(lxe(t.props,!0)||lxe(t.props.inputProps,!0))&&(e=!0)})),e})),[S,A]=o.useState(!1);c&&S&&A(!1);const E=void 0===d||c?S:d;let R;const I=o.useMemo((()=>({adornedStart:w,setAdornedStart:C,color:a,disabled:c,error:u,filled:_,focused:E,fullWidth:p,hiddenLabel:h,size:g,onBlur:()=>{A(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{A(!0)},registerEffect:R,required:m,variant:v})),[w,a,c,u,_,E,p,h,R,m,g,v]);return(0,i.jsx)(rxe.Provider,{value:I,children:(0,i.jsx)(STe,(0,NK.A)({as:l,ownerState:b,className:d1(x.root,s),ref:t},y,{children:n}))})})),ETe=ATe;function RTe(e){return oY("MuiFormHelperText",e)}const ITe=sY("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var OTe;const MTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],TTe=b1("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${h1(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,NK.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ITe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ITe.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),LTe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:s="p"}=r,a=(0,DK.A)(r,MTe),l=txe({props:r,muiFormControl:nxe(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,NK.A)({},r,{component:s,contained:"filled"===l.variant||"outlined"===l.variant,variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:s,focused:a,required:l}=e;return p1({root:["root",i&&"disabled",o&&"error",n&&`size${h1(n)}`,r&&"contained",a&&"focused",s&&"filled",l&&"required"]},RTe,t)})(c);return(0,i.jsx)(TTe,(0,NK.A)({as:s,ownerState:c,className:d1(u.root,o),ref:t},a,{children:" "===n?OTe||(OTe=(0,i.jsx)("span",{className:"notranslate",children:"​"})):n}))}));function PTe(e){return oY("MuiTextField",e)}sY("MuiTextField",["root"]);const jTe=["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"],NTe={standard:Twe,filled:Fwe,outlined:Ywe},DTe=b1(ETe,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BTe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:f,id:m,InputLabelProps:g,inputProps:v,InputProps:y,inputRef:b,label:x,maxRows:w,minRows:C,multiline:_=!1,name:k,onBlur:S,onChange:A,onFocus:E,placeholder:R,required:I=!1,rows:O,select:M=!1,SelectProps:T,type:L,value:P,variant:j="outlined"}=r,N=(0,DK.A)(r,jTe),D=(0,NK.A)({},r,{autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:_,required:I,select:M,variant:j}),B=(e=>{const{classes:t}=e;return p1({root:["root"]},PTe,t)})(D),F={};"outlined"===j&&(g&&void 0!==g.shrink&&(F.notched=g.shrink),F.label=x),M&&(T&&T.native||(F.id=void 0),F["aria-describedby"]=void 0);const $=Xve(m),z=f&&$?`${$}-helper-text`:void 0,U=x&&$?`${$}-label`:void 0,W=NTe[j],q=(0,i.jsx)(W,(0,NK.A)({"aria-describedby":z,autoComplete:n,autoFocus:o,defaultValue:c,fullWidth:h,multiline:_,name:k,rows:O,maxRows:w,minRows:C,type:L,value:P,id:$,inputRef:b,onBlur:S,onChange:A,onFocus:E,placeholder:R,inputProps:v},F,y));return(0,i.jsxs)(DTe,(0,NK.A)({className:d1(B.root,a),disabled:u,error:d,fullWidth:h,ref:t,required:I,color:l,variant:j,ownerState:D},N,{children:[null!=x&&""!==x&&(0,i.jsx)(CTe,(0,NK.A)({htmlFor:$,id:U},g,{children:x})),M?(0,i.jsx)(oCe,(0,NK.A)({"aria-describedby":z,id:$,labelId:U,value:P,input:q},T,{children:s})):q,f&&(0,i.jsx)(LTe,(0,NK.A)({id:z},p,{children:f}))]}))})),FTe=BTe;var $Te=s().forwardRef(((e,t)=>{const r={...e};return r.select&&(r.SelectProps={IconComponent:lOe,...r.SelectProps||{}},"tiny"===r.size&&(r.SelectProps.MenuProps={...r.SelectProps?.MenuProps||{},MenuListProps:{dense:!0,...r.SelectProps?.MenuProps?.MenuListProps||{}}})),"tiny"===r.size&&(r.InputLabelProps={size:"tiny",...r.InputLabelProps||{}}),s().createElement(FTe,{...r,ref:t})}));const zTe=c1(Wfe)`
	&:last-child {
		padding-bottom: 16px;
	}
`,UTe=c1($Te)`
	& input {
		width: 650px;
		max-width: 100%;
		padding-left: 0;
	}
`,WTe=function(){const{isTestMailInFocus:e,setTestMailInFocus:t}=dfe(),{success:r,error:o}=pfe(),[s,a]=(0,n.useState)(""),[l,c]=(0,n.useState)(!1),u=(0,n.useRef)();(0,n.useEffect)((()=>{e&&(u.current.focus(),t(!1))}),[e]);const d=!s||l;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Efe,{variant:"outlined",sx:{marginTop:"24px"},children:(0,i.jsx)(zTe,{children:(0,i.jsxs)(v2,{container:!0,spacing:2,justifyContent:"space-between",children:[(0,i.jsxs)(v2,{item:!0,xs:12,md:6,children:[(0,i.jsx)(t3,{variant:"subtitle1",children:(0,r3.__)("Send test email to","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",children:(0,r3.__)("The email address to which you want to send the test.","site-mailer")})]}),(0,i.jsx)(v2,{item:!0,xs:12,md:6,children:(0,i.jsxs)(dY,{as:"form",display:"flex",alignItems:"center",justifyContent:"end",sx:{height:"100%"},onSubmit:async e=>{e.preventDefault(),c(!0);try{await Mhe.sendTestMail(s),r((0,i.jsxs)(dY,{display:"flex",alignItems:"center",children:[(0,i.jsx)(age,{sx:{marginRight:"4px"},children:(0,r3.__)("Test email was sent.","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",children:(0,r3.__)("Check your emails.","site-mailer")})]}))}catch(e){o((0,i.jsxs)(dY,{children:[(0,i.jsx)(age,{children:(0,r3.__)("We could not sent the test email.","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",children:tfe===String(e)?(0,r3.__)("Quota reached.","site-mailer"):(0,r3.__)("Check the email you typed and try again.","site-mailer")})]}))}finally{c(!1)}},children:[(0,i.jsx)(UTe,{className:"site-mailer-textfield",size:"small",variant:"outlined",value:s,onChange:e=>{a(e.target.value)},required:!0,type:"email",placeholder:(0,r3.__)("e.g. info@gmail.com","site-mailer"),color:"secondary",inputRef:u}),(0,i.jsx)(r2,{color:"secondary",variant:"contained",size:"medium",sx:{marginLeft:"8px",height:"40px",minWidth:"85px"},type:"submit",disabled:d,children:(0,r3.__)("Send test","site-mailer")})]})})]})})})})},qTe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],VTe=b1("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,NK.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,nX.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,NK.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,NK.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,NK.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,NK.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),HTe=b1("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,NK.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),GTe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:s,component:a=(o?"div":"hr"),flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:p="center",variant:h="fullWidth"}=r,f=(0,DK.A)(r,qTe),m=(0,NK.A)({},r,{absolute:n,component:a,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:h}),g=(e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return p1({root:["root",t&&"absolute",l,o&&"light","vertical"===s&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},bxe,n)})(m);return(0,i.jsx)(VTe,(0,NK.A)({as:a,className:d1(g.root,s),role:d,ref:t,ownerState:m},f,{children:o?(0,i.jsx)(HTe,{className:g.wrapper,ownerState:m,children:o}):null}))}));GTe.muiSkipListHighlight=!0;const ZTe=GTe;var KTe=s().forwardRef(((e,t)=>s().createElement(ZTe,{...e,ref:t}))),XTe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.75C10.2051 3.75 8.75 5.20507 8.75 7C8.75 8.79493 10.2051 10.25 12 10.25C13.7949 10.25 15.25 8.79493 15.25 7C15.25 5.20507 13.7949 3.75 12 3.75ZM7.25 7C7.25 4.37665 9.37665 2.25 12 2.25C14.6234 2.25 16.75 4.37665 16.75 7C16.75 9.62335 14.6234 11.75 12 11.75C9.37665 11.75 7.25 9.62335 7.25 7ZM10 15.75C9.13805 15.75 8.3114 16.0924 7.7019 16.7019C7.09241 17.3114 6.75 18.138 6.75 19V21C6.75 21.4142 6.41421 21.75 6 21.75C5.58579 21.75 5.25 21.4142 5.25 21V19C5.25 17.7402 5.75044 16.532 6.64124 15.6412C7.53204 14.7504 8.74022 14.25 10 14.25H14C15.2598 14.25 16.468 14.7504 17.3588 15.6412C18.2496 16.532 18.75 17.7402 18.75 19V21C18.75 21.4142 18.4142 21.75 18 21.75C17.5858 21.75 17.25 21.4142 17.25 21V19C17.25 18.138 16.9076 17.3114 16.2981 16.7019C15.6886 16.0924 14.862 15.75 14 15.75H10Z"}))));const YTe=c1(v2)`
	border-radius: 4px;
	background-color: #f1f3f3;
	padding: 16px;
	flex-grow: 1;
	justify-content: center;
	flex-direction: column;
	${e=>e.theme.breakpoints.up("sm")} {
		padding: 24px;
	}
	${e=>e.theme.breakpoints.up("lg")} {
		padding: 16px 40px;
	}
`,JTe=()=>{const{senderEmail:e}=gfe(),{from:t}=dfe();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t3,{variant:"body2",color:"text.tertiary",sx:{marginBottom:"4px"},children:(0,r3.__)("Preview - What the recipients see","site-mailer")}),(0,i.jsx)(YTe,{container:!0,children:(0,i.jsx)(Efe,{variant:"outlined",sx:{padding:"16px 24px"},children:(0,i.jsxs)(v2,{container:!0,flexDirection:"column",width:"100%",gap:2,children:[(0,i.jsxs)(v2,{container:!0,gap:2,flexWrap:"nowrap",alignItems:"flex-start",children:[(0,i.jsx)(v2,{sx:{background:"#f1f3f3",padding:"10px",borderRadius:"4px"},children:(0,i.jsx)(XTe,{})}),(0,i.jsxs)(v2,{children:[(0,i.jsxs)(t3,{variant:"subtitle1",color:"text.primary",sx:{wordBreak:"break-word"},children:[t,(0,i.jsxs)(t3,{sx:{display:"inline"},variant:"body2",color:"text.tertiary",children:[" <"+e+">"," "]})]}),(0,i.jsx)(t3,{variant:"caption",color:"text.tertiary",children:(0,r3.__)("To: You","site-mailer")})]})]}),(0,i.jsx)(KTe,{}),(0,i.jsxs)(v2,{container:!0,gap:1,children:[(0,i.jsx)(J_e,{animation:!1,sx:{padding:"2px",width:"150px",height:"14px",borderRadius:"10px"}}),(0,i.jsx)(J_e,{animation:!1,sx:{padding:"2px",width:"100%",height:"14px",borderRadius:"10px"}}),(0,i.jsx)(J_e,{animation:!1,sx:{padding:"2px",width:"100%",height:"14px",borderRadius:"10px"}}),(0,i.jsx)(J_e,{animation:!1,sx:{padding:"2px",width:"100%",height:"14px",borderRadius:"10px"}})]})]})})})]})};var QTe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9697 4.96967C14.6408 4.29858 15.5509 3.92157 16.5 3.92157C17.4491 3.92157 18.3592 4.29858 19.0303 4.96967C19.7014 5.64075 20.0784 6.55094 20.0784 7.5C20.0784 8.44905 19.7014 9.35924 19.0303 10.0303L8.53033 20.5303C8.38968 20.671 8.19891 20.75 8 20.75H4C3.58579 20.75 3.25 20.4142 3.25 20V16C3.25 15.8011 3.32902 15.6103 3.46967 15.4697L13.9697 4.96967ZM16.5 5.42157C15.9488 5.42157 15.4201 5.64055 15.0303 6.03033L4.75 16.3107V19.25H7.68934L17.9697 8.96967C18.3595 8.57989 18.5784 8.05123 18.5784 7.5C18.5784 6.94876 18.3595 6.42011 17.9697 6.03033C17.5799 5.64055 17.0512 5.42157 16.5 5.42157Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9697 5.96967C13.2626 5.67677 13.7374 5.67677 14.0303 5.96967L18.0303 9.96967C18.3232 10.2626 18.3232 10.7374 18.0303 11.0303C17.7374 11.3232 17.2626 11.3232 16.9697 11.0303L12.9697 7.03033C12.6768 6.73743 12.6768 6.26256 12.9697 5.96967Z"})))),eLe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"})))),tLe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M11.9999 6.90002C11.1715 6.90002 10.4999 6.22845 10.4999 5.40002C10.4999 4.5716 11.1715 3.90002 11.9999 3.90002C12.8283 3.90002 13.4999 4.5716 13.4999 5.40002C13.4999 6.22845 12.8283 6.90002 11.9999 6.90002Z"}),o.createElement("path",{d:"M11.9999 13.5C11.1715 13.5 10.4999 12.8285 10.4999 12C10.4999 11.1716 11.1715 10.5 11.9999 10.5C12.8283 10.5 13.4999 11.1716 13.4999 12C13.4999 12.8285 12.8283 13.5 11.9999 13.5Z"}),o.createElement("path",{d:"M11.9999 20.1C11.1714 20.1 10.4999 19.4285 10.4999 18.6C10.4999 17.7716 11.1715 17.1 11.9999 17.1C12.8283 17.1 13.4999 17.7716 13.4999 18.6C13.4999 19.4285 12.8283 20.1 11.9999 20.1Z"})))),rLe=s().forwardRef(((e,t)=>s().createElement(LTe,{...e,ref:t}))),nLe=s().forwardRef(((e,t)=>{const{direction:r}=T0(),n={...e};return"rtl"===r&&(n.anchorOrigin?.horizontal&&(n.anchorOrigin={...n.anchorOrigin,horizontal:"left"===n.anchorOrigin.horizontal?"right":"left"}),n.transformOrigin?.horizontal&&(n.transformOrigin={...n.transformOrigin,horizontal:"left"===n.transformOrigin.horizontal?"right":"left"})),s().createElement(Zxe,{...n,ref:t})}));const iLe={elevation:6},oLe=s().forwardRef(((e,t)=>s().createElement(iwe,{as:nLe,...iLe,...e,ref:t})));oLe.defaultProps=iLe;var sLe=oLe;const aLe=e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)&&!/\.{2,}/.test(e),lLe=({content:e})=>{const[t,r]=(0,n.useState)(!1),o=(0,n.useRef)(null),s=t?"simple-popover":void 0;return(0,i.jsxs)("div",{children:[(0,i.jsx)(r2,{"aria-describedby":s,sx:{padding:0,minWidth:"10px"},color:"secondary",variant:"text",onClick:()=>r(!0),ref:o,children:(0,i.jsx)(nke,{fontSize:"small"})}),(0,i.jsx)(nLe,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:t,id:s,onClose:()=>r(!1),anchorEl:o.current,sx:{fontSize:"20px"},children:(0,i.jsx)(t3,{sx:{p:2},children:e})})]})},cLe=c1($Te)((()=>({width:"100%",".wp-admin & .MuiInputBase-input, & .MuiInputBase-input:focus":{backgroundColor:"initial",boxShadow:"none",border:0,color:"inherit",outline:0,padding:"16.5px 14px 16.5px 14px","&.MuiInputBase-inputSizeSmall":{padding:"8.5px 14px 8.5px 14px"},height:"40px"}}))),uLe=()=>{const{senderEmail:e,replyToEmail:t,verificationStatus:r}=gfe(),{from:o,setFrom:s,replyTo:a,setReplyTo:l,editEmail:c,setEditEmail:u,customEmailPrefix:d,setCustomEmailPrefix:p,customDomain:h,isValidReplyToEmail:f,setIsValidReplyToEmail:m}=dfe(),g=(0,n.useRef)(null),[v,y]=(0,n.useState)(!1),b=()=>y(!v);return(0,i.jsxs)(v2,{item:!0,container:!0,flexDirection:"column",gap:2,children:[(0,i.jsxs)(v2,{item:!0,container:!0,flexDirection:"column",gap:1,children:[(0,i.jsxs)(v2,{container:!0,gap:"4px",flexDirection:"row",alignItems:"center",children:[(0,i.jsxs)(t3,{variant:"body1",color:"text.secondary",children:[(0,r3.__)("Email","site-mailer")," "]}),(0,i.jsx)(lLe,{content:(0,r3.__)("The email address that will appear as the sender of the email.","site-mailer")})]}),!c&&(0,i.jsxs)(v2,{container:!0,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(t3,{variant:"body1",color:"text.primary",children:e}),"verified"===r&&(0,i.jsxs)(dY,{display:"flex",justifyContent:"end",children:[(0,i.jsx)(vbe,{size:"medium",ref:g,onClick:b,children:(0,i.jsx)(tLe,{})}),(0,i.jsx)(sLe,{open:v,onClose:b,anchorEl:g.current,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:(0,i.jsxs)(aOe,{onClick:()=>{u(!0),y(!1)},children:[(0,i.jsx)(QTe,{sx:{marginInlineEnd:"8px"}}),(0,r3.__)("Edit email","site-mailer")]})})]})]}),c&&(0,i.jsxs)(v2,{container:!0,justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(dY,{display:"flex",alignItems:"center",children:[(0,i.jsx)(cLe,{className:"site-mailer-textfield",type:"text",variant:"outlined",size:"small",value:d,color:"secondary",sx:{marginRight:1},onChange:e=>{p(e.target.value)}}),(0,i.jsx)(t3,{children:`@${h}`})]}),(0,i.jsx)(vbe,{onClick:()=>u(!1),children:(0,i.jsx)(eLe,{})})]})]}),(0,i.jsxs)(v2,{item:!0,container:!0,flexDirection:"column",gap:1,children:[(0,i.jsxs)(v2,{container:!0,alignItems:"center",gap:"4px",children:[(0,i.jsxs)(t3,{variant:"body1",color:"text.secondary",children:[(0,r3.__)("Name","site-mailer")," "]}),(0,i.jsx)(lLe,{content:(0,r3.__)("The name that will be displayed as the email sender.","site-mailer")})]}),(0,i.jsx)(cLe,{className:"site-mailer-textfield",type:"text",variant:"outlined",size:"small",defaultValue:"Email Deliverability",value:o,color:"secondary",onChange:e=>{s(e.target.value)}})]}),(0,i.jsxs)(v2,{item:!0,container:!0,flexDirection:"column",gap:1,children:[(0,i.jsxs)(v2,{container:!0,alignItems:"center",gap:"4px",sx:{marginBottom:"4px"},children:[(0,i.jsx)(t3,{variant:"body1",color:"text.secondary",children:(0,r3.__)("Reply to","site-mailer")}),(0,i.jsx)(lLe,{content:(0,r3.__)("The email address that your viewers will see when they click reply.","site-mailer")})]}),(0,i.jsx)(cLe,{className:"site-mailer-textfield",type:"email",variant:"outlined",size:"small",defaultValue:t,value:a,color:"secondary",onChange:e=>{(e=>{const t=aLe(e);m(t),l(e)})(e.target.value)}}),!f&&(0,i.jsx)(rLe,{error:!0,children:(0,r3.__)("Please enter a valid email.","site-mailer")})]})]})},dLe=(0,n.createContext)({}),pLe=({children:e})=>{const t=(0,n.useState)(null);return(0,i.jsx)(dLe.Provider,{value:{wizardStatusState:t},children:e})};pLe.propTypes={children:Nhe().node};const hLe=()=>{const{success:e,error:t}=pfe(),{customDomainDNSRecords:r,verificationStatus:n,verificationRecords:i,refreshPluginSettings:o}=gfe(),{save:s}=h3(),{customDomain:a,customEmailPrefix:l,setVerificationData:c,setRegistrationData:u,setShowCustomDomainVerifiedAlert:d}=dfe();return{cancelProcess:async()=>{try{await Mhe.deleteDomain(),await o(),e((0,r3.__)("Domain deleted successfully","site-mailer"))}catch(e){t((0,r3.__)("Domain deletion failed","site-mailer"))}},registerDomain:async()=>{try{const e=await Mhe.registerDomain({domain:a,emailPrefix:l});return u(e),await o(),!0}catch(e){return t((0,r3.__)("Domain registration error","site-mailer")),!1}},verifyDomain:async()=>{try{const e=await Mhe.verifyDomain({domain:a,emailPrefix:l});return c(e),await s({site_mailer_custom_domain_verified_alert:!0}).then((()=>{d(!0)})),await o(),e.valid}catch(e){return t((0,r3.__)("Domain verification error","site-mailer")),!1}},isRegistered:()=>Boolean(r),isVerificationStarted:()=>"not-started"!==n,isVerified:()=>"verified"===n,getVerificationRecords:()=>i,closeVerifiedAlert:()=>{d(!1),s({site_mailer_custom_domain_verified_alert:!1})}}};class fLe extends o.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}var mLe=fLe;const gLe=o.createContext({}),vLe=o.createContext({});function yLe(e){return oY("MuiStep",e)}sY("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const bLe=["active","children","className","component","completed","disabled","expanded","index","last"],xLe=b1("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})((({ownerState:e})=>(0,NK.A)({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"}))),wLe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiStep"}),{active:n,children:s,className:a,component:l="div",completed:c,disabled:u,expanded:d=!1,index:p,last:h}=r,f=(0,DK.A)(r,bLe),{activeStep:m,connector:g,alternativeLabel:v,orientation:y,nonLinear:b}=o.useContext(gLe);let[x=!1,w=!1,C=!1]=[n,c,u];m===p?x=void 0===n||n:!b&&m>p?w=void 0===c||c:!b&&m<p&&(C=void 0===u||u);const _=o.useMemo((()=>({index:p,last:h,expanded:d,icon:p+1,active:x,completed:w,disabled:C})),[p,h,d,x,w,C]),k=(0,NK.A)({},r,{active:x,orientation:y,alternativeLabel:v,completed:w,disabled:C,expanded:d,component:l}),S=(e=>{const{classes:t,orientation:r,alternativeLabel:n,completed:i}=e;return p1({root:["root",r,n&&"alternativeLabel",i&&"completed"]},yLe,t)})(k),A=(0,i.jsxs)(xLe,(0,NK.A)({as:l,className:d1(S.root,a),ref:t,ownerState:k},f,{children:[g&&v&&0!==p?g:null,s]}));return(0,i.jsx)(vLe.Provider,{value:_,children:g&&!v&&0!==p?(0,i.jsxs)(o.Fragment,{children:[g,A]}):A})})),CLe=wLe;var _Le=s().forwardRef(((e,t)=>s().createElement(CLe,{...e,ref:t})));const kLe=kwe((0,i.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),SLe=kwe((0,i.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function ALe(e){return oY("MuiStepIcon",e)}const ELe=sY("MuiStepIcon",["root","active","completed","error","text"]);var RLe;const ILe=["active","className","completed","error","icon"],OLe=b1(k1,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${ELe.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${ELe.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${ELe.error}`]:{color:(e.vars||e).palette.error.main}}))),MLe=b1("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),TLe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiStepIcon"}),{active:n=!1,className:o,completed:s=!1,error:a=!1,icon:l}=r,c=(0,DK.A)(r,ILe),u=(0,NK.A)({},r,{active:n,completed:s,error:a}),d=(e=>{const{classes:t,active:r,completed:n,error:i}=e;return p1({root:["root",r&&"active",n&&"completed",i&&"error"],text:["text"]},ALe,t)})(u);if("number"==typeof l||"string"==typeof l){const e=d1(o,d.root);return a?(0,i.jsx)(OLe,(0,NK.A)({as:SLe,className:e,ref:t,ownerState:u},c)):s?(0,i.jsx)(OLe,(0,NK.A)({as:kLe,className:e,ref:t,ownerState:u},c)):(0,i.jsxs)(OLe,(0,NK.A)({className:e,ref:t,ownerState:u},c,{children:[RLe||(RLe=(0,i.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,i.jsx)(MLe,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}));function LLe(e){return oY("MuiStepLabel",e)}const PLe=sY("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),jLe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],NLe=b1("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation]]}})((({ownerState:e})=>(0,NK.A)({display:"flex",alignItems:"center",[`&.${PLe.alternativeLabel}`]:{flexDirection:"column"},[`&.${PLe.disabled}`]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"}))),DLe=b1("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e})=>(0,NK.A)({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${PLe.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${PLe.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${PLe.alternativeLabel}`]:{marginTop:16},[`&.${PLe.error}`]:{color:(e.vars||e).palette.error.main}}))),BLe=b1("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${PLe.alternativeLabel}`]:{paddingRight:0}}))),FLe=b1("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${PLe.alternativeLabel}`]:{textAlign:"center"}}))),$Le=o.forwardRef((function(e,t){var r;const n=g1({props:e,name:"MuiStepLabel"}),{children:s,className:a,componentsProps:l={},error:c=!1,icon:u,optional:d,slotProps:p={},StepIconComponent:h,StepIconProps:f}=n,m=(0,DK.A)(n,jLe),{alternativeLabel:g,orientation:v}=o.useContext(gLe),{active:y,disabled:b,completed:x,icon:w}=o.useContext(vLe),C=u||w;let _=h;C&&!_&&(_=TLe);const k=(0,NK.A)({},n,{active:y,alternativeLabel:g,completed:x,disabled:b,error:c,orientation:v}),S=(e=>{const{classes:t,orientation:r,active:n,completed:i,error:o,disabled:s,alternativeLabel:a}=e;return p1({root:["root",r,o&&"error",s&&"disabled",a&&"alternativeLabel"],label:["label",n&&"active",i&&"completed",o&&"error",s&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",i&&"completed",o&&"error",s&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]},LLe,t)})(k),A=null!=(r=p.label)?r:l.label;return(0,i.jsxs)(NLe,(0,NK.A)({className:d1(S.root,a),ref:t,ownerState:k},m,{children:[C||_?(0,i.jsx)(BLe,{className:S.iconContainer,ownerState:k,children:(0,i.jsx)(_,(0,NK.A)({completed:x,active:y,error:c,icon:C},f))}):null,(0,i.jsxs)(FLe,{className:S.labelContainer,ownerState:k,children:[s?(0,i.jsx)(DLe,(0,NK.A)({ownerState:k},A,{className:d1(S.label,null==A?void 0:A.className),children:s})):null,d]})]}))}));$Le.muiName="StepLabel";const zLe=$Le,ULe=s().forwardRef(((e,t)=>{const r=T0();return s().createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},s().createElement("g",{clipPath:"url(#clip0_2503_21505)"},s().createElement("circle",{cx:"12",cy:"12",r:"12",fill:r.palette.primary.main}),s().createElement("path",{fill:r.palette.primary.contrastText,fillRule:"evenodd",clipRule:"evenodd",d:"M17.7753 8.22472C17.5312 7.98064 17.1355 7.98064 16.8914 8.22472L10.6667 14.4494L7.77532 11.5581C7.53124 11.314 7.13551 11.314 6.89143 11.5581C6.64735 11.8021 6.64735 12.1979 6.89143 12.4419L10.2248 15.7753C10.4688 16.0194 10.8646 16.0194 11.1086 15.7753L17.7753 9.10861C18.0194 8.86453 18.0194 8.4688 17.7753 8.22472Z"})),s().createElement("defs",null,s().createElement("clipPath",{id:"clip0_2503_21505"},s().createElement("rect",{width:"24",height:"24",rx:"12",fill:"white"}))))})),WLe={StepIconComponent:s().forwardRef(((e,t)=>{const r={...e};return r.completed&&(r.as=e=>s().createElement(ULe,{...e})),s().createElement(TLe,{...r,ref:t})}))},qLe=s().forwardRef(((e,t)=>{const r={...WLe,...e};return r.componentsProps||(r.componentsProps={}),r.componentsProps.label||(r.componentsProps.label={}),r.componentsProps={...r.componentsProps,label:{...r.componentsProps.label,className:d1([r.componentsProps.label.className,r.StepIconProps?.active&&"Mui-active",r.StepIconProps?.completed&&"Mui-completed",r.StepIconProps?.error&&"Mui-error"])}},s().createElement(zLe,{...r,ref:t})}));qLe.defaultProps=WLe;var VLe=qLe;function HLe(e){return oY("MuiStepper",e)}function GLe(e){return oY("MuiStepConnector",e)}sY("MuiStepper",["root","horizontal","vertical","alternativeLabel"]),sY("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const ZLe=["className"],KLe=b1("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})((({ownerState:e})=>(0,NK.A)({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),XLe=b1("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.line,t[`line${h1(r.orientation)}`]]}})((({ownerState:e,theme:t})=>{const r="light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return(0,NK.A)({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:r},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),YLe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiStepConnector"}),{className:n}=r,s=(0,DK.A)(r,ZLe),{alternativeLabel:a,orientation:l="horizontal"}=o.useContext(gLe),{active:c,disabled:u,completed:d}=o.useContext(vLe),p=(0,NK.A)({},r,{alternativeLabel:a,orientation:l,active:c,completed:d,disabled:u}),h=(e=>{const{classes:t,orientation:r,alternativeLabel:n,active:i,completed:o,disabled:s}=e;return p1({root:["root",r,n&&"alternativeLabel",i&&"active",o&&"completed",s&&"disabled"],line:["line",`line${h1(r)}`]},GLe,t)})(p);return(0,i.jsx)(KLe,(0,NK.A)({className:d1(h.root,n),ref:t,ownerState:p},s,{children:(0,i.jsx)(XLe,{className:h.line,ownerState:p})}))})),JLe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],QLe=b1("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>(0,NK.A)({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),ePe=(0,i.jsx)(YLe,{}),tPe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiStepper"}),{activeStep:n=0,alternativeLabel:s=!1,children:a,className:l,component:c="div",connector:u=ePe,nonLinear:d=!1,orientation:p="horizontal"}=r,h=(0,DK.A)(r,JLe),f=(0,NK.A)({},r,{alternativeLabel:s,orientation:p,component:c}),m=(e=>{const{orientation:t,alternativeLabel:r,classes:n}=e;return p1({root:["root",t,r&&"alternativeLabel"]},HLe,n)})(f),g=o.Children.toArray(a).filter(Boolean),v=g.map(((e,t)=>o.cloneElement(e,(0,NK.A)({index:t,last:t+1===g.length},e.props)))),y=o.useMemo((()=>({activeStep:n,alternativeLabel:s,connector:u,nonLinear:d,orientation:p})),[n,s,u,d,p]);return(0,i.jsx)(gLe.Provider,{value:y,children:(0,i.jsx)(QLe,(0,NK.A)({as:c,ownerState:f,className:d1(m.root,l),ref:t},h,{children:v}))})})),rPe=tPe;var nPe=s().forwardRef(((e,t)=>s().createElement(rPe,{...e,ref:t})));const iPe=()=>(0,i.jsx)(mMe,{severity:"error",children:(0,i.jsx)(age,{children:(0,r3.__)("Something went wrong.","site-mailer")})}),oPe=c1($Te)`
	height: inherit;

	& .MuiInputBase-input, & .MuiInputBase-input:focus {
		background-color: initial;
		box-shadow: none;
		border: 0;
		color: inherit;
		outline: 0;
		padding: 16.5px 14px 16.5px 14px;
	}

	& .MuiInputBase-inputSizeSmall {
		padding: 8.5px 14px 8.5px 14px;
	}
`,sPe=({setIsNextLocked:e})=>{const[t,r]=(0,n.useState)(!0),{customDomain:o,setCustomDomain:s,customEmailPrefix:a,setCustomEmailPrefix:l}=dfe();(0,n.useEffect)((()=>{if(!o.length)return r(!0),void l("");r(c(o))}),[o]),(0,n.useEffect)((()=>{e(!(o&&a&&t))}),[a,t]);const c=e=>/^(?!:\/\/)([a-zA-Z0-9-_]{1,63}\.)*[a-zA-Z]{2,100}$/.test(e);return(0,i.jsxs)(v2,{container:!0,flexDirection:"column",justifyContent:"center",alignContent:"center",alignItems:"center",maxWidth:"sm",children:[(0,i.jsx)(t3,{variant:"h5",color:"text.primary",marginTop:4,marginBottom:4,children:(0,r3.__)("Enter your sender details","site-mailer")}),(0,i.jsxs)(fme,{sx:{marginBottom:5},children:[(0,i.jsx)(t3,{variant:"body1",color:"text.primary",marginBottom:1,children:(0,r3.__)("Add the domain you want to authorize to send emails","site-mailer")}),(0,i.jsx)(oPe,{value:o,onChange:e=>{s(e.target.value)},variant:"outlined",size:"medium",placeholder:(0,r3.__)("e.g. yourdomain.com","site-mailer"),fullWidth:!0,error:!t,color:"secondary",sx:{direction:"ltr /* @noflip */"}}),(0,i.jsx)(rLe,{error:!t,children:(0,r3.__)("Please enter a valid domain","site-mailer")})]}),(0,i.jsxs)(fme,{children:[(0,i.jsx)(t3,{variant:"body1",color:"text.primary",marginBottom:1,children:(0,r3.__)("Add the sender domain you want to authorize to send emails","site-mailer")}),(0,i.jsxs)(v2,{container:!0,flexDirection:"row",flexWrap:"nowrap",alignItems:"center",gap:1,sx:{direction:"ltr /* @noflip */"},children:[(0,i.jsx)(oPe,{value:a,onChange:e=>l(e.target.value),variant:"outlined",size:"medium",placeholder:(0,r3.__)("e.g. info","site-mailer"),disabled:!o,color:"secondary",sx:{width:"240px",direction:"ltr /* @noflip */"}}),(0,i.jsx)(t3,{variant:"subtitle1",sx:{direction:"ltr /* @noflip */"},children:`@${o||"yourdomain.com"}`})]})]})]})};sPe.propTypes={setIsNextLocked:Nhe().func.isRequired};const aPe=sPe;function lPe(e){return oY("MuiFormControlLabel",e)}const cPe=sY("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uPe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],dPe=b1("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${cPe.label}`]:t.label},t.root,t[`labelPlacement${h1(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,NK.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${cPe.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${cPe.label}`]:{[`&.${cPe.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),pPe=b1("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${cPe.error}`]:{color:(e.vars||e).palette.error.main}}))),hPe=o.forwardRef((function(e,t){var r,n;const s=g1({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:l={},control:c,disabled:u,disableTypography:d,label:p,labelPlacement:h="end",required:f,slotProps:m={}}=s,g=(0,DK.A)(s,uPe),v=nxe(),y=null!=(r=null!=u?u:c.props.disabled)?r:null==v?void 0:v.disabled,b=null!=f?f:c.props.required,x={disabled:y,required:b};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===c.props[e]&&void 0!==s[e]&&(x[e]=s[e])}));const w=txe({props:s,muiFormControl:v,states:["error"]}),C=(0,NK.A)({},s,{disabled:y,labelPlacement:h,required:b,error:w.error}),_=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e;return p1({root:["root",r&&"disabled",`labelPlacement${h1(n)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]},lPe,t)})(C),k=null!=(n=m.typography)?n:l.typography;let S=p;return null==S||S.type===Q2||d||(S=(0,i.jsx)(Q2,(0,NK.A)({component:"span"},k,{className:d1(_.label,null==k?void 0:k.className),children:S}))),(0,i.jsxs)(dPe,(0,NK.A)({className:d1(_.root,a),ownerState:C,ref:t},g,{children:[o.cloneElement(c,x),b?(0,i.jsxs)(Hme,{display:"block",children:[S,(0,i.jsxs)(pPe,{ownerState:C,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):S]}))})),fPe=hPe;var mPe=s().forwardRef(((e,t)=>s().createElement(fPe,{...e,ref:t})));const gPe=({setIsNextLocked:e})=>{const{customDomain:t}=dfe(),[r,o]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{e(!r)}),[r]),(0,i.jsxs)(v2,{container:!0,flexDirection:"column",alignItems:"center",width:"70%",children:[(0,i.jsx)(t3,{variant:"h5",color:"text.primary",marginTop:4,marginBottom:4,children:(0,r3.__)("Go to your domain settings","site-mailer")}),(0,i.jsx)(Efe,{variant:"outlined",sx:{width:"100%"},children:(0,i.jsxs)(dY,{component:"ol",children:[(0,i.jsx)(dY,{component:"li",children:(0,i.jsx)(t3,{variant:"body1",children:$he((0,r3.__)("Log into your provider’s website and go to the {{strong}}Domains{{/strong}} tab.","site-mailer"),{strong:({children:e})=>(0,i.jsx)(t3,{component:"span",variant:"subtitle1",children:e})})})}),(0,i.jsx)(dY,{component:"li",children:(0,i.jsx)(t3,{variant:"body1",children:$he((0,r3.sprintf)(
// Translators: %s - custom domain
// Translators: %s - custom domain
(0,r3.__)("Look for {{strong}}%s{{/strong}}.","site-mailer"),t),{strong:({children:e})=>(0,i.jsx)(t3,{component:"span",variant:"subtitle1",children:e})})})}),(0,i.jsx)(dY,{component:"li",children:(0,i.jsx)(t3,{variant:"body1",children:$he((0,r3.__)("Open its {{strong}}settings{{/strong}}.","site-mailer"),{strong:({children:e})=>(0,i.jsx)(t3,{component:"span",variant:"subtitle1",children:e})})})}),(0,i.jsx)(dY,{component:"li",children:(0,i.jsx)(t3,{variant:"body1",children:$he((0,r3.__)("Find the option to {{strong}}manage domain settings{{/strong}}.","site-mailer"),{strong:({children:e})=>(0,i.jsx)(t3,{component:"span",variant:"subtitle1",children:e})})})})]})}),(0,i.jsx)(mPe,{control:(0,i.jsx)(wke,{onChange:()=>o(!r),checked:r}),label:(0,r3.__)("I’ve logged in and found the domain settings","site-mailer"),sx:{alignSelf:"flex-start",marginTop:4}})]})};gPe.propTypes={setIsNextLocked:Nhe().func.isRequired};const vPe=gPe;var yPe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.05546 4.05546C4.57118 3.53973 5.27065 3.25 6 3.25H14C14.7293 3.25 15.4288 3.53973 15.9445 4.05546C16.4603 4.57118 16.75 5.27065 16.75 6V7.25H18C19.5188 7.25 20.75 8.48122 20.75 10V18C20.75 19.5188 19.5188 20.75 18 20.75H10C8.48122 20.75 7.25 19.5188 7.25 18V16.75H6C5.27065 16.75 4.57118 16.4603 4.05546 15.9445C3.53973 15.4288 3.25 14.7293 3.25 14V6C3.25 5.27065 3.53973 4.57118 4.05546 4.05546ZM8.75 18C8.75 18.6904 9.30964 19.25 10 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V10C19.25 9.30964 18.6904 8.75 18 8.75H10C9.30964 8.75 8.75 9.30964 8.75 10V18ZM15.25 7.25H10C8.48122 7.25 7.25 8.48122 7.25 10V15.25H6C5.66848 15.25 5.35054 15.1183 5.11612 14.8839C4.8817 14.6495 4.75 14.3315 4.75 14V6C4.75 5.66848 4.8817 5.35054 5.11612 5.11612C5.35054 4.8817 5.66848 4.75 6 4.75H14C14.3315 4.75 14.6495 4.8817 14.8839 5.11612C15.1183 5.35054 15.25 5.66848 15.25 6V7.25Z"})))),bPe=r(6673),xPe=r.n(bPe);const wPe=({content:e})=>{const[t,r]=(0,n.useState)(!1),[o,s]=(0,n.useState)(!1);return(0,i.jsx)(hye,{open:t,onClose:()=>{r(!1),setTimeout((()=>s(!1)),200)},onOpen:()=>{r(!0)},title:o?(0,r3.__)("Copied!","site-mailer"):(0,r3.__)("Copy","site-mailer"),arrow:!1,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-8]}},{name:"zIndex",enabled:!0,phase:"beforeWrite",fn:({state:e})=>{e.styles.popper.zIndex="99999"}}]},children:(0,i.jsx)(vbe,{onClick:async()=>{await xPe()(e),s(!0)},children:(0,i.jsx)(yPe,{})})})},CPe=({record:e})=>(0,i.jsx)(qCe,{children:(0,i.jsx)(QCe,{colSpan:4,sx:{p:0},children:(0,i.jsxs)(mMe,{severity:"warning",variant:"standard",children:[(0,i.jsx)(age,{children:(0,r3.__)("We received the following error when validating the record","site-mailer")}),e.reason]})})},e+"verification");CPe.propTypes={record:Nhe().object.isRequired};const _Pe=CPe,kPe=()=>{const{registrationData:e,verificationData:t}=dfe(),{getVerificationRecords:r}=hLe();if(!e?.dnsRecords)return(0,i.jsx)(JCe,{children:(0,i.jsx)(QCe,{colSpan:4,children:(0,i.jsx)(t3,{variant:"body1",children:(0,r3.__)("No DNS records found","site-mailer")})})});const o=Object.keys(t).length?t:r();return(0,i.jsx)(JCe,{children:Object.entries(e.dnsRecords).map(((e,t)=>{const r=o?.validation_results?.[e[0]];return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsxs)(qCe,{children:[(0,i.jsxs)(QCe,{sx:{textAlign:"left /* @noflip */"},children:[!r&&!e[1].status&&(0,i.jsx)(d_e,{size:"small",variant:"outlined",label:(0,r3.__)("Pending","site-mailer")}),r&&!r?.valid?(0,i.jsx)(d_e,{size:"small",color:"warning",variant:"outlined",label:(0,r3.__)("Failed","site-mailer")}):null,r&&r?.valid?(0,i.jsx)(d_e,{size:"small",color:"info",variant:"outlined",label:(0,r3.__)("Verified","site-mailer")}):null]}),(0,i.jsx)(QCe,{sx:{textTransform:"uppercase",textAlign:"left /* @noflip */"},children:e[1].type}),(0,i.jsx)(QCe,{sx:{textAlign:"left /* @noflip */"},children:(0,i.jsxs)(v2,{container:!0,justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap",children:[e[1].host," ",(0,i.jsx)(wPe,{content:e[1].host})]})}),(0,i.jsx)(QCe,{sx:{textAlign:"left /* @noflip */"},children:(0,i.jsxs)(v2,{container:!0,justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap",children:[e[1].data," ",(0,i.jsx)(wPe,{content:e[1].data})]})})]}),!1===r?.valid&&(0,i.jsx)(_Pe,{record:r})]},t)}))})},SPe=()=>(0,i.jsx)(R_e,{children:(0,i.jsxs)(qCe,{children:[(0,i.jsx)(QCe,{variant:"head",sx:{textAlign:"left /* @noflip */"},children:"Status"}),(0,i.jsx)(QCe,{variant:"head",sx:{whiteSpace:"nowrap",textAlign:"left /* @noflip */"},children:"Record Type"}),(0,i.jsx)(QCe,{variant:"head",sx:{textAlign:"left /* @noflip */"},children:"Host"}),(0,i.jsx)(QCe,{variant:"head",sx:{textAlign:"left /* @noflip */"},children:"Value"})]})}),APe=()=>(0,i.jsxs)(Eme,{sx:{direction:"ltr /* @noflip */"},children:[(0,i.jsx)(t3,{variant:"body1",marginBottom:2,sx:{direction:"ltr"},children:(0,r3.__)("In the domain settings, add a new record and paste these values.","site-mailer")}),(0,i.jsxs)(Cme,{sx:{border:"1px solid",borderColor:"divider",borderRadius:"4px"},children:[(0,i.jsx)(SPe,{}),(0,i.jsx)(kPe,{})]})]}),EPe=({setIsNextLocked:e})=>{const{isVerificationStarted:t,isVerified:r}=hLe(),[o,s]=(0,n.useState)(r()||t());return(0,n.useEffect)((()=>{e(!o)}),[o]),(0,i.jsxs)(v2,{container:!0,flexDirection:"column",alignItems:"center",children:[(0,i.jsx)(t3,{variant:"h5",color:"text.primary",marginTop:4,marginBottom:4,children:(0,r3.__)("Update your DNS records with the following information","site-mailer")}),(0,i.jsxs)(fme,{children:[(0,i.jsx)(APe,{}),!r()&&!t()&&(0,i.jsx)(mPe,{control:(0,i.jsx)(wke,{onChange:()=>s(!o),checked:o}),label:(0,r3.__)("I’ve updated my domain records with the values above","site-mailer"),sx:{marginTop:4}})]})]})},RPe=({activeStep:e,steps:t,setIsNextLocked:r,...n})=>(0,i.jsx)(mLe,{fallback:(0,i.jsx)(iPe,{}),...n,children:(0,i.jsxs)(v2,{container:!0,justifyContent:"center",alignItems:"center",flexDirection:"column",padding:2,children:[(0,i.jsx)(nPe,{activeStep:e,...n,sx:{width:"80%"},children:t.map((e=>(0,i.jsx)(_Le,{children:(0,i.jsx)(VLe,{children:e})},e)))}),(0,i.jsxs)(v2,{container:!0,width:"100%",justifyContent:"center",children:[0===e&&(0,i.jsx)(aPe,{setIsNextLocked:r}),1===e&&(0,i.jsx)(vPe,{setIsNextLocked:r}),2===e&&(0,i.jsx)(EPe,{setIsNextLocked:r})]})]})}),IPe=({activeStep:e,steps:t,isNextLocked:r,prev:n,next:o})=>{const s=e===t.length-1?(0,r3.__)("Verify my domain","site-mailer"):(0,r3.__)("Next","site-mailer");return(0,i.jsxs)(v2,{container:!0,justifyContent:"flex-end",children:[e<2&&(0,i.jsx)(r2,{color:"inherit",disabled:0===e,onClick:n,sx:{mr:1},children:(0,r3.__)("Back","site-mailer")}),(0,i.jsx)(r2,{variant:"contained",onClick:o,disabled:r,children:s})]})};IPe.propTypes={activeStep:Nhe().number.isRequired,steps:Nhe().array.isRequired,isNextLocked:Nhe().bool.isRequired,prev:Nhe().func.isRequired,next:Nhe().func.isRequired};const OPe=IPe;var MPe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.75C11.138 3.75 10.3114 4.09241 9.7019 4.7019C9.09241 5.3114 8.75 6.13805 8.75 7V10.25H15.25V7C15.25 6.13805 14.9076 5.3114 14.2981 4.7019C13.6886 4.09241 12.862 3.75 12 3.75ZM16.75 10.25V7C16.75 5.74022 16.2496 4.53204 15.3588 3.64124C14.468 2.75044 13.2598 2.25 12 2.25C10.7402 2.25 9.53204 2.75044 8.64124 3.64124C7.75044 4.53204 7.25 5.74022 7.25 7V10.25H7C6.27065 10.25 5.57118 10.5397 5.05546 11.0555C4.53973 11.5712 4.25 12.2707 4.25 13V19C4.25 19.7293 4.53973 20.4288 5.05546 20.9445C5.57118 21.4603 6.27065 21.75 7 21.75H17C17.7293 21.75 18.4288 21.4603 18.9445 20.9445C19.4603 20.4288 19.75 19.7293 19.75 19V13C19.75 12.2707 19.4603 11.5712 18.9445 11.0555C18.4288 10.5397 17.7293 10.25 17 10.25H16.75ZM7 11.75C6.66848 11.75 6.35054 11.8817 6.11612 12.1161C5.8817 12.3505 5.75 12.6685 5.75 13V19C5.75 19.3315 5.8817 19.6495 6.11612 19.8839C6.35054 20.1183 6.66848 20.25 7 20.25H17C17.3315 20.25 17.6495 20.1183 17.8839 19.8839C18.1183 19.6495 18.25 19.3315 18.25 19V13C18.25 12.6685 18.1183 12.3505 17.8839 12.1161C17.6495 11.8817 17.3315 11.75 17 11.75H7Z"})))),TPe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75ZM2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 6.25C12.4142 6.25 12.75 6.58579 12.75 7V11.6893L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L11.4697 12.5303C11.329 12.3897 11.25 12.1989 11.25 12V7C11.25 6.58579 11.5858 6.25 12 6.25Z"})))),LPe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.80421 6.63475L12 12.0986L20.1958 6.63475C20.0396 6.12258 19.5633 5.75 19 5.75H5C4.43671 5.75 3.96045 6.12258 3.80421 6.63475ZM20.25 8.40139L12.416 13.624C12.1641 13.792 11.8359 13.792 11.584 13.624L3.75 8.40139V17C3.75 17.6904 4.30964 18.25 5 18.25H19C19.6904 18.25 20.25 17.6904 20.25 17V8.40139ZM2.25 7C2.25 5.48122 3.48122 4.25 5 4.25H19C20.5188 4.25 21.75 5.48122 21.75 7V17C21.75 18.5188 20.5188 19.75 19 19.75H5C3.48122 19.75 2.25 18.5188 2.25 17V7Z"}))));const PPe=()=>(0,i.jsxs)(v2,{container:!0,justifyContent:"center",alignItems:"center",flexDirection:"column",children:[(0,i.jsx)(t3,{variant:"h4",color:"text.primary",sx:{marginTop:5,marginBottom:1},children:(0,r3.__)("Let's add your custom email","site-mailer")}),(0,i.jsx)(t3,{variant:"subtitle1",color:"text.tertiary",children:(0,r3.__)("First you’ll update your DNS records, then we’ll verify that the process was successful","site-mailer")}),(0,i.jsx)(t3,{variant:"h5",color:"text.primary",sx:{marginTop:7,marginBottom:4},children:(0,r3.__)("Before we begin…","site-mailer")}),(0,i.jsxs)(_2,{sx:{paddingBottom:10},disablePadding:!0,children:[(0,i.jsxs)(z2,{disableGutters:!0,disablePadding:!0,alignItems:"flex-start",children:[(0,i.jsx)(G2,{children:(0,i.jsx)(MPe,{})}),(0,i.jsx)(o5,{primary:(0,r3.__)("Get ready to sign into your domain provider","site-mailer"),primaryTypographyProps:{variant:"subtitle1"},secondary:(0,r3.__)("You’ll copy and paste from here to your DNS records","site-mailer"),secondaryTypographyProps:{variant:"body2"},sx:{marginTop:0}})]}),(0,i.jsxs)(z2,{disableGutters:!0,disablePadding:!0,alignItems:"flex-start",children:[(0,i.jsx)(G2,{children:(0,i.jsx)(TPe,{})}),(0,i.jsx)(o5,{primary:(0,r3.__)("The process can take up to 72 hours","site-mailer"),primaryTypographyProps:{variant:"subtitle1"},secondary:(0,r3.__)("Until then, emails will be sent from your default domain","site-mailer"),secondaryTypographyProps:{variant:"body2"},sx:{marginTop:0}})]}),(0,i.jsxs)(z2,{disableGutters:!0,disablePadding:!0,alignItems:"flex-start",children:[(0,i.jsx)(G2,{children:(0,i.jsx)(LPe,{})}),(0,i.jsx)(o5,{primary:(0,r3.__)("Don’t use public domains, such as Gmail","site-mailer"),primaryTypographyProps:{variant:"subtitle1"},secondary:(0,r3.__)("This is because you can’t edit their DNS records","site-mailer"),secondaryTypographyProps:{variant:"body2"},sx:{marginTop:0}})]})]})]}),jPe=c1(rbe)`
	z-index: 9999;
`,NPe=({onClose:e,children:t})=>(0,i.jsxs)(jPe,{open:!0,maxWidth:"lg",fullWidth:!0,onClose:e,children:[(0,i.jsx)(jbe,{onClose:e,logo:!1,children:(0,i.jsx)(zbe,{children:(0,r3.__)("Email and domain authentication","site-mailer")})}),t]});NPe.propTypes={onClose:Nhe().func.isRequired,children:Nhe().node};const DPe=NPe,BPe=[(0,r3.__)("Sender details","site-mailer"),(0,r3.__)("Domain provider","site-mailer"),(0,r3.__)("Update DNS records","site-mailer")],FPe=({step:e,onClose:t})=>{const{isRegistered:r,registerDomain:o,verifyDomain:s}=hLe(),[a,l]=(0,n.useState)(!1);r()&&!e&&(e=2);const{currentStep:c,isNextLocked:u,setIsNextLocked:d,prev:p,next:h}=((e,t=0)=>{const[r,i]=(0,n.useState)(t),[o,s]=(0,n.useState)(!0);return{stepsLength:e.length,currentStep:r,prev:()=>(r-1>=0&&i(r-1),r),next:()=>(o||r+1<e.length&&(i(r+1),s(!0)),r),isNextLocked:o,setIsNextLocked:s}})(BPe,e);return a||void 0!==e?(0,i.jsxs)(DPe,{onClose:t,children:[(0,i.jsx)(cbe,{dividers:!0,sx:{height:"554px"},children:(0,i.jsx)(v2,{container:!0,justifyContent:"center",alignItems:"center",children:(0,i.jsx)(RPe,{setIsNextLocked:d,activeStep:c,steps:BPe})})}),(0,i.jsx)(j_e,{children:(0,i.jsx)(OPe,{activeStep:c,steps:BPe,prev:p,next:async()=>{if(1===c){d(!0);const e=await o();return d(!1),e?h():void 0}return 2===c?(d(!0),await s()?void setTimeout((()=>t()),4e3):(d(!1),h())):h()},isNextLocked:u})})]}):(0,i.jsx)(DPe,{onClose:t,children:(0,i.jsx)(cbe,{dividers:!0,sx:{height:"623px"},children:(0,i.jsxs)(v2,{container:!0,flexDirection:"column",justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(PPe,{}),(0,i.jsx)(r2,{variant:"contained",size:"large",sx:{width:"256px",marginBottom:10},onClick:()=>l(!0),children:(0,r3.__)("Let’s do it!","site-mailer")})]})})})};FPe.propTypes={steps:Nhe().number,onClose:Nhe().func.isRequired};const $Pe=FPe,zPe=({children:e})=>(0,i.jsx)(v2,{container:!0,width:"100%",marginBottom:4,children:e}),UPe=c1(age)`
	&.MuiAlertTitle-root {
		font-weight: 400;
	}
`,WPe=()=>{const{customDomain:e,showCustomDomainVerifiedAlert:t}=dfe(),{isRegistered:r,isVerificationStarted:n,isVerified:o}=hLe(),{isOpen:s,open:a,close:l}=The(!1),{cancelProcess:c,closeVerifiedAlert:u}=hLe();return o()?t&&(0,i.jsx)(zPe,{children:(0,i.jsx)(mMe,{sx:{width:"100%"},onClose:u,children:(0,i.jsx)(UPe,{variant:"subtitle2",children:$he((0,r3.sprintf)(
// Translators: %s - site domain
// Translators: %s - site domain
(0,r3.__)("The domain {{strong}}%s{{/strong}} is verified. Your default domain is replaced.","site-mailer"),e),{strong:({children:e})=>(0,i.jsx)(t3,{component:"span",variant:"subtitle2",children:e})})})})}):n()?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(zPe,{children:(0,i.jsx)(mMe,{secondaryAction:(0,i.jsx)(qMe,{onClick:()=>a(),sx:{alignSelf:"center"},children:(0,r3.__)("Verify","site-mailer")}),action:(0,i.jsx)(qMe,{onClick:()=>c(),sx:{alignSelf:"center"},children:(0,r3.__)("Cancel Process","site-mailer")}),variant:"standard",severity:"error",sx:{width:"100%"},children:(0,i.jsx)(UPe,{children:$he((0,r3.sprintf)(
// Translators: %s - site domain
// Translators: %s - site domain
(0,r3.__)("There was an error when we tried to verify the {{strong}}%s{{/strong}}. You can still use the default settings or you can try to verify the domain again. Sometimes it can take up to 72 hours for DNS records to update.","site-mailer"),e),{strong:({children:e})=>(0,i.jsx)(t3,{component:"span",variant:"subtitle2",children:e})})})})}),s&&(0,i.jsx)($Pe,{step:2,onClose:l})]}):!!r()&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(zPe,{children:(0,i.jsx)(mMe,{secondaryAction:(0,i.jsx)(qMe,{onClick:a,sx:{alignSelf:"center"},children:(0,r3.__)("Verify","site-mailer")}),action:(0,i.jsx)(qMe,{onClick:c,sx:{alignSelf:"center"},children:(0,r3.__)("Cancel Process","site-mailer")}),variant:"standard",severity:"info",sx:{width:"100%"},children:(0,i.jsx)(UPe,{children:(0,r3.__)("The domain is pending verification. This can take up to 72 hours. In the mean time the default sender ID will be used to send emails.","site-mailer")})})}),s&&(0,i.jsx)($Pe,{step:2,onClose:l})]})};var qPe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M12.01 2.01099C12.7878 2.01103 13.539 2.29436 14.123 2.80799L14.277 2.95299L14.975 3.65099C15.1666 3.8413 15.4168 3.96144 15.685 3.99199L15.82 3.99999H16.82C17.6373 3.99994 18.4235 4.31256 19.0176 4.87373C19.6117 5.4349 19.9686 6.20209 20.015 7.01799L20.02 7.19999V8.19999C20.02 8.46999 20.112 8.73299 20.278 8.94299L20.368 9.04299L21.065 9.74099C21.6428 10.3154 21.9796 11.0886 22.0069 11.9029C22.0343 12.7171 21.75 13.5111 21.212 14.123L21.067 14.277L20.369 14.975C20.1787 15.1665 20.0586 15.4167 20.028 15.685L20.02 15.82V16.82C20.0201 17.6372 19.7075 18.4235 19.1463 19.0176C18.5851 19.6116 17.8179 19.9685 17.002 20.015L16.82 20.02H15.82C15.5504 20.0201 15.2887 20.111 15.077 20.278L14.977 20.368L14.279 21.065C13.7046 21.6427 12.9314 21.9796 12.1172 22.0069C11.3029 22.0342 10.5089 21.7499 9.89705 21.212L9.74305 21.067L9.04505 20.369C8.85349 20.1787 8.60334 20.0585 8.33505 20.028L8.20005 20.02H7.20005C6.38283 20.02 5.59656 19.7074 5.00248 19.1462C4.4084 18.5851 4.05152 17.8179 4.00505 17.002L4.00005 16.82V15.82C3.99996 15.5504 3.90907 15.2886 3.74205 15.077L3.65205 14.977L2.95505 14.279C2.37733 13.7045 2.04047 12.9314 2.01315 12.1171C1.98584 11.3029 2.27012 10.5089 2.80805 9.89699L2.95305 9.74299L3.65105 9.04499C3.84136 8.85343 3.9615 8.60328 3.99205 8.33499L4.00005 8.19999V7.19999L4.00505 7.01799C4.0497 6.23343 4.38147 5.49274 4.93713 4.93707C5.4928 4.38141 6.23349 4.04964 7.01805 4.00499L7.20005 3.99999H8.20005C8.46966 3.9999 8.7314 3.90901 8.94305 3.74199L9.04305 3.65199L9.74105 2.95499C10.0384 2.65588 10.3919 2.41849 10.7813 2.25649C11.1707 2.09448 11.5883 2.01105 12.01 2.01099ZM15.707 9.29299C15.5195 9.10552 15.2652 9.0002 15 9.0002C14.7349 9.0002 14.4806 9.10552 14.293 9.29299L11 12.585L9.70705 11.293L9.61305 11.21C9.41205 11.0546 9.15944 10.9815 8.90652 11.0056C8.6536 11.0297 8.41933 11.1491 8.25129 11.3397C8.08326 11.5303 7.99406 11.7777 8.00182 12.0316C8.00957 12.2856 8.1137 12.527 8.29305 12.707L10.293 14.707L10.387 14.79C10.5794 14.9392 10.8197 15.0132 11.0627 14.9979C11.3058 14.9826 11.5349 14.8792 11.707 14.707L15.707 10.707L15.79 10.613C15.9393 10.4206 16.0132 10.1803 15.9979 9.93731C15.9827 9.69428 15.8792 9.46518 15.707 9.29299Z"}))));const VPe=function(e){return(0,i.jsx)(S1,{viewBox:"0 0 24 24",fill:"none",fontSize:"small",sx:{marginRight:1},...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.75C9.9337 3.75 9.87011 3.77634 9.82322 3.82322C9.77634 3.87011 9.75 3.9337 9.75 4V6.25H14.25V4C14.25 3.9337 14.2237 3.87011 14.1768 3.82322C14.1299 3.77634 14.0663 3.75 14 3.75H10ZM15.75 6.25V4C15.75 3.53587 15.5656 3.09075 15.2374 2.76256C14.9092 2.43437 14.4641 2.25 14 2.25H10C9.53587 2.25 9.09075 2.43437 8.76256 2.76256C8.43437 3.09075 8.25 3.53587 8.25 4V6.25H5.00877C5.00349 6.24994 4.9982 6.24994 4.9929 6.25H4C3.58579 6.25 3.25 6.58579 3.25 7C3.25 7.41421 3.58579 7.75 4 7.75H4.3099L5.25021 19.0337C5.25898 19.7508 5.54767 20.4368 6.05546 20.9445C6.57118 21.4603 7.27065 21.75 8 21.75H16C16.7293 21.75 17.4288 21.4603 17.9445 20.9445C18.4523 20.4368 18.741 19.7508 18.7498 19.0337L19.6901 7.75H20C20.4142 7.75 20.75 7.41421 20.75 7C20.75 6.58579 20.4142 6.25 20 6.25H19.0071C19.0018 6.24994 18.9965 6.24994 18.9912 6.25H15.75ZM5.8151 7.75L6.74741 18.9377C6.74914 18.9584 6.75 18.9792 6.75 19C6.75 19.3315 6.8817 19.6495 7.11612 19.8839C7.35054 20.1183 7.66848 20.25 8 20.25H16C16.3315 20.25 16.6495 20.1183 16.8839 19.8839C17.1183 19.6495 17.25 19.3315 17.25 19C17.25 18.9792 17.2509 18.9584 17.2526 18.9377L18.1849 7.75H5.8151ZM10 10.25C10.4142 10.25 10.75 10.5858 10.75 11V17C10.75 17.4142 10.4142 17.75 10 17.75C9.58579 17.75 9.25 17.4142 9.25 17V11C9.25 10.5858 9.58579 10.25 10 10.25ZM14 10.25C14.4142 10.25 14.75 10.5858 14.75 11V17C14.75 17.4142 14.4142 17.75 14 17.75C13.5858 17.75 13.25 17.4142 13.25 17V11C13.25 10.5858 13.5858 10.25 14 10.25Z"})})},HPe=function(e){return(0,i.jsx)(S1,{viewBox:"0 0 24 24",fill:"none",fontSize:"small",sx:{marginRight:1},...e,children:(0,i.jsx)("path",{id:"Vector ",fillRule:"evenodd",clipRule:"evenodd",d:"M12.6878 2.27398C12.5917 2.24917 12.4909 2.24331 12.3914 2.25781C12.2616 2.25269 12.1311 2.2501 12 2.2501C11.8689 2.2501 11.7384 2.25269 11.6086 2.25781C11.5091 2.24331 11.4083 2.24917 11.3123 2.27398C6.24841 2.62684 2.25 6.84653 2.25 12.0001C2.25 17.1537 6.24842 21.3734 11.3123 21.7262C11.4083 21.751 11.5091 21.7569 11.6086 21.7424C11.7384 21.7475 11.8689 21.7501 12 21.7501C12.1311 21.7501 12.2616 21.7475 12.3914 21.7424C12.4909 21.7569 12.5917 21.751 12.6878 21.7262C17.7516 21.3733 21.75 17.1537 21.75 12.0001C21.75 6.84655 17.7516 2.62687 12.6878 2.27398ZM11.922 3.75046C11.948 3.75022 11.974 3.7501 12 3.7501C12.026 3.7501 12.052 3.75022 12.078 3.75046C12.9067 5.15671 13.5154 6.67415 13.8892 8.2501H10.1109C10.4846 6.67415 11.0934 5.15671 11.922 3.75046ZM10.0915 3.97196C7.71452 4.5349 5.7353 6.12619 4.64956 8.2501H8.57289C8.89327 6.76788 9.40294 5.32976 10.0915 3.97196ZM8.31541 9.7501H4.06055C3.85825 10.4653 3.75 11.2201 3.75 12.0001C3.75 12.7801 3.85825 13.5349 4.06055 14.2501H8.31541C8.22038 13.5064 8.17224 12.755 8.17224 12.0001C8.17224 11.2452 8.22038 10.4938 8.31541 9.7501ZM8.57289 15.7501H4.64956C5.7353 17.874 7.71452 19.4653 10.0915 20.0282C9.40294 18.6704 8.89327 17.2323 8.57289 15.7501ZM11.922 20.2497C11.0934 18.8435 10.4846 17.3261 10.1109 15.7501H13.8892C13.5154 17.3261 12.9067 18.8435 12.078 20.2497C12.052 20.25 12.026 20.2501 12 20.2501C11.974 20.2501 11.948 20.25 11.922 20.2497ZM13.9085 20.0282C16.2855 19.4653 18.2647 17.874 19.3504 15.7501H15.4271C15.1068 17.2323 14.5971 18.6704 13.9085 20.0282ZM15.6846 14.2501H19.9395C20.1417 13.5349 20.25 12.7801 20.25 12.0001C20.25 11.2201 20.1417 10.4653 19.9395 9.7501H15.6846C15.7797 10.4938 15.8278 11.2452 15.8278 12.0001C15.8278 12.755 15.7797 13.5064 15.6846 14.2501ZM14.1713 9.7501H9.82876C9.72491 10.4929 9.67224 11.2446 9.67224 12.0001C9.67224 12.7556 9.72491 13.5073 9.82876 14.2501H14.1713C14.2751 13.5073 14.3278 12.7556 14.3278 12.0001C14.3278 11.2446 14.2751 10.4929 14.1713 9.7501ZM15.4271 8.2501C15.1068 6.76788 14.5971 5.32976 13.9085 3.97197C16.2855 4.53492 18.2647 6.1262 19.3504 8.2501H15.4271Z"})})},GPe=()=>{const[e,t]=(0,n.useState)(!1),[r,o]=(0,n.useState)(!1),{customDomain:s}=dfe(),{settings:a}=gfe(),l=(0,n.useRef)(null),{isOpen:c,open:u,close:d}=The(!1),{cancelProcess:p}=hLe();return(0,i.jsxs)("div",{children:[(0,i.jsx)(vbe,{id:"basic-button","aria-controls":e?"basic-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",onClick:()=>t(!0),ref:l,children:(0,i.jsx)(tLe,{})}),(0,i.jsxs)(sLe,{open:e,anchorEl:l.current,onClose:()=>t(!1),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[(0,i.jsxs)(aOe,{onClick:u,children:[(0,i.jsx)(HPe,{}),(0,r3.__)("View DNS Records","site-mailer")]}),(0,i.jsxs)(aOe,{onClick:()=>o(!0),children:[(0,i.jsx)(VPe,{fontSize:"small",sx:{marginRight:1,color:"#000"}}),(0,r3.__)("Delete domain","site-mailer")]})]}),c&&(0,i.jsx)($Pe,{onClose:d,step:2}),r&&
// Translators: %s - site domain
// Translators: %s - site domain
(0,i.jsxs)(B_e,{title:(0,r3.sprintf)((0,r3.__)("Are you sure you want to delete %s?","site-mailer"),s),approveText:(0,r3.__)("Delete","site-mailer"),onClose:()=>o(!1),onCancel:()=>o(!1),onApprove:p,children:[(0,i.jsx)(t3,{variant:"body1",children:(0,r3.__)("Keep in mind:","site-mailer")}),(0,i.jsxs)(_2,{component:"ul",sx:{listStyleType:"disc",listStylePosition:"inside",p:0},dense:!0,children:[(0,i.jsx)(z2,{sx:{display:"list-item",marginBottom:0},children:(0,i.jsx)(t3,{component:"span",variant:"body1",children:$he((0,r3.sprintf)(/* Translators: %s - default sender */ /* Translators: %s - default sender */
(0,r3.__)("Emails from your site will be sent via {{strong}}%s{{/strong}} instead.","site-mailer"),a?.sender?.default),{strong:({children:e})=>(0,i.jsx)(t3,{component:"span",variant:"body1",fontWeight:700,children:e})})})}),(0,i.jsx)(z2,{sx:{display:"list-item",marginBottom:0},children:(0,i.jsx)(t3,{component:"span",variant:"body1",children:(0,r3.__)("If you want to reconnect it, you’ll have to verify this domain again.","site-mailer")})})]})]})]})},ZPe=()=>{const{senderEmail:e,registrationStarted:t}=gfe(),{isOpen:r,open:n,close:o}=The(!1),{isRegistered:s,isVerified:a}=hLe(),{setRegistrationStarted:l,customDomain:c}=dfe();return t&&l(!0),(0,i.jsxs)(v2,{item:!0,container:!0,flexDirection:"column",sx:{marginBottom:2},children:[(0,i.jsxs)(v2,{container:!0,gap:1,flexDirection:"row",alignItems:"center",sx:{marginBottom:"4px"},children:[(0,i.jsx)(t3,{variant:"body1",color:"text.secondary",children:(0,r3.__)("Domain","site-mailer")}),(0,i.jsx)(lLe,{content:(0,r3.__)("Default sending domain. Customize by adding your own.","site-mailer")})]}),(0,i.jsxs)(v2,{container:!0,flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(t3,{variant:"body1",color:"text.primary",sx:{lineHeight:"36px"},children:[e.split("@")[1],a()&&c===e.split("@")[1]&&(0,i.jsx)(d_e,{label:(0,r3.__)("Verified","site-mailer"),size:"small",sx:{marginLeft:1},color:"info",avatar:(0,i.jsx)(qPe,{sx:{fill:"#fff"}})})]}),!s()&&(0,i.jsx)(r2,{variant:"outlined",onClick:n,children:(0,r3.__)("Add custom domain","site-mailer")}),a()&&(0,i.jsx)(GPe,{})]}),r&&(0,i.jsx)($Pe,{onClose:o})]})},KPe=()=>{const{fromName:e,replyToEmail:t,refreshPluginSettings:r}=gfe(),{from:o,replyTo:s,editEmail:a,setEditEmail:l,customEmailPrefix:c,isValidReplyToEmail:u}=dfe(),{save:d}=h3(),{success:p,error:h}=pfe(),[f,m]=(0,n.useState)(!0);return(0,n.useEffect)((()=>{m(!0)}),[]),(0,n.useEffect)((()=>{m(!(o!==e||s&&s!==t&&u))}),[o,s]),(0,n.useEffect)((()=>{a&&m(!1)}),[a]),(0,i.jsxs)(Efe,{variant:"outlined",children:[(0,i.jsx)(Hye,{title:(0,r3.__)("Sender's Details","site-mailer")}),(0,i.jsx)(KTe,{}),(0,i.jsxs)(Wfe,{children:[(0,i.jsx)(WPe,{}),(0,i.jsxs)(v2,{container:!0,alignItems:"stretch",spacing:{sm:2,md:4,lg:8},children:[(0,i.jsxs)(v2,{item:!0,xs:12,md:6,marginBottom:{xs:2,sm:0},children:[(0,i.jsx)(ZPe,{}),(0,i.jsx)(uLe,{})]}),(0,i.jsx)(v2,{item:!0,xs:12,md:6,display:"flex",flexDirection:"column",children:(0,i.jsx)(JTe,{})})]})]}),(0,i.jsx)(WIe,{children:(0,i.jsx)(r2,{color:"secondary",disabled:f,onClick:async()=>{m(!0);const e={site_mailer_from_name:o,site_mailer_reply_to_email:s};a&&(e.site_mailer_sender_email_prefix=c);try{await d(e),await r(),p((0,r3.__)("Settings saved successfully.","site-mailer")),a&&l(!1)}catch(e){h((0,r3.__)("An error occurred.","site-mailer")),m(!1)}},variant:"contained",size:"medium",children:(0,r3.__)("Save changes","site-mailer")})})]})},XPe=c1(Wfe)`
	&:last-child {
		padding-bottom: 16px;
	}
`,YPe=()=>{const{save:e}=h3(),{unsubscribe:t,refreshPluginSettings:r}=gfe(),{success:o,error:s}=pfe(),[a,l]=(0,n.useState)(t);return(0,i.jsx)(Efe,{variant:"outlined",sx:{marginTop:"24px"},children:(0,i.jsx)(XPe,{children:(0,i.jsxs)(v2,{container:!0,spacing:2,alignItems:"center",justifyContent:"space-between",children:[(0,i.jsxs)(v2,{item:!0,xs:12,sm:10,md:6,gap:1,children:[(0,i.jsx)(t3,{variant:"subtitle1",children:(0,r3.__)("Add list-unsubscribe headers","site-mailer")}),(0,i.jsxs)(t3,{variant:"body2",color:"text.secondary",children:[$he((0,r3.__)("We recommend turning this on if you’re sending marketing emails to improve deliverability. You can find the list of people who unsubscribed in the {{strong}}Suppressions{{/strong}} tab.","site-mailer"),{strong:({children:e})=>(0,i.jsx)("strong",{children:e})}),(0,i.jsx)(jOe,{href:"http://www.elementor.com/help/use-list-unsubscribe-headers/",color:"secondary",sx:{marginLeft:"4px"},children:(0,r3.__)("Learn more","site-mailer")})]})]}),(0,i.jsx)(v2,{item:!0,xs:12,sm:2,md:6,children:(0,i.jsx)(dY,{display:"flex",justifyContent:"end",children:(0,i.jsx)(uTe,{checked:a,onClick:(c=!a,async()=>{try{await e({site_mailer_unsubscribe:c}),l(c),o((0,r3.__)("Settings saved successfully.","site-mailer"))}catch(e){s((0,r3.__)("An error occurred.","site-mailer"))}finally{r()}}),size:"small",color:"primary"})})})]})})});var c},JPe=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t3,{variant:"h5",sx:{marginBottom:3},children:(0,r3.__)("General settings","site-mailer")}),(0,i.jsxs)(dY,{children:[(0,i.jsx)(KPe,{}),(0,i.jsx)(WTe,{}),(0,i.jsx)(pTe,{}),(0,i.jsx)(YPe,{})]})]});var QPe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3803 18.2803C15.6732 17.9874 15.6732 17.5126 15.3803 17.2197L9.91064 11.75L15.3803 6.28033C15.6732 5.98744 15.6732 5.51256 15.3803 5.21967C15.0874 4.92678 14.6125 4.92678 14.3196 5.21967L8.31965 11.2197C8.02675 11.5126 8.02675 11.9874 8.31965 12.2803L14.3196 18.2803C14.6125 18.5732 15.0874 18.5732 15.3803 18.2803Z"}))));const eje=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tje(e,t,r){var n;const i=function(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=Nxe(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const e=o.getComputedStyle(t);s=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let a=0,l=0;if(s&&"none"!==s&&"string"==typeof s){const e=s.split("(")[1].split(")")[0].split(",");a=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+a-n.left}px)`:`translateX(${o.innerWidth+a-n.left}px)`:"right"===e?i?`translateX(-${n.right-i.left-a}px)`:`translateX(-${n.left+n.width-a}px)`:"up"===e?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}(e,t,"function"==typeof(n=r)?n():n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const rje=o.forwardRef((function(e,t){const r=T0(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,container:u,direction:d="down",easing:p=n,in:h,onEnter:f,onEntered:m,onEntering:g,onExit:v,onExited:y,onExiting:b,style:x,timeout:w=s,TransitionComponent:C=P5}=e,_=(0,DK.A)(e,eje),k=o.useRef(null),S=O1(c.ref,k,t),A=e=>t=>{e&&(void 0===t?e(k.current):e(k.current,t))},E=A(((e,t)=>{tje(d,e,u),j5(e),f&&f(e,t)})),R=A(((e,t)=>{const n=N5({timeout:w,style:x,easing:p},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,NK.A)({},n)),e.style.transition=r.transitions.create("transform",(0,NK.A)({},n)),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)})),I=A(m),O=A(b),M=A((e=>{const t=N5({timeout:w,style:x,easing:p},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),tje(d,e,u),v&&v(e)})),T=A((e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)})),L=o.useCallback((()=>{k.current&&tje(d,k.current,u)}),[d,u]);return o.useEffect((()=>{if(h||"down"===d||"right"===d)return;const e=jxe((()=>{k.current&&tje(d,k.current,u)})),t=Nxe(k.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,h,u]),o.useEffect((()=>{h||L()}),[h,L]),(0,i.jsx)(C,(0,NK.A)({nodeRef:k,onEnter:E,onEntered:I,onEntering:R,onExit:M,onExited:T,onExiting:O,addEndListener:e=>{a&&a(k.current,e)},appear:l,in:h,timeout:w},_,{children:(e,t)=>o.cloneElement(c,(0,NK.A)({ref:S,style:(0,NK.A)({visibility:"exited"!==e||h?void 0:"hidden"},x,c.props.style)},t))}))})),nje=rje;function ije(e){return oY("MuiDrawer",e)}sY("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const oje=["BackdropProps"],sje=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],aje=(e,t)=>{const{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},lje=b1(Y5,{name:"MuiDrawer",slot:"Root",overridesResolver:aje})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),cje=b1("div",{shouldForwardProp:y1,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:aje})({flex:"0 0 auto"}),uje=b1(Cfe,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${h1(r.anchor)}`],"temporary"!==r.variant&&t[`paperAnchorDocked${h1(r.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,NK.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),dje={left:"right",right:"left",top:"down",bottom:"up"},pje=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiDrawer"}),n=T0(),s=SJ(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:c,children:u,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:f}={},onClose:m,open:g=!1,PaperProps:v={},SlideProps:y,TransitionComponent:b=nje,transitionDuration:x=a,variant:w="temporary"}=r,C=(0,DK.A)(r.ModalProps,oje),_=(0,DK.A)(r,sje),k=o.useRef(!1);o.useEffect((()=>{k.current=!0}),[]);const S=function({direction:e},t){return"rtl"===e&&function(e){return-1!==["left","right"].indexOf(e)}(t)?dje[t]:t}({direction:s?"rtl":"ltr"},l),A=l,E=(0,NK.A)({},r,{anchor:A,elevation:p,open:g,variant:w},_),R=(e=>{const{classes:t,anchor:r,variant:n}=e;return p1({root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${h1(r)}`,"temporary"!==n&&`paperAnchorDocked${h1(r)}`]},ije,t)})(E),I=(0,i.jsx)(uje,(0,NK.A)({elevation:"temporary"===w?p:0,square:!0},v,{className:d1(R.paper,v.className),ownerState:E,children:u}));if("permanent"===w)return(0,i.jsx)(cje,(0,NK.A)({className:d1(R.root,R.docked,d),ownerState:E,ref:t},_,{children:I}));const O=(0,i.jsx)(b,(0,NK.A)({in:g,direction:dje[S],timeout:x,appear:k.current},y,{children:I}));return"persistent"===w?(0,i.jsx)(cje,(0,NK.A)({className:d1(R.root,R.docked,d),ownerState:E,ref:t},_,{children:O})):(0,i.jsx)(lje,(0,NK.A)({BackdropProps:(0,NK.A)({},c,f,{transitionDuration:x}),className:d1(R.root,R.modal,d),open:g,ownerState:E,onClose:m,hideBackdrop:h,ref:t},_,C,{children:O}))}));var hje=s().forwardRef(((e,t)=>s().createElement(pje,{...e,ref:t})));const fje=({size:e})=>(0,i.jsxs)(S1,{viewBox:"0 0 22 22",fill:"none",fillOpacity:0,fontSize:e,children:[(0,i.jsx)("path",{d:"M8.81104 19.0128H4.65879C2.50003 19.0128 0.75 17.2628 0.75 15.104V4.29436C0.75 2.64438 2.08243 1.30382 3.7324 1.29708C8.25883 1.2786 12.7852 1.27856 17.3116 1.29706C18.9616 1.3038 20.294 2.64436 20.294 4.29432V10.5",stroke:"#757575",strokeWidth:"1.5",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M1.68799 2.2207L8.46344 6.41789C9.72454 7.1991 11.3192 7.1991 12.5803 6.41789L19.3557 2.2207",stroke:"#757575",strokeWidth:"1.5",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M20.7482 14.6807L13.5204 10.177C12.6861 9.65719 11.681 10.527 12.0757 11.4273L13.6028 14.9109C13.715 15.1668 13.715 15.458 13.6028 15.7139L12.0058 19.357C11.6177 20.2423 12.5867 21.1083 13.423 20.6237L20.7207 16.3947C21.3733 16.0165 21.3883 15.0796 20.7482 14.6807Z",stroke:"#757575",strokeWidth:"1.5"}),(0,i.jsx)("path",{d:"M7.81104 15.5L9.81104 15.5",stroke:"#757575",strokeWidth:"1.5",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M5.56104 12L9.06104 12",stroke:"#757575",strokeWidth:"1.5",strokeLinecap:"round"})]});var mje=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M16.5 2.75C16.5 2.33579 16.1642 2 15.75 2C15.3358 2 15 2.33579 15 2.75V4H8.5V2.75C8.5 2.33579 8.16421 2 7.75 2C7.33579 2 7 2.33579 7 2.75V4H5.75C5.02065 4 4.32118 4.28973 3.80546 4.80546C3.28973 5.32118 3 6.02065 3 6.75V18.75C3 19.4793 3.28973 20.1788 3.80546 20.6945C4.32118 21.2103 5.02065 21.5 5.75 21.5H12.75C13.1642 21.5 13.5 21.1642 13.5 20.75C13.5 20.3358 13.1642 20 12.75 20H5.75C5.41848 20 5.10054 19.8683 4.86612 19.6339C4.6317 19.3995 4.5 19.0815 4.5 18.75V11.5H16.25C16.6642 11.5 17 11.1642 17 10.75C17 10.3358 16.6642 10 16.25 10H4.5V6.75C4.5 6.41848 4.6317 6.10054 4.86612 5.86612C5.10054 5.6317 5.41848 5.5 5.75 5.5H7V6.75C7 7.16421 7.33579 7.5 7.75 7.5C8.16421 7.5 8.5 7.16421 8.5 6.75V5.5H15V6.75C15 7.16421 15.3358 7.5 15.75 7.5C16.1642 7.5 16.5 7.16421 16.5 6.75V5.5H17.75C18.0815 5.5 18.3995 5.6317 18.6339 5.86612C18.8683 6.10054 19 6.41848 19 6.75V9.75C19 10.1642 19.3358 10.5 19.75 10.5C20.1642 10.5 20.5 10.1642 20.5 9.75V6.75C20.5 6.02065 20.2103 5.32118 19.6945 4.80546C19.1788 4.28973 18.4793 4 17.75 4H16.5V2.75Z"}),o.createElement("path",{d:"M19.5 14V13.75C19.5 13.3358 19.1642 13 18.75 13C18.3358 13 18 13.3358 18 13.75V14.0139C17.4952 14.0703 17.0216 14.2964 16.659 14.659C16.2371 15.081 16 15.6533 16 16.25C16 16.8467 16.2371 17.419 16.659 17.841C17.081 18.2629 17.6533 18.5 18.25 18.5H19.25C19.4489 18.5 19.6397 18.579 19.7803 18.7197C19.921 18.8603 20 19.0511 20 19.25C20 19.4489 19.921 19.6397 19.7803 19.7803C19.6397 19.921 19.4489 20 19.25 20H16.75C16.3358 20 16 20.3358 16 20.75C16 21.1642 16.3358 21.5 16.75 21.5H18V21.75C18 22.1642 18.3358 22.5 18.75 22.5C19.1642 22.5 19.5 22.1642 19.5 21.75V21.4861C20.0048 21.4297 20.4784 21.2036 20.841 20.841C21.2629 20.419 21.5 19.8467 21.5 19.25C21.5 18.6533 21.2629 18.081 20.841 17.659C20.419 17.2371 19.8467 17 19.25 17H18.25C18.0511 17 17.8603 16.921 17.7197 16.7803C17.579 16.6397 17.5 16.4489 17.5 16.25C17.5 16.0511 17.579 15.8603 17.7197 15.7197C17.8603 15.579 18.0511 15.5 18.25 15.5H20.75C21.1642 15.5 21.5 15.1642 21.5 14.75C21.5 14.3358 21.1642 14 20.75 14H19.5Z"})))),gje=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.25C12.2508 5.25 12.485 5.37533 12.6241 5.58397L16.1703 10.9033L20.5315 7.41435C20.7777 7.21743 21.1207 7.19544 21.39 7.35933C21.6592 7.52321 21.7973 7.83798 21.7355 8.14709L19.7355 18.1471C19.6654 18.4977 19.3576 18.75 19 18.75H5.00004C4.64253 18.75 4.33472 18.4977 4.26461 18.1471L2.2646 8.14709C2.20278 7.83798 2.34084 7.52321 2.61012 7.35933C2.8794 7.19544 3.22241 7.21743 3.46856 7.41435L7.82977 10.9033L11.376 5.58397C11.5151 5.37533 11.7493 5.25 12 5.25ZM12 7.35208L8.62408 12.416C8.50748 12.5909 8.32282 12.7089 8.1151 12.7411C7.90738 12.7734 7.69566 12.717 7.53152 12.5857L4.13926 9.87185L5.61489 17.25H18.3852L19.8608 9.87185L16.4686 12.5857C16.3044 12.717 16.0927 12.7734 15.885 12.7411C15.6773 12.7089 15.4926 12.5909 15.376 12.416L12 7.35208Z"})))),vje=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M15.2803 4.28033C15.5732 3.98744 15.5732 3.51256 15.2803 3.21967C14.9874 2.92678 14.5126 2.92678 14.2197 3.21967L11.1425 6.29686L10.0653 5.21967C9.7724 4.92678 9.29752 4.92678 9.00463 5.21967L6.95568 7.26862C6.32944 7.87215 5.82945 8.59421 5.48481 9.39279C5.13918 10.1937 4.95675 11.0555 4.94819 11.9277C4.93964 12.8 5.10513 13.6652 5.43499 14.4727C5.66989 15.0478 5.98478 15.5854 6.36936 16.07L3.21967 19.2197C2.92678 19.5126 2.92678 19.9874 3.21967 20.2803C3.51256 20.5732 3.98744 20.5732 4.28033 20.2803L7.43002 17.1306C7.91462 17.5152 8.45219 17.8301 9.02723 18.065C9.83475 18.3948 10.7 18.5603 11.5722 18.5518C11.9864 18.5477 12.3189 18.2086 12.3148 17.7944C12.3108 17.3803 11.9717 17.0478 11.5575 17.0518C10.8847 17.0584 10.2173 16.9308 9.59445 16.6764C8.97157 16.4219 8.40569 16.0458 7.92992 15.57C7.45415 15.0943 7.07804 14.5284 6.82361 13.9055C6.56917 13.2826 6.44152 12.6153 6.44812 11.9425C6.45472 11.2696 6.59544 10.6049 6.86204 9.98714C7.12864 9.36937 7.51577 8.81098 8.00079 8.34463L8.01129 8.33433L9.53496 6.81066L16.0046 13.2803C16.2975 13.5732 16.7724 13.5732 17.0653 13.2803C17.3105 13.0351 17.3504 12.6624 17.185 12.3756L20.2803 9.28033C20.5732 8.98744 20.5732 8.51256 20.2803 8.21967C19.9874 7.92678 19.5126 7.92678 19.2197 8.21967L16.1425 11.2969L12.2031 7.35752L15.2803 4.28033Z"}),o.createElement("path",{d:"M14.2197 15.2197C14.5126 14.9268 14.9874 14.9268 15.2803 15.2197L16.75 16.6893L18.2197 15.2197C18.5126 14.9268 18.9874 14.9268 19.2803 15.2197C19.5732 15.5126 19.5732 15.9874 19.2803 16.2803L17.8107 17.75L19.2803 19.2197C19.5732 19.5126 19.5732 19.9874 19.2803 20.2803C18.9874 20.5732 18.5126 20.5732 18.2197 20.2803L16.75 18.8107L15.2803 20.2803C14.9874 20.5732 14.5126 20.5732 14.2197 20.2803C13.9268 19.9874 13.9268 19.5126 14.2197 19.2197L15.6893 17.75L14.2197 16.2803C13.9268 15.9874 13.9268 15.5126 14.2197 15.2197Z"}))));const yje=kwe((0,i.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 bje(e){return oY("MuiAvatar",e)}sY("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const xje=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],wje=tge(),Cje=b1("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((({theme:e})=>({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",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,NK.A)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:(0,NK.A)({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]}))),_je=b1("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),kje=b1(yje,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),Sje=o.forwardRef((function(e,t){const r=wje({props:e,name:"MuiAvatar"}),{alt:n,children:s,className:a,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:h,srcSet:f,variant:m="circular"}=r,g=(0,DK.A)(r,xje);let v=null;const y=function({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[i,s]=o.useState(!1);return o.useEffect((()=>{if(!r&&!n)return;s(!1);let i=!0;const o=new Image;return o.onload=()=>{i&&s("loaded")},o.onerror=()=>{i&&s("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=r,n&&(o.srcset=n),()=>{i=!1}}),[e,t,r,n]),i}((0,NK.A)({},d,{src:h,srcSet:f})),b=h||f,x=b&&"error"!==y,w=(0,NK.A)({},r,{colorDefault:!x,component:l,variant:m}),C=(e=>{const{classes:t,variant:r,colorDefault:n}=e;return p1({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},bje,t)})(w),[_,k]=qOe("img",{className:C.img,elementType:_je,externalForwardedProps:{slots:c,slotProps:{img:(0,NK.A)({},d,u.img)}},additionalProps:{alt:n,src:h,srcSet:f,sizes:p},ownerState:w});return v=x?(0,i.jsx)(_,(0,NK.A)({},k)):s||0===s?s:b&&n?n[0]:(0,i.jsx)(kje,{ownerState:w,className:C.fallback}),(0,i.jsx)(Cje,(0,NK.A)({as:l,ownerState:w,className:d1(C.root,a),ref:t},g,{children:v}))})),Aje=Sje;var Eje=s().forwardRef(((e,t)=>s().createElement(Aje,{...e,ref:t})));function Rje(e){return oY("MuiListSubheader",e)}sY("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ije=["className","color","component","disableGutters","disableSticky","inset"],Oje=b1("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${h1(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,NK.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),Mje=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1}=r,u=(0,DK.A)(r,Ije),d=(0,NK.A)({},r,{color:o,component:s,disableGutters:a,disableSticky:l,inset:c}),p=(e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e;return p1({root:["root","default"!==r&&`color${h1(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]},Rje,t)})(d);return(0,i.jsx)(Oje,(0,NK.A)({as:s,className:d1(p.root,n),ref:t,ownerState:d},u))}));Mje.muiSkipListHighlight=!0;const Tje=Mje,Lje=s().forwardRef(((e,t)=>s().createElement(Tje,{...e,ref:t})));Lje.muiSkipListHighlight=!0;var Pje=Lje;const{slots:jje,classNames:Nje}=mye("MenuSubheader",["root"]),Dje=c1(Pje,jje.root)((()=>({fontSize:"0.75rem",fontWeight:500,lineHeight:"32px"}))),Bje=s().forwardRef(((e,t)=>{const r=g1({props:e,name:jje.root.name});return s().createElement(Dje,{...r,ref:t,className:d1([[Nje.root,r.className]]),ownerState:r})}));Bje.muiSkipListHighlight=!0;var Fje=Bje;const $je=()=>{const{settings:e}=gfe(),t=()=>e?.plan?.quota?.allowed?e.plan.quota.allowed:0,r=()=>e?.plan?.quota?.used?e.plan.quota.used:0,n=()=>e?.plan?.features?.retention,i=()=>Math.floor(r()/t()*100);return{getAllowedQuota:t,getUsedQuota:r,getRemainingQuota:()=>t()-r(),getPlanName:()=>{let r=e?.plan?.features?.plan;return r?e?.plan?.features?.plan?r:"None":(r=(n=t())>=1e6?`${Math.floor(n/1e6)}M`:n>=1e3?`${Math.floor(n/1e3)}K`:n,r);var n},getPlanStatus:()=>e?.plan?.status,getQuotaSuffix:()=>"None"===n()?(0,r3.__)("emails total","site-mailer"):(0,r3.__)("emails/month","site-mailer"),getPlanUsage:i,getPlanColors:()=>{const e=i();return e>=80&&e<100?{progressBar:"warning",button:"promotion",label:(0,r3.__)("Upgrade","site-mailer"),labelColor:"warning.main"}:100===e?{progressBar:"error",button:"promotion",label:(0,r3.__)("Upgrade","site-mailer"),labelColor:"error.main"}:{progressBar:"primary",button:"promotion",label:(0,r3.__)("Upgrade","site-mailer"),labelColor:"text.tertiary"}},getPlanRetention:n}},zje=function(e,{size:t}){return(0,i.jsxs)(S1,{viewBox:"0 0 24 24",fill:"none",fontSize:t,...e,children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.75 2.25C9.49022 2.25 8.28204 2.75044 7.39124 3.64124C6.50044 4.53204 6 5.74022 6 7C6 8.25978 6.50044 9.46796 7.39124 10.3588C8.28204 11.2496 9.49022 11.75 10.75 11.75C12.0098 11.75 13.218 11.2496 14.1088 10.3588C14.9996 9.46796 15.5 8.25978 15.5 7C15.5 5.74022 14.9996 4.53204 14.1088 3.64124C13.218 2.75044 12.0098 2.25 10.75 2.25ZM8.4519 4.7019C9.0614 4.09241 9.88805 3.75 10.75 3.75C11.612 3.75 12.4386 4.09241 13.0481 4.7019C13.6576 5.3114 14 6.13805 14 7C14 7.86195 13.6576 8.6886 13.0481 9.2981C12.4386 9.90759 11.612 10.25 10.75 10.25C9.88805 10.25 9.0614 9.90759 8.4519 9.2981C7.84241 8.6886 7.5 7.86195 7.5 7C7.5 6.13805 7.84241 5.3114 8.4519 4.7019Z"}),(0,i.jsx)("path",{d:"M6.4519 16.7019C7.0614 16.0924 7.88805 15.75 8.75 15.75H12.25C12.6642 15.75 13 15.4142 13 15C13 14.5858 12.6642 14.25 12.25 14.25H8.75C7.49022 14.25 6.28204 14.7504 5.39124 15.6412C4.50044 16.532 4 17.7402 4 19V21C4 21.4142 4.33579 21.75 4.75 21.75C5.16421 21.75 5.5 21.4142 5.5 21V19C5.5 18.138 5.84241 17.3114 6.4519 16.7019Z"}),(0,i.jsx)("path",{d:"M19.5269 19.5338L16.5303 22.5303C16.2374 22.8232 15.7626 22.8232 15.4697 22.5303C15.1768 22.2374 15.1768 21.7626 15.4697 21.4697L17.1893 19.75H13C12.5858 19.75 12.25 19.4142 12.25 19C12.25 18.5858 12.5858 18.25 13 18.25H17.1894L15.4697 16.5303C15.1768 16.2374 15.1768 15.7626 15.4697 15.4697C15.7626 15.1768 16.2375 15.1768 16.5304 15.4697L19.5282 18.4676C19.5365 18.4758 19.5446 18.4842 19.5525 18.4927C19.6695 18.62 19.7346 18.778 19.7476 18.9393C19.7492 18.9595 19.75 18.9797 19.75 19C19.75 19.1919 19.6768 19.3839 19.5304 19.5303L19.5269 19.5338Z"})]})},Uje=c1(aOe)`
	width: 224px;
    &.MuiMenuItem-gutters:focus,
    &.MuiMenuItem-gutters:focus-visible {
        box-shadow: inset 0 0 0 3px #5e9ed6;
    }
`,Wje=c1(aOe)`
	padding-inline: ${({theme:e})=>e.spacing(2)};
	padding-bottom: ${({theme:e})=>e.spacing(1)};
	&:hover {
		background: transparent;
	}
    &.MuiMenuItem-gutters:focus,
    &.MuiMenuItem-gutters:focus-visible {
        box-shadow: inset 0 0 0 3px #5e9ed6;
    }
`,qje=c1(t3)`
    color: ${({theme:e})=>e.palette.text.primary};
    margin-left: ${({theme:e})=>e.spacing(1)};
    font-size: 14px;
`,Vje=c1(dY)`
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: ${({theme:e})=>e.spacing(1)};
    padding: ${({theme:e})=>`${e.spacing(1)} ${e.spacing(2)}`};
`,Hje=(e,t=24)=>null==e?"":e.length<=t?e:e.slice(0,t-3)+"...";function Gje(e){return oY("MuiLinearProgress",e)}sY("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Zje=["className","color","value","valueBuffer","variant"];let Kje,Xje,Yje,Jje,Qje,eNe,tNe=e=>e;const rNe=(0,t0.i7)(Kje||(Kje=tNe`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`)),nNe=(0,t0.i7)(Xje||(Xje=tNe`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`)),iNe=(0,t0.i7)(Yje||(Yje=tNe`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`)),oNe=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,nX.a)(e.palette[t].main,.62):(0,nX.e$)(e.palette[t].main,.5),sNe=b1("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${h1(r.color)}`],t[r.variant]]}})((({ownerState:e,theme:t})=>(0,NK.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:oNe(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),aNe=b1("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${h1(r.color)}`]]}})((({ownerState:e,theme:t})=>{const r=oNe(t,e.color);return(0,NK.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,t0.AH)(Jje||(Jje=tNe`
    animation: ${0} 3s infinite linear;
  `),iNe)),lNe=b1("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${h1(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,NK.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,t0.AH)(Qje||(Qje=tNe`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    `),rNe))),cNe=b1("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${h1(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,NK.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:oNe(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,t0.AH)(eNe||(eNe=tNe`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
    `),nNe))),uNe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiLinearProgress"}),{className:n,color:o="primary",value:s,valueBuffer:a,variant:l="indeterminate"}=r,c=(0,DK.A)(r,Zje),u=(0,NK.A)({},r,{color:o,variant:l}),d=(e=>{const{classes:t,variant:r,color:n}=e;return p1({root:["root",`color${h1(n)}`,r],dashed:["dashed",`dashedColor${h1(n)}`],bar1:["bar",`barColor${h1(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${h1(n)}`,"buffer"===r&&`color${h1(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]},Gje,t)})(u),p=SJ(),h={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==s){h["aria-valuenow"]=Math.round(s),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let e=s-100;p&&(e=-e),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==a){let e=(a||0)-100;p&&(e=-e),f.bar2.transform=`translateX(${e}%)`}return(0,i.jsxs)(sNe,(0,NK.A)({className:d1(d.root,n),ownerState:u,role:"progressbar"},h,{ref:t},c,{children:["buffer"===l?(0,i.jsx)(aNe,{className:d.dashed,ownerState:u}):null,(0,i.jsx)(lNe,{className:d.bar1,ownerState:u,style:f.bar1}),"determinate"===l?null:(0,i.jsx)(cNe,{className:d.bar2,ownerState:u,style:f.bar2})]}))}));var dNe=s().forwardRef(((e,t)=>s().createElement(uNe,{...e,ref:t})));const pNe=e=>{if(e>=1e6){const t=e/1e6;return t%1==0?`${t}M`:`${t.toFixed(1)}M`}if(e>=1e3){const t=e/1e3;return t%1==0?`${t}K`:`${t.toFixed(1)}K`}return e},hNe=()=>{const{settings:e}=gfe(),t=e?.plan?.quota,r=Math.floor(t?.used/t?.allowed*100),n=0===e?.plan?.quota?.allowed;return(0,i.jsxs)(dY,{sx:{width:"100%"},children:[(0,i.jsxs)(dY,{display:"flex",justifyContent:"space-between",sx:{mb:.5},children:[(0,i.jsx)(t3,{variant:"body2",color:n?"text.disabled":"text.secondary",display:"flex",alignItems:"center",sx:{fontSize:"12px"},children:(0,r3.__)("Emails sent","site-mailer")}),(0,i.jsx)(dY,{display:"flex",flexDirection:"row",gap:.5,alignItems:"center",children:(0,i.jsx)(t3,{variant:"body2",color:n?"text.disabled":"text.primary",sx:{fontSize:"12px"},children:n?"0/0":`${pNe(t?.used)} / ${pNe(t?.allowed)}`})})]}),(0,i.jsx)(dNe,{sx:{"& .MuiLinearProgress-bar":{animation:"none",backgroundColor:n&&"text.disabled"},animation:"none"},value:r,variant:"buffer",valueBuffer:100,color:r<80?"primary":r>=80&&r<95?"warning":"error"})]})},fNe=()=>{const{getPlanRetention:e}=$je(),{openSidebar:t}=dfe(),{settings:r,subscriptionId:o,isElementorOne:s}=gfe(),[a,l]=(0,n.useState)(!1);(0,n.useEffect)((()=>{new Date(r?.plan.next_cycle_date)<new Date&&"None"===e()&&l(!0)}),[r?.plan?.next_cycle_date]);const c=!t&&r?.plan?.product_title?.includes("Free");return(0,i.jsxs)(i.Fragment,{children:[r?.plan&&(0,i.jsxs)(Fje,{disableGutters:!0,sx:{mt:-1},children:[(0,i.jsxs)(Vje,{children:[(0,i.jsx)(Eje,{sx:{width:24,height:24},children:(0,i.jsx)(XTe,{sx:{color:"common.white"},fontSize:"small"})}),(0,i.jsxs)(dY,{display:"flex",flexDirection:"column",gap:.5,children:[(0,i.jsx)(hye,{title:r?.user?.email,children:(0,i.jsx)(t3,{variant:"caption",color:"text.primary",children:Hje(r?.user?.email)})}),r?.plan?.product_title&&(0,i.jsx)(d_e,{variant:"standard",label:r?.plan?.product_title,size:"tiny",sx:{width:"fit-content"}})]})]}),(0,i.jsx)(KTe,{sx:{mb:1}})]}),!s&&r?.plan&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Fje,{disableGutters:!0,sx:{mb:0,pb:c?0:1},children:(0,i.jsx)(Vje,{children:(0,i.jsx)(hNe,{})})}),c&&(0,i.jsx)(Wje,{component:"a",href:Uhe.replace("{subscriptionId}",o),target:"_blank",rel:"noopener noreferrer",tabIndex:0,children:(0,i.jsx)(r2,{variant:"outlined",startIcon:r?.plan?.product_title?.includes("Free")||a?(0,i.jsx)(gje,{}):null,size:"small",fullWidth:!0,tabIndex:-1,color:r?.plan?.product_title?.includes("Free")||a?"promotion":"secondary",children:r?.plan?.product_title?.includes("Free")||a?(0,r3.__)("Upgrade plan","site-mailer"):(0,r3.__)("View more plans","site-mailer")})}),(0,i.jsx)(Fje,{disableGutters:!0,children:(0,i.jsx)(KTe,{sx:{mb:1}})})]}),(0,i.jsxs)(Uje,{dense:!0,onClick:()=>{Mhe.deactivate().then((()=>Q_e()))},tabIndex:0,children:[(0,i.jsx)(zje,{sx:{color:"action.active"}}),(0,i.jsx)(qje,{children:(0,r3.__)("Switch account","site-mailer")})]}),(0,i.jsxs)(Uje,{dense:!0,onClick:()=>{Mhe.disconnect().then((()=>Q_e()))},disabled:!o,children:[(0,i.jsx)(vje,{sx:{color:"action.active"}}),(0,i.jsx)(qje,{children:(0,r3.__)("Deactivate subscription","site-mailer")})]}),(0,i.jsx)(KTe,{}),(0,i.jsx)(Uje,{dense:!0,component:"a",sx:{width:"100%",justifyContent:"space-between"},href:"https://my.elementor.com/account-settings/purchases/subscriptions/{subscriptionId}/".replace("{subscriptionId}",o),target:"_blank",rel:"noopener noreferrer",children:(0,i.jsxs)(dY,{display:"flex",flexDirection:"row",children:[(0,i.jsx)(mje,{sx:{color:"action.active"}}),(0,i.jsx)(qje,{children:(0,r3.__)("Manage subscription","site-mailer")})]})})]})};var mNe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.46967 10.4697C7.76256 10.1768 8.23744 10.1768 8.53033 10.4697L12 13.9393L15.4697 10.4697C15.7626 10.1768 16.2374 10.1768 16.5303 10.4697C16.8232 10.7626 16.8232 11.2374 16.5303 11.5303L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L7.46967 11.5303C7.17678 11.2374 7.17678 10.7626 7.46967 10.4697Z"}))));function gNe(e){return oY("MuiCardActionArea",e)}const vNe=sY("MuiCardActionArea",["root","focusVisible","focusHighlight"]),yNe=["children","className","focusVisibleClassName"],bNe=b1(w0,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${vNe.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${vNe.focusVisible} .${vNe.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),xNe=b1("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})((({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),wNe=o.forwardRef((function(e,t){const r=g1({props:e,name:"MuiCardActionArea"}),{children:n,className:o,focusVisibleClassName:s}=r,a=(0,DK.A)(r,yNe),l=r,c=(e=>{const{classes:t}=e;return p1({root:["root"],focusHighlight:["focusHighlight"]},gNe,t)})(l);return(0,i.jsxs)(bNe,(0,NK.A)({className:d1(c.root,o),focusVisibleClassName:d1(s,c.focusVisible),ref:t,ownerState:l},a,{children:[n,(0,i.jsx)(xNe,{className:c.focusHighlight,ownerState:l})]}))}));var CNe=s().forwardRef(((e,t)=>s().createElement(wNe,{...e,ref:t})));const{slots:_Ne,classNames:kNe}=mye("CardGroup",["root"]),SNe=c1("div",_Ne.root)({});var ANe=s().forwardRef(((e,t)=>{const r=g1({props:e,name:_Ne.root.name});return s().createElement(SNe,{...r,ref:t,className:d1([[kNe.root,r.className]]),ownerState:r})}));const{slots:ENe}=mye("Rotate",["root"]),RNe={appear:!1,to:180},INe=s().forwardRef(((e,t)=>{const r=g1({props:{...RNe,...e},name:ENe.root.name}),n=T0(),i="rtl"===n.direction,a=(0,o.useRef)(""),l={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:c,appear:u,children:d,easing:p,in:h,onEnter:f,onEntered:m,onEntering:g,onExit:v,onExited:y,onExiting:b,style:x,timeout:w=l,TransitionComponent:C=P5,from:_,to:k}=r,S=(0,o.useRef)(null),A=O1(S,(E=d,parseInt(s().version,10)>=19?E?.props?.ref||null:E?.ref||null),t);var E;if(Array.isArray(d)||!(0,o.isValidElement)(d))return console.error("Rotate: The children prop must be a single valid React element."),null;const R=e=>t=>{const r=S.current;r&&e&&r&&e(r,t)},I=R(((e,t)=>{!function(e){e.scrollTop}(e);const r=MNe({style:x,timeout:w,easing:p,mode:"enter"});a.current=e.style.transition,e.style.transition=n.transitions.create("rotate",r),f?.(e,t)})),O=R(((e,t)=>{g?.(e,t)})),M=R(((e,t)=>{e.style.transition=a.current,m?.(e,t)}));return s().createElement(C,{appear:u,in:h,timeout:w,nodeRef:S,onEnter:I,onEntering:O,onEntered:M,onExit:()=>{const e=S.current;if(!e)return;const t=MNe({style:x,timeout:w,easing:p,mode:"exit"});e.style.transition=n.transitions.create("rotate",t),v?.()},onExiting:b,onExited:()=>{const e=S.current;e&&(e.style.transition=a.current),y?.()},addEndListener:e=>{c&&S.current&&c(S.current,e)}},((e,t)=>(0,o.cloneElement)(d,{ref:A,...d.props||{},style:{rotate:LNe(_,i),...TNe(e,LNe(k,i)),...x,...d.props?.style||{}},...t})))}));INe.defaultProps=RNe;var ONe=INe;function MNe({timeout:e,easing:t,style:r={},mode:n}){return{duration:r.transitionDuration??("object"==typeof e?e[n]:e||0),easing:r.transitionTimingFunction??("object"==typeof t?t[n]:t),delay:r.transitionDelay}}function TNe(e,t="none"){return{entering:{rotate:t},entered:{rotate:t}}[e]}function LNe(e,t=!1){if(e&&"number"==typeof e)return`${t?-1*e:e}deg`}const PNe=()=>{const{getPlanRetention:e}=$je(),{settings:t,isConnected:r,subscriptionId:o}=gfe(),s=(0,n.useRef)(null),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),d=t?.plan?.product_title?.includes("Free");(0,n.useEffect)((()=>{new Date(t.plan.next_cycle_date)<new Date&&"None"===e()&&u(!0)}),[t?.plan?.next_cycle_date]);const p=()=>l(!a),h=()=>(0,i.jsxs)(dY,{display:"flex",alignItems:"center",gap:1,whiteSpace:"nowrap",children:[(0,i.jsx)(t3,{variant:"body2",children:(0,r3.__)("Current plan","site-mailer")}),c?(0,i.jsx)(d_e,{variant:"filled",color:"error",label:(0,r3.__)("Expired","site-mailer"),size:"tiny"}):(0,i.jsx)(d_e,{variant:"filled",color:r?"default":"error",label:r?t?.plan?.product_title:(0,r3.__)("Not connected","site-mailer"),size:"tiny"})]});return(0,i.jsx)(jNe,{children:(0,i.jsxs)(NNe,{ref:s,children:[(0,i.jsxs)(Efe,{elevation:0,square:!0,sx:{overflow:"visible"},children:[(0,i.jsx)(FNe,{onClick:p,children:(0,i.jsx)(BNe,{title:(0,i.jsx)(h,{}),action:(0,i.jsx)(ONe,{in:!a,children:(0,i.jsx)(mNe,{})}),disableActionOffset:!0})}),(0,i.jsx)(sLe,{open:a,onClose:p,anchorEl:s.current,transformOrigin:{horizontal:"center",vertical:"bottom"},anchorOrigin:{horizontal:"center",vertical:"top"},children:(0,i.jsx)(fNe,{})})]}),(0,i.jsx)(Efe,{elevation:0,children:(0,i.jsx)(DNe,{children:r||c?(0,i.jsx)(r2,{variant:"outlined",startIcon:d||c?(0,i.jsx)(gje,{}):null,size:"small",fullWidth:!0,color:d||c?"promotion":"secondary",href:Uhe.replace("{subscriptionId}",o),target:"_blank",rel:"noopener noreferrer",children:d||c?(0,r3.__)("Upgrade plan","site-mailer"):(0,r3.__)("View more plans","site-mailer")}):(0,i.jsx)(r2,{variant:"outlined",size:"small",fullWidth:!0,color:"promotion",onClick:async()=>{const e=await eke();window.open(e,"_self").focus()},children:(0,r3.__)("Connect to start","site-mailer")})})})]})})},jNe=c1(dY)`
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    margin: ${({theme:e})=>e.spacing(1)};
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
	
	:hover, :focus-visible {
        background-color: ${({theme:e})=>e.palette.action.hover};
    }
`,NNe=c1(ANe)`
    border: none;
    border-radius: ${({theme:e})=>2*e.shape.borderRadius}px;
    padding: ${({theme:e})=>e.spacing(1.5)};
    width: 100%;
    background-color: transparent;

    & .MuiPaper-root {
        background-color: transparent;
    }
`,DNe=c1(Wfe)`
    padding: 0;
    background-color: transparent;

    :last-child {
        padding-bottom: 0;
    }
`,BNe=c1(Hye)`
    padding: ${({theme:e})=>e.spacing(.5)} 0;
    background-color: transparent;
`,FNe=c1(CNe)`
    background-color: transparent;
    margin-bottom: ${({theme:e})=>e.spacing(1)};
   
	&:hover, &:focus-visible {
		background-color: transparent;
	}
	.MuiCardActionArea-focusHighlight {
		background-color: transparent;
	}
`,$Ne=c1(dY)`
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
	padding: ${({theme:e})=>e.spacing(2)};
`,zNe=c1(vbe)`
    padding: ${({theme:e})=>e.spacing(1)};
    background-color: ${({theme:e})=>e.palette.background.paper};
    border-radius: ${({theme:e})=>2*e.shape.borderRadius}px;

    &:hover, &:focus-visible {
        background-color: ${({theme:e})=>e.palette.action.hover};
    }
`,UNe=()=>{const{openSidebar:e}=dfe(),{loaded:t,isElementorOne:r}=gfe(),o=(0,n.useRef)(null),[s,a]=(0,n.useState)(!1),l=()=>a(!s);return t||r?e?(0,i.jsx)(PNe,{}):(0,i.jsxs)($Ne,{children:[(0,i.jsx)(hye,{title:(0,r3.__)("My account","site-mailer"),placement:"right",children:(0,i.jsx)(zNe,{onClick:l,ref:o,children:(0,i.jsx)(mje,{sx:{color:"common.black"}})})}),(0,i.jsx)(sLe,{open:s,onClose:l,anchorEl:o.current,transformOrigin:{horizontal:"left",vertical:"bottom"},anchorOrigin:{horizontal:"right",vertical:"top"},children:(0,i.jsx)(fNe,{})})]}):(0,i.jsx)($Ne,{children:(0,i.jsx)(J_e,{width:"100%",height:91})})};var WNe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M5.75 6C5.75 5.58579 5.41421 5.25 5 5.25C4.58579 5.25 4.25 5.58579 4.25 6V6.01C4.25 6.42421 4.58579 6.76 5 6.76C5.41421 6.76 5.75 6.42421 5.75 6.01V6Z"}),o.createElement("path",{d:"M9 5.25C8.58579 5.25 8.25 5.58579 8.25 6C8.25 6.41421 8.58579 6.75 9 6.75H20C20.4142 6.75 20.75 6.41421 20.75 6C20.75 5.58579 20.4142 5.25 20 5.25H9Z"}),o.createElement("path",{d:"M9 11.25C8.58579 11.25 8.25 11.5858 8.25 12C8.25 12.4142 8.58579 12.75 9 12.75H20C20.4142 12.75 20.75 12.4142 20.75 12C20.75 11.5858 20.4142 11.25 20 11.25H9Z"}),o.createElement("path",{d:"M8.25 18C8.25 17.5858 8.58579 17.25 9 17.25H20C20.4142 17.25 20.75 17.5858 20.75 18C20.75 18.4142 20.4142 18.75 20 18.75H9C8.58579 18.75 8.25 18.4142 8.25 18Z"}),o.createElement("path",{d:"M5 11.25C5.41421 11.25 5.75 11.5858 5.75 12V12.01C5.75 12.4242 5.41421 12.76 5 12.76C4.58579 12.76 4.25 12.4242 4.25 12.01V12C4.25 11.5858 4.58579 11.25 5 11.25Z"}),o.createElement("path",{d:"M5.75 18C5.75 17.5858 5.41421 17.25 5 17.25C4.58579 17.25 4.25 17.5858 4.25 18V18.01C4.25 18.4242 4.58579 18.76 5 18.76C5.41421 18.76 5.75 18.4242 5.75 18.01V18Z"})))),qNe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9461 4.49382C12.7055 3.50206 11.2945 3.50206 11.0539 4.49382L11.0538 4.49421C10.6578 6.12252 8.79686 6.89441 7.36336 6.02285L7.36299 6.02262C6.49035 5.49135 5.49253 6.49022 6.0235 7.3618C6.22619 7.69432 6.34752 8.06998 6.37762 8.45824C6.40773 8.84659 6.34572 9.23656 6.19663 9.59641C6.04755 9.95627 5.8156 10.2758 5.51966 10.5291C5.22378 10.7823 4.8723 10.9621 4.49382 11.0539C3.50206 11.2945 3.50206 12.7055 4.49382 12.9461L4.49422 12.9462C4.87244 13.0382 5.22363 13.2181 5.51923 13.4714C5.81483 13.7246 6.0465 14.0441 6.19542 14.4037C6.34433 14.7633 6.40629 15.153 6.37625 15.5411C6.34621 15.9292 6.22502 16.3047 6.02253 16.6371C5.49145 17.5098 6.49026 18.5074 7.3618 17.9765C7.69431 17.7738 8.06998 17.6525 8.45824 17.6224C8.84659 17.5923 9.23656 17.6543 9.59641 17.8034C9.95627 17.9525 10.2758 18.1844 10.5291 18.4803C10.7823 18.7762 10.9621 19.1277 11.0539 19.5062C11.2945 20.4979 12.7055 20.4979 12.9461 19.5062L12.9462 19.5058C13.0382 19.1276 13.2181 18.7764 13.4714 18.4808C13.7246 18.1852 14.0441 17.9535 14.4037 17.8046C14.7633 17.6557 15.153 17.5937 15.5411 17.6238C15.9292 17.6538 16.3047 17.775 16.6371 17.9775C17.5097 18.5085 18.5074 17.5097 17.9765 16.6382C17.7738 16.3057 17.6525 15.93 17.6224 15.5418C17.5923 15.1534 17.6543 14.7634 17.8034 14.4036C17.9525 14.0437 18.1844 13.7242 18.4803 13.4709C18.7762 13.2177 19.1277 13.0379 19.5062 12.9461C20.4979 12.7055 20.4979 11.2945 19.5062 11.0539L19.5058 11.0538C19.1276 10.9618 18.7764 10.7819 18.4808 10.5286C18.1852 10.2754 17.9535 9.95594 17.8046 9.59631C17.6557 9.23668 17.5937 8.84698 17.6238 8.45889C17.6538 8.07081 17.775 7.69528 17.9775 7.36285C18.5085 6.49025 17.5097 5.49256 16.6382 6.0235C16.3057 6.22619 15.93 6.34752 15.5418 6.37762C15.1534 6.40773 14.7634 6.34572 14.4036 6.19663C14.0437 6.04755 13.7242 5.8156 13.4709 5.51966C13.2177 5.22378 13.0379 4.8723 12.9461 4.49382ZM9.59624 4.13979C10.2079 1.61994 13.7925 1.62007 14.4039 4.14018L14.4039 4.14039C14.44 4.28943 14.5108 4.42783 14.6105 4.54434C14.7102 4.66085 14.836 4.75216 14.9777 4.81086C15.1194 4.86955 15.2729 4.89397 15.4258 4.88211C15.5787 4.87026 15.7266 4.82247 15.8576 4.74264L15.8578 4.7425C18.0722 3.39347 20.6074 5.92764 19.2586 8.14301L19.2585 8.14315C19.1788 8.27403 19.1311 8.42187 19.1193 8.57465C19.1075 8.72744 19.1318 8.88086 19.1905 9.02245C19.2491 9.16404 19.3403 9.28979 19.4567 9.38949C19.573 9.4891 19.7111 9.5599 19.8598 9.59614C22.3801 10.2075 22.3801 13.7925 19.8598 14.4039L19.8596 14.4039C19.7106 14.44 19.5722 14.5108 19.4557 14.6105C19.3392 14.7102 19.2478 14.836 19.1891 14.9777C19.1304 15.1194 19.106 15.2729 19.1179 15.4258C19.1297 15.5787 19.1775 15.7266 19.2574 15.8576L19.2575 15.8578C20.6065 18.0722 18.0724 20.6074 15.857 19.2586L15.8569 19.2585C15.726 19.1788 15.5781 19.1311 15.4253 19.1193C15.2726 19.1075 15.1191 19.1318 14.9776 19.1905C14.836 19.2491 14.7102 19.3403 14.6105 19.4567C14.5109 19.573 14.4401 19.7111 14.4039 19.8598C13.7925 22.3801 10.2075 22.3801 9.59614 19.8598L9.59609 19.8596C9.55998 19.7106 9.48919 19.5722 9.38948 19.4557C9.28977 19.3392 9.16396 19.2478 9.02228 19.1891C8.88061 19.1304 8.72708 19.106 8.57419 19.1179C8.4213 19.1297 8.27337 19.1775 8.14244 19.2574L8.1422 19.2575C5.92778 20.6065 3.39265 18.0724 4.74138 15.857L4.74147 15.8569C4.82118 15.726 4.86889 15.5781 4.88072 15.4253C4.89255 15.2726 4.86816 15.1191 4.80953 14.9776C4.7509 14.836 4.65969 14.7102 4.54332 14.6105C4.42705 14.5109 4.28893 14.4401 4.14018 14.4039C1.61994 13.7925 1.61994 10.2075 4.14018 9.59614L4.14039 9.59609C4.28943 9.55998 4.42783 9.48919 4.54434 9.38948C4.66085 9.28977 4.75216 9.16396 4.81086 9.02228C4.86955 8.88061 4.89397 8.72708 4.88211 8.57419C4.87026 8.4213 4.82247 8.27337 4.74264 8.14244L4.7425 8.1422C3.39354 5.92791 5.92736 3.39294 8.14263 4.74115C8.70903 5.08552 9.4399 4.7816 9.59614 4.14018M12 9.75C10.7574 9.75 9.75 10.7574 9.75 12C9.75 13.2426 10.7574 14.25 12 14.25C13.2426 14.25 14.25 13.2426 14.25 12C14.25 10.7574 13.2426 9.75 12 9.75ZM8.25 12C8.25 9.92893 9.92893 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92893 15.75 8.25 14.0711 8.25 12Z"}))));const VNe=s().forwardRef(((e,t)=>s().createElement(Pxe,{...e,ref:t}))),HNe=(e,{size:t})=>(0,i.jsx)(S1,{viewBox:"0 0 22 22",fill:"none",fontSize:t,...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.05806 2.05806C2.30214 1.81398 2.69786 1.81398 2.94194 2.05806L17.9419 17.0581C18.186 17.3021 18.186 17.6979 17.9419 17.9419C17.6979 18.186 17.3021 18.186 17.0581 17.9419L15.5744 16.4583H4.16667C3.55888 16.4583 2.97598 16.2169 2.54621 15.7871C2.11644 15.3573 1.875 14.7745 1.875 14.1667V5.83333C1.875 5.22555 2.11644 4.64265 2.54621 4.21288C2.67926 4.07983 2.82698 3.96483 2.98558 3.86946L2.05806 2.94194C1.81398 2.69786 1.81398 2.30214 2.05806 2.05806ZM3.93408 4.81796C3.74473 4.86134 3.56965 4.95721 3.4301 5.09676C3.30832 5.21854 3.21981 5.36736 3.17041 5.52912L7.59488 8.47876L3.93408 4.81796ZM10.4203 11.3042L10.3469 11.3532C10.1369 11.4933 9.86332 11.4934 9.65331 11.3534L3.125 7.00116V14.1667C3.125 14.4429 3.23475 14.7079 3.4301 14.9032C3.62545 15.0986 3.8904 15.2083 4.16667 15.2083H14.3244L10.4203 11.3042ZM7.5 4.79167C7.15482 4.79167 6.875 4.51184 6.875 4.16667C6.875 3.82149 7.15482 3.54167 7.5 3.54167H15.8333C16.4411 3.54167 17.024 3.78311 17.4538 4.21288C17.8836 4.64265 18.125 5.22555 18.125 5.83333V14.1667C18.125 14.5118 17.8452 14.7917 17.5 14.7917C17.1548 14.7917 16.875 14.5118 16.875 14.1667V7.00116L12.8467 9.6867C12.5595 9.87817 12.1714 9.80056 11.98 9.51335C11.7885 9.22615 11.8661 8.83811 12.1533 8.64664L16.8296 5.52912C16.7802 5.36737 16.6917 5.21854 16.5699 5.09676C16.3746 4.90141 16.1096 4.79167 15.8333 4.79167H7.5Z",fill:"#0C0D0E"})}),GNe=c1(VNe)`
	display: flex;
	flex-direction: column;
	gap: ${({theme:e})=>e.spacing(1)};
	padding-block: 0;
`,ZNe=c1(aOe)`
    border-radius: ${({theme:e})=>e.shape.borderRadius}px;	
`,KNe=()=>{const{openSidebar:e}=dfe(),{isConnected:t,refreshPluginSettings:r}=gfe(),{currentTab:n,setCurrentTab:o}=dfe(),s=e=>()=>{o(e),r()};return(0,i.jsxs)(GNe,{children:[(0,i.jsx)(ZNe,{selected:n===rfe,onClick:s(rfe),sx:{px:e?2:"10px"},dense:!0,children:e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(G2,{children:(0,i.jsx)(WNe,{sx:{color:"common.black"}})}),(0,i.jsx)(o5,{children:(0,r3.__)("Email logs","site-mailer")})]}):(0,i.jsx)(hye,{title:(0,r3.__)("Email logs","site-mailer"),placement:"right",children:(0,i.jsx)(G2,{children:(0,i.jsx)(WNe,{sx:{color:"common.black"}})})})}),(0,i.jsx)(ZNe,{selected:n===nfe,onClick:s(nfe),disabled:!t,sx:{px:e?2:"10px"},dense:!0,children:e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(G2,{children:(0,i.jsx)(qNe,{sx:{color:"common.black"}})}),(0,i.jsx)(o5,{children:(0,r3.__)("General settings","site-mailer")})]}):(0,i.jsx)(hye,{title:(0,r3.__)("General settings","site-mailer"),placement:"right",children:(0,i.jsx)(G2,{children:(0,i.jsx)(qNe,{sx:{color:"common.black"}})})})}),(0,i.jsx)(ZNe,{selected:n===ife,onClick:s(ife),sx:{px:e?2:"10px"},dense:!0,children:e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(G2,{children:(0,i.jsx)(HNe,{})}),(0,i.jsx)(o5,{children:(0,r3.__)("Suppressions","site-mailer")})]}):(0,i.jsx)(hye,{title:(0,r3.__)("Suppressions","site-mailer"),placement:"right",children:(0,i.jsx)(G2,{children:(0,i.jsx)(HNe,{sx:{color:"common.black"}})})})})]})},XNe=()=>{const{openSidebar:e,setOpenSidebar:t}=dfe(),{isElementorOne:r}=gfe();return(0,i.jsxs)(eDe,{variant:"permanent",open:e,children:[(0,i.jsxs)(dY,{children:[(0,i.jsxs)(YNe,{sx:{justifyContent:e?"flex-start":"center"},children:[(0,i.jsx)(JNe,{children:(0,i.jsx)(fje,{})}),e&&(0,i.jsx)(t3,{variant:"subtitle1",children:(0,r3.__)("Deliverability","site-mailer")})]}),(0,i.jsx)(KTe,{sx:{mx:2}}),(0,i.jsx)(QNe,{onClick:()=>t(!e),size:"small","aria-label":(0,r3.__)("Toggle sidebar","site-mailer"),children:(0,i.jsx)(QPe,{fontSize:"tiny",role:"img",sx:{rotate:e?"0":"180deg"}})}),(0,i.jsx)(dY,{p:2,children:(0,i.jsx)(KNe,{})})]}),!r&&(0,i.jsxs)(dY,{children:[(0,i.jsx)(KTe,{}),(0,i.jsx)(UNe,{})]})]})},YNe=c1(dY)`
    display: flex;
    align-items: center;
    gap: ${({theme:e})=>e.spacing(2)};
    padding: ${({theme:e})=>e.spacing(2)};
`,JNe=c1(dY)`
    display: flex;
    align-items: center;
    border: 1px solid ${({theme:e})=>e.palette.divider};
    border-radius: ${({theme:e})=>2*e.shape.borderRadius}px;
    padding: 7px;
`,QNe=c1(vbe)`
    position: absolute;
    right: -15px;
    top: 58px;
    z-index: 999999;

    border: 1px solid ${({theme:e})=>e.palette.divider};
    background: ${({theme:e})=>e.palette.background.paper};
    border-radius: 50%;

    :hover, :focus-visible {
        background: #f3f3f4;
    }
`,eDe=c1(hje,{shouldForwardProp:e=>"open"!==e})`
    width: auto;

    & .MuiDrawer-paper {
        position: relative;
        width: ${({open:e})=>e?"240px":"72px"};
        justify-content: space-between;
        height: 100%;
        padding-top: 0;
        overflow: visible;
        transition: all 0.3s;
    }
`;var tDe=o.forwardRef(((e,t)=>o.createElement(S1,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4.75C11 4.33579 11.3358 4 11.75 4C12.1642 4 12.5 4.33579 12.5 4.75V11H18.75C19.1642 11 19.5 11.3358 19.5 11.75C19.5 12.1642 19.1642 12.5 18.75 12.5H12.5V18.75C12.5 19.1642 12.1642 19.5 11.75 19.5C11.3358 19.5 11 19.1642 11 18.75V12.5H4.75C4.33579 12.5 4 12.1642 4 11.75C4 11.3358 4.33579 11 4.75 11H11V4.75Z"}))));const rDe=(0,n.createContext)({addModalData:{},deleteModalData:{},params:{},list:{},updateList:()=>null}),nDe=({children:e})=>{const[t,r]=(0,n.useState)(!1),[o,s]=(0,n.useState)({isOpen:!1,ids:null}),[a,l]=(0,n.useState)({logs:[],total:null}),[c,u]=(0,n.useState)({limit:10,page:1,orderBy:"created_at",order:"desc"});(0,n.useEffect)((()=>{d()}),[]);const d=async(e=null)=>{u(e=e||c),Mhe.getSuppressions(e).then((e=>{l(e)}))},p=(0,n.useCallback)((e=>{s({isOpen:!0,ids:e})}),[]),h=(0,n.useCallback)((()=>{s({isOpen:!1,ids:null})}),[]);return(0,i.jsx)(rDe.Provider,{value:{addModalData:{openAddModal:t,setOpenAddModal:r},deleteModalData:{deleteModal:o,openDeleteModal:p,closeDeleteModal:h,deleteSuppressions:async()=>{await Mhe.deleteSuppressions(o.ids),await d(),h()}},params:c,list:a,setParams:u,updateList:d},children:e})},iDe=()=>(0,n.useContext)(rDe);nDe.propTypes={children:Nhe().node};const oDe=()=>{const{addModalData:{openAddModal:e,setOpenAddModal:t},updateList:r}=iDe(),{success:o,error:s}=pfe(),[a,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(!0),d=()=>t(!1),p=!(a&&a.includes("@"));return(0,i.jsxs)(B_e,{title:(0,r3.__)("Add an email to the suppressions list","site-mailer"),approveText:(0,r3.__)("Add","site-mailer"),onClose:d,onCancel:d,onApprove:async()=>{const e=aLe(a);if(u(e),e)try{await Mhe.addSuppressionsItem(a),await r(),o((0,r3.__)("Email added to list.","site-mailer"))}catch(e){s((0,r3.__)("An error occurred.","site-mailer"))}finally{l(""),d()}},open:e,approveButtonDisabled:p,approveButtonColor:"primary",showCloseButton:!0,logo:!1,children:[(0,i.jsx)(wOe,{sx:{marginBottom:2},children:(0,r3.__)("This email will no longer receive email from your site","site-mailer")}),(0,i.jsx)($Te,{className:"site-mailer-textfield",size:"small",variant:"outlined",value:a,onChange:e=>{l(e.target.value)},error:!c,required:!0,type:"email",fullWidth:!0,placeholder:(0,r3.__)("e.g. info@gmail.com","site-mailer"),color:"secondary"}),!c&&(0,i.jsx)(rLe,{error:!0,children:(0,r3.__)("Try again with a correct format.","site-mailer")})]})},sDe=()=>{const{deleteModalData:e}=iDe();return(0,i.jsx)(B_e,{title:e.deleteModal?.ids?.length>1?(0,r3.__)("Remove these emails from your suppressions list?","site-mailer"):(0,r3.__)("Remove this email from your suppressions list?","site-mailer"),approveText:(0,r3.__)("Remove","site-mailer"),cancelText:(0,r3.__)("Not now","site-mailer"),onClose:e.closeDeleteModal,onCancel:e.closeDeleteModal,onApprove:e.deleteSuppressions,open:e.deleteModal.isOpen,showCloseButton:!0,logo:(0,i.jsx)(N_e,{}),children:(0,i.jsx)(wOe,{children:(0,r3.__)("They will be able to receive transactional emails from your site again.","site-mailer")})})},aDe=()=>(0,i.jsxs)("svg",{width:"128",height:"72",viewBox:"0 0 128 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M18.5195 29.4828C18.8495 25.5328 23.6695 22.5128 27.4895 23.6428C27.0695 21.4328 27.3195 19.1528 28.1995 17.0828C29.0795 15.0128 30.5495 13.2528 32.4295 12.0228C34.3495 10.8328 40.5095 8.27275 47.0095 11.7728C53.3895 15.2128 55.0095 20.2728 55.8495 27.1728C57.1095 27.2028 59.6295 27.7228 59.6295 29.5228L47.2095 29.4828C44.4495 29.5728 37.6895 29.5228 34.9295 29.4828C29.4595 29.4528 23.9995 29.4828 18.5295 29.4828H18.5195Z",fill:"#f1f3f3"}),(0,i.jsx)("path",{d:"M59.6198 29.5228C59.6198 29.5228 48.4598 29.4328 47.1998 29.4828M59.6198 29.5228C59.6198 27.7228 57.0998 27.2028 55.8398 27.1728C54.9998 20.2728 53.3898 15.2128 46.9998 11.7728C40.4998 8.27275 34.3498 10.8328 32.4198 12.0228C30.5398 13.2528 29.0698 15.0228 28.1898 17.0828C27.3098 19.1528 27.0598 21.4328 27.4798 23.6428C23.6598 22.5228 18.8398 25.5328 18.5098 29.4828C23.9798 29.4828 29.4398 29.4528 34.9098 29.4828C37.6698 29.5228 44.4298 29.5728 47.1898 29.4828M59.6098 29.5228L47.1898 29.4828",stroke:"#69727d",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M17.03 19.6833C16.88 19.6833 16.73 19.6233 16.63 19.5133C16.52 19.4133 16.46 19.2633 16.46 19.1233C16.46 17.1833 15.5 16.2133 13.58 16.2133C13.43 16.2133 13.28 16.1533 13.17 16.0533C13.06 15.9433 13 15.8033 13 15.6533C13 15.5033 13.06 15.3633 13.17 15.2533C13.28 15.1433 13.42 15.0933 13.58 15.0933C15.5 15.0933 16.46 14.1199 16.46 12.1733C16.46 12.0233 16.52 11.8833 16.63 11.7733C16.74 11.6633 16.88 11.6133 17.04 11.6133C17.2 11.6133 17.34 11.6733 17.45 11.7733C17.56 11.8733 17.62 12.0233 17.62 12.1733C17.62 14.1199 18.5833 15.0933 20.51 15.0933C20.66 15.0933 20.81 15.1533 20.92 15.2533C21.03 15.3633 21.09 15.5033 21.09 15.6533C21.09 15.8033 21.03 15.9433 20.92 16.0533C20.81 16.1633 20.67 16.2133 20.51 16.2133C18.5833 16.2133 17.62 17.1833 17.62 19.1233C17.62 19.1933 17.61 19.2733 17.58 19.3333C17.55 19.4033 17.51 19.4633 17.46 19.5133C17.41 19.5633 17.34 19.6033 17.27 19.6333C17.2 19.6633 17.13 19.6733 17.05 19.6733L17.03 19.6833Z",fill:"#69727d"}),(0,i.jsx)("path",{d:"M93.73 18.7002V53.5702C89.5242 52.1891 85.0076 52.0606 80.73 53.2002C78.5076 53.7922 76.4667 54.9261 74.79 56.5002H39V18.7002H93.73Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M70.6797 56.8802C71.8297 55.3702 73.6797 51.3402 76.5497 49.8202C83.9797 45.8202 91.6997 48.7402 93.0797 49.2802C92.9097 51.0602 92.7297 54.8402 92.5497 56.6202L70.6797 56.8802Z",fill:"#f1f3f3"}),(0,i.jsx)("path",{d:"M74.8102 57.3004H39.0002C38.788 57.3004 38.5845 57.2161 38.4345 57.0661C38.2845 56.916 38.2002 56.7126 38.2002 56.5004V18.7004C38.2002 18.4882 38.2845 18.2847 38.4345 18.1347C38.5845 17.9847 38.788 17.9004 39.0002 17.9004H93.7302C93.9424 17.9004 94.1459 17.9847 94.2959 18.1347C94.4459 18.2847 94.5302 18.4882 94.5302 18.7004V53.5704C94.5286 53.6973 94.4971 53.8221 94.4384 53.9346C94.3797 54.0471 94.2954 54.1443 94.1922 54.2182C94.0891 54.2922 93.97 54.3409 93.8446 54.3604C93.7192 54.3798 93.5909 54.3696 93.4702 54.3304C89.4324 53.0196 85.1016 52.905 81.0002 54.0004C78.9122 54.5576 76.9927 55.6186 75.4102 57.0904C75.3298 57.1645 75.2351 57.2214 75.1319 57.2575C75.0288 57.2937 74.9192 57.3082 74.8102 57.3004ZM39.8102 55.7004H74.4902C76.2099 54.1603 78.2639 53.0409 80.4902 52.4304C84.5517 51.3404 88.8287 51.3404 92.8902 52.4304V19.4304H39.7802L39.8102 55.7004Z",fill:"#69727d"}),(0,i.jsx)("path",{d:"M93.8802 18.6201H38.9502V20.4901H93.8802V18.6201Z",fill:"#69727d"}),(0,i.jsx)("path",{d:"M93.8802 21.2804H39.0002C38.788 21.2804 38.5845 21.1961 38.4345 21.0461C38.2845 20.896 38.2002 20.6925 38.2002 20.4804V18.6204C38.2002 18.5153 38.2209 18.4113 38.2611 18.3142C38.3013 18.2172 38.3602 18.129 38.4345 18.0547C38.5088 17.9804 38.597 17.9215 38.694 17.8813C38.7911 17.8411 38.8951 17.8204 39.0002 17.8204H93.8802C93.9856 17.819 94.0903 17.8388 94.1879 17.8785C94.2856 17.9183 94.3743 17.9771 94.4489 18.0517C94.5234 18.1263 94.5823 18.215 94.622 18.3126C94.6618 18.4103 94.6815 18.5149 94.6802 18.6204V20.4804C94.6802 20.6925 94.5959 20.896 94.4459 21.0461C94.2959 21.1961 94.0924 21.2804 93.8802 21.2804ZM39.7502 19.6804H93.0802V19.4204H39.7502V19.6804Z",fill:"#69727d"}),(0,i.jsx)("path",{d:"M72.6302 61.4002C71.9302 57.7502 75.3702 53.9402 80.7502 52.4002C86.1302 50.8602 93.0502 51.6902 97.0902 54.4002C96.5902 51.1002 100.47 47.7502 105.68 46.9802C110.89 46.2102 116.79 48.1202 118.74 51.2102",fill:"#fff"}),(0,i.jsx)("path",{d:"M72.6304 62.2002C72.4441 62.1993 72.2637 62.1341 72.1198 62.0157C71.9759 61.8973 71.8772 61.7329 71.8404 61.5502C71.0704 57.4702 74.7204 53.2902 80.5304 51.6302C85.7893 50.1955 91.3873 50.6812 96.3204 53.0002C96.4869 52.0827 96.871 51.2186 97.4404 50.4802C99.0604 48.2902 102.1 46.6802 105.56 46.1702C111.08 45.3502 117.3 47.4102 119.42 50.7602C119.534 50.9392 119.573 51.1562 119.527 51.3635C119.481 51.5707 119.354 51.7512 119.175 51.8652C118.996 51.9793 118.779 52.0175 118.572 51.9716C118.365 51.9256 118.184 51.7992 118.07 51.6202C116.29 48.8002 110.67 47.0302 105.79 47.7502C103.055 48.0525 100.533 49.3692 98.7204 51.4402C98.3985 51.8299 98.1583 52.2804 98.014 52.7649C97.8697 53.2493 97.8242 53.7579 97.8804 54.2602C97.9039 54.4131 97.8825 54.5696 97.8189 54.7106C97.7553 54.8516 97.6522 54.9711 97.522 55.0547C97.3919 55.1383 97.2403 55.1824 97.0856 55.1816C96.9309 55.1808 96.7797 55.1352 96.6504 55.0502C92.8304 52.5102 86.0904 51.7002 81.0004 53.1702C76.0804 54.5802 72.8404 58.0502 73.4504 61.2502C73.4884 61.4584 73.4424 61.6731 73.3225 61.8474C73.2025 62.0217 73.0184 62.1413 72.8104 62.1802L72.6304 62.2002Z",fill:"#69727d"}),(0,i.jsx)("path",{d:"M65.8097 50.5295C72.785 50.5295 78.4397 44.8749 78.4397 37.8995C78.4397 30.9242 72.785 25.2695 65.8097 25.2695C58.8343 25.2695 53.1797 30.9242 53.1797 37.8995C53.1797 44.8749 58.8343 50.5295 65.8097 50.5295Z",fill:"#f1f3f3"}),(0,i.jsx)("path",{d:"M69.7503 38.6996H61.8703C61.6581 38.6996 61.4547 38.6153 61.3046 38.4653C61.1546 38.3153 61.0703 38.1118 61.0703 37.8996C61.0703 37.6874 61.1546 37.484 61.3046 37.3339C61.4547 37.1839 61.6581 37.0996 61.8703 37.0996H69.7503C69.9625 37.0996 70.166 37.1839 70.316 37.3339C70.466 37.484 70.5503 37.6874 70.5503 37.8996C70.5503 38.1118 70.466 38.3153 70.316 38.4653C70.166 38.6153 69.9625 38.6996 69.7503 38.6996Z",fill:"#69727d"}),(0,i.jsx)("path",{d:"M65.8098 42.6402C65.5976 42.6402 65.3941 42.5559 65.2441 42.4059C65.0941 42.2559 65.0098 42.0524 65.0098 41.8402V34.0002C65.0098 33.788 65.0941 33.5845 65.2441 33.4345C65.3941 33.2845 65.5976 33.2002 65.8098 33.2002C66.0219 33.2002 66.2254 33.2845 66.3755 33.4345C66.5255 33.5845 66.6098 33.788 66.6098 34.0002V41.8902C66.597 42.0936 66.5072 42.2844 66.3585 42.4238C66.2098 42.5632 66.0135 42.6406 65.8098 42.6402Z",fill:"#69727d"})]}),lDe=()=>(0,i.jsxs)(dY,{display:"flex",gap:1,flexDirection:"column",alignItems:"center",sx:{textAlign:"center",paddingBlock:4},children:[(0,i.jsx)(aDe,{}),(0,i.jsxs)(dY,{sx:{maxWidth:"320px"},display:"flex",gap:1,flexDirection:"column",children:[(0,i.jsx)(t3,{variant:"subtitle2",children:(0,r3.__)("No suppressed email addresses to show, yet.","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",children:(0,r3.__)("You'll find a list of emails here if they unsubscribe, or if you manually add them to this list in the future.","site-mailer")})]})]}),cDe=({selectedItems:e,toggleItem:t})=>{const{list:r,deleteModalData:n}=iDe(),o=e=>()=>n.openDeleteModal([e]);return(0,i.jsx)(JCe,{children:r.items?.map((r=>{const n=e.includes(r.id);return(0,i.jsxs)(g_e,{hover:!0,selected:n,children:[(0,i.jsx)(QCe,{padding:"none",sx:{maxWidth:"42px",minWidth:"42px"},children:(0,i.jsx)(wke,{onClick:t(r.id),checked:n,color:"secondary"})}),(0,i.jsx)(QCe,{sx:{paddingLeft:0},children:r.email}),(0,i.jsx)(QCe,{children:ofe[r.reason]}),(0,i.jsxs)(m_e,{sx:{minWidth:"190px",maxWidth:"190px"},children:[(0,i.jsx)(t3,{className:"el-mailer-date",variant:"body2",color:"text.tertiary",children:(0,r3.sprintf)(
// Translators: %1$s - date, %2$s - time
// Translators: %1$s - date, %2$s - time
(0,r3.__)("%1$s at %2$s","site-mailer"),(0,e_e.dateI18n)("Y/m/d",r.created_at,!1),(0,e_e.dateI18n)("g:i a",r.created_at,!1))}),(0,i.jsx)(dY,{display:"flex",className:"el-mailer-cta",justifyContent:"end",children:(0,i.jsx)(hye,{title:(0,r3.__)("Remove","site-mailer"),arrow:!1,children:(0,i.jsx)(vbe,{variant:"text",color:"secondary",size:"small",onClick:o(r.id),children:(0,i.jsx)(Qme,{})})})})]})]},`suppression-item-row-${r.id}`)}))})};cDe.propTypes={selectedItems:Nhe().arrayOf(Nhe().string).isRequired,toggleItem:Nhe().func.isRequired};const uDe=cDe,dDe=({isAllSelected:e,toggleAll:t})=>{const[r,o]=(0,n.useState)({email:"desc",reason:"desc",created_at:"desc"}),{params:s,updateList:a}=iDe(),l=(e,t)=>async()=>{const n="desc"!==t?"desc":"asc",i={...s,orderBy:e,order:n};await a(i),o({...r,[e]:n})};return(0,i.jsx)(R_e,{children:(0,i.jsxs)(qCe,{children:[(0,i.jsx)(QCe,{variant:"head",padding:"none",sx:{width:"42px"},children:(0,i.jsx)(wke,{checked:e,onClick:t(e),color:"secondary"})}),(0,i.jsx)(QCe,{variant:"head",style:{paddingLeft:0},children:(0,i.jsx)(rOe,{onClick:l("email",r.email),direction:r.email,active:"email"===s.orderBy,children:(0,r3.__)("Email address","site-mailer")})}),(0,i.jsx)(QCe,{variant:"head",children:(0,i.jsx)(rOe,{onClick:l("reason",r.reason),direction:r.reason,active:"reason"===s.orderBy,children:(0,r3.__)("Method","site-mailer")})}),(0,i.jsx)(QCe,{variant:"head",sx:{width:"190px"},children:(0,i.jsx)(rOe,{onClick:l("created_at",r.created_at),direction:r.created_at,active:"created_at"===s.orderBy,children:(0,r3.__)("Date","site-mailer")})})]})})};dDe.propTypes={toggleAll:Nhe().func.isRequired,isAllSelected:Nhe().bool.isRequired};const pDe=dDe,hDe=c1(Wfe)`
    &:last-child {
        padding-bottom: 16px;
    }
`,fDe=()=>{const{list:e,params:t,updateList:r,addModalData:n,deleteModalData:o,setParams:s}=iDe(),{isAllSelected:a,selectedItems:l,toggleItem:c,toggleAll:u}=Rme(e);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t3,{variant:"h5",sx:{mb:1},children:(0,r3.__)("Suppressions","site-mailer")}),(0,i.jsx)(t3,{variant:"body2",color:"text.secondary",sx:{maxWidth:520,marginBottom:3},children:(0,r3.__)("Email addresses that will not receive emails from your site, either because users have unsubscribed or because they were added manually","site-mailer")}),(0,i.jsxs)(Efe,{variant:"outlined",sx:{marginTop:1},children:[(0,i.jsxs)(hDe,{children:[!l.length&&(0,i.jsxs)(dY,{display:"flex",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:2},children:[(0,i.jsx)(t3,{variant:"body1",children:(0,r3.sprintf)(
// Translators: %s - suppressions count
// Translators: %s - suppressions count
(0,r3.__)("%s Suppressions","site-mailer"),e.total??"")}),(0,i.jsx)(r2,{variant:"contained",startIcon:(0,i.jsx)(tDe,{}),onClick:()=>n.setOpenAddModal(!0),children:(0,r3.__)("Add an Email","site-mailer")})]}),(0,i.jsx)(jye,{actionText:(0,r3.__)("Remove","site-mailer"),selectedItems:l,deleteItems:()=>o.openDeleteModal(l)}),(0,i.jsxs)(Eme,{children:[(0,i.jsxs)(Cme,{children:[(0,i.jsx)(pDe,{toggleAll:u,isAllSelected:a}),(0,i.jsx)(uDe,{selectedItems:l,toggleItem:c}),Number(e.total)>0&&(0,i.jsx)(VCe,{params:t,count:Number(e?.total??0),updateList:r,setParams:s})]}),e.total&&0===Number(e.total)&&(0,i.jsx)(lDe,{})]})]}),(0,i.jsx)(oDe,{}),(0,i.jsx)(sDe,{})]})]})},mDe=()=>(0,i.jsx)(nDe,{children:(0,i.jsx)(fDe,{})}),gDe=c1(dY)`
    display: flex;
    flex-direction: row;
    height: calc(100vh - 80px);
    overflow-y: auto;
`,vDe=c1(dY)`
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: ${({theme:e})=>e.spacing(3)} ${({theme:e})=>e.spacing(4)};
    flex-grow: 1;
    overflow-x: auto;
`,yDe=c1(dY)`
 	margin: 0 auto;
	max-width: 1200px;
	width: 100%;
`,bDe=()=>{const{siteMailerSettingsData:e}=window,{isConnected:t,isUrlMismatch:r,closePostConnectModal:o,loaded:s,isValidPlanData:a,isRTL:l,isElementorOne:c,hasElementorOneSubscription:u,isMigrationPopupDismissed:d,refreshPluginSettings:p}=gfe(),{notificationMessage:h,notificationType:f,currentTab:m}=dfe(),[g,v]=(0,n.useState)(!1),y=t&&!c&&u&&o&&!d&&!g&&!r;return function(){const{setFrom:e,setReplyTo:t,setRegistrationData:r,setConfirmDnsSettingsAdded:i,setRegistrationStarted:o,setVerificationStarted:s,setActiveStep:a,setCustomDomain:l,setCustomEmailPrefix:c,setIsDomainSettingsOpened:u,setShowCustomDomainVerifiedAlert:d,setCustomDomainVerified:p,setHideLogInfotip:h,setHideWalkthroughModal:f}=dfe(),m=(0,p3.useSelect)((e=>({data:e(d3.store).getEntityRecord("root","site"),hasFinishedResolution:e(d3.store).hasFinishedResolution("getEntityRecord",["root","site"])})),[]);(0,n.useEffect)((()=>{m.hasFinishedResolution&&(e(m?.data?.site_mailer_from_name?m.data.site_mailer_from_name:"Email Deliverability"),m?.data?.site_mailer_reply_to_email&&t(m.data.site_mailer_reply_to_email),m?.data?.site_mailer_sender_domain&&l(m.data.site_mailer_sender_domain),m?.data?.site_mailer_sender_email_prefix&&c(m.data.site_mailer_sender_email_prefix),m?.data?.site_mailer_custom_domain_dns_records&&r(JSON.parse(m.data.site_mailer_custom_domain_dns_records)),m?.data?.site_mailer_verification_started&&s(m.data.site_mailer_verification_started),m?.data?.site_mailer_registration_started&&o(m.data.site_mailer_registration_started),m?.data?.site_mailer_confirm_domain_settings_opened&&u(m.data.site_mailer_confirm_domain_settings_opened),m?.data?.site_mailer_confirm_dns_settings_added&&i(m.data.site_mailer_confirm_dns_settings_added),m?.data?.site_mailer_active_step&&a(m.data.site_mailer_active_step),m?.data?.site_mailer_custom_domain_verified&&p(m.data.site_mailer_custom_domain_verified),m?.data?.site_mailer_custom_domain_verified_alert&&d(m.data.site_mailer_custom_domain_verified_alert),f(Boolean(m?.data?.site_mailer_hide_walkthrough_modal)),h(Boolean(m?.data?.site_mailer_hide_logs_status_refresh_infotip)))}),[m.hasFinishedResolution])}(),(0,i.jsx)(yJ,{rtl:l,children:(0,i.jsx)(i1,{colorScheme:"light",children:(0,i.jsxs)(QB,{env:e.pluginEnv,isRTL:l,children:[(0,i.jsx)(jK,{isWithinWpAdmin:!0,appSettings:{slug:e.appSlug,version:e.appVesion},onDisconnect:p}),s&&!r&&!t&&(0,i.jsx)(Phe,{}),t&&!o&&(0,i.jsx)(BMe,{}),r&&(0,i.jsx)(YMe,{}),!c&&t&&o&&!a&&(0,i.jsx)(COe,{}),t&&o&&(0,i.jsx)(QMe,{}),y&&(0,i.jsx)(FOe,{onClose:()=>v(!0)}),(0,i.jsx)(HMe,{}),(0,i.jsxs)(gDe,{children:[(0,i.jsx)(XNe,{}),(0,i.jsx)(vDe,{children:(0,i.jsxs)(yDe,{children:[m===rfe&&(0,i.jsx)(gOe,{}),m===nfe&&(0,i.jsx)(JPe,{}),m===ife&&(0,i.jsx)(mDe,{})]})})]}),(0,i.jsx)(NMe,{message:h,type:f})]})})})},xDe="#site-mailer-app > div > div + div",wDe="#site-mailer-app";function CDe(){const e=document.querySelector(xDe);if(!e)return!1;let t=e.querySelector(".wrap");return t||(t=document.createElement("div"),t.className="wrap",e.prepend(t)),document.querySelectorAll(".wrap .notice, .wrap .updated, .wrap .error").forEach((e=>{e.closest(wDe)||t.prepend(e)})),!0}function _De(){const e=new MutationObserver((e=>{e.forEach((e=>{e.addedNodes.forEach((e=>{if(e.nodeType===Node.ELEMENT_NODE&&(e.classList.contains("notice")||e.classList.contains("error")||e.classList.contains("updated"))){const t=e.closest(".wrap"),r=e.closest(wDe);if(t&&!r){const t=document.querySelector(xDe);if(t){let r=t.querySelector(".wrap");r||(r=document.createElement("div"),r.className="wrap",t.prepend(r)),r.prepend(e)}}}}))}))}));return e.observe(document.body,{childList:!0,subtree:!0}),e}const kDe=document.getElementById("site-mailer-app"),SDe=window?.siteMailerSettingsData?.isDevelopment,ADe=Boolean(SDe)?n.StrictMode:n.Fragment;kDe&&((0,n.createRoot)(kDe).render((0,i.jsx)(ADe,{children:(0,i.jsx)(pLe,{children:(0,i.jsx)(hfe,{children:(0,i.jsx)(mfe,{children:(0,i.jsx)(Bhe,{children:(0,i.jsx)(bDe,{})})})})})})),function(){if(CDe())return void _De();let e=0;const t=setInterval((()=>{(CDe()||e++>=10)&&(clearInterval(t),e<10&&_De())}),10)}())},6673(e){function t(){return new DOMException("The request is not allowed","NotAllowedError")}e.exports=async function(e){try{await async function(e){if(!navigator.clipboard)throw t();return navigator.clipboard.writeText(e)}(e)}catch(r){try{await async function(e){const r=document.createElement("span");r.textContent=e,r.style.whiteSpace="pre",r.style.webkitUserSelect="auto",r.style.userSelect="all",document.body.appendChild(r);const n=window.getSelection(),i=window.document.createRange();n.removeAllRanges(),i.selectNode(r),n.addRange(i);let o=!1;try{o=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(r)}if(!o)throw t()}(e)}catch(e){throw e||r||t()}}}},1242(e,t){var r;function n(e,t){var r=[],n=0;function i(e){return r.push(e),t}function o(){return r[n++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),o)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",i="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",s="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=i+"(?:\\s*"+o+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",h="((?:-?"+p+")|(?:inherit|auto))",f="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+i+"(?:\\s*"+o+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",v="(?![a-zA-Z])",y="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+g+a+"\\))",x="(?="+g+a+"\\))",w="(\\s*(?:!important\\s*)?[;}])",C=/`TMP`/g,_=/`TMPLTR`/g,k=/`TMPRTL`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+y+"[^;}]+;?)","gi"),E=new RegExp("("+c+"[^\\}]*?})","gi"),R=new RegExp("("+s+")ltr","gi"),I=new RegExp("("+s+")rtl","gi"),O=new RegExp(l+"(left)"+v+b+y,"gi"),M=new RegExp(l+"(right)"+v+b+y,"gi"),T=new RegExp(l+"(left)"+x,"gi"),L=new RegExp(l+"(right)"+x,"gi"),P=/(:dir\( *)ltr( *\))/g,j=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),D=new RegExp(l+"(rtl)"+x,"gi"),B=new RegExp(l+"([ns]?)e-resize","gi"),F=new RegExp(l+"([ns]?)w-resize","gi"),$=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+w,"gi"),z=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+w,"gi"),U=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),W=new RegExp("(background-position-x\\s*:\\s*)(-?"+i+"%)","gi"),q=new RegExp("(border-radius\\s*:\\s*)"+h+"(?:(?:\\s+"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?)?(?:(?:(?:\\s*\\/\\s*)"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?(?:\\s+"+h+")?)?"+w,"gi"),V=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+h,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+h+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+h,"gi"),Z=new RegExp("(text-shadow\\s*:\\s*)"+h,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+h+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+h+"((?:\\s*,\\s*"+h+"){0,2}\\s*\\))","gi");function Y(e,t,r){var n,i;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(i=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(i)+"%"):r=100-parseFloat(r)+"%"),t+r}function J(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),i=r.slice(6,10).filter((function(e){return e})),o=r[10]||"";return t+(i.length?J(n)+" / "+J(i):J(n))+o}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,i){return t+r+ee(n)+i}function ne(e,t,r,n,i){return t+r+n+ee(i)}return{transform:function(r,i){var o=new n(A,"`NOFLIP_SINGLE`"),s=new n(E,"`NOFLIP_CLASS`"),a=new n(S,t);return r=a.tokenize(s.tokenize(o.tokenize(r.replace("`","%60")))),i.transformDirInUrl&&(r=r.replace(P,"$1`TMPLTR`$2").replace(j,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(D,"$1ltr").replace(C,"rtl").replace(_,"ltr").replace(k,"rtl")),i.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(L,"$1left").replace(C,"right")),r=r.replace(R,"$1"+e).replace(I,"$1ltr").replace(C,"rtl").replace(O,"$1"+e).replace(M,"$1left").replace(C,"right").replace(B,"$1$2"+e).replace(F,"$1$2e-resize").replace(C,"w-resize").replace(q,Q).replace(V,te).replace(H,ne).replace(G,ne).replace(Z,te).replace(K,re).replace(X,re).replace($,"$1$2$3$8$5$6$7$4$9").replace(z,"$1$2$3$8$5$6$7$4$9").replace(U,Y).replace(W,Y),o.detokenize(s.detokenize(a.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var i;return"object"==typeof t?i=t:(i={},"boolean"==typeof t&&(i.transformDirInUrl=t),"boolean"==typeof n&&(i.transformEdgeInUrl=n)),r.transform(e,i)}:"undefined"!=typeof window&&(window.cssjanus=r)},4744(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?l.arrayMerge(e,r,l):function(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}(e,r,l):n(r,l)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return a(e,r,t)}),{})};var l=a;e.exports=l},5413(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},1141(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(5413),s=r(6957);i(r(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new s.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},6957(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(5413),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),C(this,e)},e}();t.Node=a;var l=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=s.ElementType.Directive,n}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,n)||this;return o.name=t,o.attribs=r,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,s.isTag)(e)}function v(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function w(e){return e.type===s.ElementType.Root}function C(e,t){var r;if(void 0===t&&(t=!1),y(e))r=new c(e.data);else if(b(e))r=new u(e.data);else if(g(e)){var n=t?_(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(v(e)){n=t?_(e.children):[];var s=new h(n);n.forEach((function(e){return e.parent=s})),r=s}else if(w(e)){n=t?_(e.children):[];var a=new f(n);n.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function _(e){for(var t=e.map((function(e){return C(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=x,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=C},4146(e,t,r){"use strict";var n=r(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=h(r);i&&i!==f&&e(t,i,n)}var s=u(r);d&&(s=s.concat(d(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var v=s[g];if(!(o[v]||n&&n[v]||m&&m[v]||a&&a[v])){var y=p(r,v);try{c(t,v,y)}catch(e){}}}}return t}},3072(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,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===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3404(e,t,r){"use strict";e.exports=r(3072)},5270(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5496(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r,p=(e=(0,n.escapeSpecialCharacters)(e)).match(a),h=p&&p[1]?p[1].toLowerCase():"";switch(h){case i:var f=d(e);return l.test(e)||null===(t=null==(v=f.querySelector(o))?void 0:v.parentNode)||void 0===t||t.removeChild(v),c.test(e)||null===(r=null==(v=f.querySelector(s))?void 0:v.parentNode)||void 0===r||r.removeChild(v),f.querySelectorAll(i);case o:case s:var g=u(e).querySelectorAll(h);return c.test(e)&&l.test(e)?g[0].parentNode.childNodes:g;default:return m?m(e):(v=u(e,s).querySelector(s)).childNodes;var v}};var n=r(7731),i="html",o="head",s="body",a=/<([a-zA-Z]+[0-9]?)/,l=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var h=new p;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),h.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();u=function(e,t){if(t){var r=f.documentElement.querySelector(t);return r&&(r.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var m,g="object"==typeof document&&document.createElement("template");g&&g.content&&(m=function(e){return g.innerHTML=e,g.content.childNodes})},2471(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),r=t?t[1]:void 0;return(0,o.formatDOM)((0,i.default)(e),null,r)};var i=n(r(5496)),o=r(7731),s=/<(![a-zA-Z\s]+)>/},7731(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=o,t.escapeSpecialCharacters=function(e){return e.replace(i.CARRIAGE_RETURN_REGEX,i.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,r,i){void 0===r&&(r=null);for(var l,c=[],u=0,d=t.length;u<d;u++){var p=t[u];switch(p.nodeType){case 1:var h=s(p.nodeName);(l=new n.Element(h,o(p.attributes))).children=e("template"===h?p.content.childNodes:p.childNodes,l);break;case 3:l=new n.Text(a(p.nodeValue));break;case 8:l=new n.Comment(p.nodeValue);break;default:continue}var f=c[u-1]||null;f&&(f.next=l),l.parent=r,l.prev=f,l.next=null,c.push(l)}return i&&((l=new n.ProcessingInstruction(i.substring(0,i.indexOf(" ")).toLowerCase(),i)).next=c[0]||null,l.parent=r,c.unshift(l),c[1]&&(c[1].prev=c[0])),c};var n=r(1141),i=r(5270);function o(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function s(e){return function(e){return i.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function a(e){return e.replace(i.CARRIAGE_RETURN_PLACEHOLDER_REGEX,i.CARRIAGE_RETURN)}},840(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var r={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,n.isCustomAttribute)(u))r[u]=d;else{var p=u.toLowerCase(),h=l(p);if(h){var f=(0,n.getPropertyInfo)(h);switch(o.includes(h)&&s.includes(t)&&!c&&(h=l("default"+p)),r[h]=d,f&&f.type){case n.BOOLEAN:r[h]=!0;break;case n.OVERLOADED_BOOLEAN:""===d&&(r[h]=!0)}}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(r[u]=d)}}return(0,i.setStyleProp)(e.style,r),r};var n=r(4210),i=r(4958),o=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return n.possibleStandardNames[e]}},308(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){void 0===r&&(r={});for(var n=[],i="function"==typeof r.replace,c=r.transform||s.returnFirstArg,u=r.library||a,d=u.cloneElement,p=u.createElement,h=u.isValidElement,f=t.length,m=0;m<f;m++){var g=t[m];if(i){var v=r.replace(g,m);if(h(v)){f>1&&(v=d(v,{key:v.key||m})),n.push(c(v,g,m));continue}}if("text"!==g.type){var y=g,b={};l(y)?((0,s.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,o.default)(y.attribs,y.name));var x=void 0;switch(g.type){case"script":case"style":g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=e(g.children,r));break;default:continue}f>1&&(b.key=m),n.push(c(p(g.name,b,x),g,m))}else{var w=!g.data.trim().length;if(w&&g.parent&&!(0,s.canTextBeChildOfNode)(g.parent))continue;if(r.trim&&w)continue;n.push(c(g.data,g,m))}}return 1===n.length?n[0]:n};var i=r(1609),o=n(r(840)),s=r(4958),a={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},442(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,i.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var i=n(r(2471));t.htmlToDOM=i.default;var o=n(r(840));t.attributesToProps=o.default;var s=n(r(308));t.domToReact=s.default;var a=r(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1}},4958(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,o.default)(e,a)}catch(e){t.style={}}else t.style={}};var i=r(1609),o=n(r(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5077(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");p=~n?e.length-n:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}function g(t){var r=new Error(l.source+":"+d+":"+p+": "+t);if(r.reason=t,r.filename=l.source,r.line=d,r.column=p,r.source=e,!l.silent)throw r}function v(t){var r=t.exec(e);if(r){var n=r[0];return h(n),e=e.slice(n.length),r}}function y(){v(n)}function b(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return g("End of comment missing");var n=e.slice(2,r-2);return p+=2,h(n),e=e.slice(r),p+=2,t({type:"comment",comment:n})}}function w(){var e=f(),r=v(i);if(r){if(x(),!v(o))return g("property missing ':'");var n=v(s),l=e({type:"declaration",property:u(r[0].replace(t,c)),value:n?u(n[0].replace(t,c)):c});return v(a),l}}return m.prototype.content=e,y(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()}},2694(e,t,r){"use strict";var n=r(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={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:o,resetWarningCache:i};return r.PropTypes=r,r}},5556(e,t,r){e.exports=r(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2799(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},4363(e,t,r){"use strict";r(2799)},4210(e,t,r){"use strict";function n(e,t,r,n,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}const i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{i[e]=new n(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{i[e]=new n(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{i[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{i[e]=new n(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"].forEach((e=>{i[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{i[e]=new n(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{i[e]=new n(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{i[e]=new n(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{i[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)}));const o=/[\-\:]([a-z])/g,s=e=>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"].forEach((e=>{const t=e.replace(o,s);i[t]=new n(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(o,s);i[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(o,s);i[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)})),i.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:l,possibleStandardNames:c}=r(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),d=Object.keys(c).reduce(((e,t)=>{const r=c[t];return r===l?e[t]=t:r===a?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229(e,t,r){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(1133)),i=r(8917);function o(e,t){var r={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(r[(0,i.camelCase)(e,t)]=n)})),r):r}o.default=o,e.exports=o},8917(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(n,a))}},1133(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;const n=(0,i.default)(e),o="function"==typeof t;return n.forEach((e=>{if("declaration"!==e.type)return;const{property:n,value:i}=e;o?t(n,i,e):i&&(r=r||{},r[n]=i)})),r};const i=n(r(5077))},1609(e){"use strict";e.exports=window.React},790(e){"use strict";e.exports=window.ReactJSXRuntime},4634(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},8168(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},8587(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})}};const t={};function r(n){const i=t[n];if(void 0!==i)return i.exports;const o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.m=e,(()=>{const e=[];r.O=(t,n,i,o)=>{if(n){o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];return void(e[s]=[n,i,o])}let a=1/0;for(s=0;s<e.length;s++){let[n,i,o]=e[s],c=!0;for(var l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(c=!1,o<a&&(a=o));if(c){e.splice(s--,1);const r=i();void 0!==r&&(t=r)}}return t}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;r.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}const o=Object.create(null);r.r(o);const s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&i&&n;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,r.d(o,s),o}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],o=t[n++];r.o(e,i)?0===o&&n++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>e+".js?ver="+{9:"0e489a0539a7b6f4be00",20:"4197c83836dfbbbdba57",37:"90be4a60e2103f8f0149",44:"50fb0a641c8133bdaefb",45:"e7352d62430641c2c9f7",140:"3f5592fc58b91f1e1c43",165:"2a10b5b2a37e5508ddfa",174:"05a4417c62bb9a33c9aa",178:"f97ef7e650e758599b91",208:"d0cd21c1880cff7c6408",245:"698e7c813c99d0e7ecb0",263:"62a971d8fbe955822315",330:"aa9c7204253cc5bcb23e",335:"63090dc3081de95c748d",425:"71b62628b6436f8bece5",478:"09d97833a985991abdc4",501:"f4f9e57289d725840c50",539:"62607ebb6bdb05138dac",547:"bf2b650da624f891938f",556:"25b959eb5988705efdb7",575:"e52db313b631a99a1634",644:"2580efb4c2931485ca22",698:"543467d18926cdfb4122",715:"a1d75db6dcbdb4a77a54",719:"35469bf439a9bf6e2156",805:"55ccac9cfe11b2cdeb53",821:"8e0517bf2e7ac886e719",829:"0499a846d311e944c519",856:"d3e76c842c856a7c0f03",870:"dcfad8117db6b28f80ed",874:"525285a4b6e0bf9a31d9",897:"469e79e4c1243bae334f",934:"d339e083c2dbc0e46e2d",963:"4301ed2d8cd2ed87d843",973:"76b98a668a9f5ab33f00",978:"2d442bf490a663f6ea38"}[e],r.miniCssF=e=>{},r.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="site-mailer:";r.l=(n,i,o,s)=>{if(e[n])return void e[n].push(i);let a,l;if(void 0!==o){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const r=e[c];if(r.getAttribute("src")==n||r.getAttribute("data-webpack")==t+o){a=r;break}}}a||(l=!0,a=document.createElement("script"),a.charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+o),a.src=n),e[n]=[i];const u=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);const i=e[n];if(delete e[n],a.parentNode?.removeChild(a),i?.forEach((e=>e(r))),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),l&&document.head.appendChild(a)}})(),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{const e={884:0,15:0};r.f.j=(t,n)=>{let i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else if(15!=t){const o=new Promise(((r,n)=>i=e[t]=[r,n]));n.push(i[2]=o);const s=r.p+r.u(t),a=new Error,l=n=>{if(r.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){const e=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",a.name="ChunkLoadError",a.type=e,a.request=r,i[1](a)}};r.l(s,l,"chunk-"+t,t)}else e[t]=0},r.O.j=t=>0===e[t];const t=(t,n)=>{let[i,o,s]=n;var a,l,c=0;if(i.some((t=>0!==e[t]))){for(a in o)r.o(o,a)&&(r.m[a]=o[a]);if(s)var u=s(r)}for(t&&t(n);c<i.length;c++)l=i[c],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(u)},n=globalThis.webpackChunksite_mailer||=[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();let n=r.O(void 0,[15],(()=>r(7201)));n=r.O(n)})();