7272-57229c7b20a399e5.js 947 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7272],{75065:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=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]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.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}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function l(e,t,n){return e.replace(t,n)}function s(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var p=1,h=1,m=0,g=0,b=0,v="";function y(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:p,column:h,length:a,return:""}}function x(e,t){return a(y("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return b=g<m?u(v,g++):0,h++,10===b&&(h=1,p++),b}function C(){return u(v,g)}function k(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 D(e){return p=h=1,m=d(v=e),g=0,[]}function E(e){var t,n;return(t=g-1,n=function e(t){for(;w();)switch(b){case t:return g;case 34:case 39:34!==t&&39!==t&&e(b);break;case 40:41===t&&e(t);break;case 92:w()}return g}(91===e?e+2:40===e?e+1:e),c(v,t,n)).trim()}var S="-ms-",$="-moz-",O="-webkit-",F="comm",j="rule",A="decl",I="@keyframes";function T(e,t){for(var n="",r=e.length,o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function _(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case A:return e.return=e.return||e.value;case F:return"";case I:return e.return=e.value+"{"+T(e.children,r)+"}";case j:e.value=e.props.join(",")}return d(n=T(e.children,r))?e.return=e.value+"{"+n+"}":""}function M(e,t,n,r,i,a,s,u,d,f,p){for(var h=i-1,m=0===i?a:[""],g=m.length,b=0,v=0,x=0;b<r;++b)for(var w=0,C=c(e,h+1,h=o(v=s[b])),k=e;w<g;++w)(k=(v>0?m[w]+" "+C:l(C,/&\f/g,m[w])).trim())&&(d[x++]=k);return y(e,t,n,0===i?j:u,d,f,p)}function P(e,t,n,r){return y(e,t,n,A,c(e,0,r),c(e,r+1,-1),r)}var N=function(e,t,n){for(var r=0,o=0;r=o,o=C(),38===r&&12===o&&(t[n]=1),!k(o);)w();return c(v,e,g)},Z=function(e,t){var n=-1,r=44;do switch(k(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=N(g-1,t,n);break;case 2:e[n]+=E(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}while(r=w());return e},R=function(e,t){var n;return n=Z(D(e),t),v="",n},B=new WeakMap,z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var o=[],i=R(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},L=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},H=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case A:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return O+"print-"+t+t;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 O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+$+t+S+t+t;case 6828:case 4268:return O+t+S+t+t;case 6165:return O+t+S+"flex-"+t+t;case 5187:return O+t+l(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+S+"flex-$1$2")+t;case 5443:return O+t+S+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return O+t+S+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+S+l(t,"shrink","negative")+t;case 5292:return O+t+S+l(t,"basis","preferred-size")+t;case 6060:return O+"box-"+l(t,"-grow","")+O+t+S+l(t,"grow","positive")+t;case 4554:return O+l(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,O+"$1$2")+t;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(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+$+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~s(t,"stretch")?e(l(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~s(t,"!important")&&10))){case 107:return l(t,":",":"+O)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===u(t,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+S+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return O+t+S+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+S+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+S+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+S+t+t}return t}(e.value,e.length);break;case I:return T([x(e,{value:l(e.value,"@","@"+O)})],r);case j:if(e.length)return e.props.map(function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return T([x(e,{props:[l(t,/:(read-\w+)/,":"+$+"$1")]})],r);case"::placeholder":return T([x(e,{props:[l(t,/:(plac\w+)/,":"+O+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":"+$+"$1")]}),x(e,{props:[l(t,/:(plac\w+)/,S+"input-$1")]})],r)}return""}).join("")}}],W=function(e){var t,n,o,a,m,x=e.key;if("css"===x){var S=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(S,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var $=e.stylisPlugins||H,O={},j=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)O[t[n]]=!0;j.push(e)});var A=(n=(t=[z,L].concat($,[_,(o=function(e){m.insert(e)},function(e){!e.root&&(e=e.return)&&o(e)})])).length,function(e,r,o,i){for(var a="",l=0;l<n;l++)a+=t[l](e,r,o,i)||"";return a}),I=function(e){var t,n;return T((n=function e(t,n,r,o,a,m,x,D,S){for(var $,O=0,j=0,A=x,I=0,T=0,_=0,N=1,Z=1,R=1,B=0,z="",L=a,H=m,W=o,V=z;Z;)switch(_=B,B=w()){case 40:if(108!=_&&58==u(V,A-1)){-1!=s(V+=l(E(B),"&","&\f"),"&\f")&&(R=-1);break}case 34:case 39:case 91:V+=E(B);break;case 9:case 10:case 13:case 32:V+=function(e){for(;b=C();)if(b<33)w();else break;return k(e)>2||k(b)>3?"":" "}(_);break;case 92:V+=function(e,t){for(var n;--t&&w()&&!(b<48)&&!(b>102)&&(!(b>57)||!(b<65))&&(!(b>70)||!(b<97)););return n=g+(t<6&&32==C()&&32==w()),c(v,e,n)}(g-1,7);continue;case 47:switch(C()){case 42:case 47:f(y($=function(e,t){for(;w();)if(e+b===57)break;else if(e+b===84&&47===C())break;return"/*"+c(v,t,g-1)+"*"+i(47===e?e:w())}(w(),g),n,r,F,i(b),c($,2,-2),0),S);break;default:V+="/"}break;case 123*N:D[O++]=d(V)*R;case 125*N:case 59:case 0:switch(B){case 0:case 125:Z=0;case 59+j:-1==R&&(V=l(V,/\f/g,"")),T>0&&d(V)-A&&f(T>32?P(V+";",o,r,A-1):P(l(V," ","")+";",o,r,A-2),S);break;case 59:V+=";";default:if(f(W=M(V,n,r,O,j,a,D,z,L=[],H=[],A),m),123===B){if(0===j)e(V,n,W,W,L,m,A,D,H);else switch(99===I&&110===u(V,3)?100:I){case 100:case 108:case 109:case 115:e(t,W,W,o&&f(M(t,W,W,0,0,a,D,z,a,L=[],A),H),a,H,A,D,o?L:H);break;default:e(V,W,W,W,[""],H,0,D,H)}}}O=j=T=0,N=R=1,z=V="",A=x;break;case 58:A=1+d(V),T=_;default:if(N<1){if(123==B)--N;else if(125==B&&0==N++&&125==(b=g>0?u(v,--g):0,h--,10===b&&(h=1,p--),b))continue}switch(V+=i(B),B*N){case 38:R=j>0?1:(V+="\f",-1);break;case 44:D[O++]=(d(V)-1)*R,R=1;break;case 64:45===C()&&(V+=E(w())),I=C(),j=A=d(z=V+=function(e){for(;!k(C());)w();return c(v,e,g)}(g)),B++;break;case 45:45===_&&2==d(V)&&(N=0)}}return m}("",null,null,null,[""],t=D(t=e),0,[0],t),v="",n),A)},N={key:x,sheet:new r({key:x,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:O,registered:{},insert:function(e,t,n,r){m=n,I(e?e+"{"+t.styles+"}":t.styles),r&&(N.inserted[t.name]=!0)}};return N.sheet.hydrate(j),N}},97632:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(75065),o=n(32565),i=n(14909);function a(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function l(e,t,n){var r=[],o=(0,i.fp)(e,r,n);return r.length<2?n:o+t(r)}var s=function(e){var t=(0,r.Z)(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=(0,o.O)(n,t.registered,void 0);return(0,i.My)(t,a,!1),t.key+"-"+a.name};return{css:n,cx:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return l(t.registered,n,u(r))},injectGlobal:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=(0,o.O)(n,t.registered);a(t,i)},keyframes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=(0,o.O)(n,t.registered),l="animation-"+i.name;return a(t,{name:i.name,styles:"@keyframes "+l+"{"+i.styles+"}"}),l},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:i.fp.bind(null,t.registered),merge:l.bind(null,t.registered,n)}},u=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n}},58976:function(e,t,n){"use strict";n.d(t,{Fs:function(){return l},cx:function(){return i},iv:function(){return a}});var r=n(97632);n(75065),n(32565);var o=(0,r.Z)({key:"css"}),i=(o.flush,o.hydrate,o.cx),a=(o.merge,o.getRegisteredStyles,o.injectGlobal,o.keyframes,o.css),l=(o.sheet,o.cache)},32565:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r,o,i={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},a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(r=Object.create(null),function(e){return void 0===r[e]&&(r[e]=s(e)?e:e.replace(a,"-$&").toLowerCase()),r[e]}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,n){return o={name:t,styles:n,next:o},t})}return 1===i[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return o={name:n.name,styles:n.styles,next:o},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)o={name:r.name,styles:r.styles,next:o},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":u(a)&&(r+=c(i)+":"+d(i,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var l=0;l<a.length;l++)u(a[l])&&(r+=c(i)+":"+d(i,a[l])+";");else{var s=f(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var i=o,a=n(e);return o=i,f(e,t,a)}}if(null==t)return n;var l=t[n];return void 0!==l?l:n}var p=/label:\s*([^\s;{]+)\s*(;|$)/g;function h(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r,i=!0,a="";o=void 0;var l=e[0];null==l||void 0===l.raw?(i=!1,a+=f(n,t,l)):a+=l[0];for(var s=1;s<e.length;s++)a+=f(n,t,e[s]),i&&(a+=l[s]);p.lastIndex=0;for(var u="";null!==(r=p.exec(a));)u+="-"+r[1];return{name:function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:o}}},14909:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},16267:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r,o=n(38786),i=n(33418),a=(0,o.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(r=(0,i.S)("dark"))&&void 0!==r&&r.matches?"dark":"light"})},31576:function(e,t,n){"use strict";n.d(t,{F:function(){return eZ}});var r,o,i,a=n(88532),l=n(38786),s=n.t(l,2),u=n(57843),c=n(79216),d=n(88129),f=n(58976),p=function(){function e(){(0,u.Z)(this,e),(0,d.Z)(this,"_cacheList",[f.Fs])}return(0,c.Z)(e,[{key:"add",value:function(e){return this.getCache(e.key)||(this._cacheList.push(e),e)}},{key:"delete",value:function(e){this._cacheList=this._cacheList.filter(function(t){return t.key!==e.key})}},{key:"hasCache",value:function(e){return this._cacheList.some(function(t){return t.key===e.key})}},{key:"getCache",value:function(e){return this._cacheList.find(function(t){return t.key===e})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e}(),h=n(97632),m=n(14909),g="undefined"!=typeof document,b=function(e,t){return"".concat(e,"-").concat(t)},v=function(e,t,n,r){var o=r.hashPriority||"high";(0,m.hC)(e,t,n);var i=".".concat(b(e.key,t.name)),a="low"===o?":where(".concat(i,")"):i;if(void 0===e.inserted[t.name]){var l="",s=t;do{var u=e.insert(t===s?a:"",s,e.sheet,!0);g||void 0===u||(l+=u),s=s.next}while(void 0!==s);if(!g&&0!==l.length)return l}},y=n(7871),x=function(e){return"object"===(0,y.Z)(e)&&"styles"in e&&"name"in e&&"toString"in e},w=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!==o){var i=void 0;switch((0,y.Z)(o)){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},C=function(e,t,n){var r=[],o=(0,m.fp)(e,r,n);return r.length<2?n:o+t(r)},k=n(32565),D=function(e,t){var n,r=(n={hashPriority:t.hashPriority||"high",label:t.label},function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=(0,k.O)(r,e.registered,void 0);return v(e,i,!1,n),b(e.key,i.name)});return{css:r,cx:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];var i=n.map(function(e){return x(e)?r(e):e});return C(e.registered,r,w(i))}}},E=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,k.O)(t)},S=n(75065),$=n(4943),O=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},F=!!s.useInsertionEffect&&s.useInsertionEffect,j=F||function(e){return e()},A=F||l.useLayoutEffect,I=l.createContext("undefined"!=typeof HTMLElement?(0,S.Z)({key:"css"}):null);I.Provider;var T=function(e){return(0,l.forwardRef)(function(t,n){return e(t,(0,l.useContext)(I),n)})},_=l.createContext({}),M=O(function(e){return O(function(t){return"function"==typeof t?t(e):(0,$.Z)({},e,t)})}),P={}.hasOwnProperty,N="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Z=function(e,t){var n={};for(var r in t)P.call(t,r)&&(n[r]=t[r]);return n[N]=e,n},R=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,m.hC)(t,n,r),j(function(){return(0,m.My)(t,n,r)}),null},B=T(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[N],i=[r],a="";"string"==typeof e.className?a=(0,m.fp)(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=(0,k.O)(i,void 0,l.useContext(_));a+=t.key+"-"+s.name;var u={};for(var c in e)P.call(e,c)&&"css"!==c&&c!==N&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),l.createElement(l.Fragment,null,l.createElement(R,{cache:t,serialized:s,isStringTag:"string"==typeof o}),l.createElement(o,u))});n(15080);var z=function(e,t){var n=arguments;if(null==t||!P.call(t,"css"))return l.createElement.apply(void 0,n);var r=n.length,o=Array(r);o[0]=B,o[1]=Z(e,t);for(var i=2;i<r;i++)o[i]=n[i];return l.createElement.apply(null,o)};r=z||(z={}),o||(o=r.JSX||(r.JSX={}));var L=T(function(e,t){var n=e.styles,r=(0,k.O)([n],void 0,l.useContext(_)),o=l.useRef();return A(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),o.current=[n,i],function(){n.flush()}},[t]),A(function(){var e=o.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&(0,m.My)(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)},[t,r.name]),null}),H=n(82267),W=n(15450),V=n(53563),U=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],q=n(11984),G=n(71383),X=n(21239),K=function(){var e=(0,G.S)(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return(0,l.useMemo)(function(){return(0,X.f)(t)},[e])},Y=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],J=["prefixCls","iconPrefixCls"],Q=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(s){var u=n(),c=D((0,l.useContext)(r).cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),d=c.cx,f=c.css,p=K(),h=(0,l.useMemo)(function(){var t;if(e instanceof Function){var n=u.stylish,r=u.appearance,o=u.isDarkMode,l=u.prefixCls,c=u.iconPrefixCls,h=(0,W.Z)(u,Y),m=function(e){return Object.entries(e).map(function(e){var t=(0,q.Z)(e,2),n=t[0],r=t[1],o=r;return x(r)||(o=E(r)),p[n]?"".concat(p[n]," {").concat(o.styles,"}"):""}).join("")};Object.assign(m,p),t=e({token:h,stylish:n,appearance:r,isDarkMode:o,prefixCls:l,iconPrefixCls:c,cx:d,css:E,responsive:m},s)}else t=e;return"object"===(0,y.Z)(t)&&(t=x(t)?f(t):Object.fromEntries(Object.entries(t).map(function(e){var t=(0,q.Z)(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===(0,y.Z)(r)?a?[n,f(r,"label:".concat(o))]:[n,f(r)]:[n,r]}))),t},[s,u]);return(0,l.useMemo)(function(){var e=u.prefixCls,t=u.iconPrefixCls;return{styles:h,cx:d,theme:(0,W.Z)(u,J),prefixCls:e,iconPrefixCls:t}},[h,u])}}},ee=function(e){var t=l.useContext(_);return e.theme!==t&&(t=M(t)(e.theme)),l.createElement(_.Provider,{value:t},e.children)},et=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return(0,H.jsx)(t.Provider,{value:e.theme,children:e.children})}},en=n(54200),er=n(28535),eo=n(56471),ei=n(89318),ea=n(68781),el=n(87992),es=n(29275),eu=n(25568);let ec=null,ed=e=>e(),ef=[],ep={};function eh(){let{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=ep,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}let em=l.forwardRef((e,t)=>{let{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=(0,l.useContext)(ei.E_),i=ep.prefixCls||o("notification"),a=(0,l.useContext)(eo.J),[s,u]=(0,eu.k)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return l.useEffect(r,[]),l.useImperativeHandle(t,()=>{let e=Object.assign({},s);return Object.keys(e).forEach(t=>{e[t]=function(){return r(),s[t].apply(s,arguments)}}),{instance:e,sync:r}}),u}),eg=l.forwardRef((e,t)=>{let[n,r]=l.useState(eh),o=()=>{r(eh)};l.useEffect(o,[]);let i=(0,ea.w6)(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),u=i.getTheme(),c=l.createElement(em,{ref:t,sync:o,notificationConfig:n});return l.createElement(ea.ZP,{prefixCls:a,iconPrefixCls:s,theme:u},i.holderRender?i.holderRender(c):c)});function eb(){if(!ec){let e=document.createDocumentFragment(),t={fragment:e};ec=t,ed(()=>{(0,el.x)()(l.createElement(eg,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,eb())})}}),e)});return}ec.instance&&(ef.forEach(e=>{switch(e.type){case"open":ed(()=>{ec.instance.open(Object.assign(Object.assign({},ep),e.config))});break;case"destroy":ed(()=>{null==ec||ec.instance.destroy(e.key)})}}),ef=[])}function ev(e){(0,ea.w6)(),ef.push({type:"open",config:e}),eb()}let ey={open:ev,destroy:e=>{ef.push({type:"destroy",key:e}),eb()},config:function(e){ep=Object.assign(Object.assign({},ep),e),ed(()=>{var e;null===(e=null==ec?void 0:ec.sync)||void 0===e||e.call(ec)})},useNotification:eu.Z,_InternalPanelDoNotUseOrYouWillBeFired:es.ZP};["success","info","warning","error"].forEach(e=>{ey[e]=t=>ev(Object.assign(Object.assign({},t),{type:e}))});var ex=n(60751),ew=n(48810),eC=n(53505),ek=(0,l.memo)(function(e){var t=e.children,n=e.theme,r=e.prefixCls,o=e.getStaticInstance,i=e.staticInstanceConfig,s=(0,eC.r)(),u=s.appearance,c=s.isDarkMode,d=er.ZP.useMessage(null==i?void 0:i.message),f=(0,q.Z)(d,2),p=f[0],h=f[1],m=ey.useNotification(null==i?void 0:i.notification),g=(0,q.Z)(m,2),b=g[0],v=g[1],y=ex.Z.useModal(),x=(0,q.Z)(y,2),w=x[0],C=x[1];(0,l.useEffect)(function(){null==o||o({message:p,modal:w,notification:b})},[]);var k=(0,l.useMemo)(function(){var e=c?ew.Z.darkAlgorithm:ew.Z.defaultAlgorithm,t=n;if("function"==typeof n&&(t=n(u)),!t)return{algorithm:e};var r=t.algorithm?t.algorithm instanceof Array?t.algorithm:[t.algorithm]:[];return(0,a.Z)((0,a.Z)({},t),{},{algorithm:t.algorithm?[e].concat((0,en.Z)(r)):e})},[n,c]);return(0,H.jsxs)(ea.ZP,{prefixCls:r,theme:k,children:[h,v,C,t]})});function eD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}ek.displayName="AntdProvider";var eE=function(e,t){var n,r=t||{},o=r.defaultValue,i=r.value,a=r.onChange,s=r.postState,u=function(e){if(Array.isArray(e))return e}(n=l.useState(function(){return void 0!==i?i:void 0!==o?"function"==typeof o?o():o:"function"==typeof e?e():e}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,2)||function(e,t){if(e){if("string"==typeof e)return eD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eD(e,t)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=u[0],d=u[1],f=void 0!==i?i:c;return s&&(f=s(f)),[f,function(e){d(e),f!==e&&a&&a(e,f)}]},eS=n(16267),e$=n(33418),eO=function(e){"function"==typeof l.startTransition?(0,l.startTransition)(e):e()},eF=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){eO(function(){(0,e$.S)("dark").matches?n("dark"):n("light")})},a=function(){eO(function(){(0,e$.S)("dark").matches?r("dark"):r("light")})};return(0,l.useLayoutEffect)(function(){if("auto"!==t){eO(function(){n(t)});return}return setTimeout(o,1),i||(i=(0,e$.S)("dark")),i.addEventListener("change",o),function(){i.removeEventListener("change",o)}},[t]),(0,l.useLayoutEffect)(function(){return i||(i=(0,e$.S)("dark")),i.addEventListener("change",a),function(){i.removeEventListener("change",a)}},[]),null},ej=(0,l.memo)(function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,u=e.onThemeModeChange,c=(0,e.useTheme)(),d=c.appearance,f=c.themeMode,p=eE("light",{value:a,defaultValue:null!=s?s:f,onChange:function(e){return null==u?void 0:u(e)}}),h=(0,q.Z)(p,2),m=h[0],g=h[1],b=eE("light",{value:r,defaultValue:null!=o?o:d,onChange:function(e){return null==i?void 0:i(e)}}),v=(0,q.Z)(b,2),y=v[0],x=v[1],w=(0,l.useState)(null!==(t=(0,e$.S)("dark"))&&void 0!==t&&t.matches?"dark":"light"),C=(0,q.Z)(w,2),k=C[0],D=C[1];return(0,H.jsxs)(eS.J.Provider,{value:{themeMode:m,setThemeMode:g,appearance:y,setAppearance:x,isDarkMode:"dark"===y,browserPrefers:k},children:["undefined"!=typeof window&&(0,H.jsx)(eF,{themeMode:m,setAppearance:x,setBrowserPrefers:D}),n]})});ej.displayName="ThemeSwitcher";var eA=function(e){var t=e.css,n=e.token;return{buttonDefaultHover:t({backgroundColor:n.colorBgContainer,border:"1px solid ".concat(n.colorBorder),cursor:"pointer",":hover":{color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},":active":{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive}})}},eI=function(){var e=(0,G.S)(),t=(0,eC.r)(),n=t.appearance,r=t.isDarkMode;return(0,l.useMemo)(function(){return Object.fromEntries(Object.entries(eA({token:e,css:E,appearance:n,isDarkMode:r})).map(function(e){var t=(0,q.Z)(e,2);return[t[0],t[1].styles]}))},[e,n,r])},eT=function(){var e=(0,G.S)(),t=eI();return(0,l.useMemo)(function(){return(0,a.Z)((0,a.Z)({},e),{},{stylish:t})},[e,t])},e_=["stylish"],eM=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,s=e.StyledThemeProvider,u=(0,eC.r)(),c=u.appearance,d=u.isDarkMode,f=eT(),p=f.stylish,h=(0,W.Z)(f,e_),m=(0,l.useMemo)(function(){return r?r instanceof Function?r({token:h,appearance:c,isDarkMode:d}):r:{}},[r,h,c]),g=(0,l.useMemo)(function(){return n instanceof Function?(0,a.Z)((0,a.Z)({},m),n({token:h,appearance:c,isDarkMode:d})):(0,a.Z)((0,a.Z)({},m),n)},[m,n,h,c]),b=(0,l.useMemo)(function(){return o?o({token:(0,a.Z)((0,a.Z)({},h),g),stylish:p,appearance:c,isDarkMode:d,css:E}):{}},[o,h,g,p,c]),v=(0,l.useMemo)(function(){return(0,a.Z)((0,a.Z)({},b),p)},[b,p]),y=(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},h),g),{},{stylish:v},u),{},{prefixCls:i});return(0,H.jsx)(s,{theme:y,children:t})},eP=function(e){var t=e.styledConfig?et(e.styledConfig):void 0,n=e.StyleEngineContext;return(0,l.memo)(function(r){var o=r.children,i=r.customToken,a=r.customStylish,s=r.theme,u=r.getStaticInstance,c=r.prefixCls,d=r.staticInstanceConfig,f=r.appearance,p=r.defaultAppearance,h=r.onAppearanceChange,m=r.themeMode,g=r.defaultThemeMode,b=r.onThemeModeChange,v=r.styled,y=(0,l.useContext)(n),x=y.prefixCls,w=y.StyledThemeContext,C=y.CustomThemeContext,k=(0,l.useContext)(C),D=v?et(v):t||ee,E=c||x;return(0,H.jsx)(n.Provider,{value:{prefixCls:E,StyledThemeContext:(null==v?void 0:v.ThemeContext)||w||_,CustomThemeContext:C},children:(0,H.jsx)(ej,{themeMode:m,defaultThemeMode:g,onThemeModeChange:b,defaultAppearance:p,appearance:f,onAppearanceChange:h,useTheme:e.useTheme,children:(0,H.jsx)(ek,{prefixCls:E,staticInstanceConfig:d,theme:s,getStaticInstance:u,children:(0,H.jsx)(eM,{prefixCls:E,customToken:i,defaultCustomToken:k,customStylish:a,StyledThemeProvider:D,children:o})})})})})},eN=new p;void 0!==n.g&&(n.g.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=eN);var eZ=function(e){var t,r,o,i,s=(0,a.Z)((0,a.Z)({},e),{},{key:null!==(r=e.key)&&void 0!==r?r:"zcss",speedy:null!==(o=e.speedy)&&void 0!==o&&o}),u=(0,h.Z)({key:s.key,speedy:s.speedy,container:s.container}),c=(0,l.createContext)(u),d=(0,l.memo)(function(e){var t=e.children,r=e.prefix,o=e.speedy,i=e.getStyleManager,s=e.container,u=e.nonce,d=e.insertionPoint,f=e.stylisPlugins,p=e.linters,m=(0,W.Z)(e,U),g=(0,l.useContext)(c),b=null!=r?r:g.sheet.key,v=null!=s?s:g.sheet.container,y=null!=o?o:g.sheet.isSpeedy,x=(0,l.useMemo)(function(){var e=(0,h.Z)({speedy:null!=y&&y,key:b,container:v,nonce:u,insertionPoint:d,stylisPlugins:f});if(void 0!==n.g){var t=n.g.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;t&&(e.cache=t.add(e.cache))}return e},[b,y,v,u,d,f]);(0,l.useEffect)(function(){null==i||i(x)},[x]);var w=(0,H.jsx)(c.Provider,{value:x,children:t});return Object.keys(m).length||v?(0,H.jsx)(V.V9,(0,a.Z)((0,a.Z)({linters:p,container:v},m),{},{children:w})):w});u.cache=eN.add(u.cache);var f=(0,l.createContext)(s.customToken?s.customToken:{}),p=null===(i=s.styled)||void 0===i?void 0:i.ThemeContext,m=(0,l.createContext)({CustomThemeContext:f,StyledThemeContext:p,prefixCls:null==s?void 0:s.prefixCls,iconPrefixCls:null==s?void 0:s.iconPrefixCls}),g=(t={StyleEngineContext:m},function(){var e=t.StyleEngineContext,n=(0,l.useContext)(e),r=n.StyledThemeContext,o=n.CustomThemeContext,i=n.prefixCls,s=eT(),u=(0,eC.r)(),c=(0,l.useContext)(o),d=(0,l.useContext)(null!=r?r:_)||{},f=(0,l.useContext)(ea.ZP.ConfigContext),p=f.iconPrefixCls,h=(0,f.getPrefixCls)(),m=i&&"ant"!==i?i:h,g=(0,l.useMemo)(function(){return(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},s),u),c),{},{prefixCls:m,iconPrefixCls:p})},[s,u,c,m,p]);return d&&0!==Object.keys(d).length?(0,a.Z)((0,a.Z)({},d),{},{prefixCls:m,iconPrefixCls:p}):g}),b=Q({hashPriority:s.hashPriority,useTheme:g,EmotionContext:c}),v=eP({styledConfig:s.styled,StyleEngineContext:m,useTheme:g});v.displayName="AntdStyleThemeProvider";var y=D(u.cache,{hashPriority:s.hashPriority}).cx,x=u.injectGlobal;return{createStyles:b,createGlobalStyle:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.memo)(function(e){var n=g();return(0,H.jsx)(L,{styles:(0,k.O)(t,void 0,(0,a.Z)((0,a.Z)({},e),{},{theme:n}))})})},createStylish:function(e){var t=b(e);return function(e){return t(e).styles}},css:E,cx:y,keyframes:u.keyframes,injectGlobal:x,styleManager:u,useTheme:g,StyleProvider:d,ThemeProvider:v}}},55448:function(e,t,n){"use strict";n.d(t,{f6:function(){return s},kc:function(){return o},iv:function(){return i},cx:function(){return a},F4:function(){return l},Fg:function(){return u}});var r=(0,n(31576).F)({key:"acss",speedy:!1}),o=r.createStyles,i=(r.createGlobalStyle,r.createStylish,r.css),a=r.cx,l=r.keyframes,s=(r.injectGlobal,r.styleManager,r.ThemeProvider),u=(r.StyleProvider,r.useTheme)},71383:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(48810),o=function(){return r.Z.useToken().token}},53505:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(38786),o=n(16267),i=function(){return(0,r.useContext)(o.J)}},33418:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var r=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}}},21239:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(88532),o=function(e){return(0,r.Z)((0,r.Z)({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})}},22741:function(e,t,n){"use strict";var r=n(38786),o=n(24526),i=n(60304),a=n(4161);function l(e){return!!(null==e?void 0:e.then)}t.Z=e=>{let{type:t,children:n,prefixCls:s,buttonProps:u,close:c,autoFocus:d,emitEvent:f,isSilent:p,quitOnNullishReturnValue:h,actionFn:m}=e,g=r.useRef(!1),b=r.useRef(null),[v,y]=(0,o.Z)(!1),x=function(){null==c||c.apply(void 0,arguments)};r.useEffect(()=>{let e=null;return d&&(e=setTimeout(()=>{var e;null===(e=b.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[]);let w=e=>{l(e)&&(y(!0),e.then(function(){y(!1,!0),x.apply(void 0,arguments),g.current=!1},e=>{if(y(!1,!0),g.current=!1,null==p||!p())return Promise.reject(e)}))};return r.createElement(i.ZP,Object.assign({},(0,a.nx)(t),{onClick:e=>{let t;if(!g.current){if(g.current=!0,!m){x();return}if(f){if(t=m(e),h&&!l(t)){g.current=!1,x(e);return}}else if(m.length)t=m(c),g.current=!1;else if(!l(t=m())){x();return}w(t)}},loading:v,prefixCls:s},u,{ref:b}),n)}},18980:function(e,t,n){"use strict";var r=n(38786),o=n(35774),i=n(36921);t.Z=e=>{let{space:t,form:n,children:a}=e;if(null==a)return null;let l=a;return n&&(l=r.createElement(o.Ux,{override:!0,status:!0},l)),t&&(l=r.createElement(i.BR,null,l)),l}},14202:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var r=n(38786),o=n(86047),i=n(68781),a=n(89318);function l(e){return t=>r.createElement(i.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}t.Z=(e,t,n,i)=>l(l=>{let{prefixCls:s,style:u}=l,c=r.useRef(null),[d,f]=r.useState(0),[p,h]=r.useState(0),[m,g]=(0,o.Z)(!1,{value:l.open}),{getPrefixCls:b}=r.useContext(a.E_),v=b(t||"select",s);r.useEffect(()=>{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;f(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?`.${n(v)}`:`.${v}-dropdown`,i=null===(r=c.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},u),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});return i&&(y=i(y)),r.createElement("div",{ref:c,style:{paddingBottom:d,position:"relative",minWidth:p}},r.createElement(e,Object.assign({},y)))})},88544:function(e,t,n){"use strict";n.d(t,{o2:function(){return l},yT:function(){return s}});var r=n(54200),o=n(94868);let i=o.i.map(e=>`${e}-inverse`),a=["success","processing","error","default","warning"];function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,r.Z)(i),(0,r.Z)(o.i)).includes(e):o.i.includes(e)}function s(e){return a.includes(e)}},28482:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=e=>e?"function"==typeof e?e():e:null},98357:function(e,t,n){"use strict";n.d(t,{Z:function(){return c},w:function(){return a}});var r=n(38786),o=n(74889),i=n(12689);function a(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function l(e){let{closable:t,closeIcon:n}=e||{};return r.useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}function s(){let e={};for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(t=>{t&&Object.keys(t).forEach(n=>{void 0!==t[n]&&(e[n]=t[n])})}),e}let u={};function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,a=l(e),c=l(t),d="boolean"!=typeof a&&!!(null==a?void 0:a.disabled),f=r.useMemo(()=>Object.assign({closeIcon:r.createElement(o.Z,null)},n),[n]),p=r.useMemo(()=>!1!==a&&(a?s(f,c,a):!1!==c&&(c?s(f,c):!!f.closable&&f)),[a,c,f]);return r.useMemo(()=>{if(!1===p)return[!1,null,d];let{closeIconRender:e}=f,{closeIcon:t}=p,n=t;if(null!=n){e&&(n=e(t));let o=(0,i.Z)(p,!0);Object.keys(o).length&&(n=r.isValidElement(n)?r.cloneElement(n,o):r.createElement("span",Object.assign({},o),n))}return[!0,n,d]},[p,f])}},84927:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(16200);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:u,visibleFirst:c}=e,d=t/2,f={};return Object.keys(o).forEach(e=>{let p=Object.assign(Object.assign({},l&&i[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(f[e]=p,a.has(e)&&(p.autoArrow=!1),e){case"top":case"topLeft":case"topRight":p.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=d+s}let h=(0,r.wZ)({contentRadius:u,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":p.offset[0]=-h.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":p.offset[0]=h.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":p.offset[1]=-(2*h.arrowOffsetHorizontal)+d;break;case"leftBottom":case"rightBottom":p.offset[1]=2*h.arrowOffsetHorizontal-d}p.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let i=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,h,t,n),c&&(p.htmlRegion="visibleFirst")}),f}},56396:function(e,t,n){"use strict";n.d(t,{M2:function(){return o},Tm:function(){return a},wm:function(){return i}});var r=n(38786);function o(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}let i=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function a(e,t){return i(e,e,t)}},79958:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(38786),o=n(43359),i=n.n(o),a=n(18145),l=n(21710),s=n(89318),u=n(56396),c=n(67167);let d=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut},opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}}}};var f=(0,c.A1)("Wave",e=>[d(e)]),p=n(62051),h=n(47871),m=n(56164);let g=`${s.Rf}-wave-target`;var b=n(71048),v=n(87992);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function x(e){return Number.isNaN(e)?0:e}let w=e=>{let{className:t,target:n,component:o,registerUnmount:a}=e,s=r.useRef(null),u=r.useRef(null);r.useEffect(()=>{u.current=a()},[]);let[c,d]=r.useState(null),[f,p]=r.useState([]),[m,v]=r.useState(0),[w,C]=r.useState(0),[k,D]=r.useState(0),[E,S]=r.useState(0),[$,O]=r.useState(!1),F={left:m,top:w,width:k,height:E,borderRadius:f.map(e=>`${e}px`).join(" ")};function j(){let e=getComputedStyle(n);d(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return y(t)?t:y(n)?n:y(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;v(t?n.offsetLeft:x(-parseFloat(r))),C(t?n.offsetTop:x(-parseFloat(o))),D(n.offsetWidth),S(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;p([i,a,s,l].map(e=>x(parseFloat(e))))}if(c&&(F["--wave-color"]=c),r.useEffect(()=>{if(n){let e;let t=(0,h.Z)(()=>{j(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(j)).observe(n),()=>{h.Z.cancel(t),null==e||e.disconnect()}}},[]),!$)return null;let A=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(g));return r.createElement(b.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=s.current)||void 0===n?void 0:n.parentElement;null===(r=u.current)||void 0===r||r.call(u).then(()=>{null==e||e.remove()})}return!1}},(e,n)=>{let{className:o}=e;return r.createElement("div",{ref:(0,l.sQ)(s,n),className:i()(t,o,{"wave-quick":A}),style:F})})};var C=(e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild);let a=(0,v.x)(),l=null;l=a(r.createElement(w,Object.assign({},t,{target:e,registerUnmount:function(){return l}})),i)},k=(e,t,n)=>{let{wave:o}=r.useContext(s.E_),[,i,a]=(0,m.ZP)(),l=(0,p.Z)(r=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let s=l.querySelector(`.${g}`)||l,{showEffect:u}=o||{};(u||C)(s,{className:t,token:i,component:n,event:r,hashId:a})}),u=r.useRef(null);return e=>{h.Z.cancel(u.current),u.current=(0,h.Z)(()=>{l(e)})}},D=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:c}=(0,r.useContext)(s.E_),d=(0,r.useRef)(null),p=c("wave"),[,h]=f(p),m=k(d,i()(p,h),o);if(r.useEffect(()=>{let e=d.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,a.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let g=(0,l.Yr)(t)?(0,l.sQ)((0,l.C4)(t),d):d;return(0,u.Tm)(t,{ref:g})}},4161:function(e,t,n){"use strict";n.d(t,{Dn:function(){return u},aG:function(){return a},hU:function(){return c},nx:function(){return l}});var r=n(38786),o=n(56396);let i=/^[\u4E00-\u9FA5]{2}$/,a=i.test.bind(i);function l(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function u(e){return"text"===e||"link"===e}function c(e,t){let n=!1,i=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);n=r}),r.Children.map(i,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&a(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):s(e)?a(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e})(e,t))}},60304:function(e,t,n){"use strict";n.d(t,{ZP:function(){return eT}});var r,o=n(38786),i=n(43359),a=n.n(i),l=n(46709),s=n(21710),u=n(79958),c=n(89318),d=n(58630),f=n(99870),p=n(36921),h=n(56164),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let g=o.createContext(void 0);var b=n(4161);let v=(0,o.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:l}=e,s=a()(`${l}-icon`,n);return o.createElement("span",{ref:t,className:s,style:r},i)});var y=n(83255),x=n(71048);let w=(0,o.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:l}=e,s=a()(`${n}-loading-icon`,r);return o.createElement(v,{prefixCls:n,className:s,style:i,ref:t},o.createElement(y.Z,{className:l}))}),C=()=>({width:0,opacity:0,transform:"scale(0)"}),k=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var D=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:l,mount:s}=e;return r?o.createElement(w,{prefixCls:t,className:i,style:l}):o.createElement(x.ZP,{visible:!!n,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:C,onAppearActive:k,onEnterStart:C,onEnterActive:k,onLeaveStart:k,onLeaveActive:C},(e,n)=>{let{className:r,style:s}=e,u=Object.assign(Object.assign({},l),s);return o.createElement(w,{prefixCls:t,className:a()(i,r),style:u,ref:n})})},E=n(53563),S=n(45157),$=n(65568),O=n(67167);let F=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var j=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},F(`${t}-primary`,o),F(`${t}-danger`,i)]}},A=n(57843),I=n(79216),T=n(59042),_=n(66900),M=n(88532),P=n(15450),N=n(7871),Z=n(88129);let R=Math.round;function B(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let z=(e,t,n)=>0===n?e:e/100;function L(e,t){let n=t||255;return e>n?n:e<0?0:e}class H{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,Z.Z)(this,"isValid",!0),(0,Z.Z)(this,"r",0),(0,Z.Z)(this,"g",0),(0,Z.Z)(this,"b",0),(0,Z.Z)(this,"a",1),(0,Z.Z)(this,"_h",void 0),(0,Z.Z)(this,"_s",void 0),(0,Z.Z)(this,"_l",void 0),(0,Z.Z)(this,"_v",void 0),(0,Z.Z)(this,"_max",void 0),(0,Z.Z)(this,"_min",void 0),(0,Z.Z)(this,"_brightness",void 0),e){if("string"==typeof e){let t=e.trim();function n(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):(n("hsv")||n("hsb"))&&this.fromHsvString(t)}else if(e instanceof H)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=L(e.r),this.g=L(e.g),this.b=L(e.b),this.a="number"==typeof e.a?L(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=R(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:R(o("r")),g:R(o("g")),b:R(o("b")),a:R(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>R((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=R(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=R(100*this.getSaturation()),n=R(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=L(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){let e=R(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0,l=e/60,s=(1-Math.abs(2*n-1))*t,u=s*(1-Math.abs(l%2-1));l>=0&&l<1?(o=s,i=u):l>=1&&l<2?(o=u,i=s):l>=2&&l<3?(i=s,a=u):l>=3&&l<4?(i=u,a=s):l>=4&&l<5?(o=u,a=s):l>=5&&l<6&&(o=s,a=u);let c=n-s/2;this.r=R((o+c)*255),this.g=R((i+c)*255),this.b=R((a+c)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;let o=R(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;let i=e/60,a=Math.floor(i),l=i-a,s=R(n*(1-t)*255),u=R(n*(1-t*l)*255),c=R(n*(1-t*(1-l))*255);switch(a){case 0:this.g=c,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=c;break;case 3:this.r=s,this.g=u;break;case 4:this.r=c,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){let t=B(e,z);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=B(e,z);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=B(e,(e,t)=>t.includes("%")?R(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var W=["b"],V=["v"],U=function(e){return Math.round(Number(e||0))},q=function(e){if(e instanceof H)return e;if(e&&"object"===(0,N.Z)(e)&&"h"in e&&"b"in e){var t=e.b,n=(0,P.Z)(e,W);return(0,M.Z)((0,M.Z)({},n),{},{v:t})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},G=function(e){(0,T.Z)(n,e);var t=(0,_.Z)(n);function n(e){return(0,A.Z)(this,n),t.call(this,q(e))}return(0,I.Z)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=U(100*e.s),n=U(100*e.b),r=U(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,P.Z)(e,V);return(0,M.Z)((0,M.Z)({},n),{},{b:t,a:this.a})}}]),n}(H);(r="#1677ff")instanceof G||new G(r),n(13739);let X=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",K=(e,t)=>e?X(e,t):"",Y=(0,I.Z)(function e(t){var n;if((0,A.Z)(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let r=Array.isArray(t);r&&t.length?(this.colors=t.map(t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}}),this.metaColor=new G(this.colors[0].color.metaColor)):this.metaColor=new G(r?"":t),t&&(!r||this.colors)||(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return K(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:e}=this;if(e){let t=e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!!e&&this.isGradient()===e.isGradient()&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}]);n(86047);let J=(e,t)=>{let{r:n,g:r,b:o,a:i}=e.toRgb(),a=new G(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192};var Q=n(66071);let ee=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,$.IX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},et=e=>{var t,n,r,o,i,a;let l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,u=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,c=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,Q.D)(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,Q.D)(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,Q.D)(u),p=J(new Y(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:u,contentLineHeight:c,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*f)/2-e.lineWidth,0)}},en=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,E.bf)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span:not(:only-child)":{display:"inline-flex",alignSelf:"baseline"},[`> span${t}-icon, > span${n}`]:{display:"inline-flex",alignSelf:"center"},"> a":{color:"currentColor"},"&:not(:disabled)":(0,S.Qy)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},er=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),eo=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ei=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ea=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),el=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},er(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),es=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ea(e))}),eu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ec=(e,t,n,r)=>Object.assign(Object.assign({},(r&&["link","text"].includes(r)?eu:es)(e)),er(e.componentCls,t,n)),ed=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ec(e,r,o))}),ef=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ec(e,r,o))}),ep=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),eh=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ec(e,n,r))}),em=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ec(e,r,o,n))}),eg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ed(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ep(e)),eh(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),em(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),el(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),eb=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ef(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ep(e)),eh(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),em(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),el(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ev=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ed(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ef(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ep(e)),eh(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),em(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),em(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),el(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ey=e=>{let{componentCls:t}=e;return{[`${t}-color-default`]:eg(e),[`${t}-color-primary`]:eb(e),[`${t}-color-dangerous`]:ev(e)}},ex=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ef(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),em(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ed(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),em(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ew=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:u,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${(0,E.bf)(u)} ${(0,E.bf)(l)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:eo(e)},{[`${n}${n}-round${t}`]:ei(e)}]},eC=e=>ew((0,$.IX)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight}),e.componentCls),ek=e=>ew((0,$.IX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),eD=e=>ew((0,$.IX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),eE=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var eS=(0,O.I$)("Button",e=>{let t=ee(e);return[en(t),eC(t),ek(t),eD(t),eE(t),ey(t),ex(t),j(t)]},et,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),e$=n(84333);let eO=e=>{let{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>({[`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}});return Object.assign(Object.assign({},a()),a(!0))};var eF=(0,O.bk)(["Button","compact"],e=>{let t=ee(e);return[(0,e$.c)(t),function(e){var t;let n=`${e.componentCls}-compact-vertical`;return{[n]:Object.assign(Object.assign({},{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t),eO(t)]},et),ej=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},eI=o.forwardRef((e,t)=>{var n,r,i,h;let{loading:m=!1,prefixCls:y,color:x,variant:w,type:C,danger:k=!1,shape:E="default",size:S,styles:$,disabled:O,className:F,rootClassName:j,children:A,icon:I,iconPosition:T="start",ghost:_=!1,block:M=!1,htmlType:P="button",classNames:N,style:Z={},autoInsertSpace:R,autoFocus:B}=e,z=ej(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=C||"default",[H,W]=(0,o.useMemo)(()=>{if(x&&w)return[x,w];let e=eA[L]||[];return k?["danger",e[1]]:e},[C,x,w,k]),V="danger"===H?"dangerous":H,{getPrefixCls:U,direction:q,button:G}=(0,o.useContext)(c.E_),X=null===(n=null!=R?R:null==G?void 0:G.autoInsertSpace)||void 0===n||n,K=U("btn",y),[Y,J,Q]=eS(K),ee=(0,o.useContext)(d.Z),et=null!=O?O:ee,en=(0,o.useContext)(g),er=(0,o.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(m),[m]),[eo,ei]=(0,o.useState)(er.loading),[ea,el]=(0,o.useState)(!1),es=(0,o.useRef)(null),eu=(0,s.x1)(t,es),ec=1===o.Children.count(A)&&!I&&!(0,b.Dn)(W),ed=(0,o.useRef)(!0);o.useEffect(()=>(ed.current=!1,()=>{ed.current=!0}),[]),(0,o.useEffect)(()=>{let e=null;return er.delay>0?e=setTimeout(()=>{e=null,ei(!0)},er.delay):ei(er.loading),function(){e&&(clearTimeout(e),e=null)}},[er]),(0,o.useEffect)(()=>{if(!es.current||!X)return;let e=es.current.textContent||"";ec&&(0,b.aG)(e)?ea||el(!0):ea&&el(!1)}),(0,o.useEffect)(()=>{B&&es.current&&es.current.focus()},[]);let ef=o.useCallback(t=>{var n;if(eo||et){t.preventDefault();return}null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,eo,et]),{compactSize:ep,compactItemClassnames:eh}=(0,p.ri)(K,q),em=(0,f.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=S?S:ep)&&void 0!==t?t:en)&&void 0!==n?n:e}),eg=em&&null!==(r=({large:"lg",small:"sm",middle:void 0})[em])&&void 0!==r?r:"",eb=eo?"loading":I,ev=(0,l.Z)(z,["navigate"]),ey=a()(K,J,Q,{[`${K}-${E}`]:"default"!==E&&E,[`${K}-${L}`]:L,[`${K}-dangerous`]:k,[`${K}-color-${V}`]:V,[`${K}-variant-${W}`]:W,[`${K}-${eg}`]:eg,[`${K}-icon-only`]:!A&&0!==A&&!!eb,[`${K}-background-ghost`]:_&&!(0,b.Dn)(W),[`${K}-loading`]:eo,[`${K}-two-chinese-chars`]:ea&&X&&!eo,[`${K}-block`]:M,[`${K}-rtl`]:"rtl"===q,[`${K}-icon-end`]:"end"===T},eh,F,j,null==G?void 0:G.className),ex=Object.assign(Object.assign({},null==G?void 0:G.style),Z),ew=a()(null==N?void 0:N.icon,null===(i=null==G?void 0:G.classNames)||void 0===i?void 0:i.icon),eC=Object.assign(Object.assign({},(null==$?void 0:$.icon)||{}),(null===(h=null==G?void 0:G.styles)||void 0===h?void 0:h.icon)||{}),ek=I&&!eo?o.createElement(v,{prefixCls:K,className:ew,style:eC},I):o.createElement(D,{existIcon:!!I,prefixCls:K,loading:eo,mount:ed.current}),eD=A||0===A?(0,b.hU)(A,ec&&X):null;if(void 0!==ev.href)return Y(o.createElement("a",Object.assign({},ev,{className:a()(ey,{[`${K}-disabled`]:et}),href:et?void 0:ev.href,style:ex,onClick:ef,ref:eu,tabIndex:et?-1:0}),ek,eD));let eE=o.createElement("button",Object.assign({},z,{type:P,className:ey,style:ex,onClick:ef,disabled:et,ref:eu}),ek,eD,eh&&o.createElement(eF,{prefixCls:K}));return(0,b.Dn)(W)||(eE=o.createElement(u.Z,{component:"Button",disabled:eo},eE)),Y(eE)});eI.Group=e=>{let{getPrefixCls:t,direction:n}=o.useContext(c.E_),{prefixCls:r,size:i,className:l}=e,s=m(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=(0,h.ZP)(),f="";switch(i){case"large":f="lg";break;case"small":f="sm"}let p=a()(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===n},l,d);return o.createElement(g.Provider,{value:i},o.createElement("div",Object.assign({},s,{className:p})))},eI.__ANT_BUTTON=!0;var eT=eI},35774:function(e,t,n){"use strict";n.d(t,{aM:function(){return eE},Ux:function(){return eS},pg:function(){return e$}});var r,o=n(38786),i=n(4943),a=n(15450),l=n(81095),s=n(85205),u=n(88532),c=n(54200),d=n(57843),f=n(79216),p=n(85865),h=n(59042),m=n(66900),g=n(88129),b=n(83892),v=n(86262),y=n(19955),x="RC_FORM_INTERNAL_HOOKS",w=function(){(0,y.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},C=o.createContext({getFieldValue:w,getFieldsValue:w,getFieldError:w,getFieldWarning:w,getFieldsError:w,isFieldsTouched:w,isFieldTouched:w,isFieldValidating:w,isFieldsValidating:w,resetFields:w,setFields:w,setFieldValue:w,setFieldsValue:w,validateFields:w,submit:w,getInternalHooks:function(){return w(),{dispatch:w,initEntityValue:w,registerField:w,useSubscribe:w,setInitialValues:w,destroyForm:w,setCallbacks:w,registerWatch:w,getFields:w,setValidateMessages:w,setPreserve:w,getInitialValue:w}}}),k=o.createContext(null);function D(e){return null==e?[]:Array.isArray(e)?e:[e]}var E=n(7871);function S(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var $=S(),O=n(26612),F=n(80463),j=/%[sdj%]/g;function A(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function I(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(j,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function T(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function _(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length){n(a);return}var l=r;r+=1,l<o?t(e[l],i):n([])}([])}void 0!==F&&F.env;var M=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e,r){var o;return(0,d.Z)(this,n),o=t.call(this,"Async Validation Error"),(0,g.Z)((0,p.Z)(o),"errors",void 0),(0,g.Z)((0,p.Z)(o),"fields",void 0),o.errors=e,o.fields=r,o}return(0,f.Z)(n)}((0,O.Z)(Error));function P(e,t){return function(n){var r;return(r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length&&void 0!=n;r++)n=n[t[r]];return n}(t,e.fullFields):t[n.field||e.fullField],n&&void 0!==n.message)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function N(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(0,E.Z)(r)&&"object"===(0,E.Z)(e[n])?e[n]=(0,u.Z)((0,u.Z)({},e[n]),r):e[n]=r}}return e}var Z="enum",R=function(e,t,n,r,o,i){e.required&&(!n.hasOwnProperty(e.field)||T(t,i||e.type))&&r.push(I(o.messages.required,e.fullField))},B=function(){if(r)return r;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",i=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],a="(?:".concat(i.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),c=function(e){return e&&e.exact?l:RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(a).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?u:RegExp("".concat(t(e)).concat(a).concat(t(e)),"g")};var d=c.v4().source,f=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(d,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return r=RegExp("(?:^".concat(p,"$)"),"i")},z={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},L={integer:function(e){return L.number(e)&&parseInt(e,10)===e},float:function(e){return L.number(e)&&!L.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,E.Z)(e)&&!L.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(z.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(B())},hex:function(e){return"string"==typeof e&&!!e.match(z.hex)}},H={required:R,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(I(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t){R(e,t,n,r,o);return}var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?L[i](t)||r.push(I(o.messages.types[i],e.fullField,e.type)):i&&(0,E.Z)(t)!==e.type&&r.push(I(o.messages.types[i],e.fullField,e.type))},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,u=null,c="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(c?u="number":d?u="string":f&&(u="array"),!u)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(I(o.messages[u].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(I(o.messages[u].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(I(o.messages[u].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(I(o.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Z]=Array.isArray(e[Z])?e[Z]:[],-1===e[Z].indexOf(t)&&r.push(I(o.messages[Z],e.fullField,e[Z].join(", ")))},pattern:function(e,t,n,r,o){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(I(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||r.push(I(o.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},W=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t,i)&&!e.required)return n();H.required(e,t,r,a,o,i),T(t,i)||H.type(e,t,r,a,o)}n(a)},V={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t,"string")&&!e.required)return n();H.required(e,t,r,i,o,"string"),T(t,"string")||(H.type(e,t,r,i,o),H.range(e,t,r,i,o),H.pattern(e,t,r,i,o),!0===e.whitespace&&H.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),T(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o),T(t)||H.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();H.required(e,t,r,i,o,"array"),null!=t&&(H.type(e,t,r,i,o),H.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o),void 0!==t&&H.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t,"string")&&!e.required)return n();H.required(e,t,r,i,o),T(t,"string")||H.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t,"date")&&!e.required)return n();H.required(e,t,r,a,o),!T(t,"date")&&(i=t instanceof Date?t:new Date(t),H.type(e,i,r,a,o),i&&H.range(e,i.getTime(),r,a,o))}n(a)},url:W,hex:W,email:W,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":(0,E.Z)(t);H.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(T(t)&&!e.required)return n();H.required(e,t,r,i,o)}n(i)}},U=function(){function e(t){(0,d.Z)(this,e),(0,g.Z)(this,"rules",null),(0,g.Z)(this,"_messages",$),this.define(t)}return(0,f.Z)(e,[{key:"define",value:function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!==(0,E.Z)(e)||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=N(S(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=t,a=r,l=o;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===$&&(s=S()),N(s,a.messages),a.messages=s}else a.messages=this.messages();var d={};(a.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],o=i[e];r.forEach(function(r){var a=r;"function"==typeof a.transform&&(i===t&&(i=(0,u.Z)({},i)),null!=(o=i[e]=a.transform(o))&&(a.type=a.type||(Array.isArray(o)?"array":(0,E.Z)(o)))),(a="function"==typeof a?{validator:a}:(0,u.Z)({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),d[e]=d[e]||[],d[e].push({rule:a,value:o,source:i,field:e}))})});var f={};return function(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a;_((a=[],Object.keys(e).forEach(function(t){a.push.apply(a,(0,c.Z)(e[t]||[]))}),a),n,function(e){return r(e),e.length?i(new M(e,A(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,u=0,d=[],f=new Promise(function(t,i){var f=function(e){if(d.push.apply(d,e),++u===s)return r(d),d.length?i(new M(d,A(d))):t(o)};l.length||(r(d),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?_(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,(0,c.Z)(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,f)})});return f.catch(function(e){return e}),f}(d,a,function(t,n){var r,o,l,s=t.rule,d=("object"===s.type||"array"===s.type)&&("object"===(0,E.Z)(s.fields)||"object"===(0,E.Z)(s.defaultField));function p(e,t){return(0,u.Z)((0,u.Z)({},t),{},{fullField:"".concat(s.fullField,".").concat(e),fullFields:s.fullFields?[].concat((0,c.Z)(s.fullFields),[e]):[e]})}function h(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Array.isArray(r)?r:[r];!a.suppressWarning&&o.length&&e.warning("async-validator:",o),o.length&&void 0!==s.message&&(o=[].concat(s.message));var l=o.map(P(s,i));if(a.first&&l.length)return f[s.field]=1,n(l);if(d){if(s.required&&!t.value)return void 0!==s.message?l=[].concat(s.message).map(P(s,i)):a.error&&(l=[a.error(s,I(a.messages.required,s.field))]),n(l);var h={};s.defaultField&&Object.keys(t.value).map(function(e){h[e]=s.defaultField});var m={};Object.keys(h=(0,u.Z)((0,u.Z)({},h),t.rule.fields)).forEach(function(e){var t=h[e],n=Array.isArray(t)?t:[t];m[e]=n.map(p.bind(null,e))});var g=new e(m);g.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),g.validate(t.value,t.rule.options||a,function(e){var t=[];l&&l.length&&t.push.apply(t,(0,c.Z)(l)),e&&e.length&&t.push.apply(t,(0,c.Z)(e)),n(t.length?t:null)})}else n(l)}if(d=d&&(s.required||!s.required&&t.value),s.field=t.field,s.asyncValidator)r=s.asyncValidator(s,t.value,h,t.source,a);else if(s.validator){try{r=s.validator(s,t.value,h,t.source,a)}catch(e){null===(o=(l=console).error)||void 0===o||o.call(l,e),a.suppressValidatorError||setTimeout(function(){throw e},0),h(e.message)}!0===r?h():!1===r?h("function"==typeof s.message?s.message(s.fullField||s.field):s.message||"".concat(s.fullField||s.field," fails")):r instanceof Array?h(r):r instanceof Error&&h(r.message)}r&&r.then&&r.then(function(){return h()},function(e){return h(e)})},function(e){!function(e){for(var t=[],n={},r=0;r<e.length;r++)!function(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,(0,c.Z)(e))}else t.push(e)}(e[r]);t.length?(n=A(t),l(t,n)):l(null,i)}(e)},i)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!V.hasOwnProperty(e.type))throw Error(I("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return(-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0])?V.required:V[this.getType(e)]||void 0}}]),e}();(0,g.Z)(U,"register",function(e,t){if("function"!=typeof t)throw Error("Cannot register a validator by type, validator is not a function");V[e]=t}),(0,g.Z)(U,"warning",function(){}),(0,g.Z)(U,"messages",$),(0,g.Z)(U,"validators",V);var q="'${name}' is not a valid ${type}",G={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:q,method:q,array:q,object:q,number:q,date:q,boolean:q,integer:q,float:q,regexp:q,email:q,url:q,hex:q},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},X=n(59902),K="CODE_LOGIC_ERROR";function Y(e,t,n,r,o){return J.apply(this,arguments)}function J(){return(J=(0,s.Z)((0,l.Z)().mark(function e(t,n,r,i,a){var s,d,f,p,h,m,b,v,y;return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=(0,u.Z)({},r),delete s.ruleIndex,U.warning=function(){},s.validator&&(d=s.validator,s.validator=function(){try{return d.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(K)}}),f=null,s&&"array"===s.type&&s.defaultField&&(f=s.defaultField,delete s.defaultField),p=new U((0,g.Z)({},t,[s])),h=(0,X.T)(G,i.validateMessages),p.messages(h),m=[],e.prev=10,e.next=13,Promise.resolve(p.validate((0,g.Z)({},t,n),(0,u.Z)({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(m=e.t0.errors.map(function(e,t){var n=e.message,r=n===K?h.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(!(!m.length&&f)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Y("".concat(t,".").concat(n),e,f,i,a)}));case 21:return b=e.sent,e.abrupt("return",b.reduce(function(e,t){return[].concat((0,c.Z)(e),(0,c.Z)(t))},[]));case 23:return v=(0,u.Z)((0,u.Z)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),y=m.map(function(e){return"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){return e.startsWith("\\")?e.slice(1):t[e.slice(2,-1)]})}(e,v):e}),e.abrupt("return",y);case 26:case"end":return e.stop()}},e,null,[[10,15]])}))).apply(this,arguments)}function Q(){return(Q=(0,s.Z)((0,l.Z)().mark(function e(t){return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,(0,c.Z)(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ee(){return(ee=(0,s.Z)((0,l.Z)().mark(function e(t){var n;return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var et=n(69980);function en(e){return D(e)}function er(e,t){var n={};return t.forEach(function(t){var r=(0,et.Z)(e,t);n=(0,X.Z)(n,t,r)}),n}function eo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return ei(t,e,n)})}function ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&!!t&&(!!n||e.length===t.length)&&t.every(function(t,n){return e[n]===t})}function ea(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,E.Z)(t.target)&&e in t.target?t.target[e]:t}function el(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,c.Z)(e.slice(0,n)),[o],(0,c.Z)(e.slice(n,t)),(0,c.Z)(e.slice(t+1,r))):i<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,n+1)),[o],(0,c.Z)(e.slice(n+1,r))):e}var es=["name"],eu=[];function ec(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ed=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e){var r;return(0,d.Z)(this,n),r=t.call(this,e),(0,g.Z)((0,p.Z)(r),"state",{resetCount:0}),(0,g.Z)((0,p.Z)(r),"cancelRegisterFunc",null),(0,g.Z)((0,p.Z)(r),"mounted",!1),(0,g.Z)((0,p.Z)(r),"touched",!1),(0,g.Z)((0,p.Z)(r),"dirty",!1),(0,g.Z)((0,p.Z)(r),"validatePromise",void 0),(0,g.Z)((0,p.Z)(r),"prevValidating",void 0),(0,g.Z)((0,p.Z)(r),"errors",eu),(0,g.Z)((0,p.Z)(r),"warnings",eu),(0,g.Z)((0,p.Z)(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,en(o)),r.cancelRegisterFunc=null}),(0,g.Z)((0,p.Z)(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat((0,c.Z)(void 0===n?[]:n),(0,c.Z)(t)):[]}),(0,g.Z)((0,p.Z)(r),"getRules",function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(n):e})}),(0,g.Z)((0,p.Z)(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,g.Z)((0,p.Z)(r),"metaCache",null),(0,g.Z)((0,p.Z)(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=(0,u.Z)((0,u.Z)({},r.getMeta()),{},{destroy:e});(0,v.Z)(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),(0,g.Z)((0,p.Z)(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,u=n.store,c=r.getNamePath(),d=r.getValue(e),f=r.getValue(u),p=t&&eo(t,c);switch("valueUpdate"!==n.type||"external"!==n.source||(0,v.Z)(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=eu,r.warnings=eu,r.triggerMetaEvent()),n.type){case"reset":if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=eu,r.warnings=eu,r.triggerMetaEvent(),null==s||s(),r.refresh();return}break;case"remove":if(i&&ec(i,e,u,d,f,n)){r.reRender();return}break;case"setField":var h=n.data;if(p){"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||eu),"warnings"in h&&(r.warnings=h.warnings||eu),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if("value"in h&&eo(t,c,!0)||i&&!c.length&&ec(i,e,u,d,f,n)){r.reRender();return}break;case"dependenciesUpdate":if(l.map(en).some(function(e){return eo(n.relatedFields,e)})){r.reRender();return}break;default:if(p||(!l.length||c.length||i)&&ec(i,e,u,d,f,n)){r.reRender();return}}!0===i&&r.reRender()}),(0,g.Z)((0,p.Z)(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,d=Promise.resolve().then((0,s.Z)((0,l.Z)().mark(function o(){var a,f,p,h,m,g,b;return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(p=void 0!==(f=(a=r.props).validateFirst)&&f,h=a.messageVariables,m=a.validateDebounce,g=r.getRules(),i&&(g=g.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||D(t).includes(i)})),!(m&&i)){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,m)});case 8:if(!(r.validatePromise!==d)){o.next=10;break}return o.abrupt("return",[]);case 10:return(b=function(e,t,n,r,o,i){var a,c,d=e.join("."),f=n.map(function(e,t){var n=e.validator,r=(0,u.Z)((0,u.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){(0,y.ZP)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});o=i&&"function"==typeof i.then&&"function"==typeof i.catch,(0,y.ZP)(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1});if(!0===o)c=new Promise((a=(0,s.Z)((0,l.Z)().mark(function e(n,o){var a,s,u;return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<f.length)){e.next=12;break}return s=f[a],e.next=5,Y(d,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)})),function(e,t){return a.apply(this,arguments)}));else{var p=f.map(function(e){return Y(d,t,e,r,i).then(function(t){return{errors:t,rule:e}})});c=(o?function(e){return ee.apply(this,arguments)}(p):function(e){return Q.apply(this,arguments)}(p)).then(function(e){return Promise.reject(e)})}return c.catch(function(e){return e}),c}(t,n,g,e,p,h)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eu;if(r.validatePromise===d){r.validatePromise=null;var t,n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?eu:r;t?o.push.apply(o,(0,c.Z)(i)):n.push.apply(n,(0,c.Z)(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",b);case 13:case"end":return o.stop()}},o)})));return void 0!==a&&a||(r.validatePromise=d,r.dirty=!0,r.errors=eu,r.warnings=eu,r.triggerMetaEvent(),r.reRender()),d}),(0,g.Z)((0,p.Z)(r),"isFieldValidating",function(){return!!r.validatePromise}),(0,g.Z)((0,p.Z)(r),"isFieldTouched",function(){return r.touched}),(0,g.Z)((0,p.Z)(r),"isFieldDirty",function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(x).getInitialValue)(r.getNamePath())}),(0,g.Z)((0,p.Z)(r),"getErrors",function(){return r.errors}),(0,g.Z)((0,p.Z)(r),"getWarnings",function(){return r.warnings}),(0,g.Z)((0,p.Z)(r),"isListField",function(){return r.props.isListField}),(0,g.Z)((0,p.Z)(r),"isList",function(){return r.props.isList}),(0,g.Z)((0,p.Z)(r),"isPreserve",function(){return r.props.preserve}),(0,g.Z)((0,p.Z)(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),(0,g.Z)((0,p.Z)(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return(0,u.Z)((0,u.Z)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=(0,b.Z)(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),(0,g.Z)((0,p.Z)(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return(0,et.Z)(e||t(!0),n)}),(0,g.Z)((0,p.Z)(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,d=t.fieldContext,f=void 0!==i?i:d.validateTrigger,p=r.getNamePath(),h=d.getInternalHooks,m=d.getFieldsValue,b=h(x).dispatch,v=r.getValue(),y=c||function(e){return(0,g.Z)({},s,e)},w=e[o],C=void 0!==n?y(v):{},k=(0,u.Z)((0,u.Z)({},e),C);return k[o]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):ea.apply(void 0,[s].concat(n)),l&&(e=l(e,v,m(!0))),e!==v&&b({type:"updateValue",namePath:p,value:e}),w&&w.apply(void 0,n)},D(f||[]).forEach(function(e){var t=k[e];k[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&b({type:"validateField",namePath:p,triggerName:e})}}),k}),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(x).initEntityValue)((0,p.Z)(r)),r}return(0,f.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(x).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):((0,y.ZP)(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),n}(o.Component);(0,g.Z)(ed,"contextType",C),(0,g.Z)(ed,"defaultProps",{trigger:"onChange",valuePropName:"value"});var ef=function(e){var t,n=e.name,r=(0,a.Z)(e,es),l=o.useContext(C),s=o.useContext(k),u=void 0!==n?en(n):void 0,c=null!==(t=r.isListField)&&void 0!==t?t:!!s,d="keep";return c||(d="_".concat((u||[]).join("_"))),o.createElement(ed,(0,i.Z)({key:d,name:u,isListField:c},r,{fieldContext:l}))},ep=n(11984),eh="__@field_split__";function em(e){return e.map(function(e){return"".concat((0,E.Z)(e),":").concat(e)}).join(eh)}var eg=function(){function e(){(0,d.Z)(this,e),(0,g.Z)(this,"kvs",new Map)}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(em(e),t)}},{key:"get",value:function(e){return this.kvs.get(em(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(em(e))}},{key:"map",value:function(e){return(0,c.Z)(this.kvs.entries()).map(function(t){var n=(0,ep.Z)(t,2),r=n[0],o=n[1];return e({key:r.split(eh).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ep.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),eb=["name"],ev=(0,f.Z)(function e(t){var n=this;(0,d.Z)(this,e),(0,g.Z)(this,"formHooked",!1),(0,g.Z)(this,"forceRootUpdate",void 0),(0,g.Z)(this,"subscribable",!0),(0,g.Z)(this,"store",{}),(0,g.Z)(this,"fieldEntities",[]),(0,g.Z)(this,"initialValues",{}),(0,g.Z)(this,"callbacks",{}),(0,g.Z)(this,"validateMessages",null),(0,g.Z)(this,"preserve",null),(0,g.Z)(this,"lastValidatePromise",null),(0,g.Z)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),(0,g.Z)(this,"getInternalHooks",function(e){return e===x?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,y.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,g.Z)(this,"useSubscribe",function(e){n.subscribable=e}),(0,g.Z)(this,"prevWithoutPreserves",null),(0,g.Z)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=(0,X.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=(0,X.Z)(o,n,(0,et.Z)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),(0,g.Z)(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new eg;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),(0,g.Z)(this,"getInitialValue",function(e){var t=(0,et.Z)(n.initialValues,e);return e.length?(0,X.T)(t):t}),(0,g.Z)(this,"setCallbacks",function(e){n.callbacks=e}),(0,g.Z)(this,"setValidateMessages",function(e){n.validateMessages=e}),(0,g.Z)(this,"setPreserve",function(e){n.preserve=e}),(0,g.Z)(this,"watchList",[]),(0,g.Z)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),(0,g.Z)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),(0,g.Z)(this,"timeoutId",null),(0,g.Z)(this,"warningUnhooked",function(){}),(0,g.Z)(this,"updateStore",function(e){n.store=e}),(0,g.Z)(this,"getFieldEntities",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),(0,g.Z)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eg;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),(0,g.Z)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=en(e);return t.get(n)||{INVALIDATE_NAME_PATH:en(e)}})}),(0,g.Z)(this,"getFieldsValue",function(e,t){if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,E.Z)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var r,o,i,a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=e.isList)&&void 0!==a&&a.call(e))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)}),er(n.store,l.map(en))}),(0,g.Z)(this,"getFieldValue",function(e){n.warningUnhooked();var t=en(e);return(0,et.Z)(n.store,t)}),(0,g.Z)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:en(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})}),(0,g.Z)(this,"getFieldError",function(e){n.warningUnhooked();var t=en(e);return n.getFieldsError([t])[0].errors}),(0,g.Z)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=en(e);return n.getFieldsError([t])[0].warnings}),(0,g.Z)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=r[0],a=r[1],l=!1;0===r.length?e=null:1===r.length?Array.isArray(i)?(e=i.map(en),l=!1):(e=null,l=i):(e=i.map(en),l=a);var s=n.getFieldEntities(!0),u=function(e){return e.isFieldTouched()};if(!e)return l?s.every(function(e){return u(e)||e.isList()}):s.some(u);var d=new eg;e.forEach(function(e){d.set(e,[])}),s.forEach(function(t){var n=t.getNamePath();e.forEach(function(e){e.every(function(e,t){return n[t]===e})&&d.update(e,function(e){return[].concat((0,c.Z)(e),[t])})})});var f=function(e){return e.some(u)},p=d.map(function(e){return e.value});return l?p.every(f):p.some(f)}),(0,g.Z)(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),(0,g.Z)(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(en);return t.some(function(e){return eo(r,e.getNamePath())&&e.isFieldValidating()})}),(0,g.Z)(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),(0,g.Z)(this,"resetWithFieldInitialValue",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new eg,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,(0,c.Z)((0,c.Z)(o).map(function(e){return e.entity})))})):e=o,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))(0,y.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)(0,y.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore((0,X.Z)(n.store,o,(0,c.Z)(i)[0].value))}}}})}(e)}),(0,g.Z)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore((0,X.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),n.notifyWatch();return}var r=e.map(en);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore((0,X.Z)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),(0,g.Z)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=(0,a.Z)(e,eb),l=en(o);r.push(l),"value"in i&&n.updateStore((0,X.Z)(n.store,l,i.value)),n.notifyObservers(t,[l],{type:"setField",data:e})}),n.notifyWatch(r)}),(0,g.Z)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,u.Z)((0,u.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})}),(0,g.Z)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,et.Z)(n.store,r)&&n.updateStore((0,X.Z)(n.store,r,t))}}),(0,g.Z)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),(0,g.Z)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!ei(e.getNamePath(),t)})){var l=n.store;n.updateStore((0,X.Z)(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),(0,g.Z)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),(0,g.Z)(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=(0,u.Z)((0,u.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),(0,g.Z)(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,c.Z)(r))}),r}),(0,g.Z)(this,"updateValue",function(e,t){var r=en(e),o=n.store;n.updateStore((0,X.Z)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(er(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,c.Z)(i)))}),(0,g.Z)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,X.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),(0,g.Z)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),(0,g.Z)(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new eg;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=en(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),(0,g.Z)(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new eg;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){return eo(e,t.name)});a.length&&r(a,o)}}),(0,g.Z)(this,"validateFields",function(e,t){n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(a=e,l=t):l=e;var r,o,i,a,l,s=!!a,d=s?a.map(en):[],f=[],p=String(Date.now()),h=new Set,m=l||{},g=m.recursive,b=m.dirty;n.getFieldEntities(!0).forEach(function(e){if(s||d.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!b||e.isFieldDirty())){var t=e.getNamePath();if(h.add(t.join(p)),!s||eo(d,t,g)){var r=e.validateRules((0,u.Z)({validateMessages:(0,u.Z)((0,u.Z)({},G),n.validateMessages)},l));f.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return(null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,c.Z)(n)):r.push.apply(r,(0,c.Z)(n))}),r.length)?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var v=(r=!1,o=f.length,i=[],f.length?new Promise(function(e,t){f.forEach(function(n,a){n.catch(function(e){return r=!0,e}).then(function(n){o-=1,i[a]=n,o>0||(r&&t(i),e(i))})})}):Promise.resolve([]));n.lastValidatePromise=v,v.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var y=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:t,outOfDate:n.lastValidatePromise!==v})});y.catch(function(e){return e});var x=d.filter(function(e){return h.has(e.join(p))});return n.triggerOnFieldsChange(x),y}),(0,g.Z)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t}),ey=function(e){var t=o.useRef(),n=o.useState({}),r=(0,ep.Z)(n,2)[1];if(!t.current){if(e)t.current=e;else{var i=new ev(function(){r({})});t.current=i.getForm()}}return[t.current]},ex=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ew=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];function eC(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ek=function(){},eD=o.forwardRef(function(e,t){var n,r=e.name,l=e.initialValues,s=e.fields,d=e.form,f=e.preserve,p=e.children,h=e.component,m=void 0===h?"form":h,g=e.validateMessages,b=e.validateTrigger,v=void 0===b?"onChange":b,y=e.onValuesChange,w=e.onFieldsChange,D=e.onFinish,S=e.onFinishFailed,$=e.clearOnDestroy,O=(0,a.Z)(e,ew),F=o.useRef(null),j=o.useContext(ex),A=ey(d),I=(0,ep.Z)(A,1)[0],T=I.getInternalHooks(x),_=T.useSubscribe,M=T.setInitialValues,P=T.setCallbacks,N=T.setValidateMessages,Z=T.setPreserve,R=T.destroyForm;o.useImperativeHandle(t,function(){return(0,u.Z)((0,u.Z)({},I),{},{nativeElement:F.current})}),o.useEffect(function(){return j.registerForm(r,I),function(){j.unregisterForm(r)}},[j,I,r]),N((0,u.Z)((0,u.Z)({},j.validateMessages),g)),P({onValuesChange:y,onFieldsChange:function(e){if(j.triggerFormChange(r,e),w){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];w.apply(void 0,[e].concat(n))}},onFinish:function(e){j.triggerFormFinish(r,e),D&&D(e)},onFinishFailed:S}),Z(f);var B=o.useRef(null);M(l,!B.current),B.current||(B.current=!0),o.useEffect(function(){return function(){return R($)}},[]);var z="function"==typeof p;n=z?p(I.getFieldsValue(!0),I):p,_(!z);var L=o.useRef();o.useEffect(function(){!function(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||"object"!==(0,E.Z)(e)||"object"!==(0,E.Z)(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return(0,c.Z)(o).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})}(L.current||[],s||[])&&I.setFields(s||[]),L.current=s},[s,I]);var H=o.useMemo(function(){return(0,u.Z)((0,u.Z)({},I),{},{validateTrigger:v})},[I,v]),W=o.createElement(k.Provider,{value:null},o.createElement(C.Provider,{value:H},n));return!1===m?W:o.createElement(m,(0,i.Z)({},O,{ref:F,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),I.submit()},onReset:function(e){var t;e.preventDefault(),I.resetFields(),null===(t=O.onReset)||void 0===t||t.call(O,e)}}),W)});eD.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(ex),l=o.useRef({});return o.createElement(ex.Provider,{value:(0,u.Z)((0,u.Z)({},a),{},{validateMessages:(0,u.Z)((0,u.Z)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,u.Z)((0,u.Z)({},l.current),{},(0,g.Z)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,u.Z)({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},eD.Field=ef,eD.List=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,s=o.useContext(C),d=o.useContext(k),f=o.useRef({keys:[],id:0}).current,p=o.useMemo(function(){var e=en(s.prefixName)||[];return[].concat((0,c.Z)(e),(0,c.Z)(en(t)))},[s.prefixName,t]),h=o.useMemo(function(){return(0,u.Z)((0,u.Z)({},s),{},{prefixName:p})},[s,p]),m=o.useMemo(function(){return{getKey:function(e){var t=p.length,n=e[t];return[f.keys[n],e.slice(t+1)]}}},[p]);return"function"!=typeof r?((0,y.ZP)(!1,"Form.List only accepts function as children."),null):o.createElement(k.Provider,{value:m},o.createElement(C.Provider,{value:h},o.createElement(ef,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=l?l:!!d},function(e,t){var n=e.value,o=e.onChange,i=s.getFieldValue,a=function(){return i(p||[])||[]},l=(void 0===n?[]:n)||[];return Array.isArray(l)||(l=[]),r(l.map(function(e,t){var n=f.keys[t];return void 0===n&&(f.keys[t]=f.id,n=f.keys[t],f.id+=1),{name:t,key:n,isListField:!0}}),{add:function(e,t){var n=a();t>=0&&t<=n.length?(f.keys=[].concat((0,c.Z)(f.keys.slice(0,t)),[f.id],(0,c.Z)(f.keys.slice(t))),o([].concat((0,c.Z)(n.slice(0,t)),[e],(0,c.Z)(n.slice(t))))):(f.keys=[].concat((0,c.Z)(f.keys),[f.id]),o([].concat((0,c.Z)(n),[e]))),f.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(f.keys=f.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(f.keys=el(f.keys,e,t),o(el(n,e,t)))}}},t)})))},eD.useForm=ey,eD.useWatch=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=void 0===i?{}:i,l=a&&a._init?{form:a}:a,s=l.form,u=(0,o.useState)(),c=(0,ep.Z)(u,2),d=c[0],f=c[1],p=(0,o.useMemo)(function(){return eC(d)},[d]),h=(0,o.useRef)(p);h.current=p;var m=(0,o.useContext)(C),g=s||m,b=g&&g._init,v=en(r),y=(0,o.useRef)(v);return y.current=v,ek(v),(0,o.useEffect)(function(){if(b){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(x).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof r?r(n):(0,et.Z)(n,y.current)},o=t(function(e,t){var r=n(e,t),o=eC(r);h.current!==o&&(h.current=o,f(r))}),i=n(e(),e(!0));return d!==i&&f(i),o}},[b]),d};let eE=o.createContext({}),eS=e=>{let{children:t,status:n,override:r}=e,i=o.useContext(eE),a=o.useMemo(()=>{let e=Object.assign({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,r,i]);return o.createElement(eE.Provider,{value:a},t)},e$=o.createContext(void 0)},19740:function(e,t,n){"use strict";var r=n(38786),o=n(53936),i=n(63361);t.Z=(e,t)=>{let n=r.useContext(o.Z);return[r.useMemo(()=>{var r;let o=t||i.Z[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})},[e,t,n]),r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.Z.locale:e},[n])]}},14581:function(e,t,n){"use strict";n.d(t,{O:function(){return O},Z:function(){return j}});var r=n(54200),o=n(38786),i=n(5896),a=n(42680),l=n(73656),s=n(22645),u=n(43359),c=n.n(u),d=n(40857),f=n(40377),p=n(68781),h=n(19740),m=n(56164),g=n(22741),b=n(79086),v=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:s,onConfirm:u}=(0,o.useContext)(b.t);return i?o.createElement(g.Z,{isSilent:r,actionFn:s,close:function(){null==l||l.apply(void 0,arguments),null==u||u(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},y=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:s,onOk:u}=(0,o.useContext)(b.t);return o.createElement(g.Z,{isSilent:n,type:l||"primary",actionFn:u,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${i}-btn`},a)},x=n(36183),w=n(53563),C=n(20258),k=n(45157),D=n(67167);let E=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:u}=e,c=`${t}-confirm`;return{[c]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:Object.assign({},(0,k.dF)()),[`&${t} ${t}-body`]:{padding:u},[`${c}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${c}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,w.bf)(e.marginSM)})`},[`${e.iconCls} + ${c}-paragraph`]:{maxWidth:`calc(100% - ${(0,w.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${c}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${c}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${c}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${c}-error ${c}-body > ${e.iconCls}`]:{color:e.colorError},[`${c}-warning ${c}-body > ${e.iconCls},
  2. ${c}-confirm ${c}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${c}-info ${c}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${c}-success ${c}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var S=(0,D.bk)(["Modal","confirm"],e=>[E((0,C.B4)(e))],C.eh,{order:-1e3}),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function O(e){let{prefixCls:t,icon:n,okText:u,cancelText:d,confirmPrefixCls:f,type:p,okCancel:m,footer:g,locale:x}=e,w=$(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),C=n;if(!n&&null!==n)switch(p){case"info":C=o.createElement(s.Z,null);break;case"success":C=o.createElement(i.Z,null);break;case"error":C=o.createElement(a.Z,null);break;default:C=o.createElement(l.Z,null)}let k=null!=m?m:"confirm"===p,D=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[E]=(0,h.Z)("Modal"),O=x||E,F=u||(k?null==O?void 0:O.okText:null==O?void 0:O.justOkText),j=Object.assign({autoFocusButton:D,cancelTextLocale:d||(null==O?void 0:O.cancelText),okTextLocale:F,mergedOkCancel:k},w),A=o.useMemo(()=>j,(0,r.Z)(Object.values(j))),I=o.createElement(o.Fragment,null,o.createElement(v,null),o.createElement(y,null)),T=void 0!==e.title&&null!==e.title,_=`${f}-body`;return o.createElement("div",{className:`${f}-body-wrapper`},o.createElement("div",{className:c()(_,{[`${_}-has-title`]:T})},C,o.createElement("div",{className:`${f}-paragraph`},T&&o.createElement("span",{className:`${f}-title`},e.title),o.createElement("div",{className:`${f}-content`},e.content))),void 0===g||"function"==typeof g?o.createElement(b.n,{value:A},o.createElement("div",{className:`${f}-btns`},"function"==typeof g?g(I,{OkBtn:y,CancelBtn:v}):I)):g,o.createElement(S,{prefixCls:t}))}let F=e=>{let{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:l,getContainer:s,maskStyle:u,direction:p,prefixCls:h,wrapClassName:g,rootPrefixCls:b,bodyStyle:v,closable:y=!1,closeIcon:w,modalRender:C,focusTriggerAfterClose:k,onConfirm:D,styles:E}=e,S=`${h}-confirm`,$=e.width||416,F=e.style||{},j=void 0===e.mask||e.mask,A=void 0!==e.maskClosable&&e.maskClosable,I=c()(S,`${S}-${e.type}`,{[`${S}-rtl`]:"rtl"===p},e.className),[,T]=(0,m.ZP)(),_=o.useMemo(()=>void 0!==n?n:T.zIndexPopupBase+d.u6,[n,T]);return o.createElement(x.Z,{prefixCls:h,className:I,wrapClassName:c()({[`${S}-centered`]:!!e.centered},g),onCancel:()=>{null==t||t({triggerCancel:!0}),null==D||D(!1)},open:i,title:"",footer:null,transitionName:(0,f.m)(b||"","zoom",e.transitionName),maskTransitionName:(0,f.m)(b||"","fade",e.maskTransitionName),mask:j,maskClosable:A,style:F,styles:Object.assign({body:v,mask:u},E),width:$,zIndex:_,afterClose:r,keyboard:a,centered:l,getContainer:s,closable:y,closeIcon:w,modalRender:C,focusTriggerAfterClose:k},o.createElement(O,Object.assign({},e,{confirmPrefixCls:S})))};var j=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(p.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(F,Object.assign({},e)))}},36183:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return D}});var o=n(38786),i=n(74889),a=n(43359),l=n.n(a),s=n(92872),u=n(18980),c=n(98357),d=n(40857),f=n(40377),p=n(94392),h=n(84039),m=n(89318),g=n(81966),b=n(98910),v=n(62051);function y(){}let x=o.createContext({add:y,remove:y});var w=n(4421),C=n(20258),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,p.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);var D=e=>{var t;let{getPopupContainer:n,getPrefixCls:a,direction:p,modal:y}=o.useContext(m.E_),D=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:E,className:S,rootClassName:$,open:O,wrapClassName:F,centered:j,getContainer:A,focusTriggerAfterClose:I=!0,style:T,visible:_,width:M=520,footer:P,classNames:N,styles:Z,children:R,loading:B}=e,z=k(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),L=a("modal",E),H=a(),W=(0,g.Z)(L),[V,U,q]=(0,C.ZP)(L,W),G=l()(F,{[`${L}-centered`]:!!j,[`${L}-wrap-rtl`]:"rtl"===p}),X=null===P||B?null:o.createElement(w.$,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:D})),[K,Y,J]=(0,c.Z)((0,c.w)(e),(0,c.w)(y),{closable:!0,closeIcon:o.createElement(i.Z,{className:`${L}-close-icon`}),closeIconRender:e=>(0,w.b)(L,e)}),Q=function(e){let t=o.useContext(x),n=o.useRef(null);return(0,v.Z)(r=>{if(r){let o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)})}(`.${L}-content`),[ee,et]=(0,d.Cn)("Modal",z.zIndex);return V(o.createElement(u.Z,{form:!0,space:!0},o.createElement(h.Z.Provider,{value:et},o.createElement(s.Z,Object.assign({width:M},z,{zIndex:ee,getContainer:void 0===A?n:A,prefixCls:L,rootClassName:l()(U,$,q,W),footer:X,visible:null!=O?O:_,mousePosition:null!==(t=z.mousePosition)&&void 0!==t?t:r,onClose:D,closable:K?{disabled:J,closeIcon:Y}:K,closeIcon:Y,focusTriggerAfterClose:I,transitionName:(0,f.m)(H,"zoom",e.transitionName),maskTransitionName:(0,f.m)(H,"fade",e.maskTransitionName),className:l()(U,S,null==y?void 0:y.className),style:Object.assign(Object.assign({},null==y?void 0:y.style),T),classNames:Object.assign(Object.assign(Object.assign({},null==y?void 0:y.classNames),N),{wrapper:l()(G,null==N?void 0:N.wrapper)}),styles:Object.assign(Object.assign({},null==y?void 0:y.styles),Z),panelRef:Q}),B?o.createElement(b.Z,{active:!0,title:!1,paragraph:{rows:4},className:`${L}-body-skeleton`}):R))))}},62211:function(e,t,n){"use strict";n.d(t,{AQ:function(){return b},Au:function(){return v},ZP:function(){return p},ai:function(){return y},cw:function(){return m},uW:function(){return h},vq:function(){return g}});var r=n(54200),o=n(38786),i=n(89318),a=n(68781),l=n(87992),s=n(14581),u=n(89711),c=n(14824);let d="",f=e=>{var t,n;let{prefixCls:r,getContainer:a,direction:l}=e,u=(0,c.A)(),f=(0,o.useContext)(i.E_),p=d||f.getPrefixCls(),h=r||`${p}-modal`,m=a;return!1===m&&(m=void 0),o.createElement(s.Z,Object.assign({},e,{rootPrefixCls:p,prefixCls:h,iconPrefixCls:f.iconPrefixCls,theme:f.theme,direction:null!=l?l:f.direction,locale:null!==(n=null===(t=f.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:u,getContainer:m}))};function p(e){let t,n;let i=(0,a.w6)(),s=document.createDocumentFragment(),c=Object.assign(Object.assign({},e),{close:m,open:!0});function p(){for(var t,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];i.some(e=>null==e?void 0:e.triggerCancel)&&(null===(t=e.onCancel)||void 0===t||t.call.apply(t,[e,()=>{}].concat((0,r.Z)(i.slice(1)))));for(let e=0;e<u.Z.length;e++)if(u.Z[e]===m){u.Z.splice(e,1);break}n()}function h(e){clearTimeout(t),t=setTimeout(()=>{let t=i.getPrefixCls(void 0,d),r=i.getIconPrefixCls(),u=i.getTheme(),c=o.createElement(f,Object.assign({},e));n=(0,l.x)()(o.createElement(a.ZP,{prefixCls:t,iconPrefixCls:r,theme:u},i.holderRender?i.holderRender(c):c),s)})}function m(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];(c=Object.assign(Object.assign({},c),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),p.apply(this,n)}})).visible&&delete c.visible,h(c)}return h(c),u.Z.push(m),{destroy:m,update:function(e){h(c="function"==typeof e?e(c):Object.assign(Object.assign({},c),e))}}}function h(e){return Object.assign(Object.assign({},e),{type:"warning"})}function m(e){return Object.assign(Object.assign({},e),{type:"info"})}function g(e){return Object.assign(Object.assign({},e),{type:"success"})}function b(e){return Object.assign(Object.assign({},e),{type:"error"})}function v(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function y(e){let{rootPrefixCls:t}=e;d=t}},79086:function(e,t,n){"use strict";n.d(t,{n:function(){return o},t:function(){return r}});let r=n(38786).createContext({}),{Provider:o}=r},89711:function(e,t){"use strict";t.Z=[]},60751:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(62211),o=n(89711),i=n(36183),a=n(38786),l=n(43359),s=n.n(l),u=n(92872),c=n(14202),d=n(89318),f=n(81966),p=n(14581),h=n(4421),m=n(20258),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},b=(0,c.i)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:l,children:c,footer:b}=e,v=g(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:y}=a.useContext(d.E_),x=y(),w=t||y("modal"),C=(0,f.Z)(x),[k,D,E]=(0,m.ZP)(w,C),S=`${w}-confirm`,$={};return $=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(p.O,Object.assign({},e,{prefixCls:w,confirmPrefixCls:S,rootPrefixCls:x,content:c}))}:{closable:null==o||o,title:l,footer:null!==b&&a.createElement(h.$,Object.assign({},e)),children:c},k(a.createElement(u.s,Object.assign({prefixCls:w,className:s()(D,`${w}-pure-panel`,i&&S,i&&`${S}-${i}`,n,E,C)},v,{closeIcon:(0,h.b)(w,r),closable:o},$)))}),v=n(63887);function y(e){return(0,r.ZP)((0,r.uW)(e))}let x=i.Z;x.useModal=v.Z,x.info=function(e){return(0,r.ZP)((0,r.cw)(e))},x.success=function(e){return(0,r.ZP)((0,r.vq)(e))},x.error=function(e){return(0,r.ZP)((0,r.AQ)(e))},x.warning=y,x.warn=y,x.confirm=function(e){return(0,r.ZP)((0,r.Au)(e))},x.destroyAll=function(){for(;o.Z.length;){let e=o.Z.pop();e&&e()}},x.config=r.ai,x._InternalPanelDoNotUseOrYouWillBeFired=b;var w=x},4421:function(e,t,n){"use strict";n.d(t,{$:function(){return m},b:function(){return h}});var r=n(54200),o=n(38786),i=n(74889),a=n(58630),l=n(19740),s=n(60304),u=n(79086),c=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,o.useContext)(u.t);return o.createElement(s.ZP,Object.assign({onClick:n},e),t)},d=n(4161),f=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,o.useContext)(u.t);return o.createElement(s.ZP,Object.assign({},(0,d.nx)(n),{loading:e,onClick:i},t),r)},p=n(14824);function h(e,t){return o.createElement("span",{className:`${e}-close-x`},t||o.createElement(i.Z,{className:`${e}-close-icon`}))}let m=e=>{let t;let{okText:n,okType:i="primary",cancelText:s,confirmLoading:d,onOk:h,onCancel:m,okButtonProps:g,cancelButtonProps:b,footer:v}=e,[y]=(0,l.Z)("Modal",(0,p.A)()),x={confirmLoading:d,okButtonProps:g,cancelButtonProps:b,okTextLocale:n||(null==y?void 0:y.okText),cancelTextLocale:s||(null==y?void 0:y.cancelText),okType:i,onOk:h,onCancel:m},w=o.useMemo(()=>x,(0,r.Z)(Object.values(x)));return"function"==typeof v||void 0===v?(t=o.createElement(o.Fragment,null,o.createElement(c,null),o.createElement(f,null)),"function"==typeof v&&(t=v(t,{OkBtn:f,CancelBtn:c})),t=o.createElement(u.n,{value:w},t)):t=v,o.createElement(a.n,{disabled:!1},t)}},20258:function(e,t,n){"use strict";n.d(t,{ZP:function(){return v},eh:function(){return b},B4:function(){return g}});var r=n(53563),o=n(45157),i=n(12655);let a=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),l=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[(0,i.R)(r,a,l,e.motionDurationMid,t),{[`
  3. ${o}${r}-enter,
  4. ${o}${r}-appear
  5. `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]};var u=n(24713),c=n(65568),d=n(67167);function f(e){return{position:e,inset:0}}let p=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},f("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},f("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:s(e)}]},h=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,r.bf)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,r.bf)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,r.bf)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,o.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,r.bf)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
  6. ${t}-body,
  7. ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},m=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},g=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,c.IX)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},b=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,r.bf)(e.paddingMD)} ${(0,r.bf)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,r.bf)(e.padding)} ${(0,r.bf)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,r.bf)(e.paddingXS)} ${(0,r.bf)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,r.bf)(2*e.padding)} ${(0,r.bf)(2*e.padding)} ${(0,r.bf)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var v=(0,d.I$)("Modal",e=>{let t=g(e);return[h(t),m(t),p(t),(0,u._y)(t,"zoom")]},b,{unitless:{titleLineHeight:!0}})},63887:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(54200),o=n(38786),i=n(62211),a=n(89711),l=n(89318),s=n(63361),u=n(19740),c=n(14581),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},f=o.forwardRef((e,t)=>{var n,{afterClose:i,config:a}=e,f=d(e,["afterClose","config"]);let[p,h]=o.useState(!0),[m,g]=o.useState(a),{direction:b,getPrefixCls:v}=o.useContext(l.E_),y=v("modal"),x=v(),w=function(){h(!1);for(var e,t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];n.some(e=>null==e?void 0:e.triggerCancel)&&(null===(e=m.onCancel)||void 0===e||e.call.apply(e,[m,()=>{}].concat((0,r.Z)(n.slice(1)))))};o.useImperativeHandle(t,()=>({destroy:w,update:e=>{g(t=>Object.assign(Object.assign({},t),e))}}));let C=null!==(n=m.okCancel)&&void 0!==n?n:"confirm"===m.type,[k]=(0,u.Z)("Modal",s.Z.Modal);return o.createElement(c.Z,Object.assign({prefixCls:y,rootPrefixCls:x},m,{close:w,open:p,afterClose:()=>{var e;i(),null===(e=m.afterClose)||void 0===e||e.call(m)},okText:m.okText||(C?null==k?void 0:k.okText:null==k?void 0:k.justOkText),direction:m.direction||b,cancelText:m.cancelText||(null==k?void 0:k.cancelText)},f))});let p=0,h=o.memo(o.forwardRef((e,t)=>{let[n,i]=function(){let[e,t]=o.useState([]);return[e,o.useCallback(e=>(t(t=>[].concat((0,r.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return o.useImperativeHandle(t,()=>({patchElement:i}),[]),o.createElement(o.Fragment,null,n)}));var m=function(){let e=o.useRef(null),[t,n]=o.useState([]);o.useEffect(()=>{t.length&&((0,r.Z)(t).forEach(e=>{e()}),n([]))},[t]);let l=o.useCallback(t=>function(i){var l;let s,u;p+=1;let c=o.createRef(),d=new Promise(e=>{s=e}),h=!1,m=o.createElement(f,{key:`modal-${p}`,config:t(i),ref:c,afterClose:()=>{null==u||u()},isSilent:()=>h,onConfirm:e=>{s(e)}});return(u=null===(l=e.current)||void 0===l?void 0:l.patchElement(m))&&a.Z.push(u),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():n(t=>[].concat((0,r.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():n(e=>[].concat((0,r.Z)(e),[t]))},then:e=>(h=!0,d.then(e))}},[]);return[o.useMemo(()=>({info:l(i.cw),success:l(i.vq),error:l(i.AQ),warning:l(i.uW),confirm:l(i.Au)}),[]),o.createElement(h,{key:"modal-holder",ref:e})]}},29275:function(e,t,n){"use strict";n.d(t,{CW:function(){return w},ZP:function(){return C},z5:function(){return y}});var r=n(38786),o=n(5896),i=n(42680),a=n(74889),l=n(73656),s=n(22645),u=n(83255),c=n(43359),d=n.n(c),f=n(12122),p=n(89318),h=n(81966),m=n(43651),g=n(53563),b=(0,n(67167).bk)(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,n=(0,m.Rp)(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},(0,m.$e)(n)),{width:n.width,maxWidth:`calc(100vw - ${(0,g.bf)(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},m.eh),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function y(e,t){return null===t||!1===t?null:t||r.createElement(a.Z,{className:`${e}-close-icon`})}s.Z,o.Z,i.Z,l.Z,u.Z;let x={success:o.Z,info:s.Z,error:i.Z,warning:l.Z},w=e=>{let{prefixCls:t,icon:n,type:o,message:i,description:a,btn:l,role:s="alert"}=e,u=null;return n?u=r.createElement("span",{className:`${t}-icon`},n):o&&(u=r.createElement(x[o]||null,{className:d()(`${t}-icon`,`${t}-icon-${o}`)})),r.createElement("div",{className:d()({[`${t}-with-icon`]:u}),role:s},u,r.createElement("div",{className:`${t}-message`},i),r.createElement("div",{className:`${t}-description`},a),l&&r.createElement("div",{className:`${t}-btn`},l))};var C=e=>{let{prefixCls:t,className:n,icon:o,type:i,message:a,description:l,btn:s,closable:u=!0,closeIcon:c,className:g}=e,x=v(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:C}=r.useContext(p.E_),k=t||C("notification"),D=`${k}-notice`,E=(0,h.Z)(k),[S,$,O]=(0,m.ZP)(k,E);return S(r.createElement("div",{className:d()(`${D}-pure-panel`,$,n,O,E)},r.createElement(b,{prefixCls:k}),r.createElement(f.qX,Object.assign({},x,{prefixCls:k,eventKey:"pure",duration:null,closable:u,className:d()({notificationClassName:g}),closeIcon:y(k,c),content:r.createElement(w,{prefixCls:D,icon:o,type:i,message:a,description:l,btn:s})}))))}},43651:function(e,t,n){"use strict";n.d(t,{ZP:function(){return y},$e:function(){return m},eh:function(){return b},Rp:function(){return v}});var r=n(53563),o=n(40857),i=n(45157),a=n(65568),l=n(67167),s=e=>{let{componentCls:t,notificationMarginEdge:n,animationMaxHeight:o}=e,i=`${t}-notice`,a=new r.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new r.E4("antNotificationTopFadeIn",{"0%":{top:-o,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new r.E4("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(o).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new r.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}};let u=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],c={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},d=(e,t)=>{let{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[c[t]]:{value:0,_skip_check_:!0}}}}},f=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},p=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)};var h=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},f(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},p(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},u.map(t=>d(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))};let m=e=>{let{iconCls:t,componentCls:n,boxShadow:o,fontSizeLG:a,notificationMarginBottom:l,borderRadiusLG:s,colorSuccess:u,colorInfo:c,colorWarning:d,colorError:f,colorTextHeading:p,notificationBg:h,notificationPadding:m,notificationMarginEdge:g,notificationProgressBg:b,notificationProgressHeight:v,fontSize:y,lineHeight:x,width:w,notificationIconSize:C,colorText:k}=e,D=`${n}-notice`;return{position:"relative",marginBottom:l,marginInlineStart:"auto",background:h,borderRadius:s,boxShadow:o,[D]:{padding:m,width:w,maxWidth:`calc(100vw - ${(0,r.bf)(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:x,wordWrap:"break-word"},[`${D}-message`]:{marginBottom:e.marginXS,color:p,fontSize:a,lineHeight:e.lineHeightLG},[`${D}-description`]:{fontSize:y,color:k},[`${D}-closable ${D}-message`]:{paddingInlineEnd:e.paddingLG},[`${D}-with-icon ${D}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:a},[`${D}-with-icon ${D}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:y},[`${D}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:f}},[`${D}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,i.Qy)(e)),[`${D}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${(0,r.bf)(s)} * 2)`,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:s,background:b}},[`${D}-btn`]:{float:"right",marginTop:e.marginSM}}},g=e=>{let{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:o,motionDurationMid:a,motionEaseInOut:l}=e,s=`${t}-notice`,u=new r.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:o,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:l,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:l,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${s}-btn`]:{float:"left"}}})},{[t]:{[`${s}-wrapper`]:Object.assign({},m(e))}}]},b=e=>({zIndexPopup:e.zIndexPopupBase+o.u6+50,width:384}),v=e=>{let t=e.paddingMD,n=e.paddingLG;return(0,a.IX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,r.bf)(e.paddingMD)} ${(0,r.bf)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};var y=(0,l.I$)("Notification",e=>{let t=v(e);return[g(t),s(t),h(t)]},b)},25568:function(e,t,n){"use strict";n.d(t,{Z:function(){return v},k:function(){return b}});var r=n(38786),o=n(43359),i=n.n(o),a=n(12122),l=n(9578),s=n(89318),u=n(81966),c=n(56164),d=n(29275),f=n(43651),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=e=>{let{children:t,prefixCls:n}=e,o=(0,u.Z)(n),[l,s,c]=(0,f.ZP)(n,o);return l(r.createElement(a.JB,{classNames:{list:i()(s,c,o)}},t))},m=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(h,{prefixCls:n,key:o},e)},g=r.forwardRef((e,t)=>{let{top:n,bottom:o,prefixCls:l,getContainer:u,maxCount:f,rtl:p,onAllRemoved:h,stack:g,duration:b,pauseOnHover:v=!0,showProgress:y}=e,{getPrefixCls:x,getPopupContainer:w,notification:C,direction:k}=(0,r.useContext)(s.E_),[,D]=(0,c.ZP)(),E=l||x("notification"),[S,$]=(0,a.lm)({prefixCls:E,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=o?o:24),className:()=>i()({[`${E}-rtl`]:null!=p?p:"rtl"===k}),motion:()=>({motionName:`${E}-fade`}),closable:!0,closeIcon:(0,d.z5)(E),duration:null!=b?b:4.5,getContainer:()=>(null==u?void 0:u())||(null==w?void 0:w())||document.body,maxCount:f,pauseOnHover:v,showProgress:y,onAllRemoved:h,renderNotifications:m,stack:!1!==g&&{threshold:"object"==typeof g?null==g?void 0:g.threshold:void 0,offset:8,gap:D.margin}});return r.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:E,notification:C})),$});function b(e){let t=r.useRef(null);return(0,l.ln)("Notification"),[r.useMemo(()=>{let n=n=>{var o;if(!t.current)return;let{open:a,prefixCls:l,notification:s}=t.current,u=`${l}-notice`,{message:c,description:f,icon:h,type:m,btn:g,className:b,style:v,role:y="alert",closeIcon:x,closable:w}=n,C=p(n,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),k=(0,d.z5)(u,void 0!==x?x:null==s?void 0:s.closeIcon);return a(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},C),{content:r.createElement(d.CW,{prefixCls:u,icon:h,type:m,message:c,description:f,btn:g,role:y}),className:i()(m&&`${u}-${m}`,b,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),v),closeIcon:k,closable:null!=w?w:!!k}))},o={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),o},[]),r.createElement(g,Object.assign({key:"notification-holder"},e,{ref:t}))]}function v(e){return b(e)}},54644:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(38786),o=n(73656),i=n(43359),a=n.n(i),l=n(86047),s=n(46709),u=n(89318),c=n(45697),d=n(22741),f=n(28482),p=n(60304),h=n(4161),m=n(19740),g=n(63361),b=n(43178),v=n(67167);let y=e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:u,fontWeightStrong:c,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:u,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:c,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}};var x=(0,v.I$)("Popconfirm",e=>y(e),e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let C=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:i,title:a,description:l,cancelText:s,okText:c,okType:b="primary",icon:v=r.createElement(o.Z,null),showCancel:y=!0,close:x,onConfirm:w,onCancel:C,onPopupClick:k}=e,{getPrefixCls:D}=r.useContext(u.E_),[E]=(0,m.Z)("Popconfirm",g.Z.Popconfirm),S=(0,f.Z)(a),$=(0,f.Z)(l);return r.createElement("div",{className:`${t}-inner-content`,onClick:k},r.createElement("div",{className:`${t}-message`},v&&r.createElement("span",{className:`${t}-message-icon`},v),r.createElement("div",{className:`${t}-message-text`},S&&r.createElement("div",{className:`${t}-title`},S),$&&r.createElement("div",{className:`${t}-description`},$))),r.createElement("div",{className:`${t}-buttons`},y&&r.createElement(p.ZP,Object.assign({onClick:C,size:"small"},i),s||(null==E?void 0:E.cancelText)),r.createElement(d.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,h.nx)(b)),n),actionFn:w,close:x,prefixCls:D("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(null==E?void 0:E.okText))))};var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let D=r.forwardRef((e,t)=>{var n,i;let{prefixCls:d,placement:f="top",trigger:p="click",okType:h="primary",icon:m=r.createElement(o.Z,null),children:g,overlayClassName:b,onOpenChange:v,onVisibleChange:y}=e,w=k(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:D}=r.useContext(u.E_),[E,S]=(0,l.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(i=e.defaultOpen)&&void 0!==i?i:e.defaultVisible}),$=(e,t)=>{S(e,!0),null==y||y(e),null==v||v(e,t)},O=D("popconfirm",d),F=a()(O,b),[j]=x(O);return j(r.createElement(c.Z,Object.assign({},(0,s.Z)(w,["title"]),{trigger:p,placement:f,onOpenChange:(t,n)=>{let{disabled:r=!1}=e;r||$(t,n)},open:E,ref:t,overlayClassName:F,content:r.createElement(C,Object.assign({okType:h,icon:m},e,{prefixCls:O,close:e=>{$(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;$(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),g))});D._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,placement:n,className:o,style:i}=e,l=w(e,["prefixCls","placement","className","style"]),{getPrefixCls:s}=r.useContext(u.E_),c=s("popconfirm",t),[d]=x(c);return d(r.createElement(b.ZP,{placement:n,className:a()(c,o),style:i,content:r.createElement(C,Object.assign({prefixCls:c},l))}))};var E=D},43178:function(e,t,n){"use strict";n.d(t,{aV:function(){return d}});var r=n(38786),o=n(43359),i=n.n(o),a=n(38824),l=n(28482),s=n(89318),u=n(82248),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let d=e=>{let{title:t,content:n,prefixCls:o}=e;return t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},t),n&&r.createElement("div",{className:`${o}-inner-content`},n)):null},f=e=>{let{hashId:t,prefixCls:n,className:o,style:s,placement:u="top",title:c,content:f,children:p}=e,h=(0,l.Z)(c),m=(0,l.Z)(f),g=i()(t,n,`${n}-pure`,`${n}-placement-${u}`,o);return r.createElement("div",{className:g,style:s},r.createElement("div",{className:`${n}-arrow`}),r.createElement(a.G,Object.assign({},e,{className:t,prefixCls:n}),p||r.createElement(d,{prefixCls:n,title:h,content:m})))};t.ZP=e=>{let{prefixCls:t,className:n}=e,o=c(e,["prefixCls","className"]),{getPrefixCls:a}=r.useContext(s.E_),l=a("popover",t),[d,p,h]=(0,u.Z)(l);return d(r.createElement(f,Object.assign({},o,{prefixCls:l,hashId:p,className:i()(n,h)})))}},45697:function(e,t,n){"use strict";var r=n(38786),o=n(43359),i=n.n(o),a=n(86047),l=n(13594),s=n(28482),u=n(40377),c=n(56396),d=n(89318),f=n(21013),p=n(43178),h=n(82248),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let g=r.forwardRef((e,t)=>{var n,o;let{prefixCls:g,title:b,content:v,overlayClassName:y,placement:x="top",trigger:w="hover",children:C,mouseEnterDelay:k=.1,mouseLeaveDelay:D=.1,onOpenChange:E,overlayStyle:S={}}=e,$=m(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:O}=r.useContext(d.E_),F=O("popover",g),[j,A,I]=(0,h.Z)(F),T=O(),_=i()(y,A,I),[M,P]=(0,a.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),N=(e,t)=>{P(e,!0),null==E||E(e,t)},Z=e=>{e.keyCode===l.Z.ESC&&N(!1,e)},R=(0,s.Z)(b),B=(0,s.Z)(v);return j(r.createElement(f.Z,Object.assign({placement:x,trigger:w,mouseEnterDelay:k,mouseLeaveDelay:D,overlayStyle:S},$,{prefixCls:F,overlayClassName:_,ref:t,open:M,onOpenChange:e=>{N(e)},overlay:R||B?r.createElement(p.aV,{prefixCls:F,title:R,content:B}):null,transitionName:(0,u.m)(T,"zoom-big",$.transitionName),"data-popover-inject":!0}),(0,c.Tm)(C,{onKeyDown:e=>{var t,n;r.isValidElement(C)&&(null===(n=null==C?void 0:(t=C.props).onKeyDown)||void 0===n||n.call(t,e)),Z(e)}})))});g._InternalPanelDoNotUseOrYouWillBeFired=p.ZP,t.Z=g},82248:function(e,t,n){"use strict";var r=n(45157),o=n(24713),i=n(16200),a=n(17689),l=n(94868),s=n(67167),u=n(65568);let c=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:a,innerPadding:l,boxShadowSecondary:s,colorTextHeading:u,borderRadiusLG:c,zIndexPopup:d,titleMarginBottom:f,colorBgElevated:p,popoverBg:h,titleBorderBottom:m,innerContentPadding:g,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:l},[`${t}-title`]:{minWidth:o,marginBottom:f,color:u,fontWeight:a,borderBottom:m,padding:b},[`${t}-inner-content`]:{color:n,padding:g}})},(0,i.ZP)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{let{componentCls:t}=e;return{[t]:l.i.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}};t.Z=(0,s.I$)("Popover",e=>{let{colorBgElevated:t,colorText:n}=e,r=(0,u.IX)(e,{popoverBg:t,popoverColor:n});return[c(r),d(r),(0,o._y)(r,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:l,zIndexPopupBase:s,borderRadiusLG:u,marginXS:c,lineType:d,colorSplit:f,paddingSM:p}=e,h=n-r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},(0,a.w)(e)),(0,i.wZ)({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:c,titlePadding:l?`${h/2}px ${o}px ${h/2-t}px`:0,titleBorderBottom:l?`${t}px ${d} ${f}`:"none",innerContentPadding:l?`${p}px ${o}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},98910:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(38786),o=n(43359),i=n.n(o),a=n(89318),l=n(46709),s=e=>{let{prefixCls:t,className:n,style:o,size:a,shape:l}=e,s=i()({[`${t}-lg`]:"large"===a,[`${t}-sm`]:"small"===a}),u=i()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),c=r.useMemo(()=>"number"==typeof a?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return r.createElement("span",{className:i()(t,s,u,n),style:Object.assign(Object.assign({},c),o)})},u=n(53563),c=n(67167),d=n(65568);let f=new u.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),p=e=>({height:e,lineHeight:(0,u.bf)(e)}),h=e=>Object.assign({width:e},p(e)),m=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:f,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),g=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},p(e)),b=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},h(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},h(o)),[`${t}${t}-sm`]:Object.assign({},h(i))}},v=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},g(t,l)),[`${r}-lg`]:Object.assign({},g(o,l)),[`${r}-sm`]:Object.assign({},g(i,l))}},y=e=>Object.assign({width:e},p(e)),x=e=>{let{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},y(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},y(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},w=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},C=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},p(e)),k=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},C(r,l))},w(e,r,n)),{[`${n}-lg`]:Object.assign({},C(o,l))}),w(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},C(i,l))}),w(e,i,`${n}-sm`))},D=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:c,gradientFromColor:d,padding:f,marginSM:p,borderRadius:g,titleHeight:y,blockRadius:w,paragraphLiHeight:C,controlHeightXS:D,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},h(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},h(u)),[`${n}-sm`]:Object.assign({},h(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:y,background:d,borderRadius:w,[`+ ${o}`]:{marginBlockStart:c}},[o]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:d,borderRadius:w,"+ li":{marginBlockStart:D}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},k(e)),b(e)),v(e)),x(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
  8. ${r},
  9. ${o} > li,
  10. ${n},
  11. ${i},
  12. ${a},
  13. ${l}
  14. `]:Object.assign({},m(e))}}};var E=(0,c.I$)("Skeleton",e=>{let{componentCls:t,calc:n}=e;return[D((0,d.IX)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))]},e=>{let{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),S=n(54200);let $=(e,t)=>{let{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0};var O=e=>{let{prefixCls:t,className:n,style:o,rows:a}=e,l=(0,S.Z)(Array(a)).map((t,n)=>r.createElement("li",{key:n,style:{width:$(n,e)}}));return r.createElement("ul",{className:i()(t,n),style:o},l)},F=e=>{let{prefixCls:t,className:n,width:o,style:a}=e;return r.createElement("h3",{className:i()(t,n),style:Object.assign({width:o},a)})};function j(e){return e&&"object"==typeof e?e:{}}let A=e=>{let{prefixCls:t,loading:n,className:o,rootClassName:l,style:u,children:c,avatar:d=!1,title:f=!0,paragraph:p=!0,active:h,round:m}=e,{getPrefixCls:g,direction:b,skeleton:v}=r.useContext(a.E_),y=g("skeleton",t),[x,w,C]=E(y);if(n||!("loading"in e)){let e,t;let n=!!d,a=!!f,c=!!p;if(n){let t=Object.assign(Object.assign({prefixCls:`${y}-avatar`},a&&!c?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),j(d));e=r.createElement("div",{className:`${y}-header`},r.createElement(s,Object.assign({},t)))}if(a||c){let e,o;if(a){let t=Object.assign(Object.assign({prefixCls:`${y}-title`},!n&&c?{width:"38%"}:n&&c?{width:"50%"}:{}),j(f));e=r.createElement(F,Object.assign({},t))}if(c){let e=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},function(e,t){let n={};return e&&t||(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}(n,a)),j(p));o=r.createElement(O,Object.assign({},e))}t=r.createElement("div",{className:`${y}-content`},e,o)}let g=i()(y,{[`${y}-with-avatar`]:n,[`${y}-active`]:h,[`${y}-rtl`]:"rtl"===b,[`${y}-round`]:m},null==v?void 0:v.className,o,l,w,C);return x(r.createElement("div",{className:g,style:Object.assign(Object.assign({},null==v?void 0:v.style),u)},e,t))}return null!=c?c:null};A.Button=e=>{let{prefixCls:t,className:n,rootClassName:o,active:u,block:c=!1,size:d="default"}=e,{getPrefixCls:f}=r.useContext(a.E_),p=f("skeleton",t),[h,m,g]=E(p),b=(0,l.Z)(e,["prefixCls"]),v=i()(p,`${p}-element`,{[`${p}-active`]:u,[`${p}-block`]:c},n,o,m,g);return h(r.createElement("div",{className:v},r.createElement(s,Object.assign({prefixCls:`${p}-button`,size:d},b))))},A.Avatar=e=>{let{prefixCls:t,className:n,rootClassName:o,active:u,shape:c="circle",size:d="default"}=e,{getPrefixCls:f}=r.useContext(a.E_),p=f("skeleton",t),[h,m,g]=E(p),b=(0,l.Z)(e,["prefixCls","className"]),v=i()(p,`${p}-element`,{[`${p}-active`]:u},n,o,m,g);return h(r.createElement("div",{className:v},r.createElement(s,Object.assign({prefixCls:`${p}-avatar`,shape:c,size:d},b))))},A.Input=e=>{let{prefixCls:t,className:n,rootClassName:o,active:u,block:c,size:d="default"}=e,{getPrefixCls:f}=r.useContext(a.E_),p=f("skeleton",t),[h,m,g]=E(p),b=(0,l.Z)(e,["prefixCls"]),v=i()(p,`${p}-element`,{[`${p}-active`]:u,[`${p}-block`]:c},n,o,m,g);return h(r.createElement("div",{className:v},r.createElement(s,Object.assign({prefixCls:`${p}-input`,size:d},b))))},A.Image=e=>{let{prefixCls:t,className:n,rootClassName:o,style:l,active:s}=e,{getPrefixCls:u}=r.useContext(a.E_),c=u("skeleton",t),[d,f,p]=E(c),h=i()(c,`${c}-element`,{[`${c}-active`]:s},n,o,f,p);return d(r.createElement("div",{className:h},r.createElement("div",{className:i()(`${c}-image`,n),style:l},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},A.Node=e=>{let{prefixCls:t,className:n,rootClassName:o,style:l,active:s,children:u}=e,{getPrefixCls:c}=r.useContext(a.E_),d=c("skeleton",t),[f,p,h]=E(d),m=i()(d,`${d}-element`,{[`${d}-active`]:s},p,n,o,h);return f(r.createElement("div",{className:m},r.createElement("div",{className:i()(`${d}-image`,n),style:l},u)))};var I=A},36921:function(e,t,n){"use strict";n.d(t,{BR:function(){return p},ri:function(){return f}});var r=n(38786),o=n(43359),i=n.n(o),a=n(83892),l=n(89318),s=n(99870),u=n(57085),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let d=r.createContext(null),f=(e,t)=>{let n=r.useContext(d),o=r.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:o,isLastItem:a}=n,l="vertical"===r?"-vertical-":"-";return i()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},p=e=>{let{children:t}=e;return r.createElement(d.Provider,{value:null},t)},h=e=>{var{children:t}=e,n=c(e,["children"]);return r.createElement(d.Provider,{value:n},t)};t.ZP=e=>{let{getPrefixCls:t,direction:n}=r.useContext(l.E_),{size:o,direction:f,block:p,prefixCls:m,className:g,rootClassName:b,children:v}=e,y=c(e,["size","direction","block","prefixCls","className","rootClassName","children"]),x=(0,s.Z)(e=>null!=o?o:e),w=t("space-compact",m),[C,k]=(0,u.Z)(w),D=i()(w,k,{[`${w}-rtl`]:"rtl"===n,[`${w}-block`]:p,[`${w}-vertical`]:"vertical"===f},g,b),E=r.useContext(d),S=(0,a.Z)(v),$=r.useMemo(()=>S.map((e,t)=>{let n=(null==e?void 0:e.key)||`${w}-item-${t}`;return r.createElement(h,{key:n,compactSize:x,compactDirection:f,isFirstItem:0===t&&(!E||(null==E?void 0:E.isFirstItem)),isLastItem:t===S.length-1&&(!E||(null==E?void 0:E.isLastItem))},e)}),[o,S,E]);return 0===S.length?null:C(r.createElement("div",Object.assign({className:D},y),$))}},57085:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67167),o=n(65568),i=e=>{let{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};let a=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},l=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var s=(0,r.I$)("Space",e=>{let t=(0,o.IX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[a(t),l(t),i(t)]},()=>({}),{resetStyle:!1})},84333:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},function(e,t,n){let{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}(e,r,t)),function(e,t,n){let{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(n,r,t))}}n.d(t,{c:function(){return r}})},24713:function(e,t,n){"use strict";n.d(t,{_y:function(){return m}});var r=n(53563),o=n(12655);let i=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),u=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),c=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),f=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),p=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),h={zoom:{inKeyframes:i,outKeyframes:a},"zoom-big":{inKeyframes:l,outKeyframes:s},"zoom-big-fast":{inKeyframes:l,outKeyframes:s},"zoom-left":{inKeyframes:d,outKeyframes:f},"zoom-right":{inKeyframes:p,outKeyframes:new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:u,outKeyframes:c},"zoom-down":{inKeyframes:new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},m=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=h[t];return[(0,o.R)(r,i,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`
  15. ${r}-enter,
  16. ${r}-appear
  17. `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},16200:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l},qN:function(){return i},wZ:function(){return a}});var r=n(53563),o=n(17689);let i=8;function a(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?i:r}}function l(e,t,n){var i,a,l,s,u,c,d,f;let{componentCls:p,boxShadowPopoverArrow:h,arrowOffsetVertical:m,arrowOffsetHorizontal:g}=e,{arrowDistance:b=0,arrowPlacement:v={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[p]:Object.assign(Object.assign(Object.assign(Object.assign({[`${p}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,o.W)(e,t,h)),{"&:before":{background:t}})]},(i=!!v.top,a={[`&-placement-top > ${p}-arrow,&-placement-topLeft > ${p}-arrow,&-placement-topRight > ${p}-arrow`]:{bottom:b,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${p}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":g,[`> ${p}-arrow`]:{left:{_skip_check_:!0,value:g}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,r.bf)(g)})`,[`> ${p}-arrow`]:{right:{_skip_check_:!0,value:g}}}},i?a:{})),(l=!!v.bottom,s={[`&-placement-bottom > ${p}-arrow,&-placement-bottomLeft > ${p}-arrow,&-placement-bottomRight > ${p}-arrow`]:{top:b,transform:"translateY(-100%)"},[`&-placement-bottom > ${p}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":g,[`> ${p}-arrow`]:{left:{_skip_check_:!0,value:g}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,r.bf)(g)})`,[`> ${p}-arrow`]:{right:{_skip_check_:!0,value:g}}}},l?s:{})),(u=!!v.left,c={[`&-placement-left > ${p}-arrow,&-placement-leftTop > ${p}-arrow,&-placement-leftBottom > ${p}-arrow`]:{right:{_skip_check_:!0,value:b},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${p}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${p}-arrow`]:{top:m},[`&-placement-leftBottom > ${p}-arrow`]:{bottom:m}},u?c:{})),(d=!!v.right,f={[`&-placement-right > ${p}-arrow,&-placement-rightTop > ${p}-arrow,&-placement-rightBottom > ${p}-arrow`]:{left:{_skip_check_:!0,value:b},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${p}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${p}-arrow`]:{top:m},[`&-placement-rightBottom > ${p}-arrow`]:{bottom:m}},d?f:{}))}}},17689:function(e,t,n){"use strict";n.d(t,{W:function(){return i},w:function(){return o}});var r=n(53563);function o(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=1*r/Math.sqrt(2),a=o-r*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*n,s=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=r*(Math.sqrt(2)-1),c=`polygon(${u}px 100%, 50% ${u}px, ${2*o-u}px 100%, ${u}px 100%)`,d=`path('M 0 ${o} A ${r} ${r} 0 0 0 ${i} ${a} L ${l} ${s} A ${n} ${n} 0 0 1 ${2*o-l} ${s} L ${2*o-i} ${a} A ${r} ${r} 0 0 0 ${2*o-0} ${o} Z')`;return{arrowShadowWidth:o*Math.sqrt(2)+r*(Math.sqrt(2)-2),arrowPath:d,arrowPolygon:c}}let i=(e,t,n)=>{let{sizePopupArrow:o,arrowPolygon:i,arrowPath:a,arrowShadowWidth:l,borderRadiusXS:s,calc:u}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:u(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,r.bf)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},48810:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(53563),o=n(96392),i=n(86509),a=n(36551),l=n(56164),s=n(82256),u=n(80797),c=n(85935),d=n(36065),f=n(34711),p=n(56398);let h=(e,t)=>new p.C(e).setAlpha(t).toRgbString(),m=(e,t)=>new p.C(e).lighten(t).toHexString(),g=e=>{let t=(0,d.R_)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},b=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:h(r,.85),colorTextSecondary:h(r,.65),colorTextTertiary:h(r,.45),colorTextQuaternary:h(r,.25),colorFill:h(r,.18),colorFillSecondary:h(r,.12),colorFillTertiary:h(r,.08),colorFillQuaternary:h(r,.04),colorBgSolid:h(r,.95),colorBgSolidHover:h(r,1),colorBgSolidActive:h(r,.9),colorBgElevated:m(n,12),colorBgContainer:m(n,8),colorBgLayout:m(n,0),colorBgSpotlight:m(n,26),colorBgBlur:h(r,.04),colorBorder:m(n,26),colorBorderSecondary:m(n,19)}};var v={defaultSeed:s.u_.token,useToken:function(){let[e,t,n]=(0,l.ZP)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:o.Z,darkAlgorithm:(e,t)=>{let n=Object.keys(i.M).map(t=>{let n=(0,d.R_)(e[t],{theme:"dark"});return Array(10).fill(1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign({},null!=t?t:(0,o.Z)(e)),n),(0,f.Z)(e,{generateColorPalettes:g,generateNeutralColorPalettes:b}))},compactAlgorithm:(e,t)=>{let n=null!=t?t:(0,o.Z)(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,c.Z)(r)),{controlHeight:i}),(0,u.Z)(Object.assign(Object.assign({},n),{controlHeight:i})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?(0,r.jG)(e.algorithm):(0,r.jG)(o.Z),n=Object.assign(Object.assign({},i.Z),null==e?void 0:e.token);return(0,r.t2)(n,{override:null==e?void 0:e.token},t,a.Z)},defaultConfig:s.u_,_internalContext:s.Mj}},94868:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},39438:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(94868);function o(e,t){return r.i.reduce((n,r)=>{let o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}},21013:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(38786),o=n(43359),i=n.n(o),a=n(38824),l=n(86047),s=n(18980),u=n(40857),c=n(40377),d=n(84927),f=n(56396),p=n(9578),h=n(84039),m=n(89318),g=n(56164),b=n(53563),v=n(45157),y=n(24713),x=n(16200),w=n(17689),C=n(39438),k=n(65568),D=n(67167);let E=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:u,paddingSM:c,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,h=t(a).add(p).add(f).equal(),m=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:m,minHeight:s,padding:`${(0,b.bf)(e.calc(c).div(2).equal())} ${(0,b.bf)(d)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":{minWidth:h},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${n}-inner`]:{borderRadius:e.min(a,x.qN)}},[`${n}-content`]:{position:"relative"}}),(0,C.Z)(e,(e,t)=>{let{darkColor:r}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},(0,x.ZP)(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},S=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,x.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,w.w)((0,k.IX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var $=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,D.I$)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[E((0,k.IX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),(0,y._y)(e,"zoom-big-fast")]},S,{resetStyle:!1,injectStyle:t})(e)},O=n(88544);function F(e,t){let n=(0,O.o2)(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}var j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A=r.forwardRef((e,t)=>{var n,o;let{prefixCls:b,openClassName:v,getTooltipContainer:y,overlayClassName:x,color:w,overlayInnerStyle:C,children:k,afterOpenChange:D,afterVisibleChange:E,destroyTooltipOnHide:S,arrow:O=!0,title:A,overlay:I,builtinPlacements:T,arrowPointAtCenter:_=!1,autoAdjustOverflow:M=!0}=e,P=!!O,[,N]=(0,g.ZP)(),{getPopupContainer:Z,getPrefixCls:R,direction:B}=r.useContext(m.E_),z=(0,p.ln)("Tooltip"),L=r.useRef(null),H=()=>{var e;null===(e=L.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>{var e;return{forceAlign:H,forcePopupAlign:()=>{z.deprecated(!1,"forcePopupAlign","forceAlign"),H()},nativeElement:null===(e=L.current)||void 0===e?void 0:e.nativeElement}});let[W,V]=(0,l.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),U=!A&&!I&&0!==A,q=r.useMemo(()=>{var e,t;let n=_;return"object"==typeof O&&(n=null!==(t=null!==(e=O.pointAtCenter)&&void 0!==e?e:O.arrowPointAtCenter)&&void 0!==t?t:_),T||(0,d.Z)({arrowPointAtCenter:n,autoAdjustOverflow:M,arrowWidth:P?N.sizePopupArrow:0,borderRadius:N.borderRadius,offset:N.marginXXS,visibleFirst:!0})},[_,O,T,N]),G=r.useMemo(()=>0===A?A:I||A||"",[I,A]),X=r.createElement(s.Z,{space:!0},"function"==typeof G?G():G),{getPopupContainer:K,placement:Y="top",mouseEnterDelay:J=.1,mouseLeaveDelay:Q=.1,overlayStyle:ee,rootClassName:et}=e,en=j(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),er=R("tooltip",b),eo=R(),ei=e["data-popover-inject"],ea=W;"open"in e||"visible"in e||!U||(ea=!1);let el=r.isValidElement(k)&&!(0,f.M2)(k)?k:r.createElement("span",null,k),es=el.props,eu=es.className&&"string"!=typeof es.className?es.className:i()(es.className,v||`${er}-open`),[ec,ed,ef]=$(er,!ei),ep=F(er,w),eh=ep.arrowStyle,em=Object.assign(Object.assign({},C),ep.overlayStyle),eg=i()(x,{[`${er}-rtl`]:"rtl"===B},ep.className,et,ed,ef),[eb,ev]=(0,u.Cn)("Tooltip",en.zIndex),ey=r.createElement(a.Z,Object.assign({},en,{zIndex:eb,showArrow:P,placement:Y,mouseEnterDelay:J,mouseLeaveDelay:Q,prefixCls:er,overlayClassName:eg,overlayStyle:Object.assign(Object.assign({},eh),ee),getTooltipContainer:K||y||Z,ref:L,builtinPlacements:q,overlay:X,visible:ea,onVisibleChange:t=>{var n,r;V(!U&&t),U||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=D?D:E,overlayInnerStyle:em,arrowContent:r.createElement("span",{className:`${er}-arrow-content`}),motion:{motionName:(0,c.m)(eo,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!S}),ea?(0,f.Tm)(el,{className:eu}):el);return ec(r.createElement(h.Z.Provider,{value:ev},ey))});A._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:o="top",title:l,color:s,overlayInnerStyle:u}=e,{getPrefixCls:c}=r.useContext(m.E_),d=c("tooltip",t),[f,p,h]=$(d),g=F(d,s),b=g.arrowStyle,v=Object.assign(Object.assign({},u),g.overlayStyle),y=i()(p,h,d,`${d}-pure`,`${d}-placement-${o}`,n,g.className);return f(r.createElement("div",{className:y,style:b},r.createElement("div",{className:`${d}-arrow`}),r.createElement(a.G,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:v}),l)))};var I=A},11019:function(e,t,n){let r=n(66369),o={};for(let e of Object.keys(r))o[r[e]]=e;let i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=i,Object.keys(i))){if(!("channels"in i[t]))throw Error("missing channels property: "+t);if(!("labels"in i[t]))throw Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:e}),Object.defineProperty(i[t],"labels",{value:n})}i.rgb.hsl=function(e){let t;let n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.min(n,r,o),a=Math.max(n,r,o),l=a-i;a===i?t=0:n===a?t=(r-o)/l:r===a?t=2+(o-n)/l:o===a&&(t=4+(n-r)/l),(t=Math.min(60*t,360))<0&&(t+=360);let s=(i+a)/2;return[t,100*(a===i?0:s<=.5?l/(a+i):l/(2-a-i)),100*s]},i.rgb.hsv=function(e){let t,n,r,o,i;let a=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(a,l,s),c=u-Math.min(a,l,s),d=function(e){return(u-e)/6/c+.5};return 0===c?(o=0,i=0):(i=c/u,t=d(a),n=d(l),r=d(s),a===u?o=r-n:l===u?o=1/3+t-r:s===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*u]},i.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},i.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){let t;let n=o[e];if(n)return n;let i=1/0;for(let n of Object.keys(r)){let o=r[n],a=(e[0]-o[0])**2+(e[1]-o[1])**2+(e[2]-o[2])**2;a<i&&(i=a,t=n)}return t},i.keyword.rgb=function(e){return r[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)+.1805*(r=r>.04045?((r+.055)/1.055)**2.4:r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,[116*(r=r>.008856?r**(1/3):7.787*r+16/116)-16,500*((n=n>.008856?n**(1/3):7.787*n+16/116)-r),200*(r-(o=o>.008856?o**(1/3):7.787*o+16/116))]},i.hsl.rgb=function(e){let t,n,r;let o=e[0]/360,i=e[1]/100,a=e[2]/100;if(0===i)return[r=255*a,r,r];t=a<.5?a*(1+i):a+i-a*i;let l=2*a-t,s=[0,0,0];for(let e=0;e<3;e++)(n=o+-(1/3*(e-1)))<0&&n++,n>1&&n--,r=6*n<1?l+(t-l)*6*n:2*n<1?t:3*n<2?l+(t-l)*(2/3-n)*6:l,s[e]=255*r;return s},i.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;let a=(r+n)/2;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*a]},i.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,o=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,Math.floor(t)%6){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},i.hsv.hsl=function(e){let t,n;let r=e[0],o=e[1]/100,i=e[2]/100,a=Math.max(i,.01);n=(2-o)*i;let l=(2-o)*a;return[r,100*(o*a/(l<=1?l:2-l)||0),100*(n/=2)]},i.hwb.rgb=function(e){let t,n,r,o;let i=e[0]/360,a=e[1]/100,l=e[2]/100,s=a+l;s>1&&(a/=s,l/=s);let u=Math.floor(6*i),c=1-l;t=6*i-u,(1&u)!=0&&(t=1-t);let d=a+t*(c-a);switch(u){default:case 6:case 0:n=c,r=d,o=a;break;case 1:n=d,r=c,o=a;break;case 2:n=a,r=c,o=d;break;case 3:n=a,r=d,o=c;break;case 4:n=d,r=a,o=c;break;case 5:n=c,r=a,o=d}return[255*n,255*r,255*o]},i.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},i.xyz.rgb=function(e){let t,n,r;let o=e[0]/100,i=e[1]/100,a=e[2]/100;return t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,n=(n=-.9689*o+1.8758*i+.0415*a)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=(r=.0557*o+-.204*i+1.057*a)>.0031308?1.055*r**(1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,[116*(n=n>.008856?n**(1/3):7.787*n+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-n),200*(n-(r=r>.008856?r**(1/3):7.787*r+16/116))]},i.lab.xyz=function(e){let t,n,r;let o=e[0],i=e[1],a=e[2];t=i/500+(n=(o+16)/116),r=n-a/200;let l=n**3,s=t**3,u=r**3;return n=(l>.008856?l:(n-16/116)/7.787)*100,[t=(s>.008856?s:(t-16/116)/7.787)*95.047,n,r=(u>.008856?u:(r-16/116)/7.787)*108.883]},i.lab.lch=function(e){let t;let n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},i.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){let[n,r,o]=e,a=null===t?i.rgb.hsv(e)[2]:t;if(0===(a=Math.round(a/50)))return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(l+=60),l},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let n=(~~(e>50)+1)*.5;return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));let r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;return[(a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a)/6%1*360,100*a,100*(a<1?i/(1-a):0)]},i.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},i.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];let o=[0,0,0],i=t%1*6,a=i%1,l=1-a,s=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return s=(1-n)*r,[(n*o[0]+s)*255,(n*o[1]+s)*255,(n*o[2]+s)*255]},i.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},85982:function(e,t,n){let r=n(11019),o=n(10962),i={};Object.keys(r).forEach(e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});let t=o(e);Object.keys(t).forEach(n=>{let r=t[n];i[e][n]=function(e){let t=function(...t){let n=t[0];if(null==n)return n;n.length>1&&(t=n);let r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),i[e][n].raw=function(e){let t=function(...t){let n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=i},10962:function(e,t,n){let r=n(11019);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){let e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,i=0;i<r;i++){let r=o[i],a=t[r];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,i=0;i<e;i++){let e=o[i];null!==t[e].parent&&(n[e]=function(e,t){let n=[t[e].parent,e],o=r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),o=function(e,t){return function(n){return t(e(n))}}(r[t[i].parent][i],o),i=t[i].parent;return o.conversion=n,o}(e,t))}return n}},66369:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},56862:function(e,t,n){var r=n(66369),o=n(90320),i=Object.hasOwnProperty,a=Object.create(null);for(var l in r)i.call(r,l)&&(a[r[l]]=l);var s=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=0,o=t[2],t=t[1];n<3;n++){var l=2*n;a[n]=parseInt(t.slice(l,l+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=0,o=(t=t[1])[3];n<3;n++)a[n]=parseInt(t[n]+t[n],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:i.call(r,t[1])?((a=r[t[1]])[3]=1,a):null;for(n=0;n<3;n++)a[n]=u(a[n],0,255);return a[3]=u(a[3],0,1),a},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=o(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},s.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return a[e.slice(0,3)]}},69683:function(e,t,n){let r=n(56862),o=n(85982),i=["keyword","gray","hex"],a={};for(let e of Object.keys(o))a[[...o[e].labels].sort().join("")]=e;let l={};function s(e,t){let n,u;if(!(this instanceof s))return new s(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw Error("Unknown model: "+t);if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof s)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){let t=r.get(e);if(null===t)throw Error("Unable to parse color from string: "+e);this.model=t.model,u=o[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=o[this.model].channels;let n=Array.prototype.slice.call(e,0,u);this.color=d(n,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);let r=t.sort().join("");if(!(r in a))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];let{labels:i}=o[this.model],l=[];for(n=0;n<i.length;n++)l.push(e[i[n]]);this.color=d(l)}if(l[this.model])for(n=0,u=o[this.model].channels;n<u;n++){let e=l[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}for(let e of(s.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){let t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=o[this.model],{labels:n}=o[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){var t;return e=Math.max(e||0,0),new s([...this.color.map((t=e,function(e){return Number(e.toFixed(t))})),this.valpha],this.model)},alpha(e){return void 0!==e?new s([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,c(255)),green:u("rgb",1,c(255)),blue:u("rgb",2,c(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:u("hsl",1,c(100)),lightness:u("hsl",2,c(100)),saturationv:u("hsv",1,c(100)),value:u("hsv",2,c(100)),chroma:u("hcg",1,c(100)),gray:u("hcg",2,c(100)),white:u("hwb",1,c(100)),wblack:u("hwb",2,c(100)),cyan:u("cmyk",0,c(100)),magenta:u("cmyk",1,c(100)),yellow:u("cmyk",2,c(100)),black:u("cmyk",3,c(100)),x:u("xyz",0,c(95.047)),y:u("xyz",1,c(100)),z:u("xyz",2,c(108.833)),l:u("lab",0,c(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new s(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new s(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new s(e);let t=this.rgb().round().color,n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){let e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return s.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),l=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,u=1-l;return s.rgb(l*n.red()+u*r.red(),l*n.green()+u*r.green(),l*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o))){if(i.includes(e))continue;let{channels:t}=o[e];s.prototype[e]=function(...t){var n;return this.model===e?new s(this):t.length>0?new s(t,e):new s([...Array.isArray(n=o[this.model][e].raw(this.color))?n:[n],this.valpha],e)},s[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=d(n,t)),new s(r,e)}}function u(e,t,n){for(let r of e=Array.isArray(e)?e:[e])(l[r]||(l[r]=[]))[t]=n;return e=e[0],function(r){let o;return void 0!==r?(n&&(r=n(r)),(o=this[e]()).color[t]=r):(o=this[e]().color[t],n&&(o=n(o))),o}}function c(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=s},37077:function(e,t,n){"use strict";var r=n(57966),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,u,c,d,f=!1;t||(t={}),a=t.debug||!1;try{if(s=r(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){a&&console.error("unable to copy using execCommand: ",r),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){a&&console.error("unable to copy using clipboardData: ",r),a&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,i),window.prompt(l,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),s()}return f}},34744:function(e){var t,n,r,o,i,a,l,s,u,c,d,f,p,h,m,g,b,v,y,x,w,C;e.exports=(t="millisecond",n="second",r="minute",o="hour",i="week",a="month",l="quarter",s="year",u="date",c="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},(m={})[h="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}},g="$isDayjsObject",b=function(e){return e instanceof w||!(!e||!e[g])},v=function e(t,n,r){var o;if(!t)return h;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;m[l]=t,o=l}return!r&&o&&(h=o),o||!r&&h},y=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},(x={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,a),i=n-o<0,l=t.clone().add(r+(i?-1:1),a);return+(-(r+(n-o)/(i?o-l:l-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:a,y:s,w:i,d:"day",D:u,h:o,m:r,s:n,ms:t,Q:l})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=v,x.i=b,x.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},C=(w=function(){function e(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var p=e.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return y(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<y(e)},p.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,t){var l=this,c=!!x.u(t)||t,d=x.p(e),f=function(e,t){var n=x.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?n:n.endOf("day")},p=function(e,t){return x.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},h=this.$W,m=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case s:return c?f(1,0):f(31,11);case a:return c?f(1,m):f(0,m+1);case i:var v=this.$locale().weekStart||0,y=(h<v?h+7:h)-v;return f(c?g-y:g+(6-y),m);case"day":case u:return p(b+"Hours",0);case o:return p(b+"Minutes",1);case r:return p(b+"Seconds",2);case n:return p(b+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(e,i){var l,c=x.p(e),d="set"+(this.$u?"UTC":""),f=((l={}).day=d+"Date",l[u]=d+"Date",l[a]=d+"Month",l[s]=d+"FullYear",l[o]=d+"Hours",l[r]=d+"Minutes",l[n]=d+"Seconds",l[t]=d+"Milliseconds",l)[c],p="day"===c?this.$D+(i-this.$W):i;if(c===a||c===s){var h=this.clone().set(u,1);h.$d[f](p),h.init(),this.$d=h.set(u,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[x.p(e)]()},p.add=function(e,t){var l,u=this;e=Number(e);var c=x.p(t),d=function(t){var n=y(u);return x.w(n.date(n.date()+Math.round(t*e)),u)};if(c===a)return this.set(a,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return d(1);if(c===i)return d(7);var f=((l={})[r]=6e4,l[o]=36e5,l[n]=1e3,l)[c]||1,p=this.$d.getTime()+e*f;return x.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=x.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,u=n.months,d=n.meridiem,p=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},h=function(e){return x.s(i%12||12,e,"0")},m=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return l+1;case"MM":return x.s(l+1,2,"0");case"MMM":return p(n.monthsShort,l,u,3);case"MMMM":return p(u,l);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,s,2);case"ddd":return p(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return x.s(a,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,t,u){var c,d=this,f=x.p(t),p=y(e),h=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return x.m(d,p)};switch(f){case s:c=g()/12;break;case a:c=g();break;case l:c=g()/3;break;case i:c=(m-h)/6048e5;break;case"day":c=(m-h)/864e5;break;case o:c=m/36e5;break;case r:c=m/6e4;break;case n:c=m/1e3;break;default:c=m}return u?c:x.a(c)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return m[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},e}()).prototype,y.prototype=C,[["$ms",t],["$s",n],["$m",r],["$H",o],["$W","day"],["$M",a],["$y",s],["$D",u]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,w,y),e.$i=!0),y},y.locale=v,y.isDayjs=b,y.unix=function(e){return y(1e3*e)},y.en=m[h],y.Ls=m,y.p={},y)},16792:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=s(d,n),d!==(o=s(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},95087:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var r,o,i,a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},15080:function(e,t,n){"use strict";var r=n(1425),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<a.length;++g){var b=a[g];if(!i[b]&&!(r&&r[b])&&!(m&&m[b])&&!(l&&l[b])){var v=f(n,b);try{u(t,b,v)}catch(e){}}}}return t}},60351:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,d=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:c,column:d};return function(t){return t.position=new h(e),b(r),t}}function h(e){this.start=e,this.end={line:c,column:d},this.source=s.source}h.prototype.content=e;var m=[];function g(t){var n=Error(s.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=d,n.source=e,s.silent)m.push(n);else throw n}function b(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return b(r),function(){var e,n=[];for(v(n);e=function(){var e=p(),n=b(o);if(n){if(y(),!b(i))return g("property missing ':'");var r=b(a),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return b(l),s}}();)!1!==e&&(n.push(e),v(n));return n}()}},15068:function(e){e.exports=function(e){return!!e&&"string"!=typeof e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},17866:function(e){/*!
  18. * Determine if an object is a Buffer
  19. *
  20. * @author Feross Aboukhadijeh <https://feross.org>
  21. * @license MIT
  22. */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},80463:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(55292)},28281:function(e,t,n){"use strict";let r,o,i,a,l,s;n.d(t,{j:function(){return C3}});var u,c,d,f,p,h,m,g,b,v,y,x,w,C,k,D,E,S,$,O,F,j,A,I,T,_,M,P,N,Z,R,B,z,L,H,W,V,U,q,G,X,K,Y,J,Q,ee,et,en,er,eo,ei,ea,el,es,eu,ec,ed,ef,ep,eh,em,eg,eb,ev,ey,ex,ew,eC,ek,eD,eE,eS,e$,eO,eF,ej,eA,eI,eT,e_,eM,eP,eN,eZ,eR,eB,ez,eL,eH,eW,eV,eU,eq,eG,eX,eK,eY,eJ,eQ,e0,e1,e2,e5,e3,e6,e4,e8={};n.r(e8),n.d(e8,{attentionMarkers:function(){return lI},contentInitial:function(){return lS},disable:function(){return lT},document:function(){return lE},flow:function(){return lO},flowInitial:function(){return l$},insideSpan:function(){return lA},string:function(){return lF},text:function(){return lj}});var e7={};n.r(e7),n.d(e7,{boolean:function(){return sd},booleanish:function(){return sf},commaOrSpaceSeparated:function(){return sb},commaSeparated:function(){return sg},number:function(){return sh},overloadedBoolean:function(){return sp},spaceSeparated:function(){return sm}});var e9=n(88532),te=n(15450),tt=n(38786),tn=n(43359),tr=n.n(tn),to=n(9578),ti=n(89318),ta=n(48377),tl=n(63887),ts=n(25568),tu=n(56471),tc=n(67167),td=(0,tc.I$)("App",e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({}));let tf=e=>{let{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:l,component:s="div"}=e,{direction:u,getPrefixCls:c}=(0,tt.useContext)(ti.E_),d=c("app",t),[f,p,h]=td(d),m=tr()(p,d,r,o,h,{[`${d}-rtl`]:"rtl"===u}),g=(0,tt.useContext)(tu.J),b=tt.useMemo(()=>({message:Object.assign(Object.assign({},g.message),i),notification:Object.assign(Object.assign({},g.notification),a)}),[i,a,g.message,g.notification]),[v,y]=(0,ta.Z)(b.message),[x,w]=(0,ts.Z)(b.notification),[C,k]=(0,tl.Z)(),D=tt.useMemo(()=>({message:v,notification:x,modal:C}),[v,x,C]);(0,to.ln)("App")(!(h&&!1===s),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let E=!1===s?tt.Fragment:s;return f(tt.createElement(tu.Z.Provider,{value:D},tt.createElement(tu.J.Provider,{value:b},tt.createElement(E,Object.assign({},!1===s?void 0:{className:m,style:l}),k,y,w,n))))};tf.useApp=()=>tt.useContext(tu.Z);var tp=n(7871),th=n(11984);function tm(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var tg=n(60304),tb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let tv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ty=(e,t)=>{let n=(0,tt.forwardRef)(({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:a,...l},s)=>(0,tt.createElement)("svg",{ref:s,...tb,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${tv(e)}`,...l},[...t.map(([e,t])=>(0,tt.createElement)(e,t)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},tx=ty("ListEnd",[["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M10 18H3",key:"13769t"}],["path",{d:"M21 6v10a2 2 0 0 1-2 2h-5",key:"ilrcs8"}],["path",{d:"m16 16-2 2 2 2",key:"kkc6pm"}]]);var tw=n(55448),tC=(0,tw.kc)(function(e){var t=e.css,n=(0,tw.F4)(k||(k=tm(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(D||(D=tm(["\n animation: "," 1s linear infinite;\n "])),n)}}),tk=n(82267),tD=["icon","size","color","fill","className","spin"],tE=function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}},tS=(0,tt.memo)(function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,i=e.className,a=e.spin,l=(0,te.Z)(e,tD),s=tC(),u=s.styles,c=s.cx,d=(0,tt.useMemo)(function(){return tE(n)},[n]),f=d.fontSize,p=d.strokeWidth;return(0,tk.jsx)("span",(0,e9.Z)((0,e9.Z)({className:c("anticon",a&&u.spin,i),role:"img"},l),{},{children:(0,tk.jsx)(t,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:p,width:f})}))}),t$=(0,tw.kc)(function(e,t){var n=e.token,r=e.css,o=e.stylish;return(0,e.cx)(null==o?void 0:o.blur,r(E||(E=tm(["\n pointer-events: ",";\n\n transform: translateY(",");\n\n padding-inline: 12px !important;\n\n opacity: ",";\n background: ",";\n border-color: "," !important;\n border-radius: 16px !important;\n backdrop-filter: blur(16px);\n "])),t?"all":"none",t?0:"16px",t?1:0,n.colorFillSecondary,n.colorFillTertiary))}),tO=function(e){var t=e||{},n=t.visibilityHeight,r=void 0===n?240:n,o=t.target,i=t.onClick,a=t.style,l=t.className,s=t.text,u=t.render,c=t.onScroll,d=t.alwaysShow,f=void 0!==d&&d,p=(0,tt.useState)(f),h=(0,th.Z)(p,2),m=h[0],g=h[1],b=t$(m),v=b.styles,y=b.cx,x=(0,tt.useRef)(null),w=(0,tt.useState)(!1),C=(0,th.Z)(w,2),k=C[0],D=C[1];(0,tt.useEffect)(function(){D(!0)},[]);var E=(0,tt.useMemo)(function(){return o.current?o.current:document.body},[k]),S=(null==E?void 0:E.scrollHeight)||0,$=(null==E?void 0:E.clientHeight)||0,O=(0,tt.useState)({top:0,left:0}),F=(0,th.Z)(O,2),j=F[0],A=F[1],I=(0,tt.useRef)(null);(0,tt.useEffect)(function(){if(void 0!==E){var e,t=function(e){null==c||c(e),I.current=window.setTimeout(function(){f||g((null==E?void 0:E.scrollTop)+$+r<S),A({top:null==E?void 0:E.scrollTop,left:null==E?void 0:E.scrollLeft})},60)};return null==E||null===(e=E.addEventListener)||void 0===e||e.call(E,"scroll",t,{passive:!0}),function(){var e;I.current&&clearTimeout(I.current),null==E||null===(e=E.removeEventListener)||void 0===e||e.call(E,"scroll",t)}}},[E]),(0,tt.useEffect)(function(){f||g((null==j?void 0:j.top)+$+r<S)},[S,j,r,E]);var T=function(e){var t;null==o||null===(t=o.current)||void 0===t||t.scrollTo({behavior:"smooth",left:0,top:S}),null==i||i(e)};(0,tt.useEffect)(function(){setTimeout(function(){var e;null==o||null===(e=o.current)||void 0===e||e.scrollTo({behavior:"smooth",left:0,top:S})},16)},[]);var _=(0,tk.jsx)(tg.ZP,{className:y(v,l),icon:(0,tk.jsx)(tS,{icon:tx}),onClick:T,ref:x,size:"small",style:(0,e9.Z)({bottom:18,position:"absolute",right:16},a),children:s||"Back to bottom"});return u?u(_,T,e):_},tF=n(57754),tj=n(88129),tA=function(e){return e||"layoutkit"},tI=function(e,t){if(t)return"row";switch(e){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},tT=function(e){if(e)return["space-between","space-around","space-evenly"].includes(e)},t_=function(e){return"number"==typeof e?"".concat(e,"px"):e},tM=n(58976),tP=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children","wrap"];function tN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tN(Object(n),!0).forEach(function(t){(0,tj.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tR=(0,tt.forwardRef)(function(e,t){var n=e.visible,r=e.flex,o=e.gap,i=e.direction,a=e.horizontal,l=e.align,s=e.justify,u=e.distribution,c=e.height,d=e.width,f=e.padding,p=e.paddingInline,h=e.paddingBlock,m=e.as,g=e.internalClassName,b=e.className,v=e.children,y=e.wrap,x=(0,te.Z)(e,tP),w=s||u,C=(0,tt.useMemo)(function(){return"row"===tI(i,a)&&!d&&tT(w)?"100%":t_(d)},[i,a,w,d]);return(0,tk.jsx)(void 0===m?"div":m,tZ(tZ({ref:t},x),{},{className:(0,tM.cx)(g,(0,tM.iv)(S||(S=tm(["\n // 是否显示\n display: ",";\n\n flex: ",";\n\n flex-direction: ",";\n flex-wrap: ",";\n\n justify-content: ",";\n align-items: ",";\n\n width: ",";\n height: ",";\n\n padding: ",";\n\n padding-inline: ",";\n padding-block: ",";\n\n gap: ",";\n "])),!1===n?"none":"flex",r,tI(i,a),y,w,l,C,t_(c),t_(f),t_(p),t_(h),t_(o)),b),children:v}))});tR.displayName="FlexBasic";var tB=["className","prefixCls","children"];function tz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tz(Object(n),!0).forEach(function(t){(0,tj.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tH=(0,tt.forwardRef)(function(e,t){var n=e.className,r=e.prefixCls,o=e.children,i=(0,te.Z)(e,tB);return(0,tk.jsx)(tR,tL(tL({ref:t},i),{},{internalClassName:"".concat(tA(r),"-flexbox"),className:n,children:o}))});tH.displayName="Flexbox";var tW=n(68781),tV=n(37077),tU=n.n(tV),tq=n(21239),tG=n(59027),tX=n(56164);let tK=["xxl","xl","lg","md","sm","xs"],tY=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),tJ=e=>{let t=[].concat(tK).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(e[i]<=e[a]))throw Error(`${i}<=${a} fails : !(${e[i]}<=${e[a]})`);if(r<t.length-1){let n=`screen${o}Max`;if(!(e[a]<=e[n]))throw Error(`${a}<=${n} fails : !(${e[a]}<=${e[n]})`);let i=t[r+1].toUpperCase(),l=`screen${i}Min`;if(!(e[n]<=e[l]))throw Error(`${n}<=${l} fails : !(${e[n]}<=${e[l]})`)}}),e};var tQ=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,tt.useRef)({}),n=function(){let[,e]=tt.useReducer(e=>e+1,0);return e}(),r=function(){let[,e]=(0,tX.ZP)(),t=tY(tJ(e));return tt.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},responsiveMap:t}},[e])}();return(0,tG.Z)(()=>{let o=r.subscribe(r=>{t.current=r,e&&n()});return()=>r.unsubscribe(o)},[]),t.current},t0={useBreakpoint:function(){return tQ()}},t1=function(){var e=t0.useBreakpoint();return(0,tt.useMemo)(function(){return(0,tq.f)(e)},[e])},t2=(0,tt.memo)(function(e){var t=e.actions,n=e.className;return(0,tk.jsx)(tH,{align:"flex-start",className:n,role:"menubar",children:t})}),t5=n(21710),t3=n(81966),t6=n(99870);let t4=tt.createContext({});var t8=n(53563),t7=n(45157),t9=n(65568);let ne=e=>{let{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:u,textFontSizeLG:c,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:h,lineWidth:m,lineType:g}=e,b=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,t7.Wf)(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${(0,t8.bf)(m)} ${g} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,u,f)),{"&-lg":Object.assign({},b(l,c,p)),"&-sm":Object.assign({},b(s,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},nt=e=>{let{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}};var nn=(0,tc.I$)("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,t9.IX)(e,{avatarBg:n,avatarColor:t});return[ne(r),nt(r)]},e=>{let{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:u,groupOverlapping:-s,groupBorderColor:c}}),nr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let no=tt.forwardRef((e,t)=>{let n;let[r,o]=tt.useState(1),[i,a]=tt.useState(!1),[l,s]=tt.useState(!0),u=tt.useRef(null),c=tt.useRef(null),d=(0,t5.sQ)(t,u),{getPrefixCls:f,avatar:p}=tt.useContext(ti.E_),h=tt.useContext(t4),m=()=>{if(!c.current||!u.current)return;let t=c.current.offsetWidth,n=u.current.offsetWidth;if(0!==t&&0!==n){let{gap:r=4}=e;2*r<n&&o(n-2*r<t?(n-2*r)/t:1)}};tt.useEffect(()=>{a(!0)},[]),tt.useEffect(()=>{s(!0),o(1)},[e.src]),tt.useEffect(m,[e.gap]);let{prefixCls:g,shape:b,size:v,src:y,srcSet:x,icon:w,className:C,rootClassName:k,alt:D,draggable:E,children:S,crossOrigin:$}=e,O=nr(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),F=(0,t6.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=v?v:null==h?void 0:h.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"}),j=tQ(Object.keys("object"==typeof F&&F||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e))),A=tt.useMemo(()=>{if("object"!=typeof F)return{};let e=F[tK.find(e=>j[e])];return e?{width:e,height:e,fontSize:e&&(w||S)?e/2:18}:{}},[j,F]),I=f("avatar",g),T=(0,t3.Z)(I),[_,M,P]=nn(I,T),N=tr()({[`${I}-lg`]:"large"===F,[`${I}-sm`]:"small"===F}),Z=tt.isValidElement(y),R=b||(null==h?void 0:h.shape)||"circle",B=tr()(I,N,null==p?void 0:p.className,`${I}-${R}`,{[`${I}-image`]:Z||y&&l,[`${I}-icon`]:!!w},P,T,C,k,M),z="number"==typeof F?{width:F,height:F,fontSize:w?F/2:18}:{};if("string"==typeof y&&l)n=tt.createElement("img",{src:y,draggable:E,srcSet:x,onError:()=>{let{onError:t}=e;!1!==(null==t?void 0:t())&&s(!1)},alt:D,crossOrigin:$});else if(Z)n=y;else if(w)n=w;else if(i||1!==r){let e=`scale(${r})`;n=tt.createElement(tF.Z,{onResize:m},tt.createElement("span",{className:`${I}-string`,ref:c,style:Object.assign({},{msTransform:e,WebkitTransform:e,transform:e})},S))}else n=tt.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:c},S);return delete O.onError,delete O.gap,_(tt.createElement("span",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign(Object.assign({},z),A),null==p?void 0:p.style),O.style),className:B,ref:d}),n))});var ni=n(83892),na=n(56396),nl=n(45697);let ns=e=>{let{size:t,shape:n}=tt.useContext(t4),r=tt.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return tt.createElement(t4.Provider,{value:r},e.children)};no.Group=e=>{var t,n,r;let{getPrefixCls:o,direction:i}=tt.useContext(ti.E_),{prefixCls:a,className:l,rootClassName:s,style:u,maxCount:c,maxStyle:d,size:f,shape:p,maxPopoverPlacement:h,maxPopoverTrigger:m,children:g,max:b}=e,v=o("avatar",a),y=`${v}-group`,x=(0,t3.Z)(v),[w,C,k]=nn(v,x),D=tr()(y,{[`${y}-rtl`]:"rtl"===i},k,x,l,s,C),E=(0,ni.Z)(g).map((e,t)=>(0,na.Tm)(e,{key:`avatar-key-${t}`})),S=(null==b?void 0:b.count)||c,$=E.length;if(S&&S<$){let e=E.slice(0,S),o=E.slice(S,$),i=(null==b?void 0:b.style)||d,a=(null===(t=null==b?void 0:b.popover)||void 0===t?void 0:t.trigger)||m||"hover",l=(null===(n=null==b?void 0:b.popover)||void 0===n?void 0:n.placement)||h||"top",s=Object.assign(Object.assign({content:o},null==b?void 0:b.popover),{overlayClassName:tr()(`${y}-popover`,null===(r=null==b?void 0:b.popover)||void 0===r?void 0:r.overlayClassName),placement:l,trigger:a});return e.push(tt.createElement(nl.Z,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},s),tt.createElement(no,{style:i},`+${$-S}`))),w(tt.createElement(ns,{shape:p,size:f},tt.createElement("div",{className:D,style:u},e)))}return w(tt.createElement(ns,{shape:p,size:f},tt.createElement("div",{className:D,style:u},E)))};var nu=(0,tw.kc)(function(e){var t=e.css,n=e.token;return{container:t($||($=tm(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "]))),loading:t(O||(O=tm(["\n position: absolute;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n color: ",";\n "])),n.colorText)}}),nc=(0,tt.memo)(function(e){var t=e.emoji,n=e.className,r=e.style,o=e.size,i=void 0===o?40:o,a=nu(),l=a.cx,s=a.styles;return(0,tk.jsx)("div",{className:l(s.container,n),style:(0,e9.Z)({fontSize:.9*i,height:i,width:i},r),children:t})}),nd=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,nf=function(e){var t,n=nd();return null===(t=e.match(n))||void 0===t?void 0:t[0]},np=n(4943),nh=n(85865),nm=n(8563),ng=function(e){function t(t){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this,(0,nh.Z)(n)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,nm.Z)(t,e),t}((0,n(26612).Z)(Error));function nb(e,t){return e.substr(-t.length)===t}var nv=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function ny(e){return"string"!=typeof e?e:e.match(nv)?parseFloat(e):e}var nx=function(e){return function(t,n){void 0===n&&(n="16px");var r=t,o=n;if("string"==typeof t){if(!nb(t,"px"))throw new ng(69,e,t);r=ny(t)}if("string"==typeof n){if(!nb(n,"px"))throw new ng(70,e,n);o=ny(n)}if("string"==typeof r)throw new ng(71,t,e);if("string"==typeof o)throw new ng(72,n,e);return""+r/o+e}};function nw(e){return Math.round(255*e)}function nC(e,t,n){return nw(e)+","+nw(t)+","+nw(n)}function nk(e,t,n,r){if(void 0===r&&(r=nC),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=n-i/2;return r(l+c,s+c,u+c)}nx("em"),nx("rem");var nD={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},nE=/^#[a-fA-F0-9]{6}$/,nS=/^#[a-fA-F0-9]{8}$/,n$=/^#[a-fA-F0-9]{3}$/,nO=/^#[a-fA-F0-9]{4}$/,nF=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,nj=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,nA=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,nI=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function nT(e){if("string"!=typeof e)throw new ng(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return nD[t]?"#"+nD[t]:e}(e);if(t.match(nE))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(nS)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(n$))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(nO)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=nF.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=nj.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=nA.exec(t);if(a){var l="rgb("+nk(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=nF.exec(l);if(!s)throw new ng(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var u=nI.exec(t.substring(0,50));if(u){var c="rgb("+nk(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=nF.exec(c);if(!d)throw new ng(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new ng(5)}function n_(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),l=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s=i-a,u=l>.5?s/(2-i-a):s/(i+a);switch(i){case n:t=(r-o)/s+(r<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return(t*=60,void 0!==e.alpha)?{hue:t,saturation:u,lightness:l,alpha:e.alpha}:{hue:t,saturation:u,lightness:l}}(nT(e))}var nM=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function nP(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function nN(e){return nP(Math.round(255*e))}function nZ(e,t,n){return nM("#"+nN(e)+nN(t)+nN(n))}function nR(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return nM("#"+nP(e)+nP(t)+nP(n));if("object"==typeof e&&void 0===t&&void 0===n)return nM("#"+nP(e.red)+nP(e.green)+nP(e.blue));throw new ng(6)}function nB(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=nT(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?nR(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?nR(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ng(7)}function nz(e){if("object"!=typeof e)throw new ng(8);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha)return nB(e);if("number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha))return nR(e);if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha)return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?nk(e,t,n,nZ):"rgba("+nk(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?nk(e.hue,e.saturation,e.lightness,nZ):"rgba("+nk(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ng(2)}(e);if("number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return nk(e,t,n,nZ);if("object"==typeof e&&void 0===t&&void 0===n)return nk(e.hue,e.saturation,e.lightness,nZ);throw new ng(1)}(e);throw new ng(8)}function nL(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function nH(e,t,n){return Math.max(e,Math.min(t,n))}function nW(e){if("transparent"===e)return 0;var t=nT(e),n=Object.keys(t).map(function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)});return parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}nL(function(e,t){if("transparent"===t)return t;var n=n_(t);return nz((0,np.Z)({},n,{hue:n.hue+parseFloat(e)}))}),nL(function(e,t){if("transparent"===t)return t;var n=n_(t);return nz((0,np.Z)({},n,{lightness:nH(0,1,n.lightness-parseFloat(e))}))}),nL(function(e,t){if("transparent"===t)return t;var n=n_(t);return nz((0,np.Z)({},n,{saturation:nH(0,1,n.saturation-parseFloat(e))}))}),nL(function(e,t){if("transparent"===t)return t;var n=n_(t);return nz((0,np.Z)({},n,{lightness:nH(0,1,n.lightness+parseFloat(e))}))});var nV=nL(function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=nT(t),o=(0,np.Z)({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=nT(n),a=(0,np.Z)({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),l=o.alpha-a.alpha,s=2*parseFloat(e)-1,u=((s*l==-1?s:s+l)/(1+s*l)+1)/2,c=1-u;return nB({red:Math.floor(o.red*u+a.red*c),green:Math.floor(o.green*u+a.green*c),blue:Math.floor(o.blue*u+a.blue*c),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})});nL(function(e,t){if("transparent"===t)return t;var n=nT(t),r="number"==typeof n.alpha?n.alpha:1;return nB((0,np.Z)({},n,{alpha:nH(0,1,(100*r+100*parseFloat(e))/100)}))});var nU="#000",nq="#fff";nL(function(e,t){if("transparent"===t)return t;var n=n_(t);return nz((0,np.Z)({},n,{saturation:nH(0,1,n.saturation+parseFloat(e))}))}),nL(function(e,t){return"transparent"===t?t:nz((0,np.Z)({},n_(t),{hue:parseFloat(e)}))}),nL(function(e,t){return"transparent"===t?t:nz((0,np.Z)({},n_(t),{lightness:parseFloat(e)}))}),nL(function(e,t){return"transparent"===t?t:nz((0,np.Z)({},n_(t),{saturation:parseFloat(e)}))}),nL(function(e,t){return"transparent"===t?t:nV(parseFloat(e),"rgb(0, 0, 0)",t)}),nL(function(e,t){return"transparent"===t?t:nV(parseFloat(e),"rgb(255, 255, 255)",t)});var nG=nL(function(e,t){if("transparent"===t)return t;var n=nT(t),r="number"==typeof n.alpha?n.alpha:1;return nB((0,np.Z)({},n,{alpha:nH(0,1,+(100*r-100*parseFloat(e)).toFixed(2)/100)}))}),nX=(0,tw.kc)(function(e,t){var n,r,o,i,a,l,s,u=e.css,c=e.token,d=e.prefixCls,f=t.background,p=t.size,h=t.isEmoji,m=null!=f?f:c.colorBgContainer,g=(void 0===n&&(n=nU),void 0===r&&(r=nq),void 0===o&&(o=!0),a=(i=nW(m)>.179)?n:r,!o||parseFloat(((l=nW(m))>(s=nW(a))?(l+.05)/(s+.05):(s+.05)/(l+.05)).toFixed(2))>=4.5?a:i?nU:nq);return{avatar:u(F||(F=tm(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background: ",";\n border: 1px solid ",";\n\n > .","-avatar-string {\n font-size: ","px;\n font-weight: 700;\n line-height: 1 !important;\n color: ",";\n }\n\n > * {\n cursor: pointer;\n }\n "])),m,f?"transparent":c.colorSplit,d,p*(h?.7:.5),g)}}),nK=["className","avatar","title","size","shape","background","onClick","style"],nY=(0,tt.memo)(function(e){var t=e.className,n=e.avatar,r=e.title,o=e.size,i=void 0===o?40:o,a=e.shape,l=e.background,s=e.onClick,u=e.style,c=(0,te.Z)(e,nK),d=!!(n&&["/","http","data:"].some(function(e){return n.startsWith(e)})),f=!!(null==n?void 0:n.startsWith("data")),p=(0,tt.useMemo)(function(){return n&&!d&&nf(n)},[n]),h=nX({background:void 0===l?"rgba(0,0,0,0)":l,isEmoji:!!p,size:i}),m=h.styles,g=h.cx,b=String(d?r:n),v={className:g(m.avatar,t),shape:void 0===a?"circle":a,size:i,style:s?u:(0,e9.Z)({cursor:"default"},u)};return d?(0,tk.jsx)(no,(0,e9.Z)((0,e9.Z)({src:f?n:(0,tk.jsx)("img",{src:n,alt:"avatar"})},v),c)):(0,tk.jsx)(no,(0,e9.Z)((0,e9.Z)((0,e9.Z)({},v),c),{},{children:p?(0,tk.jsx)(nc,{emoji:p,size:.8*i}):null==b?void 0:b.toUpperCase().slice(0,2)}))}),nJ=(0,tw.kc)(function(e,t){var n=e.cx,r=e.css,o=e.token,i=e.isDarkMode,a=e.responsive,l=t.placement,s=t.type,u=t.title,c=t.primary,d=t.avatarSize,f=t.showTitle,p=t.editing,h=r(j||(j=tm(["\n padding: 8px 12px;\n background-color: ",";\n border-radius: ","px;\n transition: background-color 100ms ",";\n "])),c?i?o.colorFill:o.colorBgElevated:i?o.colorFillSecondary:o.colorBgContainer,o.borderRadiusLG,o.motionEaseOut),m=r(A||(A=tm(["\n padding-top: ",";\n "])),u?0:"6px"),g=r(I||(I=tm(["\n margin-bottom: -16px;\n transition: background-color 100ms ",";\n "])),o.motionEaseOut),b=p&&r(T||(T=tm(["\n width: 100%;\n "])));return{actions:n(r(_||(_=tm(["\n align-self: ",";\n justify-content: ",";\n "])),"block"===s?"flex-end":"left"===l?"flex-start":"flex-end","left"===l?"flex-end":"flex-start"),p&&r(M||(M=tm(["\n pointer-events: none !important;\n opacity: 0 !important;\n "])))),alert:r(P||(P=tm([""]))),avatarContainer:r(N||(N=tm(["\n position: relative;\n flex: none;\n width: ","px;\n height: ","px;\n "])),d,d),avatarGroupContainer:r(Z||(Z=tm(["\n width: ","px;\n "])),d),container:n("pure"===s&&g,r(R||(R=tm(["\n position: relative;\n width: 100%;\n max-width: 100vw;\n padding: 16px;\n content-visibility: auto;\n contain-intrinsic-size: 100px;\n time {\n display: inline-block;\n white-space: nowrap;\n }\n\n div[role='menubar'] {\n display: flex;\n }\n\n time,\n div[role='menubar'] {\n pointer-events: none;\n opacity: 0;\n transition: opacity 200ms ",";\n }\n\n &:hover {\n time,\n div[role='menubar'] {\n pointer-events: unset;\n opacity: 1;\n }\n }\n\n "," {\n padding: 4px 16px;\n }\n "])),o.motionEaseOut,a.mobile)),editingContainer:n(b,r(B||(B=tm(["\n padding: 8px 12px 12px;\n border: 1px solid ",";\n\n &:active,\n &:hover {\n border-color: ",";\n }\n "])),o.colorBorderSecondary,o.colorBorder),"pure"===s&&r(z||(z=tm(["\n background: ",";\n border-radius: ","px;\n "])),o.colorFillQuaternary,o.borderRadius)),editingInput:r(L||(L=tm(["\n width: 100%;\n "]))),loading:r(H||(H=tm(["\n position: absolute;\n right: ",";\n bottom: 0;\n left: ",";\n\n width: 16px;\n height: 16px;\n\n color: ",";\n\n background: ",";\n border-radius: 50%;\n "])),"left"===l?"-4px":"unset","right"===l?"-4px":"unset",o.colorBgLayout,o.colorPrimary),message:n("block"===s?h:m,r(W||(W=tm(["\n position: relative;\n "])))),messageContainer:n(b,r(V||(V=tm(["\n position: relative;\n "])))),messageContent:n(b,r(U||(U=tm(["\n position: relative;\n overflow-x: hidden;\n\n "," {\n flex-direction: column !important;\n }\n "])),a.mobile)),messageExtra:r(q||(q=tm([""]))),name:r(G||(G=tm(["\n position: ",";\n top: ",";\n right: ",";\n left: ",";\n\n margin-bottom: 6px;\n\n font-size: 12px;\n line-height: 1;\n color: ",";\n text-align: ",";\n "])),f?"relative":"absolute",f?"unset":"-16px","right"===l?"0":"unset","left"===l?"0":"unset",o.colorTextDescription,"left"===l?"left":"right")}});let nQ=ty("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var n0=(0,tt.memo)(function(e){var t=e.loading,n=nJ({placement:e.placement}).styles;return t?(0,tk.jsx)(tH,{align:"center",className:n.loading,justify:"center",children:(0,tk.jsx)(tS,{icon:nQ,size:{fontSize:12,strokeWidth:3},spin:!0})}):null}),n1=(0,tt.memo)(function(e){var t=e.loading,n=e.avatar,r=void 0===n?{}:n,o=e.placement,i=e.addon,a=e.onClick,l=e.size,s=void 0===l?40:l,u=nJ({avatarSize:s}).styles,c=(0,tk.jsxs)("div",{className:u.avatarContainer,children:[(0,tk.jsx)(nY,{avatar:r.avatar,background:r.backgroundColor,onClick:a,size:s,className:r.className,title:r.title}),(0,tk.jsx)(n0,{loading:t,placement:o})]});return i?(0,tk.jsxs)(tH,{align:"center",className:u.avatarGroupContainer,gap:8,children:[c,i]}):c}),n2=(0,tt.memo)(function(e){var t=e.borderSpacing;return t?(0,tk.jsx)("div",{style:{flex:"none",width:t}}):null}),n5=n(5896),n3=n(42680),n6=n(74889),n4=n(73656),n8=n(22645),n7=n(71048),n9=n(12689);let re=(e,t,n,r,o)=>({background:e,border:`${(0,t8.bf)(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),rt=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:u,withDescriptionIconSize:c,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},(0,t7.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
  23. padding-top ${n} ${u}, padding-bottom ${n} ${u},
  24. margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},rn=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:u,colorErrorBg:c,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":re(o,r,n,e,t),"&-info":re(p,f,d,e,t),"&-warning":re(l,a,i,e,t),"&-error":Object.assign(Object.assign({},re(c,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},rr=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,t8.bf)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}};var ro=(0,tc.I$)("Alert",e=>[rt(e),rn(e),rr(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),ri=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ra={success:n5.Z,info:n8.Z,error:n3.Z,warning:n4.Z},rl=e=>{let{icon:t,prefixCls:n,type:r}=e,o=ra[r]||null;return t?(0,na.wm)(t,tt.createElement("span",{className:`${n}-icon`},t),()=>({className:tr()(`${n}-icon`,t.props.className)})):tt.createElement(o,{className:`${n}-icon`})},rs=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=!0===r||void 0===r?tt.createElement(n6.Z,null):r;return t?tt.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},ru=tt.forwardRef((e,t)=>{let{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:l,style:s,onMouseEnter:u,onMouseLeave:c,onClick:d,afterClose:f,showIcon:p,closable:h,closeText:m,closeIcon:g,action:b,id:v}=e,y=ri(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[x,w]=tt.useState(!1),C=tt.useRef(null);tt.useImperativeHandle(t,()=>({nativeElement:C.current}));let{getPrefixCls:k,direction:D,alert:E}=tt.useContext(ti.E_),S=k("alert",r),[$,O,F]=ro(S),j=t=>{var n;w(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},A=tt.useMemo(()=>void 0!==e.type?e.type:i?"warning":"info",[e.type,i]),I=tt.useMemo(()=>"object"==typeof h&&!!h.closeIcon||!!m||("boolean"==typeof h?h:!1!==g&&null!=g||!!(null==E?void 0:E.closable)),[m,g,h,null==E?void 0:E.closable]),T=!!i&&void 0===p||p,_=tr()(S,`${S}-${A}`,{[`${S}-with-description`]:!!n,[`${S}-no-icon`]:!T,[`${S}-banner`]:!!i,[`${S}-rtl`]:"rtl"===D},null==E?void 0:E.className,a,l,F,O),M=(0,n9.Z)(y,{aria:!0,data:!0}),P=tt.useMemo(()=>{var e,t;return"object"==typeof h&&h.closeIcon?h.closeIcon:m||(void 0!==g?g:"object"==typeof(null==E?void 0:E.closable)&&(null===(e=null==E?void 0:E.closable)||void 0===e?void 0:e.closeIcon)?null===(t=null==E?void 0:E.closable)||void 0===t?void 0:t.closeIcon:null==E?void 0:E.closeIcon)},[g,h,m,null==E?void 0:E.closeIcon]),N=tt.useMemo(()=>{let e=null!=h?h:null==E?void 0:E.closable;if("object"==typeof e){let{closeIcon:t}=e;return ri(e,["closeIcon"])}return{}},[h,null==E?void 0:E.closable]);return $(tt.createElement(n7.ZP,{visible:!x,motionName:`${S}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:f},(t,r)=>{let{className:i,style:a}=t;return tt.createElement("div",Object.assign({id:v,ref:(0,t5.sQ)(C,r),"data-show":!x,className:tr()(_,i),style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.style),s),a),onMouseEnter:u,onMouseLeave:c,onClick:d,role:"alert"},M),T?tt.createElement(rl,{description:n,icon:e.icon,prefixCls:S,type:A}):null,tt.createElement("div",{className:`${S}-content`},o?tt.createElement("div",{className:`${S}-message`},o):null,n?tt.createElement("div",{className:`${S}-description`},n):null),b?tt.createElement("div",{className:`${S}-action`},b):null,tt.createElement(rs,{isClosable:I,prefixCls:S,closeIcon:P,handleClose:j,ariaProps:N}))}))});var rc=n(57843),rd=n(79216),rf=n(52898),rp=n(47887),rh=n(89664),rm=n(59042);let rg=function(e){function t(){var e,n,r;return(0,rc.Z)(this,t),n=t,r=arguments,n=(0,rf.Z)(n),(e=(0,rh.Z)(this,(0,rp.Z)()?Reflect.construct(n,r||[],(0,rf.Z)(this).constructor):n.apply(this,r))).state={error:void 0,info:{componentStack:""}},e}return(0,rm.Z)(t,e),(0,rd.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:n,children:r}=this.props,{error:o,info:i}=this.state,a=(null==i?void 0:i.componentStack)||null,l=void 0===e?(o||"").toString():e;return o?tt.createElement(ru,{id:n,type:"error",message:l,description:tt.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?a:t)}):r}}])}(tt.Component);ru.ErrorBoundary=rg;var rb=(0,tt.memo)(function(e){var t=e.message,n=nJ({placement:e.placement}).styles;return(0,tk.jsx)(tH,{gap:8,children:(0,tk.jsx)(ru,{className:n.alert,showIcon:!0,type:"error",message:t})})}),rv=n(13739),ry=n(35774),rx=n(84333);function rw(e){return(0,t9.IX)(e,{inputAffixPadding:e.paddingXXS})}let rC=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:c,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:c-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${b}`,warningActiveShadow:`0 0 0 ${m}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},rk=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),rD=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},rk((0,t9.IX)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rE=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),rS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),r$=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},rD(e))}),rS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),rS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),rO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),rF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},rO(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),rO(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},rD(e))}})}),rj=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},rA=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),rI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rA(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),rT=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rA(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},rD(e))}),rI(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rI(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),r_=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),rM=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},r_(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),r_(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),rP=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),rN=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${(0,t8.bf)(t)} ${(0,t8.bf)(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},rZ=e=>({padding:`${(0,t8.bf)(e.paddingBlockSM)} ${(0,t8.bf)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),rR=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,t8.bf)(e.paddingBlock)} ${(0,t8.bf)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},rP(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},rN(e)),"&-sm":Object.assign({},rZ(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),rB=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},rN(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},rZ(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,t8.bf)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,t8.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,t8.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,t8.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,t7.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
  25. & > ${t}-affix-wrapper,
  26. & > ${t}-number-affix-wrapper,
  27. & > ${n}-picker-range
  28. `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
  29. & > ${n}-select-auto-complete ${t},
  30. & > ${n}-cascader-picker ${t},
  31. & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
  32. & > ${n}-select:first-child > ${n}-select-selector,
  33. & > ${n}-select-auto-complete:first-child ${t},
  34. & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
  35. & > ${n}-select:last-child > ${n}-select-selector,
  36. & > ${n}-cascader-picker:last-child ${t},
  37. & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},rz=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,t7.Wf)(e)),rR(e)),r$(e)),rT(e)),rj(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},rL=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,t8.bf)(e.inputAffixPadding)}`}}}},rH=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},rR(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),rL(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[u]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},rW=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,t7.Wf)(e)),rB(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},rF(e)),rM(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},rV=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
  38. > ${t},
  39. ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},rU=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
  40. &-allow-clear > ${t},
  41. &-affix-wrapper${r}-has-feedback ${t}
  42. `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},rq=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var rG=(0,tc.I$)("Input",e=>{let t=(0,t9.IX)(e,rw(e));return[rz(t),rU(t),rH(t),rW(t),rV(t),rq(t),(0,rx.c)(t)]},rC,{resetFont:!1});function rX(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function rK(e,t,n,r){if(n){var o=t;if("click"===t.type){n(o=rX(t,e,""));return}if("file"!==e.type&&void 0!==r){n(o=rX(t,e,r));return}n(o)}}function rY(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var rJ=tt.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,l=e.prefix,s=e.suffix,u=e.addonBefore,c=e.addonAfter,d=e.className,f=e.style,p=e.disabled,h=e.readOnly,m=e.focused,g=e.triggerFocus,b=e.allowClear,v=e.value,y=e.handleReset,x=e.hidden,w=e.classes,C=e.classNames,k=e.dataAttrs,D=e.styles,E=e.components,S=e.onClear,$=null!=i?i:o,O=(null==E?void 0:E.affixWrapper)||"span",F=(null==E?void 0:E.groupWrapper)||"span",j=(null==E?void 0:E.wrapper)||"span",A=(null==E?void 0:E.groupAddon)||"span",I=(0,tt.useRef)(null),T=!!(e.prefix||e.suffix||e.allowClear),_=(0,tt.cloneElement)($,{value:v,className:tr()($.props.className,!T&&(null==C?void 0:C.variant))||null}),M=(0,tt.useRef)(null);if(tt.useImperativeHandle(t,function(){return{nativeElement:M.current||I.current}}),T){var P=null;if(b){var N=!p&&!h&&v,Z="".concat(a,"-clear-icon"),R="object"===(0,tp.Z)(b)&&null!=b&&b.clearIcon?b.clearIcon:"✖";P=tt.createElement("span",{onClick:function(e){null==y||y(e),null==S||S()},onMouseDown:function(e){return e.preventDefault()},className:tr()(Z,(0,tj.Z)((0,tj.Z)({},"".concat(Z,"-hidden"),!N),"".concat(Z,"-has-suffix"),!!s)),role:"button",tabIndex:-1},R)}var B="".concat(a,"-affix-wrapper"),z=tr()(B,(0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)({},"".concat(a,"-disabled"),p),"".concat(B,"-disabled"),p),"".concat(B,"-focused"),m),"".concat(B,"-readonly"),h),"".concat(B,"-input-with-clear-btn"),s&&b&&v),null==w?void 0:w.affixWrapper,null==C?void 0:C.affixWrapper,null==C?void 0:C.variant),L=(s||b)&&tt.createElement("span",{className:tr()("".concat(a,"-suffix"),null==C?void 0:C.suffix),style:null==D?void 0:D.suffix},P,s);_=tt.createElement(O,(0,np.Z)({className:z,style:null==D?void 0:D.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null==g||g())}},null==k?void 0:k.affixWrapper,{ref:I}),l&&tt.createElement("span",{className:tr()("".concat(a,"-prefix"),null==C?void 0:C.prefix),style:null==D?void 0:D.prefix},l),_,L)}if(e.addonBefore||e.addonAfter){var H="".concat(a,"-group"),W="".concat(H,"-addon"),V="".concat(H,"-wrapper"),U=tr()("".concat(a,"-wrapper"),H,null==w?void 0:w.wrapper,null==C?void 0:C.wrapper),q=tr()(V,(0,tj.Z)({},"".concat(V,"-disabled"),p),null==w?void 0:w.group,null==C?void 0:C.groupWrapper);_=tt.createElement(F,{className:q,ref:M},tt.createElement(j,{className:U},u&&tt.createElement(A,{className:W},u),_,c&&tt.createElement(A,{className:W},c)))}return tt.cloneElement(_,{className:tr()(null===(n=_.props)||void 0===n?void 0:n.className,d)||null,style:(0,e9.Z)((0,e9.Z)({},null===(r=_.props)||void 0===r?void 0:r.style),f),hidden:x})}),rQ=n(54200),r0=n(86047),r1=n(46709),r2=["show"];function r5(e,t){return tt.useMemo(function(){var n={};t&&(n.show="object"===(0,tp.Z)(t)&&t.formatter?t.formatter:!!t);var r=n=(0,e9.Z)((0,e9.Z)({},n),e),o=r.show,i=(0,te.Z)(r,r2);return(0,e9.Z)((0,e9.Z)({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})},[e,t])}var r3=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],r6=(0,tt.forwardRef)(function(e,t){var n,r=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,u=e.onKeyUp,c=e.prefixCls,d=void 0===c?"rc-input":c,f=e.disabled,p=e.htmlSize,h=e.className,m=e.maxLength,g=e.suffix,b=e.showCount,v=e.count,y=e.type,x=e.classes,w=e.classNames,C=e.styles,k=e.onCompositionStart,D=e.onCompositionEnd,E=(0,te.Z)(e,r3),S=(0,tt.useState)(!1),$=(0,th.Z)(S,2),O=$[0],F=$[1],j=(0,tt.useRef)(!1),A=(0,tt.useRef)(!1),I=(0,tt.useRef)(null),T=(0,tt.useRef)(null),_=function(e){I.current&&rY(I.current,e)},M=(0,r0.Z)(e.defaultValue,{value:e.value}),P=(0,th.Z)(M,2),N=P[0],Z=P[1],R=null==N?"":String(N),B=(0,tt.useState)(null),z=(0,th.Z)(B,2),L=z[0],H=z[1],W=r5(v,b),V=W.max||m,U=W.strategy(R),q=!!V&&U>V;(0,tt.useImperativeHandle)(t,function(){var e;return{focus:_,blur:function(){var e;null===(e=I.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=I.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=I.current)||void 0===e||e.select()},input:I.current,nativeElement:(null===(e=T.current)||void 0===e?void 0:e.nativeElement)||I.current}}),(0,tt.useEffect)(function(){A.current&&(A.current=!1),F(function(e){return(!e||!f)&&e})},[f]);var G=function(e,t,n){var r,i,a=t;if(!j.current&&W.exceedFormatter&&W.max&&W.strategy(t)>W.max)a=W.exceedFormatter(t,{max:W.max}),t!==a&&H([(null===(r=I.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=I.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;Z(a),I.current&&rK(I.current,e,o,a)};(0,tt.useEffect)(function(){if(L){var e;null===(e=I.current)||void 0===e||e.setSelectionRange.apply(e,(0,rQ.Z)(L))}},[L]);var X=q&&"".concat(d,"-out-of-range");return tt.createElement(rJ,(0,np.Z)({},E,{prefixCls:d,className:tr()(h,X),handleReset:function(e){Z(""),_(),I.current&&rK(I.current,e,o)},value:R,focused:O,triggerFocus:_,suffix:function(){var e=Number(V)>0;if(g||W.show){var t=W.showFormatter?W.showFormatter({value:R,count:U,maxLength:V}):"".concat(U).concat(e?" / ".concat(V):"");return tt.createElement(tt.Fragment,null,W.show&&tt.createElement("span",{className:tr()("".concat(d,"-show-count-suffix"),(0,tj.Z)({},"".concat(d,"-show-count-has-suffix"),!!g),null==w?void 0:w.count),style:(0,e9.Z)({},null==C?void 0:C.count)},t),g)}return null}(),disabled:f,classes:x,classNames:w,styles:C}),(n=(0,r1.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),tt.createElement("input",(0,np.Z)({autoComplete:r},n,{onChange:function(e){G(e,e.target.value,{source:"change"})},onFocus:function(e){F(!0),null==i||i(e)},onBlur:function(e){A.current&&(A.current=!1),F(!1),null==a||a(e)},onKeyDown:function(e){l&&"Enter"===e.key&&!A.current&&(A.current=!0,l(e)),null==s||s(e)},onKeyUp:function(e){"Enter"===e.key&&(A.current=!1),null==u||u(e)},className:tr()(d,(0,tj.Z)({},"".concat(d,"-disabled"),f),null==w?void 0:w.input),style:null==C?void 0:C.input,ref:I,size:p,type:void 0===y?"text":y,onCompositionStart:function(e){j.current=!0,null==k||k(e)},onCompositionEnd:function(e){j.current=!1,G(e,e.currentTarget.value,{source:"compositionEnd"}),null==D||D(e)}}))))}),r4=n(18980),r8=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:tt.createElement(n3.Z,null)}),t};function r7(e,t,n){return tr()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}let r9=(e,t)=>t||e;var oe=n(58630),ot=function(e,t){var n,r;let o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,{variant:a,[e]:l}=tt.useContext(ti.E_),s=tt.useContext(ry.pg),u=null==l?void 0:l.variant;o=void 0!==t?t:!1===i?"borderless":null!==(r=null!==(n=null!=s?s:u)&&void 0!==n?n:a)&&void 0!==r?r:"outlined";let c=ti.tr.includes(o);return[o,c]},on=n(36921);function or(e,t){let n=(0,tt.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))==="password"&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,tt.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}var oo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let oi=(0,tt.forwardRef)((e,t)=>{var n;let{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:u,suffix:c,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:m,styles:g,rootClassName:b,onChange:v,classNames:y,variant:x}=e,w=oo(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:k,input:D}=tt.useContext(ti.E_),E=C("input",r),S=(0,tt.useRef)(null),$=(0,t3.Z)(E),[O,F,j]=rG(E,$),{compactSize:A,compactItemClassnames:I}=(0,on.ri)(E,k),T=(0,t6.Z)(e=>{var t;return null!==(t=null!=a?a:A)&&void 0!==t?t:e}),_=tt.useContext(oe.Z),{status:M,hasFeedback:P,feedbackIcon:N}=(0,tt.useContext)(ry.aM),Z=r9(M,i),R=!!(e.prefix||e.suffix||e.allowClear||e.showCount)||!!P;(0,tt.useRef)(R);let B=or(S,!0),z=(P||c)&&tt.createElement(tt.Fragment,null,c,P&&N),L=r8(null!=d?d:null==D?void 0:D.allowClear),[H,W]=ot("input",x,o);return O(tt.createElement(r6,Object.assign({ref:(0,t5.sQ)(t,S),prefixCls:E,autoComplete:null==D?void 0:D.autoComplete},w,{disabled:null!=l?l:_,onBlur:e=>{B(),null==s||s(e)},onFocus:e=>{B(),null==u||u(e)},style:Object.assign(Object.assign({},null==D?void 0:D.style),m),styles:Object.assign(Object.assign({},null==D?void 0:D.styles),g),suffix:z,allowClear:L,className:tr()(h,b,j,$,I,null==D?void 0:D.className),onChange:e=>{B(),null==v||v(e)},addonBefore:p&&tt.createElement(r4.Z,{form:!0,space:!0},p),addonAfter:f&&tt.createElement(r4.Z,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),null==D?void 0:D.classNames),{input:tr()({[`${E}-sm`]:"small"===T,[`${E}-lg`]:"large"===T,[`${E}-rtl`]:"rtl"===k},null==y?void 0:y.input,null===(n=null==D?void 0:D.classNames)||void 0===n?void 0:n.input,F),variant:tr()({[`${E}-${H}`]:W},r7(E,Z)),affixWrapper:tr()({[`${E}-affix-wrapper-sm`]:"small"===T,[`${E}-affix-wrapper-lg`]:"large"===T,[`${E}-affix-wrapper-rtl`]:"rtl"===k},F),wrapper:tr()({[`${E}-group-rtl`]:"rtl"===k},F),groupWrapper:tr()({[`${E}-group-wrapper-sm`]:"small"===T,[`${E}-group-wrapper-lg`]:"large"===T,[`${E}-group-wrapper-rtl`]:"rtl"===k,[`${E}-group-wrapper-${H}`]:W},r7(`${E}-group-wrapper`,Z,P),F)})})))});var oa=n(62051);let ol=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var os=(0,tc.I$)(["Input","OTP"],e=>[ol((0,t9.IX)(e,rw(e)))],rC),ou=n(47871),oc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let od=tt.forwardRef((e,t)=>{let{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=oc(e,["value","onChange","onActiveChange","index","mask"]),s=tt.useRef(null);tt.useImperativeHandle(t,()=>s.current);let u=()=>{(0,ou.Z)(()=>{var e;let t=null===(e=s.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return tt.createElement(oi,Object.assign({type:!0===a?"password":"text"},l,{ref:s,value:n&&"string"==typeof a?a:n,onInput:e=>{r(i,e.target.value)},onFocus:u,onKeyDown:e=>{let{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?o(i-1):"ArrowRight"===t?o(i+1):"z"===t&&(n||r)&&e.preventDefault(),u()},onKeyUp:e=>{"Backspace"!==e.key||n||o(i-1),u()},onMouseDown:u,onMouseUp:u}))});var of=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function op(e){return(e||"").split("")}let oh=tt.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,variant:u,disabled:c,status:d,autoFocus:f,mask:p,type:h,onInput:m,inputMode:g}=e,b=of(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:v,direction:y}=tt.useContext(ti.E_),x=v("otp",n),w=(0,n9.Z)(b,{aria:!0,data:!0,attr:!0}),C=(0,t3.Z)(x),[k,D,E]=os(x,C),S=(0,t6.Z)(e=>null!=o?o:e),$=tt.useContext(ry.aM),O=r9($.status,d),F=tt.useMemo(()=>Object.assign(Object.assign({},$),{status:O,hasFeedback:!1,feedbackIcon:null}),[$,O]),j=tt.useRef(null),A=tt.useRef({});tt.useImperativeHandle(t,()=>({focus:()=>{var e;null===(e=A.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=A.current[t])||void 0===e||e.blur()},nativeElement:j.current}));let I=e=>s?s(e):e,[T,_]=tt.useState(op(I(i||"")));tt.useEffect(()=>{void 0!==a&&_(op(a))},[a]);let M=(0,oa.Z)(e=>{_(e),m&&m(e),l&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>T[t]!==e)&&l(e.join(""))}),P=(0,oa.Z)((e,t)=>{let n=(0,rQ.Z)(T);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(op(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();return n=op(I(n.map(e=>e||" ").join(""))).map((e,t)=>" "!==e||n[t]?e:n[t])}),N=(e,t)=>{var n;let o=P(e,t),i=Math.min(e+t.length,r-1);i!==e&&void 0!==o[e]&&(null===(n=A.current[i])||void 0===n||n.focus()),M(o)},Z=e=>{var t;null===(t=A.current[e])||void 0===t||t.focus()},R={variant:u,disabled:c,status:O,mask:p,type:h,inputMode:g};return k(tt.createElement("div",Object.assign({},w,{ref:j,className:tr()(x,{[`${x}-sm`]:"small"===S,[`${x}-lg`]:"large"===S,[`${x}-rtl`]:"rtl"===y},E,D)}),tt.createElement(ry.aM.Provider,{value:F},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,r=T[t]||"";return tt.createElement(od,Object.assign({ref:e=>{A.current[t]=e},key:n,index:t,size:S,htmlSize:1,className:`${x}-input`,onChange:N,value:r,onActiveChange:Z,autoFocus:0===t&&f},R))}))))});var om={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},og=n(63572),ob=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:om}))}),ov={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},oy=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:ov}))}),ox=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ow=e=>e?tt.createElement(oy,null):tt.createElement(ob,null),oC={click:"onClick",hover:"onMouseOver"},ok=tt.forwardRef((e,t)=>{let{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=ow}=e,a=tt.useContext(oe.Z),l=null!=n?n:a,s="object"==typeof o&&void 0!==o.visible,[u,c]=(0,tt.useState)(()=>!!s&&o.visible),d=(0,tt.useRef)(null);tt.useEffect(()=>{s&&c(o.visible)},[s,o]);let f=or(d),p=()=>{var e;if(l)return;u&&f();let t=!u;c(t),"object"==typeof o&&(null===(e=o.onVisibleChange)||void 0===e||e.call(o,t))},{className:h,prefixCls:m,inputPrefixCls:g,size:b}=e,v=ox(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=tt.useContext(ti.E_),x=y("input",g),w=y("input-password",m),C=o&&(e=>{let t=oC[r]||"",n=i(u),o={[t]:p,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return tt.cloneElement(tt.isValidElement(n)?n:tt.createElement("span",null,n),o)})(w),k=tr()(w,h,{[`${w}-${b}`]:!!b}),D=Object.assign(Object.assign({},(0,r1.Z)(v,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:k,prefixCls:x,suffix:C});return b&&(D.size=b),tt.createElement(oi,Object.assign({ref:(0,t5.sQ)(t,d)},D))});var oD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},oE=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:oD}))}),oS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let o$=tt.forwardRef((e,t)=>{let n;let{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:s=!1,addonAfter:u,loading:c,disabled:d,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:m}=e,g=oS(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:v}=tt.useContext(ti.E_),y=tt.useRef(!1),x=b("input-search",r),w=b("input",o),{compactSize:C}=(0,on.ri)(x,v),k=(0,t6.Z)(e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e}),D=tt.useRef(null),E=e=>{var t;document.activeElement===(null===(t=D.current)||void 0===t?void 0:t.input)&&e.preventDefault()},S=e=>{var t,n;f&&f(null===(n=null===(t=D.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},$="boolean"==typeof s?tt.createElement(oE,null):null,O=`${x}-button`,F=s||{},j=F.type&&!0===F.type.__ANT_BUTTON;n=j||"button"===F.type?(0,na.Tm)(F,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==F?void 0:F.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),S(e)},key:"enterButton"},j?{className:O,size:k}:{})):tt.createElement(tg.ZP,{className:O,type:s?"primary":void 0,size:k,disabled:d,key:"enterButton",onMouseDown:E,onClick:S,loading:c,icon:$},s),u&&(n=[n,(0,na.Tm)(u,{key:"addonAfter"})]);let A=tr()(x,{[`${x}-rtl`]:"rtl"===v,[`${x}-${k}`]:!!k,[`${x}-with-button`]:!!s},i);return tt.createElement(oi,Object.assign({ref:(0,t5.sQ)(D,t),onPressEnter:e=>{y.current||c||S(e)}},g,{size:k,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==m||m(e)},prefixCls:w,addonAfter:n,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},className:A,disabled:d}))});var oO=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],oF={},oj=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oA=tt.forwardRef(function(e,t){var n=e.prefixCls,r=e.defaultValue,o=e.value,i=e.autoSize,a=e.onResize,l=e.className,s=e.style,u=e.disabled,c=e.onChange,d=(e.onInternalAutoSize,(0,te.Z)(e,oj)),f=(0,r0.Z)(r,{value:o,postState:function(e){return null!=e?e:""}}),p=(0,th.Z)(f,2),h=p[0],m=p[1],g=tt.useRef();tt.useImperativeHandle(t,function(){return{textArea:g.current}});var b=tt.useMemo(function(){return i&&"object"===(0,tp.Z)(i)?[i.minRows,i.maxRows]:[]},[i]),v=(0,th.Z)(b,2),y=v[0],x=v[1],w=!!i,C=function(){try{if(document.activeElement===g.current){var e=g.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;g.current.setSelectionRange(t,n),g.current.scrollTop=r}}catch(e){}},k=tt.useState(2),D=(0,th.Z)(k,2),E=D[0],S=D[1],$=tt.useState(),O=(0,th.Z)($,2),F=O[0],j=O[1],A=function(){S(0)};(0,tG.Z)(function(){w&&A()},[o,y,x,w]),(0,tG.Z)(function(){if(0===E)S(1);else if(1===E){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;X||((X=document.createElement("textarea")).setAttribute("tab-index","-1"),X.setAttribute("aria-hidden","true"),X.setAttribute("name","hiddenTextarea"),document.body.appendChild(X)),e.getAttribute("wrap")?X.setAttribute("wrap",e.getAttribute("wrap")):X.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&oF[n])return oF[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:oO.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(oF[n]=l),l}(e,n),a=i.paddingSize,l=i.borderSize,s=i.boxSizing,u=i.sizingStyle;X.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),X.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f=X.scrollHeight;if("border-box"===s?f+=l:"content-box"===s&&(f-=a),null!==r||null!==o){X.value=" ";var p=X.scrollHeight-a;null!==r&&(c=p*r,"border-box"===s&&(c=c+a+l),f=Math.max(c,f)),null!==o&&(d=p*o,"border-box"===s&&(d=d+a+l),t=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:t,resize:"none"};return c&&(h.minHeight=c),d&&(h.maxHeight=d),h}(g.current,!1,y,x);S(2),j(e)}else C()},[E]);var I=tt.useRef(),T=function(){ou.Z.cancel(I.current)};tt.useEffect(function(){return T},[]);var _=(0,e9.Z)((0,e9.Z)({},s),w?F:null);return(0===E||1===E)&&(_.overflowY="hidden",_.overflowX="hidden"),tt.createElement(tF.Z,{onResize:function(e){2===E&&(null==a||a(e),i&&(T(),I.current=(0,ou.Z)(function(){A()})))},disabled:!(i||a)},tt.createElement("textarea",(0,np.Z)({},d,{ref:g,style:_,className:tr()(n,l,(0,tj.Z)({},"".concat(n,"-disabled"),u)),disabled:u,value:h,onChange:function(e){m(e.target.value),null==c||c(e)}})))}),oI=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],oT=tt.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=void 0===h?"rc-textarea":h,g=e.showCount,b=e.count,v=e.className,y=e.style,x=e.disabled,w=e.hidden,C=e.classNames,k=e.styles,D=e.onResize,E=e.onClear,S=e.onPressEnter,$=e.readOnly,O=e.autoSize,F=e.onKeyDown,j=(0,te.Z)(e,oI),A=(0,r0.Z)(o,{value:i,defaultValue:o}),I=(0,th.Z)(A,2),T=I[0],_=I[1],M=null==T?"":String(T),P=tt.useState(!1),N=(0,th.Z)(P,2),Z=N[0],R=N[1],B=tt.useRef(!1),z=tt.useState(null),L=(0,th.Z)(z,2),H=L[0],W=L[1],V=(0,tt.useRef)(null),U=(0,tt.useRef)(null),q=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},G=function(){q().focus()};(0,tt.useImperativeHandle)(t,function(){var e;return{resizableTextArea:U.current,focus:G,blur:function(){q().blur()},nativeElement:(null===(e=V.current)||void 0===e?void 0:e.nativeElement)||q()}}),(0,tt.useEffect)(function(){R(function(e){return!x&&e})},[x]);var X=tt.useState(null),K=(0,th.Z)(X,2),Y=K[0],J=K[1];tt.useEffect(function(){if(Y){var e;(e=q()).setSelectionRange.apply(e,(0,rQ.Z)(Y))}},[Y]);var Q=r5(b,g),ee=null!==(n=Q.max)&&void 0!==n?n:c,et=Number(ee)>0,en=Q.strategy(M),er=!!ee&&en>ee,eo=function(e,t){var n=t;!B.current&&Q.exceedFormatter&&Q.max&&Q.strategy(t)>Q.max&&(n=Q.exceedFormatter(t,{max:Q.max}),t!==n&&J([q().selectionStart||0,q().selectionEnd||0])),_(n),rK(e.currentTarget,e,s,n)},ei=p;Q.show&&(r=Q.showFormatter?Q.showFormatter({value:M,count:en,maxLength:ee}):"".concat(en).concat(et?" / ".concat(ee):""),ei=tt.createElement(tt.Fragment,null,ei,tt.createElement("span",{className:tr()("".concat(m,"-data-count"),null==C?void 0:C.count),style:null==k?void 0:k.count},r)));var ea=!O&&!g&&!u;return tt.createElement(rJ,{ref:V,value:M,allowClear:u,handleReset:function(e){_(""),G(),rK(q(),e,s)},suffix:ei,prefixCls:m,classNames:(0,e9.Z)((0,e9.Z)({},C),{},{affixWrapper:tr()(null==C?void 0:C.affixWrapper,(0,tj.Z)((0,tj.Z)({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),u))}),disabled:x,focused:Z,className:tr()(v,er&&"".concat(m,"-out-of-range")),style:(0,e9.Z)((0,e9.Z)({},y),H&&!ea?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof r?r:void 0}},hidden:w,readOnly:$,onClear:E},tt.createElement(oA,(0,np.Z)({},j,{autoSize:O,maxLength:c,onKeyDown:function(e){"Enter"===e.key&&S&&S(e),null==F||F(e)},onChange:function(e){eo(e,e.target.value)},onFocus:function(e){R(!0),null==a||a(e)},onBlur:function(e){R(!1),null==l||l(e)},onCompositionStart:function(e){B.current=!0,null==d||d(e)},onCompositionEnd:function(e){B.current=!1,eo(e,e.currentTarget.value),null==f||f(e)},className:tr()(null==C?void 0:C.textarea),style:(0,e9.Z)((0,e9.Z)({},null==k?void 0:k.textarea),{},{resize:null==y?void 0:y.resize}),disabled:x,prefixCls:m,onResize:function(e){var t;null==D||D(e),null!==(t=q())&&void 0!==t&&t.style.height&&W(!0)},ref:U,readOnly:$})))}),o_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let oM=(0,tt.forwardRef)((e,t)=>{var n,r;let{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:u,classNames:c,rootClassName:d,className:f,style:p,styles:h,variant:m}=e,g=o_(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:b,direction:v,textArea:y}=tt.useContext(ti.E_),x=(0,t6.Z)(a),w=tt.useContext(oe.Z),{status:C,hasFeedback:k,feedbackIcon:D}=tt.useContext(ry.aM),E=r9(C,s),S=tt.useRef(null);tt.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=S.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;rY(null===(n=null===(t=S.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.blur()}}});let $=b("input",o),O=(0,t3.Z)($),[F,j,A]=rG($,O),[I,T]=ot("textArea",m,i),_=r8(null!=u?u:null==y?void 0:y.allowClear);return F(tt.createElement(oT,Object.assign({autoComplete:null==y?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},null==y?void 0:y.style),p),styles:Object.assign(Object.assign({},null==y?void 0:y.styles),h),disabled:null!=l?l:w,allowClear:_,className:tr()(A,O,f,d,null==y?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},c),null==y?void 0:y.classNames),{textarea:tr()({[`${$}-sm`]:"small"===x,[`${$}-lg`]:"large"===x},j,null==c?void 0:c.textarea,null===(n=null==y?void 0:y.classNames)||void 0===n?void 0:n.textarea),variant:tr()({[`${$}-${I}`]:T},r7($,E)),affixWrapper:tr()(`${$}-textarea-affix-wrapper`,{[`${$}-affix-wrapper-rtl`]:"rtl"===v,[`${$}-affix-wrapper-sm`]:"small"===x,[`${$}-affix-wrapper-lg`]:"large"===x,[`${$}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},j)}),prefixCls:$,suffix:k&&tt.createElement("span",{className:`${$}-textarea-suffix`},D),ref:S})))});oi.Group=e=>{let{getPrefixCls:t,direction:n}=(0,tt.useContext)(ti.E_),{prefixCls:r,className:o}=e,i=t("input-group",r),[a,l]=rG(t("input")),s=tr()(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=(0,tt.useContext)(ry.aM),c=(0,tt.useMemo)(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return a(tt.createElement("span",{className:s,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},tt.createElement(ry.aM.Provider,{value:c},e.children)))},oi.Search=o$,oi.TextArea=oM,oi.Password=ok,oi.OTP=oh;var oP=(0,tw.kc)(function(e,t){var n=e.cx,r=e.css,o=e.token,i=e.prefixCls,a=t.type,l=r(K||(K=tm(["\n background-color: ",";\n border: 1px solid ",";\n transition:\n background-color 100ms ",",\n border-color 200ms ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &.","-input-affix-wrapper-focused {\n border-color: ",";\n }\n "])),"block"===a?o.colorFillTertiary:"transparent","block"===a?"transparent":o.colorBorder,o.motionEaseOut,o.motionEaseOut,o.colorFillTertiary,o.colorTextQuaternary,i,o.colorTextQuaternary);return{input:n("pure"!==a&&l,r(Y||(Y=tm(["\n position: relative;\n max-width: 100%;\n height: ",";\n padding: ",";\n\n input {\n background: transparent;\n }\n "])),"pure"===a?"unset":"36px","pure"===a?"0":"0 12px")),textarea:n("pure"!==a&&l,r(J||(J=tm(["\n position: relative;\n max-width: 100%;\n padding: ",";\n border-radius: ",";\n\n textarea {\n background: transparent;\n }\n "])),"pure"===a?"0":"8px 12px","pure"===a?"0":"".concat(o.borderRadius,"px")))}}),oN=["className","type","resize","style"],oZ=(0,tt.forwardRef)(function(e,t){var n=e.className,r=e.type,o=void 0===r?"ghost":r,i=e.resize,a=e.style,l=(0,te.Z)(e,oN),s=oP({type:o}),u=s.styles,c=s.cx;return(0,tk.jsx)(oi.TextArea,(0,e9.Z)({bordered:"pure"!==o,className:c(u.textarea,n),ref:t,style:void 0===i||i?a:(0,e9.Z)({resize:"none"},a)},l))}),oR=(0,tw.kc)(function(e){var t=e.css,n=e.token;return t(Q||(Q=tm(["\n position: relative;\n\n height: 100%;\n\n font-family: ",";\n font-size: 13px;\n line-height: 1.8;\n "])),n.fontFamilyCode)}),oB=["text","type","onCancel","defaultValue","onConfirm","renderButtons","textareaStyle","textareaClassname","placeholder","height","style","editButtonSize","classNames"],oz=(0,tt.memo)(function(e){var t=e.text,n=e.type,r=e.onCancel,o=e.defaultValue,i=e.onConfirm,a=e.renderButtons,l=e.textareaStyle,s=e.textareaClassname,u=e.placeholder,c=e.height,d=void 0===c?"auto":c,f=e.style,p=e.editButtonSize,h=void 0===p?"middle":p,m=e.classNames,g=(0,te.Z)(e,oB),b=(0,tt.useState)(o||""),v=(0,th.Z)(b,2),y=v[0],x=v[1],w=oR(),C=w.cx,k=w.styles,D="auto"===d;return(0,tk.jsxs)(tH,(0,e9.Z)((0,e9.Z)({gap:16,style:(0,e9.Z)({flex:1,width:"100%"},f)},g),{},{children:[(0,tk.jsx)(oZ,{autoSize:D,className:C(k,s),classNames:m,onBlur:function(e){return x(e.target.value)},onChange:function(e){return x(e.target.value)},placeholder:void 0===u?"Type something...":u,resize:!1,style:(0,e9.Z)({height:D?"unset":d,minHeight:"100%"},l),type:void 0===n?"pure":n,value:y}),(0,tk.jsx)(tH,{direction:"horizontal-reverse",gap:8,children:a?a(y).map(function(e,t){return(0,tk.jsx)(tg.ZP,(0,e9.Z)({size:"small"},e),t)}):(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(tg.ZP,{onClick:function(){null==i||i(y)},size:h,type:"primary",children:(null==t?void 0:t.confirm)||"Confirm"}),(0,tk.jsx)(tg.ZP,{onClick:r,size:h,children:(null==t?void 0:t.cancel)||"Cancel"})]})})]}))});let oL=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,t7.Wf)(e)),{borderBlockStart:`${(0,t8.bf)(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,t8.bf)(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,t8.bf)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,t8.bf)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,t8.bf)(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${(0,t8.bf)(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${(0,t8.bf)(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var oH=(0,tc.I$)("Divider",e=>[oL((0,t9.IX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0}))],e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),oW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},oV=e=>{let{getPrefixCls:t,direction:n,divider:r}=tt.useContext(ti.E_),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:u,children:c,dashed:d,variant:f="solid",plain:p,style:h}=e,m=oW(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),g=t("divider",o),[b,v,y]=oH(g),x=!!c,w="left"===a&&null!=l,C="right"===a&&null!=l,k=tr()(g,null==r?void 0:r.className,v,y,`${g}-${i}`,{[`${g}-with-text`]:x,[`${g}-with-text-${a}`]:x,[`${g}-dashed`]:!!d,[`${g}-${f}`]:"solid"!==f,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:w,[`${g}-no-default-orientation-margin-right`]:C},s,u),D=tt.useMemo(()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l,[l]),E=Object.assign(Object.assign({},w&&{marginLeft:D}),C&&{marginRight:D});return b(tt.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),h)},m,{role:"separator"}),c&&"vertical"!==i&&tt.createElement("span",{className:`${g}-inner-text`,style:E},c)))},oU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},oq=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:oU}))}),oG=n(19955),oX=n(13594),oK=tt.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,l=e.isActive,s=e.role,u=e.classNames,c=e.styles,d=tt.useState(l||r),f=(0,th.Z)(d,2),p=f[0],h=f[1];return(tt.useEffect(function(){(r||l)&&h(!0)},[r,l]),p)?tt.createElement("div",{ref:t,className:tr()("".concat(n,"-content"),(0,tj.Z)((0,tj.Z)({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),o),style:i,role:s},tt.createElement("div",{className:tr()("".concat(n,"-content-box"),null==u?void 0:u.body),style:null==c?void 0:c.body},a)):null});oK.displayName="PanelContent";var oY=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],oJ=tt.forwardRef(function(e,t){var n=e.showArrow,r=e.headerClass,o=e.isActive,i=e.onItemClick,a=e.forceRender,l=e.className,s=e.classNames,u=void 0===s?{}:s,c=e.styles,d=void 0===c?{}:c,f=e.prefixCls,p=e.collapsible,h=e.accordion,m=e.panelKey,g=e.extra,b=e.header,v=e.expandIcon,y=e.openMotion,x=e.destroyInactivePanel,w=e.children,C=(0,te.Z)(e,oY),k="disabled"===p,D=(0,tj.Z)((0,tj.Z)((0,tj.Z)({onClick:function(){null==i||i(m)},onKeyDown:function(e){("Enter"===e.key||e.keyCode===oX.Z.ENTER||e.which===oX.Z.ENTER)&&(null==i||i(m))},role:h?"tab":"button"},"aria-expanded",o),"aria-disabled",k),"tabIndex",k?-1:0),E="function"==typeof v?v(e):tt.createElement("i",{className:"arrow"}),S=E&&tt.createElement("div",(0,np.Z)({className:"".concat(f,"-expand-icon")},["header","icon"].includes(p)?D:{}),E),$=tr()("".concat(f,"-item"),(0,tj.Z)((0,tj.Z)({},"".concat(f,"-item-active"),o),"".concat(f,"-item-disabled"),k),l),O=tr()(r,"".concat(f,"-header"),(0,tj.Z)({},"".concat(f,"-collapsible-").concat(p),!!p),u.header),F=(0,e9.Z)({className:O,style:d.header},["header","icon"].includes(p)?{}:D);return tt.createElement("div",(0,np.Z)({},C,{ref:t,className:$}),tt.createElement("div",F,(void 0===n||n)&&S,tt.createElement("span",(0,np.Z)({className:"".concat(f,"-header-text")},"header"===p?D:{}),b),null!=g&&"boolean"!=typeof g&&tt.createElement("div",{className:"".concat(f,"-extra")},g)),tt.createElement(n7.ZP,(0,np.Z)({visible:o,leavedClassName:"".concat(f,"-content-hidden")},y,{forceRender:a,removeOnLeave:x}),function(e,t){var n=e.className,r=e.style;return tt.createElement(oK,{ref:t,prefixCls:f,className:n,classNames:u,style:r,styles:d,isActive:o,forceRender:a,role:h?"tabpanel":void 0},w)}))}),oQ=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],o0=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,s=t.openMotion,u=t.expandIcon;return e.map(function(e,t){var c=e.children,d=e.label,f=e.key,p=e.collapsible,h=e.onItemClick,m=e.destroyInactivePanel,g=(0,te.Z)(e,oQ),b=String(null!=f?f:t),v=null!=p?p:o,y=!1;return y=r?l[0]===b:l.indexOf(b)>-1,tt.createElement(oJ,(0,np.Z)({},g,{prefixCls:n,key:b,panelKey:b,isActive:y,accordion:r,openMotion:s,expandIcon:u,header:d,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==h||h(e))},destroyInactivePanel:null!=m?m:i}),c)})},o1=function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,u=n.openMotion,c=n.expandIcon,d=e.key||String(t),f=e.props,p=f.header,h=f.headerClass,m=f.destroyInactivePanel,g=f.collapsible,b=f.onItemClick,v=!1;v=o?s[0]===d:s.indexOf(d)>-1;var y=null!=g?g:i,x={key:d,panelKey:d,header:p,headerClass:h,isActive:v,prefixCls:r,destroyInactivePanel:null!=m?m:a,openMotion:u,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(l(e),null==b||b(e))},expandIcon:c,collapsible:y};return"string"==typeof e.type?e:(Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),tt.cloneElement(e,x))};function o2(e){var t=e;if(!Array.isArray(t)){var n=(0,tp.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var o5=Object.assign(tt.forwardRef(function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=e.style,l=e.accordion,s=e.className,u=e.children,c=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,m=e.onChange,g=e.items,b=tr()(o,s),v=(0,r0.Z)([],{value:p,onChange:function(e){return null==m?void 0:m(e)},defaultValue:h,postState:o2}),y=(0,th.Z)(v,2),x=y[0],w=y[1];(0,oG.ZP)(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var C=(n={prefixCls:o,accordion:l,openMotion:d,expandIcon:f,collapsible:c,destroyInactivePanel:void 0!==i&&i,onItemClick:function(e){return w(function(){return l?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter(function(t){return t!==e}):[].concat((0,rQ.Z)(x),[e])})},activeKey:x},Array.isArray(g)?o0(g,n):(0,ni.Z)(u).map(function(e,t){return o1(e,t,n)}));return tt.createElement("div",(0,np.Z)({ref:t,className:b,style:a,role:l?"tablist":void 0},(0,n9.Z)(e,{aria:!0,data:!0})),C)}),{Panel:oJ});o5.Panel;var o3=n(40377);let o6=tt.forwardRef((e,t)=>{let{getPrefixCls:n}=tt.useContext(ti.E_),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=tr()({[`${a}-no-arrow`]:!i},o);return tt.createElement(o5.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))});var o4=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
  43. opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
  44. opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});let o8=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:u,lineType:c,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:m,lineHeight:g,lineHeightLG:b,marginSM:v,paddingSM:y,paddingLG:x,paddingXS:w,motionDurationSlow:C,fontSizeIcon:k,contentPadding:D,fontHeight:E,fontHeightLG:S}=e,$=`${(0,t8.bf)(u)} ${c} ${d}`;return{[t]:Object.assign(Object.assign({},(0,t7.Wf)(e)),{backgroundColor:o,border:$,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`
  45. &,
  46. & > ${t}-header`]:{borderRadius:`0 0 ${(0,t8.bf)(s)} ${(0,t8.bf)(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:g,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},(0,t7.Ro)()),{fontSize:k,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:D},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:S,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,t8.bf)(s)} ${(0,t8.bf)(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{[`
  47. &,
  48. & > .arrow
  49. `]:{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},o7=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},o9=e=>{let{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
  50. > ${t}-item:last-child,
  51. > ${t}-item:last-child ${t}-header
  52. `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},ie=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var it=(0,tc.I$)("Collapse",e=>{let t=(0,t9.IX)(e,{collapseHeaderPaddingSM:`${(0,t8.bf)(e.paddingXS)} ${(0,t8.bf)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,t8.bf)(e.padding)} ${(0,t8.bf)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[o8(t),o9(t),ie(t),o7(t),o4(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),ir=Object.assign(tt.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,collapse:o}=tt.useContext(ti.E_),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:u=!0,ghost:c,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,m=(0,t6.Z)(e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"}),g=n("collapse",i),b=n(),[v,y,x]=it(g),w=tt.useMemo(()=>"left"===f?"start":"right"===f?"end":f,[f]),C=null!=h?h:null==o?void 0:o.expandIcon,k=tt.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="function"==typeof C?C(e):tt.createElement(oq,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,na.Tm)(t,()=>{var e;return{className:tr()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${g}-arrow`)}})},[C,g]),D=tr()(`${g}-icon-position-${w}`,{[`${g}-borderless`]:!u,[`${g}-rtl`]:"rtl"===r,[`${g}-ghost`]:!!c,[`${g}-${m}`]:"middle"!==m},null==o?void 0:o.className,a,l,y,x),E=Object.assign(Object.assign({},(0,o3.Z)(b)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),S=tt.useMemo(()=>p?(0,ni.Z)(p).map((e,t)=>{var n,r;let o=e.props;if(null==o?void 0:o.disabled){let i=null!==(n=e.key)&&void 0!==n?n:String(t),a=Object.assign(Object.assign({},(0,r1.Z)(e.props,["disabled"])),{key:i,collapsible:null!==(r=o.collapsible)&&void 0!==r?r:"disabled"});return(0,na.Tm)(e,a)}return e}):null,[p]);return v(tt.createElement(o5,Object.assign({ref:t,openMotion:E},(0,r1.Z)(e,["rootClassName"]),{expandIcon:k,prefixCls:g,className:D,style:Object.assign(Object.assign({},null==o?void 0:o.style),s)}),S))}),{Panel:o6}),io={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},ii=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:io}))}),ia=n(94392),il=function(e){if((0,ia.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},is=function(e,t){if(!il(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function iu(e,t){return Array.isArray(e)||void 0===t?il(e):is(e,t)}var ic=n(19740),id=n(21013),ip={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},ih=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:ip}))}),im=n(36065);let ig=(e,t,n,r)=>{let{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},ib=e=>{let t={};return[1,2,3,4,5].forEach(n=>{t[`
  53. h${n}&,
  54. div&-h${n},
  55. div&-h${n} > textarea,
  56. h${n}
  57. `]=ig(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},iv=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,t7.Nd)(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},iy=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:im.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ix=e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${(0,t8.bf)(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},iw=e=>({[`${e.componentCls}-copy-success`]:{[`
  58. &,
  59. &:hover,
  60. &:focus`]:{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),iC=()=>({[`
  61. a&-ellipsis,
  62. span&-ellipsis
  63. `]:{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),ik=e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
  64. div&,
  65. p
  66. `]:{marginBottom:"1em"}},ib(e)),{[`
  67. & + h1${t},
  68. & + h2${t},
  69. & + h3${t},
  70. & + h4${t},
  71. & + h5${t}
  72. `]:{marginTop:n},[`
  73. div,
  74. ul,
  75. li,
  76. p,
  77. h1,
  78. h2,
  79. h3,
  80. h4,
  81. h5`]:{[`
  82. + h1,
  83. + h2,
  84. + h3,
  85. + h4,
  86. + h5
  87. `]:{marginTop:n}}}),iy(e)),iv(e)),{[`
  88. ${t}-expand,
  89. ${t}-collapse,
  90. ${t}-edit,
  91. ${t}-copy
  92. `]:Object.assign(Object.assign({},(0,t7.Nd)(e)),{marginInlineStart:e.marginXXS})}),ix(e)),iw(e)),iC()),{"&-rtl":{direction:"rtl"}})}};var iD=(0,tc.I$)("Typography",e=>[ik(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),iE=e=>{let{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:s,onSave:u,onCancel:c,onEnd:d,component:f,enterIcon:p=tt.createElement(ih,null)}=e,h=tt.useRef(null),m=tt.useRef(!1),g=tt.useRef(null),[b,v]=tt.useState(s);tt.useEffect(()=>{v(s)},[s]),tt.useEffect(()=>{var e;if(null===(e=h.current)||void 0===e?void 0:e.resizableTextArea){let{textArea:e}=h.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let y=()=>{u(b.trim())},[x,w,C]=iD(t),k=tr()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i,[`${t}-${f}`]:!!f},r,w,C);return x(tt.createElement("div",{className:k,style:o},tt.createElement(oM,{ref:h,maxLength:a,value:b,onChange:e=>{let{target:t}=e;v(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(g.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;g.current!==t||m.current||n||r||o||i||(t===oX.Z.ENTER?(y(),null==d||d()):t===oX.Z.ESC&&c())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{y()},"aria-label":n,rows:1,autoSize:l}),null!==p?(0,na.Tm)(p,{className:`${t}-edit-content-confirm`}):null))},iS=e=>{let{copyConfig:t,children:n}=e,[r,o]=tt.useState(!1),[i,a]=tt.useState(!1),l=tt.useRef(null),s=()=>{l.current&&clearTimeout(l.current)},u={};return t.format&&(u.format=t.format),tt.useEffect(()=>s,[]),{copied:r,copyLoading:i,onClick:(0,oa.Z)(e=>{var r,i,c,d;return r=void 0,i=void 0,c=void 0,d=function*(){var r;null==e||e.preventDefault(),null==e||e.stopPropagation(),a(!0);try{let i="function"==typeof t.text?yield t.text():t.text;tU()(i||(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&null==e?[]:Array.isArray(e)?e:[e]})(n,!0).join("")||"",u),a(!1),o(!0),s(),l.current=setTimeout(()=>{o(!1)},3e3),null===(r=t.onCopy)||void 0===r||r.call(t,e)}catch(e){throw a(!1),e}},new(c||(c=Promise))(function(e,t){function n(e){try{a(d.next(e))}catch(e){t(e)}}function o(e){try{a(d.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):((r=t.value)instanceof c?r:new c(function(e){e(r)})).then(n,o)}a((d=d.apply(r,i||[])).next())})})}};function i$(e,t){return tt.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}var iO=e=>{let t=(0,tt.useRef)(void 0);return(0,tt.useEffect)(()=>{t.current=e}),t.current},iF=(e,t,n)=>(0,tt.useMemo)(()=>!0===e?{title:null!=t?t:n}:(0,tt.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e},[e,t,n]),ij=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let iA=tt.forwardRef((e,t)=>{let{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:s,style:u}=e,c=ij(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,typography:p}=tt.useContext(ti.E_),h=a?(0,t5.sQ)(t,a):t,m=d("typography",n),[g,b,v]=iD(m),y=tr()(m,null==p?void 0:p.className,{[`${m}-rtl`]:"rtl"===(null!=s?s:f)},o,i,b,v),x=Object.assign(Object.assign({},null==p?void 0:p.style),u);return g(tt.createElement(r,Object.assign({className:y,style:x,ref:h},c),l))});var iI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},iT=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:iI}))}),i_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},iM=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:i_}))}),iP=n(83255);function iN(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function iZ(e,t,n){return!0===e||void 0===e?t:e||n&&t}let iR=e=>["string","number"].includes(typeof e);var iB=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:a,tabIndex:l,onCopy:s,loading:u}=e,c=iN(i),d=iN(a),{copied:f,copy:p}=null!=r?r:{},h=n?f:p,m=iZ(c[n?1:0],h),g="string"==typeof m?m:h;return tt.createElement(id.Z,{title:m},tt.createElement("button",{type:"button",className:tr()(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:s,"aria-label":g,tabIndex:l},n?iZ(d[1],tt.createElement(iT,null),!0):iZ(d[0],u?tt.createElement(iP.Z,null):tt.createElement(iM,null),!0)))};let iz=tt.forwardRef((e,t)=>{let{style:n,children:r}=e,o=tt.useRef(null);return tt.useImperativeHandle(t,()=>({isExceed:()=>{let e=o.current;return e.scrollHeight>e.clientHeight},getHeight:()=>o.current.clientHeight})),tt.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),iL=e=>e.reduce((e,t)=>e+(iR(t)?String(t).length:1),0);function iH(e,t){let n=0,r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;let i=e[o],a=n+(iR(i)?String(i).length:1);if(a>t){let e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}let iW={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function iV(e){let{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:s}=e,u=tt.useMemo(()=>(0,ni.Z)(r),[r]),c=tt.useMemo(()=>iL(u),[r]),d=tt.useMemo(()=>o(u,!1),[r]),[f,p]=tt.useState(null),h=tt.useRef(null),m=tt.useRef(null),g=tt.useRef(null),b=tt.useRef(null),v=tt.useRef(null),[y,x]=tt.useState(!1),[w,C]=tt.useState(0),[k,D]=tt.useState(0),[E,S]=tt.useState(null);(0,tG.Z)(()=>{t&&n&&c?C(1):C(0)},[n,r,i,t,u]),(0,tG.Z)(()=>{var e,t,n,r;if(1===w)C(2),S(m.current&&getComputedStyle(m.current).whiteSpace);else if(2===w){let o=!!(null===(e=g.current)||void 0===e?void 0:e.isExceed());C(o?3:4),p(o?[0,c]:null),x(o);let a=(null===(t=g.current)||void 0===t?void 0:t.getHeight())||0;D(Math.max(a,(1===i?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0)+((null===(r=v.current)||void 0===r?void 0:r.getHeight())||0))+1),s(o)}},[w]);let $=f?Math.ceil((f[0]+f[1])/2):0;(0,tG.Z)(()=>{var e;let[t,n]=f||[0,0];if(t!==n){let r=((null===(e=h.current)||void 0===e?void 0:e.getHeight())||0)>k,o=$;n-t==1&&(o=r?t:n),p(r?[t,o]:[o,n])}},[f,$]);let O=tt.useMemo(()=>{if(!t)return o(u,!1);if(3!==w||!f||f[0]!==f[1]){let e=o(u,!1);return[4,0].includes(w)?e:tt.createElement("span",{style:Object.assign(Object.assign({},iW),{WebkitLineClamp:i})},e)}return o(a?u:iH(u,f[0]),y)},[a,w,f,u].concat((0,rQ.Z)(l))),F={width:n,margin:0,padding:0,whiteSpace:"nowrap"===E?"normal":"inherit"};return tt.createElement(tt.Fragment,null,O,2===w&&tt.createElement(tt.Fragment,null,tt.createElement(iz,{style:Object.assign(Object.assign(Object.assign({},F),iW),{WebkitLineClamp:i}),ref:g},d),tt.createElement(iz,{style:Object.assign(Object.assign(Object.assign({},F),iW),{WebkitLineClamp:i-1}),ref:b},d),tt.createElement(iz,{style:Object.assign(Object.assign(Object.assign({},F),iW),{WebkitLineClamp:1}),ref:v},o([],!0))),3===w&&f&&f[0]!==f[1]&&tt.createElement(iz,{style:Object.assign(Object.assign({},F),{top:400}),ref:h},o(iH(u,$),!0)),1===w&&tt.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}var iU=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return(null==o?void 0:o.title)&&t?tt.createElement(id.Z,Object.assign({open:!!n&&void 0},o),r):r},iq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let iG=tt.forwardRef((e,t)=>{var n;let{prefixCls:r,className:o,style:i,type:a,disabled:l,children:s,ellipsis:u,editable:c,copyable:d,component:f,title:p}=e,h=iq(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:g}=tt.useContext(ti.E_),[b]=(0,ic.Z)("Text"),v=tt.useRef(null),y=tt.useRef(null),x=m("typography",r),w=(0,r1.Z)(h,["mark","code","delete","underline","strong","keyboard","italic"]),[C,k]=i$(c),[D,E]=(0,r0.Z)(!1,{value:k.editing}),{triggerType:S=["icon"]}=k,$=e=>{var t;e&&(null===(t=k.onStart)||void 0===t||t.call(k)),E(e)},O=iO(D);(0,tG.Z)(()=>{var e;!D&&O&&(null===(e=y.current)||void 0===e||e.focus())},[D]);let F=e=>{null==e||e.preventDefault(),$(!0)},[j,A]=i$(d),{copied:I,copyLoading:T,onClick:_}=iS({copyConfig:A,children:s}),[M,P]=tt.useState(!1),[N,Z]=tt.useState(!1),[R,B]=tt.useState(!1),[z,L]=tt.useState(!1),[H,W]=tt.useState(!0),[V,U]=i$(u,{expandable:!1,symbol:e=>e?null==b?void 0:b.collapse:null==b?void 0:b.expand}),[q,G]=(0,r0.Z)(U.defaultExpanded||!1,{value:U.expanded}),X=V&&(!q||"collapsible"===U.expandable),{rows:K=1}=U,Y=tt.useMemo(()=>X&&(void 0!==U.suffix||U.onEllipsis||U.expandable||C||j),[X,U,C,j]);(0,tG.Z)(()=>{V&&!Y&&(P(iu("webkitLineClamp")),Z(iu("textOverflow")))},[Y,V]);let[J,Q]=tt.useState(X),ee=tt.useMemo(()=>!Y&&(1===K?N:M),[Y,N,M]);(0,tG.Z)(()=>{Q(ee&&X)},[ee,X]);let et=X&&(J?z:R),en=X&&1===K&&J,er=X&&K>1&&J,eo=(e,t)=>{var n;G(t.expanded),null===(n=U.onExpand)||void 0===n||n.call(U,e,t)},[ei,ea]=tt.useState(0),el=e=>{var t;B(e),R!==e&&(null===(t=U.onEllipsis)||void 0===t||t.call(U,e))};tt.useEffect(()=>{let e=v.current;if(V&&J&&e){let t=function(e){let t=document.createElement("em");e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);z!==t&&L(t)}},[V,J,s,er,H,ei]),tt.useEffect(()=>{let e=v.current;if("undefined"==typeof IntersectionObserver||!e||!J||!X)return;let t=new IntersectionObserver(()=>{W(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[J,X]);let es=iF(U.tooltip,k.text,s),eu=tt.useMemo(()=>{if(V&&!J)return[k.text,s,p,es.title].find(iR)},[V,J,p,es.title,et]);if(D)return tt.createElement(iE,{value:null!==(n=k.text)&&void 0!==n?n:"string"==typeof s?s:"",onSave:e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),$(!1)},onCancel:()=>{var e;null===(e=k.onCancel)||void 0===e||e.call(k),$(!1)},onEnd:k.onEnd,prefixCls:x,className:o,style:i,direction:g,component:f,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});let ec=()=>{let{expandable:e,symbol:t}=U;return e?tt.createElement("button",{type:"button",key:"expand",className:`${x}-${q?"collapse":"expand"}`,onClick:e=>eo(e,{expanded:!q}),"aria-label":q?b.collapse:null==b?void 0:b.expand},"function"==typeof t?t(q):t):null},ed=()=>{if(!C)return;let{icon:e,tooltip:t,tabIndex:n}=k,r=(0,ni.Z)(t)[0]||(null==b?void 0:b.edit),o="string"==typeof r?r:"";return S.includes("icon")?tt.createElement(id.Z,{key:"edit",title:!1===t?"":r},tt.createElement("button",{type:"button",ref:y,className:`${x}-edit`,onClick:F,"aria-label":o,tabIndex:n},e||tt.createElement(ii,{role:"button"}))):null},ef=()=>j?tt.createElement(iB,Object.assign({key:"copy"},A,{prefixCls:x,copied:I,locale:b,onCopy:_,loading:T,iconOnly:null==s})):null,ep=e=>[e&&ec(),ed(),ef()],eh=e=>[e&&!q&&tt.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),U.suffix,ep(e)];return tt.createElement(tF.Z,{onResize:e=>{let{offsetWidth:t}=e;ea(t)},disabled:!X},n=>tt.createElement(iU,{tooltipProps:es,enableEllipsis:X,isEllipsis:et},tt.createElement(iA,Object.assign({className:tr()({[`${x}-${a}`]:a,[`${x}-disabled`]:l,[`${x}-ellipsis`]:V,[`${x}-ellipsis-single-line`]:en,[`${x}-ellipsis-multiple-line`]:er},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:er?K:void 0}),component:f,ref:(0,t5.sQ)(n,v,t),direction:g,onClick:S.includes("text")?F:void 0,"aria-label":null==eu?void 0:eu.toString(),title:p},w),tt.createElement(iV,{enableMeasure:X&&!J,text:s,rows:K,width:ei,onEllipsis:el,expanded:q,miscDeps:[I,q,T,C,j,b]},(t,n)=>(function(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:l,italic:s}=e,u=t;function c(e,t){t&&(u=tt.createElement(e,{},u))}return c("strong",a),c("u",o),c("del",i),c("code",r),c("mark",n),c("kbd",l),c("i",s),u})(e,tt.createElement(tt.Fragment,null,t.length>0&&n&&!q&&eu?tt.createElement("span",{key:"show-content","aria-hidden":!0},t):t,eh(n)))))))});var iX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let iK=tt.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=iX(e,["ellipsis","rel"]);let i=Object.assign(Object.assign({},o),{rel:void 0===r&&"_blank"===o.target?"noopener noreferrer":r});return delete i.navigate,tt.createElement(iG,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),iY=tt.forwardRef((e,t)=>tt.createElement(iG,Object.assign({ref:t},e,{component:"div"})));var iJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},iQ=tt.forwardRef((e,t)=>{var{ellipsis:n}=e,r=iJ(e,["ellipsis"]);let o=tt.useMemo(()=>n&&"object"==typeof n?(0,r1.Z)(n,["expandable","rows"]):n,[n]);return tt.createElement(iG,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))}),i0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let i1=[1,2,3,4,5],i2=tt.forwardRef((e,t)=>{let{level:n=1}=e,r=i0(e,["level"]),o=i1.includes(n)?`h${n}`:"h1";return tt.createElement(iG,Object.assign({ref:t},r,{component:o}))});iA.Text=iQ,iA.Link=iK,iA.Title=i2,iA.Paragraph=iY;var i5=n(17866);function i3(e){return e&&"object"==typeof e?"position"in e||"type"in e?i4(e.position):"start"in e||"end"in e?i4(e):"line"in e||"column"in e?i6(e):"":""}function i6(e){return i8(e&&e.line)+":"+i8(e&&e.column)}function i4(e){return i6(e&&e.start)+"-"+i6(e&&e.end)}function i8(e){return e&&"number"==typeof e?e:1}class i7 extends Error{constructor(e,t,n){let r=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){let e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=i3(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}i7.prototype.file="",i7.prototype.name="",i7.prototype.reason="",i7.prototype.message="",i7.prototype.stack="",i7.prototype.fatal=null,i7.prototype.column=null,i7.prototype.line=null,i7.prototype.source=null,i7.prototype.ruleId=null,i7.prototype.position=null;let i9={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ae(e);let r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.charCodeAt(i)===t.charCodeAt(l--)?l<0&&(o=i):(l=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){let t;if(ae(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;ae(e);let n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){let l=e.charCodeAt(n);if(47===l){if(t){o=n+1;break}continue}r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1)}return i<0||r<0||0===a||1===a&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ae(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ae(e);let t=47===e.charCodeAt(0),n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.charCodeAt(s);else if(47===n)break;else n=47;if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2)){if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function ae(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function at(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let an=["history","path","basename","stem","extname","dirname"];class ar{constructor(e){let t,n;t=e?"string"==typeof e||i5(e)?{value:e}:at(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let r=-1;for(;++r<an.length;){let e=an[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)an.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){at(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!at(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){let e=t.charCodeAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ai(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?i9.dirname(this.path):void 0}set dirname(e){aa(this.basename,"dirname"),this.path=i9.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?i9.basename(this.path):void 0}set basename(e){ai(e,"basename"),ao(e,"basename"),this.path=i9.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?i9.extname(this.path):void 0}set extname(e){if(ao(e,"extname"),aa(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=i9.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?i9.basename(this.path,this.extname):void 0}set stem(e){ai(e,"stem"),ao(e,"stem"),this.path=i9.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){let r=new i7(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}}function ao(e,t){if(e&&e.includes(i9.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+i9.sep+"`")}function ai(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function aa(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function al(e){if(e)throw e}var as=n(16792);function au(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let ac=(function e(){let t;let n=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function o(i,...a){let l=e[++n],s=-1;if(i){r(i);return}for(;++s<t.length;)(null===a[s]||void 0===a[s])&&(a[s]=t[s]);t=a,l?(function(e,t){let n;return function(...t){let i;let a=e.length>t.length;a&&t.push(r);try{i=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(i&&i.then&&"function"==typeof i.then?i.then(o,r):i instanceof Error?r(i):o(i))};function r(e,...o){n||(n=!0,t(e,...o))}function o(e){r(null,e)}})(l,o)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),r=[],o={},i=-1;return a.data=function(e,n){return"string"==typeof e?2==arguments.length?(am("data",t),o[e]=n,a):ad.call(o,e)&&o[e]||null:e?(am("data",t),o=e,a):o},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(t)return a;for(;++i<r.length;){let[e,...t]=r[i];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let o=e.call(a,...t);"function"==typeof o&&n.use(o)}return t=!0,i=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e,...n){let i;if(am("use",t),null==e);else if("function"==typeof e)u(e,...n);else if("object"==typeof e)Array.isArray(e)?s(e):l(e);else throw TypeError("Expected usable value, not `"+e+"`");return i&&(o.settings=Object.assign(o.settings||{},i)),a;function l(e){s(e.plugins),e.settings&&(i=Object.assign(i||{},e.settings))}function s(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)u(e);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;u(t,...n)}else l(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function u(e,t){let n,o=-1;for(;++o<r.length;)if(r[o][0]===e){n=r[o];break}n?(au(n[1])&&au(t)&&(t=as(!0,n[1],t)),n[1]=t):r.push([...arguments])}},a.parse=function(e){a.freeze();let t=av(e),n=a.Parser;return(ap("parse",n),af(n,"parse"))?new n(String(t),t).parse():n(String(t),t)},a.stringify=function(e,t){a.freeze();let n=av(t),r=a.Compiler;return(ah("stringify",r),ag(e),af(r,"compile"))?new r(e,n).compile():r(e,n)},a.run=function(e,t,r){if(ag(e),a.freeze(),r||"function"!=typeof t||(r=t,t=void 0),!r)return new Promise(o);function o(o,i){n.run(e,av(t),function(t,n,a){n=n||e,t?i(t):o?o(n):r(null,n,a)})}o(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,function(e,t){al(e),n=t,r=!0}),ab("runSync","run",r),n},a.process=function(e,t){if(a.freeze(),ap("process",a.Parser),ah("process",a.Compiler),!t)return new Promise(n);function n(n,r){let o=av(e);function i(e,o){e||!o?r(e):n?n(o):t(null,o)}a.run(a.parse(o),o,(e,t,n)=>{if(!e&&t&&n){let r=a.stringify(t,n);null==r||("string"==typeof r||i5(r)?n.value=r:n.result=r),i(e,n)}else i(e)})}n(null,t)},a.processSync=function(e){let t;a.freeze(),ap("processSync",a.Parser),ah("processSync",a.Compiler);let n=av(e);return a.process(n,function(e){t=!0,al(e)}),ab("processSync","process",t),n},a;function a(){let t=e(),n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(as(!0,{},o)),t}})().freeze(),ad={}.hasOwnProperty;function af(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(ad.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function ap(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Parser`")}function ah(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Compiler`")}function am(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ag(e){if(!au(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ab(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function av(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new ar(e)}let ay={};function ax(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return aw(e.children,t,n)}return Array.isArray(e)?aw(e,t,n):""}function aw(e,t,n){let r=[],o=-1;for(;++o<e.length;)r[o]=ax(e[o],t,n);return r.join("")}function aC(e,t,n,r){let o;let i=e.length,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)(o=r.slice(a,a+1e4)).unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function ak(e,t){return e.length>0?(aC(e,e.length,0,t),e):t}let aD={}.hasOwnProperty;function aE(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r;let o=(aD.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];if(i)for(r in i){aD.call(o,r)||(o[r]=[]);let e=i[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);aC(e,0,0,r)}(o[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let aS=aZ(/[A-Za-z]/),a$=aZ(/[\dA-Za-z]/),aO=aZ(/[#-'*+\--9=?A-Z^-~]/);function aF(e){return null!==e&&(e<32||127===e)}let aj=aZ(/\d/),aA=aZ(/[\dA-Fa-f]/),aI=aZ(/[!-/:-@[-`{-~]/);function aT(e){return null!==e&&e<-2}function a_(e){return null!==e&&(e<0||32===e)}function aM(e){return -2===e||-1===e||32===e}let aP=aZ(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),aN=aZ(/\s/);function aZ(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function aR(e,t,n,r){let o=r?r-1:Number.POSITIVE_INFINITY,i=0;return function(r){return aM(r)?(e.enter(n),function r(a){return aM(a)&&i++<o?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let aB={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aR(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let o=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=o),t=o,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return aT(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},az={tokenize:function(e){let t,n,r;let o=this,i=[],a=0;return l;function l(t){if(a<i.length){let n=i[a];return o.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(a++,o.containerState._closeFlow){let n;o.containerState._closeFlow=void 0,t&&b();let r=o.events.length,i=r;for(;i--;)if("exit"===o.events[i][0]&&"chunkFlow"===o.events[i][1].type){n=o.events[i][1].end;break}g(a);let l=r;for(;l<o.events.length;)o.events[l][1].end=Object.assign({},n),l++;return aC(o.events,i+1,0,o.events.slice(r)),o.events.length=l,u(e)}return l(e)}function u(n){if(a===i.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);o.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return o.containerState={},e.check(aL,c,d)(n)}function c(e){return t&&b(),g(a),f(e)}function d(e){return o.parser.lazy[o.now().line]=a!==i.length,r=o.now().offset,h(e)}function f(t){return o.containerState={},e.attempt(aL,p,h)(t)}function p(e){return a++,i.push([o.currentConstruct,o.containerState]),f(e)}function h(r){if(null===r){t&&b(),g(0),e.consume(r);return}return t=t||o.parser.flow(o.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return aT(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,o.interrupt=void 0,l):(e.consume(n),t)}(r)}function m(e,i){let l=o.sliceStream(e);if(i&&l.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(l),o.parser.lazy[e.start.line]){let e,n,i=t.events.length;for(;i--;)if(t.events[i][1].start.offset<r&&(!t.events[i][1].end||t.events[i][1].end.offset>r))return;let l=o.events.length,s=l;for(;s--;)if("exit"===o.events[s][0]&&"chunkFlow"===o.events[s][1].type){if(e){n=o.events[s][1].end;break}e=!0}for(g(a),i=l;i<o.events.length;)o.events[i][1].end=Object.assign({},n),i++;aC(o.events,s+1,0,o.events.slice(l)),o.events.length=i}}function g(t){let n=i.length;for(;n-- >t;){let t=i[n];o.containerState=t[1],t[0].exit.call(o,e)}i.length=t}function b(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},aL={tokenize:function(e,t,n){return aR(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},aH={tokenize:function(e,t,n){return function(t){return aM(t)?aR(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||aT(e)?t(e):n(e)}},partial:!0};function aW(e){let t,n,r,o,i,a,l;let s={},u=-1;for(;++u<e.length;){for(;(u in s);)u=s[u];if(t=e[u],u&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[u-1][1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let o=e[t][1],i=e[t][2],a=t-1,l=[],s=o._tokenizer||i.parser[o.contentType](o.start),u=s.events,c=[],d={},f=-1,p=o,h=0,m=0,g=[0];for(;p;){for(;e[++a][1]!==p;);l.push(a),!p._tokenizer&&(n=i.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=o;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=l.pop();c.unshift([n,n+t.length-1]),aC(e,n,2,t)}for(f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(e,u)),u=s[u],l=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(o=e[r])[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(n&&(e[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},e[n][1].start),(i=e.slice(n,u)).unshift(t),aC(e,n,u-n+1,i))}}return!l}let aV={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):aT(t)?e.check(aU,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return aW(e),e}},aU={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aR(e,o,"linePrefix")};function o(o){if(null===o||aT(o))return n(o);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0},aq={tokenize:function(e){let t=this,n=e.attempt(aH,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,aR(e,e.attempt(this.parser.constructs.flow,r,e.attempt(aV,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},aG={resolveAll:aJ()},aX=aY("string"),aK=aY("text");function aY(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;let t=r[e],o=-1;if(t)for(;++o<t.length;){let e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:aJ("text"===e?aQ:void 0)}}function aJ(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function aQ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let o=e[n-1][1],i=t.sliceStream(o),a=i.length,l=-1,s=0;for(;a--;){let e=i[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{a++;break}}if(s){let i={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-s,offset:o.end.offset-s,_index:o.start._index+a,_bufferIndex:a?l:o.start._bufferIndex+l},end:Object.assign({},o.end)};o.end=Object.assign({},i.start),o.start.offset===o.end.offset?Object.assign(o,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function a0(e,t,n){let r=[],o=-1;for(;++o<e.length;){let i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}let a1={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(i){return e.enter("thematicBreak"),r=i,function i(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),o++,t):(e.exit("thematicBreakSequence"),aM(n)?aR(e,i,"whitespace")(n):i(n))}(a)):o>=3&&(null===a||aT(a))?(e.exit("thematicBreak"),t(a)):n(a)}(i)}}},a2={name:"list",tokenize:function(e,t,n){let r=this,o=r.events[r.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){let o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:aj(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(a1,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(o){return aj(o)&&++a<10?(e.consume(o),t):(!r.interrupt||a<2)&&(r.containerState.marker?o===r.containerState.marker:41===o||46===o)?(e.exit("listItemValue"),l(o)):n(o)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(aH,r.interrupt?n:s,e.attempt(a5,c,u))}function s(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function u(t){return aM(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(aH,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,aR(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!aM(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(a3,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,aR(e,e.attempt(a2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},a5={tokenize:function(e,t,n){let r=this;return aR(e,function(e){let o=r.events[r.events.length-1];return!aM(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},a3={tokenize:function(e,t,n){let r=this;return aR(e,function(e){let o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},a6={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return aM(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return aM(t)?aR(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(a6,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function a4(e,t,n,r,o,i,a,l,s){let u=s||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||aF(t)?n(t):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||aT(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return!c&&(null===o||41===o||a_(o))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o)):c<u&&40===o?(e.consume(o),c++,h):41===o?(e.consume(o),c--,h):null===o||32===o||40===o||aF(o)?n(o):(e.consume(o),92===o?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function a8(e,t,n,r,o,i){let a;let l=this,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return s>999||null===d||91===d||93===d&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):aT(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||aT(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!aM(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function a7(e,t,n,r,o,i){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l):n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):aT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aR(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||aT(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function a9(e,t){let n;return function r(o){return aT(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):aM(o)?aR(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function le(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let lt={tokenize:function(e,t,n){return function(t){return a_(t)?a9(e,r)(t):n(t)};function r(t){return a7(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return aM(t)?aR(e,i,"whitespace")(t):i(t)}function i(e){return null===e||aT(e)?t(e):n(e)}},partial:!0},ln={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),aR(e,o,"linePrefix",5)(t)};function o(t){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?function t(n){return null===n?i(n):aT(n)?e.attempt(lr,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||aT(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},lr={tokenize:function(e,t,n){let r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):aT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):aR(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):aT(e)?o(e):n(e)}},partial:!0},lo={name:"setextUnderline",tokenize:function(e,t,n){let r;let o=this;return function(t){let a,l=o.events.length;for(;l--;)if("lineEnding"!==o.events[l][1].type&&"linePrefix"!==o.events[l][1].type&&"content"!==o.events[l][1].type){a="paragraph"===o.events[l][1].type;break}return!o.parser.lazy[o.now().line]&&(o.interrupt||a)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),aM(n)?aR(e,i,"lineSuffix")(n):i(n))}(t)):n(t)};function i(r){return null===r||aT(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);let a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},li=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],la=["pre","script","style","textarea"],ll={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(aH,t,n)}},partial:!0},ls={tokenize:function(e,t,n){let r=this;return function(t){return aT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},lu={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},lc={name:"codeFenced",tokenize:function(e,t,n){let r;let o=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),aM(t)?aR(e,s,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(o){return o===r?(i++,e.consume(o),t):i>=l?(e.exit("codeFencedFenceSequence"),aM(o)?aR(e,u,"whitespace")(o):u(o)):n(o)}(t)):n(t)}function u(r){return null===r||aT(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},a=0,l=0;return function(t){return function(t){let i=o.events[o.events.length-1];return a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(o){return o===r?(l++,e.consume(o),t):l<3?n(o):(e.exit("codeFencedFenceSequence"),aM(o)?aR(e,s,"whitespace")(o):s(o))}(t)}(t)};function s(i){return null===i||aT(i)?(e.exit("codeFencedFence"),o.interrupt?t(i):e.check(lu,c,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||aT(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(o)):aM(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),aR(e,u,"whitespace")(o)):96===o&&o===r?n(o):(e.consume(o),t)}(i))}function u(t){return null===t||aT(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||aT(o)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(o)):96===o&&o===r?n(o):(e.consume(o),t)}(t))}function c(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return a>0&&aM(t)?aR(e,p,"linePrefix",a+1)(t):p(t)}function p(t){return null===t||aT(t)?e.check(lu,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||aT(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}},concrete:!0},ld=document.createElement("i");function lf(e){let t="&"+e+";";ld.innerHTML=t;let n=ld.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let lp={name:"characterReference",tokenize:function(e,t,n){let r,o;let i=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,o=a$,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=aA,u):(e.enter("characterReferenceValue"),r=7,o=aj,u(t))}function u(l){if(59===l&&a){let r=e.exit("characterReferenceValue");return o!==a$||lf(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return o(l)&&a++<r?(e.consume(l),u):n(l)}}},lh={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return aI(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},lm={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),aR(e,t,"linePrefix")}}},lg={name:"labelEnd",tokenize:function(e,t,n){let r,o;let i=this,a=i.events.length;for(;a--;)if(("labelImage"===i.events[a][1].type||"labelLink"===i.events[a][1].type)&&!i.events[a][1]._balanced){r=i.events[a][1];break}return function(t){return r?r._inactive?c(t):(o=i.parser.defined.includes(le(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(lb,u,o?u:c)(t):91===t?e.attempt(lv,u,o?s:c)(t):o?u(t):c(t)}function s(t){return e.attempt(ly,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);let s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[r+l+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=ak(i=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+l+3)),i=ak(i,[["enter",c,t]]),i=ak(i,a0(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=ak(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=ak(i,e.slice(o+1)),i=ak(i,[["exit",s,t]]),aC(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},lb={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return a_(t)?a9(e,o)(t):o(t)}function o(t){return 41===t?u(t):a4(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return a_(t)?a9(e,l)(t):u(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?a7(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return a_(t)?a9(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},lv={tokenize:function(e,t,n){let r=this;return function(t){return a8.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},ly={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},lx={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:lg.resolveAll};function lw(e){return null===e||a_(e)||aN(e)?1:aP(e)?2:void 0}let lC={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,o=this.previous,i=lw(o);return function(a){return n=a,e.enter("attentionSequence"),function a(l){if(l===n)return e.consume(l),a;let s=e.exit("attentionSequence"),u=lw(l),c=!u||2===u&&i||r.includes(l),d=!i||2===i&&u||r.includes(o);return s._open=!!(42===n?c:c&&(i||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(l)}(a)}},resolveAll:function(e,t){let n,r,o,i,a,l,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);lk(d,-l),lk(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},a.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=ak(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=ak(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=ak(s,a0(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=ak(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=ak(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,aC(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function lk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let lD={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:lg.resolveAll},lE={42:a2,43:a2,45:a2,48:a2,49:a2,50:a2,51:a2,52:a2,53:a2,54:a2,55:a2,56:a2,57:a2,62:a6},lS={91:{name:"definition",tokenize:function(e,t,n){let r;let o=this;return function(t){return e.enter("definition"),a8.call(o,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function i(t){return(r=le(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return a_(t)?a9(e,l)(t):l(t)}function l(t){return a4(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(lt,u,u)(t)}function u(t){return aM(t)?aR(e,c,"whitespace")(t):c(t)}function c(i){return null===i||aT(i)?(e.exit("definition"),o.parser.defined.push(r),t(i)):n(i)}}}},l$={[-2]:ln,[-1]:ln,32:ln},lO={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(o){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function o(i){return 35===i&&r++<6?(e.consume(i),o):null===i||a_(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||aT(r)?(e.exit("atxHeading"),t(r)):aM(r)?aR(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||a_(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(o)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[3][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},aC(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:a1,45:[lo,a1],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,o,i,a,l;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),o=!0,p):63===a?(e.consume(a),r=3,s.interrupt?t:I):aS(a)?(e.consume(a),i=String.fromCharCode(a),h):n(a)}function c(o){return 45===o?(e.consume(o),r=2,d):91===o?(e.consume(o),r=5,a=0,f):aS(o)?(e.consume(o),r=4,s.interrupt?t:I):n(o)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:I):n(r)}function f(r){let o="CDATA[";return r===o.charCodeAt(a++)?(e.consume(r),a===o.length)?s.interrupt?t:D:f:n(r)}function p(t){return aS(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||a_(a)){let l=47===a,u=i.toLowerCase();return!l&&!o&&la.includes(u)?(r=1,s.interrupt?t(a):D(a)):li.includes(i.toLowerCase())?(r=6,l)?(e.consume(a),m):s.interrupt?t(a):D(a):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):o?function t(n){return aM(n)?(e.consume(n),t):C(n)}(a):g(a))}return 45===a||a$(a)?(e.consume(a),i+=String.fromCharCode(a),h):n(a)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:D):n(r)}function g(t){return 47===t?(e.consume(t),C):58===t||95===t||aS(t)?(e.consume(t),b):aM(t)?(e.consume(t),g):C(t)}function b(t){return 45===t||46===t||58===t||95===t||a$(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),y):aM(t)?(e.consume(t),v):g(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):aM(t)?(e.consume(t),y):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||a_(n)?v(n):(e.consume(n),t)}(t)}function x(t){return t===l?(e.consume(t),l=null,w):null===t||aT(t)?n(t):(e.consume(t),x)}function w(e){return 47===e||62===e||aM(e)?g(e):n(e)}function C(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||aT(t)?D(t):aM(t)?(e.consume(t),k):n(t)}function D(t){return 45===t&&2===r?(e.consume(t),O):60===t&&1===r?(e.consume(t),F):62===t&&4===r?(e.consume(t),T):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),A):aT(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ll,_,E)(t)):null===t||aT(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),D)}function E(t){return e.check(ls,S,_)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$}function $(t){return null===t||aT(t)?E(t):(e.enter("htmlFlowData"),D(t))}function O(t){return 45===t?(e.consume(t),I):D(t)}function F(t){return 47===t?(e.consume(t),i="",j):D(t)}function j(t){if(62===t){let n=i.toLowerCase();return la.includes(n)?(e.consume(t),T):D(t)}return aS(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),j):D(t)}function A(t){return 93===t?(e.consume(t),I):D(t)}function I(t){return 62===t?(e.consume(t),T):45===t&&2===r?(e.consume(t),I):D(t)}function T(t){return null===t||aT(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),T)}function _(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:lo,95:a1,96:lc,126:lc},lF={38:lp,92:lh},lj={[-5]:lm,[-4]:lm,[-3]:lm,33:lx,38:lp,42:lC,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return aS(t)?(e.consume(t),i):l(t)}function i(t){return 43===t||45===t||46===t||a$(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||a$(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||aF(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),s):aO(t)?(e.consume(t),l):n(t)}function s(o){return a$(o)?function o(i){return 46===i?(e.consume(i),r=0,s):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||a$(i))&&r++<63){let n=45===i?t:o;return e.consume(i),n}return n(i)}(i)}(o):n(o)}}},{name:"htmlText",tokenize:function(e,t,n){let r,o,i;let a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):aS(t)?(e.consume(t),C):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o=0,p):aS(t)?(e.consume(t),b):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):aT(t)?(i=c,j(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?F(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),o===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):aT(t)?(i=h,j(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?F(t):93===t?(e.consume(t),g):h(t)}function b(t){return null===t||62===t?F(t):aT(t)?(i=b,j(t)):(e.consume(t),b)}function v(t){return null===t?n(t):63===t?(e.consume(t),y):aT(t)?(i=v,j(t)):(e.consume(t),v)}function y(e){return 62===e?F(e):v(e)}function x(t){return aS(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||a$(t)?(e.consume(t),w):function t(n){return aT(n)?(i=t,j(n)):aM(n)?(e.consume(n),t):F(n)}(t)}function C(t){return 45===t||a$(t)?(e.consume(t),C):47===t||62===t||a_(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),F):58===t||95===t||aS(t)?(e.consume(t),D):aT(t)?(i=k,j(t)):aM(t)?(e.consume(t),k):F(t)}function D(t){return 45===t||46===t||58===t||95===t||a$(t)?(e.consume(t),D):function t(n){return 61===n?(e.consume(n),E):aT(n)?(i=t,j(n)):aM(n)?(e.consume(n),t):k(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):aT(t)?(i=E,j(t)):aM(t)?(e.consume(t),E):(e.consume(t),$)}function S(t){return t===r?(e.consume(t),r=void 0,O):null===t?n(t):aT(t)?(i=S,j(t)):(e.consume(t),S)}function $(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||a_(t)?k(t):(e.consume(t),$)}function O(e){return 47===e||62===e||a_(e)?k(e):n(e)}function F(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function j(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return aM(t)?aR(e,I,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),i(t)}}}],91:lD,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return aT(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},lh],93:lg,95:lC,96:{name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),a):96===s?(o=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(o.type="codeTextData",l(a))}(s)):aT(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(s))}function l(t){return null===t||32===t||96===t||aT(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[3][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},lA={null:[lC,aG]},lI={null:[42,95]},lT={null:[]},l_=/[\0\t\n\r]/g;function lM(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}let lP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lN(e){return e.replace(lP,lZ)}function lZ(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return lM(n.slice(t?2:1),t?16:10)}return lf(n)||e}let lR={}.hasOwnProperty,lB=function(e,t,n){let r,o,i,a;return"string"!=typeof t&&(n=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(y),autolinkProtocol:d,autolinkEmail:d,atxHeading:i(g),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:d,characterReference:d,codeFenced:i(m),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(m,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:d,data:d,codeFlowValue:d,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(b),hardBreakTrailing:i(b),htmlFlow:i(v,a),htmlFlowData:d,htmlText:i(v,a),htmlTextData:d,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(y),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){n.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),n.expectingFirstListItemValue=void 0)},listOrdered:i(x,function(){n.expectingFirstListItemValue=!0}),listUnordered:i(x),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){n.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(g),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){f.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){f.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:f,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t;let r=this.sliceSerialize(e),o=n.characterReferenceType;o?(t=lM(r,"characterReferenceMarkerNumeric"===o?10:16),n.characterReferenceType=void 0):t=lf(r);let i=this.stack.pop();i.value+=t,i.position.end=lz(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n.flowCodeInside=void 0}),codeFencedFence:function(){!n.flowCodeInside&&(this.buffer(),n.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:f,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:f,data:f,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=le(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:f,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:f,image:s(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(n.inReference=!0,"link"===r.type){let t=e.children;r.children=t}else r.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=lN(t),n.identifier=le(t).toLowerCase()},lineEnding:function(e){let r=this.stack[this.stack.length-1];if(n.atHardBreak){r.children[r.children.length-1].position.end=lz(e.end),n.atHardBreak=void 0;return}!n.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(d.call(this,e),f.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=le(this.sliceSerialize(e)).toLowerCase(),n.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){n.inReference=void 0},setextHeading:s(function(){n.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){n.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let r=-1;for(;++r<n.length;){let o=n[r];Array.isArray(o)?e(t,o):function(e,t){let n;for(n in t)if(lR.call(t,n)){if("canContainEols"===n){let r=t[n];r&&e[n].push(...r)}else if("transforms"===n){let r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){let r=t[n];r&&Object.assign(e[n],r)}}}(t,o)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let n={type:"root",children:[]},i={stack:[n],tokenStack:[],config:t,enter:l,exit:u,buffer:a,resume:c,setData:r,getData:o},s=[],d=-1;for(;++d<e.length;)("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)&&("enter"===e[d][0]?s.push(d):d=function(e,t,n){let r,o,i,a,l=t-1,s=-1,u=!1;for(;++l<=n;){let t=e[l];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?s++:s--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(l,0,["enter",r,t[2]]),l++,n++,i=void 0,a=!0)}}return e[t][1]._spread=u,n}(e,s.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];lR.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1];(e[1]||lL).call(i,void 0,e[0])}for(n.position={start:lz(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lz(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)n=t.transforms[d](n)||n;return n};function r(e,t){n[e]=t}function o(e){return n[e]}function i(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:lz(t.start)},e}function s(e){return function(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lL).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+i3({start:e.start,end:e.end})+"): it’s not open");return n.position.end=lz(e.end),n}function c(){return ax(this.stack.pop(),"boolean"!=typeof ay.includeImageAlt||ay.includeImageAlt,"boolean"!=typeof ay.includeHtml||ay.includeHtml)}function d(e){let t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:lz(e.start)},t.children.push(n)),this.stack.push(n)}function f(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lz(e.end)}function p(){n.atHardBreak=!0}function h(e){var t;t=e.type,n.characterReferenceType=t}function m(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:void 0,children:[]}}function b(){return{type:"break"}}function v(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(n)(function(e){for(;!aW(e););return e}((function(e){let t={defined:[],lazy:{},constructs:aE([e8,...(e||{}).extensions||[]]),content:n(aB),document:n(az),flow:n(aq),string:n(aX),text:n(aK)};return t;function n(e){return function(n){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),o={},i=[],a=[],l=[],s={consume:function(e){aT(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){let t=l.pop();return t.end=f(),u.events.push(["exit",t,u]),t},attempt:h(function(e,t){m(e,t.from)}),check:h(p),interrupt:h(p,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,o=[];for(;++r<e.length;){let i;let a=e[r];if("string"==typeof a)i=a;else switch(a){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i=t?" ":" ";break;case -1:if(!t&&n)continue;i=" ";break;default:i=String.fromCharCode(a)}n=-2===a,o.push(i)}return o.join("")}(d(e),t)},now:f,defineSkip:function(e){o[e.line]=e.column,g()},write:function(e){return(a=ak(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=a0(i,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){let n;let r=t.start._index,o=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;if(r===i)n=[e[r].slice(o,a)];else{if(n=e.slice(r,i),o>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(o):n.shift()}a>0&&n.push(e[i].slice(0,a))}return n}(a,e)}function f(){let{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function p(e,t){t.restore()}function h(e,t){return function(n,o,i){let a,c,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function h(e){return(a=e,c=0,0===e.length)?i:m(e[c])}function m(e){return function(n){return(p=function(){let e=f(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(l);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,l=i,g()},from:o}}(),d=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,b,v)(n)}}function b(t){return e(d,p),o}function v(e){return(p.restore(),++c<a.length)?m(a[c]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&aC(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}(t,e,n)}}})(n).document().write((o=1,i="",a=!0,function(e,t,n){let l,s,u,c,d;let f=[];for(e=i+e.toString(t),u=0,i="",a&&(65279===e.charCodeAt(0)&&u++,a=void 0);u<e.length;){if(l_.lastIndex=u,c=(l=l_.exec(e))&&void 0!==l.index?l.index:e.length,d=e.charCodeAt(c),!l){i=e.slice(u);break}if(10===d&&u===c&&r)f.push(-3),r=void 0;else switch(r&&(f.push(-5),r=void 0),u<c&&(f.push(e.slice(u,c)),o+=c-u),d){case 0:f.push(65533),o++;break;case 9:for(s=4*Math.ceil(o/4),f.push(-2);o++<s;)f.push(-1);break;case 10:f.push(-4),o=1;break;default:r=!0,o=1}u=c+1}return n&&(r&&f.push(-5),i&&f.push(i),f.push(null)),f})(e,t,!0))))};function lz(e){return{line:e.line,column:e.column,offset:e.offset}}function lL(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+i3({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+i3({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+i3({start:t.start,end:t.end})+") is still open")}function lH(e){Object.assign(this,{Parser:t=>lB(t,Object.assign({},this.data("settings"),e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))})}function lW(e){let t=[],n=-1,r=0,o=0;for(;++n<e.length;){let i=e.charCodeAt(n),a="";if(37===i&&a$(e.charCodeAt(n+1))&&a$(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}let lV=function(e){if(null==e)return lq;if("string"==typeof e)return lU(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lV(e[n]);return lU(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e):lU(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("function"==typeof e)return lU(e);throw Error("Expected function, string, or object as test")};function lU(e){return function(t,...n){return!!(t&&"object"==typeof t&&"type"in t&&e.call(this,t,...n))}}function lq(){return!0}let lG=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);let o=lV(t),i=r?-1:1;(function e(a,l,s){let u=a&&"object"==typeof a?a:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,f,p=[];if((!t||o(a,l,s[s.length-1]||null))&&!1===(p=Array.isArray(u=n(a,s))?u:"number"==typeof u?[!0,u]:[u])[0])return p;if(a.children&&"skip"!==p[0])for(d=(r?a.children.length:-1)+i,f=s.concat(a);d>-1&&d<a.children.length;){if(!1===(c=e(a.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+i}return p}})(e,void 0,[])()},lX=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),lG(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)},lK=lJ("start"),lY=lJ("end");function lJ(e){return function(t){let n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}let lQ={}.hasOwnProperty;function l0(e){return String(e||"").toUpperCase()}function l1(e,t){let n;let r=String(t.identifier).toUpperCase(),o=lW(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);-1===i?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=i+1);let a=e.footnoteCounts[r],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let s={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,s),e.applyData(t,s)}function l2(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};let o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});let a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function l5(e){let t=e.spread;return null==t?e.children.length>1:t}function l3(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}let l6={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:l1,footnote:function(e,t){let n=e.footnoteById,r=1;for(;(r in n);)r++;let o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},l1(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){let n=e.definition(t.identifier);if(!n)return l2(e,t);let r={src:lW(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);let o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:lW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=e.definition(t.identifier);if(!n)return l2(e,t);let r={href:lW(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);let o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:lW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=l5(n[r])}return t}(n):l5(t),i={},a=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){let e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}let s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){let e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),o=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=lK(t.children[1]),a=lY(t.children[t.children.length-1]);i.line&&a.line&&(r.position={start:i,end:a}),o.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length,l=-1,s=[];for(;++l<a;){let n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(t,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),o=0,i=[];for(;r;)i.push(l3(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(l3(t.slice(o),o>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:l4,yaml:l4,definition:l4,footnoteDefinition:l4};function l4(){return null}let l8={}.hasOwnProperty;function l7(e,t){e.position&&(t.position={start:lK(e),end:lY(e)})}function l9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function se(e,t,n){let r=t&&t.type;if(!r)throw Error("Expected node, got `"+t+"`");return l8.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:st(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){let n=t.data||{},r="value"in t&&!(l8.call(n,"hProperties")||l8.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:st(e,t)};return e.patch(t,r),e.applyData(t,r)}(e,t)}function st(e,t){let n=[];if("children"in t){let r=t.children,o=-1;for(;++o<r.length;){let i=se(e,r[o],t);if(i){if(o&&"break"===r[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function sn(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function sr(e,t){let n=function(e,t){let n=t||{},r=n.allowDangerousHtml||!1,o={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...l6,...n.handlers},a.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return lX(e,"definition",e=>{let n=l0(e.identifier);n&&!lQ.call(t,n)&&(t[n]=e)}),function(e){let n=l0(e);return n&&lQ.call(t,n)?t[n]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.patch=l7,a.applyData=l9,a.one=function(e,t){return se(a,e,t)},a.all=function(e){return st(a,e)},a.wrap=sn,a.augment=i,lX(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();l8.call(o,t)||(o[t]=e)}),a;function i(e,t){if(e&&"data"in e&&e.data){let n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){let n="type"in e?e:{position:e};!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column||(t.position={start:lK(n),end:lY(n)})}return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),o=function(e){let t=[],n=-1;for(;++n<e.footnoteOrder.length;){let r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;let o=e.all(r),i=String(r.identifier).toUpperCase(),a=lW(i.toLowerCase()),l=0,s=[];for(;++l<=e.footnoteCounts[i];){let t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(t)}let u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){let e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...s)}else o.push(...s);let c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,c),t.push(c)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}var so=function(e,t){var n;return e&&"run"in e?(n,r,o)=>{e.run(sr(n,t),r,e=>{o(e)})}:(n=e||t,e=>sr(e,n))},si=n(38259);class sa{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function sl(e,t){let n={},r={},o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new sa(n,r,t)}function ss(e){return e.toLowerCase()}sa.prototype.property={},sa.prototype.normal={},sa.prototype.space=null;class su{constructor(e,t){this.property=e,this.attribute=t}}su.prototype.space=null,su.prototype.boolean=!1,su.prototype.booleanish=!1,su.prototype.overloadedBoolean=!1,su.prototype.number=!1,su.prototype.commaSeparated=!1,su.prototype.spaceSeparated=!1,su.prototype.commaOrSpaceSeparated=!1,su.prototype.mustUseProperty=!1,su.prototype.defined=!1;let sc=0,sd=sv(),sf=sv(),sp=sv(),sh=sv(),sm=sv(),sg=sv(),sb=sv();function sv(){return 2**++sc}let sy=Object.keys(e7);class sx extends su{constructor(e,t,n,r){var o,i;let a=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++a<sy.length;){let e=sy[a];o=sy[a],(i=(n&e7[e])===e7[e])&&(this[o]=i)}}}sx.prototype.defined=!0;let sw={}.hasOwnProperty;function sC(e){let t;let n={},r={};for(t in e.properties)if(sw.call(e.properties,t)){let o=e.properties[t],i=new sx(t,e.transform(e.attributes||{},t),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(i.mustUseProperty=!0),n[t]=i,r[ss(t)]=t,r[ss(i.attribute)]=t}return new sa(n,r,e.space)}let sk=sC({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),sD=sC({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function sE(e,t){return t in e?e[t]:t}function sS(e,t){return sE(e,t.toLowerCase())}let s$=sC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:sS,properties:{xmlns:null,xmlnsXLink:null}}),sO=sC({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:sf,ariaAutoComplete:null,ariaBusy:sf,ariaChecked:sf,ariaColCount:sh,ariaColIndex:sh,ariaColSpan:sh,ariaControls:sm,ariaCurrent:null,ariaDescribedBy:sm,ariaDetails:null,ariaDisabled:sf,ariaDropEffect:sm,ariaErrorMessage:null,ariaExpanded:sf,ariaFlowTo:sm,ariaGrabbed:sf,ariaHasPopup:null,ariaHidden:sf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:sm,ariaLevel:sh,ariaLive:null,ariaModal:sf,ariaMultiLine:sf,ariaMultiSelectable:sf,ariaOrientation:null,ariaOwns:sm,ariaPlaceholder:null,ariaPosInSet:sh,ariaPressed:sf,ariaReadOnly:sf,ariaRelevant:null,ariaRequired:sf,ariaRoleDescription:sm,ariaRowCount:sh,ariaRowIndex:sh,ariaRowSpan:sh,ariaSelected:sf,ariaSetSize:sh,ariaSort:null,ariaValueMax:sh,ariaValueMin:sh,ariaValueNow:sh,ariaValueText:null,role:null}}),sF=sC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:sS,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:sg,acceptCharset:sm,accessKey:sm,action:null,allow:null,allowFullScreen:sd,allowPaymentRequest:sd,allowUserMedia:sd,alt:null,as:null,async:sd,autoCapitalize:null,autoComplete:sm,autoFocus:sd,autoPlay:sd,blocking:sm,capture:null,charSet:null,checked:sd,cite:null,className:sm,cols:sh,colSpan:null,content:null,contentEditable:sf,controls:sd,controlsList:sm,coords:sh|sg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:sd,defer:sd,dir:null,dirName:null,disabled:sd,download:sp,draggable:sf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:sd,formTarget:null,headers:sm,height:sh,hidden:sd,high:sh,href:null,hrefLang:null,htmlFor:sm,httpEquiv:sm,id:null,imageSizes:null,imageSrcSet:null,inert:sd,inputMode:null,integrity:null,is:null,isMap:sd,itemId:null,itemProp:sm,itemRef:sm,itemScope:sd,itemType:sm,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:sd,low:sh,manifest:null,max:null,maxLength:sh,media:null,method:null,min:null,minLength:sh,multiple:sd,muted:sd,name:null,nonce:null,noModule:sd,noValidate:sd,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:sd,optimum:sh,pattern:null,ping:sm,placeholder:null,playsInline:sd,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:sd,referrerPolicy:null,rel:sm,required:sd,reversed:sd,rows:sh,rowSpan:sh,sandbox:sm,scope:null,scoped:sd,seamless:sd,selected:sd,shadowRootClonable:sd,shadowRootDelegatesFocus:sd,shadowRootMode:null,shape:null,size:sh,sizes:null,slot:null,span:sh,spellCheck:sf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:sh,step:null,style:null,tabIndex:sh,target:null,title:null,translate:null,type:null,typeMustMatch:sd,useMap:null,value:sf,width:sh,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:sm,axis:null,background:null,bgColor:null,border:sh,borderColor:null,bottomMargin:sh,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:sd,declare:sd,event:null,face:null,frame:null,frameBorder:null,hSpace:sh,leftMargin:sh,link:null,longDesc:null,lowSrc:null,marginHeight:sh,marginWidth:sh,noResize:sd,noHref:sd,noShade:sd,noWrap:sd,object:null,profile:null,prompt:null,rev:null,rightMargin:sh,rules:null,scheme:null,scrolling:sf,standby:null,summary:null,text:null,topMargin:sh,valueType:null,version:null,vAlign:null,vLink:null,vSpace:sh,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:sd,disableRemotePlayback:sd,prefix:null,property:null,results:sh,security:null,unselectable:null}}),sj=sC({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:sE,properties:{about:sb,accentHeight:sh,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:sh,amplitude:sh,arabicForm:null,ascent:sh,attributeName:null,attributeType:null,azimuth:sh,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:sh,by:null,calcMode:null,capHeight:sh,className:sm,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:sh,diffuseConstant:sh,direction:null,display:null,dur:null,divisor:sh,dominantBaseline:null,download:sd,dx:null,dy:null,edgeMode:null,editable:null,elevation:sh,enableBackground:null,end:null,event:null,exponent:sh,externalResourcesRequired:null,fill:null,fillOpacity:sh,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:sg,g2:sg,glyphName:sg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:sh,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:sh,horizOriginX:sh,horizOriginY:sh,id:null,ideographic:sh,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:sh,k:sh,k1:sh,k2:sh,k3:sh,k4:sh,kernelMatrix:sb,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:sh,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:sh,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:sh,overlineThickness:sh,paintOrder:null,panose1:null,path:null,pathLength:sh,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:sm,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:sh,pointsAtY:sh,pointsAtZ:sh,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sb,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sb,rev:sb,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sb,requiredFeatures:sb,requiredFonts:sb,requiredFormats:sb,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:sh,specularExponent:sh,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:sh,strikethroughThickness:sh,string:null,stroke:null,strokeDashArray:sb,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:sh,strokeOpacity:sh,strokeWidth:null,style:null,surfaceScale:sh,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sb,tabIndex:sh,tableValues:null,target:null,targetX:sh,targetY:sh,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sb,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:sh,underlineThickness:sh,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:sh,values:null,vAlphabetic:sh,vMathematical:sh,vectorEffect:null,vHanging:sh,vIdeographic:sh,version:null,vertAdvY:sh,vertOriginX:sh,vertOriginY:sh,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:sh,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),sA=sl([sD,sk,s$,sO,sF],"html"),sI=sl([sD,sk,s$,sO,sj],"svg");function sT(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{lX(t,"element",(t,n,r)=>{let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"==typeof n&&(o=!e.allowElement(t,n,r)),o&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var s_=n(18981);let sM=/^data[-\w.:]+$/i,sP=/-[a-z]/g,sN=/[A-Z]/g;function sZ(e,t){let n=ss(t),r=t,o=su;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&sM.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(sP,sB);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!sP.test(e)){let n=e.replace(sN,sR);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=sx}return new o(r,t)}function sR(e){return"-"+e.toLowerCase()}function sB(e){return e.charAt(1).toUpperCase()}let sz={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function sL(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function sH(e){return e.join(" ").trim()}function sW(e){let t=[],n=String(e||""),r=n.indexOf(","),o=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);let e=n.slice(o,r).trim();(e||!i)&&t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function sV(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}var sU=n(13697);let sq=["http","https","mailto","tel"];function sG(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<sq.length;){let e=sq[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return -1!==(o=t.indexOf("?"))&&r>o||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"}let sX={}.hasOwnProperty,sK=new Set(["table","thead","tbody","tfoot","tr"]);function sY(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function sJ(e,t){return t.toUpperCase()}let sQ={}.hasOwnProperty,s0={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function s1(e){for(let t in s0)if(sQ.call(s0,t)&&sQ.call(e,t)){let e=s0[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete s0[t]}let t=ac().use(lH).use(e.remarkPlugins||[]).use(so,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(sT,e),n=new ar;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let o=tt.createElement(tt.Fragment,{},function e(t,n){let r;let o=[],i=-1;for(;++i<n.children.length;)"element"===(r=n.children[i]).type?o.push(function(t,n,r,o){let i;let a=t.options,l=void 0===a.transformLinkUri?sG:a.transformLinkUri,s=t.schema,u=n.tagName,c={},d=s;if("html"===s.space&&"svg"===u&&(d=sI,t.schema=d),n.properties)for(i in n.properties)sX.call(n.properties,i)&&function(e,t,n,r){let o=sZ(r.schema,t),i=n;null!=i&&i==i&&(Array.isArray(i)&&(i=o.commaSeparated?sV(i):sH(i)),"style"===o.property&&"string"==typeof i&&(i=function(e){let t={};try{sU(e,function(e,n){t[("-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e).replace(/-([a-z])/g,sJ)]=n})}catch{}return t}(i)),o.space&&o.property?e[sX.call(sz,o.property)?sz[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}(c,i,n.properties[i],t);("ol"===u||"ul"===u)&&t.listDepth++;let f=e(t,n);("ol"===u||"ul"===u)&&t.listDepth--,t.schema=s;let p=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=a.components&&sX.call(a.components,u)?a.components[u]:u,m="string"==typeof h||h===tt.Fragment;if(!s_.isValidElementType(h))throw TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(c.key=r,"a"===u&&a.linkTarget&&(c.target="function"==typeof a.linkTarget?a.linkTarget(String(c.href||""),n.children,"string"==typeof c.title?c.title:null):a.linkTarget),"a"===u&&l&&(c.href=l(String(c.href||""),n.children,"string"==typeof c.title?c.title:null)),m||"code"!==u||"element"!==o.type||"pre"===o.tagName||(c.inline=!0),m||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(c.level=Number.parseInt(u.charAt(1),10)),"img"===u&&a.transformImageUri&&(c.src=a.transformImageUri(String(c.src||""),String(c.alt||""),"string"==typeof c.title?c.title:null)),!m&&"li"===u&&"element"===o.type){let e=function(e){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(n);c.checked=e&&e.properties?!!e.properties.checked:null,c.index=sY(o,n),c.ordered="ol"===o.tagName}return m||"ol"!==u&&"ul"!==u||(c.ordered="ol"===u,c.depth=t.listDepth),"td"!==u&&"th"!==u||(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),m||(c.isHeader="th"===u)),m||"tr"!==u||"element"!==o.type||(c.isHeader="thead"===o.tagName),a.sourcePos&&(c["data-sourcepos"]=[p.start.line,":",p.start.column,"-",p.end.line,":",p.end.column].map(String).join("")),!m&&a.rawSourcePos&&(c.sourcePosition=n.position),!m&&a.includeElementIndex&&(c.index=sY(o,n),c.siblingCount=sY(o)),m||(c.node=n),f.length>0?tt.createElement(h,c,f):tt.createElement(h,c)}(t,r,i,n)):"text"===r.type?"element"===n.type&&sK.has(n.tagName)&&function(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(r)||o.push(r.value):"raw"!==r.type||t.options.skipHtml||o.push(r.value);return o}({options:e,schema:sA,listDepth:0},r));return e.className&&(o=tt.createElement("div",{className:e.className},o)),o}s1.propTypes={children:si.string,className:si.string,allowElement:si.func,allowedElements:si.arrayOf(si.string),disallowedElements:si.arrayOf(si.string),unwrapDisallowed:si.bool,remarkPlugins:si.arrayOf(si.oneOfType([si.object,si.func,si.arrayOf(si.oneOfType([si.bool,si.string,si.object,si.func,si.arrayOf(si.any)]))])),rehypePlugins:si.arrayOf(si.oneOfType([si.object,si.func,si.arrayOf(si.oneOfType([si.bool,si.string,si.object,si.func,si.arrayOf(si.any)]))])),sourcePos:si.bool,rawSourcePos:si.bool,skipHtml:si.bool,includeElementIndex:si.bool,transformLinkUri:si.oneOfType([si.func,si.bool]),linkTarget:si.oneOfType([si.func,si.string]),transformImageUri:si.func,components:si.object};var s2=n(26796);let s5=function(e){if(null==e)return s6;if("string"==typeof e)return function(t){return s6(t)&&t.tagName===e};if("object"==typeof e)return function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=s5(e[n]);return s3(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e);if("function"==typeof e)return s3(e);throw Error("Expected function, string, or array as test")};function s3(e){return function(t,...n){return s6(t)&&!!e.call(this,t,...n)}}function s6(e){return!!(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}let s4=function(e,t,n){let r=lV(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t];return null},s8=/\n/g,s7=/[\t ]+/g,s9=s5("br"),ue=s5("p"),ut=s5(["th","td"]),un=s5("tr"),ur=s5(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),uo=s5(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function ui(e,t){let n;let r=String(e.value),o=[],i=[],a=0;for(;a<=r.length;){s8.lastIndex=a;let e=s8.exec(r),n=e&&"index"in e?e.index:r.length;o.push(function(e,t,n){let r;let o=[],i=0;for(;i<e.length;){s7.lastIndex=i;let n=s7.exec(e);r=n?n.index:e.length,i||r||!n||t||o.push(""),i!==r&&o.push(e.slice(i,r)),i=n?r+n[0].length:r}return i===r||n||o.push(""),o.join(" ")}(r.slice(a,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==a||t.breakBefore,n!==r.length||t.breakAfter)),a=n+1}let l=-1;for(;++l<o.length;)8203===o[l].charCodeAt(o[l].length-1)||l<o.length-1&&8203===o[l+1].charCodeAt(0)?(i.push(o[l]),n=void 0):o[l]?("number"==typeof n&&i.push(n),i.push(o[l]),n=0):(0===l||l===o.length-1)&&i.push(0);return i}function ua(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}let ul={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"},us=/[#.]/g,uu=new Set(["menu","submit","reset","button"]),uc={}.hasOwnProperty;function ud(e,t,n){let r=n&&function(e){let t={},n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,o,...i){let a,l=-1;if(null==n)a={type:"root",children:[]},i.unshift(o);else{var s;if((a=function(e,t){let n,r;let o=e||"",i={},a=0;for(;a<o.length;){us.lastIndex=a;let e=us.exec(o),t=o.slice(a,e?e.index:o.length);t&&(n?"#"===n?i.id=t:Array.isArray(i.className)?i.className.push(t):i.className=[t]:r=t,a+=t.length),e&&(n=e[0],a++)}return{type:"element",tagName:r||t||"div",properties:i,children:[]}}(n,t)).tagName=a.tagName.toLowerCase(),r&&uc.call(r,a.tagName)&&(a.tagName=r[a.tagName]),s=a.tagName,!(null==o||"object"!=typeof o||Array.isArray(o))&&("input"===s||!o.type||"string"!=typeof o.type||!("children"in o&&Array.isArray(o.children))&&("button"===s?uu.has(o.type.toLowerCase()):!("value"in o)))){let t;for(t in o)uc.call(o,t)&&function(e,t,n,r){let o;let i=sZ(e,n),a=-1;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?sL(r):i.commaSeparated?sW(r):i.commaOrSpaceSeparated?sL(sW(r).join(" ")):uf(i,i.property,r):Array.isArray(r)?r.concat():"style"===i.property?function(e){let t;let n=[];for(t in e)uc.call(e,t)&&n.push([t,e[t]].join(": "));return n.join("; ")}(r):String(r);if(Array.isArray(o)){let e=[];for(;++a<o.length;)e[a]=uf(i,i.property,o[a]);o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}(e,a.properties,t,o[t])}else i.unshift(o)}for(;++l<i.length;)!function e(t,n){let r=-1;if(null==n);else if("string"==typeof n||"number"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(;++r<n.length;)e(t,n[r]);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(a.children,i[l]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function uf(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||ss(n)===ss(t)))return!0}return n}let up=ud(sI,"g",["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","solidColor","textArea","textPath"]),uh=ud(sA,"div");function um(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,r=n===ul.svg?up:uh,o=n===ul.html?e.tagName.toLowerCase():e.tagName,i=n===ul.html&&"template"===o?e.content:e,a=e.getAttributeNames(),l={},s=-1;for(;++s<a.length;)l[a[s]]=e.getAttribute(a[s])||"";return r(o,l,ug(i,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return{type:"root",children:ug(e,t)};case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function ug(e,t){let n=e.childNodes,r=[],o=-1;for(;++o<n.length;){let e=um(n[o],t);void 0!==e&&r.push(e)}return r}let ub=new DOMParser,uv=Object.assign;function uy(e){let t=e||{},n=t.throwOnError||!1;return(e,r)=>{lX(e,"element",e=>{var o,i;let a;let l=e.properties&&Array.isArray(e.properties.className)?e.properties.className:[],s=l.includes("math-inline"),u=l.includes("math-display");if(!s&&!u)return;let c=function(e,t={}){let n;let r="children"in e?e.children:[],o=uo(e),i=ua(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),a=[];("text"===e.type||"comment"===e.type)&&a.push(...ui(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<r.length;)a.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let o,i;let a=ua(t,r),l=t.children||[],s=-1,u=[];if(ur(t))return u;for(s9(t)?i="\n":un(t)&&s4(n,t,un)?i="\n":ue(t)?(o=2,i=2):uo(t)&&(o=1,i=1);++s<l.length;)u=u.concat(e(l[s],t,{whitespace:a,breakBefore:s?void 0:o,breakAfter:s<l.length-1?s9(l[s+1]):i}));return ut(t)&&s4(n,t,ut)&&u.push(" "),o&&u.unshift(o),i&&u.push(i),u}(t,n,r):"text"===t.type?"normal"===r.whitespace?ui(t,r):[String(t.value)]:[]}(r[l],e,{whitespace:i,breakBefore:l?void 0:o,breakAfter:l<r.length-1?s9(r[l+1]):o}));let s=[];for(l=-1;++l<a.length;){let e=a[l];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&s.push("\n".repeat(n)||" "),n=-1,s.push(e))}return s.join("")}(e,{whitespace:"pre"});try{a=s2.ZP.renderToString(c,uv({},t,{displayMode:u,throwOnError:!0}))}catch(i){let o=["rehype-katex",i.name.toLowerCase()].join(":");if(r[n?"fail":"message"](i.message,e.position,o),"ParseError"!==i.name){e.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(i),style:"color:"+(t.errorColor||"#cc0000")},children:[{type:"text",value:c}]}];return}a=s2.ZP.renderToString(c,uv({},t,{displayMode:u,throwOnError:!1,strict:"ignore"}))}let d=(o=a,((i=function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(o))?um(i,{}):void 0)||{type:"root",children:[]});e.children=d.children})}}let ux={tokenize:function(e,t,n){let r=0;return function t(i){return(87===i||119===i)&&r<3?(r++,e.consume(i),t):46===i&&3===r?(e.consume(i),o):n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},uw={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(uk,s,l)(t):null===t||a_(t)||aN(t)||45!==t&&aP(t)?s(t):(i=!0,e.consume(t),a)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},uC={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(uk,t,i)(a):null===a||a_(a)||aN(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},uk={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||a_(a)||aN(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||a_(e)||aN(e)?t(e):r(e)}function i(t){return aS(t)?function t(o){return 59===o?(e.consume(o),r):aS(o)?(e.consume(o),t):n(o)}(t):n(t)}},partial:!0},uD={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return a$(e)?n(e):t(e)}},partial:!0},uE={tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!uA.call(r,r.previous)||uM(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ux,e.attempt(uw,e.attempt(uC,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:uA},uS={tokenize:function(e,t,n){let r=this,o="",i=!1;return function(t){return(72===t||104===t)&&uI.call(r,r.previous)&&!uM(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if(aS(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),i)?s:(i=!0,l):n(t)}function s(t){return null===t||aF(t)||a_(t)||aN(t)||aP(t)?n(t):e.attempt(uw,e.attempt(uC,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:uI},u$={tokenize:function(e,t,n){let r,o;let i=this;return function(t){return!u_(t)||!uT.call(i,i.previous)||uM(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return u_(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(uD,s,l)(t):45===t||95===t||a$(t)?(o=!0,e.consume(t),a):s(t)}function l(t){return e.consume(t),r=!0,a}function s(a){return o&&r&&aS(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:uT},uO={},uF={text:uO},uj=48;for(;uj<123;)uO[uj]=u$,58==++uj?uj=65:91===uj&&(uj=97);function uA(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||a_(e)}function uI(e){return!aS(e)}function uT(e){return!(47===e||u_(e))}function u_(e){return 43===e||45===e||46===e||95===e||a$(e)}function uM(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}uO[43]=u$,uO[45]=u$,uO[46]=u$,uO[95]=u$,uO[72]=[u$,uS],uO[104]=[u$,uS],uO[87]=[u$,uE],uO[119]=[u$,uE];let uP={tokenize:function(e,t,n){let r=this;return aR(e,function(e){let o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function uN(e,t,n){let r;let o=this,i=o.events.length,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);for(;i--;){let e=o.events[i][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!r||!r._balanced)return n(i);let l=le(o.sliceSerialize({start:r.end,end:o.now()}));return 94===l.codePointAt(0)&&a.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function uZ(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function uR(e,t,n){let r;let o=this,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(a>999||93===l&&!r||null===l||91===l||a_(l))return n(l);if(93===l){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return i.includes(le(o.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return a_(l)||(r=!0),a++,e.consume(l),92===l?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function uB(e,t,n){let r,o;let i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!o||null===t||91===t||a_(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=le(i.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return a_(t)||(o=!0),l++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),aR(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function uz(e,t,n){return e.check(aH,t,e.attempt(uP,t,n))}function uL(e){e.exit("gfmFootnoteDefinition")}class uH{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort((e,t)=>e[0]-t[0]),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}let uW={flow:{null:{tokenize:function(e,t,n){let r;let o=this,i=0,a=0;return function(e){let t=o.events.length-1;for(;t>-1;){let e=o.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?o.events[t][1].type:null,i="tableHead"===r||"tableRow"===r?v:l;return i===v&&o.parser.lazy[o.now().line]?n(e):i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,a+=1),s(t)}function s(t){return null===t?n(t):aT(t)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):aM(t)?aR(e,s,"whitespace")(t):(a+=1,r&&(r=!1,i+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),u(t))}function u(t){return null===t||124===t||a_(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(o.interrupt=!1,o.parser.lazy[o.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,aM(t))?aR(e,f,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return aM(t)?aR(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||aT(t)?b(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return aM(t)?aR(e,b,"whitespace")(t):b(t)}function b(o){return 124===o?f(o):null===o||aT(o)?r&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(o)):n(o):n(o)}function v(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||aT(n)?(e.exit("tableRow"),t(n)):aM(n)?aR(e,y,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||a_(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?w:x)}function w(t){return 92===t||124===t?(e.consume(t),x):x(t)}},resolveAll:function(e,t){let n,r,o,i=-1,a=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new uH;for(;++i<e.length;){let p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(uU(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,s=[0,0,0,0],u=[0,i+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),l="tableDelimiterRow"===h.type?2:r?3:1):l&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(a=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],o=uV(f,t,s,l,void 0,o),s=[0,0,0,0]),u[2]=i)):"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(u[0]=u[1],o=uV(f,t,s,l,void 0,o)),u=[(s=u)[1],i,0,0])):"tableHead"===h.type?(c=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(u[0]=u[1],o=uV(f,t,s,l,i,o)):0!==u[1]&&(o=uV(f,t,u,l,i,o)),l=0):l&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=i)}for(0!==d&&uU(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){let e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}(t.events,i))}return e}}}};function uV(e,t,n,r,o,i){0!==n[0]&&(i.end=Object.assign({},uq(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));let a=uq(t.events,n[1]);if(i={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){let o=uq(t.events,n[2]),i=uq(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){let r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},uq(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function uU(e,t,n,r,o){let i=[],a=uq(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function uq(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let uG={text:{91:{tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return a_(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return aT(r)?t(r):aM(r)?e.check({tokenize:uX},t,n)(r):n(r)}}}}};function uX(e,t,n){return aR(e,function(e){return null===e?n(e):t(e)},"whitespace")}function uK(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}let uY={}.hasOwnProperty,uJ=function(e,t,n,r){let o,i;"string"==typeof t||t instanceof RegExp?(i=[[t,n]],o=r):(i=t,o=n),o||(o={});let a=lV(o.ignore||[]),l=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([uQ(e[n][0]),u0(e[n][1])])}else{let n;for(n in e)uY.call(e,n)&&t.push([uQ(n),u0(e[n])])}return t}(i),s=-1;for(;++s<l.length;)lG(e,"text",u);return e;function u(e,t){let n,r=-1;for(;++r<t.length;){let e=t[r];if(a(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=l[s][0],o=l[s][1],i=0,a=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,a={index:d.index,input:d.input,stack:[...t,e]},l=o(...d,a);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1!==l&&(i!==n&&c.push({type:"text",value:e.value.slice(i,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),i=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(i<e.value.length&&c.push({type:"text",value:e.value.slice(i)}),n.children.splice(a,1,...c)):c=[e],a+c.length}(e,t)}};function uQ(e){return"string"==typeof e?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function u0(e){return"function"==typeof e?e:()=>e}let u1="phrasing",u2=["autolink","link","image","label"],u5={transforms:[function(e){uJ(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,u4],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,u8]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:u6,literalAutolinkHttp:u6,literalAutolinkWww:u6},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},u3={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:u1,notInConstruct:u2},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:u1,notInConstruct:u2},{character:":",before:"[ps]",after:"\\/",inConstruct:u1,notInConstruct:u2}]};function u6(e){this.config.enter.autolinkProtocol.call(this,e)}function u4(e,t,n,r,o){let i="";if(!u7(o)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),o=uK(e,"("),i=uK(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;let l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function u8(e,t,n,r){return!(!u7(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function u7(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||aN(n)||aP(n))&&(!t||47!==n)}function u9(e){return e.label||!e.identifier?e.label||"":lN(e.identifier)}let ce=/\r?\n|\r/g;function ct(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function cn(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function cr(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],a={},l=-1;for(;++l<e.unsafe.length;){var s;let t;let n=e.unsafe[l];if(!cn(s=e.stack,n.inConstruct,!0)||cn(s,n.notInConstruct,!1))continue;let i=ct(n);for(;t=i.exec(r);){let e="before"in n||!!n.atBreak,r="after"in n,i=t.index+(e?t[1].length:0);o.includes(i)?(a[i].before&&!e&&(a[i].before=!1),a[i].after&&!r&&(a[i].after=!1)):(o.push(i),a[i]={before:e,after:r})}}o.sort(co);let u=n.before?n.before.length:0,c=r.length-(n.after?n.after.length:0);for(l=-1;++l<o.length;){let e=o[l];!(e<u)&&!(e>=c)&&(!(e+1<c)||o[l+1]!==e+1||!a[e].after||a[e+1].before||a[e+1].after)&&(o[l-1]!==e-1||!a[e].before||a[e-1].before||a[e-1].after)&&(u!==e&&i.push(ci(r.slice(u,e),"\\")),u=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),u++):i.push("\\"))}return i.push(ci(r.slice(u,c),n.after)),i.join("")}function co(e,t){return e-t}function ci(e,t){let n;let r=/\\(?=[!-/:-@[-`{-~])/g,o=[],i=[],a=e+t,l=-1,s=0;for(;n=r.exec(a);)o.push(n.index);for(;++l<o.length;)s!==o[l]&&i.push(e.slice(s,o[l])),i.push("\\"),s=o[l];return i.push(e.slice(s)),i.join("")}function ca(e){let t=e||{},n=t.now||{},r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return o+=n.length-1,i=1===n.length?i+a.length:1+a.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}function cl(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function cs(){this.buffer()}function cu(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=le(this.sliceSerialize(e)).toLowerCase()}function cc(e){this.exit(e)}function cd(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function cf(){this.buffer()}function cp(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=le(this.sliceSerialize(e)).toLowerCase()}function ch(e){this.exit(e)}function cm(e,t,n,r){let o=ca(r),i=o.move("[^"),a=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(cr(n,u9(e),{...o.current(),before:i,after:"]"})),l(),a(),i+=o.move("]")}function cg(e,t,n,r){let o=ca(r),i=o.move("[^"),a=n.enter("footnoteDefinition"),l=n.enter("label");return i+=o.move(cr(n,u9(e),{...o.current(),before:i,after:"]"})),l(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(function(e,t){let n;let r=[],o=0,i=0;for(;n=ce.exec(e);)a(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,i++;return a(e.slice(o)),r.join("");function a(e){r.push(t(e,i,!e))}}(function(e,t,n){let r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[],l=-1;for(r.push(-1);++l<o.length;){let n=o[l];r[r.length-1]=l,a.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),l<o.length-1&&a.push(i.move(function(e,t,n,r){let o=r.join.length;for(;o--;){let i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n<!---->\n\n"}return"\n\n"}(n,o[l+1],e,t)))}return r.pop(),a.join("")}(e,n,o.current()),cb)),a(),i}function cb(e,t,n){return 0===t?e:(n?"":" ")+e}function cv(e,t,n){let r=t.indexStack,o=e.children||[],i=[],a=-1,l=n.before;r.push(-1);let s=t.createTracker(n);for(;++a<o.length;){let u;let c=o[a];if(r[r.length-1]=a,a+1<o.length){let n=t.handle.handlers[o[a+1].type];n&&n.peek&&(n=n.peek),u=n?n(o[a+1],e,t,{before:"",after:"",...s.current()}).charAt(0):""}else u=n.after;i.length>0&&("\r"===l||"\n"===l)&&"html"===c.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),l=" ",(s=t.createTracker(n)).move(i.join(""))),i.push(s.move(t.handle(c,e,t,{...s.current(),before:l,after:u}))),l=i[i.length-1].slice(-1)}return r.pop(),i.join("")}cm.peek=function(){return"["},cw.peek=function(){return"~"};let cy={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},cx={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:cw}};function cw(e,t,n,r){let o=ca(r),i=n.enter("strikethrough"),a=o.move("~~");return a+=cv(e,n,{...o.current(),before:a,after:"~"})+o.move("~~"),i(),a}function cC(e,t,n){let r=e.value||"",o="`",i=-1;for(;RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){let e;let t=n.unsafe[i],o=ct(t);if(t.atBreak)for(;e=o.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return o+r+o}function ck(e){return e.length}function cD(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}cC.peek=function(){return"`"};let cE={enter:{table:function(e){let t=e._align;this.enter({type:"table",align:t.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:c$,tableHeader:c$,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,cO)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:cS,tableHeader:cS,tableRow:cS}};function cS(e){this.exit(e)}function c$(e){this.enter({type:"tableCell",children:[]},e)}function cO(e,t){return"|"===t?t:e}let cF={exit:{taskListCheckValueChecked:cA,taskListCheckValueUnchecked:cA,paragraph:function(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){let r;let o=t.children,i=-1;for(;++i<o.length;){let e=o[i];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},cj={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){let o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",l=ca(r);i&&l.move(a);let s=function(e,t,n,r){let o=function(e){let t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),i=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let l=n.createTracker(r);l.move(i+" ".repeat(a-i.length)),l.shift(a);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?i:i+" ".repeat(a-i.length))+e});return s(),u}(e,t,n,{...r,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),s}}};function cA(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function cI(e={}){let t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",aE([uF,{document:{91:{tokenize:uB,continuation:{tokenize:uz},exit:uL}},text:{91:{tokenize:uR},93:{add:"after",tokenize:uN,resolveTo:uZ}}},function(e){let t=(e||{}).singleTilde,n={tokenize:function(e,n,r){let o=this.previous,i=this.events,a=0;return function(l){return 126===o&&"characterEscape"!==i[i.length-1][1].type?r(l):(e.enter("strikethroughSequenceTemporary"),function i(l){let s=lw(o);if(126===l)return a>1?r(l):(e.consume(l),a++,i);if(a<2&&!t)return r(l);let u=e.exit("strikethroughSequenceTemporary"),c=lw(l);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(l)}(l))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],l=t.parser.constructs.insideSpan.null;l&&aC(a,a.length,0,a0(l,e.slice(r+1,n),t)),aC(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),aC(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(e),uW,uG])),n("fromMarkdownExtensions",[u5,{enter:{gfmFootnoteDefinition:cl,gfmFootnoteDefinitionLabelString:cs,gfmFootnoteCall:cd,gfmFootnoteCallString:cf},exit:{gfmFootnoteDefinition:cc,gfmFootnoteDefinitionLabelString:cu,gfmFootnoteCall:ch,gfmFootnoteCallString:cp}},cy,cE,cF]),n("toMarkdownExtensions",{extensions:[u3,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:cg,footnoteReference:cm}},cx,function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return l(function(e,t,n){let r=e.children,o=-1,i=[],a=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return a(),i}(e,n,r),e.align)},tableRow:function(e,t,n,r){let o=l([s(e,n,r)]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,n){let r=cC(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function a(e,t,n,r){let o=n.enter("tableCell"),a=n.enter("phrasing"),l=cv(e,n,{...r,before:i,after:i});return a(),o(),l}function l(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),o=n.stringLength||ck,i=[],a=[],l=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],i=-1;for(e[c].length>u&&(u=e[c].length);++i<e[c].length;){var d;let a=null==(d=e[c][i])?"":String(d);if(!1!==n.alignDelimiters){let e=o(a);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(a)}a[c]=t,l[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)i[f]=cD(r[f]);else{let e=cD(r);for(;++f<u;)i[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=i[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length),a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&((o=t.length+o+r.length)>s[f]&&(s[f]=o),h[f]=o),p[f]=a}a.splice(1,0,p),l.splice(1,0,h),c=-1;let m=[];for(;++c<a.length;){let e=a[c],t=l[c];f=-1;let r=[];for(;++f<u;){let o=e[f]||"",a="",l="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):l=a=" ".repeat(e/2):l=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===o)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){let r=e.children,o=-1,i=[],l=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],e,t,n);return l(),i}}(e),cj]})}let cT={tokenize:function(e,t,n){let r=this,o=r.events[r.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),a++,t):a<2?n(r):(e.exit("mathFlowFenceSequence"),aR(e,l,"whitespace")(r))}(t)};function l(t){return null===t||aT(t)?s(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||aT(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),s(r)):36===r?n(r):(e.consume(r),t)}(t))}function s(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(c_,u,f)(n)}function u(t){return e.attempt({tokenize:p,partial:!0},f,c)(t)}function c(t){return(i?aR(e,d,"linePrefix",i+1):d)(t)}function d(t){return null===t?f(t):aT(t)?e.attempt(c_,u,f)(t):(e.enter("mathFlowValue"),function t(n){return null===n||aT(n)?(e.exit("mathFlowValue"),d(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("mathFlow"),t(n)}function p(e,t,n){let o=0;return aR(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(o++,e.consume(r),t):o<a?n(r):(e.exit("mathFlowFenceSequence"),aR(e,i,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(r){return null===r||aT(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0},c_={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function cM(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[3][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=o;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[o][1].type="mathTextPadding",o+=2,r-=2;break}}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function cP(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}function cN(e={}){let t;let n=this.data();function r(e,t){(n[e]?n[e]:n[e]=[]).push(t)}r("micromarkExtensions",{flow:{36:cT},text:{36:(null==(t=(e||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let o,i,a=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(o){return 36===o?(e.consume(o),a++,n):a<2&&!t?r(o):(e.exit("mathTextSequence"),l(o))}(n)};function l(t){return null===t?r(t):36===t?(i=e.enter("mathTextSequence"),o=0,function t(r){return 36===r?(e.consume(r),o++,t):o===a?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(i.type="mathTextData",s(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):aT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("mathTextData"),s(t))}function s(t){return null===t||32===t||36===t||aT(t)?(e.exit("mathTextData"),l(t)):(e.consume(t),s)}},resolve:cM,previous:cP})}}),r("fromMarkdownExtensions",function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t,this.setData("mathFlowInside")},mathFlowFence:function(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))},mathFlowFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.exit(e);n.value=t,n.data.hChildren[0].value=t},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),r("toMarkdownExtensions",function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let o=e.value||"",i=ca(r),a="$".repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(o,"$")+1,2)),l=n.enter("mathFlow"),s=i.move(a);if(e.meta){let t=n.enter("mathFlowMeta");s+=i.move(cr(n,e.meta,{before:s,after:"\n",encode:["$"],...i.current()})),t()}return s+=i.move("\n"),o&&(s+=i.move(o+"\n")),s+=i.move(a),l(),s},inlineMath:n}};function n(e,n,r){let o=e.value||"",i=1;for(!t&&i++;RegExp("(^|[^$])"+"\\$".repeat(i)+"([^$]|$)").test(o);)i++;let a="$".repeat(i);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let l=-1;for(;++l<r.unsafe.length;){let e;let t=r.unsafe[l],n=ct(t);if(t.atBreak)for(;e=n.exec(o);){let t=e.index;10===o.codePointAt(t)&&13===o.codePointAt(t-1)&&t--,o=o.slice(0,t)+" "+o.slice(e.index+1)}}return a+o+a}}(e))}var cZ=n(71383),cR=n(53505),cB=n(48810),cz=function(e,t){var n=cB.Z.darkAlgorithm(e,t);return(0,e9.Z)((0,e9.Z)({},n),{},{colorBgLayout:"#20252b",colorBgContainer:"#282c34",colorBgElevated:"#32363e"})},cL=function(e){var t={algorithm:[cB.Z.compactAlgorithm]};return"dark"===e&&t.algorithm.push(cz),t},cH=(0,n(31576).F)({customToken:{editorPrefix:"editor"}}),cW=cH.createStyles,cV=cH.ThemeProvider,cU=function(){return{focusedOutlineColor:"#4c9ffe",colorTypeBoolean:"#D8C152",colorTypeNumber:"#5295C4",colorTypeString:"#149E6D",colorTypeBoolArray:"#D8C152",colorTypeNumberArray:"#239BEF",colorTypeStringArray:"#62AE8D"}};cU({});var cq=function(e){var t=e.token,n=e.css,r=n(ee||(ee=tm(["\n cursor: pointer;\n transition: 150ms background-color ease-in-out;\n &:hover {\n background: ",";\n }\n "])),t.colorFillQuaternary),o=n(et||(et=tm(["\n color: ",";\n background-color: ",";\n border-color: transparent;\n "])),t.colorText,t.colorFillTertiary),i=n(en||(en=tm(["\n color: "," !important;\n background-color: "," !important;\n border-color: "," !important;\n box-shadow: none;\n "])),t.colorText,t.colorFillQuaternary,t.colorPrimary),a=n(er||(er=tm(["\n color: ",";\n background: ",";\n border-color: transparent;\n "])),t.colorTextSecondary,t.colorFillQuaternary);return{defaultButton:n(eo||(eo=tm(["\n ",";\n\n &:hover {\n color: "," !important;\n background: "," !important;\n border-color: transparent !important;\n }\n &:focus {\n ",";\n border-color: "," !important;\n }\n "])),a,t.colorText,t.colorFillSecondary,a,t.colorPrimary),textInfo:n(ei||(ei=tm(["\n color: ",";\n &:hover {\n color: ",";\n }\n "])),t.colorTextSecondary,t.colorText),textDefault:n(ea||(ea=tm(["\n color: ",";\n "])),t.colorTextSecondary),containerBgHover:n(el||(el=tm(["\n cursor: pointer;\n transition: 150ms background-color ease-in-out;\n\n &:hover {\n background: ",";\n }\n "])),t.colorFillQuaternary),containerBgL2:n(es||(es=tm(["\n ",";\n border-radius: 4px;\n background: ",";\n\n &:hover {\n background: ",";\n }\n "])),r,t.colorFillQuaternary,t.colorFillTertiary),controlContainerFocused:i,controlContainer:n(eu||(eu=tm(["\n &:hover {\n ","\n }\n &:focus {\n ","\n }\n "])),o,i),backgroundBlur:n(ec||(ec=tm(["\n background: ",";\n backdrop-filter: blur(10px);\n "])),nG(.4)(t.colorBgElevated))}},cG=function(e){var t=(0,cZ.S)(),n=cL(e),r={colorBgContainer:null==t?void 0:t.colorFillQuaternary,colorBorder:"transparent",controlOutline:"transparent"};return n.components={Input:r,InputNumber:r,Select:r,Tree:{colorBgContainer:"transparent"},TreeSelect:r},n},cX=function(e){var t=e.children,n=e.componentToken,r=(0,cR.r)(),o=r.appearance,i=r.themeMode,a=cG(o);return a.components=(0,e9.Z)((0,e9.Z)({},a.components),n),(0,tk.jsx)(tW.ZP,{theme:a,children:(0,tk.jsx)(cV,{appearance:o,themeMode:i,theme:cL,customToken:cU,customStylish:cq,children:t})})},cK="light",cY="auto";!function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]}("dark",cK,cY);var cJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z"}}]},name:"loading-3-quarters",theme:"outlined"},cQ=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:cJ}))}),c0=["children","className","prefixCls"];function c1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c1(Object(n),!0).forEach(function(t){(0,tj.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c5=(0,tt.forwardRef)(function(e,t){var n=e.children,r=e.className,o=e.prefixCls,i=(0,te.Z)(e,c0);return(0,tk.jsx)(tR,c2(c2({ref:t,internalClassName:"".concat(tA(o),"-center"),className:r},i),{},{align:"center",justify:"center",children:n}))});c5.displayName="Center";var c3=n(81095),c6=n(85205);/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */let{entries:c4,setPrototypeOf:c8,isFrozen:c7,getPrototypeOf:c9,getOwnPropertyDescriptor:de}=Object,{freeze:dt,seal:dn,create:dr}=Object,{apply:di,construct:da}="undefined"!=typeof Reflect&&Reflect;dt||(dt=function(e){return e}),dn||(dn=function(e){return e}),di||(di=function(e,t,n){return e.apply(t,n)}),da||(da=function(e,t){return new e(...t)});let dl=dy(Array.prototype.forEach),ds=dy(Array.prototype.pop),du=dy(Array.prototype.push),dc=dy(String.prototype.toLowerCase),dd=dy(String.prototype.toString),df=dy(String.prototype.match),dp=dy(String.prototype.replace),dh=dy(String.prototype.indexOf),dm=dy(String.prototype.trim),dg=dy(Object.prototype.hasOwnProperty),db=dy(RegExp.prototype.test),dv=(u=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return da(u,t)});function dy(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return di(e,t,r)}}function dx(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dc;c8&&c8(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){let e=n(o);e!==o&&(c7(t)||(t[r]=e),o=e)}e[o]=!0}return e}function dw(e){let t=dr(null);for(let[n,r]of c4(e))dg(e,n)&&(Array.isArray(r)?t[n]=function(e){for(let t=0;t<e.length;t++)dg(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=dw(r):t[n]=r);return t}function dC(e,t){for(;null!==e;){let n=de(e,t);if(n){if(n.get)return dy(n.get);if("function"==typeof n.value)return dy(n.value)}e=c9(e)}return function(){return null}}let dk=dt(["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","section","select","shadow","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"]),dD=dt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),dE=dt(["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"]),dS=dt(["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"]),d$=dt(["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"]),dO=dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dF=dt(["#text"]),dj=dt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),dA=dt(["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","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"]),dI=dt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),dT=dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),d_=dn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dM=dn(/<%[\w\W]*|[\w\W]*%>/gm),dP=dn(/\$\{[\w\W]*}/gm),dN=dn(/^data-[\-\w.\u00B7-\uFFFF]+$/),dZ=dn(/^aria-[\-\w]+$/),dR=dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dB=dn(/^(?:\w+script|data):/i),dz=dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dL=dn(/^html$/i);var dH=Object.freeze({__proto__:null,ARIA_ATTR:dZ,ATTR_WHITESPACE:dz,CUSTOM_ELEMENT:dn(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:dN,DOCTYPE_NAME:dL,ERB_EXPR:dM,IS_ALLOWED_URI:dR,IS_SCRIPT_OR_DATA:dB,MUSTACHE_EXPR:d_,TMPLIT_EXPR:dP});let dW={element:1,text:3,progressingInstruction:7,comment:8,document:9},dV=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},dU=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var dq=function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,r=t=>e(t);if(r.version="3.2.3",r.removed=[],!n||!n.document||n.document.nodeType!==dW.document)return r.isSupported=!1,r;let{document:o}=n,i=o,a=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:u,Element:c,NodeFilter:d,NamedNodeMap:f=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:m}=n,g=c.prototype,b=dC(g,"cloneNode"),v=dC(g,"remove"),y=dC(g,"nextSibling"),x=dC(g,"childNodes"),w=dC(g,"parentNode");if("function"==typeof s){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let C="",{implementation:k,createNodeIterator:D,createDocumentFragment:E,getElementsByTagName:S}=o,{importNode:$}=i,O=dU();r.isSupported="function"==typeof c4&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;let{MUSTACHE_EXPR:F,ERB_EXPR:j,TMPLIT_EXPR:A,DATA_ATTR:I,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:_,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:P}=dH,{IS_ALLOWED_URI:N}=dH,Z=null,R=dx({},[...dk,...dD,...dE,...d$,...dF]),B=null,z=dx({},[...dj,...dA,...dI,...dT]),L=Object.seal(dr(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}})),H=null,W=null,V=!0,U=!0,q=!1,G=!0,X=!1,K=!0,Y=!1,J=!1,Q=!1,ee=!1,et=!1,en=!1,er=!0,eo=!1,ei=!0,ea=!1,el={},es=null,eu=dx({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ec=null,ed=dx({},["audio","video","img","source","image","track"]),ef=null,ep=dx({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eh="http://www.w3.org/1998/Math/MathML",em="http://www.w3.org/2000/svg",eg="http://www.w3.org/1999/xhtml",eb=eg,ev=!1,ey=null,ex=dx({},[eh,em,eg],dd),ew=dx({},["mi","mo","mn","ms","mtext"]),eC=dx({},["annotation-xml"]),ek=dx({},["title","style","font","a","script"]),eD=null,eE=["application/xhtml+xml","text/html"],eS=null,e$=null,eO=o.createElement("form"),eF=function(e){return e instanceof RegExp||e instanceof Function},ej=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e$||e$!==e){if(e&&"object"==typeof e||(e={}),e=dw(e),eS="application/xhtml+xml"===(eD=-1===eE.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?dd:dc,Z=dg(e,"ALLOWED_TAGS")?dx({},e.ALLOWED_TAGS,eS):R,B=dg(e,"ALLOWED_ATTR")?dx({},e.ALLOWED_ATTR,eS):z,ey=dg(e,"ALLOWED_NAMESPACES")?dx({},e.ALLOWED_NAMESPACES,dd):ex,ef=dg(e,"ADD_URI_SAFE_ATTR")?dx(dw(ep),e.ADD_URI_SAFE_ATTR,eS):ep,ec=dg(e,"ADD_DATA_URI_TAGS")?dx(dw(ed),e.ADD_DATA_URI_TAGS,eS):ed,es=dg(e,"FORBID_CONTENTS")?dx({},e.FORBID_CONTENTS,eS):eu,H=dg(e,"FORBID_TAGS")?dx({},e.FORBID_TAGS,eS):{},W=dg(e,"FORBID_ATTR")?dx({},e.FORBID_ATTR,eS):{},el=!!dg(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,U=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,X=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,Y=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,et=e.RETURN_DOM_FRAGMENT||!1,en=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,er=!1!==e.SANITIZE_DOM,eo=e.SANITIZE_NAMED_PROPS||!1,ei=!1!==e.KEEP_CONTENT,ea=e.IN_PLACE||!1,N=e.ALLOWED_URI_REGEXP||dR,eb=e.NAMESPACE||eg,ew=e.MATHML_TEXT_INTEGRATION_POINTS||ew,eC=e.HTML_INTEGRATION_POINTS||eC,L=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&eF(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&eF(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(L.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(U=!1),et&&(ee=!0),el&&(Z=dx({},dF),B=[],!0===el.html&&(dx(Z,dk),dx(B,dj)),!0===el.svg&&(dx(Z,dD),dx(B,dA),dx(B,dT)),!0===el.svgFilters&&(dx(Z,dE),dx(B,dA),dx(B,dT)),!0===el.mathMl&&(dx(Z,d$),dx(B,dI),dx(B,dT))),e.ADD_TAGS&&(Z===R&&(Z=dw(Z)),dx(Z,e.ADD_TAGS,eS)),e.ADD_ATTR&&(B===z&&(B=dw(B)),dx(B,e.ADD_ATTR,eS)),e.ADD_URI_SAFE_ATTR&&dx(ef,e.ADD_URI_SAFE_ATTR,eS),e.FORBID_CONTENTS&&(es===eu&&(es=dw(es)),dx(es,e.FORBID_CONTENTS,eS)),ei&&(Z["#text"]=!0),Y&&dx(Z,["html","head","body"]),Z.table&&(dx(Z,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw dv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw dv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=dV(m,a)),null!==t&&"string"==typeof C&&(C=t.createHTML(""));dt&&dt(e),e$=e}},eA=dx({},[...dD,...dE,...dS]),eI=dx({},[...d$,...dO]),eT=function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:eb,tagName:"template"});let n=dc(e.tagName),r=dc(t.tagName);return!!ey[e.namespaceURI]&&(e.namespaceURI===em?t.namespaceURI===eg?"svg"===n:t.namespaceURI===eh?"svg"===n&&("annotation-xml"===r||ew[r]):!!eA[n]:e.namespaceURI===eh?t.namespaceURI===eg?"math"===n:t.namespaceURI===em?"math"===n&&eC[r]:!!eI[n]:e.namespaceURI===eg?(t.namespaceURI!==em||!!eC[r])&&(t.namespaceURI!==eh||!!ew[r])&&!eI[n]&&(ek[n]||!eA[n]):"application/xhtml+xml"===eD&&!!ey[e.namespaceURI])},e_=function(e){du(r.removed,{element:e});try{w(e).removeChild(e)}catch(t){v(e)}},eM=function(e,t){try{du(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){du(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e){if(ee||et)try{e_(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},eP=function(e){let n=null,r=null;if(Q)e="<remove></remove>"+e;else{let t=df(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===eD&&eb===eg&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?t.createHTML(e):e;if(eb===eg)try{n=new h().parseFromString(i,eD)}catch(e){}if(!n||!n.documentElement){n=k.createDocument(eb,"template",null);try{n.documentElement.innerHTML=ev?C:i}catch(e){}}let a=n.body||n.documentElement;return(e&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),eb===eg)?S.call(n,Y?"html":"body")[0]:Y?n.documentElement:a},eN=function(e){return D.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},eZ=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},eR=function(e){return"function"==typeof u&&e instanceof u};function eB(e,t,n){dl(e,e=>{e.call(r,t,n,e$)})}let ez=function(e){let t=null;if(eB(O.beforeSanitizeElements,e,null),eZ(e))return e_(e),!0;let n=eS(e.nodeName);if(eB(O.uponSanitizeElement,e,{tagName:n,allowedTags:Z}),e.hasChildNodes()&&!eR(e.firstElementChild)&&db(/<[/\w]/g,e.innerHTML)&&db(/<[/\w]/g,e.textContent)||e.nodeType===dW.progressingInstruction||K&&e.nodeType===dW.comment&&db(/<[/\w]/g,e.data))return e_(e),!0;if(!Z[n]||H[n]){if(!H[n]&&eH(n)&&(L.tagNameCheck instanceof RegExp&&db(L.tagNameCheck,n)||L.tagNameCheck instanceof Function&&L.tagNameCheck(n)))return!1;if(ei&&!es[n]){let t=w(e)||e.parentNode,n=x(e)||e.childNodes;if(n&&t){let r=n.length;for(let o=r-1;o>=0;--o){let r=b(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,y(e))}}}return e_(e),!0}return e instanceof c&&!eT(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&db(/<\/no(script|embed|frames)/i,e.innerHTML)?(e_(e),!0):(X&&e.nodeType===dW.text&&(t=e.textContent,dl([F,j,A],e=>{t=dp(t,e," ")}),e.textContent!==t&&(du(r.removed,{element:e.cloneNode()}),e.textContent=t)),eB(O.afterSanitizeElements,e,null),!1)},eL=function(e,t,n){if(er&&("id"===t||"name"===t)&&(n in o||n in eO))return!1;if(U&&!W[t]&&db(I,t));else if(V&&db(T,t));else if(!B[t]||W[t]){if(!(eH(e)&&(L.tagNameCheck instanceof RegExp&&db(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&db(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t))||"is"===t&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&db(L.tagNameCheck,n)||L.tagNameCheck instanceof Function&&L.tagNameCheck(n))))return!1}else if(ef[t]);else if(db(N,dp(n,M,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===dh(n,"data:")&&ec[e]);else if(q&&!db(_,dp(n,M,"")));else if(n)return!1;return!0},eH=function(e){return"annotation-xml"!==e&&df(e,P)},eW=function(e){eB(O.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||eZ(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:l,value:s}=n[i],u=eS(a),c="value"===a?s:dm(s);if(o.attrName=u,o.attrValue=c,o.keepAttr=!0,o.forceKeepAttr=void 0,eB(O.uponSanitizeAttribute,e,o),c=o.attrValue,eo&&("id"===u||"name"===u)&&(eM(a,e),c="user-content-"+c),K&&db(/((--!?|])>)|<\/(style|title)/i,c)){eM(a,e);continue}if(o.forceKeepAttr||(eM(a,e),!o.keepAttr))continue;if(!G&&db(/\/>/i,c)){eM(a,e);continue}X&&dl([F,j,A],e=>{c=dp(c,e," ")});let d=eS(e.nodeName);if(eL(d,u,c)){if(t&&"object"==typeof m&&"function"==typeof m.getAttributeType){if(l);else switch(m.getAttributeType(d,u)){case"TrustedHTML":c=t.createHTML(c);break;case"TrustedScriptURL":c=t.createScriptURL(c)}}try{l?e.setAttributeNS(l,a,c):e.setAttribute(a,c),eZ(e)?e_(e):ds(r.removed)}catch(e){}}}eB(O.afterSanitizeAttributes,e,null)},eV=function e(t){let n=null,r=eN(t);for(eB(O.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)eB(O.uponSanitizeShadowNode,n,null),ez(n),eW(n),n.content instanceof l&&e(n.content);eB(O.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,s=null,c=null;if((ev=!e)&&(e="<!-->"),"string"!=typeof e&&!eR(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw dv("dirty is not a string, aborting")}else throw dv("toString is not a function")}if(!r.isSupported)return e;if(J||ej(n),r.removed=[],"string"==typeof e&&(ea=!1),ea){if(e.nodeName){let t=eS(e.nodeName);if(!Z[t]||H[t])throw dv("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)(a=(o=eP("<!---->")).ownerDocument.importNode(e,!0)).nodeType===dW.element&&"BODY"===a.nodeName?o=a:"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!ee&&!X&&!Y&&-1===e.indexOf("<"))return t&&en?t.createHTML(e):e;if(!(o=eP(e)))return ee?null:en?C:""}o&&Q&&e_(o.firstChild);let d=eN(ea?e:o);for(;s=d.nextNode();)ez(s),eW(s),s.content instanceof l&&eV(s.content);if(ea)return e;if(ee){if(et)for(c=E.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(B.shadowroot||B.shadowrootmode)&&(c=$.call(i,c,!0)),c}let f=Y?o.outerHTML:o.innerHTML;return Y&&Z["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&db(dL,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),X&&dl([F,j,A],e=>{f=dp(f,e," ")}),t&&en?t.createHTML(f):f},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ej(e),J=!0},r.clearConfig=function(){e$=null,J=!1},r.isValidAttribute=function(e,t,n){return e$||ej({}),eL(eS(e),eS(t),n)},r.addHook=function(e,t){"function"==typeof t&&du(O[e],t)},r.removeHook=function(e){return ds(O[e])},r.removeHooks=function(e){O[e]=[]},r.removeAllHooks=function(){O=dU()},r}();let dG=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(7807).then(n.bind(n,77807))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(436).then(n.bind(n,80436))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(4182).then(n.bind(n,4182))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(2380).then(n.bind(n,2380))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(7430).then(n.bind(n,66561))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(882).then(n.bind(n,882))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(5156).then(n.bind(n,55156))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(5522).then(n.bind(n,35522))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(5615).then(n.bind(n,55615))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(2927).then(n.bind(n,12927))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(6567).then(n.bind(n,66567))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(1556).then(n.bind(n,41556))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(289).then(n.bind(n,50289))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(5321).then(n.bind(n,85321))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(133).then(n.bind(n,70133))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(4343).then(n.bind(n,74343))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(7389).then(n.bind(n,27389))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(3078).then(n.bind(n,13078))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(7428).then(n.bind(n,17428))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(4765).then(n.bind(n,54765))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(4127).then(n.bind(n,4127))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(646).then(n.bind(n,30646))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(3591).then(n.bind(n,43591))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(6128).then(n.bind(n,76128))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(3123).then(n.bind(n,33123))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(7297).then(n.bind(n,87297))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(3200).then(n.bind(n,13200))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(2792).then(n.bind(n,22792))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(8169).then(n.bind(n,98169))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(1394).then(n.bind(n,31394))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(6760).then(n.bind(n,46760))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(3266).then(n.bind(n,43266))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5178).then(n.bind(n,5178))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(5434).then(n.bind(n,25434))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(4428).then(n.bind(n,74428))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(9164).then(n.bind(n,89164))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(8473).then(n.bind(n,8473))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(6500).then(n.bind(n,66500))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(3940).then(n.bind(n,33940))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(33).then(n.bind(n,20033))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(2282).then(n.bind(n,92282))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(3969).then(n.bind(n,73969))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(6720).then(n.bind(n,26720))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(802).then(n.bind(n,70802))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(7476).then(n.bind(n,27476))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(5593).then(n.bind(n,45593))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(2721).then(n.bind(n,12721))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(3789).then(n.bind(n,63789))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(5703).then(n.bind(n,15703))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(7084).then(n.bind(n,17084))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(9052).then(n.bind(n,89052))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(5583).then(n.bind(n,35583))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(2534).then(n.bind(n,92534))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(3937).then(n.bind(n,93937))}].map(e=>[e.id,e.import]));class dX extends Error{constructor(e){super(e),this.name="ShikiError"}}var dK=n(72357).Buffer;class dY extends Error{constructor(e){super(e),this.name="ShikiError"}}function dJ(){return"undefined"!=typeof performance?performance.now():Date.now()}let dQ=(e,t)=>e+(t-e%t)%t;async function d0(e){let t,n;let r={};function o(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let i="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){let r=t+n,o=t;for(;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&i)return i.decode(e.subarray(t,o));let a="";for(;t<o;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|r);continue}let o=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|o:(7&n)<<18|r<<12|o<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(r.HEAPU8,e,t):""}let l={emscripten_get_now:dJ,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let i=r.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let r=1;r<=4;r*=2){let a=i*(1+.2/r);if(a=Math.min(a,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}(Math.min(2147483648,dQ(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function s(){let n=await e({env:l,wasi_snapshot_preview1:l});o((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=a}return await s(),r}let d1=null;class d2{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let o=e.charCodeAt(n),i=o,a=!1;if(o>=55296&&o<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(i=(o-55296<<10)+65536|t-56320,a=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,a&&n++}return t}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){let t=e.length,n=d2._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);let i=r?new Uint32Array(n+1):null;r&&(i[n]=t);let a=new Uint8Array(n),l=0;for(let n=0;n<t;n++){let s=e.charCodeAt(n),u=s,c=!1;if(s>=55296&&s<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(s-55296<<10)+65536|t-56320,c=!0)}r&&(o[n]=l,c&&(o[n+1]=l),u<=127?i[l+0]=n:u<=2047?(i[l+0]=n,i[l+1]=n):u<=65535?(i[l+0]=n,i[l+1]=n,i[l+2]=n):(i[l+0]=n,i[l+1]=n,i[l+2]=n,i[l+3]=n)),u<=127?a[l++]=u:(u<=2047?a[l++]=192|(1984&u)>>>6:(u<=65535?a[l++]=224|(61440&u)>>>12:(a[l++]=240|(1835008&u)>>>18,a[l++]=128|(258048&u)>>>12),a[l++]=128|(4032&u)>>>6),a[l++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class d5{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++d5.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!d1)throw new dY("Must invoke loadWasm first.");this._onigBinding=d1,this.content=e;let t=new d2(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!d5._sharedPtrInUse?(d5._sharedPtr||(d5._sharedPtr=d1.omalloc(1e4)),d5._sharedPtrInUse=!0,d1.HEAPU8.set(t.utf8Value,d5._sharedPtr),this.ptr=d5._sharedPtr):this.ptr=t.createString(d1)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===d5._sharedPtr?d5._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class d3{_onigBinding;_ptr;constructor(e){if(!d1)throw new dY("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,o=e.length;r<o;r++){let o=new d2(e[r]);t[r]=o.createString(d1),n[r]=o.utf8Length}let r=d1.omalloc(4*e.length);d1.HEAPU32.set(t,r/4);let o=d1.omalloc(4*e.length);d1.HEAPU32.set(n,o/4);let i=d1.createOnigScanner(r,o,e.length);for(let n=0,r=e.length;n<r;n++)d1.ofree(t[n]);d1.ofree(o),d1.ofree(r),0===i&&function(e){throw new dY(e.UTF8ToString(e.getLastOnigError()))}(d1),this._onigBinding=d1,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new d5(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let o=this._onigBinding,i=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===i)return null;let a=o.HEAPU32,l=i/4,s=a[l++],u=a[l++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(a[l++]),r=e.convertUtf8OffsetToUtf16(a[l++]);c[t]={start:n,end:r,length:r-n}}return{index:s,captureIndices:c}}}function d6(e){return t=>WebAssembly.instantiate(e,t)}async function d4(e){return e&&await (r||(r=async function(){d1=await d0(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,o,i,a;(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response)?n="function"==typeof WebAssembly.instantiateStreaming?await (i=n,e=>WebAssembly.instantiateStreaming(i,e))(t):await (a=n,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(o=n,"undefined"!=typeof ArrayBuffer&&(o instanceof ArrayBuffer||ArrayBuffer.isView(o))||void 0!==dK&&dK.isBuffer?.(o)||"undefined"!=typeof SharedArrayBuffer&&o instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&o instanceof Uint32Array)?n=await d6(n)(t):n instanceof WebAssembly.Module?n=await d6(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await d6(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new d3(e),createString:e=>new d5(e)}}var d8=n(80463);function d7(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var d9=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,fe=class{static hasCaptures(e){return null!==e&&(d9.lastIndex=0,d9.test(e))}static replaceCaptures(e,t,n){return e.replace(d9,(e,r,o,i)=>{let a=n[parseInt(r||o,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function ft(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var o,i;let n=(o=e[r])<(i=t[r])?-1:o>i?1:0;if(0!==n)return n}return 0}return n-r}function fn(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function fr(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var fo=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},fi=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new fo(e=>this._root.match(e))}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,o=t.length;e<o;e++){let o,i=t[e];if(!i.settings)continue;if("string"==typeof i.scope){let e=i.scope;o=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else o=Array.isArray(i.scope)?i.scope:[""];let a=-1;if("string"==typeof i.settings.fontStyle){a=0;let e=i.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let l=null;"string"==typeof i.settings.foreground&&fn(i.settings.foreground)&&(l=i.settings.foreground);let s=null;"string"==typeof i.settings.background&&fn(i.settings.background)&&(s=i.settings.background);for(let t=0,i=o.length;t<i;t++){let i=o[t].trim().split(" "),u=i[i.length-1],c=null;i.length>1&&(c=i.slice(0,i.length-1)).reverse(),n[r++]=new fs(u,c,e,a,l,s)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let o=(n=e.scope)<(r=t.scope)?-1:n>r?1:0;return 0!==o||0!==(o=ft(e.parentScopes,t.parentScopes))?o:e.index-t.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let i=new fc(t),a=new fl(n,i.getId(r),i.getId(o)),l=new fp(new ff(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];l.insert(0,n.scope,n.parentScopes,n.fontStyle,i.getId(n.foreground),i.getId(n.background))}return new fi(i,a,l)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let o=0;o<t.length;o++){var n,r;let i=t[o],a=!1;if(">"===i){if(o===t.length-1)return!1;i=t[++o],a=!0}for(;e&&(n=e.scopeName,!((r=i)===n||n.startsWith(r)&&"."===n[r.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new fl(n.fontStyle,n.foreground,n.background):null}},fa=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},fl=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},fs=class{constructor(e,t,n,r,o,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=i}},fu=((c=fu||{})[c.NotSet=-1]="NotSet",c[c.None=0]="None",c[c.Italic=1]="Italic",c[c.Bold=2]="Bold",c[c.Underline=4]="Underline",c[c.Strikethrough=8]="Strikethrough",c),fc=class{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},fd=Object.freeze([]),ff=class e{constructor(e,t,n,r,o){this.scopeDepth=e,this.parentScopes=t||fd,this.fontStyle=n,this.foreground=r,this.background=o}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},fp=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let o=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==o)return o;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,o,i,a){let l,s,u;if(""===n){this._doInsertHere(t,r,o,i,a);return}let c=n.indexOf(".");-1===c?(l=n,s=""):(l=n.substring(0,c),s=n.substring(c+1)),this._children.hasOwnProperty(l)?u=this._children[l]:(u=new e(this._mainRule.clone(),ff.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,s,r,o,i,a)}_doInsertHere(e,t,n,r,o){if(null===t){this._mainRule.acceptOverwrite(e,n,r,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let a=this._rulesWithParentScopes[i];if(0===ft(a.parentScopes,t)){a.acceptOverwrite(e,n,r,o);return}}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===o&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new ff(e,t,n,r,o))}},fh=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t);console.log({languageId:n,tokenType:r,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,o,i,a,l){let s=e.getLanguageId(t),u=e.getTokenType(t),c=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(s=n),8!==r&&(u=r),null!==o&&(c=o?1:0),-1!==i&&(d=i),0!==a&&(f=a),0!==l&&(p=l),(s<<0|u<<8|c<<10|d<<11|f<<15|p<<24)>>>0}};function fm(e,t){let n,r;let o=[],i=(r=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!r)return null;let t=r[0];return r=n.exec(e),t}}),a=i.next();for(;null!==a;){let e=0;if(2===a.length&&":"===a.charAt(1)){switch(a.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=i.next()}let t=s();if(o.push({matcher:t,priority:e}),","!==a)break;a=i.next()}return o;function l(){if("-"===a){a=i.next();let e=l();return t=>!!e&&!e(t)}if("("===a){a=i.next();let e=function(){let e=[],t=s();for(;t&&(e.push(t),"|"===a||","===a);){do a=i.next();while("|"===a||","===a);t=s()}return t=>e.some(e=>e(t))}();return")"===a&&(a=i.next()),e}if(fg(a)){let e=[];do e.push(a),a=i.next();while(fg(a));return n=>t(e,n)}return null}function s(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function fg(e){return!!e&&!!e.match(/[\w\.:]+/)}var fb=((d=fb||{})[d.None=0]="None",d[d.NotBeginString=1]="NotBeginString",d[d.NotEndString=2]="NotEndString",d[d.NotBeginPosition=4]="NotBeginPosition",d[d.DebugCall=8]="DebugCall",d);function fv(e){"function"==typeof e.dispose&&e.dispose()}var fy=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},fx=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},fw=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},fC=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new fy(this.initialScopeName)]}processQueue(){let e=this.Q;this.Q=[];let t=new fw;for(let n of e)!function(e,t,n,r){let o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let i=n.lookup(t);e instanceof fy?fD({baseGrammar:i,selfGrammar:o},r):fk(e.ruleName,{baseGrammar:i,selfGrammar:o,repository:o.repository},r);let a=n.injections(e.scopeName);if(a)for(let e of a)r.add(new fy(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof fy){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function fk(e,t,n){t.repository&&t.repository[e]&&fE([t.repository[e]],t,n)}function fD(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&fE(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&fE(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function fE(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?d7({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&fE(r.patterns,{...t,repository:e},n);let o=r.include;if(!o)continue;let i=fA(o);switch(i.kind){case 0:fD({...t,selfGrammar:t.baseGrammar},n);break;case 1:fD(t,n);break;case 2:fk(i.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let r={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===i.kind?fk(i.ruleName,r,n):fD(r,n)}else 4===i.kind?n.add(new fx(i.scopeName,i.ruleName)):n.add(new fy(i.scopeName))}}}var fS=class{constructor(){this.kind=0}},f$=class{constructor(){this.kind=1}},fO=class{constructor(e){this.ruleName=e,this.kind=2}},fF=class{constructor(e){this.scopeName=e,this.kind=3}},fj=class{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}};function fA(e){if("$base"===e)return new fS;if("$self"===e)return new f$;let t=e.indexOf("#");return -1===t?new fF(e):0===t?new fO(e.substring(1)):new fj(e.substring(0,t),e.substring(t+1))}var fI=/\\(\d+)/,fT=/\\(\d+)/g;Symbol("RuleId");var f_=class{constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=fe.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=fe.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?fe.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?fe.replaceCaptures(this._contentName,e,t):this._contentName}},fM=class extends f_{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},fP=class extends f_{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new fz(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fL,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fN=class extends f_{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fL,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fZ=class extends f_{constructor(e,t,n,r,o,i,a,l,s,u){super(e,t,n,r),this._begin=new fz(o,this.id),this.beginCaptures=i,this._end=new fz(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new fL,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},fR=class extends f_{constructor(e,t,n,r,o,i,a,l,s){super(e,t,n,r),this._begin=new fz(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new fz(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new fL,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fL,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},fB=class e{static createCaptureRule(e,t,n,r,o){return e.registerRule(e=>new fM(t,e,n,r,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new fP(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=d7({},r,t.repository));let o=t.patterns;return void 0===o&&t.include&&(o=[{include:t.include}]),new fN(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(o,n,r))}return t.while?new fR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new fZ(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let i=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>i&&(i=t)}for(let e=0;e<=i;e++)o[e]=null;for(let i in t){if("$vscodeTextmateLocation"===i)continue;let a=parseInt(i,10),l=0;t[i].patterns&&(l=e.getCompiledRuleId(t[i],n,r)),o[a]=e.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let i=0,a=t.length;i<a;i++){let a=t[i],l=-1;if(a.include){let t=fA(a.include);switch(t.kind){case 0:case 1:l=e.getCompiledRuleId(r[a.include],n,r);break;case 2:let o=r[t.ruleName];o&&(l=e.getCompiledRuleId(o,n,r));break;case 3:case 4:let i=t.scopeName,s=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(i,r);if(u){if(s){let t=u.repository[s];t&&(l=e.getCompiledRuleId(t,n,u.repository))}else l=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}}else l=e.getCompiledRuleId(a,n,r);if(-1!==l){let e=n.getRule(l),t=!1;if((e instanceof fN||e instanceof fZ||e instanceof fR)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},fz=class e{constructor(e,t){if(e){let t=e.length,n=0,r=[],o=!1;for(let i=0;i<t;i++)if("\\"===e.charAt(i)&&i+1<t){let t=e.charAt(i+1);"z"===t?(r.push(e.substring(n,i)),r.push("$(?!\\n)(?<!\\n)"),n=i+2):("A"===t||"G"===t)&&(o=!0),i++}this.hasAnchor=o,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=fI.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map(t=>e.substring(t.start,t.end));return fT.lastIndex=0,this.source.replace(fT,(e,t)=>fr(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r,o=[],i=[],a=[],l=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),o[e]=n,i[e]=n,a[e]=n,l[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(o[e+1]="￿",i[e+1]="￿",a[e+1]="A",l[e+1]="A"):"G"===r?(o[e+1]="￿",i[e+1]="G",a[e+1]="￿",l[e+1]="G"):(o[e+1]=r,i[e+1]=r,a[e+1]=r,l[e+1]=r),e++);return{A0_G0:o.join(""),A0_G1:i.join(""),A1_G0:a.join(""),A1_G1:l.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},fL=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new fH(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new fH(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},fH=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},fW=class{constructor(e,t){this.languageId=e,this.tokenType=t}},fV=class e{constructor(e,t){this._getBasicScopeAttributes=new fo(e=>new fW(this._scopeToLanguage(e),this._toStandardTokenType(e))),this._defaultAttributes=new fW(e,8),this._embeddedLanguagesMatcher=new fU(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}};fV._NULL_SCOPE_METADATA=new fW(0,0),fV.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var fU=class{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>fr(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==d8&&d8.env.VSCODE_TEXTMATE_DEBUG;var fq=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function fG(e,t,n,r,o,i,a,l){let s=t.content.length,u=!1,c=-1;if(a){let a=function(e,t,n,r,o,i){let a=o.beginRuleCapturedEOL?0:-1,l=[];for(let t=o;t;t=t.pop()){let n=t.getRule(e);n instanceof fR&&l.push({rule:n,stack:t})}for(let f=l.pop();f;f=l.pop()){var s,u,c,d;let{ruleScanner:l,findOptions:p}=(s=f.rule,u=f.stack.endRule,c=n,d=r===a,{ruleScanner:s.compileWhileAG(e,u,c,d),findOptions:0}),h=l.findNextMatchSync(t,r,p);if(h){if(-2!==h.ruleId){o=f.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(i.produce(f.stack,h.captureIndices[0].start),fK(e,t,n,f.stack,i,f.rule.whileCaptures,h.captureIndices),i.produce(f.stack,h.captureIndices[0].end),a=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{o=f.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:a,isFirstLine:n}}(e,t,n,r,o,i);o=a.stack,r=a.linePos,n=a.isFirstLine,c=a.anchorPosition}let d=Date.now();for(;!u;){if(0!==l&&Date.now()-d>l)return new fq(o,!0);!function(){let a=function(e,t,n,r,o,i){let a=function(e,t,n,r,o,i){let{ruleScanner:a,findOptions:l}=fX(o.getRule(e),e,o.endRule,n,r===i),s=a.findNextMatchSync(t,r,l);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}(e,t,n,r,o,i),l=e.getInjections();if(0===l.length)return a;let s=function(e,t,n,r,o,i,a){let l,s=Number.MAX_VALUE,u=null,c=0,d=i.contentNameScopesList.getScopeNames();for(let i=0,f=e.length;i<f;i++){let f=e[i];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:h}=fX(t.getRule(f.ruleId),t,null,r,o===a),m=p.findNextMatchSync(n,o,h);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=s)&&(s=g,u=m.captureIndices,l=m.ruleId,c=f.priority,s===o))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:l}:null}(l,e,t,n,r,o,i);if(!s)return a;if(!a)return s;let u=a.captureIndices[0].start,c=s.captureIndices[0].start;return c<u||s.priorityMatch&&c===u?s:a}(e,t,n,r,o,c);if(!a){i.produce(o,s),u=!0;return}let l=a.captureIndices,d=a.matchedRuleId,f=!!l&&l.length>0&&l[0].end>r;if(-1===d){let a=o.getRule(e);i.produce(o,l[0].start),o=o.withContentNameScopesList(o.nameScopesList),fK(e,t,n,o,i,a.endCaptures,l),i.produce(o,l[0].end);let d=o;if(o=o.parent,c=d.getAnchorPos(),!f&&d.getEnterPos()===r){o=d,i.produce(o,s),u=!0;return}}else{let a=e.getRule(d);i.produce(o,l[0].start);let p=o,h=a.getName(t.content,l),m=o.contentNameScopesList.pushAttributed(h,e);if(o=o.push(d,r,c,l[0].end===s,null,m,m),a instanceof fZ){fK(e,t,n,o,i,a.beginCaptures,l),i.produce(o,l[0].end),c=l[0].end;let r=a.getContentName(t.content,l),d=m.pushAttributed(r,e);if(o=o.withContentNameScopesList(d),a.endHasBackReferences&&(o=o.withEndRule(a.getEndWithResolvedBackReferences(t.content,l))),!f&&p.hasSameRuleAs(o)){o=o.pop(),i.produce(o,s),u=!0;return}}else if(a instanceof fR){fK(e,t,n,o,i,a.beginCaptures,l),i.produce(o,l[0].end),c=l[0].end;let r=a.getContentName(t.content,l),d=m.pushAttributed(r,e);if(o=o.withContentNameScopesList(d),a.whileHasBackReferences&&(o=o.withEndRule(a.getWhileWithResolvedBackReferences(t.content,l))),!f&&p.hasSameRuleAs(o)){o=o.pop(),i.produce(o,s),u=!0;return}}else if(fK(e,t,n,o,i,a.captures,l),i.produce(o,l[0].end),o=o.pop(),!f){o=o.safePop(),i.produce(o,s),u=!0;return}}l[0].end>r&&(r=l[0].end,n=!1)}()}return new fq(o,!1)}function fX(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function fK(e,t,n,r,o,i,a){if(0===i.length)return;let l=t.content,s=Math.min(i.length,a.length),u=[],c=a[0].end;for(let t=0;t<s;t++){let s=i[t];if(null===s)continue;let d=a[t];if(0===d.length)continue;if(d.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)o.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?o.produceFromScopes(u[u.length-1].scopes,d.start):o.produce(r,d.start),s.retokenizeCapturedWithRuleId){let t=s.getName(l,a),i=r.contentNameScopesList.pushAttributed(t,e),u=s.getContentName(l,a),c=i.pushAttributed(u,e),f=r.push(s.retokenizeCapturedWithRuleId,d.start,-1,!1,null,i,c),p=e.createOnigString(l.substring(0,d.end));fG(e,p,n&&0===d.start,d.start,f,o,!1,0),fv(p);continue}let f=s.getName(l,a);if(null!==f){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);u.push(new fY(t,d.end))}}for(;u.length>0;)o.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var fY=class{constructor(e,t){this.scopes=e,this.endPos=t}};function fJ(e,t,n,r,o){let i=fm(t,fQ),a=fB.getCompiledRuleId(n,r,o.repository);for(let n of i)e.push({debugSelector:t,matcher:n.matcher,ruleId:a,grammar:o,priority:n.priority})}function fQ(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var f0=class{constructor(e,t,n,r,o,i,a,l){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=l,this._basicScopeAttributesProvider=new fV(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=f1(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(let e of Object.keys(o))for(let t of fm(e,fQ))this._tokenTypeMatchers.push({matcher:t.matcher,type:o[e]})}get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)fJ(e,t,r[t],this,n);let o=this._grammarRepository.injections(t);o&&o.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&fJ(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=f1(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let o;if(-1===this._rootId&&(this._rootId=fB.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==f3.NULL)o=!1,t.reset();else{let e;o=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),i=fh.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?f2.createRootAndLookUpScopeName(a,i,this):f2.createRoot("unknown",i),t=new f3(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let i=this.createOnigString(e),a=i.content.length,l=new f4(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=fG(this,i,o,0,t,l,!0,r);return fv(i),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function f1(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=e(t[r]);return n}(t):"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var f2=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(let t of n)r=new e(r,o=fa.push(o,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new fa(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let o=r.getMetadataForScope(t),i=new fa(null,t),a=r.themeProvider.themeMatch(i),l=e.mergeAttributes(n,o,a);return new e(null,i,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,i=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,i=n.backgroundId),fh.set(e,t.languageId,t.tokenType,null,r,o,i)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),o=this;for(let t of r)o=e._pushAttributed(o,t,n);return o}static _pushAttributed(t,n,r){let o=r.getMetadataForScope(n),i=t.scopePath.push(n),a=r.themeProvider.themeMatch(i),l=e.mergeAttributes(t.tokenAttributes,o,a);return new e(t,i,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},f5=class e{constructor(e,t,n,r,o,i,a,l){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&f2.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,i,a,l){return new e(this,t,n,r,o,i,a,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=f2.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,f2.fromExtension(r,n.contentNameScopesList))}};f5.NULL=new f5(null,0,0,0,!1,null,null,null);var f3=f5,f6=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):fm(e,fQ).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>fm(e,fQ).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},f4=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=fh.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=fh.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},f8=class{constructor(e,t){this._onigLib=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,o){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,new f0(e,i,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},f7=class{constructor(e){this._options=e,this._syncRegistry=new f8(fi.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(fi.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new f6(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,o){let i=new fC(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(e=>this._loadSingleGrammar(e.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,n,r,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},f9=f3.NULL;let pe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],pt={}.hasOwnProperty,pn=/["&'<>`]/g,pr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,po=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,pi=/[|\\{}()[\]^$+*?.]/g,pa=new WeakMap,pl=/[\dA-Fa-f]/,ps=/\d/,pu=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],pc={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},pd=["cent","copy","divide","gt","lt","not","para","times"],pf={}.hasOwnProperty,pp={};for(i in pc)pf.call(pc,i)&&(pp[pc[i]]=i);let ph=/[^\dA-Za-z]/;function pm(e,t,n){let r,o=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!pl.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let o=String.fromCharCode(e);if(pf.call(pp,o)){let e=pp[o],i="&"+e;return n&&pu.includes(e)&&!pd.includes(e)&&(!r||t&&61!==t&&ph.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!ps.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function pg(e,t){return function(e,t){var n;let r;if(e=e.replace(t.subset?(n=t.subset,(r=pa.get(n))||(r=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(pi,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),pa.set(n,r)),r):pn,o),t.subset||t.escapeOnly)return e;return e.replace(pr,function(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(po,o);function o(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}(e,Object.assign({format:pm},t))}let pb=/^>|^->|<!--|-->|--!>|<!-$/g,pv=[">"],py=["<",">"],px=/[ \t\n\f\r]/g;function pw(e){return"object"==typeof e?"text"===e.type&&pC(e.value):pC(e)}function pC(e){return""===e.replace(px,"")}let pk=pS(1),pD=pS(-1),pE=[];function pS(e){return function(t,n,r){let o=t?t.children:pE,i=(n||0)+e,a=o[i];if(!r)for(;a&&pw(a);)i+=e,a=o[i];return a}}let p$={}.hasOwnProperty;function pO(e){return function(t,n,r){return p$.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let pF=pO({body:function(e,t,n){let r=pk(n,t);return!r||"comment"!==r.type},caption:pj,colgroup:pj,dd:function(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=pk(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:pj,html:function(e,t,n){let r=pk(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=pk(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:pA,rt:pA,tbody:function(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:pI,tfoot:function(e,t,n){return!pk(n,t)},th:pI,thead:function(e,t,n){let r=pk(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function pj(e,t,n){let r=pk(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&pw(r.value.charAt(0)))}function pA(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function pI(e,t,n){let r=pk(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let pT=pO({body:function(e){let t=pk(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&pw(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let r=pD(n,t),o=pk(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&pF(r,n.children.indexOf(r),n))&&!!(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=pk(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=pD(n,t),o=pk(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&pF(r,n.children.indexOf(r),n))&&!!(o&&"element"===o.type&&"tr"===o.tagName)}}),p_={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\x00 \n\f\r \"&'/<=>".split(""),"\x00 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\x00 \n\f\r \"&'<=>`".split("")],["\x00 \n\f\r \"&'<=>`".split(""),"\x00 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\x00&'".split(""),"\x00\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\x00"&'.split(""),"\x00\"&'`".split("")]]},pM=["<","&"];function pP(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:pg(e.value,Object.assign({},r.settings.characterReferences,{subset:pM}))}let pN=function(e,t){let n=t||{};function r(t,...n){let o=r.invalid,i=r.handlers;if(t&&pt.call(t,e)){let n=String(t[e]);o=pt.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+pg(e.value,Object.assign({},r.settings.characterReferences,{subset:pv}))+">":"<!--"+e.value.replace(pb,function(e){return pg(e,Object.assign({},r.settings.characterReferences,{subset:py}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let o;let i=r.schema,a="svg"!==i.space&&r.settings.omitOptionalTags,l="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[];"html"===i.space&&"svg"===e.tagName&&(r.schema=sI);let u=function(e,t){let n;let r=[],o=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let o=function(e,t,n){let r;let o=sZ(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=e.settings.allowDangerousCharacters?0:1,l=e.quote;if(o.overloadedBoolean&&(n===o.attribute||""===n)?n=!0:(o.boolean||o.overloadedBoolean)&&("string"!=typeof n||n===o.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let s=pg(o.attribute,Object.assign({},e.settings.characterReferences,{subset:p_.name[i][a]}));return!0===n?s:(n=Array.isArray(n)?(o.commaSeparated?sV:sH)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?s:(e.settings.preferUnquoted&&(r=pg(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:p_.unquoted[i][a]}))),r!==n&&(e.settings.quoteSmart&&uK(n,l)>uK(n,e.alternative)&&(l=e.alternative),r=l+pg(n,Object.assign({},e.settings.characterReferences,{subset:("'"===l?p_.single:p_.double)[i][a],attribute:!0}))+l),s+(r?"="+r:r))}(e,n,t[n]);o&&r.push(o)}}for(;++o<r.length;){let t=e.settings.tightAttributes?r[o].charAt(r[o].length-1):void 0;o!==r.length-1&&'"'!==t&&"'"!==t&&(r[o]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,c&&(l=!1),!u&&a&&pT(e,t,n)||(s.push("<",e.tagName,u?" "+u:""),l&&("svg"===i.space||r.settings.closeSelfClosing)&&(o=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===o||o&&'"'!==o&&"'"!==o)&&s.push(" "),s.push("/")),s.push(">")),s.push(c),l||a&&pF(e,t,n)||s.push("</"+e.tagName+">"),s.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:pP(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:pP}}),pZ={},pR={},pB=[];function pz(e,t,n){return pN(e,t,n,this)}function pL(e){let t=[],n=e&&e.children||pB,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function pH(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,o=[];for(let e=0;e<n.length;e+=2){let i=t?n[e]+(n[e+1]||""):n[e];o.push([i,r]),r+=n[e].length+(n[e+1]?.length||0)}return o}function pW(e){return!e||["plaintext","txt","text","plain"].includes(e)}function pV(e){return"ansi"===e||pW(e)}function pU(e){return"none"===e}function pq(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}async function pG(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function pX(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,o]of Object.entries(t?.colorReplacements||{}))"string"==typeof o?n[e]=o:e===r&&Object.assign(n,o);return n}function pK(e,t){return e&&t?.[e?.toLowerCase()]||e}function pY(e){let t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&fu.Italic&&(t["font-style"]="italic"),e.fontStyle&fu.Bold&&(t["font-weight"]="bold"),e.fontStyle&fu.Underline&&(t["text-decoration"]="underline")),t}class pJ extends Error{constructor(e){super(e),this.name="ShikiError"}}let pQ=new WeakMap;function p0(e,t){pQ.set(e,t)}function p1(e){return pQ.get(e)}class p2{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new p2(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,f9])),e)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}get scopes(){return p5(this._stacks[this.theme])}getScopes(e=this.theme){return p5(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function p5(e){let t=[],n=new Set;return!function e(r){if(n.has(r))return;n.add(r);let o=r?.nameScopesList?.scopeName;o&&t.push(o),r.parent&&e(r.parent)}(e),t}let p3=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new pJ(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new pJ(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);if(e.character<0||e.character>t.length)throw new pJ(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:r.posToIndex(e.line,e.character)}}},r=function(e){let t=pH(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,o=0;for(let e of t){if(r<e.length)break;r-=e.length,o++}return{line:o,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source),o=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new pJ(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],o=n.start.offset<t.start.offset&&t.start.offset<n.end.offset,i=n.start.offset<t.end.offset&&t.end.offset<n.end.offset,a=t.start.offset<n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<t.end.offset;if(o||i||a||l){if(i&&i||a&&l)continue;throw new pJ(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(o),e.set(t.meta,{decorations:o,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return function(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?function(e,t){let n=0,r=[];for(let o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new pJ(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(e,t,n,o){let a=r[e],l="",s=-1,u=-1;if(0===t&&(s=0),0===n&&(u=0),n===Number.POSITIVE_INFINITY&&(u=a.children.length),-1===s||-1===u)for(let e=0;e<a.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===s&&l.length===t&&(s=e+1),-1===u&&l.length===n&&(u=e+1);if(-1===s)throw new pJ(`Failed to find start index for decoration ${JSON.stringify(o.start)}`);if(-1===u)throw new pJ(`Failed to find end index for decoration ${JSON.stringify(o.end)}`);let c=a.children.slice(s,u);if(o.alwaysWrap||c.length!==a.children.length){if(o.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};i(e,o,"wrapper"),a.children.splice(s,c.length,e)}else i(c[0],o,"token")}else i(a,o,"line")}function i(e,t,n){let r=t.properties||{},o=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&pq(e,t.properties.class),e=o(e,n)||e}let a=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset)){let{start:t,end:n}=e;if(t.line===n.line)o(t.line,t.character,n.character,e);else if(t.line<n.line){o(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let o=t.line+1;o<n.line;o++)a.unshift(()=>{var t;r[t=o]=i(r[t],e,"line")});o(n.line,0,n.character,e)}}a.forEach(e=>e())}}}()];function p6(e){return[...e.transformers||[],...p3]}var p4=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],p8={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function p7(e,t){let n,r=1,o=e[t+r++];if("2"===o){let o=[e[t+r++],e[t+r++],e[t+r]].map(e=>Number.parseInt(e));3!==o.length||o.some(e=>Number.isNaN(e))||(n={type:"rgb",rgb:o})}else if("5"===o){let o=Number.parseInt(e[t+r]);Number.isNaN(o)||(n={type:"table",index:Number(o)})}return[r,n]}var p9={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function he(e,t,n={}){let{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(pW(r)||pU(o))return pH(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(o);if("ansi"===r)return function(e,t,n){let r,o,i;let a=pX(e,n),l=pH(t),s=function(e=p9){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var o;return o=r.index,function(){if(t)return t;t=[];for(let n=0;n<p4.length;n++)t.push(e[p4[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let o=0;o<6;o++)for(let i=0;i<6;i++)t.push(n([r[e],r[o],r[i]]));let o=8;for(let e=0;e<24;e++,o+=10)t.push(n([o,o,o]));return t}()[o]}}}}(Object.fromEntries(p4.map(t=>[t,e.colors?.[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]))),u=(r=null,o=null,i=new Set,{parse(e){let t=[],n=0;do{let a=function(e,t){let n=e.indexOf("\x1b[",t);if(-1!==n){let t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),l=a.sequence?e.substring(n,a.startPosition):e.substring(n);if(l.length>0&&t.push({value:l,foreground:r,background:o,decorations:new Set(i)}),a.sequence){let e=function(e){let t=[];for(let n=0;n<e.length;n++){let r=Number.parseInt(e[n]);if(!Number.isNaN(r)){if(0===r)t.push({type:"resetAll"});else if(r<=9)p8[r]&&t.push({type:"setDecoration",value:p8[r]});else if(r<=29){let e=p8[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:p4[r-30]}});else if(38===r){let[r,o]=p7(e,n);o&&t.push({type:"setForegroundColor",value:o}),n+=r}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:p4[r-40]}});else if(48===r){let[r,o]=p7(e,n);o&&t.push({type:"setBackgroundColor",value:o}),n+=r}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:p4[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:p4[r-100+8]}})}}return t}(a.sequence);for(let t of e)"resetAll"===t.type?(r=null,o=null,i.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?o=null:"resetDecoration"===t.type&&i.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?o=t.value:"setDecoration"===t.type&&i.add(t.value)}n=a.position}while(n<e.length);return t}});return l.map(t=>u.parse(t[0]).map(n=>{let r,o;n.decorations.has("reverse")?(r=n.background?s.value(n.background):e.bg,o=n.foreground?s.value(n.foreground):e.fg):(r=n.foreground?s.value(n.foreground):e.fg,o=n.background?s.value(n.background):void 0),r=pK(r,a),o=pK(o,a),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let i=fu.None;return n.decorations.has("bold")&&(i|=fu.Bold),n.decorations.has("italic")&&(i|=fu.Italic),n.decorations.has("underline")&&(i|=fu.Underline),{content:n.value,offset:t[1],color:r,bgColor:o,fontStyle:i}}))}(i,t,n);let l=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new dX(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(i.name))throw new dX(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return function(e,t,n,r,o){let i=ht(e,t,n,r,o),a=new p2(ht(e,t,n,r,o).stateStack,t.name,n.name);return p0(i.tokens,a),i.tokens}(t,l,i,a,n)}function ht(e,t,n,r,o){let i=pX(n,o),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:l=500}=o,s=pH(e),u=o.grammarState?function(e,t){if(!(e instanceof p2))throw new pJ("Invalid grammar state");return e.getInternalStack(t)}(o.grammarState,n.name)??f9:null!=o.grammarContextCode?ht(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:f9,c=[],d=[];for(let e=0,f=s.length;e<f;e++){let f,p;let[h,m]=s[e];if(""===h){c=[],d.push([]);continue}if(a>0&&h.length>=a){c=[],d.push([{content:h,offset:m,color:"",fontStyle:0}]);continue}o.includeExplanation&&(f=t.tokenizeLine(h,u).tokens,p=0);let g=t.tokenizeLine2(h,u,l),b=g.tokens.length/2;for(let e=0;e<b;e++){let t=g.tokens[2*e],a=e+1<b?g.tokens[2*e+2]:h.length;if(t===a)continue;let l=g.tokens[2*e+1],s=pK(r[fh.getForeground(l)],i),u=fh.getFontStyle(l),d={content:h.substring(t,a),offset:m+t,color:s,fontStyle:u};if(o.includeExplanation){let e=[];if("scopeName"!==o.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<a;){let t=f[p],n=h.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===o.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let o=t[r];n[r]={scopeName:o,themeMatches:function(e,t,n){let r=[];for(let{selectors:o,settings:i}of e)for(let e of o)if(function(e,t,n){if(!hn(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)hn(e[r],n[o])&&(r-=1),o-=1;return -1===r}(e,t,n)){r.push(i);break}return r}(e,o,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}c.push(d)}d.push(c),c=[],u=g.ruleStack}return{tokens:d,stateStack:u}}function hn(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function hr(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),o=r.map(r=>{let o=he(e,t,{...n,theme:r.theme}),i=p1(o);return{tokens:o,state:i,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),i=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let o=e.map(e=>e[r]),i=t.map(()=>[]);t.forEach((e,t)=>e.push(i[t]));let a=o.map(()=>0),l=o.map(e=>e[0]);for(;l.every(e=>e);){let e=Math.min(...l.map(e=>e.content.length));for(let t=0;t<n;t++){let n=l[t];n.content.length===e?(i[t].push(n),a[t]+=1,l[t]=o[t][a[t]]):(i[t].push({...n,content:n.content.slice(0,e)}),l[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...o.map(e=>e.tokens)),a=i[0].map((e,t)=>e.map((e,o)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),i.forEach((e,n)=>{let{content:i,explanation:l,offset:s,...u}=e[t][o];a.variants[r[n].color]=u}),a})),l=o[0].state?new p2(Object.fromEntries(o.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),o[0].state.lang):void 0;return l&&p0(a,l),a}function ho(e,t,n){let r,o,i,a,l,s;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-"}=n,d=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:t.color===u?1:0);if(0===d.length)throw new dX("`themes` option must not be empty");let f=hr(e,t,n);if(s=p1(f),u&&!d.find(e=>e.color===u))throw new dX(`\`themes\` option must contain the defaultColor key \`${u}\``);let p=d.map(t=>e.getTheme(t.theme)),h=d.map(e=>e.color);i=f.map(e=>e.map(e=>(function(e,t,n,r){let o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(t=>pY(e.variants[t])),a=new Set(i.flatMap(e=>Object.keys(e))),l={};return i.forEach((e,o)=>{for(let i of a){let a=e[i]||"inherit";if(0===o&&r)l[i]=a;else{let e="color"===i?"":"background-color"===i?"-bg":`-${i}`;l[n+t[o]+("color"===i?"":e)]=a}}}),o.htmlStyle=l,o})(e,h,c,u))),s&&p0(i,s);let m=d.map(e=>pX(e.theme,n));o=d.map((e,t)=>(0===t&&u?"":`${c+e.color}:`)+(pK(p[t].fg,m[t])||"inherit")).join(";"),r=d.map((e,t)=>(0===t&&u?"":`${c+e.color}-bg:`)+(pK(p[t].bg,m[t])||"inherit")).join(";"),a=`shiki-themes ${p.map(e=>e.name).join(" ")}`,l=u?void 0:[o,r].join(";")}else if("theme"in n){let l=pX(n.theme,n);i=he(e,t,n);let u=e.getTheme(n.theme);r=pK(u.bg,l),o=pK(u.fg,l),a=u.name,s=p1(i)}else throw new dX("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:o,bg:r,themeName:a,rootStyle:l,grammarState:s}}function hi(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>hi(e,t,n),codeToTokens:(t,n)=>ho(e,t,n)}){let o=t;for(let e of p6(n))o=e.preprocess?.call(r,o,n)||o;let{tokens:i,fg:a,bg:l,themeName:s,rootStyle:u,grammarState:c}=ho(e,o,n),{mergeWhitespaces:d=!0}=n;!0===d?i=i.map(e=>{let t=[],n="",r=0;return e.forEach((o,i)=>{let a=!(o.fontStyle&&o.fontStyle&fu.Underline);a&&o.content.match(/^\s+$/)&&e[i+1]?(r||(r=o.offset),n+=o.content):n?(a?t.push({...o,offset:r,content:n+o.content}):t.push({content:n,offset:r},o),r=0,n=""):t.push(o)}),t}):"never"===d&&(i=i.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,o]=t;if(!n&&!o)return e;let i=[{...e,offset:e.offset+n.length,content:r}];return n&&i.unshift({content:n,offset:e.offset}),o&&i.push({content:o,offset:e.offset+n.length+r.length}),i})));let f={...r,get source(){return o}};for(let e of p6(n))i=e.tokens?.call(f,i)||i;return function(e,t,n,r=p1(e)){let o=p6(t),i=[],a={type:"root",children:[]},{structure:l="classic",tabindex:s="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==s&&null!=s?{tabindex:s.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:i},d=[],f={...n,structure:l,addClassToHast:pq,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return u},get code(){return c},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===l?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&i.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let i of e){var s;let e={type:"element",tagName:"span",properties:{...i.htmlAttrs},children:[{type:"text",value:i.content}]};i.htmlStyle;let u="string"==typeof(s=i.htmlStyle||pY(i))?s:Object.entries(s).map(([e,t])=>`${e}:${t}`).join(";");for(let a of(u&&(e.properties.style=u),o))e=a?.span?.call(f,e,t+1,r,n,i)||e;"inline"===l?a.children.push(e):"classic"===l&&n.children.push(e),r+=i.content.length}if("classic"===l){for(let e of o)n=e?.line?.call(f,n,t+1)||n;d.push(n),i.push(n)}}),"classic"===l){for(let e of o)c=e?.code?.call(f,c)||c;for(let e of(u.children.push(c),o))u=e?.pre?.call(f,u)||u;a.children.push(u)}let p=a;for(let e of o)p=e?.root?.call(f,p)||p;return r&&p0(p,r),p}(i,{...n,fg:a,bg:l,themeName:s,rootStyle:u},f,c)}let ha={light:"#333333",dark:"#bbbbbb"},hl={light:"#fffffe",dark:"#1e1e1e"},hs="__shiki_resolved";function hu(e){if(e?.[hs])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?ha.light:ha.dark),n||(n="light"===t.type?hl.light:hl.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let o=0,i=new Map;function a(e){if(i.has(e))return i.get(e);o+=1;let n=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?a(e):(i.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let o={...e,settings:{...e.settings}};if(n){let n=a(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,o.settings.foreground=n}if(r){let n=a(e.settings.background);t.colorReplacements[n]=e.settings.background,o.settings.background=n}return o}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=a(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,hs,{enumerable:!1,writable:!1,value:!0}),t}async function hc(e){return Array.from(new Set((await Promise.all(e.filter(e=>!pV(e)).map(async e=>await pG(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function hd(e){return(await Promise.all(e.map(async e=>pU(e)?null:hu(await pG(e))))).filter(e=>!!e)}class hf extends f7{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=hu(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=fi.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new pJ(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new pJ(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class hp{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let hh=0;async function hm(e={}){e.loadWasm;let[t,n,r]=await Promise.all([hd(e.themes||[]),hc(e.langs||[]),e.engine||d4(e.loadWasm||o)]);return function(e){let t;hh+=1,!1!==e.warnings&&hh>=10&&hh%10==0&&console.warn(`[Shiki] ${hh} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new pJ("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(hu),i=new hf(new hp(e.engine,r),o,r,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=i.getTheme(e);if(!t)throw new pJ(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(...e){u(),i.loadLanguages(e.flat(1))}function s(...e){for(let t of(u(),e.flat(1)))i.loadTheme(t)}function u(){if(n)throw new pJ("Shiki instance has been disposed")}function c(){n||(n=!0,i.dispose(),hh-=1)}return{setTheme:function(e){u();let n=a(e);return t!==e&&(i.setTheme(n),t=e),{theme:n,colorMap:i.getColorMap()}},getTheme:a,getLanguage:function(e){u();let t=i.getGrammar("string"==typeof e?e:e.name);if(!t)throw new pJ(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),i.getLoadedThemes()},getLoadedLanguages:function(){return u(),i.getLoadedLanguages()},loadLanguage:async function(...e){return l(await hc(e))},loadLanguageSync:l,loadTheme:async function(...e){return u(),s(await hd(e))},loadThemeSync:s,dispose:c,[Symbol.dispose]:c}}({...e,loadWasm:void 0,themes:t,langs:n,engine:r})}async function hg(e={}){let t=await hm(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return p1(e[1]);let[t,n,r={}]=e,{lang:o="text",theme:i=t.getLoadedThemes()[0]}=r;if(pW(o)||pU(i))throw new dX("Plain language does not have grammar state");if("ansi"===o)throw new dX("ANSI language does not have grammar state");let{theme:a,colorMap:l}=t.setTheme(i),s=t.getLanguage(o);return new p2(ht(n,s,a,l,r).stateStack,s.name,a.name)})(t,...e),codeToTokensBase:(e,n)=>he(t,e,n),codeToTokensWithThemes:(e,n)=>hr(t,e,n),codeToTokens:(e,n)=>ho(t,e,n),codeToHast:(e,n)=>hi(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>hi(e,t,n),codeToTokens:(t,n)=>ho(e,t,n)},o=function(e,t){let n=pZ.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:pz,all:pL,settings:{omitOptionalTags:pZ.omitOptionalTags||!1,allowParseErrors:pZ.allowParseErrors||!1,allowDangerousCharacters:pZ.allowDangerousCharacters||!1,quoteSmart:pZ.quoteSmart||!1,preferUnquoted:pZ.preferUnquoted||!1,tightAttributes:pZ.tightAttributes||!1,upperDoctype:pZ.upperDoctype||!1,tightDoctype:pZ.tightDoctype||!1,bogusComments:pZ.bogusComments||!1,tightCommaSeparatedLists:pZ.tightCommaSeparatedLists||!1,tightSelfClosing:pZ.tightSelfClosing||!1,collapseEmptyAttributes:pZ.collapseEmptyAttributes||!1,allowDangerousHtml:pZ.allowDangerousHtml||!1,voids:pZ.voids||pe,characterReferences:pZ.characterReferences||pR,closeSelfClosing:pZ.closeSelfClosing||!1,closeEmptyElements:pZ.closeEmptyElements||!1},schema:"svg"===pZ.space?sI:sA,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(hi(e,t,n,r));for(let e of p6(n))o=e.postprocess?.call(r,o,n)||o;return o})(t,e,n),...t,getInternalContext:()=>t}}let hb=[{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(6547)]).then(n.bind(n,46547))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(7003),n.e(4122),n.e(325),n.e(8686),n.e(9838),n.e(8672)]).then(n.bind(n,80765))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(7003),n.e(10),n.e(325),n.e(3865)]).then(n.bind(n,63865))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(9738),n.e(3597),n.e(7935)]).then(n.bind(n,17935))},{id:"c",name:"C",import:()=>n.e(671).then(n.bind(n,40671))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(7003),n.e(7848)]).then(n.bind(n,27848))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(3293),n.e(8499),n.e(3597),n.e(671),n.e(5224)]).then(n.bind(n,93807))},{id:"css",name:"CSS",import:()=>n.e(325).then(n.bind(n,90325))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(671),n.e(7142)]).then(n.bind(n,7142))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(7003),n.e(10),n.e(981),n.e(8296),n.e(5896)]).then(n.bind(n,35896))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(7003),n.e(325),n.e(7619)]).then(n.bind(n,67619))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(4755)]).then(n.bind(n,54755))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686)]).then(n.bind(n,88686))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(2674)]).then(n.bind(n,52674))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(7003),n.e(10),n.e(981),n.e(8296),n.e(9738),n.e(6114),n.e(7894)]).then(n.bind(n,67894))},{id:"imba",name:"Imba",import:()=>Promise.all([n.e(10),n.e(3993)]).then(n.bind(n,53993))},{id:"java",name:"Java",import:()=>n.e(9738).then(n.bind(n,39738))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>n.e(7003).then(n.bind(n,60705))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(2971)]).then(n.bind(n,62971))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(7003),n.e(8260)]).then(n.bind(n,78260))},{id:"json",name:"JSON",import:()=>n.e(9259).then(n.bind(n,69259))},{id:"json5",name:"JSON5",import:()=>n.e(1904).then(n.bind(n,21904))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(1255).then(n.bind(n,1255))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(1451).then(n.bind(n,71451))},{id:"jsx",name:"JSX",import:()=>n.e(981).then(n.bind(n,26681))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(7003),n.e(3293),n.e(8499),n.e(3597),n.e(671),n.e(1143),n.e(59),n.e(8366)]).then(n.bind(n,18742))},{id:"less",name:"Less",import:()=>n.e(6123).then(n.bind(n,56123))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(5719).then(n.bind(n,95719))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(7003),n.e(325),n.e(9838),n.e(6123),n.e(5632)]).then(n.bind(n,65632))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(5719),n.e(2497)]).then(n.bind(n,42497))},{id:"mdx",name:"MDX",import:()=>n.e(6488).then(n.bind(n,7954))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(9738),n.e(3597),n.e(5713)]).then(n.bind(n,65713))},{id:"postcss",name:"PostCSS",import:()=>n.e(7686).then(n.bind(n,77686))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(7003),n.e(325),n.e(8686),n.e(722)]).then(n.bind(n,722))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(1143).then(n.bind(n,51143))},{id:"r",name:"R",import:()=>n.e(59).then(n.bind(n,20059))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(4760).then(n.bind(n,34760))},{id:"sass",name:"Sass",import:()=>n.e(6105).then(n.bind(n,66105))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(325),n.e(9838)]).then(n.bind(n,99838))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(6114).then(n.bind(n,56114))},{id:"sql",name:"SQL",import:()=>n.e(3597).then(n.bind(n,3597))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(3577).then(n.bind(n,3577))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(7003),n.e(10),n.e(325),n.e(1175)]).then(n.bind(n,21175))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(7003),n.e(10),n.e(325),n.e(8686),n.e(9738),n.e(3597),n.e(671),n.e(3687)]).then(n.bind(n,33687))},{id:"tsx",name:"TSX",import:()=>n.e(8296).then(n.bind(n,8234))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>n.e(10).then(n.bind(n,24841))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(7003),n.e(10),n.e(325),n.e(8686),n.e(2208)]).then(n.bind(n,62208))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(7003),n.e(10),n.e(325),n.e(8686),n.e(7882)]).then(n.bind(n,27882))},{id:"wasm",name:"WebAssembly",import:()=>n.e(6180).then(n.bind(n,26180))},{id:"wgsl",name:"WGSL",import:()=>n.e(674).then(n.bind(n,674))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(9738),n.e(8611)]).then(n.bind(n,18611))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(3640).then(n.bind(n,33640))}],hv=Object.fromEntries(hb.map(e=>[e.id,e.import])),hy=Object.fromEntries(hb.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),hx=(f={langs:{...hv,...hy},themes:dG,engine:()=>d4(n.e(2118).then(n.bind(n,12142)))},p?(a=f,l=p,s=()=>d4(void 0)):(a=f.langs,l=f.themes,s=f.engine),async function(e){function t(e){if("string"==typeof e){if(pV(e))return[];let t=a[e];if(!t)throw new dX(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}function n(e){if(pU(e))return"none";if("string"==typeof e){let t=l[e];if(!t)throw new dX(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),o=(e.langs??[]).map(e=>t(e)),i=await hg({engine:e.engine??s(),...e,themes:r,langs:o});return{...i,loadLanguage:(...e)=>i.loadLanguage(...e.map(t)),loadTheme:(...e)=>i.loadTheme(...e.map(n))}}),{codeToHtml:hw,codeToHast:hC,codeToTokensBase:hk,codeToTokens:hD,codeToTokensWithThemes:hE,getSingletonHighlighter:hS,getLastGrammarState:h$}=function(e){let t;let n=async function(n={}){if(!t)return t=e({...n,themes:n.themes||[],langs:n.langs||[]});{let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}};return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToHtml(e,t),codeToHast:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToHast(e,t),codeToTokens:async(e,t)=>(await n({langs:[t.lang],themes:"theme"in t?[t.theme]:Object.values(t.themes)})).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await n({langs:[t.lang],themes:Object.values(t.themes).filter(Boolean)})).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(hx),hO=e=>hx(e);var hF={red:{light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"],dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"]},volcano:{light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"],dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"]},orange:{light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"],dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"]},gold:{light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"],dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"]},lime:{light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"],dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"]},green:{light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"],dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"]},blue:{light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"],dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"]},geekblue:{light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"],dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"]},gray:{light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"],dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"]}},hj=function(e){var t=e?"dark":"light",n=hF.gray[t][11],r=e?hF.gray[t][9]:hF.gray[t][10],o=e?hF.gray[t][6]:hF.gray[t][7],i=e?hF.red[t][9]:hF.volcano[t][9],a=e?hF.gold[t][9]:hF.orange[t][9],l=e?hF.lime[t][9]:hF.green[t][9],s=e?hF.blue[t][9]:hF.geekblue[t][9];return{type:t,colorText:n,colorTextSecondary:r,colorTextTertiary:o,colorRed:i,colorOrange:a,colorGreen:l,colorBlue:s,colorFillTertiary:e?"#2b303b":"#fafafa"}},hA=function(e){var t=hj(e),n=t.type,r=t.colorBlue,o=t.colorGreen,i=t.colorOrange,a=t.colorRed,l=t.colorText,s=t.colorTextSecondary,u=t.colorTextTertiary;return{name:n,type:n,semanticHighlighting:!0,semanticTokenColors:{enumMember:{foreground:r},"variable.constant":{foreground:o},"variable.defaultLibrary":{foreground:a},"variable:dart":{foreground:o},"property:dart":{foreground:o},"annotation:dart":{foreground:o},"parameter.label:dart":{foreground:u},macro:{foreground:o},tomlArrayKey:{foreground:a}},tokenColors:[{scope:"meta.embedded",settings:{foreground:u}},{name:"unison punctuation",scope:"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison",settings:{foreground:l}},{name:"haskell variable generic-type",scope:"variable.other.generic-type.haskell",settings:{foreground:r}},{name:"haskell storage type",scope:"storage.type.haskell",settings:{foreground:o}},{name:"support.variable.magic.python",scope:"support.variable.magic.python",settings:{foreground:l}},{name:"punctuation.separator.parameters.python",scope:"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python",settings:{foreground:u}},{name:"variable.parameter.function.language.special.self.python",scope:"variable.parameter.function.language.special.self.python",settings:{foreground:a}},{name:"variable.parameter.function.language.special.cls.python",scope:"variable.parameter.function.language.special.cls.python",settings:{foreground:a}},{name:"storage.modifier.lifetime.rust",scope:"storage.modifier.lifetime.rust",settings:{foreground:u}},{name:"support.function.std.rust",scope:"support.function.std.rust",settings:{foreground:i}},{name:"entity.name.lifetime.rust",scope:"entity.name.lifetime.rust",settings:{foreground:a}},{name:"variable.language.rust",scope:"variable.language.rust",settings:{foreground:l}},{name:"support.constant.edge",scope:"support.constant.edge",settings:{foreground:r}},{name:"regexp constant character-class",scope:"constant.other.character-class.regexp",settings:{foreground:l}},{name:"keyword.operator",scope:["keyword.operator.word"],settings:{foreground:r}},{name:"regexp operator.quantifier",scope:"keyword.operator.quantifier.regexp",settings:{foreground:o}},{name:"Text",scope:"variable.parameter.function",settings:{foreground:u}},{name:"Comment Markup Link",scope:"comment markup.link",settings:{foreground:u}},{name:"markup diff",scope:"markup.changed.diff",settings:{foreground:a}},{name:"diff",scope:"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff",settings:{foreground:i}},{name:"inserted.diff",scope:"markup.inserted.diff",settings:{foreground:o}},{name:"deleted.diff",scope:"markup.deleted.diff",settings:{foreground:l}},{name:"c++ function",scope:"meta.function.c,meta.function.cpp",settings:{foreground:l}},{name:"c++ block",scope:"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c",settings:{foreground:u}},{name:"js/ts punctuation separator key-value",scope:"punctuation.separator.key-value",settings:{foreground:u}},{name:"js/ts import keyword",scope:"keyword.operator.expression.import",settings:{foreground:i}},{name:"math js/ts",scope:"support.constant.math",settings:{foreground:a}},{name:"math property js/ts",scope:"support.constant.property.math",settings:{foreground:o}},{name:"js/ts variable.other.constant",scope:"variable.other.constant",settings:{foreground:a}},{name:"java type",scope:["storage.type.annotation.java","storage.type.object.array.java"],settings:{foreground:a}},{name:"java source",scope:"source.java",settings:{foreground:l}},{name:"java modifier.import",scope:"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java",settings:{foreground:u}},{name:"java modifier.import",scope:"meta.method.java",settings:{foreground:i}},{name:"java modifier.import",scope:"storage.modifier.import.java,storage.type.java,storage.type.generic.java",settings:{foreground:a}},{name:"java instanceof",scope:"keyword.operator.instanceof.java",settings:{foreground:r}},{name:"java variable.name",scope:"meta.definition.variable.name.java",settings:{foreground:l}},{name:"operator logical",scope:"keyword.operator.logical",settings:{foreground:r}},{name:"operator bitwise",scope:"keyword.operator.bitwise",settings:{foreground:r}},{name:"operator channel",scope:"keyword.operator.channel",settings:{foreground:r}},{name:"support.constant.property-value.scss",scope:"support.constant.property-value.scss,support.constant.property-value.css",settings:{foreground:o}},{name:"CSS/SCSS/LESS Operators",scope:"keyword.operator.css,keyword.operator.scss,keyword.operator.less",settings:{foreground:r}},{name:"css color standard name",scope:"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss",settings:{foreground:o}},{name:"css comma",scope:"punctuation.separator.list.comma.css",settings:{foreground:u}},{name:"css attribute-name.id",scope:"support.constant.color.w3c-standard-color-name.css",settings:{foreground:o}},{name:"css property-name",scope:"support.type.vendored.property-name.css",settings:{foreground:r}},{name:"js/ts module",scope:"support.module.node,support.type.object.module,support.module.node",settings:{foreground:a}},{name:"entity.name.type.module",scope:"entity.name.type.module",settings:{foreground:a}},{name:"js variable readwrite",scope:"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node",settings:{foreground:l}},{name:"js/ts json",scope:"support.constant.json",settings:{foreground:o}},{name:"js/ts Keyword",scope:["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],settings:{foreground:r}},{name:"js/ts console",scope:"support.type.object.console",settings:{foreground:l}},{name:"js/ts support.variable.property.process",scope:"support.variable.property.process",settings:{foreground:o}},{name:"js console function",scope:"entity.name.function,support.function.console",settings:{foreground:i}},{name:"keyword.operator.misc.rust",scope:"keyword.operator.misc.rust",settings:{foreground:u}},{name:"keyword.operator.sigil.rust",scope:"keyword.operator.sigil.rust",settings:{foreground:r}},{name:"operator",scope:"keyword.operator.delete",settings:{foreground:r}},{name:"js dom",scope:"support.type.object.dom",settings:{foreground:r}},{name:"js dom variable",scope:"support.variable.dom,support.variable.property.dom",settings:{foreground:l}},{name:"keyword.operator",scope:"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational",settings:{foreground:r}},{name:"C operator assignment",scope:"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp",settings:{foreground:r}},{name:"Punctuation",scope:"punctuation.separator.delimiter",settings:{foreground:u}},{name:"Other punctuation .c",scope:"punctuation.separator.c,punctuation.separator.cpp",settings:{foreground:r}},{name:"C type posix-reserved",scope:"support.type.posix-reserved.c,support.type.posix-reserved.cpp",settings:{foreground:r}},{name:"keyword.operator.sizeof.c",scope:"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp",settings:{foreground:r}},{name:"python parameter",scope:"variable.parameter.function.language.python",settings:{foreground:o}},{name:"python type",scope:"support.type.python",settings:{foreground:r}},{name:"python logical",scope:"keyword.operator.logical.python",settings:{foreground:r}},{name:"pyCs",scope:"variable.parameter.function.python",settings:{foreground:o}},{name:"python block",scope:"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python",settings:{foreground:u}},{name:"python function-call.generic",scope:"meta.function-call.generic.python",settings:{foreground:i}},{name:"python placeholder reset to normal string",scope:"constant.character.format.placeholder.other.python",settings:{foreground:o}},{name:"Operators",scope:"keyword.operator",settings:{foreground:u}},{name:"Compound Assignment Operators",scope:"keyword.operator.assignment.compound",settings:{foreground:r}},{name:"Compound Assignment Operators js/ts",scope:"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts",settings:{foreground:r}},{name:"Keywords",scope:"keyword",settings:{foreground:r}},{name:"Namespaces",scope:"entity.name.namespace",settings:{foreground:a}},{name:"Variables",scope:"variable",settings:{foreground:l}},{name:"Variables",scope:"variable.c",settings:{foreground:u}},{name:"Language variables",scope:"variable.language",settings:{foreground:a}},{name:"Java Variables",scope:"token.variable.parameter.java",settings:{foreground:u}},{name:"Java Imports",scope:"import.storage.java",settings:{foreground:a}},{name:"Packages",scope:"token.package.keyword",settings:{foreground:r}},{name:"Packages",scope:"token.package",settings:{foreground:u}},{name:"Functions",scope:["entity.name.function","meta.require","support.function.any-method","variable.function"],settings:{foreground:i}},{name:"Classes",scope:"entity.name.type.namespace",settings:{foreground:a}},{name:"Classes",scope:"support.class, entity.name.type.class",settings:{foreground:a}},{name:"Class name",scope:"entity.name.class.identifier.namespace.type",settings:{foreground:a}},{name:"Class name",scope:["entity.name.class","variable.other.class.js","variable.other.class.ts"],settings:{foreground:a}},{name:"Class name php",scope:"variable.other.class.php",settings:{foreground:l}},{name:"Type Name",scope:"entity.name.type",settings:{foreground:a}},{name:"Keyword Control",scope:"keyword.control",settings:{foreground:r}},{name:"Control Elements",scope:"control.elements, keyword.operator.less",settings:{foreground:o}},{name:"Methods",scope:"keyword.other.special-method",settings:{foreground:i}},{name:"Storage",scope:"storage",settings:{foreground:r}},{name:"Storage JS TS",scope:"token.storage",settings:{foreground:r}},{name:"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void",scope:"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void",settings:{foreground:r}},{name:"Java Storage",scope:"token.storage.type.java",settings:{foreground:a}},{name:"Support",scope:"support.function",settings:{foreground:r}},{name:"Support type",scope:"support.type.property-name",settings:{foreground:u}},{name:"[VSCODE-CUSTOM] toml support",scope:"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml",settings:{foreground:l}},{name:"Support type",scope:"support.constant.property-value",settings:{foreground:u}},{name:"Support type",scope:"support.constant.font-name",settings:{foreground:o}},{name:"Meta tag",scope:"meta.tag",settings:{foreground:u}},{name:"Strings",scope:"string",settings:{foreground:o}},{name:"Constant other symbol",scope:"constant.other.symbol",settings:{foreground:r}},{name:"Integers",scope:"constant.numeric",settings:{foreground:o}},{name:"Constants",scope:"constant",settings:{foreground:o}},{name:"Constants",scope:"punctuation.definition.constant",settings:{foreground:o}},{name:"Tags",scope:"entity.name.tag",settings:{foreground:l}},{name:"Attributes",scope:"entity.other.attribute-name",settings:{foreground:o}},{name:"Attribute IDs",scope:"entity.other.attribute-name.id",settings:{foreground:i}},{name:"Attribute class",scope:"entity.other.attribute-name.class.css",settings:{foreground:o}},{name:"Selector",scope:"meta.selector",settings:{foreground:r}},{name:"Headings",scope:"markup.heading",settings:{foreground:l}},{name:"Headings",scope:"markup.heading punctuation.definition.heading, entity.name.section",settings:{foreground:i}},{name:"Units",scope:"keyword.other.unit",settings:{foreground:l}},{name:"Bold",scope:"markup.bold,todo.bold",settings:{foreground:o}},{name:"Bold",scope:"punctuation.definition.bold",settings:{foreground:a}},{name:"markup Italic",scope:"markup.italic, punctuation.definition.italic,todo.emphasis",settings:{foreground:r}},{name:"emphasis md",scope:"emphasis md",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] Markdown headings",scope:"entity.name.section.markdown",settings:{foreground:l}},{name:"[VSCODE-CUSTOM] Markdown heading Punctuation Definition",scope:"punctuation.definition.heading.markdown",settings:{foreground:l}},{name:"punctuation.definition.list.begin.markdown",scope:"punctuation.definition.list.begin.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown heading setext",scope:"markup.heading.setext",settings:{foreground:u}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold",scope:"punctuation.definition.bold.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.string.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw punctuation",scope:"punctuation.definition.raw.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown List Punctuation Definition",scope:"punctuation.definition.list.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition String",scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],settings:{foreground:l}},{name:"beginning.punctuation.definition.list.markdown",scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:l}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Link",scope:"punctuation.definition.metadata.markdown",settings:{foreground:l}},{name:"[VSCODE-CUSTOM] Markdown Underline Link/Image",scope:"markup.underline.link.markdown,markup.underline.link.image.markdown",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Link Title/Description",scope:"string.other.link.title.markdown,string.other.link.description.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw",scope:"markup.raw.monospace.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition",scope:"punctuation.definition.asciidoc",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition",scope:"markup.list.asciidoc",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Asciidoc underline link",scope:"markup.link.asciidoc,markup.other.url.asciidoc",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] Asciidoc link name",scope:"string.unquoted.asciidoc,markup.other.url.asciidoc",settings:{foreground:i}},{name:"Regular Expressions",scope:"string.regexp",settings:{foreground:r}},{name:"Embedded",scope:"punctuation.section.embedded, variable.interpolation",settings:{foreground:l}},{name:"Embedded",scope:"punctuation.section.embedded.begin,punctuation.section.embedded.end",settings:{foreground:r}},{name:"illegal",scope:"invalid.illegal",settings:{foreground:l}},{name:"illegal",scope:"invalid.illegal.bad-ampersand.html",settings:{foreground:u}},{scope:"invalid.illegal.unrecognized-tag.html",settings:{foreground:l}},{name:"Broken",scope:"invalid.broken",settings:{foreground:l}},{name:"Deprecated",scope:"invalid.deprecated",settings:{foreground:l}},{name:"html Deprecated",scope:"invalid.deprecated.entity.other.attribute-name.html",settings:{foreground:o}},{name:"Unimplemented",scope:"invalid.unimplemented",settings:{foreground:l}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json",scope:"source.json meta.structure.dictionary.json > string.quoted.json",settings:{foreground:l}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String",scope:"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string",settings:{foreground:l}},{name:"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation",scope:"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation",settings:{foreground:o}},{name:"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json",scope:"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] JSON Property Name",scope:"support.type.property-name.json",settings:{foreground:l}},{name:"[VSCODE-CUSTOM] JSON Punctuation for Property Name",scope:"support.type.property-name.json punctuation",settings:{foreground:l}},{name:"laravel blade tag",scope:"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",settings:{foreground:r}},{name:"laravel blade @",scope:"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade",settings:{foreground:r}},{name:"use statement for other classes",scope:"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php",settings:{foreground:a}},{name:"error suppression",scope:"keyword.operator.error-control.php",settings:{foreground:r}},{name:"php instanceof",scope:"keyword.operator.type.php",settings:{foreground:r}},{name:"style double quoted array index normal begin",scope:"punctuation.section.array.begin.php",settings:{foreground:u}},{name:"style double quoted array index normal end",scope:"punctuation.section.array.end.php",settings:{foreground:u}},{name:"php illegal.non-null-typehinted",scope:"invalid.illegal.non-null-typehinted.php",settings:{foreground:a}},{name:"php types",scope:"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php",settings:{foreground:a}},{name:"php call-function",scope:"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php",settings:{foreground:i}},{name:"php function-resets",scope:"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php",settings:{foreground:u}},{name:"support php constants",scope:"support.constant.core.rust",settings:{foreground:o}},{name:"support php constants",scope:"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php",settings:{foreground:o}},{name:"php goto",scope:"entity.name.goto-label.php,support.other.php",settings:{foreground:i}},{name:"php logical/bitwise operator",scope:"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php",settings:{foreground:r}},{name:"php regexp operator",scope:"keyword.operator.regexp.php",settings:{foreground:r}},{name:"php comparison",scope:"keyword.operator.comparison.php",settings:{foreground:r}},{name:"php heredoc/nowdoc",scope:"keyword.operator.heredoc.php,keyword.operator.nowdoc.php",settings:{foreground:r}},{name:"python function decorator @",scope:"meta.function.decorator.python",settings:{foreground:i}},{name:"python function support",scope:"support.token.decorator.python,meta.function.decorator.identifier.python",settings:{foreground:r}},{name:"parameter function js/ts",scope:"function.parameter",settings:{foreground:u}},{name:"brace function",scope:"function.brace",settings:{foreground:u}},{name:"parameter function ruby cs",scope:"function.parameter.ruby, function.parameter.cs",settings:{foreground:u}},{name:"constant.language.symbol.ruby",scope:"constant.language.symbol.ruby",settings:{foreground:r}},{name:"constant.language.symbol.hashkey.ruby",scope:"constant.language.symbol.hashkey.ruby",settings:{foreground:r}},{name:"rgb-value",scope:"rgb-value",settings:{foreground:r}},{name:"rgb value",scope:"inline-color-decoration rgb-value",settings:{foreground:o}},{name:"rgb value less",scope:"less rgb-value",settings:{foreground:o}},{name:"sass selector",scope:"selector.sass",settings:{foreground:l}},{name:"ts primitive/builtin types",scope:"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx",settings:{foreground:a}},{name:"block scope",scope:"block.scope.end,block.scope.begin",settings:{foreground:u}},{name:"cs storage type",scope:"storage.type.cs",settings:{foreground:a}},{name:"cs local variable",scope:"entity.name.variable.local.cs",settings:{foreground:l}},{scope:"token.info-token",settings:{foreground:i}},{scope:"token.warn-token",settings:{foreground:o}},{scope:"token.error-token",settings:{foreground:a}},{scope:"token.debug-token",settings:{foreground:r}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:r}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:u}},{name:"Import module JS",scope:["keyword.operator.module"],settings:{foreground:r}},{name:"js Flowtype",scope:["support.type.type.flowtype"],settings:{foreground:i}},{name:"js Flow",scope:["support.type.primitive"],settings:{foreground:a}},{name:"js class prop",scope:["meta.property.object"],settings:{foreground:l}},{name:"js func parameter",scope:["variable.parameter.function.js"],settings:{foreground:l}},{name:"js template literals begin",scope:["keyword.other.template.begin"],settings:{foreground:o}},{name:"js template literals end",scope:["keyword.other.template.end"],settings:{foreground:o}},{name:"js template literals variable braces begin",scope:["keyword.other.substitution.begin"],settings:{foreground:o}},{name:"js template literals variable braces end",scope:["keyword.other.substitution.end"],settings:{foreground:o}},{name:"js operator.assignment",scope:["keyword.operator.assignment"],settings:{foreground:r}},{name:"go operator",scope:["keyword.operator.assignment.go"],settings:{foreground:a}},{name:"go operator",scope:["keyword.operator.arithmetic.go","keyword.operator.address.go"],settings:{foreground:r}},{name:"Go package name",scope:["entity.name.package.go"],settings:{foreground:a}},{name:"elm prelude",scope:["support.type.prelude.elm"],settings:{foreground:r}},{name:"elm constant",scope:["support.constant.elm"],settings:{foreground:o}},{name:"template literal",scope:["punctuation.quasi.element"],settings:{foreground:r}},{name:"html/pug (jade) escaped characters and entities",scope:["constant.character.entity"],settings:{foreground:l}},{name:"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour",scope:["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],settings:{foreground:r}},{name:"Clojure globals",scope:["entity.global.clojure"],settings:{foreground:a}},{name:"Clojure symbols",scope:["meta.symbol.clojure"],settings:{foreground:l}},{name:"Clojure constants",scope:["constant.keyword.clojure"],settings:{foreground:r}},{name:"CoffeeScript Function Argument",scope:["meta.arguments.coffee","variable.parameter.function.coffee"],settings:{foreground:l}},{name:"Ini Default Text",scope:["source.ini"],settings:{foreground:o}},{name:"Makefile prerequisities",scope:["meta.scope.prerequisites.makefile"],settings:{foreground:l}},{name:"Makefile text colour",scope:["source.makefile"],settings:{foreground:a}},{name:"Groovy import names",scope:["storage.modifier.import.groovy"],settings:{foreground:a}},{name:"Groovy Methods",scope:["meta.method.groovy"],settings:{foreground:i}},{name:"Groovy Variables",scope:["meta.definition.variable.name.groovy"],settings:{foreground:l}},{name:"Groovy Inheritance",scope:["meta.definition.class.inherited.classes.groovy"],settings:{foreground:o}},{name:"HLSL Semantic",scope:["support.variable.semantic.hlsl"],settings:{foreground:a}},{name:"HLSL Types",scope:["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],settings:{foreground:r}},{name:"SQL Variables",scope:["text.variable","text.bracketed"],settings:{foreground:l}},{name:"types",scope:["support.type.swift","support.type.vb.asp"],settings:{foreground:a}},{name:"heading 1, keyword",scope:["entity.name.function.xi"],settings:{foreground:a}},{name:"heading 2, callable",scope:["entity.name.class.xi"],settings:{foreground:r}},{name:"heading 3, property",scope:["constant.character.character-class.regexp.xi"],settings:{foreground:l}},{name:"heading 4, type, class, interface",scope:["constant.regexp.xi"],settings:{foreground:r}},{name:"heading 5, enums, preprocessor, constant, decorator",scope:["keyword.control.xi"],settings:{foreground:r}},{name:"heading 6, number",scope:["invalid.xi"],settings:{foreground:u}},{name:"string",scope:["beginning.punctuation.definition.quote.markdown.xi"],settings:{foreground:o}},{name:"comments",scope:["beginning.punctuation.definition.list.markdown.xi"],settings:{foreground:u}},{name:"link",scope:["constant.character.xi"],settings:{foreground:i}},{name:"accent",scope:["accent.xi"],settings:{foreground:i}},{name:"wikiword",scope:["wikiword.xi"],settings:{foreground:o}},{name:"language operators like '+', '-' etc",scope:["constant.other.color.rgb-value.xi"],settings:{foreground:l}},{name:"elements to dim",scope:["punctuation.definition.tag.xi"],settings:{foreground:u}},{name:"C++/C#",scope:["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],settings:{foreground:a}},{name:"Markdown underscore-style headers",scope:["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],settings:{foreground:l}},{name:"meta.brace.square",scope:[" meta.brace.square"],settings:{foreground:u}},{name:"Comments",scope:"comment, punctuation.definition.comment",settings:{foreground:u,fontStyle:"italic"}},{name:"[VSCODE-CUSTOM] Markdown Quote",scope:"markup.quote.markdown",settings:{foreground:u}},{name:"punctuation.definition.block.sequence.item.yaml",scope:"punctuation.definition.block.sequence.item.yaml",settings:{foreground:u}},{scope:["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],settings:{foreground:r}},{scope:["entity.name.variable.parameter.cs"],settings:{foreground:a}},{scope:["entity.name.variable.field.cs"],settings:{foreground:l}},{name:"Deleted",scope:"markup.deleted",settings:{foreground:l}},{name:"Inserted",scope:"markup.inserted",settings:{foreground:o}},{name:"Underline",scope:"markup.underline",settings:{fontStyle:"underline"}},{name:"punctuation.section.embedded.begin.php",scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:a}},{name:"support.other.namespace.php",scope:["support.other.namespace.php"],settings:{foreground:u}},{name:"variable.other.object",scope:["variable.other.object"],settings:{foreground:a}},{name:"variable.other.constant.property",scope:["variable.other.constant.property"],settings:{foreground:l}},{name:"entity.other.inherited-class",scope:["entity.other.inherited-class"],settings:{foreground:a}},{name:"c variable readwrite",scope:"variable.other.readwrite.c",settings:{foreground:l}},{name:"php scope",scope:"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php",settings:{foreground:u}},{name:"Assembly",scope:["constant.numeric.decimal.asm.x86_64"],settings:{foreground:r}},{scope:["support.other.parenthesis.regexp"],settings:{foreground:o}},{scope:["constant.character.escape"],settings:{foreground:r}},{scope:["string.regexp"],settings:{foreground:l}},{scope:["log.info"],settings:{foreground:o}},{scope:["log.warning"],settings:{foreground:a}},{scope:["log.error"],settings:{foreground:l}},{name:"js/ts italic",scope:"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",settings:{fontStyle:"italic"}},{name:"comment",scope:"comment.line.double-slash,comment.block.documentation",settings:{fontStyle:"italic"}},{name:"Python Keyword Control",scope:"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python",settings:{fontStyle:"italic"}},{name:"markup.italic.markdown",scope:"markup.italic.markdown",settings:{fontStyle:"italic"}}],colors:{"editor.foreground":s}}},hI=["javascript","typescript","css","json","markdown","xml","html","yaml","tsx","jsx","java","python","sql","bash","sh","vue","vue-html"],hT=function(e,t){var n,r=(0,tt.useState)(null),o=(0,th.Z)(r,2),i=o[0],a=o[1],l=(n=(0,c6.Z)((0,c3.Z)().mark(function e(){return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hO({langs:hI,themes:[hA(!0),hA(!1)]});case 2:a(e.sent);case 4:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,tt.useEffect)(function(){l()},[]),{loading:!i,renderShiki:function(n){if(!(i&&i.getLoadedLanguages().includes(e)))return dq.sanitize("<pre><code>".concat(n,"</code></pre>"));var r=null==i?void 0:i.codeToHtml(n,{lang:e,theme:t});return dq.sanitize(r)}}},h_=cW(function(e,t){var n=e.css,r=e.cx,o=e.token,i=e.prefixCls,a=t.lineNumber,l=t.theme,s="".concat(i,"-").concat(o.editorPrefix,"-highlight"),u=hj("dark"===l).colorTextTertiary,c=n(ed||(ed=tm(["\n code {\n counter-reset: step;\n counter-increment: step 0;\n }\n\n code .line::before {\n content: counter(step);\n counter-increment: step;\n width: 1rem;\n margin-right: 1.5rem;\n display: inline-block;\n text-align: right;\n color: rgba(115, 138, 148, 0.4);\n user-select: none;\n }\n "])));return{shiki:r("".concat(s,"-shiki"),n(ef||(ef=tm(["\n .shiki {\n overflow-x: scroll;\n background: none !important;\n ","\n }\n "])),a?c:"")),loading:r(n(ep||(ep=tm(["\n color: ",";\n "])),u)),center:r(n(eh||(eh=tm(["\n backdrop-filter: saturate(180%) blur(10px);\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n\n height: 36px;\n padding: 0 8px;\n\n font-family: ",";\n color: ",";\n\n border-radius: ",";\n "])),o.fontFamilyCode,u,o.borderRadius))}}),hM=(0,tt.memo)(function(e){var t=e.children,n=e.lineNumber,r=e.theme,o=void 0===r?cK:r,i=e.language,a=h_({lineNumber:void 0!==n&&n,theme:o}).styles,l=hT(i,o),s=l.renderShiki,u=l.loading;return(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)("div",{className:tr()(a.shiki),dangerouslySetInnerHTML:{__html:s(t)||""}}),u?(0,tk.jsx)(c5,{className:a.center,gap:8,horizontal:!0,children:(0,tk.jsx)(cQ,{spin:!0,className:a.loading})}):null]})}),hP=cW(function(e,t){var n=e.token,r=e.css,o=e.cx,i=e.prefixCls,a=t.size,l=t.className,s="".concat(i,"-").concat(n.editorPrefix,"-icon"),u="number"==typeof a?r(em||(em=tm(["\n width: ","px !important;\n height: ","px !important;\n "])),a,a):"";return{container:o(s,r(eg||(eg=tm(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n color: "," !important;\n }\n\n &:active {\n scale: 0.8;\n color: ",";\n }\n\n transition: color 600ms ",", scale 400ms ",",\n background-color 100ms ",";\n "])),n.colorText,n.colorText,n.motionEaseOut,n.motionEaseOut,n.motionEaseOut),u,l),tooltip:r(eb||(eb=tm(["\n pointer-events: none;\n "])))}}),hN=["placement","title","icon","cursor","onClick","className","arrow","size","tooltipDelay"],hZ=function(e){var t=e.placement,n=e.title,r=e.icon,o=e.cursor,i=e.onClick,a=e.className,l=e.arrow,s=e.size,u=void 0===s?"default":s,c=e.tooltipDelay,d=(0,te.Z)(e,hN),f=hP({size:u}),p=f.styles,h=f.cx,m=(0,tk.jsx)(tg.ZP,(0,e9.Z)((0,e9.Z)({icon:r,className:h(p.container,a),type:"text",style:{cursor:o},size:"number"==typeof u||"default"===u?"middle":u},d),{},{onClick:i}));return(0,tk.jsx)(tk.Fragment,{children:n?(0,tk.jsx)(id.Z,{arrow:void 0!==l&&l,overlayClassName:p.tooltip,title:n,mouseEnterDelay:void 0===c?.5:c,placement:t,children:m}):m})},hR=function(e){var t=hP({size:(e||{}).size}).theme;return(0,tk.jsx)(cX,{componentToken:{Button:{colorText:t.colorTextTertiary,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill}},children:(0,tk.jsx)(hZ,(0,e9.Z)({},e))})},hB=function(){var e=(0,tt.useState)(!1),t=(0,th.Z)(e,2),n=t[0],r=t[1];(0,tt.useEffect)(function(){if(n){var e=setTimeout(function(){r(!1)},2e3);return function(){clearTimeout(e)}}},[n]);var o=(0,tt.useCallback)(function(){return r(!0)},[]);return(0,tt.useMemo)(function(){return{copied:n,setCopied:o}},[n])},hz=["content","className","placement"],hL=(0,tt.memo)(function(e){var t=e.content,n=e.className,r=e.placement,o=(0,te.Z)(e,hz),i=hB(),a=i.copied,l=i.setCopied;return(0,tk.jsx)(hR,(0,e9.Z)((0,e9.Z)({},o),{},{className:n,icon:(0,tk.jsx)(iM,{size:12}),onClick:function(){tU()(t),l()},placement:void 0===r?"right":r,title:a?"✅ Success":"Copy"}))}),hH=cW(function(e,t){var n,r,o=e.css,i=e.token,a=e.isDarkMode,l=t.offset,s=t.outside,u=t.size,c=(null!==(n=null==l?void 0:l.x)&&void 0!==n?n:0)+"px",d=(null!==(r=null==l?void 0:l.y)&&void 0!==r?r:0)+"px";return o(ev||(ev=tm(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),s?"0":".1",u+"px",c,d,a?i.colorText:"#fff",a?"transparent":i.colorTextQuaternary)}),hW=["className","size"],hV=function(){var e=(0,tt.useState)(),t=(0,th.Z)(e,2),n=t[0],r=t[1],o=(0,tt.useState)(!0),i=(0,th.Z)(o,2),a=i[0],l=i[1],s=(0,tt.useRef)();return(0,tt.useEffect)(function(){if(s.current&&s.current.parentElement){var e=s.current.parentElement,t=function(t){var n=e.getBoundingClientRect();r({x:t.clientX-n.x,y:t.clientY-n.y}),l(!1)},n=function(){l(!0)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",n),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",n)}}},[]),[n,a,s]},hU=(0,tt.memo)(function(e){var t=e.className,n=e.size,r=(0,te.Z)(e,hW),o=hV(),i=(0,th.Z)(o,3),a=i[0],l=i[1],s=i[2],u=hH({offset:a,outside:l,size:void 0===n?64:n}),c=u.styles,d=u.cx;return(0,tk.jsx)("div",(0,e9.Z)({className:d(c,t),ref:s},r))}),hq=cW(function(e,t){var n=e.css,r=e.cx,o=e.token,i=e.prefixCls,a=t.type,l=n(ey||(ey=tm(["\n background-color: ",";\n border: 1px solid ",";\n "])),"block"===a?o.colorFillTertiary:"transparent","block"===a?"transparent":o.colorBorder),s="".concat(i,"-").concat(null==o?void 0:o.editorPrefix),u="".concat(s,"-snippet");return{container:r("".concat(u,"-container"),l,n(ex||(ex=tm(["\n position: relative;\n overflow: hidden;\n display: inline-flex;\n gap: 8px;\n align-items: center;\n max-width: 100%;\n height: 38px;\n padding: 0 8px 0 12px;\n\n border-radius: ","px;\n\n transition: background-color 100ms ",";\n\n &:hover {\n background-color: ",";\n }\n\n pre {\n overflow-x: auto !important;\n overflow-y: hidden !important;\n display: flex;\n align-items: center;\n\n width: 100%;\n height: 36px !important;\n margin: 0 !important;\n\n line-height: 1;\n\n background: none !important;\n }\n\n code[class*='language-'] {\n background: none !important;\n }\n "])),o.borderRadius,o.motionEaseOut,o.colorFillTertiary)),highlighter:r("".concat(u,"-highlighter"),n(ew||(ew=tm(["\n position: relative;\n overflow: hidden;\n flex: 1;\n "]))))}}),hG=["symbol","language","children","copyable","type","spotlight","className"],hX=(0,tt.memo)(function(e){var t=e.symbol,n=void 0===t?"$":t,r=e.language,o=e.children,i=e.copyable,a=e.type,l=e.spotlight,s=e.className,u=(0,te.Z)(e,hG),c=(0,cR.r)().isDarkMode,d=hq({type:void 0===a?"ghost":a}),f=d.styles,p=d.cx;return(0,tk.jsxs)("div",(0,e9.Z)((0,e9.Z)({className:p(f.container,s)},u),{},{children:[l&&(0,tk.jsx)(hU,{}),(0,tk.jsx)("div",{className:f.highlighter,children:(0,tk.jsx)(hM,{language:void 0===r?"tsx":r,theme:c?"dark":"light",children:n?[n,o].join(" "):o})}),(void 0===i||i)&&(0,tk.jsx)(hL,{content:o})]}))}),hK=function(e){return(0,tk.jsx)(cX,{children:(0,tk.jsx)(hX,(0,e9.Z)({},e))})},hY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},hJ=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:hY}))}),hQ=n(57327),h0=n.n(hQ),h1=cW(function(e,t){var n=e.css,r=e.token,o=e.prefixCls,i=e.cx,a=t.theme,l="".concat(o,"-").concat(r.editorPrefix,"-highlight"),s=hj("dark"===a),u=s.colorFillTertiary,c=s.colorText;return{copy:i("".concat(l,"-copy"),n(eC||(eC=tm(["\n position: absolute;\n top: 16px;\n right: 16px;\n display: flex;\n flex-direction: column;\n width: 16px;\n height: 16px;\n padding: 0;\n overflow: hidden;\n border: 0;\n outline: none;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.2s;\n background-color: ",";\n\n &:hover {\n opacity: 0.8;\n }\n "])),u)),copyIcon:i("".concat(l,"-copy-icon"),n(ek||(ek=tm(["\n width: 16px;\n color: ",";\n height: 16px;\n font-size: 16px;\n\n @keyframes copy-button-trans {\n 0% {\n margin-top: 0;\n opacity: 0.8;\n }\n 10% {\n margin-top: -16px;\n opacity: 0.8;\n }\n 90% {\n margin-top: -16px;\n opacity: 0.8;\n }\n 100% {\n margin-top: 0;\n opacity: 0.8;\n }\n }\n\n &.scoll {\n animation: copy-button-trans 2s;\n animation-play-state: running;\n }\n "])),c))}}),h2=function(e){var t=e.content,n=e.onCopy,r=e.theme,o=e.style,i=(0,tt.useState)(),a=(0,th.Z)(i,2),l=a[0],s=a[1],u=h1({theme:void 0===r?"light":r}).styles;(0,tt.useEffect)(function(){return function(){window.clearTimeout(l)}});var c=(0,tt.useState)(!1),d=(0,th.Z)(c,2),f=d[0],p=d[1];return(0,tk.jsx)(tk.Fragment,{children:(0,tk.jsx)(h0(),{text:t&&t.length?t:"",onCopy:function(){p(!0),s(window.setTimeout(function(){p(!1)},2e3)),n&&n(t)},children:(0,tk.jsxs)("button",{type:"button",disabled:f,className:u.copy,style:o,children:[(0,tk.jsx)(iM,{className:tr()(u.copyIcon,{scoll:f})}),(0,tk.jsx)(iT,{className:u.copyIcon,style:{color:"rgb(63,177,99)"}})]})})})},h5=n(88544),h3=n(98357),h6=n(79958),h4=n(56398);let h8=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},(0,t7.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},h7=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return(0,t9.IX)(e,{tagFontSize:o,tagLineHeight:(0,t8.bf)(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},h9=e=>({defaultBg:new h4.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var me=(0,tc.I$)("Tag",e=>h8(h7(e)),h9),mt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mn=tt.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=mt(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:c}=tt.useContext(ti.E_),d=u("tag",n),[f,p,h]=me(d),m=tr()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},null==c?void 0:c.className,o,p,h);return f(tt.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),null==c?void 0:c.style),className:m,onClick:e=>{null==a||a(!i),null==l||l(e)}})))});var mr=n(39438);let mo=e=>(0,mr.Z)(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var mi=(0,tc.bk)(["Tag","preset"],e=>mo(h7(e)),h9);let ma=(e,t,n)=>{let r="string"!=typeof n?n:n.charAt(0).toUpperCase()+n.slice(1);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ml=(0,tc.bk)(["Tag","status"],e=>{let t=h7(e);return[ma(t,"success","Success"),ma(t,"processing","Info"),ma(t,"error","Error"),ma(t,"warning","Warning")]},h9),ms=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mu=tt.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:u,bordered:c=!0,visible:d}=e,f=ms(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:h,tag:m}=tt.useContext(ti.E_),[g,b]=tt.useState(!0),v=(0,r1.Z)(f,["closeIcon","closable"]);tt.useEffect(()=>{void 0!==d&&b(d)},[d]);let y=(0,h5.o2)(s),x=(0,h5.yT)(s),w=y||x,C=Object.assign(Object.assign({backgroundColor:s&&!w?s:void 0},null==m?void 0:m.style),i),k=p("tag",n),[D,E,S]=me(k),$=tr()(k,null==m?void 0:m.className,{[`${k}-${s}`]:w,[`${k}-has-color`]:s&&!w,[`${k}-hidden`]:!g,[`${k}-rtl`]:"rtl"===h,[`${k}-borderless`]:!c},r,o,E,S),O=e=>{e.stopPropagation(),null==u||u(e),e.defaultPrevented||b(!1)},[,F]=(0,h3.Z)((0,h3.w)(e),(0,h3.w)(m),{closable:!1,closeIconRender:e=>{let t=tt.createElement("span",{className:`${k}-close-icon`,onClick:O},e);return(0,na.wm)(e,t,e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),O(t)},className:tr()(null==e?void 0:e.className,`${k}-close-icon`)}))}}),j="function"==typeof f.onClick||a&&"a"===a.type,A=l||null,I=A?tt.createElement(tt.Fragment,null,A,a&&tt.createElement("span",null,a)):a,T=tt.createElement("span",Object.assign({},v,{ref:t,className:$,style:C}),I,F,y&&tt.createElement(mi,{key:"preset",prefixCls:k}),x&&tt.createElement(ml,{key:"status",prefixCls:k}));return D(j?tt.createElement(h6.Z,{component:"Tag"},T):T)});mu.CheckableTag=mn;var mc=n(69683),md=n.n(mc),mf=cW(function(e,t){var n=e.cx,r=e.css,o=e.token,i=e.prefixCls,a=t.theme,l="".concat(i,"-").concat(o.editorPrefix,"-highlight"),s=hj("dark"===a),u=s.colorFillTertiary,c=s.colorText,d=s.colorTextSecondary,f=md()(u).mix(md()("dark"===a?"white":"black"),.03).alpha(.9).hsl().string();return{small:n("".concat(l,"-tag-small"),r(eD||(eD=tm(["\n padding: 2px 6px;\n line-height: 1;\n "])))),lang:n(r(eE||(eE=tm(["\n position: absolute;\n z-index: 2;\n right: 0;\n bottom: 8px;\n background-color: ",";\n font-family: ",";\n color: ",";\n transition: opacity 0.1s;\n "])),f,o.fontFamilyCode,d)),tag:n("".concat(l,"-tag"),r(eS||(eS=tm(["\n color: "," !important;\n border-radius: ","px;\n P &:hover {\n color: ",";\n background: ",";\n }\n "])),c,o.borderRadius,c,o.colorFill))}}),mp=function(e){var t=e||{},n=t.children,r=t.size,o=t.theme,i=mf({theme:void 0===o?"light":o}),a=i.styles,l=i.cx;return(0,tk.jsx)(mu,{bordered:!1,className:l(a.tag,a.lang,"small"===(void 0===r?"default":r)&&a.small),children:n})},mh=function(e,t){var n=(0,tt.useRef)();return(0,tt.useEffect)(function(){if(e.current){var r,o;return r={keydown:function(r){var o=window.getSelection();if((r.ctrlKey||r.metaKey)&&"KeyA"===r.code&&n.current&&e.current){var i=document.createRange();i.selectNodeContents(e.current),o.removeAllRanges(),o.addRange(i),r.preventDefault()}(r.ctrlKey||r.metaKey)&&"KeyC"===r.code&&n.current&&e.current&&t&&o&&t(o.toString())},focus:function(){n.current=!0},blur:function(){n.current=!1}},o=e.current,Object.keys(r).forEach(function(e){"object"===(0,tp.Z)(r[e])&&r[e].handle?o.addEventListener(e,r[e].handle,r[e].options):o.addEventListener(e,r[e])}),function(){Object.keys(r).forEach(function(e){"object"===(0,tp.Z)(r[e])&&r[e].handle?o.removeEventListener(e,r[e].handle,r[e].options):o.removeEventListener(e,r[e])})}}},[e.current,e]),null},mm=cW(function(e,t){var n=e.css,r=e.cx,o=e.token,i=e.prefixCls,a=t.theme,l=t.type,s="".concat(i,"-").concat(null==o?void 0:o.editorPrefix,"-highlight"),u=hj("dark"===a).colorFillTertiary,c=n(e$||(e$=tm(["\n background-color: ",";\n "])),"block"===l?u:"transparent");return{container:r("".concat(s,"-container"),c,n(eO||(eO=tm(["\n position: relative;\n margin: 0;\n border-radius: ","px;\n transition: background-color 100ms ",";\n\n :not(:hover) {\n .","-copy {\n visibility: hidden;\n opacity: 0;\n }\n\n .","-tag {\n visibility: hidden;\n opacity: 0;\n }\n }\n\n pre {\n margin: 0 !important;\n padding: "," !important;\n background: none !important;\n }\n\n code {\n background: transparent !important;\n }\n "])),o.borderRadius,o.motionEaseOut,s,s,"pure"===l?0:"16px 24px"))}}),mg=(0,tt.memo)(function(e){var t=e.children,n=e.style,r=e.className,o=e.lineNumber,i=e.copyable,a=e.theme,l=void 0===a?cY:a,s=e.language,u=void 0===s?"tsx":s,c=e.showLanguage,d=e.type,f=e.onCopy,p=(0,cR.r)().appearance,h=l===cY?"dark"===p?"dark":"light":l,m=mm({theme:h,type:void 0===d?"block":d}).styles,g=(0,tt.createRef)();return mh(g,f),(0,tk.jsxs)("div",{ref:g,tabIndex:-1,style:n,className:tr()(m.container,r),children:[(void 0===i||i)&&(0,tk.jsx)(h2,{onCopy:f,theme:h,content:t}),(void 0===c||c)&&u&&(0,tk.jsx)(mp,{theme:h,children:u.toLowerCase()}),(0,tk.jsx)(hM,{lineNumber:void 0!==o&&o,language:u,theme:h,children:t})]})}),mb=function(e){return(0,tk.jsx)(cX,{children:(0,tk.jsx)(mg,(0,e9.Z)({},e))})},mv=n(85099),my=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,l="function"==typeof n?n(r):n;return tt.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:tt.createElement("span",{className:tr()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))},mx=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=tt.useMemo(function(){return"object"===(0,tp.Z)(r)?r.clearIcon:o||void 0},[r,o]);return{allowClear:tt.useMemo(function(){return!i&&!!r&&(!!n.length||!!a)&&!("combobox"===l&&""===a)},[r,i,n.length,a,l]),clearIcon:tt.createElement(my,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xd7")}},mw=tt.createContext(null);function mC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=tt.useRef(null),n=tt.useRef(null);return tt.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var mk=n(69472),mD=tt.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.id,i=e.inputElement,a=e.disabled,l=e.tabIndex,s=e.autoFocus,u=e.autoComplete,c=e.editable,d=e.activeDescendantId,f=e.value,p=e.maxLength,h=e.onKeyDown,m=e.onMouseDown,g=e.onChange,b=e.onPaste,v=e.onCompositionStart,y=e.onCompositionEnd,x=e.open,w=e.attrs,C=i||tt.createElement("input",null),k=C,D=k.ref,E=k.props,S=E.onKeyDown,$=E.onChange,O=E.onMouseDown,F=E.onCompositionStart,j=E.onCompositionEnd,A=E.style;return(0,oG.Kp)(!("maxLength"in C.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),C=tt.cloneElement(C,(0,e9.Z)((0,e9.Z)((0,e9.Z)({type:"search"},E),{},{id:o,ref:(0,t5.sQ)(t,D),disabled:a,tabIndex:l,autoComplete:u||"off",autoFocus:s,className:tr()("".concat(r,"-selection-search-input"),null===(n=C)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":x?d:void 0},w),{},{value:c?f:"",maxLength:p,readOnly:!c,unselectable:c?null:"on",style:(0,e9.Z)((0,e9.Z)({},A),{},{opacity:c?null:0}),onKeyDown:function(e){h(e),S&&S(e)},onMouseDown:function(e){m(e),O&&O(e)},onChange:function(e){g(e),$&&$(e)},onCompositionStart:function(e){v(e),F&&F(e)},onCompositionEnd:function(e){y(e),j&&j(e)},onPaste:b}))});function mE(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var mS="undefined"!=typeof window&&window.document&&window.document.documentElement;function m$(e){return["string","number"].includes((0,tp.Z)(e))}function mO(e){var t=void 0;return e&&(m$(e.title)?t=e.title.toString():m$(e.label)&&(t=e.label.toString())),t}function mF(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var mj=function(e){e.preventDefault(),e.stopPropagation()},mA=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,a=e.open,l=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,c=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,h=e.autoFocus,m=e.autoComplete,g=e.activeDescendantId,b=e.tabIndex,v=e.removeIcon,y=e.maxTagCount,x=e.maxTagTextLength,w=e.maxTagPlaceholder,C=void 0===w?function(e){return"+ ".concat(e.length," ...")}:w,k=e.tagRender,D=e.onToggleOpen,E=e.onRemove,S=e.onInputChange,$=e.onInputPaste,O=e.onInputKeyDown,F=e.onInputMouseDown,j=e.onInputCompositionStart,A=e.onInputCompositionEnd,I=tt.useRef(null),T=(0,tt.useState)(0),_=(0,th.Z)(T,2),M=_[0],P=_[1],N=(0,tt.useState)(!1),Z=(0,th.Z)(N,2),R=Z[0],B=Z[1],z="".concat(o,"-selection"),L=a||"multiple"===f&&!1===s||"tags"===f?l:"",H="tags"===f||"multiple"===f&&!1===s||p&&(a||R);t=function(){P(I.current.scrollWidth)},n=[L],mS?tt.useLayoutEffect(t,n):tt.useEffect(t,n);var W=function(e,t,n,r,o){return tt.createElement("span",{title:mO(e),className:tr()("".concat(z,"-item"),(0,tj.Z)({},"".concat(z,"-item-disabled"),n))},tt.createElement("span",{className:"".concat(z,"-item-content")},t),r&&tt.createElement(my,{className:"".concat(z,"-item-remove"),onMouseDown:mj,onClick:o,customizeIcon:v},"\xd7"))},V=function(e,t,n,r,o,i){return tt.createElement("span",{onMouseDown:function(e){mj(e),D(!a)}},k({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},U=tt.createElement("div",{className:"".concat(z,"-search"),style:{width:M},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},tt.createElement(mD,{ref:u,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:m,editable:H,activeDescendantId:g,value:L,onKeyDown:O,onMouseDown:F,onChange:S,onPaste:$,onCompositionStart:j,onCompositionEnd:A,tabIndex:b,attrs:(0,n9.Z)(e,!0)}),tt.createElement("span",{ref:I,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},L,"\xa0")),q=tt.createElement(mk.Z,{prefixCls:"".concat(z,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"==typeof x&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>x&&(i="".concat(a.slice(0,x),"..."))}var l=function(t){t&&t.stopPropagation(),E(e)};return"function"==typeof k?V(r,i,t,o,l):W(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof C?C(e):C;return"function"==typeof k?V(void 0,t,!1,!1,void 0,!0):W({title:t},t,!1)},suffix:U,itemKey:mF,maxCount:y});return tt.createElement("span",{className:"".concat(z,"-wrap")},q,!i.length&&!L&&tt.createElement("span",{className:"".concat(z,"-placeholder")},c))},mI=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,u=e.mode,c=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,h=e.showSearch,m=e.searchValue,g=e.activeValue,b=e.maxLength,v=e.onInputKeyDown,y=e.onInputMouseDown,x=e.onInputChange,w=e.onInputPaste,C=e.onInputCompositionStart,k=e.onInputCompositionEnd,D=e.title,E=tt.useState(!1),S=(0,th.Z)(E,2),$=S[0],O=S[1],F="combobox"===u,j=F||h,A=d[0],I=m||"";F&&g&&!$&&(I=g),tt.useEffect(function(){F&&O(!1)},[F,g]);var T=("combobox"===u||!!c||!!h)&&!!I,_=void 0===D?mO(A):D,M=tt.useMemo(function(){return A?null:tt.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},f)},[A,T,f,n]);return tt.createElement("span",{className:"".concat(n,"-selection-wrap")},tt.createElement("span",{className:"".concat(n,"-selection-search")},tt.createElement(mD,{ref:o,prefixCls:n,id:r,open:c,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:j,activeDescendantId:s,value:I,onKeyDown:v,onMouseDown:y,onChange:function(e){O(!0),x(e)},onPaste:w,onCompositionStart:C,onCompositionEnd:k,tabIndex:p,attrs:(0,n9.Z)(e,!0),maxLength:F?b:void 0})),!F&&A?tt.createElement("span",{className:"".concat(n,"-selection-item"),title:_,style:T?{visibility:"hidden"}:void 0},A.label):null,M)},mT=tt.forwardRef(function(e,t){var n=(0,tt.useRef)(null),r=(0,tt.useRef)(!1),o=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,s=e.tokenWithEnter,u=e.disabled,c=e.prefix,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,h=e.onToggleOpen,m=e.onInputKeyDown,g=e.domRef;tt.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var b=mC(0),v=(0,th.Z)(b,2),y=v[0],x=v[1],w=(0,tt.useRef)(null),C=function(e){!1!==f(e,!0,r.current)&&h(!0)},k={inputRef:n,onInputKeyDown:function(e){var t=e.which,o=n.current instanceof HTMLTextAreaElement;!o&&i&&(t===oX.Z.UP||t===oX.Z.DOWN)&&e.preventDefault(),m&&m(e),t!==oX.Z.ENTER||"tags"!==a||r.current||i||null==p||p(e.target.value),o&&!i&&~[oX.Z.UP,oX.Z.DOWN,oX.Z.LEFT,oX.Z.RIGHT].indexOf(t)||!t||[oX.Z.ESC,oX.Z.SHIFT,oX.Z.BACKSPACE,oX.Z.TAB,oX.Z.WIN_KEY,oX.Z.ALT,oX.Z.META,oX.Z.WIN_KEY_RIGHT,oX.Z.CTRL,oX.Z.SEMICOLON,oX.Z.EQUALS,oX.Z.CAPS_LOCK,oX.Z.CONTEXT_MENU,oX.Z.F1,oX.Z.F2,oX.Z.F3,oX.Z.F4,oX.Z.F5,oX.Z.F6,oX.Z.F7,oX.Z.F8,oX.Z.F9,oX.Z.F10,oX.Z.F11,oX.Z.F12].includes(t)||h(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(s&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&C(e.target.value)}},D="multiple"===a||"tags"===a?tt.createElement(mA,(0,np.Z)({},e,k)):tt.createElement(mI,(0,np.Z)({},e,k));return tt.createElement("div",{ref:g,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===a&&u||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==d&&f("",!0,!1),h())}},c&&tt.createElement("div",{className:"".concat(o,"-prefix")},c),D)}),m_=n(25675),mM=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],mP=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},mN=tt.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,i=e.popupElement,a=e.animation,l=e.transitionName,s=e.dropdownStyle,u=e.dropdownClassName,c=e.direction,d=e.placement,f=e.builtinPlacements,p=e.dropdownMatchSelectWidth,h=e.dropdownRender,m=e.dropdownAlign,g=e.getPopupContainer,b=e.empty,v=e.getTriggerDOMNode,y=e.onPopupVisibleChange,x=e.onPopupMouseEnter,w=(0,te.Z)(e,mM),C="".concat(n,"-dropdown"),k=i;h&&(k=h(i));var D=tt.useMemo(function(){return f||mP(p)},[f,p]),E=a?"".concat(C,"-").concat(a):l,S="number"==typeof p,$=tt.useMemo(function(){return S?null:!1===p?"minWidth":"width"},[p,S]),O=s;S&&(O=(0,e9.Z)((0,e9.Z)({},O),{},{width:p}));var F=tt.useRef(null);return tt.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=F.current)||void 0===e?void 0:e.popupElement}}}),tt.createElement(m_.Z,(0,np.Z)({},w,{showAction:y?["click"]:[],hideAction:y?["click"]:[],popupPlacement:d||("rtl"===(void 0===c?"ltr":c)?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:C,popupTransitionName:E,popup:tt.createElement("div",{onMouseEnter:x},k),ref:F,stretch:$,popupAlign:m,popupVisible:r,getPopupContainer:g,popupClassName:tr()(u,(0,tj.Z)({},"".concat(C,"-empty"),b)),popupStyle:O,getTriggerDOMNode:v,onPopupVisibleChange:y}),o)}),mZ=n(7026);function mR(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function mB(e){return void 0!==e&&!Number.isNaN(e)}function mz(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function mL(e){var t=(0,e9.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,oG.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var mH=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,mZ.Z)(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce(function(t,n){return[].concat((0,rQ.Z)(t),(0,rQ.Z)(e(n,a)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null},mW=tt.createContext(null);function mV(e){var t=e.visible,n=e.values;return t?tt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,tp.Z)(t))?t:n}).join(", ")),n.length>50?", ...":null):null}var mU=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],mq=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],mG=function(e){return"tags"===e||"multiple"===e},mX=tt.forwardRef(function(e,t){var n,r,o,i,a,l,s,u=e.id,c=e.prefixCls,d=e.className,f=e.showSearch,p=e.tagRender,h=e.direction,m=e.omitDomProps,g=e.displayValues,b=e.onDisplayValuesChange,v=e.emptyOptions,y=e.notFoundContent,x=void 0===y?"Not Found":y,w=e.onClear,C=e.mode,k=e.disabled,D=e.loading,E=e.getInputElement,S=e.getRawInputElement,$=e.open,O=e.defaultOpen,F=e.onDropdownVisibleChange,j=e.activeValue,A=e.onActiveValueChange,I=e.activeDescendantId,T=e.searchValue,_=e.autoClearSearchValue,M=e.onSearch,P=e.onSearchSplit,N=e.tokenSeparators,Z=e.allowClear,R=e.prefix,B=e.suffixIcon,z=e.clearIcon,L=e.OptionList,H=e.animation,W=e.transitionName,V=e.dropdownStyle,U=e.dropdownClassName,q=e.dropdownMatchSelectWidth,G=e.dropdownRender,X=e.dropdownAlign,K=e.placement,Y=e.builtinPlacements,J=e.getPopupContainer,Q=e.showAction,ee=void 0===Q?[]:Q,et=e.onFocus,en=e.onBlur,er=e.onKeyUp,eo=e.onKeyDown,ei=e.onMouseDown,ea=(0,te.Z)(e,mU),el=mG(C),es=(void 0!==f?f:el)||"combobox"===C,eu=(0,e9.Z)({},ea);mq.forEach(function(e){delete eu[e]}),null==m||m.forEach(function(e){delete eu[e]});var ec=tt.useState(!1),ed=(0,th.Z)(ec,2),ef=ed[0],ep=ed[1];tt.useEffect(function(){ep((0,mv.Z)())},[]);var eh=tt.useRef(null),em=tt.useRef(null),eg=tt.useRef(null),eb=tt.useRef(null),ev=tt.useRef(null),ey=tt.useRef(!1),ex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=tt.useState(!1),n=(0,th.Z)(t,2),r=n[0],o=n[1],i=tt.useRef(null),a=function(){window.clearTimeout(i.current)};return tt.useEffect(function(){return a},[]),[r,function(t,n){a(),i.current=window.setTimeout(function(){o(t),n&&n()},e)},a]}(),ew=(0,th.Z)(ex,3),eC=ew[0],ek=ew[1],eD=ew[2];tt.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=eb.current)||void 0===e?void 0:e.focus,blur:null===(t=eb.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ev.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:eh.current||em.current}});var eE=tt.useMemo(function(){if("combobox"!==C)return T;var e,t=null===(e=g[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[T,C,g]),eS="combobox"===C&&"function"==typeof E&&E()||null,e$="function"==typeof S&&S(),eO=(0,t5.x1)(em,null==e$||null===(i=e$.props)||void 0===i?void 0:i.ref),eF=tt.useState(!1),ej=(0,th.Z)(eF,2),eA=ej[0],eI=ej[1];(0,tG.Z)(function(){eI(!0)},[]);var eT=(0,r0.Z)(!1,{defaultValue:O,value:$}),e_=(0,th.Z)(eT,2),eM=e_[0],eP=e_[1],eN=!!eA&&eM,eZ=!x&&v;(k||eZ&&eN&&"combobox"===C)&&(eN=!1);var eR=!eZ&&eN,eB=tt.useCallback(function(e){var t=void 0!==e?e:!eN;k||(eP(t),eN!==t&&(null==F||F(t)))},[k,eN,eP,F]),ez=tt.useMemo(function(){return(N||[]).some(function(e){return["\n","\r\n"].includes(e)})},[N]),eL=tt.useContext(mW)||{},eH=eL.maxCount,eW=eL.rawValues,eV=function(e,t,n){if(!(el&&mB(eH))||!((null==eW?void 0:eW.size)>=eH)){var r=!0,o=e;null==A||A(null);var i=mH(e,N,mB(eH)?eH-eW.size:void 0),a=n?null:i;return"combobox"!==C&&a&&(o="",null==P||P(a),eB(!1),r=!1),M&&eE!==o&&M(o,{source:t?"typing":"effect"}),r}};tt.useEffect(function(){eN||el||"combobox"===C||eV("",!1,!1)},[eN]),tt.useEffect(function(){eM&&k&&eP(!1),k&&!ey.current&&ek(!1)},[k]);var eU=mC(),eq=(0,th.Z)(eU,2),eG=eq[0],eX=eq[1],eK=tt.useRef(!1),eY=tt.useRef(!1),eJ=[];tt.useEffect(function(){return function(){eJ.forEach(function(e){return clearTimeout(e)}),eJ.splice(0,eJ.length)}},[]);var eQ=tt.useState({}),e0=(0,th.Z)(eQ,2)[1];e$&&(a=function(e){eB(e)}),n=function(){var e;return[eh.current,null===(e=eg.current)||void 0===e?void 0:e.getPopupElement()]},r=!!e$,(o=tt.useRef(null)).current={open:eR,triggerOpen:eB,customizedTrigger:r},tt.useEffect(function(){function e(e){if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var e1=tt.useMemo(function(){return(0,e9.Z)((0,e9.Z)({},e),{},{notFoundContent:x,open:eN,triggerOpen:eR,id:u,showSearch:es,multiple:el,toggleOpen:eB})},[e,x,eR,eN,u,es,el,eB]),e2=!!B||D;e2&&(l=tt.createElement(my,{className:tr()("".concat(c,"-arrow"),(0,tj.Z)({},"".concat(c,"-arrow-loading"),D)),customizeIcon:B,customizeIconProps:{loading:D,searchValue:eE,open:eN,focused:eC,showSearch:es}}));var e5=mx(c,function(){var e;null==w||w(),null===(e=eb.current)||void 0===e||e.focus(),b([],{type:"clear",values:g}),eV("",!1,!1)},g,Z,z,k,eE,C),e3=e5.allowClear,e6=e5.clearIcon,e4=tt.createElement(L,{ref:ev}),e8=tr()(c,d,(0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)({},"".concat(c,"-focused"),eC),"".concat(c,"-multiple"),el),"".concat(c,"-single"),!el),"".concat(c,"-allow-clear"),Z),"".concat(c,"-show-arrow"),e2),"".concat(c,"-disabled"),k),"".concat(c,"-loading"),D),"".concat(c,"-open"),eN),"".concat(c,"-customize-input"),eS),"".concat(c,"-show-search"),es)),e7=tt.createElement(mN,{ref:eg,disabled:k,prefixCls:c,visible:eR,popupElement:e4,animation:H,transitionName:W,dropdownStyle:V,dropdownClassName:U,direction:h,dropdownMatchSelectWidth:q,dropdownRender:G,dropdownAlign:X,placement:K,builtinPlacements:Y,getPopupContainer:J,empty:v,getTriggerDOMNode:function(e){return em.current||e},onPopupVisibleChange:a,onPopupMouseEnter:function(){e0({})}},e$?tt.cloneElement(e$,{ref:eO}):tt.createElement(mT,(0,np.Z)({},e,{domRef:em,prefixCls:c,inputElement:eS,ref:eb,id:u,prefix:R,showSearch:es,autoClearSearchValue:_,mode:C,activeDescendantId:I,tagRender:p,values:g,open:eN,onToggleOpen:eB,activeValue:j,searchValue:eE,onSearch:eV,onSearchSubmit:function(e){e&&e.trim()&&M(e,{source:"submit"})},onRemove:function(e){b(g.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:ez})));return s=e$?e7:tt.createElement("div",(0,np.Z)({className:e8},eu,{ref:eh,onMouseDown:function(e){var t,n=e.target,r=null===(t=eg.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=eJ.indexOf(o);-1!==t&&eJ.splice(t,1),eD(),ef||r.contains(document.activeElement)||null===(e=eb.current)||void 0===e||e.focus()});eJ.push(o)}for(var i=arguments.length,a=Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==ei||ei.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=eG(),r=e.key,o="Enter"===r;if(o&&("combobox"!==C&&e.preventDefault(),eN||eB(!0)),eX(!!eE),"Backspace"===r&&!n&&el&&!eE&&g.length){for(var i=(0,rQ.Z)(g),a=null,l=i.length-1;l>=0;l-=1){var s=i[l];if(!s.disabled){i.splice(l,1),a=s;break}}a&&b(i,{type:"remove",values:[a]})}for(var u=arguments.length,c=Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];!eN||o&&eK.current||null===(t=ev.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(c)),o&&(eK.current=!0),null==eo||eo.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];eN&&(null===(t=ev.current)||void 0===t||t.onKeyUp.apply(t,[e].concat(r))),"Enter"===e.key&&(eK.current=!1),null==er||er.apply(void 0,[e].concat(r))},onFocus:function(){ek(!0),!k&&(et&&!eY.current&&et.apply(void 0,arguments),ee.includes("focus")&&eB(!0)),eY.current=!0},onBlur:function(){ey.current=!0,ek(!1,function(){eY.current=!1,ey.current=!1,eB(!1)}),!k&&(eE&&("tags"===C?M(eE,{source:"submit"}):"multiple"===C&&M("",{source:"blur"})),en&&en.apply(void 0,arguments))}}),tt.createElement(mV,{visible:eC&&!eN,values:g}),e7,l,e3&&e6),tt.createElement(mw.Provider,{value:e1},s)}),mK=function(){return null};mK.isSelectOptGroup=!0;var mY=function(){return null};mY.isSelectOption=!0;var mJ=n(8431),mQ=n(20050),m0=tt.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,u=e.rtl,c=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},f=(0,e9.Z)((0,e9.Z)({},f),{},(0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),tt.createElement("div",{style:d},tt.createElement(tF.Z,{onResize:function(e){e.offsetHeight&&l&&l()}},tt.createElement("div",(0,np.Z)({style:f,className:tr()((0,tj.Z)({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,c)))});function m1(e){var t=e.children,n=e.setRef,r=tt.useCallback(function(e){n(e)},[]);return tt.cloneElement(t,{ref:r})}m0.displayName="Filler";var m2=("undefined"==typeof navigator?"undefined":(0,tp.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),m5=function(e,t,n,r){var o=(0,tt.useRef)(!1),i=(0,tt.useRef)(null),a=(0,tt.useRef)({top:e,bottom:t,left:n,right:r});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):(!r||o.current)&&(clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)),!o.current&&r}},m3=n(57883),m6=function(){function e(){(0,rc.Z)(this,e),(0,tj.Z)(this,"maps",void 0),(0,tj.Z)(this,"id",0),this.maps=Object.create(null)}return(0,rd.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();function m4(e){var t=parseFloat(e);return isNaN(t)?0:t}var m8=14/15;function m7(e){return Math.floor(Math.pow(e,.5))}function m9(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var ge=tt.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,s=e.onScroll,u=e.horizontal,c=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,h=tt.useState(!1),m=(0,th.Z)(h,2),g=m[0],b=m[1],v=tt.useState(null),y=(0,th.Z)(v,2),x=y[0],w=y[1],C=tt.useState(null),k=(0,th.Z)(C,2),D=k[0],E=k[1],S=!r,$=tt.useRef(),O=tt.useRef(),F=tt.useState(!1),j=(0,th.Z)(F,2),A=j[0],I=j[1],T=tt.useRef(),_=function(){clearTimeout(T.current),I(!0),T.current=setTimeout(function(){I(!1)},3e3)},M=i-d||0,P=d-c||0,N=tt.useMemo(function(){return 0===o||0===M?0:o/M*P},[o,M,P]),Z=tt.useRef({top:N,dragging:g,pageY:x,startTop:D});Z.current={top:N,dragging:g,pageY:x,startTop:D};var R=function(e){b(!0),w(m9(e,u)),E(Z.current.top),a(),e.stopPropagation(),e.preventDefault()};tt.useEffect(function(){var e=function(e){e.preventDefault()},t=$.current,n=O.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",R,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",R)}},[]);var B=tt.useRef();B.current=M;var z=tt.useRef();z.current=P,tt.useEffect(function(){if(g){var e,t=function(t){var n=Z.current,r=n.dragging,o=n.pageY,i=n.startTop;ou.Z.cancel(e);var a=$.current.getBoundingClientRect(),l=d/(u?a.width:a.height);if(r){var c=(m9(t,u)-o)*l,f=i;!S&&u?f-=c:f+=c;var p=B.current,h=z.current,m=Math.ceil((h?f/h:0)*p);m=Math.min(m=Math.max(m,0),p),e=(0,ou.Z)(function(){s(m,u)})}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ou.Z.cancel(e)}}},[g]),tt.useEffect(function(){return _(),function(){clearTimeout(T.current)}},[o]),tt.useImperativeHandle(t,function(){return{delayHidden:_}});var L="".concat(n,"-scrollbar"),H={position:"absolute",visibility:A?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(H.height=8,H.left=0,H.right=0,H.bottom=0,W.height="100%",W.width=c,S?W.left=N:W.right=N):(H.width=8,H.top=0,H.bottom=0,S?H.right=0:H.left=0,W.width="100%",W.height=c,W.top=N),tt.createElement("div",{ref:$,className:tr()(L,(0,tj.Z)((0,tj.Z)((0,tj.Z)({},"".concat(L,"-horizontal"),u),"".concat(L,"-vertical"),!u),"".concat(L,"-visible"),A)),style:(0,e9.Z)((0,e9.Z)({},H),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:_},tt.createElement("div",{ref:O,className:tr()("".concat(L,"-thumb"),(0,tj.Z)({},"".concat(L,"-thumb-moving"),g)),style:(0,e9.Z)((0,e9.Z)({},W),p),onMouseDown:R}))});function gt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),Math.floor(n=Math.max(n,20))}var gn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],gr=[],go={overflowY:"auto",overflowAnchor:"none"},gi=tt.forwardRef(function(e,t){var n,r,o,i,a,l,s,u,c,d,f,p,h,m,g,b,v,y,x,w,C,k,D,E,S,$,O,F,j,A,I,T,_,M,P,N,Z,R=e.prefixCls,B=void 0===R?"rc-virtual-list":R,z=e.className,L=e.height,H=e.itemHeight,W=e.fullHeight,V=e.style,U=e.data,q=e.children,G=e.itemKey,X=e.virtual,K=e.direction,Y=e.scrollWidth,J=e.component,Q=e.onScroll,ee=e.onVirtualScroll,et=e.onVisibleChange,en=e.innerProps,er=e.extraRender,eo=e.styles,ei=(0,te.Z)(e,gn),ea=tt.useCallback(function(e){return"function"==typeof G?G(e):null==e?void 0:e[G]},[G]),el=function(e,t,n){var r=tt.useState(0),o=(0,th.Z)(r,2),i=o[0],a=o[1],l=(0,tt.useRef)(new Map),s=(0,tt.useRef)(new m6),u=(0,tt.useRef)();function c(){ou.Z.cancel(u.current)}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){l.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,m3.ZP)(e),r=n.offsetHeight,o=getComputedStyle(n),i=o.marginTop,a=o.marginBottom,l=r+m4(i)+m4(a);s.current.get(t)!==l&&s.current.set(t,l)}}),a(function(e){return e+1})};e?t():u.current=(0,ou.Z)(t)}return(0,tt.useEffect)(function(){return c},[]),[function(r,o){var i=e(r),a=l.current.get(i);o?(l.current.set(i,o),d()):l.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},d,s.current,i]}(ea,null,null),es=(0,th.Z)(el,4),eu=es[0],ec=es[1],ed=es[2],ef=es[3],ep=!!(!1!==X&&L&&H),eh=tt.useMemo(function(){return Object.values(ed.maps).reduce(function(e,t){return e+t},0)},[ed.id,ed.maps]),em=ep&&U&&(Math.max(H*U.length,eh)>L||!!Y),eg="rtl"===K,eb=tr()(B,(0,tj.Z)({},"".concat(B,"-rtl"),eg),z),ev=U||gr,ey=(0,tt.useRef)(),ex=(0,tt.useRef)(),ew=(0,tt.useRef)(),eC=(0,tt.useState)(0),ek=(0,th.Z)(eC,2),eD=ek[0],eE=ek[1],eS=(0,tt.useState)(0),e$=(0,th.Z)(eS,2),eO=e$[0],eF=e$[1],ej=(0,tt.useState)(!1),eA=(0,th.Z)(ej,2),eI=eA[0],eT=eA[1],e_=function(){eT(!0)},eM=function(){eT(!1)};function eP(e){eE(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(e1.current)||(n=Math.min(n,e1.current)),n=Math.max(n,0));return ey.current.scrollTop=r,r})}var eN=(0,tt.useRef)({start:0,end:ev.length}),eZ=(0,tt.useRef)(),eR=(r=tt.useState(ev),i=(o=(0,th.Z)(r,2))[0],a=o[1],l=tt.useState(null),u=(s=(0,th.Z)(l,2))[0],c=s[1],tt.useEffect(function(){var e=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var u=null,c=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){u=d,c=c||f!==s(o[d+1]);break}}return null===u?null:{index:u,multiple:c}}(i||[],ev||[],ea);(null==e?void 0:e.index)!==void 0&&(null==n||n(e.index),c(ev[e.index])),a(ev)},[ev]),[u]),eB=(0,th.Z)(eR,1)[0];eZ.current=eB;var ez=tt.useMemo(function(){if(!ep)return{scrollHeight:void 0,start:0,end:ev.length-1,offset:void 0};if(!em)return{scrollHeight:(null===(e=ex.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:ev.length-1,offset:void 0};for(var e,t,n,r,o=0,i=ev.length,a=0;a<i;a+=1){var l=ea(ev[a]),s=ed.get(l),u=o+(void 0===s?H:s);u>=eD&&void 0===t&&(t=a,n=o),u>eD+L&&void 0===r&&(r=a),o=u}return void 0===t&&(t=0,n=0,r=Math.ceil(L/H)),void 0===r&&(r=ev.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ev.length-1),offset:n}},[em,ep,eD,ev,ef,L]),eL=ez.scrollHeight,eH=ez.start,eW=ez.end,eV=ez.offset;eN.current.start=eH,eN.current.end=eW;var eU=tt.useState({width:0,height:L}),eq=(0,th.Z)(eU,2),eG=eq[0],eX=eq[1],eK=(0,tt.useRef)(),eY=(0,tt.useRef)(),eJ=tt.useMemo(function(){return gt(eG.width,Y)},[eG.width,Y]),eQ=tt.useMemo(function(){return gt(eG.height,eL)},[eG.height,eL]),e0=eL-L,e1=(0,tt.useRef)(e0);e1.current=e0;var e2=eD<=0,e5=eD>=e0,e3=eO<=0,e6=eO>=Y,e4=m5(e2,e5,e3,e6),e8=function(){return{x:eg?-eO:eO,y:eD}},e7=(0,tt.useRef)(e8()),tn=(0,rv.zX)(function(e){if(ee){var t=(0,e9.Z)((0,e9.Z)({},e8()),e);(e7.current.x!==t.x||e7.current.y!==t.y)&&(ee(t),e7.current=t)}});function to(e,t){t?((0,mQ.flushSync)(function(){eF(e)}),tn()):eP(e)}var ti=function(e){var t=e,n=Y?Y-eG.width:0;return Math.min(t=Math.max(t,0),n)},ta=(0,rv.zX)(function(e,t){t?((0,mQ.flushSync)(function(){eF(function(t){return ti(t+(eg?-e:e))})}),tn()):eP(function(t){return t+e})}),tl=(d=!!Y,f=(0,tt.useRef)(0),p=(0,tt.useRef)(null),h=(0,tt.useRef)(null),m=(0,tt.useRef)(!1),g=m5(e2,e5,e3,e6),b=(0,tt.useRef)(null),v=(0,tt.useRef)(null),[function(e){if(ep){ou.Z.cancel(v.current),v.current=(0,ou.Z)(function(){b.current=null},2);var t,n=e.deltaX,r=e.deltaY,o=e.shiftKey,i=n,a=r;("sx"===b.current||!b.current&&o&&r&&!n)&&(i=r,a=0,b.current="sx");var l=Math.abs(i),s=Math.abs(a);(null===b.current&&(b.current=d&&l>s?"x":"y"),"y"===b.current)?(t=a,ou.Z.cancel(p.current),g(!1,t)||e._virtualHandled||(e._virtualHandled=!0,f.current+=t,h.current=t,m2||e.preventDefault(),p.current=(0,ou.Z)(function(){var e=m.current?10:1;ta(f.current*e,!1),f.current=0}))):(ta(i,!0),m2||e.preventDefault())}},function(e){ep&&(m.current=e.detail===h.current)}]),ts=(0,th.Z)(tl,2),tu=ts[0],tc=ts[1];y=function(e,t,n,r){return!e4(e,t,n)&&(!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),tu({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)},w=(0,tt.useRef)(!1),C=(0,tt.useRef)(0),k=(0,tt.useRef)(0),D=(0,tt.useRef)(null),E=(0,tt.useRef)(null),S=function(e){if(w.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),r=C.current-t,o=k.current-n,i=Math.abs(r)>Math.abs(o);i?C.current=t:k.current=n;var a=y(i,i?r:o,!1,e);a&&e.preventDefault(),clearInterval(E.current),a&&(E.current=setInterval(function(){i?r*=m8:o*=m8;var e=Math.floor(i?r:o);(!y(i,e,!0)||.1>=Math.abs(e))&&clearInterval(E.current)},16))}},$=function(){w.current=!1,x()},O=function(e){x(),1!==e.touches.length||w.current||(w.current=!0,C.current=Math.ceil(e.touches[0].pageX),k.current=Math.ceil(e.touches[0].pageY),D.current=e.target,D.current.addEventListener("touchmove",S,{passive:!1}),D.current.addEventListener("touchend",$,{passive:!0}))},x=function(){D.current&&(D.current.removeEventListener("touchmove",S),D.current.removeEventListener("touchend",$))},(0,tG.Z)(function(){return ep&&ey.current.addEventListener("touchstart",O,{passive:!0}),function(){var e;null===(e=ey.current)||void 0===e||e.removeEventListener("touchstart",O),x(),clearInterval(E.current)}},[ep]),F=function(e){eP(function(t){return t+e})},tt.useEffect(function(){var e=ey.current;if(em&&e){var t,n,r=!1,o=function(){ou.Z.cancel(t)},i=function e(){o(),t=(0,ou.Z)(function(){F(n),e()})},a=function(e){e._virtualHandled||(e._virtualHandled=!0,r=!0)},l=function(){r=!1,o()},s=function(t){if(r){var a=m9(t,!1),l=e.getBoundingClientRect(),s=l.top,u=l.bottom;a<=s?(n=-m7(s-a),i()):a>=u?(n=m7(a-u),i()):o()}};return e.addEventListener("mousedown",a),e.ownerDocument.addEventListener("mouseup",l),e.ownerDocument.addEventListener("mousemove",s),function(){e.removeEventListener("mousedown",a),e.ownerDocument.removeEventListener("mouseup",l),e.ownerDocument.removeEventListener("mousemove",s),o()}}},[em]),(0,tG.Z)(function(){function e(e){var t=e2&&e.detail<0,n=e5&&e.detail>0;!ep||t||n||e.preventDefault()}var t=ey.current;return t.addEventListener("wheel",tu,{passive:!1}),t.addEventListener("DOMMouseScroll",tc,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",tu),t.removeEventListener("DOMMouseScroll",tc),t.removeEventListener("MozMousePixelScroll",e)}},[ep,e2,e5]),(0,tG.Z)(function(){if(Y){var e=ti(eO);eF(e),tn({x:e})}},[eG.width,Y]);var td=function(){var e,t;null===(e=eK.current)||void 0===e||e.delayHidden(),null===(t=eY.current)||void 0===t||t.delayHidden()},tf=(j=tt.useRef(),A=tt.useState(null),T=(I=(0,th.Z)(A,2))[0],_=I[1],(0,tG.Z)(function(){if(T&&T.times<10){if(!ey.current){_(function(e){return(0,e9.Z)({},e)});return}ec(!0);var e=T.targetAlign,t=T.originAlign,n=T.index,r=T.offset,o=ey.current.clientHeight,i=!1,a=e,l=null;if(o){for(var s=e||t,u=0,c=0,d=0,f=Math.min(ev.length-1,n),p=0;p<=f;p+=1){var h=ea(ev[p]);c=u;var m=ed.get(h);u=d=c+(void 0===m?H:m)}for(var g="top"===s?r:o-r,b=f;b>=0;b-=1){var v=ea(ev[b]),y=ed.get(v);if(void 0===y){i=!0;break}if((g-=y)<=0)break}switch(s){case"top":l=c-r;break;case"bottom":l=d-o+r;break;default:var x=ey.current.scrollTop;c<x?a="top":d>x+o&&(a="bottom")}null!==l&&eP(l),l!==T.lastTop&&(i=!0)}i&&_((0,e9.Z)((0,e9.Z)({},T),{},{times:T.times+1,targetAlign:a,lastTop:l}))}},[T,ey.current]),function(e){if(null==e){td();return}if(ou.Z.cancel(j.current),"number"==typeof e)eP(e);else if(e&&"object"===(0,tp.Z)(e)){var t,n=e.align;t="index"in e?e.index:ev.findIndex(function(t){return ea(t)===e.key});var r=e.offset;_({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}});tt.useImperativeHandle(t,function(){return{nativeElement:ew.current,getScrollInfo:e8,scrollTo:function(e){e&&"object"===(0,tp.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eF(ti(e.left)),tf(e.top)):tf(e)}}}),(0,tG.Z)(function(){et&&et(ev.slice(eH,eW+1),ev)},[eH,eW,ev]);var tm=(M=tt.useMemo(function(){return[new Map,[]]},[ev,ed.id,H]),N=(P=(0,th.Z)(M,2))[0],Z=P[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=N.get(e),r=N.get(t);if(void 0===n||void 0===r)for(var o=ev.length,i=Z.length;i<o;i+=1){var a,l=ea(ev[i]);N.set(l,i);var s=null!==(a=ed.get(l))&&void 0!==a?a:H;if(Z[i]=(Z[i-1]||0)+s,l===e&&(n=i),l===t&&(r=i),void 0!==n&&void 0!==r)break}return{top:Z[n-1]||0,bottom:Z[r]}}),tg=null==er?void 0:er({start:eH,end:eW,virtual:em,offsetX:eO,offsetY:eV,rtl:eg,getSize:tm}),tb=ev.slice(eH,eW+1).map(function(e,t){var n=q(e,eH+t,{style:{width:Y},offsetX:eO}),r=ea(e);return tt.createElement(m1,{key:r,setRef:function(t){return eu(e,t)}},n)}),tv=null;L&&(tv=(0,e9.Z)((0,tj.Z)({},void 0===W||W?"height":"maxHeight",L),go),ep&&(tv.overflowY="hidden",Y&&(tv.overflowX="hidden"),eI&&(tv.pointerEvents="none")));var ty={};return eg&&(ty.dir="rtl"),tt.createElement("div",(0,np.Z)({ref:ew,style:(0,e9.Z)((0,e9.Z)({},V),{},{position:"relative"}),className:eb},ty,ei),tt.createElement(tF.Z,{onResize:function(e){eX({width:e.offsetWidth,height:e.offsetHeight})}},tt.createElement(void 0===J?"div":J,{className:"".concat(B,"-holder"),style:tv,ref:ey,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==eD&&eP(t),null==Q||Q(e),tn()},onMouseEnter:td},tt.createElement(m0,{prefixCls:B,height:eL,offsetX:eO,offsetY:eV,scrollWidth:Y,onInnerResize:ec,ref:ex,innerProps:en,rtl:eg,extra:tg},tb))),em&&eL>L&&tt.createElement(ge,{ref:eK,prefixCls:B,scrollOffset:eD,scrollRange:eL,rtl:eg,onScroll:to,onStartMove:e_,onStopMove:eM,spinSize:eQ,containerSize:eG.height,style:null==eo?void 0:eo.verticalScrollBar,thumbStyle:null==eo?void 0:eo.verticalScrollBarThumb}),em&&Y>eG.width&&tt.createElement(ge,{ref:eY,prefixCls:B,scrollOffset:eO,scrollRange:Y,rtl:eg,onScroll:to,onStartMove:e_,onStopMove:eM,spinSize:eJ,containerSize:eG.width,horizontal:!0,style:null==eo?void 0:eo.horizontalScrollBar,thumbStyle:null==eo?void 0:eo.horizontalScrollBarThumb}))});gi.displayName="List";var ga=["disabled","title","children","style","className"];function gl(e){return"string"==typeof e||"number"==typeof e}var gs=tt.forwardRef(function(e,t){var n=tt.useContext(mw),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,l=n.mode,s=n.searchValue,u=n.toggleOpen,c=n.notFoundContent,d=n.onPopupScroll,f=tt.useContext(mW),p=f.maxCount,h=f.flattenOptions,m=f.onActiveValue,g=f.defaultActiveFirstOption,b=f.onSelect,v=f.menuItemSelectedIcon,y=f.rawValues,x=f.fieldNames,w=f.virtual,C=f.direction,k=f.listHeight,D=f.listItemHeight,E=f.optionRender,S="".concat(r,"-item"),$=(0,mJ.Z)(function(){return h},[i,h],function(e,t){return t[0]&&e[1]!==t[1]}),O=tt.useRef(null),F=tt.useMemo(function(){return a&&mB(p)&&(null==y?void 0:y.size)>=p},[a,p,null==y?void 0:y.size]),j=function(e){e.preventDefault()},A=function(e){var t;null===(t=O.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},I=tt.useCallback(function(e){return"combobox"!==l&&y.has(e)},[l,(0,rQ.Z)(y).toString(),y.size]),T=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=$.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=$[o]||{},a=i.group,l=i.data;if(!a&&!(null!=l&&l.disabled)&&(I(l.value)||!F))return o}return -1},_=tt.useState(function(){return T(0)}),M=(0,th.Z)(_,2),P=M[0],N=M[1],Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];N(e);var n={source:t?"keyboard":"mouse"},r=$[e];if(!r){m(null,-1,n);return}m(r.value,e,n)};(0,tt.useEffect)(function(){Z(!1!==g?T(0):-1)},[$.length,s]);var R=tt.useCallback(function(e){return"combobox"===l?String(e).toLowerCase()===s.toLowerCase():y.has(e)},[l,s,(0,rQ.Z)(y).toString(),y.size]);(0,tt.useEffect)(function(){var e,t=setTimeout(function(){if(!a&&i&&1===y.size){var e=Array.from(y)[0],t=$.findIndex(function(t){return t.data.value===e});-1!==t&&(Z(t),A(t))}});return i&&(null===(e=O.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[i,s]);var B=function(e){void 0!==e&&b(e,{selected:!y.has(e)}),a||u(!1)};if(tt.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case oX.Z.N:case oX.Z.P:case oX.Z.UP:case oX.Z.DOWN:var r=0;if(t===oX.Z.UP?r=-1:t===oX.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===oX.Z.N?r=1:t===oX.Z.P&&(r=-1)),0!==r){var o=T(P+r,r);A(o),Z(o,!0)}break;case oX.Z.TAB:case oX.Z.ENTER:var a,l=$[P];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||F?B(void 0):B(l.value),i&&e.preventDefault();break;case oX.Z.ESC:u(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}}),0===$.length)return tt.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(S,"-empty"),onMouseDown:j},c);var z=Object.keys(x).map(function(e){return x[e]}),L=function(e){return e.label};function H(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var W=function(e){var t=$[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=(0,n9.Z)(n,!0),a=L(t);return t?tt.createElement("div",(0,np.Z)({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},H(t,e),{"aria-selected":R(r)}),r):null},V={role:"listbox",id:"".concat(o,"_list")};return tt.createElement(tt.Fragment,null,w&&tt.createElement("div",(0,np.Z)({},V,{style:{height:0,width:0,overflow:"hidden"}}),W(P-1),W(P),W(P+1)),tt.createElement(gi,{itemKey:"key",ref:O,data:$,height:k,itemHeight:D,fullHeight:!1,onMouseDown:j,onScroll:d,virtual:w,direction:C,innerProps:w?null:V},function(e,t){var n=e.group,r=e.groupOption,o=e.data,i=e.label,a=e.value,l=o.key;if(n){var s,u=null!==(s=o.title)&&void 0!==s?s:gl(i)?i.toString():void 0;return tt.createElement("div",{className:tr()(S,"".concat(S,"-group"),o.className),title:u},void 0!==i?i:l)}var c=o.disabled,d=o.title,f=(o.children,o.style),p=o.className,h=(0,te.Z)(o,ga),m=(0,r1.Z)(h,z),g=I(a),b=c||!g&&F,y="".concat(S,"-option"),x=tr()(S,y,p,(0,tj.Z)((0,tj.Z)((0,tj.Z)((0,tj.Z)({},"".concat(y,"-grouped"),r),"".concat(y,"-active"),P===t&&!b),"".concat(y,"-disabled"),b),"".concat(y,"-selected"),g)),C=L(e),k=!v||"function"==typeof v||g,D="number"==typeof C?C:C||a,$=gl(D)?D.toString():void 0;return void 0!==d&&($=d),tt.createElement("div",(0,np.Z)({},(0,n9.Z)(m),w?{}:H(e,t),{"aria-selected":R(a),className:x,title:$,onMouseMove:function(){P===t||b||Z(t)},onClick:function(){b||B(a)},style:f}),tt.createElement("div",{className:"".concat(y,"-content")},"function"==typeof E?E(e,{index:t}):D),tt.isValidElement(v)||g,k&&tt.createElement(my,{className:"".concat(S,"-option-state"),customizeIcon:v,customizeIconProps:{value:a,disabled:b,isSelected:g}},g?"✓":null))}))}),gu=function(e,t){var n=tt.useRef({values:new Map,options:new Map});return[tt.useMemo(function(){var r=n.current,o=r.values,i=r.options,a=e.map(function(e){if(void 0===e.label){var t;return(0,e9.Z)((0,e9.Z)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label})}return e}),l=new Map,s=new Map;return a.forEach(function(e){l.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=l,n.current.options=s,a},[e,t]),tt.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function gc(e,t){return mE(e).join("").toUpperCase().includes(t)}var gd=0,gf=(0,ia.Z)(),gp=["children","value"],gh=["children"];function gm(e){var t=tt.useRef();return t.current=e,tt.useCallback(function(){return t.current.apply(t,arguments)},[])}var gg=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],gb=["inputValue"],gv=tt.forwardRef(function(e,t){var n,r,o,i,a,l=e.id,s=e.mode,u=e.prefixCls,c=e.backfill,d=e.fieldNames,f=e.inputValue,p=e.searchValue,h=e.onSearch,m=e.autoClearSearchValue,g=void 0===m||m,b=e.onSelect,v=e.onDeselect,y=e.dropdownMatchSelectWidth,x=void 0===y||y,w=e.filterOption,C=e.filterSort,k=e.optionFilterProp,D=e.optionLabelProp,E=e.options,S=e.optionRender,$=e.children,O=e.defaultActiveFirstOption,F=e.menuItemSelectedIcon,j=e.virtual,A=e.direction,I=e.listHeight,T=void 0===I?200:I,_=e.listItemHeight,M=void 0===_?20:_,P=e.labelRender,N=e.value,Z=e.defaultValue,R=e.labelInValue,B=e.onChange,z=e.maxCount,L=(0,te.Z)(e,gg),H=(n=tt.useState(),o=(r=(0,th.Z)(n,2))[0],i=r[1],tt.useEffect(function(){var e;i("rc_select_".concat((gf?(e=gd,gd+=1):e="TEST_OR_SSR",e)))},[]),l||o),W=mG(s),V=!!(!E&&$),U=tt.useMemo(function(){return(void 0!==w||"combobox"!==s)&&w},[w,s]),q=tt.useMemo(function(){return mz(d,V)},[JSON.stringify(d),V]),G=(0,r0.Z)("",{value:void 0!==p?p:f,postState:function(e){return e||""}}),X=(0,th.Z)(G,2),K=X[0],Y=X[1],J=tt.useMemo(function(){var e=E;E||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ni.Z)(t).map(function(t,r){if(!tt.isValidElement(t)||!t.type)return null;var o,i,a,l,s,u=t.type.isSelectOptGroup,c=t.key,d=t.props,f=d.children,p=(0,te.Z)(d,gh);return n||!u?(o=t.key,a=(i=t.props).children,l=i.value,s=(0,te.Z)(i,gp),(0,e9.Z)({key:o,value:void 0!==l?l:o,children:a},s)):(0,e9.Z)((0,e9.Z)({key:"__RC_SELECT_GRP__".concat(null===c?r:c,"__"),label:c},p),{},{options:e(f)})}).filter(function(e){return e})}($));var t=new Map,n=new Map,r=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(o){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;a<o.length;a+=1){var l=o[a];!l[q.options]||i?(t.set(l[q.value],l),r(n,l,q.label),r(n,l,k),r(n,l,D)):e(l[q.options],!0)}}(e),{options:e,valueOptions:t,labelOptions:n}},[E,$,q,k,D]),Q=J.valueOptions,ee=J.labelOptions,et=J.options,en=tt.useCallback(function(e){return mE(e).map(function(e){e&&"object"===(0,tp.Z)(e)?(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r):t=e;var t,n,r,o,i,a,l,s=Q.get(t);return s&&(void 0===n&&(n=null==s?void 0:s[D||q.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,i=null==s?void 0:s.title),{label:n,value:t,key:r,disabled:o,title:i}})},[q,D,Q]),er=(0,r0.Z)(Z,{value:N}),eo=(0,th.Z)(er,2),ei=eo[0],ea=eo[1],el=gu(tt.useMemo(function(){var e,t,n=en(W&&null===ei?[]:ei);return"combobox"!==s||(t=null===(e=n[0])||void 0===e?void 0:e.value)||0===t?n:[]},[ei,en,s,W]),Q),es=(0,th.Z)(el,2),eu=es[0],ec=es[1],ed=tt.useMemo(function(){if(!s&&1===eu.length){var e=eu[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eu.map(function(e){var t;return(0,e9.Z)((0,e9.Z)({},e),{},{label:null!==(t="function"==typeof P?P(e):e.label)&&void 0!==t?t:e.value})})},[s,eu,P]),ef=tt.useMemo(function(){return new Set(eu.map(function(e){return e.value}))},[eu]);tt.useEffect(function(){if("combobox"===s){var e,t=null===(e=eu[0])||void 0===e?void 0:e.value;Y(null!=t?String(t):"")}},[eu]);var ep=gm(function(e,t){var n=null!=t?t:e;return(0,tj.Z)((0,tj.Z)({},q.value,e),q.label,n)}),eh=(a=tt.useMemo(function(){if("tags"!==s)return et;var e=(0,rQ.Z)(et);return(0,rQ.Z)(eu).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;Q.has(n)||e.push(ep(n,t.label))}),e},[ep,et,Q,eu,s]),tt.useMemo(function(){if(!K||!1===U)return a;var e=q.options,t=q.label,n=q.value,r=[],o="function"==typeof U,i=K.toUpperCase(),l=o?U:function(r,o){return k?gc(o[k],i):o[e]?gc(o["children"!==t?t:"label"],i):gc(o[n],i)},s=o?function(e){return mL(e)}:function(e){return e};return a.forEach(function(t){if(t[e]){if(l(K,s(t)))r.push(t);else{var n=t[e].filter(function(e){return l(K,s(e))});n.length&&r.push((0,e9.Z)((0,e9.Z)({},t),{},(0,tj.Z)({},e,n)))}return}l(K,s(t))&&r.push(t)}),r},[a,U,k,K,q])),em=tt.useMemo(function(){return"tags"!==s||!K||eh.some(function(e){return e[k||"value"]===K})||eh.some(function(e){return e[q.value]===K})?eh:[ep(K)].concat((0,rQ.Z)(eh))},[ep,k,s,eh,K,q]),eg=tt.useMemo(function(){return C?function e(t){return(0,rQ.Z)(t).sort(function(e,t){return C(e,t,{searchValue:K})}).map(function(t){return Array.isArray(t.options)?(0,e9.Z)((0,e9.Z)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})}(em):em},[em,C,K]),eb=tt.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=mz(n,!1),a=i.label,l=i.value,s=i.options,u=i.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&s in t){var i=t[u];void 0===i&&r&&(i=t.label),o.push({key:mR(t,o.length),group:!0,data:t,label:i}),e(t[s],!0)}else{var c=t[l];o.push({key:mR(t,o.length),groupOption:n,data:t,label:t[a],value:c})}})}(e,!1),o}(eg,{fieldNames:q,childrenAsData:V})},[eg,q,V]),ev=function(e){var t=en(e);if(ea(t),B&&(t.length!==eu.length||t.some(function(e,t){var n;return(null===(n=eu[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=R?t:t.map(function(e){return e.value}),r=t.map(function(e){return mL(ec(e.value))});B(W?n:n[0],W?r:r[0])}},ey=tt.useState(null),ex=(0,th.Z)(ey,2),ew=ex[0],eC=ex[1],ek=tt.useState(0),eD=(0,th.Z)(ek,2),eE=eD[0],eS=eD[1],e$=void 0!==O?O:"combobox"!==s,eO=tt.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eS(t),c&&"combobox"===s&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eC(String(e))},[c,s]),eF=function(e,t,n){var r=function(){var t,n=ec(e);return[R?{label:null==n?void 0:n[q.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,mL(n)]};if(t&&b){var o=r(),i=(0,th.Z)(o,2);b(i[0],i[1])}else if(!t&&v&&"clear"!==n){var a=r(),l=(0,th.Z)(a,2);v(l[0],l[1])}},ej=gm(function(e,t){var n=!W||t.selected;ev(n?W?[].concat((0,rQ.Z)(eu),[e]):[e]:eu.filter(function(t){return t.value!==e})),eF(e,n),"combobox"===s?eC(""):(!mG||g)&&(Y(""),eC(""))}),eA=tt.useMemo(function(){var e=!1!==j&&!1!==x;return(0,e9.Z)((0,e9.Z)({},J),{},{flattenOptions:eb,onActiveValue:eO,defaultActiveFirstOption:e$,onSelect:ej,menuItemSelectedIcon:F,rawValues:ef,fieldNames:q,virtual:e,direction:A,listHeight:T,listItemHeight:M,childrenAsData:V,maxCount:z,optionRender:S})},[z,J,eb,eO,e$,ej,F,ef,q,j,x,A,T,M,V,S]);return tt.createElement(mW.Provider,{value:eA},tt.createElement(mX,(0,np.Z)({},L,{id:H,prefixCls:void 0===u?"rc-select":u,ref:t,omitDomProps:gb,mode:s,displayValues:ed,onDisplayValuesChange:function(e,t){ev(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){eF(e.value,!1,n)})},direction:A,searchValue:K,onSearch:function(e,t){if(Y(e),eC(null),"submit"===t.source){var n=(e||"").trim();n&&(ev(Array.from(new Set([].concat((0,rQ.Z)(ef),[n])))),eF(n,!0),Y(""));return}"blur"!==t.source&&("combobox"===s&&ev(e),null==h||h(e))},autoClearSearchValue:g,onSearchSplit:function(e){var t=e;"tags"!==s&&(t=e.map(function(e){var t=ee.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,rQ.Z)(ef),(0,rQ.Z)(t))));ev(n),n.forEach(function(e){eF(e,!0)})},dropdownMatchSelectWidth:x,OptionList:gs,emptyOptions:!eb.length,activeValue:ew,activeDescendantId:"".concat(H,"_list_").concat(eE)})))});gv.Option=mY,gv.OptGroup=mK;var gy=n(40857),gx=n(14202);let gw=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var gC=(0,tc.I$)("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return[gw((0,t9.IX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))]}),gk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let gD=tt.createElement(()=>{let[,e]=(0,tX.ZP)(),[t]=(0,ic.Z)("Empty"),n=new h4.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return tt.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("title",null,(null==t?void 0:t.description)||"Empty"),tt.createElement("g",{fill:"none",fillRule:"evenodd"},tt.createElement("g",{transform:"translate(24 31.67)"},tt.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),tt.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),tt.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),tt.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),tt.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),tt.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),tt.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},tt.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),tt.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),gE=tt.createElement(()=>{let[,e]=(0,tX.ZP)(),[t]=(0,ic.Z)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=(0,tt.useMemo)(()=>({borderColor:new h4.C(n).onBackground(i).toHexShortString(),shadowColor:new h4.C(r).onBackground(i).toHexShortString(),contentColor:new h4.C(o).onBackground(i).toHexShortString()}),[n,r,o,i]);return tt.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("title",null,(null==t?void 0:t.description)||"Empty"),tt.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},tt.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),tt.createElement("g",{fillRule:"nonzero",stroke:a},tt.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),tt.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},null),gS=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=gD,description:i,children:a,imageStyle:l,style:s}=e,u=gk(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:c,direction:d,empty:f}=tt.useContext(ti.E_),p=c("empty",r),[h,m,g]=gC(p),[b]=(0,ic.Z)("Empty"),v=void 0!==i?i:null==b?void 0:b.description,y=null;return y="string"==typeof o?tt.createElement("img",{alt:"string"==typeof v?v:"empty",src:o}):o,h(tt.createElement("div",Object.assign({className:tr()(m,g,p,null==f?void 0:f.className,{[`${p}-normal`]:o===gE,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),s)},u),tt.createElement("div",{className:`${p}-image`,style:l},y),v&&tt.createElement("div",{className:`${p}-description`},v),a&&tt.createElement("div",{className:`${p}-footer`},a)))};gS.PRESENTED_IMAGE_DEFAULT=gD,gS.PRESENTED_IMAGE_SIMPLE=gE;var g$=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,tt.useContext)(ti.E_),r=n("empty");switch(t){case"Table":case"List":return tt.createElement(gS,{image:gS.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return tt.createElement(gS,{image:gS.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return tt.createElement(gS,null)}};let gO=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var gF=n(53466),gj=n(12655);let gA=new t8.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gI=new t8.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),gT=new t8.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g_=new t8.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gM=new t8.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gP=new t8.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gN={"move-up":{inKeyframes:new t8.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new t8.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:gA,outKeyframes:gI},"move-left":{inKeyframes:gT,outKeyframes:g_},"move-right":{inKeyframes:gM,outKeyframes:gP}},gZ=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=gN[t];return[(0,gj.R)(r,o,i,e.motionDurationMid),{[`
  93. ${r}-enter,
  94. ${r}-appear
  95. `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gR=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var gB=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,t7.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
  96. ${o}${l}bottomLeft,
  97. ${i}${l}bottomLeft
  98. `]:{animationName:gF.fJ},[`
  99. ${o}${l}topLeft,
  100. ${i}${l}topLeft,
  101. ${o}${l}topRight,
  102. ${i}${l}topRight
  103. `]:{animationName:gF.Qt},[`${a}${l}bottomLeft`]:{animationName:gF.Uw},[`
  104. ${a}${l}topLeft,
  105. ${a}${l}topRight
  106. `]:{animationName:gF.ly},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},gR(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},t7.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},gR(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,gF.oN)(e,"slide-up"),(0,gF.oN)(e,"slide-down"),gZ(e,"move-up"),gZ(e,"move-down")]};let gz=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:(0,t8.bf)(t),itemLineHeight:(0,t8.bf)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},gL=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},gH=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:c}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:c,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(c).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,t7.Ro)()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},gW=(e,t)=>{let{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=gL(e),l=t?`${n}-${t}`:"",s=gz(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},gH(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,t8.bf)(r)} 0`,lineHeight:(0,t8.bf)(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:(0,t8.bf)(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,t8.bf)(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,
  107. ${n}-prefix + ${n}-selection-wrap
  108. `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),[`
  109. &-input,
  110. &-mirror
  111. `]:{height:i,fontFamily:e.fontFamily,lineHeight:(0,t8.bf)(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function gV(e,t){let{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
  112. &${n}-show-arrow ${n}-selector,
  113. &${n}-allow-clear ${n}-selector
  114. `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[gW(e,t),o]}var gU=e=>{let{componentCls:t}=e,n=(0,t9.IX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,t9.IX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[gV(e),gV(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},gV(r,"lg")]};function gq(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,t7.Wf)(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
  115. ${n}-selection-item,
  116. ${n}-selection-placeholder
  117. `]:{display:"block",padding:0,lineHeight:(0,t8.bf)(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${n}-selection-item:empty:after,${n}-selection-placeholder:empty:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
  118. &${n}-show-arrow ${n}-selection-item,
  119. &${n}-show-arrow ${n}-selection-search,
  120. &${n}-show-arrow ${n}-selection-placeholder
  121. `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,t8.bf)(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:(0,t8.bf)(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,t8.bf)(r)}`,"&:after":{display:"none"}}}}}}}let gG=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,t8.bf)(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},gX=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gG(e,t))}),gK=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},gG(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),gX(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),gX(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),gY=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},gJ=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gY(e,t))}),gQ=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},gY(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),gJ(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),gJ(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),g0=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,t8.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}});var g1=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},gK(e)),gQ(e)),g0(e))});let g2=e=>{let{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},g5=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},g3=e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,t7.Wf)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},g2(e)),g5(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},t7.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},t7.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,t7.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},g6=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},g3(e),function(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[gq(e),gq((0,t9.IX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,t8.bf)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
  122. &${t}-show-arrow ${t}-selection-item,
  123. &${t}-show-arrow ${t}-selection-placeholder
  124. `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},gq((0,t9.IX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),gU(e),gB(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,rx.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var g4=(0,tc.I$)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,t9.IX)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[g6(r),g1(r)]},e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:u,colorText:c,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:x}=e,w=2*l,C=2*r;return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:c,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:Math.min(o-w,o-C),multipleItemHeightSM:Math.min(i-w,i-C),multipleItemHeightLG:Math.min(a-w,a-C),multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),g8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let g7="SECRET_COMBOBOX_MODE_DO_NOT_USE",g9=tt.forwardRef((e,t)=>{var n,r,o;let i;let{prefixCls:a,bordered:l,className:s,rootClassName:u,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:p=256,placement:h,listItemHeight:m,size:g,disabled:b,notFoundContent:v,status:y,builtinPlacements:x,dropdownMatchSelectWidth:w,popupMatchSelectWidth:C,direction:k,style:D,allowClear:E,variant:S,dropdownStyle:$,transitionName:O,tagRender:F,maxCount:j,prefix:A}=e,I=g8(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:T,getPrefixCls:_,renderEmpty:M,direction:P,virtual:N,popupMatchSelectWidth:Z,popupOverflow:R,select:B}=tt.useContext(ti.E_),[,z]=(0,tX.ZP)(),L=null!=m?m:null==z?void 0:z.controlHeight,H=_("select",a),W=_(),V=null!=k?k:P,{compactSize:U,compactItemClassnames:q}=(0,on.ri)(H,V),[G,X]=ot("select",S,l),K=(0,t3.Z)(H),[Y,J,Q]=g4(H,K),ee=tt.useMemo(()=>{let{mode:t}=e;return"combobox"===t?void 0:t===g7?"combobox":t},[e.mode]),et="multiple"===ee||"tags"===ee,en=(r=e.suffixIcon,void 0!==(o=e.showArrow)?o:null!==r),er=null!==(n=null!=C?C:w)&&void 0!==n?n:Z,{status:eo,hasFeedback:ei,isFormItemInput:ea,feedbackIcon:el}=tt.useContext(ry.aM),es=r9(eo,y);i=void 0!==v?v:"combobox"===ee?null:(null==M?void 0:M("Select"))||tt.createElement(g$,{componentName:"Select"});let{suffixIcon:eu,itemIcon:ec,removeIcon:ed,clearIcon:ef}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:c,showArrow:d,componentName:f}=e,p=null!=n?n:tt.createElement(n3.Z,null),h=e=>null!==t||l||d?tt.createElement(tt.Fragment,null,!1!==u&&e,l&&c):null,m=null;if(void 0!==t)m=h(t);else if(i)m=h(tt.createElement(iP.Z,{spin:!0}));else{let e=`${s}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return n&&r?h(tt.createElement(oE,{className:e})):h(tt.createElement(hJ,{className:e}))}}let g=null;return g=void 0!==r?r:a?tt.createElement(iT,null):null,{clearIcon:p,suffixIcon:m,itemIcon:g,removeIcon:void 0!==o?o:tt.createElement(n6.Z,null)}}(Object.assign(Object.assign({},I),{multiple:et,hasFeedback:ei,feedbackIcon:el,showSuffixIcon:en,prefixCls:H,componentName:"Select"})),ep=(0,r1.Z)(I,["suffixIcon","itemIcon"]),eh=tr()(d||f,{[`${H}-dropdown-${V}`]:"rtl"===V},u,Q,K,J),em=(0,t6.Z)(e=>{var t;return null!==(t=null!=g?g:U)&&void 0!==t?t:e}),eg=tt.useContext(oe.Z),eb=tr()({[`${H}-lg`]:"large"===em,[`${H}-sm`]:"small"===em,[`${H}-rtl`]:"rtl"===V,[`${H}-${G}`]:X,[`${H}-in-form-item`]:ea},r7(H,es,ei),q,null==B?void 0:B.className,s,u,Q,K,J),ev=tt.useMemo(()=>void 0!==h?h:"rtl"===V?"bottomRight":"bottomLeft",[h,V]),[ey]=(0,gy.Cn)("SelectLike",null==$?void 0:$.zIndex);return Y(tt.createElement(gv,Object.assign({ref:t,virtual:N,showSearch:null==B?void 0:B.showSearch},ep,{style:Object.assign(Object.assign({},null==B?void 0:B.style),D),dropdownMatchSelectWidth:er,transitionName:(0,o3.m)(W,"slide-up",O),builtinPlacements:x||gO(R),listHeight:p,listItemHeight:L,mode:ee,prefixCls:H,placement:ev,direction:V,prefix:A,suffixIcon:eu,menuItemSelectedIcon:ec,removeIcon:ed,allowClear:!0===E?{clearIcon:ef}:E,notFoundContent:i,className:eb,getPopupContainer:c||T,dropdownClassName:eh,disabled:null!=b?b:eg,dropdownStyle:Object.assign(Object.assign({},$),{zIndex:ey}),maxCount:et?j:void 0,tagRender:et?F:void 0})))}),be=(0,gx.Z)(g9);g9.SECRET_COMBOBOX_MODE_DO_NOT_USE=g7,g9.Option=mY,g9.OptGroup=mK,g9._InternalPanelDoNotUseOrYouWillBeFired=be;var bt=(0,tw.kc)(function(e){var t=e.css,n=e.stylish,r=e.prefixCls,o="".concat(r,"-select"),i=":not(.".concat(o,"-disabled):not(.").concat(o,"-customize-input)");return t(eF||(eF=tm(["\n &."," {\n &-multiple:not(&-customize-input) &.","-selector {\n ",";\n }\n\n &"," {\n &:hover {\n .","-selector {\n border-color: transparent;\n ",";\n }\n }\n }\n\n &-focused"," {\n &:hover {\n .","-selector {\n ",";\n }\n }\n\n .","-selector {\n ",";\n }\n }\n }\n\n ."," {\n &-arrow {\n top: 13px;\n right: 8px;\n width: 10px;\n height: 10px;\n font-size: 10px;\n }\n }\n "])),o,o,n.controlContainer,i,o,n.controlContainer,i,o,n.controlContainerFocused,o,n.controlContainerFocused,o)}),bn=function(e){var t=bt(),n=t.styles,r=t.cx;return(0,tk.jsx)(cX,{children:(0,tk.jsx)(g9,(0,e9.Z)((0,e9.Z)({},e),{},{className:r(n,e.className)}))})},br=cW(function(e){var t=e.css,n=e.cx,r=e.token,o=e.prefixCls,i="".concat(o,"-").concat(null==r?void 0:r.editorPrefix,"-markdown");return{container:t(ej||(ej=tm(["\n :not(:last-child) {\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0;\n margin-inline-end: 0;\n }\n "]))),highlight:t(eA||(eA=tm(["\n pre {\n padding: 12px !important;\n }\n "]))),markdown:t(eI||(eI=tm(["\n color: ",";\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n font-weight: 600;\n }\n\n p {\n margin-block-start: 0;\n margin-block-end: 0;\n\n font-size: 14px;\n line-height: 1.8;\n color: ",";\n word-break: break-all;\n word-wrap: break-word;\n\n + * {\n margin-block-end: 0.5em;\n }\n }\n\n > *:last-child {\n margin-bottom: 0 !important;\n }\n\n blockquote {\n margin: 16px 0;\n padding: 0 12px;\n\n p {\n font-style: italic;\n color: ",";\n }\n }\n\n p:not(:last-child) {\n margin-bottom: 1em;\n }\n\n a {\n color: ",";\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n }\n\n img {\n max-width: 100%;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n border-radius: ","px;\n\n > code {\n padding: 0 !important;\n border: none !important;\n }\n }\n\n > :not([data-code-type='highlighter']) code {\n padding: 2px 6px;\n\n font-size: ","px;\n border-radius: ","px;\n }\n\n table {\n border-spacing: 0;\n\n width: 100%;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0;\n margin-inline-end: 0;\n padding: 8px;\n\n border: 1px solid ",";\n border-radius: ","px;\n\n code {\n display: inline-flex;\n }\n }\n\n th,\n td {\n padding-block-start: 10px;\n padding-block-end: 10px;\n padding-inline-start: 16px;\n padding-inline-end: 16px;\n }\n\n thead {\n tr {\n th {\n background: ",";\n\n &:first-child {\n border-top-left-radius: ","px;\n border-bottom-left-radius: ","px;\n }\n\n &:last-child {\n border-top-right-radius: ","px;\n border-bottom-right-radius: ","px;\n }\n }\n }\n }\n\n > ol > li::marker {\n color: "," !important;\n }\n\n > ul > li {\n line-height: 1.8;\n list-style-type: disc;\n\n &::marker {\n color: "," !important;\n }\n }\n\n ol,\n ul {\n > li::marker {\n color: ",";\n }\n }\n\n details {\n margin-bottom: 1em;\n padding: 12px 16px;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n\n transition: all 400ms ",";\n }\n\n details[open] {\n summary {\n padding-bottom: 12px;\n border-bottom: 1px solid ",";\n }\n }\n "])),r.colorText,r.colorText,r.colorTextDescription,r.colorLink,r.colorLinkHover,r.colorLinkActive,r.borderRadius,r.fontSizeSM,r.borderRadiusSM,r.colorBorderSecondary,r.borderRadius,r.colorFillTertiary,r.borderRadius,r.borderRadius,r.borderRadius,r.borderRadius,r.colorPrimary,r.colorPrimary,r.colorTextDescription,r.colorFillTertiary,r.colorBorderSecondary,r.borderRadiusLG,r.motionEaseOut,r.colorBorder),wrapper:n(t(eT||(eT=tm(["\n background-color: ",";\n border-radius: ","px;\n "])),r.colorFillTertiary,r.borderRadius)),highlighter:t(e_||(e_=tm(["\n max-height: 400px;\n overflow: auto;\n "]))),header:n("".concat(i,"-header"),t(eM||(eM=tm(["\n padding: 4px 8px;\n width: auto !important; // override self width\n "]))),t(eP||(eP=tm(["\n .","-btn {\n &:hover {\n color: "," !important;\n }\n }\n "])),i,r.colorTextSecondary)),copy:t(eN||(eN=tm(["\n background-color: transparent;\n position: inherit;\n width: 30px;\n padding-left: 6px;\n "]))),select:t(eZ||(eZ=tm(["\n min-width: 100px;\n .","-select-selector {\n padding-inline-end: 4px !important;\n }\n .","-select-selection-overflow-item-suffix {\n .","-select-selection-search {\n display: none;\n }\n }\n "])),o,o,o),trigger:t(eR||(eR=tm(["\n min-width: 100px;\n display: flex;\n justify-content: center;\n span {\n font-family: "," !important;\n }\n "])),r.fontFamilyCode),lang:n(t(eB||(eB=tm(["\n position: absolute;\n z-index: 2;\n right: 0;\n bottom: 8px;\n\n font-family: ",";\n color: ",";\n\n transition: opacity 0.1s;\n "])),r.fontFamilyCode,r.colorTextSecondary))}}),bo=hI.map(function(e){return{label:e,value:e.toLowerCase()}}),bi=(0,tt.memo)(function(e){var t=e||{},n=t.children,r=t.language,o=t.className,i=t.style,a=(0,tt.useState)(!0),l=(0,th.Z)(a,2),s=l[0],u=l[1],c=(0,tt.useState)(void 0===r?"markdown":r),d=(0,th.Z)(c,2),f=d[0],p=d[1],h=br().styles,m=(0,tt.useMemo)(function(){return(0,tk.jsx)(mb,{language:null==f?void 0:f.toLowerCase(),copyable:!1,showLanguage:!1,type:"block",children:n})},[f,n]);return(0,tk.jsxs)("div",{className:tr()(h.wrapper,o),style:i,children:[(0,tk.jsxs)(tH,{align:"center",className:h.header,horizontal:!0,justify:"space-between",children:[(0,tk.jsx)(hR,{icon:s?(0,tk.jsx)(hJ,{size:14}):(0,tk.jsx)(oq,{size:14}),onClick:function(){return u(!s)},size:24}),(0,tk.jsx)(bn,{bordered:!1,className:h.select,onSelect:p,mode:"tags",options:bo,tagRender:function(e){return(0,tk.jsx)("div",{className:h.trigger,children:(0,tk.jsx)(tg.ZP,{type:"text",size:"small",children:e.label})})},showSearch:!0,size:"small",suffixIcon:!1,value:[f.toLowerCase()]}),(0,tk.jsx)(hL,{className:h.copy,content:n})]}),(0,tk.jsx)("div",{className:h.highlighter,children:s?m:null})]})}),ba=(0,tw.kc)(function(e){var t=e.css;return{container:t(ez||(ez=tm(["\n :not(:last-child) {\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0;\n margin-inline-end: 0;\n }\n "]))),highlight:t(eL||(eL=tm(["\n pre {\n padding: 12px !important;\n }\n "])))}}),bl=function(e){var t=e.match(/\n/g);return t?t.length:1},bs=(0,tt.memo)(function(e){var t=ba(),n=t.styles,r=t.cx;if(e.children[0]){var o=e.children[0].props,i=o.children,a=o.className;if(i){var l=Array.isArray(i)?i[0]:i,s=(null==a?void 0:a.replace("language-",""))||"txt";return 1===bl(l)&&l.length<=60?(0,tk.jsx)(hK,{className:r(n.container),style:{display:"flex"},"data-code-type":"highlighter",language:s,symbol:"",type:"block",children:l}):(0,tk.jsx)(bi,{className:r(n.container,n.highlight),language:s,children:l})}}}),bu=["children","className","style","onDoubleClick","rehypePlugins","remarkPlugins","components"],bc=(0,tt.memo)(function(e){return(0,tk.jsx)(oV,(0,e9.Z)({style:{marginBottom:"1em",marginTop:0}},e))}),bd=(0,tt.memo)(function(e){return(0,tk.jsx)(ir,(0,e9.Z)({style:{marginBottom:"1em"}},e))}),bf=(0,tt.memo)(function(e){return(0,tk.jsx)("img",(0,e9.Z)({},e))}),bp=(0,tt.memo)(function(e){return(0,tk.jsx)(iA.Link,(0,e9.Z)({},e))}),bh=(h=(0,tt.memo)(function(e){var t=e.children,n=e.className,r=e.style,o=e.onDoubleClick,i=e.rehypePlugins,a=e.remarkPlugins,l=e.components,s=(0,te.Z)(e,bu),u=br().styles,c=(0,e9.Z)({details:bd,hr:bc,a:bp,img:bf,pre:bs},l),d=[uy].concat((0,rQ.Z)(i||[])),f=[[cI,{singleTilde:!1}],cN].concat((0,rQ.Z)(a||[]));return(0,tk.jsx)(iA,{className:n,onDoubleClick:o,style:r,children:(0,tk.jsx)(s1,(0,e9.Z)((0,e9.Z)({className:u.markdown,components:c,rehypePlugins:d,remarkPlugins:f},s),{},{children:t}))})}),function(e){return(0,tk.jsx)(cX,{children:(0,tk.jsx)(h,(0,e9.Z)({},e))})}),bm=n(60751),bg=(0,tt.memo)(function(e){var t=e.editing,n=e.open,r=e.height,o=void 0===r?"auto":r,i=e.onOpenChange,a=e.onEditingChange,l=e.placeholder,s=e.value,u=e.onChange,c=e.text,d=e.footer,f=e.extra,p=e.markdownProps,h=t1().mobile,m=(0,rv.C8)(!1,{onChange:a,value:t}),g=(0,th.Z)(m,2),b=g[0],v=g[1],y=(0,rv.C8)(!1,{onChange:i,value:n}),x=(0,th.Z)(y,2),w=x[0],C=x[1],k={height:"auto"===o?"unset":o,overflowX:"hidden",overflowY:"auto"};return(0,tk.jsx)(bm.Z,{cancelText:(null==c?void 0:c.cancel)||"Cancel",footer:b?null:d,okText:(null==c?void 0:c.edit)||"Edit",onCancel:function(){return C(!1)},onOk:function(){return v(!0)},open:w,styles:h?{body:{padding:16}}:{},title:(null==c?void 0:c.title)||"Prompt",children:b?(0,tk.jsx)(oz,{defaultValue:s,height:o,onCancel:function(){return v(!1)},onConfirm:function(e){v(!1),null==u||u(e)},placeholder:l,text:{cancel:null==c?void 0:c.cancel,confirm:null==c?void 0:c.confirm},type:"block"}):(0,tk.jsxs)(tk.Fragment,{children:[f,(0,tk.jsx)(bh,(0,e9.Z)((0,e9.Z)({},p),{},{style:s?(0,e9.Z)((0,e9.Z)({},k),null==p?void 0:p.style):(0,e9.Z)((0,e9.Z)((0,e9.Z)({},k),null==p?void 0:p.style),{},{opacity:.5}),children:String(s||l)}))]})})}),bb=(0,tt.memo)(function(e){var t=e.value,n=e.onChange,r=e.classNames,o=void 0===r?{}:r,i=e.onEditingChange,a=e.editing,l=e.openModal,s=e.onOpenChange,u=e.placeholder,c=void 0===u?"Type something...":u,d=e.showEditWhenEmpty,f=e.styles,p=e.height,h=e.inputType,m=e.editButtonSize,g=e.text,b=e.model,v=e.markdownProps,y=(0,rv.C8)(!1,{onChange:i,value:a}),x=(0,th.Z)(y,2),w=x[0],C=x[1],k=(0,rv.C8)(!1,{onChange:s,value:l}),D=(0,th.Z)(k,2),E=D[0],S=D[1],$="auto"===p,O=(0,tk.jsx)(oz,{className:null==o?void 0:o.input,classNames:{textarea:null==o?void 0:o.textarea},defaultValue:t,editButtonSize:m,height:p,onCancel:function(){return C(!1)},onConfirm:function(e){null==n||n(e),C(!1)},placeholder:c,style:null==f?void 0:f.input,text:g,textareaClassname:null==o?void 0:o.input,type:h});return!t&&void 0!==d&&d?O:(0,tk.jsxs)(tk.Fragment,{children:[!E&&w?O:(0,tk.jsx)(bh,(0,e9.Z)((0,e9.Z)({},v),{},{style:(0,e9.Z)({height:$?"unset":p,overflowX:"hidden",overflowY:"auto"},null==v?void 0:v.style),children:t||c})),(0,tk.jsx)(bg,{editing:w,extra:null==b?void 0:b.extra,footer:null==b?void 0:b.footer,height:p,onChange:function(e){return null==n?void 0:n(e)},onEditingChange:C,onOpenChange:function(e){S(e),C(!1)},markdownProps:v,open:E,placeholder:c,text:g,value:t})]})}),bv=(0,tt.memo)(function(e){var t=e.editing,n=e.onChange,r=e.onEditingChange,o=e.className,i=e.text,a=e.message,l=e.placement,s=e.messageExtra,u=e.renderMessage,c=e.markdownProps,d=e.type,f=e.primary,p=e.onDoubleClick,h=nJ({editing:t,placement:l,primary:f,type:d}),m=h.cx,g=h.styles,b=t1().mobile,v=(0,(0,tt.useContext)(tW.ZP.ConfigContext).getPrefixCls)("pro-chat"),y=(0,tk.jsx)(bb,{classNames:{input:g.editingInput},editButtonSize:"small",editing:t,fullFeaturedCodeBlock:!0,onChange:n,onEditingChange:r,openModal:b?t:void 0,text:i,value:String(a||"..."),markdownProps:c}),x=u?u(y):y;return(0,tk.jsxs)(tH,{className:m(g.message,o,t&&g.editingContainer),onDoubleClick:p,children:[x,s&&!t?(0,tk.jsx)("div",{className:"".concat(m(g.messageExtra,"".concat(v,"-message-extra"))),children:s}):null]})}),by=n(34744),bx=n.n(by);n(80463);var bw=function(e){var t=bx()(),n=bx()(e);return n.isSame(t,"day")?n.format("HH:mm:ss"):n.isSame(t,"year")?n.format("MM-DD HH:mm:ss"):n.format("YYYY-MM-DD HH:mm:ss")},bC=(0,tt.memo)(function(e){var t=e.showTitle,n=e.className,r=e.placement,o=e.time,i=e.avatar;return(0,tk.jsxs)(tH,{className:n,direction:"left"===r?"horizontal":"horizontal-reverse",gap:4,children:[t?i.title||"untitled":void 0,o&&(0,tk.jsx)("time",{children:bw(o)})]})}),bk=["avatarAddon","onAvatarClick","actions","actionsClick","className","primary","loading","message","placement","type","avatar","error","showTitle","time","editing","onChange","onEditingChange","messageExtra","renderMessage","text","chatItemRenderConfig","renderErrorMessages","markdownProps","onDoubleClick","originData"],bD=(0,tt.memo)(function(e){var t,n=e.avatarAddon,r=e.onAvatarClick,o=e.actions,i=e.actionsClick,a=e.className,l=e.primary,s=e.loading,u=e.message,c=e.placement,d=void 0===c?"left":c,f=e.type,p=void 0===f?"block":f,h=e.avatar,m=e.error,g=e.showTitle,b=e.time,v=e.editing,y=e.onChange,x=e.onEditingChange,w=e.messageExtra,C=e.renderMessage,k=e.text,D=e.chatItemRenderConfig,E=e.renderErrorMessages,S=e.markdownProps,$=e.onDoubleClick,O=e.originData,F=(0,te.Z)(e,bk),j=t1().mobile,A=nJ({editing:v,placement:d,primary:l,showTitle:g,title:h.title,type:p}),I=A.cx,T=A.styles,_=(0,(0,tt.useContext)(tW.ZP.ConfigContext).getPrefixCls)("pro-chat"),M=null==m?void 0:m.message,P=(0,tt.useMemo)(function(){if((null==D?void 0:D.avatarRender)===!1)return null;var t,o=(0,tk.jsx)(n1,{addon:n,avatar:h,loading:s,onClick:r,placement:d,size:j?32:void 0});return(null==D||null===(t=D.avatarRender)||void 0===t?void 0:t.call(D,e,o))||o},[h,d,j,s]),N=(0,tt.useMemo)(function(){if((null==D?void 0:D.contentRender)===!1)return null;var t,n=m?E?E(m):(0,tk.jsx)(rb,{message:M,placement:d}):(0,tk.jsx)(bv,{editing:v,message:u,className:"".concat(_,"-list-item-message-content"),messageExtra:w,onChange:y,onDoubleClick:$,onEditingChange:x,placement:d,primary:l,renderMessage:C,text:k,type:p,markdownProps:S});return(null==D||null===(t=D.contentRender)||void 0===t?void 0:t.call(D,e,n))||n},[m,u,w,C,d,l,k,p,v,M,O]),Z=(0,tt.useMemo)(function(){if((null==D?void 0:D.actionsRender)===!1||m)return null;var t,n=(0,tk.jsx)(t2,{actions:o,className:"".concat(I(T.actions,"".concat(_,"-list-item-actions")))});return(null==D||null===(t=D.actionsRender)||void 0===t?void 0:t.call(D,e,n,i))||n},[o]),R=(0,tt.useMemo)(function(){if((null==D?void 0:D.titleRender)===!1)return null;var t,n=(0,tk.jsx)(bC,{className:"".concat(I(T.name,"".concat(_,"-list-item-title"))),avatar:h,placement:d,showTitle:g,time:b});return(null==D||null===(t=D.titleRender)||void 0===t?void 0:t.call(D,e,n))||n},[b,h]);if((null==D?void 0:D.render)===!1)return null;var B=(0,tk.jsxs)(tH,(0,e9.Z)((0,e9.Z)({className:I(T.container,"".concat(_,"-list-item"),"".concat(_,"-list-item-").concat(d),a),direction:"left"===d?"horizontal":"horizontal-reverse",gap:j?6:12},F),{},{children:[P,(0,tk.jsxs)(tH,{align:"left"===d?"flex-start":"flex-end",className:I(T.messageContainer,"".concat(_,"-list-item-message-container")),children:[R,(0,tk.jsxs)(tH,{align:"left"===d?"flex-start":"flex-end",className:I(T.messageContent,"".concat(_,"-message-content")),direction:"block"===p?"left"===d?"horizontal":"horizontal-reverse":"vertical",gap:8,children:[N,Z]})]}),j&&"block"===p&&(0,tk.jsx)(n2,{borderSpacing:32})]}));return(null==D||null===(t=D.render)||void 0===t?void 0:t.call(D,e,{avatar:P,messageContent:N,actions:Z,title:R,itemDom:B},B))||B}),bE=function(e){var t=(0,tt.useRef)(null);return t.current=e,(0,tt.useCallback)(function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat((0,rQ.Z)(r)))},[])},bS=(0,tw.kc)(function(e,t){var n,r,o=e.css,i=e.token,a=e.isDarkMode,l=t.offset,s=t.outside,u=t.size,c=(null!==(n=null==l?void 0:l.x)&&void 0!==n?n:0)+"px",d=(null!==(r=null==l?void 0:l.y)&&void 0!==r?r:0)+"px";return o(eH||(eH=tm(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),s?"0":".1",u+"px",c,d,a?i.colorText:"#fff",a?"transparent":i.colorTextQuaternary)}),b$=["className","size"],bO=function(){var e=(0,tt.useState)(),t=(0,th.Z)(e,2),n=t[0],r=t[1],o=(0,tt.useState)(!0),i=(0,th.Z)(o,2),a=i[0],l=i[1],s=(0,tt.useRef)();return(0,tt.useEffect)(function(){if(s.current&&s.current.parentElement){var e=s.current.parentElement,t=function(t){var n=e.getBoundingClientRect();r({x:t.clientX-n.x,y:t.clientY-n.y}),l(!1)},n=function(){l(!0)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",n),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",n)}}},[]),[n,a,s]},bF=(0,tt.memo)(function(e){var t=e.className,n=e.size,r=(0,te.Z)(e,b$),o=bO(),i=(0,th.Z)(o,3),a=i[0],l=i[1],s=i[2],u=bS({offset:a,outside:l,size:void 0===n?64:n}),c=u.styles,d=u.cx;return(0,tk.jsx)("div",(0,e9.Z)({className:d(c,t),ref:s},r))}),bj=(0,tw.kc)(function(e,t){var n=e.css,r=e.stylish;return{block:(0,e.cx)(t.glass&&(null==r?void 0:r.blur),n(eW||(eW=tm(["\n cursor: pointer;\n\n position: relative;\n\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n "]))))}}),bA=["color","fill","className","active","icon","size","style","glass","spotlight","onClick","children","loading","title","placement","arrow","tooltipDelay"],bI=function(e){var t,n;switch(e){case"large":t=44,n=8;break;case"normal":t=36,n=5;break;case"small":t=24,n=5;break;case"site":t=34,n=5;break;default:t=(null==e?void 0:e.blockSize)||36,n=(null==e?void 0:e.borderRadius)||5}return{blockSize:t,borderRadius:n}},bT=(0,tt.forwardRef)(function(e,t){var n=e.color,r=e.fill,o=e.className,i=e.active,a=e.icon,l=e.size,s=void 0===l?"normal":l,u=e.style,c=e.glass,d=e.spotlight,f=e.onClick,p=e.children,h=e.loading,m=e.title,g=e.placement,b=e.arrow,v=e.tooltipDelay,y=(0,te.Z)(e,bA),x=bj({active:!!i,glass:!!c}),w=x.styles,C=x.cx,k=(0,tt.useMemo)(function(){return bI(s)},[s]),D=k.blockSize,E=k.borderRadius,S=(0,tk.jsxs)(tk.Fragment,{children:[a&&(0,tk.jsx)(tS,{color:n,fill:r,icon:a,size:"site"===s?"normal":s}),p]}),$=(0,tk.jsx)(tS,{color:n,icon:nQ,size:"site"===s?"normal":s,spin:!0}),O=(0,tk.jsxs)("div",(0,e9.Z)((0,e9.Z)({className:C(w.block,o),onClick:h?void 0:f,ref:t,style:(0,e9.Z)({borderRadius:E,height:D,width:D},u)},y),{},{children:[d&&(0,tk.jsx)(bF,{}),h?$:S]}));return(0,tk.jsx)(tk.Fragment,{children:(0,tk.jsx)(hR,(0,e9.Z)((0,e9.Z)({},y),{},{arrow:void 0!==b&&b,tooltipDelay:void 0===v?.5:v,placement:g,title:m,icon:O,size:D}))})}),b_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"},bM=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:b_}))}),bP=n(66988),bN=e=>"object"!=typeof e&&"function"!=typeof e||null===e,bZ=n(84927),bR=n(84039),bB=n(37368);let bz=tt.createContext({});var bL=n(37977);let bH=(0,tt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var bW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},bV=e=>{let{prefixCls:t,className:n,dashed:r}=e,o=bW(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=tt.useContext(ti.E_),a=i("menu",t),l=tr()({[`${a}-item-divider-dashed`]:!!r},n);return tt.createElement(bB.iz,Object.assign({className:l},o))},bU=e=>{var t;let{className:n,children:r,icon:o,title:i,danger:a,extra:l}=e,{prefixCls:s,firstLevel:u,direction:c,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=tt.useContext(bH),{siderCollapsed:p}=tt.useContext(bz),h=i;void 0===i?h=u?r:"":!1===i&&(h="");let m={title:h};p||f||(m.title=null,m.open=!1);let g=(0,ni.Z)(r).length,b=tt.createElement(bB.ck,Object.assign({},(0,r1.Z)(e,["title","icon","danger"]),{className:tr()({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?g+1:g)===1},n),title:"string"==typeof i?i:void 0}),(0,na.Tm)(o,{className:tr()(tt.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{let t=null==r?void 0:r[0],n=tt.createElement("span",{className:tr()(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!l||0===l})},r);return(!o||tt.isValidElement(r)&&"span"===r.type)&&r&&e&&u&&"string"==typeof t?tt.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):n})(f));return d||(b=tt.createElement(id.Z,Object.assign({},m,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},bq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let bG=tt.createContext(null),bX=tt.forwardRef((e,t)=>{let{children:n}=e,r=bq(e,["children"]),o=tt.useContext(bG),i=tt.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=(0,t5.t4)(n),l=(0,t5.x1)(t,a?(0,t5.C4)(n):null);return tt.createElement(bG.Provider,{value:i},tt.createElement(r4.Z,{space:!0},a?tt.cloneElement(n,{ref:l}):n))});var bK=n(24713),bY=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${(0,t8.bf)(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
  125. > ${t}-item-active,
  126. > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:`border-color ${n},background ${n}`},[`${t}-submenu-arrow`]:{display:"none"}}}},bJ=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
  127. ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,t8.bf)(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,t8.bf)(n)})`}}}}};let bQ=e=>Object.assign({},(0,t7.oN)(e));var b0=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:c,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:k,dangerItemActiveBg:D,dangerItemSelectedBg:E,popupBg:S,itemHoverBg:$,itemActiveBg:O,menuSubMenuBg:F,horizontalItemSelectedColor:j,horizontalItemSelectedBg:A,horizontalItemBorderRadius:I,horizontalItemHoverBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},bQ(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},bQ(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:F},[`&${n}-popup > ${n}`]:{backgroundColor:S},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:S},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:I,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${(0,t8.bf)(u)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,t8.bf)(d)} ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,t8.bf)(c)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:`transform ${g} ${h},opacity ${g} ${h}`,content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:`transform ${g} ${p},opacity ${g} ${p}`}}}}}};let b1=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:u}=e,c=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,t8.bf)(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,
  128. > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,t8.bf)(n)},[`${t}-item-group-list ${t}-submenu-title,
  129. ${t}-submenu-title`]:{paddingInlineEnd:c}}};var b2=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:u,fontSizeLG:c,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,b={height:r,lineHeight:(0,t8.bf)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},b1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},b1(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,t8.bf)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:`border-color ${f},background ${f},padding ${d} ${l}`,[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:c,textAlign:"center"}}},[`> ${t}-item,
  130. > ${t}-item-group > ${t}-item-group-list > ${t}-item,
  131. > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
  132. > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,t8.bf)(e.calc(g).div(2).equal())} - ${(0,t8.bf)(u)})`,textOverflow:"clip",[`
  133. ${t}-submenu-arrow,
  134. ${t}-submenu-expand-icon
  135. `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:(0,t8.bf)(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},t7.vS),{paddingInline:p})}}]};let b5=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:`border-color ${n},background ${n},padding calc(${n} + 0.1s) ${o}`,[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:`font-size ${r} ${i},margin ${n} ${o},color ${n}`,"+ span":{marginInlineStart:s,opacity:1,transition:`opacity ${n} ${o},margin ${n},color ${n}`}},[`${t}-item-icon`]:Object.assign({},(0,t7.Ro)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},b3=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:`background ${n} ${r},transform ${n} ${r},top ${n} ${r},color ${n} ${r}`,content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,t8.bf)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,t8.bf)(a)})`}}}}},b6=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:u,lineWidth:c,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:m,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,t7.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,t7.Wf)(e)),(0,t7.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,t8.bf)(l)} ${(0,t8.bf)(s)}`,fontSize:v,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:`border-color ${o} ${a},background ${o} ${a}`},[`${n}-submenu, ${n}-submenu-inline`]:{transition:`border-color ${o} ${a},background ${o} ${a},padding ${i} ${a}`},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:`background ${o} ${a},padding ${o} ${a}`},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),b5(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,t8.bf)(e.calc(r).mul(2).equal())} ${(0,t8.bf)(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},b5(e)),b3(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},[`
  136. &-placement-leftTop,
  137. &-placement-bottomRight,
  138. `]:{transformOrigin:"100% 0"},[`
  139. &-placement-leftBottom,
  140. &-placement-topRight,
  141. `]:{transformOrigin:"100% 100%"},[`
  142. &-placement-rightBottom,
  143. &-placement-topLeft,
  144. `]:{transformOrigin:"0 100%"},[`
  145. &-placement-bottomLeft,
  146. &-placement-rightTop,
  147. `]:{transformOrigin:"0 0"},[`
  148. &-placement-leftTop,
  149. &-placement-leftBottom
  150. `]:{paddingInlineEnd:e.paddingXS},[`
  151. &-placement-rightTop,
  152. &-placement-rightBottom
  153. `]:{paddingInlineStart:e.paddingXS},[`
  154. &-placement-topRight,
  155. &-placement-topLeft
  156. `]:{paddingBottom:e.paddingXS},[`
  157. &-placement-bottomRight,
  158. &-placement-bottomLeft
  159. `]:{paddingTop:e.paddingXS}}}),b3(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
  160. &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,t8.bf)(m)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,t8.bf)(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,t8.bf)(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,t8.bf)(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,t8.bf)(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},b4=e=>{var t,n,r;let{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:k,fontSizeLG:D,colorTextLightSolid:E,colorErrorHover:S}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,O=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,F=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,j=new h4.C(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:c,itemBg:c,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:O,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:F,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:`${1.15*b}px`,iconSize:C,iconMarginInlineEnd:k-C,collapsedIconSize:D,groupTitleFontSize:C,darkItemDisabledColor:new h4.C(E).setAlpha(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:E,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${O}px)`:`calc(100% - ${2*F}px)`}};var b8=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,tc.I$)("Menu",e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:u,darkDangerItemSelectedBg:c,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:h,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:b,popupBg:v,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),w=(0,t9.IX)(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),C=(0,t9.IX)(w,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:u,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:b,dangerItemSelectedBg:c,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:u});return[b6(w),bY(w),b2(w),b0(w,"light"),b0(C,"dark"),bJ(w),o4(w),(0,gF.oN)(w,"slide-up"),(0,gF.oN)(w,"slide-down"),(0,bK._y)(w,"zoom-big")]},b4,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},b7=e=>{var t;let n;let{popupClassName:r,icon:o,title:i,theme:a}=e,l=tt.useContext(bH),{prefixCls:s,inlineCollapsed:u,theme:c}=l,d=(0,bB.Xl)();if(o){let e=tt.isValidElement(i)&&"span"===i.type;n=tt.createElement(tt.Fragment,null,(0,na.Tm)(o,{className:tr()(tt.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?i:tt.createElement("span",{className:`${s}-title-content`},i))}else n=u&&!d.length&&i&&"string"==typeof i?tt.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):tt.createElement("span",{className:`${s}-title-content`},i);let f=tt.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[p]=(0,gy.Cn)("Menu");return tt.createElement(bH.Provider,{value:f},tt.createElement(bB.Wd,Object.assign({},(0,r1.Z)(e,["icon"]),{title:n,popupClassName:tr()(s,r,`${s}-${a||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))},b9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ve(e){return null===e||!1===e}let vt={item:bU,submenu:b7,divider:bV},vn=(0,tt.forwardRef)((e,t)=>{var n;let r=tt.useContext(bG),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:s}=tt.useContext(ti.E_),u=i(),{prefixCls:c,className:d,style:f,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:g,siderCollapsed:b,rootClassName:v,mode:y,selectable:x,onClick:w,overflowedIndicatorPopupClassName:C}=e,k=b9(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),D=(0,r1.Z)(k,["collapsedWidth"]);null===(n=o.validator)||void 0===n||n.call(o,{mode:y});let E=(0,oa.Z)(function(){var e;null==w||w.apply(void 0,arguments),null===(e=o.onClick)||void 0===e||e.call(o)}),S=o.mode||y,$=null!=x?x:o.selectable,O=null!=g?g:b,F={horizontal:{motionName:`${u}-slide-up`},inline:(0,o3.Z)(u),other:{motionName:`${u}-zoom-big`}},j=i("menu",c||o.prefixCls),A=(0,t3.Z)(j),[I,T,_]=b8(j,A,!r),M=tr()(`${j}-${p}`,null==s?void 0:s.className,d),P=tt.useMemo(()=>{var e,t;if("function"==typeof h||ve(h))return h||null;if("function"==typeof o.expandIcon||ve(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||ve(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;let n=null!==(e=null!=h?h:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return(0,na.Tm)(n,{className:tr()(`${j}-submenu-expand-icon`,tt.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})},[h,null==o?void 0:o.expandIcon,null==s?void 0:s.expandIcon,j]),N=tt.useMemo(()=>({prefixCls:j,inlineCollapsed:O||!1,direction:l,firstLevel:!0,theme:p,mode:S,disableMenuItemTitleTooltip:m}),[j,O,l,m,p]);return I(tt.createElement(bG.Provider,{value:null},tt.createElement(bH.Provider,{value:N},tt.createElement(bB.ZP,Object.assign({getPopupContainer:a,overflowedIndicator:tt.createElement(bL.Z,null),overflowedIndicatorPopupClassName:tr()(j,`${j}-${p}`,C),mode:S,selectable:$,onClick:E},D,{inlineCollapsed:O,style:Object.assign(Object.assign({},null==s?void 0:s.style),f),className:M,prefixCls:j,direction:l,defaultMotions:F,expandIcon:P,ref:t,rootClassName:tr()(v,T,o.rootClassName,_,A),_internalComponents:vt})))))}),vr=(0,tt.forwardRef)((e,t)=>{let n=(0,tt.useRef)(null),r=tt.useContext(bz);return(0,tt.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),tt.createElement(vn,Object.assign({ref:n},e,r))});vr.Item=bU,vr.SubMenu=b7,vr.Divider=bV,vr.ItemGroup=bB.BW;var vo=n(16200),vi=n(17689),va=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}};let vl=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:u,fontSize:c,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},[`
  161. &-hidden,
  162. &-menu-hidden,
  163. &-menu-submenu-hidden
  164. `]:{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
  165. &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
  166. &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
  167. &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
  168. &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
  169. &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:gF.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
  170. &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
  171. &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
  172. &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
  173. &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
  174. &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:gF.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
  175. &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
  176. &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:gF.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
  177. &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
  178. &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:gF.ly}}},(0,vo.ZP)(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,t7.Wf)(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,t7.Qy)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,t8.bf)(u)} ${(0,t8.bf)(h)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:c,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,t8.bf)(u)} ${(0,t8.bf)(h)}`,color:e.colorText,fontWeight:"normal",fontSize:c,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,t7.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,t8.bf)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,t8.bf)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,gF.oN)(e,"slide-up"),(0,gF.oN)(e,"slide-down"),gZ(e,"move-up"),gZ(e,"move-down"),(0,bK._y)(e,"zoom-big")]]};var vs=(0,tc.I$)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=(0,t9.IX)(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[vl(i),va(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,vo.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,vi.w)(e)),{resetStyle:!1});let vu=e=>{var t;let{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:s,getPopupContainer:u,overlayClassName:c,rootClassName:d,overlayStyle:f,open:p,onOpenChange:h,visible:m,onVisibleChange:g,mouseEnterDelay:b=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:y=!0,placement:x="",overlay:w,transitionName:C}=e,{getPopupContainer:k,getPrefixCls:D,direction:E,dropdown:S}=tt.useContext(ti.E_);(0,to.ln)("Dropdown");let $=tt.useMemo(()=>{let e=D();return void 0!==C?C:x.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[D,x,C]),O=tt.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:"rtl"===E?"bottomRight":"bottomLeft",[x,E]),F=D("dropdown",o),j=(0,t3.Z)(F),[A,I,T]=vs(F,j),[,_]=(0,tX.ZP)(),M=tt.Children.only(bN(i)?tt.createElement("span",null,i):i),P=(0,na.Tm)(M,{className:tr()(`${F}-trigger`,{[`${F}-rtl`]:"rtl"===E},M.props.className),disabled:null!==(t=M.props.disabled)&&void 0!==t?t:l}),N=l?[]:a,Z=!!(null==N?void 0:N.includes("contextMenu")),[R,B]=(0,r0.Z)(!1,{value:null!=p?p:m}),z=(0,oa.Z)(e=>{null==h||h(e,{source:"trigger"}),null==g||g(e),B(e)}),L=tr()(c,d,I,T,j,null==S?void 0:S.className,{[`${F}-rtl`]:"rtl"===E}),H=(0,bZ.Z)({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:y,offset:_.marginXXS,arrowWidth:r?_.sizePopupArrow:0,borderRadius:_.borderRadius}),W=tt.useCallback(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==h||h(!1,{source:"menu"}),B(!1))},[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[V,U]=(0,gy.Cn)("Dropdown",null==f?void 0:f.zIndex),q=tt.createElement(bP.Z,Object.assign({alignPoint:Z},(0,r1.Z)(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:v,visible:R,builtinPlacements:H,arrow:!!r,overlayClassName:L,prefixCls:F,getPopupContainer:u||k,transitionName:$,trigger:N,overlay:()=>{let e;return e=(null==n?void 0:n.items)?tt.createElement(vr,Object.assign({},n)):"function"==typeof w?w():w,s&&(e=s(e)),e=tt.Children.only("string"==typeof e?tt.createElement("span",null,e):e),tt.createElement(bX,{prefixCls:`${F}-menu`,rootClassName:tr()(T,j),expandIcon:tt.createElement("span",{className:`${F}-menu-submenu-arrow`},tt.createElement(oq,{className:`${F}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:W,validator:e=>{let{mode:t}=e}},e)},placement:O,onVisibleChange:z,overlayStyle:Object.assign(Object.assign(Object.assign({},null==S?void 0:S.style),f),{zIndex:V})}),P);return V&&(q=tt.createElement(bR.Z.Provider,{value:U},q)),A(q)},vc=(0,gx.Z)(vu,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});function vd(e){return["small","middle","large"].includes(e)}function vf(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}vu._InternalPanelDoNotUseOrYouWillBeFired=e=>tt.createElement(vc,Object.assign({},e),tt.createElement("span",null));let vp=tt.createContext({latestIndex:0}),vh=vp.Provider;var vm=e=>{let{className:t,index:n,children:r,split:o,style:i}=e,{latestIndex:a}=tt.useContext(vp);return null==r?null:tt.createElement(tt.Fragment,null,tt.createElement("div",{className:t,style:i},r),n<a&&o&&tt.createElement("span",{className:`${t}-split`},o))},vg=n(57085),vb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let vv=tt.forwardRef((e,t)=>{var n,r,o;let{getPrefixCls:i,space:a,direction:l}=tt.useContext(ti.E_),{size:s=null!==(n=null==a?void 0:a.size)&&void 0!==n?n:"small",align:u,className:c,rootClassName:d,children:f,direction:p="horizontal",prefixCls:h,split:m,style:g,wrap:b=!1,classNames:v,styles:y}=e,x=vb(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(s)?s:[s,s],k=vd(C),D=vd(w),E=vf(C),S=vf(w),$=(0,ni.Z)(f,{keepEmpty:!0}),O=void 0===u&&"horizontal"===p?"center":u,F=i("space",h),[j,A,I]=(0,vg.Z)(F),T=tr()(F,null==a?void 0:a.className,A,`${F}-${p}`,{[`${F}-rtl`]:"rtl"===l,[`${F}-align-${O}`]:O,[`${F}-gap-row-${C}`]:k,[`${F}-gap-col-${w}`]:D},c,d,I),_=tr()(`${F}-item`,null!==(r=null==v?void 0:v.item)&&void 0!==r?r:null===(o=null==a?void 0:a.classNames)||void 0===o?void 0:o.item),M=0,P=$.map((e,t)=>{var n,r;null!=e&&(M=t);let o=(null==e?void 0:e.key)||`${_}-${t}`;return tt.createElement(vm,{className:_,key:o,index:t,split:m,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==a?void 0:a.styles)||void 0===r?void 0:r.item},e)}),N=tt.useMemo(()=>({latestIndex:M}),[M]);if(0===$.length)return null;let Z={};return b&&(Z.flexWrap="wrap"),!D&&S&&(Z.columnGap=w),!k&&E&&(Z.rowGap=C),j(tt.createElement("div",Object.assign({ref:t,className:T,style:Object.assign(Object.assign(Object.assign({},Z),null==a?void 0:a.style),g)},x),tt.createElement(vh,{value:N},P)))});vv.Compact=on.ZP;var vy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let vx=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=tt.useContext(ti.E_),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:u,htmlType:c,children:d,className:f,menu:p,arrow:h,autoFocus:m,overlay:g,trigger:b,align:v,open:y,onOpenChange:x,placement:w,getPopupContainer:C,href:k,icon:D=tt.createElement(bL.Z,null),title:E,buttonsRender:S=e=>e,mouseEnterDelay:$,mouseLeaveDelay:O,overlayClassName:F,overlayStyle:j,destroyPopupOnHide:A,dropdownRender:I}=e,T=vy(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),_=n("dropdown",o),M=`${_}-button`,P={menu:p,arrow:h,autoFocus:m,align:v,disabled:l,trigger:l?[]:b,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:$,mouseLeaveDelay:O,overlayClassName:F,overlayStyle:j,destroyPopupOnHide:A,dropdownRender:I},{compactSize:N,compactItemClassnames:Z}=(0,on.ri)(_,r),R=tr()(M,Z,f);"overlay"in e&&(P.overlay=g),"open"in e&&(P.open=y),"placement"in e?P.placement=w:P.placement="rtl"===r?"bottomLeft":"bottomRight";let[B,z]=S([tt.createElement(tg.ZP,{type:i,danger:a,disabled:l,loading:s,onClick:u,htmlType:c,href:k,title:E},d),tt.createElement(tg.ZP,{type:i,danger:a,icon:D})]);return tt.createElement(vv.Compact,Object.assign({className:R,size:N,block:!0},T),B,tt.createElement(vu,Object.assign({},P),z))};vx.__ANT_BUTTON=!0,vu.Button=vx;var vw=cW(function(e,t){var n=e.token,r=e.css,o=e.cx,i=e.prefixCls,a=t.type,l=t.direction,s=r(eV||(eV=tm(["\n background-color: ",";\n border: 1px solid ",";\n "])),"block"===a?n.colorFillTertiary:n.colorFillQuaternary,"block"===a?"transparent":n.colorBorder),u="".concat(i,"-").concat(n.editorPrefix,"-action-group");return{content:o("".concat(u,"-content"),r(eU||(eU=tm(["\n ",";\n width: fit-content;\n padding: ","px ","px;\n display: flex;\n flex-direction: ",";\n border-radius: ","px;\n align-items: center;\n "])),"pure"!==a&&s,n.padding/8,n.padding/8,l,n.borderRadius)),button:o("".concat(u,"-action-btn"),r(eq||(eq=tm(["\n box-shadow: none;\n border: none;\n background-color: transparent;\n &:hover {\n color: "," !important;\n }\n "])),n.colorIconHover))}}),vC=function(e){var t=e.type,n=e.direction,r=void 0===n?"row":n,o=e.size,i=e.className,a=e.style,l=e.render,s=e.dropdownMenu,u=e.items,c=void 0===u?[]:u,d=e.onClick,f=void 0===d?function(){}:d,p=e.dropdownProps,h=e.dropdownMenuTrigger,m=vw({direction:r,type:void 0===t?"block":t}),g=m.styles,b=m.cx;return(0,tk.jsxs)("div",{className:b(g.content,i),style:a,children:[(0,tk.jsx)(function(){var e=(0,tk.jsx)(tk.Fragment,{children:c.map(function(e,t){return(null==e?void 0:e.type)==="divider"?(0,tk.jsx)(oV,{type:"row"===r?"vertical":"horizontal",style:{margin:"".concat("row"===r?"0 4px":"4px 0")}},"action-divider-".concat(t)):(0,tk.jsx)(hR,(0,e9.Z)((0,e9.Z)({title:null==e?void 0:e.label,size:o},e),{},{onClick:function(){null!=e&&e.onClick&&(null==e||e.onClick()),f(null==e?void 0:e.key)}}),"action-btn-".concat(t))})});return l?l(c,s):e},{}),s&&(0,tk.jsx)(vu,(0,e9.Z)((0,e9.Z)({trigger:["click"]},p),{},{menu:{items:s.map(function(e){return null!=e&&e.type?e:(0,e9.Z)((0,e9.Z)({},e),{},{icon:e.icon})})},children:h||(0,tk.jsx)(hR,{icon:(0,tk.jsx)(bM,{}),size:o},"more")}))]})},vk=function(e){return(0,tk.jsx)(cX,{children:(0,tk.jsx)(vC,(0,e9.Z)({},e))})},vD=(0,tt.memo)(function(e){var t=e.type,n=e.items,r=void 0===n?[]:n,o=e.placement,i=e.spotlight,a=void 0!==i&&i,l=e.direction,s=void 0===l?"row":l,u=e.dropdownMenu,c=void 0===u?null:u,d=e.onActionClick,f=e.className,p=e.style,h=o||("column"===s?"right":"top"),m=null==c?void 0:c.map(function(e){return(0,e9.Z)((0,e9.Z)({},e),{},{icon:(0,tk.jsx)(tS,{icon:e.icon,size:"small"}),onClick:d?function(t){return d({item:e,key:t.key,keyPath:t.keyPath})}:void 0})});return(0,tk.jsx)(vk,{className:f,direction:s,type:void 0===t?"block":t,dropdownProps:{placement:h},style:p,dropdownMenu:m,render:function(){return(0,tk.jsxs)(tk.Fragment,{children:[a&&(0,tk.jsx)(bF,{}),(null==r?void 0:r.length)>0&&r.map(function(e){return(0,tk.jsx)(bT,{icon:e.icon,onClick:d?function(){return null==d?void 0:d({item:e,key:e.key,keyPath:[e.key]})}:void 0,placement:h,size:"small",title:e.label},e.key)})]})}})});let vE=ty("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),vS=ty("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]),v$=ty("PenSquare",[["path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1qinfi"}],["path",{d:"M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",key:"w2jsv5"}]]),vO=ty("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var vF=function(e){return{copy:{icon:vE,key:"copy",label:(null==e?void 0:e.copy)||"Copy"},del:{icon:vS,key:"del",label:(null==e?void 0:e.delete)||"Delete"},divider:{type:"divider",key:"divider"},edit:{icon:v$,key:"edit",label:(null==e?void 0:e.edit)||"Edit"},regenerate:{icon:vO,key:"regenerate",label:(null==e?void 0:e.regenerate)||"Regenerate"}}},vj=["text"],vA=(0,tt.memo)(function(e){var t=e.text,n=(0,te.Z)(e,vj),r=vF(t),o=r.regenerate,i=r.edit,a=r.copy,l=r.divider,s=r.del;return(0,tk.jsx)(vD,(0,e9.Z)({dropdownMenu:[i,a,o,l,s],items:[o,i],type:"ghost"},n))}),vI=["renderMessagesExtra","showTitle","onActionsClick","onMessageChange","originData","type","text","renderMessages","renderErrorMessages","renderActions","loading","groupNav","renderItems","chatItemRenderConfig","chatItemClassName","markdownProps"],vT=function(e){var t=e.renderMessagesExtra,n=e.showTitle,r=e.onActionsClick,o=e.onMessageChange,i=e.originData,a=e.type,l=e.text,s=e.renderMessages,u=e.renderErrorMessages,c=e.renderActions,d=e.loading,f=e.groupNav,p=e.renderItems,h=e.chatItemRenderConfig,m=e.chatItemClassName,g=e.markdownProps,b=(0,te.Z)(e,vI),v=(0,tt.useState)(!1),y=(0,th.Z)(v,2),x=y[0],w=y[1],C=tf.useApp().message,k=(0,tt.useMemo)(function(){var e;if(p&&null!=b&&b.role&&(null!=p&&p[b.role]&&(e=p[b.role]),!e&&null!=p&&p.default&&(e=p.default),e))return e},[null==p?void 0:p[b.role]]),D=bE(function(e){var t,n=e.editableContent,r=e.data;if(s&&null!=b&&b.role&&(null!=s&&s[b.role]&&(t=s[b.role]),!t&&null!=s&&s.default&&(t=s.default),t))return(0,tk.jsx)(t,(0,e9.Z)((0,e9.Z)({},r),{},{editableContent:n}))}),E=bE(function(e){var n,r=e.data;if(t&&null!=b&&b.role&&(null!=t&&t[b.role]&&(n=t[b.role]),null!=t&&t.default&&(n=t.default),n||n))return(0,tk.jsx)(n,(0,e9.Z)({},r))}),S=bE(function(e){var t,n,o=e.data;if(c&&null!=b&&b.role){null!=c&&c[b.role]&&(n=c[b.role]),null!=c&&c.default&&(n=c.default),n||(n=vA);var i=function(e,t){switch(e.key){case"copy":tU()(t.content),C.success((null==l?void 0:l.copySuccess)||"Copy Success");break;case"edit":w(!0)}null==r||r(e,t)};return{click:{onStartEdit:function(){return w(!0)},onFinishEdit:function(){return w(!1)},onClick:function(e){return null==i?void 0:i(e,o)}},components:(0,tk.jsx)(n,(0,e9.Z)((0,e9.Z)({},o),{},{onActionClick:function(e){return null==i?void 0:i(e,o)},text:l,actionsProps:null==h||null===(t=h.actionsProps)||void 0===t?void 0:t[b.role]}))}}}),$=(0,tt.useMemo)(function(){if(b.error)return b.error},[b.error]),O=(0,tt.useMemo)(function(){return(0,tk.jsx)(bD,{className:m,"data-id":b.id,actions:S({data:b}).components,actionsClick:S({data:b}).click,avatar:b.meta,avatarAddon:f,editing:x,originData:i,error:$,renderErrorMessages:u,loading:d,message:b.content,messageExtra:(0,tk.jsx)(E,{data:b}),onChange:function(e){return null==o?void 0:o(b.id,e)},onDoubleClick:function(e){"default"!==b.id&&!b.error&&b.role&&["assistant","user"].includes(b.role)&&e.altKey&&w(!0)},onEditingChange:w,placement:"chat"===a&&"user"===b.role?"right":"left",primary:"user"===b.role,renderMessage:function(e){return(0,tk.jsx)(D,{data:b,editableContent:e})},showTitle:n,text:l,time:b.updateAt||b.createAt,type:"chat"===a?"block":"pure",chatItemRenderConfig:h,markdownProps:g})},[e.content,e.loading,e.id,b.meta,b.error,b.updateAt||b.createAt,x]);return k?(0,tk.jsx)(k,(0,e9.Z)({},e),b.id):O};let v_=ty("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);var vM=["icon","children","size"],vP=(0,tw.kc)(function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(eG||(eG=tm(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(eX||(eX=tm(["\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),r.colorTextSecondary,r.colorFillSecondary,r.borderRadius,r.colorText,r.colorFill))}}),vN=(0,tt.memo)(function(e){var t=e.icon,n=e.children,r=e.size,o=(0,te.Z)(e,vM),i=vP(),a=i.styles,l=i.cx;return(0,tk.jsx)(mu,(0,e9.Z)((0,e9.Z)({bordered:!1,className:l(a.tag,"small"===(void 0===r?"default":r)&&a.small)},o),{},{children:(0,tk.jsxs)(tH,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}),vZ=(0,tt.memo)(function(e){var t=e.enable,n=e.text;return t?(0,tk.jsx)("div",{style:{padding:"0 20px"},children:(0,tk.jsx)(oV,{children:(0,tk.jsx)(vN,{icon:(0,tk.jsx)(tS,{icon:v_}),children:n||"History Message"})})}):null}),vR=n(66900),vB=n(95087),vz=n.n(vB),vL=function(e){(0,rm.Z)(n,e);var t=(0,vR.Z)(n);function n(){return(0,rc.Z)(this,n),t.apply(this,arguments)}return(0,rd.Z)(n,[{key:"shouldComponentUpdate",value:function(e){if(e.shouldUpdate)return e.shouldUpdate(this.props,e);try{return!vz()(this.props.content,null==e?void 0:e.content)||!vz()(this.props.loading,null==e?void 0:e.loading)||!vz()(this.props.chatItemRenderConfig,null==e?void 0:e.chatItemRenderConfig)||!vz()(this.props.meta,null==e?void 0:e.meta)}catch(e){return!0}}},{key:"render",value:function(){return this.props.children}}]),n}(tt.Component),vH=(0,tw.kc)(function(e){return{container:(0,e.css)(eK||(eK=tm(["\n position: relative;\n "])))}}),vW=["onActionsClick","renderMessagesExtra","className","data","type","text","showTitle","itemShouldUpdate","onMessageChange","renderMessages","renderErrorMessages","loadingId","renderItems","enableHistoryCount","renderActions","historyCount","chatItemRenderConfig","markdownProps"],vV=(0,tt.memo)(function(e){var t=e.onActionsClick,n=e.renderMessagesExtra,r=e.className,o=e.data,i=e.type,a=void 0===i?"chat":i,l=e.text,s=e.showTitle,u=e.itemShouldUpdate,c=e.onMessageChange,d=e.renderMessages,f=e.renderErrorMessages,p=e.loadingId,h=e.renderItems,m=e.enableHistoryCount,g=e.renderActions,b=e.historyCount,v=void 0===b?0:b,y=e.chatItemRenderConfig,x=e.markdownProps,w=(0,te.Z)(e,vW),C=vH(),k=C.cx,D=C.styles,E=(0,(0,tt.useContext)(tW.ZP.ConfigContext).getPrefixCls)("pro-chat");return(0,tk.jsx)("div",(0,e9.Z)((0,e9.Z)({className:k(D.container,"".concat(E,"-list"),r)},w),{},{children:o.map(function(e,r){var i={loading:p===e.id,onActionsClick:t,onMessageChange:c,renderActions:g,renderErrorMessages:f,renderItems:h,renderMessages:d,renderMessagesExtra:n,showTitle:s,text:l,type:a};console.log("renderItems",h);var b=o.length;return(0,tk.jsx)(vL,(0,e9.Z)((0,e9.Z)((0,e9.Z)({},i),e),{},{shouldUpdate:u,children:(0,tk.jsxs)(tt.Fragment,{children:[(0,tk.jsx)(vZ,{enable:m&&b>v&&v===b-r+1,text:null==l?void 0:l.history}),(0,tk.jsx)(vT,(0,e9.Z)((0,e9.Z)((0,e9.Z)({},i),e),{},{originData:e,chatItemRenderConfig:y,markdownProps:x}))]})}),e.id)})}))}),vU=n(28943);let{useDebugValue:vq}=tt,{useSyncExternalStoreWithSelector:vG}=vU,vX=e=>e;var vK=(m=(0,tt.createContext)(void 0),{Provider:function(e){var t=e.createStore,n=e.children,r=(0,tt.useRef)();return r.current||(r.current=t()),(0,tt.createElement)(m.Provider,{value:r.current},n)},useStore:function(e,t){var n=(0,tt.useContext)(m);if(!n)throw Error("Seems like you have not used zustand provider as an ancestor.");return function(e,t=vX,n){let r=vG(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return vq(r),r}(n,e,t)},useStoreApi:function(){var e=(0,tt.useContext)(m);if(!e)throw Error("Seems like you have not used zustand provider as an ancestor.");return e}}),vY=vK.useStore,vJ=vK.useStoreApi,vQ=vK.Provider,v0=n(63664);function v1(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,v0.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var v2={placeholder:"Please enter a message...",backToBottom:"Back to bottom",clearCurrentDialogue:"Clear current dialogue",clearDialogue:"Clear dialogue",clearModalTitle:"You are about to clear the session, and you will not be able to retrieve it after clearing. Do you want to clear the current session?",defaultHelloMessage:"Let us start chatting",cancel:"Cancel",confirm:"Confirm",copy:"Copy",copySuccess:"Copy Success",delete:"Delete",edit:"Edit",history:"History",regenerate:"Regenerate"},v5={"en-US":v2,"zh-CN":{placeholder:"请输入消息...",backToBottom:"返回底部",clearCurrentDialogue:"清空当前对话",clearDialogue:"清空对话",clearModalTitle:"你即将要清空会话,清空后将无法找回。是否清空当前会话?",defaultHelloMessage:"让我们开始对话吧",cancel:"取消",confirm:"确认",copy:"复制",copySuccess:"复制成功",delete:"删除",edit:"编辑",history:"历史范围",regenerate:"重新生成"},"zh-HK":{placeholder:"請輸入訊息...",backToBottom:"回到底部",clearCurrentDialogue:"清除當前對話",clearDialogue:"清除對話",clearModalTitle:"您即將清除會話,清除後將無法恢復。您確定要清除當前會話嗎?",defaultHelloMessage:"讓我們開始聊天吧",cancel:"取消",confirm:"確認",copy:"複製",copySuccess:"複製成功",delete:"刪除",edit:"編輯",history:"歷史",regenerate:"重新生成"},"cs-CZ":{placeholder:"Zadejte zpr\xe1vu...",backToBottom:"Zpět na konec",clearCurrentDialogue:"Vymazat aktu\xe1ln\xed dialog",clearDialogue:"Vymazat dialog",clearModalTitle:"Chyst\xe1te se vymazat relaci a po vymaz\xe1n\xed ji nebude možn\xe9 obnovit. Chcete vymazat aktu\xe1ln\xed relaci?",defaultHelloMessage:"Začněme si pov\xeddat",cancel:"Zrušit",confirm:"Potvrdit",copy:"Kop\xedrovat",copySuccess:"Kop\xedrov\xe1n\xed \xfaspěšn\xe9",delete:"Smazat",edit:"Upravit",history:"Historie",regenerate:"Znovu vygenerovat"},"de-DE":{placeholder:"Bitte geben Sie eine Nachricht ein...",backToBottom:"Zur\xfcck nach unten",clearCurrentDialogue:"Aktuellen Dialog l\xf6schen",clearDialogue:"Dialog l\xf6schen",clearModalTitle:"Sie sind dabei, die Sitzung zu l\xf6schen, und Sie k\xf6nnen sie nach dem L\xf6schen nicht wiederherstellen. M\xf6chten Sie die aktuelle Sitzung l\xf6schen?",defaultHelloMessage:"Lassen Sie uns chatten",cancel:"Abbrechen",confirm:"Best\xe4tigen",copy:"Kopieren",copySuccess:"Kopieren erfolgreich",delete:"L\xf6schen",edit:"Bearbeiten",history:"Verlauf",regenerate:"Neu generieren"},"hu-HU":{placeholder:"K\xe9rj\xfck, \xedrjon be egy \xfczenetet...",backToBottom:"Vissza az alj\xe1ra",clearCurrentDialogue:"Aktu\xe1lis p\xe1rbesz\xe9d t\xf6rl\xe9se",clearDialogue:"P\xe1rbesz\xe9d t\xf6rl\xe9se",clearModalTitle:"\xd6n \xe9ppen t\xf6r\xf6lni k\xe9sz\xfcl a munkamenetet, \xe9s a t\xf6rl\xe9s ut\xe1n nem tudja vissza\xe1ll\xedtani. Biztosan t\xf6r\xf6lni szeretn\xe9 az aktu\xe1lis munkamenetet?",defaultHelloMessage:"Kezdj\xfcnk el besz\xe9lgetni",cancel:"M\xe9gse",confirm:"Megerős\xedt",copy:"M\xe1sol\xe1s",copySuccess:"M\xe1sol\xe1s sikeres",delete:"T\xf6rl\xe9s",edit:"Szerkeszt\xe9s",history:"Előzm\xe9nyek",regenerate:"\xdajragener\xe1l\xe1s"},"pl-PL":{placeholder:"Proszę wpisać wiadomość...",backToBottom:"Powr\xf3t na d\xf3ł",clearCurrentDialogue:"Wyczyść bieżący dialog",clearDialogue:"Wyczyść dialog",clearModalTitle:"Zamierzasz wyczyścić sesję i nie będziesz m\xf3gł jej odzyskać po wyczyszczeniu. Czy chcesz wyczyścić bieżącą sesję?",defaultHelloMessage:"Zacznijmy rozmawiać",cancel:"Anuluj",confirm:"Potwierdź",copy:"Kopiuj",copySuccess:"Kopiowanie zakończone sukcesem",delete:"Usuń",edit:"Edytuj",history:"Historia",regenerate:"Wygeneruj ponownie"},"sk-SK":{placeholder:"Zadajte spr\xe1vu...",backToBottom:"Sp\xe4ť na koniec",clearCurrentDialogue:"Vymazať aktu\xe1lny dial\xf3g",clearDialogue:"Vymazať dial\xf3g",clearModalTitle:"Chyst\xe1te sa vymazať rel\xe1ciu a po vymazan\xed ju nebude možn\xe9 obnoviť. Chcete vymazať aktu\xe1lnu rel\xe1ciu?",defaultHelloMessage:"Začnime si rozpr\xe1vať",cancel:"Zrušiť",confirm:"Potvrdiť",copy:"Kop\xedrovať",copySuccess:"Kop\xedrovanie \xfaspešn\xe9",delete:"Vymazať",edit:"Upraviť",history:"Hist\xf3ria",regenerate:"Znovu vygenerovať"},en:v2},v3=function(e){return v5[e]||v5["zh-CN"]},v6=function(e,t){return t.enableHistoryCount&&t.historyCount?e.reverse().slice(0,t.historyCount).reverse():e},v4=["avatar","title","backgroundColor"],v8=function(e){if(0===Object.keys(e.chats).length)return[];var t,n=function(t){var n=e.userMeta,r=n.avatar,o=n.title,i=(n.backgroundColor,(0,te.Z)(n,v4)),a=e.assistantMeta;switch(null==t?void 0:t.role){case"user":return(0,e9.Z)({avatar:r,title:o},i);case"system":return a;case"assistant":return{avatar:null==a?void 0:a.avatar,backgroundColor:null==a?void 0:a.backgroundColor,title:null==a?void 0:a.title,className:null==a?void 0:a.className}}return(0,e9.Z)({},t)},r=e.chats.map(function(e){return(0,e9.Z)((0,e9.Z)({},e),{},{meta:n(e)})}),o=[],i=function(e){o.findIndex(function(t){return e.id===t.id})>-1||o.push(e)},a=v1(r);try{for(a.s();!(t=a.n()).done;){var l=t.value;i(l);var s,u=v1(r);try{for(u.s();!(s=u.n()).done;){var c=s.value;c.parentId===l.id&&i(c)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){a.e(e)}finally{a.f()}return o},v7=function(e){return v6(v8(e),e.config)},v9={chatsMessageString:function(e){return v7(e).map(function(e){return e.content}).join("")},currentChats:v8,currentChatsWithGuideMessage:function(e){var t,n=v8(e);return 0!==n.length?n:[(0,e9.Z)({content:null!==(t=e.helloMessage)&&void 0!==t?t:v3(e.locale).defaultHelloMessage,createAt:Date.now(),extra:{},id:"default",meta:e.assistantMeta,role:"hello",updateAt:Date.now()},n)]},currentChatsWithHistoryConfig:v7},ye=function(){var e=vY(function(e){return e.locale}),t=(0,tt.useMemo)(function(){return v3(e)},[e]);return{locale:e,localeObject:t}},yt=function(e){var t,n,r=e.dropdownMenu,o=e.items,i=e.actionsProps;return i?{dropdownMenu:(null==i||null===(t=i.moreActions)||void 0===t?void 0:t.map(function(e){return r.find(function(t){return t.key===e})}).filter(function(e){return!!e}))||[],items:(null==i||null===(n=i.actions)||void 0===n?void 0:n.map(function(e){return o.find(function(t){return t.key===e})}).filter(function(e){return!!e&&"divider"!==e.key}))||[]}:{dropdownMenu:r,items:o}},yn=(0,tt.memo)(function(e){var t=e.text,n=e.onActionClick,r=e.actionsProps,o=vF(t),i=yt({dropdownMenu:[],items:[o.regenerate,o.del],actionsProps:r}).items;return(0,tk.jsx)(vD,{items:i,onActionClick:n,type:"ghost"})}),yr=(0,tt.memo)(function(e){var t=e.text,n=e.id,r=e.onActionClick,o=e.error,i=e.actionsProps,a=vF(t),l=a.regenerate,s=a.edit,u=a.copy,c=yt({dropdownMenu:[s,u,l,a.divider,a.del],items:[l,u],actionsProps:i}),d=c.dropdownMenu,f=c.items;if("default"!==n)return o?(0,tk.jsx)(yn,{onActionClick:r,text:t}):(0,tk.jsx)(vD,{dropdownMenu:d,items:f,onActionClick:r,type:"ghost"})}),yo=(0,tt.memo)(function(e){var t=e.text,n=e.onActionClick,r=e.actionsProps,o=yt({dropdownMenu:[vF(t).del],items:[],actionsProps:r}),i=o.dropdownMenu,a=o.items;return(0,tk.jsx)(vD,{dropdownMenu:i,items:a,onActionClick:n,type:"ghost"})}),yi={assistant:yr,function:(0,tt.memo)(function(e){var t=e.text,n=e.onActionClick,r=e.actionsProps,o=vF(t),i=o.regenerate,a=yt({dropdownMenu:[i,o.divider,o.del],items:[i],actionsProps:r}),l=a.dropdownMenu,s=a.items;return(0,tk.jsx)(vD,{dropdownMenu:l,items:s,onActionClick:n,type:"ghost"})}),system:yo,user:(0,tt.memo)(function(e){var t=e.text,n=e.onActionClick,r=e.actionsProps,o=vF(t),i=o.regenerate,a=o.edit,l=yt({dropdownMenu:[a,o.copy,i,o.divider,o.del],items:[i,a],actionsProps:r}),s=l.dropdownMenu,u=l.items;return(0,tk.jsx)(vD,{dropdownMenu:s,items:u,onActionClick:n,type:"ghost"})}),hello:function(){}},ya=["extra"],yl=(0,tt.memo)(function(e){var t=e.extra,n=(0,te.Z)(e,ya),r=vY(function(e){return[e.config.model,e.messageItemExtraRender]}),o=(0,th.Z)(r,2),i=o[0],a=o[1],l=(null==t?void 0:t.fromModel)&&i!==(null==t?void 0:t.fromModel),s=!!(null!=t&&t.translate),u=l||s,c=null==a?void 0:a((0,e9.Z)({extra:t},n),"assistant");if(u||c)return(0,tk.jsxs)(tH,{gap:8,style:{marginTop:8},children:[l&&(0,tk.jsx)("div",{children:(0,tk.jsx)(vN,{children:null==t?void 0:t.fromModel})}),c]})}),ys=["extra"],yu={assistant:yl,user:(0,tt.memo)(function(e){var t=e.extra,n=(0,te.Z)(e,ys),r=!!(null!=t&&t.translate),o=vY(function(e){return[e.messageItemExtraRender]}),i=(0,th.Z)(o,1)[0],a=null==i?void 0:i((0,e9.Z)({extra:t},n),"user");if(a)return(0,tk.jsxs)(tH,{gap:8,style:{marginTop:r?8:0},children:[(null==t?void 0:t.translate)&&(0,tk.jsx)("div",{children:(0,tk.jsx)(oV,{style:{margin:"12px 0"}})}),a]})})},yc=function(){return(0,tk.jsxs)("svg",{viewBox:"0 0 32 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,tk.jsx)("circle",{cx:"0",cy:"12",r:"0",transform:"translate(8 0)",children:(0,tk.jsx)("animate",{attributeName:"r",begin:"0",calcMode:"spline",dur:"1.2s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8",keyTimes:"0;0.2;0.7;1",repeatCount:"indefinite",values:"0; 4; 0; 0"})}),(0,tk.jsx)("circle",{cx:"0",cy:"12",r:"0",transform:"translate(16 0)",children:(0,tk.jsx)("animate",{attributeName:"r",begin:"0.3",calcMode:"spline",dur:"1.2s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8",keyTimes:"0;0.2;0.7;1",repeatCount:"indefinite",values:"0; 4; 0; 0"})}),(0,tk.jsx)("circle",{cx:"0",cy:"12",r:"0",transform:"translate(24 0)",children:(0,tk.jsx)("animate",{attributeName:"r",begin:"0.6",calcMode:"spline",dur:"1.2s",keySplines:"0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8",keyTimes:"0;0.2;0.7;1",repeatCount:"indefinite",values:"0; 4; 0; 0"})})]})},yd=function(){var e=(0,tw.Fg)().colorTextTertiary;return(0,tk.jsx)("div",{style:{fill:e,height:24,width:32},children:(0,tk.jsx)(yc,{})})},yf=(0,tt.memo)(function(e){var t=e.id,n=e.editableContent;return"..."===e.content?(0,tk.jsx)(yd,{}):(0,tk.jsx)("div",{id:t,children:n})}),yp=["id","content"],yh=(0,tt.memo)(function(e){var t=e.id,n=e.content,r=(0,te.Z)(e,yp);return(0,tk.jsx)(yf,(0,e9.Z)({content:n,id:t},r))}),ym={hello:(0,tt.memo)(function(e){var t=e.content;return"string"==typeof t?(0,tk.jsx)(yf,(0,e9.Z)({},e)):t}),assistant:yh,default:yf},yg=n(98910),yb=(0,tw.kc)(function(e){var t=e.css,n=e.prefixCls;return{user:t(eY||(eY=tm(["\n display: flex;\n flex-direction: row-reverse;\n gap: 16px;\n\n .","-skeleton-paragraph {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n }\n "])),n)}}),yv=(0,tt.memo)(function(){var e=yb().styles;return(0,tk.jsxs)(tH,{gap:24,padding:12,style:{marginTop:24},children:[(0,tk.jsx)(yg.Z,{active:!0,avatar:{size:40},className:e.user,paragraph:{width:["50%","30%"]},title:!1}),(0,tk.jsx)(yg.Z,{active:!0,avatar:{size:40},paragraph:{width:["50%","30%"]},title:!1})]})}),yy=(0,tt.memo)(function(e){var t=e.showTitle,n=e.itemShouldUpdate,r=e.chatItemRenderConfig,o=e.renderErrorMessages,i=e.markdownProps,a=vY(v9.currentChatsWithGuideMessage,vz()),l=ye().localeObject,s=vY(function(e){return e.locale}),u=vY(function(e){var t=e.config;return[e.init,e.displayMode,t.enableHistoryCount,t.historyCount,e.chatLoadingId,e.deleteMessage,e.resendMessage,e.dispatchMessage]}),c=(0,th.Z)(u,8),d=c[0],f=c[1],p=c[2],h=c[3],m=c[4],g=c[5],b=c[6],v=c[7],y=bE(function(e,t){var n,o,i,a,l=t.id,s=t.error;switch(e.key){case"del":null==r||null===(n=r.actionsCallbacks)||void 0===n||null===(o=n.beforeDelFinished)||void 0===o||o.call(n,l),g(l);break;case"regenerate":b(l),s&&g(l),null==r||null===(i=r.actionsCallbacks)||void 0===i||null===(a=i.onRegenerateFinished)||void 0===a||a.call(i,l,s)}}),x=bE(function(e,t){var n,o;v({id:e,key:"content",type:"updateMessage",value:t}),null==r||null===(n=r.actionsCallbacks)||void 0===n||null===(o=n.onEditFinished)||void 0===o||o.call(n,e,t)}),w=(0,tt.useMemo)(function(){return{cancel:l.cancel,confirm:l.confirm,copy:l.copy,copySuccess:l.copySuccess,delete:l.delete,edit:l.edit,history:l.history,regenerate:l.regenerate}},[s]);return d?(0,tk.jsx)(vV,{showTitle:t,data:a,itemShouldUpdate:n,enableHistoryCount:p,historyCount:h,loadingId:m,onActionsClick:y,onMessageChange:x,renderActions:yi,renderMessages:ym,renderErrorMessages:o,renderMessagesExtra:yu,style:{marginTop:24},chatItemRenderConfig:r,text:w,type:f||"chat",markdownProps:i}):(0,tk.jsx)(yv,{})}),yx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},yw=tt.forwardRef(function(e,t){return tt.createElement(og.Z,(0,np.Z)({},e,{ref:t,icon:yx}))}),yC=n(54644);let yk=ty("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var yD=(0,tw.kc)(function(e){var t=e.css,n=e.token;return{extra:t(eJ||(eJ=tm(["\n color: ",";\n "])),n.colorTextTertiary)}}),yE=function(e){var t,n=e.className,r=vY(function(e){var t,n;return[e.clearMessage,null===(t=e.actions)||void 0===t?void 0:t.render,null===(n=e.actions)||void 0===n?void 0:n.flexConfig]}),o=(0,th.Z)(r,3),i=o[0],a=o[1],l=o[2],s=ye().localeObject,u=yD(),c=u.styles,d=u.theme,f=[(0,tk.jsx)(yC.Z,{title:s.clearModalTitle,okButtonProps:{danger:!0},okText:s.clearDialogue,cancelText:s.cancel,onConfirm:function(){i()},children:(0,tk.jsx)(bT,{title:s.clearCurrentDialogue,icon:yk})},"clear")];return(0,tk.jsx)(tW.ZP,{theme:{token:{colorText:d.colorTextSecondary}},children:(0,tk.jsx)(tH,(0,e9.Z)((0,e9.Z)({align:"center",direction:"horizontal-reverse",paddingInline:12,className:(0,tw.cx)(c.extra,n),gap:8},l),{},{children:null!==(t=null==a?void 0:a(f))&&void 0!==t?t:f}))})};let{Option:yS}=g9;function y$(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}let yO=tt.forwardRef((e,t)=>{var n;let r,o;let{prefixCls:i,className:a,popupClassName:l,dropdownClassName:s,children:u,dataSource:c}=e,d=(0,ni.Z)(u);1===d.length&&tt.isValidElement(d[0])&&!y$(d[0])&&([r]=d);let f=r?()=>r:void 0;o=d.length&&y$(d[0])?u:c?c.map(e=>{if(tt.isValidElement(e))return e;switch(typeof e){case"string":return tt.createElement(yS,{key:e,value:e},e);case"object":{let{value:t}=e;return tt.createElement(yS,{key:t,value:t},e.text)}default:return}}):[];let{getPrefixCls:p}=tt.useContext(ti.E_),h=p("select",i),[m]=(0,gy.Cn)("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return tt.createElement(g9,Object.assign({ref:t,suffixIcon:null},(0,r1.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:h,popupClassName:l||s,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:m}),className:tr()(`${h}-auto-complete`,a),mode:g9.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:f}),o)}),yF=(0,gx.Z)(yO,void 0,void 0,e=>(0,r1.Z)(e,["visible"]));yO.Option=yS,yO._InternalPanelDoNotUseOrYouWillBeFired=yF;var yj=["disabled","autoCompleteProps"],yA=tt.forwardRef(function(e,t){var n,r=vY(function(e){return[e.autocompleteRequest]}),o=(0,th.Z)(r,1)[0],i=e.disabled,a=e.autoCompleteProps,l=(0,te.Z)(e,yj),s=(0,tt.useState)([]),u=(0,th.Z)(s,2),c=u[0],d=u[1],f=(0,tt.useState)(!1),p=(0,th.Z)(f,2),h=p[0],m=p[1];return(0,tk.jsx)(yO,(0,e9.Z)((0,e9.Z)({className:e.className,options:c,style:{height:"max-content"},disabled:i,open:h,onDropdownVisibleChange:function(e){m(e)},value:e.value,onSelect:function(t){var n;null===(n=e.onChange)||void 0===n||n.call(e,{target:{value:t}}),d([])},onSearch:(n=(0,c6.Z)((0,c3.Z)().mark(function e(t){return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null==o?void 0:o(t);case 2:d(e.sent||[]);case 4:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},void 0===a?{}:a),{},{children:(0,tk.jsx)(oi.TextArea,(0,e9.Z)((0,e9.Z)({size:"large"},l),{},{ref:t,disabled:i,className:"".concat(e.className,"-textarea"),onFocus:function(t){var n;m(!1),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onPressEnter:function(t){var n;h&&c.length>0||null===(n=e.onPressEnter)||void 0===n||n.call(e,t)}}))}))}),yI=(0,tt.memo)(function(){var e=(0,tw.Fg)();return(0,tk.jsx)("svg",{className:"anticon",color:"currentColor",height:16,viewBox:"0 0 1024 1024",width:16,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,tk.jsxs)("g",{fill:"none",children:[(0,tk.jsx)("circle",{cx:"512",cy:"512",fill:"none",r:"426",stroke:e.colorBorder,strokeWidth:"72"}),(0,tk.jsx)("rect",{fill:"currentColor",height:"252",rx:"24",ry:"24",width:"252",x:"386",y:"386"}),(0,tk.jsx)("path",{d:"M938.667 512C938.667 276.359 747.64 85.333 512 85.333",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"73",children:(0,tk.jsx)("animateTransform",{attributeName:"transform",dur:"1s",from:"0 512 512",repeatCount:"indefinite",to:"360 512 512",type:"rotate"})})]})})}),yT=(0,tw.kc)(function(e){var t=e.css,n=e.responsive,r=e.token;return{container:t(eQ||(eQ=tm(["\n position: sticky;\n z-index: ",";\n bottom: 0;\n\n padding-top: 12px;\n padding-bottom: 24px;\n\n background-image: linear-gradient(to top, "," 88%, transparent 100%);\n\n "," {\n width: 100%;\n }\n "])),r.zIndexPopupBase,r.colorBgLayout,n.mobile),boxShadow:t(e0||(e0=tm(["\n position: relative;\n border-radius: 8px;\n box-shadow: ",";\n "])),r.boxShadowSecondary),input:t(e1||(e1=tm(["\n width: 100%;\n border: none;\n outline: none;\n border-radius: 8px;\n "]))),btn:t(e2||(e2=tm(["\n position: absolute;\n z-index: 10;\n right: 8px;\n bottom: 6px;\n\n color: ",";\n &:hover {\n color: ",";\n }\n "])),r.colorTextTertiary,r.colorTextSecondary),extra:t(e5||(e5=tm(["\n color: ",";\n "])),r.colorTextTertiary)}}),y_=function(e){var t,n=e||{},r=n.className,o=n.onSend,i=n.inputAreaRender,a=n.inputRender,l=n.sendButtonRender,s=vY(function(e){return[e.sendMessage,!!e.chatLoadingId,e.placeholder,e.inputAreaProps,e.clearMessage,e.stopGenerateMessage]}),u=(0,th.Z)(s,6),c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],m=u[5],g=(0,tt.useContext)(tW.ZP.ConfigContext).getPrefixCls,b=(0,tt.useRef)(!1),v=yT(),y=v.styles,x=v.theme,w=ye().localeObject,C=p||{},k=C.value,D=C.onChange,E=(0,tt.useState)(""),S=(0,th.Z)(E,2),$=S[0],O=S[1];(0,tt.useEffect)(function(){!b.current&&D&&D($)},[$]),(0,tt.useEffect)(function(){k&&O(k)},[k]);var F=(t=(0,c6.Z)((0,c3.Z)().mark(function e(){return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=7;break}return e.next=3,o($);case 3:e.sent&&(c($),O("")),e.next=9;break;case 7:c($),O("");case 9:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),j=g("pro-chat-input-area"),A=(0,e9.Z)((0,e9.Z)({placeholder:f||w.placeholder},p),{},{className:(0,tw.cx)(y.input,null==p?void 0:p.className,"".concat(j,"-component")),value:$,onChange:function(e){O(e.target.value)},autoSize:{maxRows:8},onCompositionStart:function(){b.current=!0},onCompositionEnd:function(e){b.current=!1,O(e.target.value)},onPressEnter:function(e){d?e.shiftKey||e.preventDefault():e.shiftKey||b.current||(e.preventDefault(),F())}}),I=(0,tk.jsx)(yA,(0,e9.Z)({},A)),T=a?null==a?void 0:a(I,function(e){c(e)},A):I,_=(0,tt.useMemo)(function(){return d?{type:"text",className:y.btn,onClick:function(){return m()},icon:(0,tk.jsx)(yI,{})}:{type:"text",className:y.btn,onClick:function(){return F()},icon:(0,tk.jsx)(yw,{})}},[d,$]),M=(0,tk.jsx)(tg.ZP,(0,e9.Z)({},_)),P=l?l(M,_):M,N=(0,tk.jsx)(tW.ZP,{theme:{token:{borderRadius:4,colorBgContainer:x.colorBgElevated,controlHeightLG:48,colorBorder:"transparent",colorPrimaryHover:"transparent"}},children:(0,tk.jsxs)(tH,{gap:8,padding:16,className:(0,tw.cx)(y.container,"".concat(j),r),children:[(0,tk.jsx)(yE,{className:"".concat(j,"-action-bar")}),(0,tk.jsxs)(tH,{horizontal:!0,gap:8,align:"center",className:(0,tw.cx)(y.boxShadow,"".concat(j,"-text-container")),children:[T,P]})]})});return i?i(N,function(e){c(e)},h):N},yM=Object.defineProperty,yP=new Map,yN=new WeakMap,yZ=0,yR=void 0;tt.Component;var yB=(0,tt.memo)(function(e){var t=e.target,n=vY(function(e){return!!e.chatLoadingId}),r=vY(v9.currentChats),o=(0,tt.useState)(!1),i=(0,th.Z)(o,2),a=i[0],l=i[1];(0,tt.useEffect)(function(){l(!0)},[]);var s=(0,tt.useMemo)(function(){return t.current?t.current:document.body},[a]),u=(0,tt.useState)(0),c=(0,th.Z)(u,2),d=c[0],f=c[1];(0,tt.useEffect)(function(){a&&f(window.innerHeight/3>100?100:window.innerHeight/4)},[a]);var p=function(){var e;let{threshold:t,delay:n,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:l,initialInView:s,fallbackInView:u,onChange:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[d,f]=tt.useState(null),p=tt.useRef(c),[h,m]=tt.useState({inView:!!s,entry:void 0});p.current=c,tt.useEffect(()=>{let e;if(!l&&d)return e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:yR;if(void 0===window.IntersectionObserver&&void 0!==r){let o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:o,observer:i,elements:a}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return"".concat(t,"_").concat("root"===t?(n=e.root)?(yN.has(n)||(yZ+=1,yN.set(n,yZ.toString())),yN.get(n)):"0":e[t])}).toString(),n=yP.get(t);if(!n){let r;let o=new Map,i=new IntersectionObserver(t=>{t.forEach(t=>{var n;let i=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach(e=>{e(i,t)})})},e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},yP.set(t,n)}return n}(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),yP.delete(o))}}(d,(t,n)=>{m({inView:t,entry:n}),p.current&&p.current(t,n),n.isIntersecting&&a&&e&&(e(),e=void 0)},{root:i,rootMargin:o,threshold:t,trackVisibility:r,delay:n},u),()=>{e&&e()}},[Array.isArray(t)?t.toString():t,d,i,o,a,l,r,u,n]);let g=null==(e=h.entry)?void 0:e.target,b=tt.useRef(void 0);d||!g||a||l||b.current===g||(b.current=g,m({inView:!!s,entry:void 0}));let v=[f,h.inView,h.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}({root:t.current,delay:100,rootMargin:"0px 0px ".concat(d,"px 0px"),trackVisibility:n}),h=p.ref,m=p.entry,g=p.inView;return(0,tt.useEffect)(function(){n&&g&&(null==s||s.scrollTo({behavior:"smooth",left:0,top:(null==s?void 0:s.scrollHeight)||99999}))},[g,m,n,r]),(0,tk.jsx)("div",{ref:h,style:{height:1,width:"100%"}})}),yz=(0,tw.kc)(function(e){var t=e.token,n=e.prefixCls,r=e.cx,o="".concat(n,"-pro-chat");return{container:r(o,(0,tw.iv)(e3||(e3=tm(["\n line-height: 1;\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n ."," {\n code {\n font-family: "," !important;\n\n span {\n font-family: "," !important;\n }\n }\n\n p {\n word-wrap: break-word;\n }\n\n *::selection {\n color: #000;\n background: ",";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n box-sizing: border-box;\n vertical-align: baseline;\n }\n }\n"])),o,t.fontFamilyCode,t.fontFamilyCode,t.blue3))}}),yL=(0,tw.kc)(function(e){var t=e.css,n=e.responsive,r=e.stylish;return t(e6||(e6=tm(["\n overflow: hidden scroll;\n height: 100%;\n "," {\n ","\n width: 100%;\n }\n "])),null==n?void 0:n.mobile,null==r?void 0:r.noScrollbar)}),yH=(0,tt.memo)(function(e){var t,n=e.renderInputArea,r=e.inputAreaRender,o=e.className,i=e.style,a=e.showTitle,l=e.chatRef,s=e.itemShouldUpdate,u=e.inputRender,c=e.chatItemRenderConfig,d=e.backToBottomConfig,f=e.renderErrorMessages,p=e.sendButtonRender,h=e.onScroll,m=e.markdownProps,g=(0,tt.useRef)(null),b=(0,tt.useRef)(null),v=yL(),y=v.styles,x=v.cx,w=yz().styles,C=(0,tt.useState)(!1),k=(0,th.Z)(C,2),D=k[0],E=k[1],S=(0,tt.useState)("100%"),$=(0,th.Z)(S,2),O=$[0],F=$[1],j=(0,tt.useContext)(tW.ZP.ConfigContext).getPrefixCls,A=ye().localeObject,I=vY(v9.currentChats),T=(0,tt.useState)((null==I?void 0:I.length)>0),_=(0,th.Z)(T,2),M=_[0],P=_[1];(0,tt.useEffect)(function(){E(!0),null!=l&&l.current&&(l.current.scrollToBottom=function(){var e,t;null==g||null===(e=g.current)||void 0===e||e.scrollTo({behavior:"smooth",left:0,top:(null===(t=g.current)||void 0===t?void 0:t.scrollHeight)||99999})})},[]),(0,tt.useEffect)(function(){P((null==I?void 0:I.length)>0)},[I]);var N=j("pro-chat");return(0,tk.jsx)(tF.Z,{onResize:function(e){((0,tp.Z)(O)!==(0,tp.Z)(e.height)||"string"==typeof O&&"string"==typeof e.height&&e.height!==O)&&F(e.height)},children:(0,tk.jsxs)(tH,{className:x(w.container,o,"".concat(N,"-container")),style:(0,e9.Z)({maxHeight:"100vh",height:"100%"},i),children:[(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsxs)("div",{ref:g,className:x("".concat(N,"-chat-list-container"),y),style:{height:O-((null===(t=b.current)||void 0===t?void 0:t.clientHeight)||0)||"100%"},children:[(0,tk.jsx)(yy,{showTitle:a,itemShouldUpdate:s,chatItemRenderConfig:c,markdownProps:m,renderErrorMessages:f}),(null==g?void 0:g.current)&&(0,tk.jsx)(yB,{target:g})]}),D&&M&&null!=g&&g.current?(0,tk.jsx)(tO,(0,e9.Z)({style:{bottom:138},onScroll:h,target:g,text:A.backToBottom},d)):null]}),null!==n&&null!==r&&(0,tk.jsx)("div",{ref:b,children:(0,tk.jsx)(y_,{sendButtonRender:p,inputAreaRender:r||n,inputRender:u})})]})})}),yW=function(){var e=vJ(),t=e.getState(),n=t.resendMessage,r=t.sendMessage,o=t.stopGenerateMessage,i=t.deleteMessage,a=t.clearMessage,l=t.dispatchMessage,s=t.getChatLoadingId,u=bE(function(){return e.getState().chats}),c=bE(function(e){return l((0,e9.Z)((0,e9.Z)({},e),{},{type:"addMessage",message:null==e?void 0:e.content}))}),d=bE(function(e,t){return l((0,e9.Z)((0,e9.Z)({},t),{},{type:"updateMessage",id:e,value:null==t?void 0:t.content}))}),f=bE(function(){return v9.currentChats(e.getState())}),p=bE(function(e,t){l({type:"updateMessage",id:e,key:"content",value:t})}),h=bE(function(e,t,n){l({type:"updateMessage",id:e,key:t,value:n})}),m=bE(function(t){return e.getState().chats.find(function(e){return e.id===t})});return(0,tt.useMemo)(function(){return{getChatById:m,getChats:u,pushChat:c,setChat:d,getChatMessages:f,resendMessage:n,sendMessage:r,getChatLoadingId:s,stopGenerateMessage:o,deleteMessage:i,clearMessage:a,setMessageContent:p,setMessageValue:h}},[])},yV=(0,tt.memo)(function(e){var t,n=e.init,r=e.onChatsChange,o=e.chatRef,i=e.request,a=e.userMeta,l=e.assistantMeta,s=e.helloMessage,u=e.transformToChatMessage,c=e.actions,d=e.inputAreaProps,f=e.chats,p=e.config,h=e.locale,m=(t=vJ(),function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[n],o=arguments.length>3?arguments[3]:void 0,i=null!=o?o:t.setState;(0,tt.useEffect)(function(){if(void 0!==n){var r,o=null===(r=t.getState)||void 0===r?void 0:r.call(t);vz()(null==o?void 0:o[e],n)||i((0,tj.Z)({},e,n),!1,{type:"\uD83D\uDCAD useStoreUpdater / ".concat(e),payload:n})}},r)});m("init",n),m("userMeta",a),m("assistantMeta",l),m("inputAreaProps",d),m("helloMessage",s),m("config",p),m("transformToChatMessage",u),m("actions",c),m("chats",f),m("onChatsChange",r),m("request",i),m("locale",h);var g=yW();return(0,tt.useImperativeHandle)(o,function(){return g}),null}),yU=function(e,t){return e===t||e!=e&&t!=t},yq=function(e,t){for(var n=e.length;n--;)if(yU(e[n][0],t))return n;return -1},yG=Array.prototype.splice;function yX(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yX.prototype.clear=function(){this.__data__=[],this.size=0},yX.prototype.delete=function(e){var t=this.__data__,n=yq(t,e);return!(n<0)&&(n==t.length-1?t.pop():yG.call(t,n,1),--this.size,!0)},yX.prototype.get=function(e){var t=this.__data__,n=yq(t,e);return n<0?void 0:t[n][1]},yX.prototype.has=function(e){return yq(this.__data__,e)>-1},yX.prototype.set=function(e,t){var n=this.__data__,r=yq(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var yK="object"==typeof global&&global&&global.Object===Object&&global,yY="object"==typeof self&&self&&self.Object===Object&&self,yJ=yK||yY||Function("return this")(),yQ=yJ.Symbol,y0=Object.prototype,y1=y0.hasOwnProperty,y2=y0.toString,y5=yQ?yQ.toStringTag:void 0,y3=function(e){var t=y1.call(e,y5),n=e[y5];try{e[y5]=void 0;var r=!0}catch(e){}var o=y2.call(e);return r&&(t?e[y5]=n:delete e[y5]),o},y6=Object.prototype.toString,y4=yQ?yQ.toStringTag:void 0,y8=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":y4&&y4 in Object(e)?y3(e):y6.call(e)},y7=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},y9=function(e){if(!y7(e))return!1;var t=y8(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},xe=yJ["__core-js_shared__"],xt=(g=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",xn=Function.prototype.toString,xr=function(e){if(null!=e){try{return xn.call(e)}catch(e){}try{return e+""}catch(e){}}return""},xo=/^\[object .+?Constructor\]$/,xi=Object.prototype,xa=Function.prototype.toString,xl=xi.hasOwnProperty,xs=RegExp("^"+xa.call(xl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xu=function(e,t){var n,r=null==e?void 0:e[t];return y7(n=r)&&(!xt||!(xt in n))&&(y9(n)?xs:xo).test(xr(n))?r:void 0},xc=xu(yJ,"Map"),xd=xu(Object,"create"),xf=Object.prototype.hasOwnProperty,xp=Object.prototype.hasOwnProperty;function xh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xh.prototype.clear=function(){this.__data__=xd?xd(null):{},this.size=0},xh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},xh.prototype.get=function(e){var t=this.__data__;if(xd){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xf.call(t,e)?t[e]:void 0},xh.prototype.has=function(e){var t=this.__data__;return xd?void 0!==t[e]:xp.call(t,e)},xh.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xd&&void 0===t?"__lodash_hash_undefined__":t,this};var xm=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},xg=function(e,t){var n=e.__data__;return xm(t)?n["string"==typeof t?"string":"hash"]:n.map};function xb(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xv(e){var t=this.__data__=new yX(e);this.size=t.size}xb.prototype.clear=function(){this.size=0,this.__data__={hash:new xh,map:new(xc||yX),string:new xh}},xb.prototype.delete=function(e){var t=xg(this,e).delete(e);return this.size-=t?1:0,t},xb.prototype.get=function(e){return xg(this,e).get(e)},xb.prototype.has=function(e){return xg(this,e).has(e)},xb.prototype.set=function(e,t){var n=xg(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xv.prototype.clear=function(){this.__data__=new yX,this.size=0},xv.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xv.prototype.get=function(e){return this.__data__.get(e)},xv.prototype.has=function(e){return this.__data__.has(e)},xv.prototype.set=function(e,t){var n=this.__data__;if(n instanceof yX){var r=n.__data__;if(!xc||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xb(r)}return n.set(e,t),this.size=n.size,this};var xy=function(){try{var e=xu(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),xx=function(e,t,n){"__proto__"==t&&xy?xy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},xw=function(e,t,n){(void 0===n||yU(e[t],n))&&(void 0!==n||t in e)||xx(e,t,n)},xC=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var l=i[++r];if(!1===t(o[l],l,o))break}return e},xk="object"==typeof exports&&exports&&!exports.nodeType&&exports,xD=xk&&"object"==typeof module&&module&&!module.nodeType&&module,xE=xD&&xD.exports===xk?yJ.Buffer:void 0,xS=xE?xE.allocUnsafe:void 0,x$=function(e,t){if(t)return e.slice();var n=e.length,r=xS?xS(n):new e.constructor(n);return e.copy(r),r},xO=yJ.Uint8Array,xF=function(e){var t=new e.constructor(e.byteLength);return new xO(t).set(new xO(e)),t},xj=function(e,t){var n=t?xF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},xA=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},xI=Object.create,xT=function(){function e(){}return function(t){if(!y7(t))return{};if(xI)return xI(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),x_=function(e,t){return function(n){return e(t(n))}},xM=x_(Object.getPrototypeOf,Object),xP=Object.prototype,xN=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xP)},xZ=function(e){return null!=e&&"object"==typeof e},xR=function(e){return xZ(e)&&"[object Arguments]"==y8(e)},xB=Object.prototype,xz=xB.hasOwnProperty,xL=xB.propertyIsEnumerable,xH=xR(function(){return arguments}())?xR:function(e){return xZ(e)&&xz.call(e,"callee")&&!xL.call(e,"callee")},xW=Array.isArray,xV=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},xU=function(e){return null!=e&&xV(e.length)&&!y9(e)},xq="object"==typeof exports&&exports&&!exports.nodeType&&exports,xG=xq&&"object"==typeof module&&module&&!module.nodeType&&module,xX=xG&&xG.exports===xq?yJ.Buffer:void 0,xK=(xX?xX.isBuffer:void 0)||function(){return!1},xY=Object.prototype,xJ=Function.prototype.toString,xQ=xY.hasOwnProperty,x0=xJ.call(Object),x1=function(e){if(!xZ(e)||"[object Object]"!=y8(e))return!1;var t=xM(e);if(null===t)return!0;var n=xQ.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xJ.call(n)==x0},x2={};x2["[object Float32Array]"]=x2["[object Float64Array]"]=x2["[object Int8Array]"]=x2["[object Int16Array]"]=x2["[object Int32Array]"]=x2["[object Uint8Array]"]=x2["[object Uint8ClampedArray]"]=x2["[object Uint16Array]"]=x2["[object Uint32Array]"]=!0,x2["[object Arguments]"]=x2["[object Array]"]=x2["[object ArrayBuffer]"]=x2["[object Boolean]"]=x2["[object DataView]"]=x2["[object Date]"]=x2["[object Error]"]=x2["[object Function]"]=x2["[object Map]"]=x2["[object Number]"]=x2["[object Object]"]=x2["[object RegExp]"]=x2["[object Set]"]=x2["[object String]"]=x2["[object WeakMap]"]=!1;var x5="object"==typeof exports&&exports&&!exports.nodeType&&exports,x3=x5&&"object"==typeof module&&module&&!module.nodeType&&module,x6=x3&&x3.exports===x5&&yK.process,x4=function(){try{var e=x3&&x3.require&&x3.require("util").types;if(e)return e;return x6&&x6.binding&&x6.binding("util")}catch(e){}}(),x8=x4&&x4.isTypedArray,x7=x8?function(e){return x8(e)}:function(e){return xZ(e)&&xV(e.length)&&!!x2[y8(e)]},x9=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},we=Object.prototype.hasOwnProperty,wt=function(e,t,n){var r=e[t];we.call(e,t)&&yU(r,n)&&(void 0!==n||t in e)||xx(e,t,n)},wn=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?xx(n,l,s):wt(n,l,s)}return n},wr=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},wo=/^(?:0|[1-9]\d*)$/,wi=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&wo.test(e))&&e>-1&&e%1==0&&e<t},wa=Object.prototype.hasOwnProperty,wl=function(e,t){var n=xW(e),r=!n&&xH(e),o=!n&&!r&&xK(e),i=!n&&!r&&!o&&x7(e),a=n||r||o||i,l=a?wr(e.length,String):[],s=l.length;for(var u in e)(t||wa.call(e,u))&&!(a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,s)))&&l.push(u);return l},ws=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},wu=Object.prototype.hasOwnProperty,wc=function(e){if(!y7(e))return ws(e);var t=xN(e),n=[];for(var r in e)"constructor"==r&&(t||!wu.call(e,r))||n.push(r);return n},wd=function(e){return xU(e)?wl(e,!0):wc(e)},wf=function(e,t,n,r,o,i,a){var l=x9(e,n),s=x9(t,n),u=a.get(s);if(u){xw(e,n,u);return}var c=i?i(l,s,n+"",e,t,a):void 0,d=void 0===c;if(d){var f=xW(s),p=!f&&xK(s),h=!f&&!p&&x7(s);(c=s,f||p||h)?xW(l)?c=l:xZ(l)&&xU(l)?c=xA(l):p?(d=!1,c=x$(s,!0)):h?(d=!1,c=xj(s,!0)):c=[]:x1(s)||xH(s)?(c=l,xH(l))?c=wn(l,wd(l)):(!y7(l)||y9(l))&&(c="function"!=typeof s.constructor||xN(s)?{}:xT(xM(s))):d=!1}d&&(a.set(s,c),o(c,s,r,i,a),a.delete(s)),xw(e,n,c)},wp=function e(t,n,r,o,i){t!==n&&xC(n,function(a,l){if(i||(i=new xv),y7(a))wf(t,n,l,r,e,o,i);else{var s=o?o(x9(t,l),a,l+"",t,n,i):void 0;void 0===s&&(s=a),xw(t,l,s)}},wd)},wh=function(e){return e},wm=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},wg=Math.max,wb=Date.now,wv=(b=xy?function(e,t){return xy(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:wh,v=0,y=0,function(){var e=wb(),t=16-(e-y);if(y=e,t>0){if(++v>=800)return arguments[0]}else v=0;return b.apply(void 0,arguments)}),wy=function(e,t){var n;return wv((n=wg(void 0===(n=t)?e.length-1:n,0),function(){for(var t=arguments,r=-1,o=wg(t.length-n,0),i=Array(o);++r<o;)i[r]=t[n+r];r=-1;for(var a=Array(n+1);++r<n;)a[r]=t[r];return a[n]=wh(i),wm(e,this,a)}),e+"")},wx=function(e,t,n){if(!y7(n))return!1;var r=typeof t;return("number"==r?!!(xU(n)&&wi(t,n.length)):"string"==r&&t in n)&&yU(n[t],e)},ww=function(e){return wy(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&wx(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t})},wC=ww(function(e,t,n){wp(e,t,n)});let wk=new Map,wD=e=>{let t=wk.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},wE=(e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};let r=wk.get(n.name);if(r)return{type:"tracked",store:e,...r};let o={connection:t.connect(n),stores:{}};return wk.set(n.name,o),{type:"tracked",store:e,...o}},wS=(e,t={})=>(n,r,o)=>{let i;let{enabled:a,anonymousActionType:l,store:s,...u}=t;try{i=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!i)return a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);let{connection:c,...d}=wE(s,i,u),f=!0;o.setState=(e,t,i)=>{let a=n(e,t);if(!f)return a;let d=void 0===i?{type:l||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?null==c||c.send(d,r()):null==c||c.send({...d,type:`${s}/${d.type}`},{...wD(u.name),[s]:o.getState()}),a};let p=(...e)=>{let t=f;f=!1,n(...e),f=t},h=e(o.setState,r,o);if("untracked"===d.type?null==c||c.init(h):(d.stores[d.store]=o,null==c||c.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=>[e,e===d.store?h:t.getState()])))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1,t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return c.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload){console.error("[zustand devtools middleware] Unsupported action format");return}return w$(e.payload,e=>{if("__setState"===e.type){if(void 0===s){p(e.state);return}1!==Object.keys(e.state).length&&console.error(`
  179. [zustand devtools middleware] Unsupported __setState action format.
  180. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
  181. and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
  182. `);let t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t);return}o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(p(h),void 0===s)return null==c?void 0:c.init(o.getState());return null==c?void 0:c.init(wD(u.name));case"COMMIT":if(void 0===s){null==c||c.init(o.getState());break}return null==c?void 0:c.init(wD(u.name));case"ROLLBACK":return w$(e.state,e=>{if(void 0===s){p(e),null==c||c.init(o.getState());return}p(e[s]),null==c||c.init(wD(u.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return w$(e.state,e=>{if(void 0===s){p(e);return}JSON.stringify(o.getState())!==JSON.stringify(e[s])&&p(e[s])});case"IMPORT_STATE":{let{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;void 0===s?p(r):p(r[s]),null==c||c.send(null,n);break}case"PAUSE_RECORDING":return f=!f}return}}),h},w$=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},wO=e=>{let t;let n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},wF=e=>e?wO(e):wO,{useDebugValue:wj}=tt,{useSyncExternalStoreWithSelector:wA}=vU,wI=e=>e,wT=(e,t)=>{let n=wF(e),r=(e,r=t)=>(function(e,t=wI,n){let r=wA(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return wj(r),r})(n,e,r);return Object.assign(r,n),r},w_=(e,t)=>e?wT(e,t):wT;var wM=ww(function(e,t,n,r){wn(t,wd(t),e,r)}),wP=function(e){if(!xZ(e))return!1;var t=y8(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!x1(e)},wN=wy(function(e,t){try{return wm(e,void 0,t)}catch(e){return wP(e)?e:Error(e)}}),wZ=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},wR=Object.prototype,wB=wR.hasOwnProperty,wz=function(e,t,n,r){return void 0===e||yU(e,wR[n])&&!wB.call(r,n)?t:e},wL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wH=function(e){return"\\"+wL[e]},wW=x_(Object.keys,Object),wV=Object.prototype.hasOwnProperty,wU=function(e){if(!xN(e))return wW(e);var t=[];for(var n in Object(e))wV.call(e,n)&&"constructor"!=n&&t.push(n);return t},wq=/<%=([\s\S]+?)%>/g,wG=(x={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(e){return null==x?void 0:x[e]}),wX=1/0,wK=yQ?yQ.prototype:void 0,wY=wK?wK.toString:void 0,wJ=function e(t){if("string"==typeof t)return t;if(xW(t))return wZ(t,e)+"";if("symbol"==typeof t||xZ(t)&&"[object Symbol]"==y8(t))return wY?wY.call(t):"";var n=t+"";return"0"==n&&1/t==-wX?"-0":n},wQ=function(e){return null==e?"":wJ(e)},w0=/[&<>"']/g,w1=RegExp(w0.source),w2={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:wq,variable:"",imports:{_:{escape:function(e){return(e=wQ(e))&&w1.test(e)?e.replace(w0,wG):e}}}},w5=/\b__p \+= '';/g,w3=/\b(__p \+=) '' \+/g,w6=/(__e\(.*?\)|\b__t\)) \+\n'';/g,w4=/[()=,{}\[\]\/\s]/,w8=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w7=/($^)/,w9=/['\n\r\u2028\u2029\\]/g,Ce=Object.prototype.hasOwnProperty,Ct=function(e,t,n){var r=w2.imports._.templateSettings||w2;n&&wx(e,t,n)&&(t=void 0),e=wQ(e),t=wM({},t,r,wz);var o,i,a=wM({},t.imports,r.imports,wz),l=xU(a)?wl(a):wU(a),s=wZ(l,function(e){return a[e]}),u=0,c=t.interpolate||w7,d="__p += '",f=RegExp((t.escape||w7).source+"|"+c.source+"|"+(c===wq?w8:w7).source+"|"+(t.evaluate||w7).source+"|$","g"),p=Ce.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(f,function(t,n,r,a,l,s){return r||(r=a),d+=e.slice(u,s).replace(w9,wH),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),l&&(i=!0,d+="';\n"+l+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t}),d+="';\n";var h=Ce.call(t,"variable")&&t.variable;if(h){if(w4.test(h))throw Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(w5,""):d).replace(w3,"$1").replace(w6,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=wN(function(){return Function(l,p+"return "+d).apply(void 0,s)});if(m.source=d,wP(m))throw m;return m},Cn=(w=(0,c6.Z)((0,c3.Z)().mark(function e(t){var n;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={message:"response error, status: ".concat(t.statusText),type:t.status},e.abrupt("return",n);case 2:case"end":return e.stop()}},e)})),function(e){return w.apply(this,arguments)}),Cr=(C=(0,c6.Z)((0,c3.Z)().mark(function e(t){var n,r,o,i,a,l,s,u,c,d,f,p,h,m,g,b,v,y,x,w,C=arguments;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=C.length>1&&void 0!==C[1]?C[1]:{},e.next=3,t();case 3:if(r=e.sent){e.next=7;break}return null===(o=n.onCancel)||void 0===o||o.call(n),e.abrupt("return");case 7:if(i=null,a=null,"object"===(0,tp.Z)(r)&&"content"in r?(i=null==r?void 0:r.content.clone(),a=null==r?void 0:r.content):"string"==typeof r?a=i=new Response(r):(i=null==r?void 0:r.clone(),a=r),a.ok){e.next=16;break}return e.next=13,Cn(a);case 13:return s=e.sent,null===(l=n.onErrorHandle)||void 0===l||l.call(n,s),e.abrupt("return");case 16:if(u=a.body){e.next=19;break}return e.abrupt("return");case 19:c=u.getReader(),d=new TextDecoder,f=!1,e.prev=22;case 23:if(f){e.next=37;break}if(!(null!==(p=n.signal)&&void 0!==p&&p.aborted)){e.next=27;break}return null===(h=n.onFinish)||void 0===h||h.call(n,"abort"),e.abrupt("break",37);case 27:return e.next=29,c.read();case 29:g=(m=e.sent).value,f=b=m.done,g&&(y=d.decode(g,{stream:!b}),null===(v=n.onMessageHandle)||void 0===v||v.call(n,y,r)),f&&(null===(x=n.onFinish)||void 0===x||x.call(n,"done")),e.next=23;break;case 37:e.next=42;break;case 39:e.prev=39,e.t0=e.catch(22),null===(w=n.onErrorHandle)||void 0===w||w.call(n,e.t0);case 42:return e.abrupt("return",i);case 43:case"end":return e.stop()}},e,null,[[22,39]])})),function(e){return C.apply(this,arguments)}),Co=((e,t=21)=>(n=t)=>{let r="",o=0|n;for(;o--;)r+=e[Math.random()*e.length|0];return r})("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",8),Ci={historyCount:1,model:"gpt-3.5-turbo",params:{frequency_penalty:0,presence_penalty:0,temperature:.6,top_p:1},systemRole:""},Ca={chats:[],init:!0,displayMode:"chat",userMeta:{avatar:"\uD83D\uDE00"},assistantMeta:{avatar:"\uD83E\uDD16"},config:Ci},Cl=Symbol.for("immer-nothing"),Cs=Symbol.for("immer-draftable"),Cu=Symbol.for("immer-state");function Cc(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cd=Object.getPrototypeOf;function Cf(e){return!!e&&!!e[Cu]}function Cp(e){return!!e&&(Cm(e)||Array.isArray(e)||!!e[Cs]||!!e.constructor?.[Cs]||Cx(e)||Cw(e))}var Ch=Object.prototype.constructor.toString();function Cm(e){if(!e||"object"!=typeof e)return!1;let t=Cd(e);if(null===t)return!0;let n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ch}function Cg(e,t){0===Cb(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Cb(e){let t=e[Cu];return t?t.type_:Array.isArray(e)?1:Cx(e)?2:Cw(e)?3:0}function Cv(e,t){return 2===Cb(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cy(e,t,n){let r=Cb(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Cx(e){return e instanceof Map}function Cw(e){return e instanceof Set}function CC(e){return e.copy_||e.base_}function Ck(e,t){if(Cx(e))return new Map(e);if(Cw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=Cm(e);if(!0!==t&&("class_only"!==t||n)){let t=Cd(e);return null!==t&&n?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[Cu];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Cd(e),t)}}function CD(e,t=!1){return CS(e)||Cf(e)||!Cp(e)||(Cb(e)>1&&(e.set=e.add=e.clear=e.delete=CE),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>CD(t,!0))),e}function CE(){Cc(2)}function CS(e){return Object.isFrozen(e)}var C$={};function CO(e){let t=C$[e];return t||Cc(0,e),t}function CF(e,t){t&&(CO("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cj(e){CA(e),e.drafts_.forEach(CT),e.drafts_=null}function CA(e){e===e4&&(e4=e.parent_)}function CI(e){return e4={drafts_:[],parent_:e4,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function CT(e){let t=e[Cu];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function C_(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return void 0!==e&&e!==n?(n[Cu].modified_&&(Cj(t),Cc(4)),Cp(e)&&(e=CM(t,e),t.parent_||CN(t,e)),t.patches_&&CO("Patches").generateReplacementPatches_(n[Cu].base_,e,t.patches_,t.inversePatches_)):e=CM(t,n,[]),Cj(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Cl?e:void 0}function CM(e,t,n){if(CS(t))return t;let r=t[Cu];if(!r)return Cg(t,(o,i)=>CP(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return CN(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;let t=r.copy_,o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),Cg(o,(o,a)=>CP(e,r,t,o,a,n,i)),CN(e,t,!1),n&&e.patches_&&CO("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function CP(e,t,n,r,o,i,a){if(Cf(o)){let a=CM(e,o,i&&t&&3!==t.type_&&!Cv(t.assigned_,r)?i.concat(r):void 0);if(Cy(n,r,a),!Cf(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(Cp(o)&&!CS(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;CM(e,o),(!t||!t.scope_.parent_)&&"symbol"!=typeof r&&Object.prototype.propertyIsEnumerable.call(n,r)&&CN(e,o)}}function CN(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&CD(t,n)}var CZ={get(e,t){if(t===Cu)return e;let n=CC(e);if(!Cv(n,t))return function(e,t,n){let r=Cz(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);let r=n[t];return e.finalized_||!Cp(r)?r:r===CB(e.base_,t)?(CH(e),e.copy_[t]=CW(r,e)):r},has:(e,t)=>t in CC(e),ownKeys:e=>Reflect.ownKeys(CC(e)),set(e,t,n){let r=Cz(CC(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=CB(CC(e),t),o=r?.[Cu];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||Cv(e.base_,t)))return!0;CH(e),CL(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==CB(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,CH(e),CL(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=CC(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){Cc(11)},getPrototypeOf:e=>Cd(e.base_),setPrototypeOf(){Cc(12)}},CR={};function CB(e,t){let n=e[Cu];return(n?CC(n):e)[t]}function Cz(e,t){if(!(t in e))return;let n=Cd(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Cd(n)}}function CL(e){!e.modified_&&(e.modified_=!0,e.parent_&&CL(e.parent_))}function CH(e){e.copy_||(e.copy_=Ck(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function CW(e,t){let n=Cx(e)?CO("MapSet").proxyMap_(e,t):Cw(e)?CO("MapSet").proxySet_(e,t):function(e,t){let n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:e4,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=r,i=CZ;n&&(o=[r],i=CR);let{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}(e,t);return(t?t.scope_:e4).drafts_.push(n),n}Cg(CZ,(e,t)=>{CR[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),CR.deleteProperty=function(e,t){return CR.set.call(this,e,t,void 0)},CR.set=function(e,t,n){return CZ.set.call(this,e[0],t,n,e[0])};var CV=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{let r;if("function"==typeof e&&"function"!=typeof t){let n=t;t=e;let r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}if("function"!=typeof t&&Cc(6),void 0!==n&&"function"!=typeof n&&Cc(7),Cp(e)){let o=CI(this),i=CW(e,void 0),a=!0;try{r=t(i),a=!1}finally{a?Cj(o):CA(o)}return CF(o,n),C_(r,o)}if(e&&"object"==typeof e)Cc(1,e);else{if(void 0===(r=t(e))&&(r=e),r===Cl&&(r=void 0),this.autoFreeze_&&CD(r,!0),n){let t=[],o=[];CO("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}},this.produceWithPatches=(e,t)=>{let n,r;return"function"==typeof e?(t,...n)=>this.produceWithPatches(t,t=>e(t,...n)):[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;Cp(e)||Cc(8),Cf(e)&&(Cf(t=e)||Cc(10,t),e=function e(t){let n;if(!Cp(t)||CS(t))return t;let r=t[Cu];if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=Ck(t,r.scope_.immer_.useStrictShallowCopy_)}else n=Ck(t,!0);return Cg(n,(t,r)=>{Cy(n,t,e(r))}),r&&(r.finalized_=!1),n}(t));let n=CI(this),r=CW(e,void 0);return r[Cu].isManual_=!0,CA(n),r}finishDraft(e,t){let n=e&&e[Cu];n&&n.isManual_||Cc(9);let{scope_:r}=n;return CF(r,t),C_(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=CO("Patches").applyPatches_;return Cf(e)?r(e,t):this.produce(e,e=>r(e,t))}},CU=CV.produce;CV.produceWithPatches.bind(CV),CV.setAutoFreeze.bind(CV),CV.setUseStrictShallowCopy.bind(CV),CV.applyPatches.bind(CV),CV.createDraft.bind(CV),CV.finishDraft.bind(CV);var Cq=["type"],CG=["id","key","value","type"],CX=function(e,t){switch(t.type){case"addMessage":return CU(e,function(e){var n=t.id||Co();t.type;var r=(0,te.Z)(t,Cq);e.push((0,e9.Z)({content:t.message,createAt:Date.now(),id:n,updateAt:Date.now()},r))});case"deleteMessage":return e.map(function(e){return e.id!==t.id&&e}).filter(Boolean);case"updateMessage":return CU(e,function(e){var n=t.id,r=t.key,o=t.value,i=(t.type,(0,te.Z)(t,CG)),a=e.find(function(e){return e.id===n});if(a){a.updateAt=Date.now();for(var l=0,s=Object.entries(i);l<s.length;l++){var u=(0,th.Z)(s[l],2),c=u[0],d=u[1];a[c]=d}a[r]=o}});case"updateMessageExtra":return CU(e,function(e){var n=t.id,r=t.key,o=t.value,i=e.find(function(e){return e.id===n});i&&(i.extra?i.extra[r]=o:i.extra=(0,tj.Z)({},r,o),i.updateAt=Date.now())});case"resetMessages":return[];default:throw Error("暂未实现的 type,请检查 reducer")}},CK=function(e,t){var n=["chat/message",e].filter(Boolean).join("/");return t?{payload:t,type:n}:n},CY=function(e,t){var n,r,o,i,a,l,s;return{clearMessage:(n=(0,c6.Z)((0,c3.Z)().mark(function e(){var n,r,o;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=t()).dispatchMessage,!(o=n.onResetMessage)){e.next=4;break}return e.next=4,o();case 4:r({type:"resetMessages"});case 5:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)}),deleteMessage:function(e){t().dispatchMessage({id:e,type:"deleteMessage"})},updateMessageContent:(r=(0,c6.Z)((0,c3.Z)().mark(function e(n,r){var o,i,a;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=(o=t()).dispatchMessage,a=o.updateMessageContent,i({id:n,key:"content",type:"updateMessage",value:r}),a(n,r);case 3:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)}),dispatchMessage:function(n){var r=t(),o=r.chats,i=r.onChatsChange,a=CX(o,n);e({chats:a},!1,CK("dispatchMessage")),null==i||i(a)},generateMessage:(o=(0,c6.Z)((0,c3.Z)().mark(function e(n,r){var o,i,a,l,s,u,c,d,f,p,h,m,g,b,v,y,x,w,C,k,D,E,S,$,O;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(o=t()).dispatchMessage,a=o.toggleChatLoading,l=o.config,s=o.defaultModelFetcher,u=o.createSmoothMessage,c=o.deleteMessage,d=o.transformToChatMessage,f=o.onChatEnd,p=o.onChatStart,h=o.onChatGenerate,m=a(!0,r,CK("generateMessage(start)",{assistantId:r,messages:n})),g=v6(n,l),b=function(e){var t=Ct(l.inputTemplate,{interpolate:/{{([\S\s]+?)}}/g});return e.map(function(e){if("user"===e.role)try{return(0,e9.Z)((0,e9.Z)({},e),{},{content:t({text:e.content})})}catch(e){console.error(e)}return e})},v=l.inputTemplate?b(g):g,l.systemRole&&v.unshift({content:l.systemRole,role:"system"}),p&&p(v),y=function(){return s((0,e9.Z)({messages:v,model:l.model},l.params),{signal:null==m?void 0:m.signal})},x="",w=!1,k=(C=u(r)).startAnimation,D=C.stopAnimation,E=C.outputQueue,S=C.isAnimationActive,$=C.mixRequestResponse,e.next=13,Cr(y,{signal:null==m?void 0:m.signal,onCancel:function(){c(r)},onErrorHandle:function(e){console.log("error!"),i({id:r,key:"error",type:"updateMessage",value:e})},onAbort:function(){var e=(0,c6.Z)((0,c3.Z)().mark(function e(){return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:f&&f(r,"abort"),D();case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),onFinish:function(){var e=(0,c6.Z)((0,c3.Z)().mark(function e(t){return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(D(),f&&f(r,t),!(E.length>0&&!w)){e.next=5;break}return e.next=5,k(15);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),onMessageHandle:function(){var e=(0,c6.Z)((0,c3.Z)().mark(function e(t,n){var r,o,i,a,l,s;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(x+=t,n&&"object"===(0,tp.Z)(n)&&"content"in n)for(r=0,o=Object.entries(n);r<o.length;r++)a=(i=(0,th.Z)(o[r],2))[0],l=i[1],$[a]=l;if(S||w||k(),!(null!=m&&m.signal.aborted)){e.next=7;break}return e.abrupt("return");case 7:if(!d){e.next=13;break}return e.next=10,d(t,x);case 10:e.t0=e.sent,e.next=14;break;case 13:e.t0=t;case 14:s=e.t0,h&&h(s),E.push(s);case 17:x.startsWith('{"function')&&(w=!0);case 18:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()});case 13:return function e(){clearTimeout(O),void 0===E||0===E.length||""===E.toString()?(a(!1,void 0,CK("generateMessage(end)")),clearTimeout(O)):O=setTimeout(e,30)}(),e.abrupt("return",{isFunctionCall:w});case 16:case"end":return e.stop()}},e)})),function(e,t){return o.apply(this,arguments)}),realFetchAIResponse:(i=(0,c6.Z)((0,c3.Z)().mark(function e(n,r){var o,i,a,l,s,u;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(o=t()).dispatchMessage,a=o.generateMessage,l=o.config,s=o.getMessageId,e.next=3,s(n,r);case 3:return u=e.sent,i({id:u,message:"...",parentId:r,role:"assistant",type:"addMessage"}),i({id:u,key:"fromModel",type:"updateMessageExtra",value:l.model}),e.next=8,a(n,u);case 8:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)}),resendMessage:(a=(0,c6.Z)((0,c3.Z)().mark(function e(n){var r,o,i,a,l,s,u,c;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((o=(r=v9.currentChats(t())).findIndex(function(e){return e.id===n}))<0)){e.next=4;break}return e.abrupt("return");case 4:i=r[o],a=[],e.t0=i.role,e.next="function"===e.t0?9:"user"===e.t0?9:"assistant"===e.t0?11:15;break;case 9:return a=r.slice(0,o+1),e.abrupt("break",15);case 11:return l=i.parentId,s=r.findIndex(function(e){return e.id===l}),a=r.slice(0,s<0?o+1:s+1),e.abrupt("break",15);case 15:if(!(a.length<=0)){e.next=17;break}return e.abrupt("return");case 17:if(u=t().realFetchAIResponse,c=a.filter(function(e){return"user"===e.role}).at(-1)){e.next=21;break}return e.abrupt("return");case 21:return e.next=23,u(a,c.id);case 23:case"end":return e.stop()}},e)})),function(e){return a.apply(this,arguments)}),sendMessage:(l=(0,c6.Z)((0,c3.Z)().mark(function e(n){var r,o,i,a,l;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(r=t()).dispatchMessage,i=r.realFetchAIResponse,n){e.next=3;break}return e.abrupt("return");case 3:return a=Co(),o({id:a,message:n,role:"user",type:"addMessage"}),l=v9.currentChats(t()),e.next=8,i(l,a);case 8:case"end":return e.stop()}},e)})),function(e){return l.apply(this,arguments)}),stopGenerateMessage:function(){var e=t(),n=e.abortController,r=e.toggleChatLoading,o=e.chatLoadingId,i=e.chats,a=e.dispatchMessage;i&&i.length>0&&"..."===i[i.length-1].content&&a({id:o,key:"content",type:"updateMessage",value:""}),n&&(n.abort(),r(!1))},toggleChatLoading:function(t,n,r){if(t){var o=new AbortController;return e({abortController:o,chatLoadingId:n},!1,r),o}e({abortController:void 0,chatLoadingId:void 0},!1,r)},defaultModelFetcher:function(e,n){var r=t().request,o=wC((0,e9.Z)({model:Ci.model,stream:!0},Ci.params),e);return"function"==typeof r?r(o.messages,o,null==n?void 0:n.signal):fetch("string"==typeof r?r:"/api/openai/chat",{body:JSON.stringify(o),headers:{"Content-Type":"application/json"},method:"POST",signal:null==n?void 0:n.signal})},getMessageId:(s=(0,c6.Z)((0,c3.Z)().mark(function e(n,r){var o;return(0,c3.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(o=t().genMessageId)){e.next=3;break}return e.abrupt("return",o(n,r));case 3:return e.abrupt("return",Co());case 4:case"end":return e.stop()}},e)})),function(e,t){return s.apply(this,arguments)}),createSmoothMessage:function(e){var n=t().dispatchMessage,r="",o=[],i={},a=null,l=!1;return{startAnimation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return new Promise(function(s){if(l){s();return}l=!0,function u(){if(l||(clearTimeout(a),a=null,s()),o.length>0){var c=o.splice(0,t).join("");r+=c,"object"===(0,tp.Z)(i)&&"content"in i?n((0,e9.Z)((0,e9.Z)({},i),{},{id:e,key:"content",type:"updateMessage",value:r})):n({id:e,key:"content",type:"updateMessage",value:r}),a=setTimeout(u,16)}else l=!1,a=null,s()}()})},stopAnimation:function(){l=!1,null!==a&&(clearTimeout(a),a=null)},outputQueue:o,isAnimationActive:!1,mixRequestResponse:i}},getChatLoadingId:function(){return t().chatLoadingId}}},CJ=["loading","initialChats","chats"],CQ=function(e){var t=e.loading,n=e.initialChats,r=e.chats,o=(0,te.Z)(e,CJ);return function(){var e=null!=r?r:n,i=wC({},Ca,(0,e9.Z)({init:!t,chats:Array.isArray(e)?e:Object.values(e||{})},o));return(0,e9.Z)((0,e9.Z)({},i),CY.apply(void 0,arguments))}},C0=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1!==t?wS:function(e){return e};return w_()(n(CQ(e),!1===t?void 0:!0===t?{name:"PRO_CHAT"}:t),vz())},C1=["children","devtoolOptions","chats","onChatsChange","loading","helloMessage","userMeta","inputAreaProps","assistantMeta","actions","transformToChatMessage","request","locale"],C2=(0,tt.memo)(function(e){var t=e.children,n=e.devtoolOptions,r=e.chats,o=e.onChatsChange,i=e.loading,a=e.helloMessage,l=e.userMeta,s=e.inputAreaProps,u=e.assistantMeta,c=e.actions,d=e.transformToChatMessage,f=e.request,p=e.locale,h=(0,te.Z)(e,C1),m=!0,g=(0,tk.jsxs)(tk.Fragment,{children:[t,(0,tk.jsx)(yV,{chatRef:h.chatRef,init:!i,helloMessage:a,chats:r,actions:c,userMeta:l,request:f,transformToChatMessage:d,inputAreaProps:s,assistantMeta:u,onChatsChange:o,locale:p})]});try{vJ()}catch(e){m=!1}return m?g:(0,tk.jsx)(vQ,{createStore:function(){return C0(h,n)},children:g})}),C5=["renderInputArea","__PRO_CHAT_STORE_DEVTOOLS__","showTitle","style","className","chatItemRenderConfig","backToBottomConfig","appStyle","inputRender","markdownProps","renderErrorMessages","inputAreaRender","itemShouldUpdate","onScroll","sendButtonRender"];function C3(e){var t=e.renderInputArea,n=e.__PRO_CHAT_STORE_DEVTOOLS__,r=e.showTitle,o=e.style,i=e.className,a=e.chatItemRenderConfig,l=e.backToBottomConfig,s=e.appStyle,u=e.inputRender,c=e.markdownProps,d=e.renderErrorMessages,f=e.inputAreaRender,p=e.itemShouldUpdate,h=e.onScroll,m=e.sendButtonRender,g=(0,te.Z)(e,C5);return(0,tk.jsx)(C2,(0,e9.Z)((0,e9.Z)({},g),{},{devtoolOptions:n,children:(0,tk.jsx)(tf,{style:(0,e9.Z)({height:"100%",width:"100%",position:"relative"},s),className:i,children:(0,tk.jsx)(yH,{chatItemRenderConfig:a,inputRender:u,sendButtonRender:m,inputAreaRender:t||f,chatRef:g.chatRef,showTitle:r,style:o,onScroll:h,itemShouldUpdate:p,renderErrorMessages:d,backToBottomConfig:l,className:i,markdownProps:c})})}))}},72357:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],u=new o((a+l)*3/4-l),c=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,l=r-o;a<l;a+=16383)i.push(function(e,t,r){for(var o,i=[],a=t;a<r;a+=3)i.push(n[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a<l;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*!
  183. * The buffer module from node.js, for the browser.
  184. *
  185. * @author Feross Aboukhadijeh <https://feross.org>
  186. * @license MIT
  187. */var r=n(675),o=n(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),l.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);var o=function(e){if(l.isBuffer(e)){var t,n=0|f(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(o)return r?-1:E(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,n){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=j[e[i]];return o}(this,t,n);case"utf8":case"utf-8":return v(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}(this,t,n);case"base64":return o=t,i=n,0===o&&i===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){var i;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<l;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*a}else -1!==c&&(i-=i-c),c=-1}else for(n+s>l&&(n=l-s),i=n;i>=0;i--){for(var d=!0,f=0;f<s;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return -1}function v(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,l,s,u=e[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&u)<<6|63&i)>127&&(c=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&u)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function y(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,o,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function w(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function C(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return c(e)},l.allocUnsafeSlow=function(e){return c(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(F(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(F(i,Uint8Array)&&(i=l.from(i)),!l.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):h.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){if(F(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),d=0;d<s;++d)if(u[d]!==c[d]){i=u[d],a=c[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,l,s,u,c,d,f,p,h,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var b=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(l!=l)break;e[n+a]=l}return a}(this,e,t,n);case"utf8":case"utf-8":return s=t,u=n,O(E(e,this.length-s),this,s,u);case"ascii":return c=t,d=n,O(S(e),this,c,d);case"latin1":case"binary":return o=this,i=e,a=t,l=n,O(S(i),o,a,l);case"base64":return f=t,p=n,O($(e),this,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=t,m=n,O(function(e,t){for(var n,r,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o.push(n%256),o.push(r);return o}(e,this.length-h),this,h,m);default:if(b)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),b=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var i=o-1;i>=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:l.from(e,r),s=a.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var D=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function S(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function $(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<<l)-1,u=s>>1,c=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,u=8*i-o-1,c=(1<<u)-1,d=c>>1,f=23===o?5960464477539062e-23:0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+d>=1?t+=f/s:t+=f*Math.pow(2,1-d),t*s>=2&&(a++,s/=2),a+d>=c?(l=0,a=c):a+d>=1?(l=(t*s-1)*Math.pow(2,o),a+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*m}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(72);e.exports=o}()},55292:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?s=r.concat(s):c=-1,s.length&&f())}function f(){if(!u){var e=l(d);u=!0;for(var t=s.length;t;){for(r=s,s=[];++c<t;)r&&r[c].run();c=-1,t=s.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||l(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},91581:function(e,t,n){"use strict";var r=n(98630);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},38259:function(e,t,n){e.exports=n(91581)()},98630:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},92872:function(e,t,n){"use strict";n.d(t,{s:function(){return k},Z:function(){return O}});var r=n(4943),o=n(11984),i=n(97536),a=n(38786),l=a.createContext({}),s=n(88532),u=n(43359),c=n.n(u),d=n(87514),f=n(77148),p=n(13594),h=n(12689);function m(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function g(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var b=n(71048),v=n(7871),y=n(21710),x=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),w={width:0,height:0,overflow:"hidden",outline:"none"},C={outline:"none"},k=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,i=e.style,u=e.title,d=e.ariaId,f=e.footer,p=e.closable,m=e.closeIcon,g=e.onClose,b=e.children,k=e.bodyStyle,D=e.bodyProps,E=e.modalRender,S=e.onMouseDown,$=e.onMouseUp,O=e.holderRef,F=e.visible,j=e.forceRender,A=e.width,I=e.height,T=e.classNames,_=e.styles,M=a.useContext(l).panel,P=(0,y.x1)(O,M),N=(0,a.useRef)(),Z=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=N.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===Z.current?N.current.focus({preventScroll:!0}):e||t!==N.current||Z.current.focus({preventScroll:!0})}}});var R={};void 0!==A&&(R.width=A),void 0!==I&&(R.height=I);var B=f?a.createElement("div",{className:c()("".concat(n,"-footer"),null==T?void 0:T.footer),style:(0,s.Z)({},null==_?void 0:_.footer)},f):null,z=u?a.createElement("div",{className:c()("".concat(n,"-header"),null==T?void 0:T.header),style:(0,s.Z)({},null==_?void 0:_.header)},a.createElement("div",{className:"".concat(n,"-title"),id:d},u)):null,L=(0,a.useMemo)(function(){return"object"===(0,v.Z)(p)&&null!==p?p:p?{closeIcon:null!=m?m:a.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[p,m,n]),H=(0,h.Z)(L,!0),W="object"===(0,v.Z)(p)&&p.disabled,V=p?a.createElement("button",(0,r.Z)({type:"button",onClick:g,"aria-label":"Close"},H,{className:"".concat(n,"-close"),disabled:W}),L.closeIcon):null,U=a.createElement("div",{className:c()("".concat(n,"-content"),null==T?void 0:T.content),style:null==_?void 0:_.content},V,z,a.createElement("div",(0,r.Z)({className:c()("".concat(n,"-body"),null==T?void 0:T.body),style:(0,s.Z)((0,s.Z)({},k),null==_?void 0:_.body)},D),b),B);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?d:null,"aria-modal":"true",ref:P,style:(0,s.Z)((0,s.Z)({},i),R),className:c()(n,o),onMouseDown:S,onMouseUp:$},a.createElement("div",{ref:N,tabIndex:0,style:C},a.createElement(x,{shouldUpdate:F||j},E?E(U):U)),a.createElement("div",{tabIndex:0,ref:Z,style:w}))}),D=a.forwardRef(function(e,t){var n=e.prefixCls,i=e.title,l=e.style,u=e.className,d=e.visible,f=e.forceRender,p=e.destroyOnClose,h=e.motionName,m=e.ariaId,v=e.onVisibleChanged,y=e.mousePosition,x=(0,a.useRef)(),w=a.useState(),C=(0,o.Z)(w,2),D=C[0],E=C[1],S={};function $(){var e,t,n,r,o,i=(n={left:(t=(e=x.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=g(o),n.top+=g(o,!0),n);E(y&&(y.x||y.y)?"".concat(y.x-i.left,"px ").concat(y.y-i.top,"px"):"")}return D&&(S.transformOrigin=D),a.createElement(b.ZP,{visible:d,onVisibleChanged:v,onAppearPrepare:$,onEnterPrepare:$,forceRender:f,motionName:h,removeOnLeave:p,ref:x},function(o,d){var f=o.className,p=o.style;return a.createElement(k,(0,r.Z)({},e,{ref:t,title:i,ariaId:m,prefixCls:n,holderRef:d,style:(0,s.Z)((0,s.Z)((0,s.Z)({},p),l),S),className:c()(u,f)}))})});D.displayName="Content";var E=function(e){var t=e.prefixCls,n=e.style,o=e.visible,i=e.maskProps,l=e.motionName,u=e.className;return a.createElement(b.ZP,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var l=e.className,d=e.style;return a.createElement("div",(0,r.Z)({ref:o,style:(0,s.Z)((0,s.Z)({},d),n),className:c()("".concat(t,"-mask"),l,u)},i))})};n(19955);var S=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,l=e.visible,u=void 0!==l&&l,g=e.keyboard,b=void 0===g||g,v=e.focusTriggerAfterClose,y=void 0===v||v,x=e.wrapStyle,w=e.wrapClassName,C=e.wrapProps,k=e.onClose,S=e.afterOpenChange,$=e.afterClose,O=e.transitionName,F=e.animation,j=e.closable,A=e.mask,I=void 0===A||A,T=e.maskTransitionName,_=e.maskAnimation,M=e.maskClosable,P=e.maskStyle,N=e.maskProps,Z=e.rootClassName,R=e.classNames,B=e.styles,z=(0,a.useRef)(),L=(0,a.useRef)(),H=(0,a.useRef)(),W=a.useState(u),V=(0,o.Z)(W,2),U=V[0],q=V[1],G=(0,f.Z)();function X(e){null==k||k(e)}var K=(0,a.useRef)(!1),Y=(0,a.useRef)(),J=null;(void 0===M||M)&&(J=function(e){K.current?K.current=!1:L.current===e.target&&X(e)}),(0,a.useEffect)(function(){u&&(q(!0),(0,d.Z)(L.current,document.activeElement)||(z.current=document.activeElement))},[u]),(0,a.useEffect)(function(){return function(){clearTimeout(Y.current)}},[]);var Q=(0,s.Z)((0,s.Z)((0,s.Z)({zIndex:i},x),null==B?void 0:B.wrapper),{},{display:U?null:"none"});return a.createElement("div",(0,r.Z)({className:c()("".concat(n,"-root"),Z)},(0,h.Z)(e,{data:!0})),a.createElement(E,{prefixCls:n,visible:I&&u,motionName:m(n,T,_),style:(0,s.Z)((0,s.Z)({zIndex:i},P),null==B?void 0:B.mask),maskProps:N,className:null==R?void 0:R.mask}),a.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(b&&e.keyCode===p.Z.ESC){e.stopPropagation(),X(e);return}u&&e.keyCode===p.Z.TAB&&H.current.changeActive(!e.shiftKey)},className:c()("".concat(n,"-wrap"),w,null==R?void 0:R.wrapper),ref:L,onClick:J,style:Q},C),a.createElement(D,(0,r.Z)({},e,{onMouseDown:function(){clearTimeout(Y.current),K.current=!0},onMouseUp:function(){Y.current=setTimeout(function(){K.current=!1})},ref:H,closable:void 0===j||j,ariaId:G,prefixCls:n,visible:u&&U,onClose:X,onVisibleChanged:function(e){if(e)!function(){if(!(0,d.Z)(L.current,document.activeElement)){var e;null===(e=H.current)||void 0===e||e.focus()}}();else{if(q(!1),I&&z.current&&y){try{z.current.focus({preventScroll:!0})}catch(e){}z.current=null}U&&(null==$||$())}null==S||S(e)},motionName:m(n,O,F)}))))},$=function(e){var t=e.visible,n=e.getContainer,s=e.forceRender,u=e.destroyOnClose,c=void 0!==u&&u,d=e.afterClose,f=e.panelRef,p=a.useState(t),h=(0,o.Z)(p,2),m=h[0],g=h[1],b=a.useMemo(function(){return{panel:f}},[f]);return(a.useEffect(function(){t&&g(!0)},[t]),s||!c||m)?a.createElement(l.Provider,{value:b},a.createElement(i.Z,{open:t||s||m,autoDestroy:!1,getContainer:n,autoLock:t||m},a.createElement(S,(0,r.Z)({},e,{destroyOnClose:c,afterClose:function(){null==d||d(),g(!1)}})))):null};$.displayName="Dialog";var O=$},38824:function(e,t,n){"use strict";n.d(t,{G:function(){return a},Z:function(){return g}});var r=n(43359),o=n.n(r),i=n(38786);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.className,s=e.style;return i.createElement("div",{className:o()("".concat(n,"-content"),l),style:s},i.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var l=n(4943),s=n(88532),u=n(15450),c=n(25675),d={shiftX:64,adjustY:1},f={adjustX:1,shiftY:!0},p=[0,0],h={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:p}},m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],g=(0,i.forwardRef)(function(e,t){var n=e.overlayClassName,r=e.trigger,o=e.mouseEnterDelay,d=e.mouseLeaveDelay,f=e.overlayStyle,p=e.prefixCls,g=void 0===p?"rc-tooltip":p,b=e.children,v=e.onVisibleChange,y=e.afterVisibleChange,x=e.transitionName,w=e.animation,C=e.motion,k=e.placement,D=e.align,E=e.destroyTooltipOnHide,S=e.defaultVisible,$=e.getTooltipContainer,O=e.overlayInnerStyle,F=(e.arrowContent,e.overlay),j=e.id,A=e.showArrow,I=(0,u.Z)(e,m),T=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,function(){return T.current});var _=(0,s.Z)({},I);return"visible"in e&&(_.popupVisible=e.visible),i.createElement(c.Z,(0,l.Z)({popupClassName:n,prefixCls:g,popup:function(){return i.createElement(a,{key:"content",prefixCls:g,id:j,overlayInnerStyle:O},F)},action:void 0===r?["hover"]:r,builtinPlacements:h,popupPlacement:void 0===k?"right":k,ref:T,popupAlign:void 0===D?{}:D,getPopupContainer:$,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:x,popupAnimation:w,popupMotion:C,defaultPopupVisible:S,autoDestroy:void 0!==E&&E,mouseLeaveDelay:void 0===d?.1:d,popupStyle:f,mouseEnterDelay:void 0===o?0:o,arrow:void 0===A||A},_),b)})},43668:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=l(n(38786)),i=l(n(37077)),a=["text","onCopy","options","children"];function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,n,l,s=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=p(m);if(t){var o=p(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function m(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,m);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(f(e=s.call.apply(s,[this].concat(n))),"onClick",function(t){var n=e.props,r=n.text,a=n.onCopy,l=n.children,s=n.options,u=o.default.Children.only(l),c=(0,i.default)(r,s);a&&a(r,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)}),e}return n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}],c(m.prototype,n),l&&c(m,l),Object.defineProperty(m,"prototype",{writable:!1}),m}(o.default.PureComponent);t.CopyToClipboard=m,h(m,"defaultProps",{onCopy:void 0,options:void 0})},57327:function(e,t,n){"use strict";var r=n(43668).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},3220:function(e,t){"use strict";/** @license React v16.13.1
  188. * react-is.production.min.js
  189. *
  190. * Copyright (c) Facebook, Inc. and its affiliates.
  191. *
  192. * This source code is licensed under the MIT license found in the
  193. * LICENSE file in the root directory of this source tree.
  194. */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},1425:function(e,t,n){"use strict";e.exports=n(3220)},90320:function(e,t,n){"use strict";var r=n(15068),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var l=e[n];r(l)?t=o.call(t,i.call(l)):t.push(l)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},13697:function(e,t,n){var r=n(60351);function o(e,t){var n,o,i,a=null;if(!e||"string"!=typeof e)return a;for(var l=r(e),s="function"==typeof t,u=0,c=l.length;u<c;u++)o=(n=l[u]).property,i=n.value,s?t(o,i,n):i&&(a||(a={}),a[o]=i);return a}e.exports=o,e.exports.default=o},57966:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9367:function(e,t,n){"use strict";/**
  195. * @license React
  196. * use-sync-external-store-shim.production.min.js
  197. *
  198. * Copyright (c) Facebook, Inc. and its affiliates.
  199. *
  200. * This source code is licensed under the MIT license found in the
  201. * LICENSE file in the root directory of this source tree.
  202. */var r=n(38786),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),a(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},39877:function(e,t,n){"use strict";/**
  203. * @license React
  204. * use-sync-external-store-shim/with-selector.production.min.js
  205. *
  206. * Copyright (c) Facebook, Inc. and its affiliates.
  207. *
  208. * This source code is licensed under the MIT license found in the
  209. * LICENSE file in the root directory of this source tree.
  210. */var r=n(38786),o=n(6916),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=a(e,(d=u(function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,o]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},6916:function(e,t,n){"use strict";e.exports=n(9367)},28943:function(e,t,n){"use strict";e.exports=n(39877)},26612:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(52898),o=n(8563),i=n(47887);function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw 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 function(e,t,n){if((0,i.Z)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&(0,o.Z)(a,n.prototype),a}(e,arguments,(0,r.Z)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,o.Z)(n,e)})(e)}},66672:function(e,t,n){"use strict";n.d(t,{w_:function(){return c}});var r=n(38786),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){return t=>r.createElement(d,l({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,u({key:n},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var n,{attr:o,size:i,title:s}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),d=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),s&&r.createElement("title",null,s),e.children)};return void 0!==i?r.createElement(i.Consumer,null,e=>t(e)):t(o)}}}]);