diff --git a/static/web/404.html b/static/web/404.html index aab4994be..ce1848b8c 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index aab4994be..ce1848b8c 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/chunks/3626-984008629d4162ee.js b/static/web/_next/static/chunks/3626-984008629d4162ee.js deleted file mode 100644 index f30a32898..000000000 --- a/static/web/_next/static/chunks/3626-984008629d4162ee.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3626],{10010:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(1413),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},l=t(42135),i=function(e,n){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:a}))};i.displayName="CaretUpOutlined";var c=o.forwardRef(i)},32808:function(e,n,t){t.d(n,{Z:function(){return N}});var r=t(4942),o=t(87462),a=t(94184),l=t.n(a),i=t(50132),c=t(67294),d=t(53124),s=t(65223),u=t(74902),f=t(97685),p=t(98423),v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},h=c.createContext(null),m=function(e,n){var t=e.defaultValue,a=e.children,i=e.options,s=void 0===i?[]:i,m=e.prefixCls,y=e.className,g=e.style,x=e.onChange,C=v(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),E=c.useContext(d.E_),Z=E.getPrefixCls,N=E.direction,b=c.useState(C.value||t||[]),w=(0,f.Z)(b,2),S=w[0],K=w[1],O=c.useState([]),D=(0,f.Z)(O,2),P=D[0],R=D[1];c.useEffect(function(){"value"in C&&K(C.value||[])},[C.value]);var M=function(){return s.map(function(e){return"string"==typeof e||"number"==typeof e?{label:e,value:e}:e})},L=function(e){R(function(n){return n.filter(function(n){return n!==e})})},T=function(e){R(function(n){return[].concat((0,u.Z)(n),[e])})},I=function(e){var n=S.indexOf(e.value),t=(0,u.Z)(S);-1===n?t.push(e.value):t.splice(n,1),"value"in C||K(t);var r=M();null==x||x(t.filter(function(e){return P.includes(e)}).sort(function(e,n){return r.findIndex(function(n){return n.value===e})-r.findIndex(function(e){return e.value===n})}))},A=Z("checkbox",m),H="".concat(A,"-group"),z=(0,p.Z)(C,["value","disabled"]);s&&s.length>0&&(a=M().map(function(e){return c.createElement(k,{prefixCls:A,key:e.value.toString(),disabled:"disabled"in e?e.disabled:C.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:"".concat(H,"-item"),style:e.style},e.label)}));var F={toggleOption:I,value:S,disabled:C.disabled,name:C.name,registerValue:T,cancelValue:L},_=l()(H,(0,r.Z)({},"".concat(H,"-rtl"),"rtl"===N),y);return c.createElement("div",(0,o.Z)({className:_,style:g},z,{ref:n}),c.createElement(h.Provider,{value:F},a))},y=c.forwardRef(m),g=c.memo(y),x=t(98866),C=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},E=function(e,n){var t,a,u=e.prefixCls,f=e.className,p=e.children,v=e.indeterminate,m=void 0!==v&&v,y=e.style,g=e.onMouseEnter,E=e.onMouseLeave,k=e.skipGroup,Z=void 0!==k&&k,N=e.disabled,b=C(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),w=c.useContext(d.E_),S=w.getPrefixCls,K=w.direction,O=c.useContext(h),D=(0,c.useContext)(s.aM).isFormItemInput,P=(0,c.useContext)(x.Z),R=null!==(a=(null==O?void 0:O.disabled)||N)&&void 0!==a?a:P,M=c.useRef(b.value);c.useEffect(function(){null==O||O.registerValue(b.value)},[]),c.useEffect(function(){if(!Z)return b.value!==M.current&&(null==O||O.cancelValue(M.current),null==O||O.registerValue(b.value),M.current=b.value),function(){return null==O?void 0:O.cancelValue(b.value)}},[b.value]);var L=S("checkbox",u),T=(0,o.Z)({},b);O&&!Z&&(T.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),O.toggleOption&&O.toggleOption({label:p,value:b.value})},T.name=O.name,T.checked=O.value.includes(b.value));var I=l()((t={},(0,r.Z)(t,"".concat(L,"-wrapper"),!0),(0,r.Z)(t,"".concat(L,"-rtl"),"rtl"===K),(0,r.Z)(t,"".concat(L,"-wrapper-checked"),T.checked),(0,r.Z)(t,"".concat(L,"-wrapper-disabled"),R),(0,r.Z)(t,"".concat(L,"-wrapper-in-form-item"),D),t),f),A=l()((0,r.Z)({},"".concat(L,"-indeterminate"),m));return c.createElement("label",{className:I,style:y,onMouseEnter:g,onMouseLeave:E},c.createElement(i.Z,(0,o.Z)({"aria-checked":m?"mixed":void 0},T,{prefixCls:L,className:A,disabled:R,ref:n})),void 0!==p&&c.createElement("span",null,p))},k=c.forwardRef(E),Z=k;Z.Group=g,Z.__ANT_CHECKBOX=!0;var N=Z},93626:function(e,n,t){t.d(n,{Z:function(){return re}});var r,o,a,l,i=t(71002),c=t(4942),d=t(87462),s=t(97685),u=t(94184),f=t.n(u),p=t(1413),v=t(74902),h=t(67294),m=t(5110),y=t(64217),g=t(79370),x=t(96774),C=t.n(x),E=t(80334),k=t(48555),Z=t(74204),N=function(e){return null},b=function(e){return null},w=t(45987),S=t(42550);function K(e){return null==e?[]:Array.isArray(e)?e:[e]}function O(e,n){if(!n&&"number"!=typeof n)return e;for(var t=K(n),r=e,o=0;o=t);return{onHover:null==e?void 0:e.onHover,hovering:r}},r=(0,M.Z)(t),l=(a=(o=h.useContext(null==L?void 0:L.Context))||{}).listeners,i=a.getValue,c=h.useState(function(){return r(o?i():null)}),f=(u=(0,s.Z)(c,2))[0],p=u[1],(0,R.Z)(function(){if(o)return l.add(e),function(){l.delete(e)};function e(e){p(function(n){var t=r(e);return C()(n,t)?n:t})}},[o]),f),b=N.onHover,w=N.hovering;return h.createElement(_,(0,d.Z)({},e,{colSpan:null!=g?g:E,rowSpan:Z,hovering:w,ref:n,onHover:b}))});j.displayName="WrappedCell";var B=h.createContext(null);function V(e,n,t,r,o){var a,l,i=t[e]||{},c=t[n]||{};"left"===i.fixed?a=r.left[e]:"right"===c.fixed&&(l=r.right[n]);var d=!1,s=!1,u=!1,f=!1,p=t[n+1],v=t[e-1];return"rtl"===o?void 0!==a?f=!(v&&"left"===v.fixed):void 0!==l&&(u=!(p&&"right"===p.fixed)):void 0!==a?d=!(p&&"left"===p.fixed):void 0!==l&&(s=!(v&&"right"===v.fixed)),{fixLeft:a,fixRight:l,lastFixLeft:d,firstFixRight:s,lastFixRight:u,firstFixLeft:f,isSticky:r.isSticky}}function W(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,i=e.onHeaderRow,c=e.index,s=h.useContext(B),u=s.prefixCls,f=s.direction;i&&(n=i(t.map(function(e){return e.column}),c));var p=D(t.map(function(e){return e.column}));return h.createElement(a,n,t.map(function(e,n){var t,a=e.column,i=V(e.colStart,e.colEnd,o,r,f);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),h.createElement(j,(0,d.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:u,key:p[n]},i,{additionalProps:t,rowType:"header"}))}))}W.displayName="HeaderRow";var U=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=h.useContext(B),l=a.prefixCls,i=a.getComponent,c=h.useMemo(function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map(function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},l=1,i=t.children;return i&&i.length>0&&(l=e(i,a,o+1).reduce(function(e,n){return e+n},0),r.hasSubColumns=!0),"colSpan"in t&&(l=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=l,r.colEnd=r.colStart+l-1,n[o].push(r),a+=l,l})}(e,0);for(var t=n.length,r=function(e){n[e].forEach(function(n){("rowSpan"in n)||n.hasSubColumns||(n.rowSpan=t-e)})},o=0;o1?t-1:0),o=1;o0?[].concat((0,v.Z)(e),(0,v.Z)(ei(o).map(function(e){return(0,p.Z)({fixed:r},e)}))):[].concat((0,v.Z)(e),[(0,p.Z)((0,p.Z)({},n),{},{fixed:r})])},[])}var ec=function(e,n){var t=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,l=e.expandedKeys,i=e.columnTitle,d=e.getRowKey,s=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,v=e.expandIconColumnIndex,m=e.direction,y=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=h.useMemo(function(){return r||el(o)},[r,o]),E=h.useMemo(function(){if(a){var e,n,r=C.slice();if(!r.includes(er)){var o=v||0;o>=0&&r.splice(o,0,er)}var p=r.indexOf(er);r=r.filter(function(e,n){return e!==er||n===p});var m=C[p];n=("left"===x||x)&&!v?"left":("right"===x||x)&&v===C.length?"right":m?m.fixed:null;var E=(e={},(0,c.Z)(e,et,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,c.Z)(e,"title",i),(0,c.Z)(e,"fixed",n),(0,c.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,c.Z)(e,"width",g),(0,c.Z)(e,"render",function(e,n,r){var o=d(n,r),a=u({prefixCls:t,expanded:l.has(o),expandable:!f||f(n),record:n,onExpand:s});return y?h.createElement("span",{onClick:function(e){return e.stopPropagation()}},a):a}),e);return r.map(function(e){return e===er?E:e})}return C.filter(function(e){return e!==er})},[a,C,d,l,u,m]),k=h.useMemo(function(){var e=E;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e},[n,E,m]),Z=h.useMemo(function(){return"rtl"===m?ei(k).map(function(e){var n=e.fixed,t=(0,w.Z)(e,ea),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,p.Z)({fixed:r},t)}):ei(k)},[k,m]);return[k,Z]};function ed(e){var n=(0,h.useRef)(e),t=(0,h.useState)({}),r=(0,s.Z)(t,2)[1],o=(0,h.useRef)(null),a=(0,h.useRef)([]);return(0,h.useEffect)(function(){return function(){o.current=null}},[]),[n.current,function(e){a.current.push(e);var t=Promise.resolve();o.current=t,t.then(function(){if(o.current===t){var e=a.current,l=n.current;a.current=[],e.forEach(function(e){n.current=e(n.current)}),o.current=null,l!==n.current&&r({})}})}]}var es=["columnType"],eu=function(e){for(var n=e.colWidths,t=e.columns,r=e.columCount,o=[],a=r||t.length,l=!1,i=a-1;i>=0;i-=1){var c=n[i],s=t&&t[i],u=s&&s[et];if(c||u||l){var f=u||{},p=(f.columnType,(0,w.Z)(f,es));o.unshift(h.createElement("col",(0,d.Z)({key:i,style:{width:c}},p))),l=!0}}return h.createElement("colgroup",null,o)},ef=function(e){var n=e.className,t=e.children;return h.createElement("div",{className:n},t)},ep=h.createContext({}),ev=["children"];function eh(e){return e.children}eh.Row=function(e){var n=e.children,t=(0,w.Z)(e,ev);return h.createElement("tr",t,n)},eh.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,l=e.rowSpan,i=e.align,c=h.useContext(B),s=c.prefixCls,u=c.direction,f=h.useContext(ep),p=f.scrollColumnIndex,v=f.stickyOffsets,m=f.flattenColumns,y=t+a-1+1===p?a+1:a,g=V(t,t+y-1,m,v,u);return h.createElement(j,(0,d.Z)({className:n,index:t,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:l,render:function(){return r}},g))};var em=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=h.useContext(B).prefixCls,a=r.length-1,l=r[a],i=h.useMemo(function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null==l?void 0:l.scrollbar)?a:null}},[l,r,a,t]);return h.createElement(ep.Provider,{value:i},h.createElement("tfoot",{className:"".concat(o,"-summary")},n))};function ey(e){var n,t=e.prefixCls,r=e.record,o=e.onExpand,a=e.expanded,l=e.expandable,i="".concat(t,"-row-expand-icon");if(!l)return h.createElement("span",{className:f()(i,"".concat(t,"-row-spaced"))});var d=function(e){o(r,e),e.stopPropagation()};return h.createElement("span",{className:f()(i,(n={},(0,c.Z)(n,"".concat(t,"-row-expanded"),a),(0,c.Z)(n,"".concat(t,"-row-collapsed"),!a),n)),onClick:d})}var eg=t(64019),ex=t(27678),eC=function(e,n){var t,r,o=e.scrollBodyRef,a=e.onScroll,l=e.offsetScroll,i=e.container,d=h.useContext(B).prefixCls,u=(null===(t=o.current)||void 0===t?void 0:t.scrollWidth)||0,v=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,m=u&&v*(v/u),y=h.useRef(),g=ed({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,s.Z)(g,2),C=x[0],E=x[1],k=h.useRef({delta:0,x:0}),N=h.useState(!1),b=(0,s.Z)(N,2),w=b[0],S=b[1],K=function(){S(!1)},O=function(e){e.persist(),k.current.delta=e.pageX-C.scrollLeft,k.current.x=0,S(!0),e.preventDefault()},D=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(!w||0===t){w&&S(!1);return}var r=k.current.x+e.pageX-k.current.x-k.current.delta;r<=0&&(r=0),r+m>=v&&(r=v-m),a({scrollLeft:r/v*(u+2)}),k.current.x=e.pageX},P=function(){if(o.current){var e=(0,ex.os)(o.current).top,n=e+o.current.offsetHeight,t=i===window?document.documentElement.scrollTop+window.innerHeight:(0,ex.os)(i).top+i.clientHeight;n-(0,Z.Z)()<=t||e>=t-l?E(function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!0})}):E(function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!1})})}},R=function(e){E(function(n){return(0,p.Z)((0,p.Z)({},n),{},{scrollLeft:e/u*v||0})})};return(h.useImperativeHandle(n,function(){return{setScrollLeft:R}}),h.useEffect(function(){var e=(0,eg.Z)(document.body,"mouseup",K,!1),n=(0,eg.Z)(document.body,"mousemove",D,!1);return P(),function(){e.remove(),n.remove()}},[m,w]),h.useEffect(function(){var e=(0,eg.Z)(i,"scroll",P,!1),n=(0,eg.Z)(window,"resize",P,!1);return function(){e.remove(),n.remove()}},[i]),h.useEffect(function(){C.isHiddenScrollBar||E(function(e){var n=o.current;return n?(0,p.Z)((0,p.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e})},[C.isHiddenScrollBar]),u<=v||!m||C.isHiddenScrollBar)?null:h.createElement("div",{style:{height:(0,Z.Z)(),width:v,bottom:l},className:"".concat(d,"-sticky-scroll")},h.createElement("div",{onMouseDown:O,ref:y,className:f()("".concat(d,"-sticky-scroll-bar"),(0,c.Z)({},"".concat(d,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))},eE=h.forwardRef(eC),ek=(0,t(98924).Z)()?window:null,eZ=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],eN=h.forwardRef(function(e,n){var t=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,l=e.colWidths,i=e.columCount,d=e.stickyOffsets,s=e.direction,u=e.fixHeader,m=e.stickyTopOffset,y=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,E=e.children,k=(0,w.Z)(e,eZ),Z=h.useContext(B),N=Z.prefixCls,b=Z.scrollbarSize,K=Z.isSticky,O=K&&!u?0:b,D=h.useRef(null),P=h.useCallback(function(e){(0,S.mH)(n,e),(0,S.mH)(D,e)},[]);h.useEffect(function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(x({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=D.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=D.current)||void 0===e||e.removeEventListener("wheel",n)}},[]);var R=h.useMemo(function(){return a.every(function(e){return e.width>=0})},[a]),M=a[a.length-1],L={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(N,"-cell-scrollbar")}}},T=(0,h.useMemo)(function(){return O?[].concat((0,v.Z)(o),[L]):o},[O,o]),I=(0,h.useMemo)(function(){return O?[].concat((0,v.Z)(a),[L]):a},[O,a]),A=(0,h.useMemo)(function(){var e=d.right,n=d.left;return(0,p.Z)((0,p.Z)({},d),{},{left:"rtl"===s?[].concat((0,v.Z)(n.map(function(e){return e+O})),[0]):n,right:"rtl"===s?e:[].concat((0,v.Z)(e.map(function(e){return e+O})),[0]),isSticky:K})},[O,d,K]),H=(0,h.useMemo)(function(){for(var e=[],n=0;n0)):(e0(o>0),e4(on.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},nr=function(e,n){var t,r=h.useContext(e8),o=h.useContext(e5),a=h.useContext(eP.E_),l=a.getPrefixCls,i=a.direction,s=h.useRef(),u=(0,S.sQ)(n,s),p=(0,h.useContext)(nn.aM).isFormItemInput,v=function(n){var t,o;null===(t=e.onChange)||void 0===t||t.call(e,n),null===(o=null==r?void 0:r.onChange)||void 0===o||o.call(r,n)},m=e.prefixCls,y=e.className,g=e.children,x=e.style,C=e.disabled,E=nt(e,["prefixCls","className","children","style","disabled"]),k=l("radio",m),Z="button"===((null==r?void 0:r.optionType)||o)?"".concat(k,"-button"):k,N=(0,d.Z)({},E),b=h.useContext(ne.Z);N.disabled=C||b,r&&(N.name=r.name,N.onChange=v,N.checked=e.value===r.value,N.disabled=N.disabled||r.disabled);var w=f()("".concat(Z,"-wrapper"),(t={},(0,c.Z)(t,"".concat(Z,"-wrapper-checked"),N.checked),(0,c.Z)(t,"".concat(Z,"-wrapper-disabled"),N.disabled),(0,c.Z)(t,"".concat(Z,"-wrapper-rtl"),"rtl"===i),(0,c.Z)(t,"".concat(Z,"-wrapper-in-form-item"),p),t),y);return h.createElement("label",{className:w,style:x,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},h.createElement(e9.Z,(0,d.Z)({},N,{type:"radio",prefixCls:Z,ref:u})),void 0!==g?h.createElement("span",null,g):null)},no=h.forwardRef(nr),na=h.forwardRef(function(e,n){var t,r=h.useContext(eP.E_),o=r.getPrefixCls,a=r.direction,l=h.useContext(eM.Z),i=(0,e3.Z)(e.defaultValue,{value:e.value}),u=(0,s.Z)(i,2),p=u[0],v=u[1],m=function(n){var t=n.target.value;"value"in e||v(t);var r=e.onChange;r&&t!==p&&r(n)},y=e.prefixCls,g=e.className,x=e.options,C=e.buttonStyle,E=e.disabled,k=e.children,Z=e.size,N=e.style,b=e.id,w=e.onMouseEnter,S=e.onMouseLeave,K=e.onFocus,O=e.onBlur,D=o("radio",y),P="".concat(D,"-group"),R=k;x&&x.length>0&&(R=x.map(function(e){return"string"==typeof e||"number"==typeof e?h.createElement(no,{key:e.toString(),prefixCls:D,disabled:E,value:e,checked:p===e},e):h.createElement(no,{key:"radio-group-value-options-".concat(e.value),prefixCls:D,disabled:e.disabled||E,value:e.value,checked:p===e.value,style:e.style},e.label)}));var M=Z||l,L=f()(P,"".concat(P,"-").concat(void 0===C?"outline":C),(t={},(0,c.Z)(t,"".concat(P,"-").concat(M),M),(0,c.Z)(t,"".concat(P,"-rtl"),"rtl"===a),t),void 0===g?"":g);return h.createElement("div",(0,d.Z)({},(0,e4.Z)(e),{className:L,style:N,onMouseEnter:w,onMouseLeave:S,onFocus:K,onBlur:O,id:b,ref:n}),h.createElement(e6,{value:{onChange:m,value:p,disabled:e.disabled,name:e.name,optionType:e.optionType}},R))}),nl=h.memo(na),ni=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},nc=function(e,n){var t=h.useContext(eP.E_).getPrefixCls,r=e.prefixCls,o=ni(e,["prefixCls"]),a=t("radio",r);return h.createElement(e7,{value:"button"},h.createElement(no,(0,d.Z)({prefixCls:a},o,{type:"radio",ref:n})))},nd=h.forwardRef(nc),ns=no;ns.Button=nd,ns.Group=nl,ns.__ANT_RADIO=!0;var nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},nf=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:nu}))};nf.displayName="HolderOutlined";var np=h.forwardRef(nf),nv=t(15671),nh=t(43144),nm=t(97326),ny=t(60136),ng=t(33643),nx=t(15105),nC=h.createContext(null),nE=function(e){for(var n,t=e.prefixCls,r=e.level,o=e.isStart,a=e.isEnd,l="".concat(t,"-indent-unit"),i=[],d=0;d1&&void 0!==arguments[1]?arguments[1]:null;return t.map(function(d,s){for(var u,f=nz(r?r.pos:"0",s),h=nN(d[a],f),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},p=f.initWrapper,h=f.processEntity,m=f.onProcessFinished,y=f.externalGetKey,g=f.childrenPropName,x=f.fieldNames,C=arguments.length>2?arguments[2]:void 0,E={},k={},Z={posEntities:E,keyEntities:k};return p&&(Z=p(Z)||Z),n=function(e){var n=e.node,t=e.index,r=e.pos,o=e.key,a=e.parentPos,l=e.level,i={node:n,nodes:e.nodes,index:t,key:o,pos:r,level:l},c=nN(o,r);E[r]=i,k[c]=i,i.parent=E[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i)),h&&h(i,Z)},t={externalGetKey:y||C,childrenPropName:g,fieldNames:x},a=(o=("object"===(0,i.Z)(t)?t:{externalGetKey:t})||{}).childrenPropName,l=o.externalGetKey,d=(c=nb(o.fieldNames)).key,s=c.children,u=a||s,l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,n){return nN(e[d],n)},function t(o,a,l,i){var c=o?o[u]:e,d=o?nz(l.pos,a):"0",s=o?[].concat((0,v.Z)(i),[o]):[];if(o){var f=r(o,d);n({node:o,index:a,pos:d,key:f,parentPos:l.node?l.pos:null,level:l.level+1,nodes:s})}c&&c.forEach(function(e,n){t(e,n,{node:o,pos:d,level:l?l.level+1:-1},s)})}(null),m&&m(Z),Z}function nO(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,l=n.checkedKeys,i=n.halfCheckedKeys,c=n.dragOverNodeKey,d=n.dropPosition,s=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==l.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===d,dragOverGapTop:c===e&&-1===d,dragOverGapBottom:c===e&&1===d}}function nD(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,i=e.halfChecked,c=e.dragOver,d=e.dragOverGapTop,s=e.dragOverGapBottom,u=e.pos,f=e.active,v=e.eventKey,h=(0,p.Z)((0,p.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:l,halfChecked:i,dragOver:c,dragOverGapTop:d,dragOverGapBottom:s,pos:u,active:f,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,E.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var nP=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],nR="open",nM="close",nL=function(e){(0,ny.Z)(t,e);var n=(0,ng.Z)(t);function t(){var e;(0,nv.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a=0&&t.splice(r,1),t}function nA(e,n){var t=(e||[]).slice();return -1===t.indexOf(n)&&t.push(n),t}function nH(e){return e.split("-")}function nz(e,n){return"".concat(e,"-").concat(n)}function nF(e,n,t,r,o,a,l,i,c,d){var s,u,f=e.clientX,p=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,m=v.height,y=(("rtl"===d?-1:1)*(((null==o?void 0:o.x)||0)-f)-12)/r,g=i[t.props.eventKey];if(p-1.5?a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:0})?Z=0:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1,{dropPosition:Z,dropLevelOffset:N,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:k,dropContainerKey:0===Z?null:(null===(u=g.parent)||void 0===u?void 0:u.key)||null,dropAllowed:K}}function n_(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function nj(e){var n;if(!e)return null;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,i.Z)(e))return(0,E.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function nB(e,n){var t=new Set;return(e||[]).forEach(function(e){!function e(r){if(!t.has(r)){var o=n[r];if(o){t.add(r);var a=o.parent;!o.node.disabled&&a&&e(a.key)}}}(e)}),(0,v.Z)(t)}nT.displayName="TreeNode",nT.defaultProps={title:"---"},nT.isTreeNode=1;var nV=t(73453),nW=t(62874),nU=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nG=function(e,n){var t=e.className,r=e.style,o=e.motion,a=e.motionNodes,l=e.motionType,i=e.onMotionStart,c=e.onMotionEnd,u=e.active,p=e.treeNodeRequiredProps,v=(0,w.Z)(e,nU),m=h.useState(!0),y=(0,s.Z)(m,2),g=y[0],x=y[1],C=h.useContext(nC).prefixCls,E=h.useRef(!1),k=function(){E.current||c(),E.current=!0};return((0,h.useEffect)(function(){a&&"hide"===l&&g&&x(!1)},[a]),(0,h.useEffect)(function(){return a&&i(),function(){a&&k()}},[]),a)?h.createElement(nW.Z,(0,d.Z)({ref:n,visible:g},o,{motionAppear:"show"===l,onAppearEnd:k,onLeaveEnd:k}),function(e,n){var t=e.className,r=e.style;return h.createElement("div",{ref:n,className:f()("".concat(C,"-treenode-motion"),t),style:r},a.map(function(e){var n=(0,d.Z)({},e.data),t=e.title,r=e.key,o=e.isStart,a=e.isEnd;delete n.children;var l=nO(r,p);return h.createElement(nT,(0,d.Z)({},n,l,{title:t,active:u,data:e.data,key:r,isStart:o,isEnd:a}))}))}):h.createElement(nT,(0,d.Z)({domRef:n,className:t,style:r},v,{active:u}))};nG.displayName="MotionTreeNode";var nX=h.forwardRef(nG);function nq(e,n,t){var r=e[e.findIndex(function(e){return e.key===t})+1],o=n.findIndex(function(e){return e.key===t});if(r){var a=n.findIndex(function(e){return e.key===r.key});return n.slice(o+1,a)}return n.slice(o+1)}var nY=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],n$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},nJ=function(){},nQ="RC_TREE_MOTION_".concat(Math.random()),n0={key:nQ},n1={key:nQ,level:0,index:0,pos:"0",node:n0,nodes:[n0]},n2={parent:null,children:[],pos:n1.pos,data:n0,title:null,key:nQ,isStart:[],isEnd:[]};function n3(e,n,t,r){return!1!==n&&t?e.slice(0,Math.ceil(t/r)+1):e}function n4(e){return nN(e.key,e.pos)}var n8=h.forwardRef(function(e,n){var t=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,i=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,v=e.dragging,m=e.dragOverNodeKey,y=e.dropPosition,g=e.motion,x=e.height,C=e.itemHeight,E=e.virtual,k=e.focusable,Z=e.activeItem,N=e.focused,b=e.tabIndex,S=e.onKeyDown,K=e.onFocus,O=e.onBlur,D=e.onActiveChange,P=e.onListChangeStart,R=e.onListChangeEnd,M=(0,w.Z)(e,nY),L=h.useRef(null),T=h.useRef(null);h.useImperativeHandle(n,function(){return{scrollTo:function(e){L.current.scrollTo(e)},getIndentWidth:function(){return T.current.offsetWidth}}});var I=h.useState(o),A=(0,s.Z)(I,2),H=A[0],z=A[1],F=h.useState(r),_=(0,s.Z)(F,2),j=_[0],B=_[1],V=h.useState(r),W=(0,s.Z)(V,2),U=W[0],G=W[1],X=h.useState([]),q=(0,s.Z)(X,2),Y=q[0],$=q[1],J=h.useState(null),Q=(0,s.Z)(J,2),ee=Q[0],en=Q[1],et=h.useRef(r);function er(){var e=et.current;B(e),G(e),$([]),en(null),R()}et.current=r,h.useEffect(function(){z(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach(function(e){t.set(e,!0)});var r=n.filter(function(e){return!t.has(e)});return 1===r.length?r[0]:null}return t ").concat(n);return n}(Z)),h.createElement("div",null,h.createElement("input",{style:n$,disabled:!1===k||p,tabIndex:!1!==k?b:null,onKeyDown:S,onFocus:K,onBlur:O,value:"",onChange:nJ,"aria-label":"for screen reader"})),h.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},h.createElement("div",{className:"".concat(t,"-indent")},h.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),h.createElement(nV.Z,(0,d.Z)({},M,{data:g?U:r,itemKey:n4,height:x,fullHeight:!1,virtual:E,itemHeight:C,prefixCls:"".concat(t,"-list"),ref:L,onVisibleChange:function(e,n){var t=new Set(e);n.filter(function(e){return!t.has(e)}).some(function(e){return n4(e)===nQ})&&er()}}),function(e){var n=e.pos,t=(0,d.Z)({},e.data),r=e.title,o=e.key,a=e.isStart,l=e.isEnd,i=nN(o,n);delete t.key,delete t.children;var c=nO(i,eo);return h.createElement(nX,(0,d.Z)({},t,c,{title:r,active:!!Z&&o===Z.key,pos:n,data:e.data,isStart:a,isEnd:l,motion:g,motionNodes:o===nQ?Y:null,motionType:ee,onMotionStart:P,onMotionEnd:er,treeNodeRequiredProps:eo,onMouseMove:function(){D(null)}}))}))});function n6(e,n){var t=new Set;return e.forEach(function(e){n.has(e)||t.add(e)}),t}function n5(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!!(t||r)||!1===o}function n7(e,n,t,r){var o,a=[];o=r||n5;var l=new Set(e.filter(function(e){var n=!!t[e];return n||a.push(e),n})),i=new Map,c=0;return Object.keys(t).forEach(function(e){var n=t[e],r=n.level,o=i.get(r);o||(o=new Set,i.set(r,o)),o.add(n),c=Math.max(c,r)}),(0,E.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,l=0;l<=t;l+=1)(n.get(l)||new Set).forEach(function(e){var n=e.key,t=e.node,a=e.children,l=void 0===a?[]:a;o.has(n)&&!r(t)&&l.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var i=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach(function(e){var n=e.parent;if(!(r(e.node)||!e.parent||i.has(e.parent.key))){if(r(e.parent.node)){i.add(n.key);return}var t=!0,l=!1;(n.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var n=e.key,r=o.has(n);t&&!r&&(t=!1),!l&&(r||a.has(n))&&(l=!0)}),t&&o.add(n.key),l&&a.add(n.key),i.add(n.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(n6(a,o))}}(l,i,c,o):function(e,n,t,r,o){for(var a=new Set(e),l=new Set(n),i=0;i<=r;i+=1)(t.get(i)||new Set).forEach(function(e){var n=e.key,t=e.node,r=e.children,i=void 0===r?[]:r;a.has(n)||l.has(n)||o(t)||i.filter(function(e){return!o(e.node)}).forEach(function(e){a.delete(e.key)})});l=new Set;for(var c=new Set,d=r;d>=0;d-=1)(t.get(d)||new Set).forEach(function(e){var n=e.parent;if(!(o(e.node)||!e.parent||c.has(e.parent.key))){if(o(e.parent.node)){c.add(n.key);return}var t=!0,r=!1;(n.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var n=e.key,o=a.has(n);t&&!o&&(t=!1),!r&&(o||l.has(n))&&(r=!0)}),t||a.delete(n.key),r&&l.add(n.key),c.add(n.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(n6(l,a))}}(l,n.halfCheckedKeys,i,c,o)}n8.displayName="NodeList";var n9=function(e){(0,ny.Z)(t,e);var n=(0,ng.Z)(t);function t(){var e;(0,nv.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:[];n.forEach(function(n){var t=n.key,o=n.children;r.push(t),e(o)})}(l[c].children),r),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(d),window.addEventListener("dragend",e.onWindowDragEnd),null==i||i({event:n,node:nD(t.props)})},e.onNodeDragEnter=function(n,t){var r=e.state,o=r.expandedKeys,a=r.keyEntities,l=r.dragChildrenKeys,i=r.flattenNodes,c=r.indent,d=e.props,s=d.onDragEnter,u=d.onExpand,f=d.allowDrop,p=d.direction,h=t.props,m=h.pos,y=h.eventKey,g=(0,nm.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==y&&(e.currentMouseOverDroppableNodeKey=y),!g){e.resetDragState();return}var x=nF(n,g,t,c,e.dragStartMousePosition,f,i,a,o,p),C=x.dropPosition,E=x.dropLevelOffset,k=x.dropTargetKey,Z=x.dropContainerKey,N=x.dropTargetPos,b=x.dropAllowed,w=x.dragOverNodeKey;if(-1!==l.indexOf(k)||!b||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(n){clearTimeout(e.delayedDragEnterLogic[n])}),g.props.eventKey!==t.props.eventKey&&(n.persist(),e.delayedDragEnterLogic[m]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var r=(0,v.Z)(o),l=a[t.props.eventKey];l&&(l.children||[]).length&&(r=nA(o,t.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null==u||u(r,{node:nD(t.props),expanded:!0,nativeEvent:n.nativeEvent})}},800)),g.props.eventKey===k&&0===E)){e.resetDragState();return}e.setState({dragOverNodeKey:w,dropPosition:C,dropLevelOffset:E,dropTargetKey:k,dropContainerKey:Z,dropTargetPos:N,dropAllowed:b}),null==s||s({event:n,node:nD(t.props),expandedKeys:o})},e.onNodeDragOver=function(n,t){var r=e.state,o=r.dragChildrenKeys,a=r.flattenNodes,l=r.keyEntities,i=r.expandedKeys,c=r.indent,d=e.props,s=d.onDragOver,u=d.allowDrop,f=d.direction,p=(0,nm.Z)(e).dragNode;if(p){var v=nF(n,p,t,c,e.dragStartMousePosition,u,a,l,i,f),h=v.dropPosition,m=v.dropLevelOffset,y=v.dropTargetKey,g=v.dropContainerKey,x=v.dropAllowed,C=v.dropTargetPos,E=v.dragOverNodeKey;-1===o.indexOf(y)&&x&&(p.props.eventKey===y&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&m===e.state.dropLevelOffset&&y===e.state.dropTargetKey&&g===e.state.dropContainerKey&&C===e.state.dropTargetPos&&x===e.state.dropAllowed&&E===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:m,dropTargetKey:y,dropContainerKey:g,dropTargetPos:C,dropAllowed:x,dragOverNodeKey:E}),null==s||s({event:n,node:nD(t.props)}))}},e.onNodeDragLeave=function(n,t){e.currentMouseOverDroppableNodeKey!==t.props.eventKey||n.currentTarget.contains(n.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:n,node:nD(t.props)})},e.onWindowDragEnd=function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(n,t){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:n,node:nD(t.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(n,t){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.state,l=a.dragChildrenKeys,i=a.dropPosition,c=a.dropTargetKey,d=a.dropTargetPos;if(a.dropAllowed){var s=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var u=(0,p.Z)((0,p.Z)({},nO(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:e.state.keyEntities[c].node}),f=-1!==l.indexOf(c);(0,E.ZP)(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=nH(d),h={event:n,node:nD(u),dragNode:e.dragNode?nD(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(l),dropToGap:0!==i,dropPosition:i+Number(v[v.length-1])};o||null==s||s(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,l=t.expanded,i=t.key;if(!t.isLeaf&&!n.shiftKey&&!n.metaKey&&!n.ctrlKey){var c=a.filter(function(e){return e.key===i})[0],d=nD((0,p.Z)((0,p.Z)({},nO(i,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(l?nI(o,i):nA(o,i)),e.onNodeExpand(n,d)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,l=o.fieldNames,i=e.props,c=i.onSelect,d=i.multiple,s=t.selected,u=t[l.key],f=!s,p=(r=f?d?nA(r,u):[u]:nI(r,u)).map(function(e){var n=a[e];return n?n.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,l=a.keyEntities,i=a.checkedKeys,c=a.halfCheckedKeys,d=e.props,s=d.checkStrictly,u=d.onCheck,f=t.key,p={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(s){var h=r?nA(i,f):nI(i,f);o={checked:h,halfChecked:nI(c,f)},p.checkedNodes=h.map(function(e){return l[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:h})}else{var m=n7([].concat((0,v.Z)(i),[f]),!0,l),y=m.checkedKeys,g=m.halfCheckedKeys;if(!r){var x=new Set(y);x.delete(f);var C=n7(Array.from(x),{checked:!1,halfCheckedKeys:g},l);y=C.checkedKeys,g=C.halfCheckedKeys}o=y,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=g,y.forEach(function(e){var n=l[e];if(n){var t=n.node,r=n.pos;p.checkedNodes.push(t),p.checkedNodesPositions.push({node:t,pos:r})}}),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:g})}null==u||u(o,p)},e.onNodeLoad=function(n){var t=n.key,r=new Promise(function(r,o){e.setState(function(a){var l=a.loadedKeys,i=a.loadingKeys,c=void 0===i?[]:i,d=e.props,s=d.loadData,u=d.onLoad;return s&&-1===(void 0===l?[]:l).indexOf(t)&&-1===c.indexOf(t)?(s(n).then(function(){var o=nA(e.state.loadedKeys,t);null==u||u(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState(function(e){return{loadingKeys:nI(e.loadingKeys,t)}}),r()}).catch(function(n){if(e.setState(function(e){return{loadingKeys:nI(e.loadingKeys,t)}}),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,E.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:nA(a,t)}),r()}o(n)}),{loadingKeys:nA(c,t)}):null})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null==r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null==r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,l={};Object.keys(n).forEach(function(t){if(t in e.props){a=!1;return}o=!0,l[t]=n[t]}),o&&(!t||a)&&e.setState((0,p.Z)((0,p.Z)({},l),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,nh.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,r=t.focused,o=t.flattenNodes,a=t.keyEntities,l=t.draggingNodeKey,s=t.activeKey,u=t.dropLevelOffset,p=t.dropContainerKey,v=t.dropTargetKey,m=t.dropPosition,g=t.dragOverNodeKey,x=t.indent,C=this.props,E=C.prefixCls,k=C.className,Z=C.style,N=C.showLine,b=C.focusable,w=C.tabIndex,S=C.selectable,K=C.showIcon,O=C.icon,D=C.switcherIcon,P=C.draggable,R=C.checkable,M=C.checkStrictly,L=C.disabled,T=C.motion,I=C.loadData,A=C.filterTreeNode,H=C.height,z=C.itemHeight,F=C.virtual,_=C.titleRender,j=C.dropIndicatorRender,B=C.onContextMenu,V=C.onScroll,W=C.direction,U=C.rootClassName,G=C.rootStyle,X=(0,y.Z)(this.props,{aria:!0,data:!0});return P&&(n="object"===(0,i.Z)(P)?P:"function"==typeof P?{nodeDraggable:P}:{}),h.createElement(nC.Provider,{value:{prefixCls:E,selectable:S,showIcon:K,icon:O,switcherIcon:D,draggable:n,draggingNodeKey:l,checkable:R,checkStrictly:M,disabled:L,keyEntities:a,dropLevelOffset:u,dropContainerKey:p,dropTargetKey:v,dropPosition:m,dragOverNodeKey:g,indent:x,direction:W,dropIndicatorRender:j,loadData:I,filterTreeNode:A,titleRender:_,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},h.createElement("div",{role:"tree",className:f()(E,k,U,(e={},(0,c.Z)(e,"".concat(E,"-show-line"),N),(0,c.Z)(e,"".concat(E,"-focused"),r),(0,c.Z)(e,"".concat(E,"-active-focused"),null!==s),e)),style:G},h.createElement(n8,(0,d.Z)({ref:this.listRef,prefixCls:E,style:Z,data:o,disabled:L,selectable:S,checkable:!!R,motion:T,dragging:null!==l,height:H,itemHeight:z,virtual:F,focusable:b,focused:r,tabIndex:void 0===w?0:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:V},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r,o=n.prevProps,a={prevProps:e};function l(n){return!o&&n in e||o&&o[n]!==e[n]}var i=n.fieldNames;if(l("fieldNames")&&(i=nb(e.fieldNames),a.fieldNames=i),l("treeData")?t=e.treeData:l("children")&&((0,E.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=nw(e.children)),t){a.treeData=t;var d=nK(t,{fieldNames:i});a.keyEntities=(0,p.Z)((0,c.Z)({},nQ,n1),d.keyEntities)}var s=a.keyEntities||n.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?nB(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=(0,p.Z)({},s);delete u[nQ],a.expandedKeys=Object.keys(u).map(function(e){return u[e].key})}else!o&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?nB(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var f=nS(t||n.treeData,a.expandedKeys||n.expandedKeys,i);a.flattenNodes=f}if(e.selectable&&(l("selectedKeys")?a.selectedKeys=n_(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(a.selectedKeys=n_(e.defaultSelectedKeys,e))),e.checkable&&(l("checkedKeys")?r=nj(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?r=nj(e.defaultCheckedKeys)||{}:t&&(r=nj(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),r)){var v=r,h=v.checkedKeys,m=void 0===h?[]:h,y=v.halfCheckedKeys,g=void 0===y?[]:y;if(!e.checkStrictly){var x=n7(m,!0,s);m=x.checkedKeys,g=x.halfCheckedKeys}a.checkedKeys=m,a.halfCheckedKeys=g}return l("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(h.Component);n9.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case -1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return h.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},n9.TreeNode=nT;var te=t(33603),tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},tt=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tn}))};tt.displayName="FileOutlined";var tr=h.forwardRef(tt),to={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ta=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:to}))};ta.displayName="FolderOpenOutlined";var tl=h.forwardRef(ta),ti={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},tc=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:ti}))};tc.displayName="FolderOutlined";var td=h.forwardRef(tc);function ts(e,n){e.forEach(function(e){var t=e.key,r=e.children;!1!==n(t,e)&&ts(r||[],n)})}function tu(e,n){var t=(0,v.Z)(n),r=[];return ts(e,function(e,n){var o=t.indexOf(e);return -1!==o&&(r.push(n),t.splice(o,1)),!!t.length}),r}(a=l||(l={}))[a.None=0]="None",a[a.Start=1]="Start",a[a.End=2]="End";var tf=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};function tp(e){var n=e.isLeaf,t=e.expanded;return n?h.createElement(tr,null):t?h.createElement(tl,null):h.createElement(td,null)}function tv(e){var n=e.treeData,t=e.children;return n||nw(t)}var th=function(e,n){var t=e.defaultExpandAll,r=e.defaultExpandParent,o=e.defaultExpandedKeys,a=tf(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),i=h.useRef(),u=h.useRef(),p=function(){var e=nK(tv(a)).keyEntities;return t?Object.keys(e):r?nB(a.expandedKeys||o||[],e):a.expandedKeys||o},m=h.useState(a.selectedKeys||a.defaultSelectedKeys||[]),y=(0,s.Z)(m,2),g=y[0],x=y[1],C=h.useState(function(){return p()}),E=(0,s.Z)(C,2),k=E[0],Z=E[1];h.useEffect(function(){"selectedKeys"in a&&x(a.selectedKeys)},[a.selectedKeys]),h.useEffect(function(){"expandedKeys"in a&&Z(a.expandedKeys)},[a.expandedKeys]);var N=function(e,n){var t;return"expandedKeys"in a||Z(e),null===(t=a.onExpand)||void 0===t?void 0:t.call(a,e,n)},b=function(e,n){var t,r,o,c,s,f,p,h,m,y=a.multiple,g=n.node,C=n.nativeEvent,E=g.key,Z=void 0===E?"":E,N=tv(a),b=(0,d.Z)((0,d.Z)({},n),{selected:!0}),w=(null==C?void 0:C.ctrlKey)||(null==C?void 0:C.metaKey),S=null==C?void 0:C.shiftKey;y&&w?(m=e,i.current=Z,u.current=m,b.selectedNodes=tu(N,m)):y&&S?(m=Array.from(new Set([].concat((0,v.Z)(u.current||[]),(0,v.Z)((r=(t={treeData:N,expandedKeys:k,startKey:Z,endKey:i.current}).treeData,o=t.expandedKeys,c=t.startKey,s=t.endKey,f=[],p=l.None,c&&c===s?[c]:c&&s?(ts(r,function(e){if(p===l.End)return!1;if(e===c||e===s){if(f.push(e),p===l.None)p=l.Start;else if(p===l.Start)return p=l.End,!1}else p===l.Start&&f.push(e);return o.includes(e)}),f):[]))))),b.selectedNodes=tu(N,m)):(m=[Z],i.current=Z,u.current=m,b.selectedNodes=tu(N,m)),null===(h=a.onSelect)||void 0===h||h.call(a,m,b),"selectedKeys"in a||x(m)},w=h.useContext(eP.E_),S=w.getPrefixCls,K=w.direction,O=a.prefixCls,D=a.className,P=a.showIcon,R=a.expandAction,M=tf(a,["prefixCls","className","showIcon","expandAction"]),L=S("tree",O),T=f()("".concat(L,"-directory"),(0,c.Z)({},"".concat(L,"-directory-rtl"),"rtl"===K),D);return h.createElement(tD,(0,d.Z)({icon:tp,ref:n,blockNode:!0},M,{showIcon:void 0===P||P,expandAction:void 0===R?"click":R,prefixCls:L,className:T,expandedKeys:k,selectedKeys:g,onSelect:b,onExpand:N}))},tm=h.forwardRef(th);function ty(e){var n,t=e.dropPosition,r=e.dropLevelOffset,o=e.prefixCls,a=e.indent,l=e.direction,i=void 0===l?"ltr":l,d="ltr"===i?"left":"right",s=(n={},(0,c.Z)(n,d,-r*a+4),(0,c.Z)(n,"ltr"===i?"right":"left",0),n);switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[d]=a+4}return h.createElement("div",{style:s,className:"".concat(o,"-drop-indicator")})}var tg={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},tx=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tg}))};tx.displayName="CaretDownFilled";var tC=h.forwardRef(tx),tE=t(50888),tk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},tZ=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tk}))};tZ.displayName="MinusSquareOutlined";var tN=h.forwardRef(tZ),tb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},tw=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tb}))};tw.displayName="PlusSquareOutlined";var tS=h.forwardRef(tw),tK=t(96159),tO=h.forwardRef(function(e,n){var t,r=h.useContext(eP.E_),o=r.getPrefixCls,a=r.direction,l=r.virtual,s=e.prefixCls,u=e.className,p=e.showIcon,v=void 0!==p&&p,m=e.showLine,y=e.switcherIcon,g=e.blockNode,x=void 0!==g&&g,C=e.children,E=e.checkable,k=void 0!==E&&E,Z=e.selectable,N=void 0===Z||Z,b=e.draggable,w=e.motion,S=void 0===w?(0,d.Z)((0,d.Z)({},te.ZP),{motionAppear:!1}):w,K=o("tree",s),O=(0,d.Z)((0,d.Z)({},e),{checkable:k,selectable:N,showIcon:v,motion:S,blockNode:x,showLine:Boolean(m),dropIndicatorRender:ty}),D=h.useMemo(function(){if(!b)return!1;var e={};switch((0,i.Z)(b)){case"function":e.nodeDraggable=b;break;case"object":e=(0,d.Z)({},b)}return!1!==e.icon&&(e.icon=e.icon||h.createElement(np,null)),e},[b]);return h.createElement(n9,(0,d.Z)({itemHeight:20,ref:n,virtual:l},O,{prefixCls:K,className:f()((t={},(0,c.Z)(t,"".concat(K,"-icon-hide"),!v),(0,c.Z)(t,"".concat(K,"-block-node"),x),(0,c.Z)(t,"".concat(K,"-unselectable"),!N),(0,c.Z)(t,"".concat(K,"-rtl"),"rtl"===a),t),u),direction:a,checkable:k?h.createElement("span",{className:"".concat(K,"-checkbox-inner")}):k,selectable:N,switcherIcon:function(e){return function(e,n,t,r){var o,a=r.isLeaf,l=r.expanded;if(r.loading)return h.createElement(tE.Z,{className:"".concat(e,"-switcher-loading-icon")});if(t&&"object"===(0,i.Z)(t)&&(o=t.showLeafIcon),a){if(!t)return null;if("boolean"!=typeof o&&o){var c="function"==typeof o?o(r):o;return(0,tK.l$)(c)?(0,tK.Tm)(c,{className:f()(c.props.className||"","".concat(e,"-switcher-line-custom-icon"))}):c}return o?h.createElement(tr,{className:"".concat(e,"-switcher-line-icon")}):h.createElement("span",{className:"".concat(e,"-switcher-leaf-line")})}var d="".concat(e,"-switcher-icon"),s="function"==typeof n?n(r):n;return(0,tK.l$)(s)?(0,tK.Tm)(s,{className:f()(s.props.className||"",d)}):s||(t?l?h.createElement(tN,{className:"".concat(e,"-switcher-line-icon")}):h.createElement(tS,{className:"".concat(e,"-switcher-line-icon")}):h.createElement(tC,{className:d}))}(K,y,m,e)},draggable:D}),C)});tO.TreeNode=nT,tO.DirectoryTree=tm;var tD=tO,tP=t(57838),tR=t(68795),tM=t(69677),tL=function(e){var n=e.value,t=e.onChange,r=e.filterSearch,o=e.tablePrefixCls,a=e.locale;return r?h.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},h.createElement(tM.Z,{prefix:h.createElement(tR.Z,null),placeholder:a.filterSearchPlaceholder,onChange:t,value:n,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null},tT=function(e){return h.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};function tI(e,n){return("string"==typeof n||"number"==typeof n)&&(null==n?void 0:n.toString().toLowerCase().includes(e.trim().toLowerCase()))}var tA=function(e){var n,t,r,o,a,l,i=e.tablePrefixCls,u=e.prefixCls,p=e.column,v=e.dropdownPrefixCls,m=e.columnKey,y=e.filterMultiple,g=e.filterMode,x=e.filterSearch,C=void 0!==x&&x,E=e.filterState,k=e.triggerFilter,Z=e.locale,N=e.children,b=e.getPopupContainer,w=p.filterDropdownOpen,S=p.onFilterDropdownOpenChange,K=p.filterDropdownVisible,O=p.onFilterDropdownVisibleChange,D=p.filterResetToDefaultFilteredValue,P=p.defaultFilteredValue,R=h.useState(!1),M=(0,s.Z)(R,2),L=M[0],T=M[1],I=!!(E&&((null===(r=E.filteredKeys)||void 0===r?void 0:r.length)||E.forceFiltered)),A=function(e){T(e),null==S||S(e),null==O||O(e)};o="boolean"==typeof w?w:"boolean"==typeof K?K:L;var H=null==E?void 0:E.filteredKeys,z=(n=h.useRef(H||[]),t=(0,tP.Z)(),[function(){return n.current},function(e){n.current=e,t()}]),F=(0,s.Z)(z,2),_=F[0],j=F[1],B=function(e){j(e.selectedKeys)},V=function(e,n){var t=n.node,r=n.checked;y?B({selectedKeys:e}):B({selectedKeys:r&&t.key?[t.key]:[]})};h.useEffect(function(){L&&B({selectedKeys:H||[]})},[H]);var W=h.useState([]),U=(0,s.Z)(W,2),G=U[0],X=U[1],q=function(e){X(e)},Y=h.useState(""),$=(0,s.Z)(Y,2),J=$[0],Q=$[1],ee=function(e){Q(e.target.value)};h.useEffect(function(){L||Q("")},[L]);var en=function(e){var n=e&&e.length?e:null;if(null===n&&(!E||!E.filteredKeys)||eY()(n,null==E?void 0:E.filteredKeys))return null;k({column:p,key:m,filteredKeys:n})},et=function(){A(!1),en(_())},er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},n=e.confirm,t=e.closeDropdown;n&&en([]),t&&A(!1),Q(""),D?j((P||[]).map(function(e){return String(e)})):j([])},eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e.closeDropdown&&A(!1),en(_())},ea=function(e){e&&void 0!==H&&j(H||[]),A(e),e||p.filterDropdown||et()},el=f()((0,c.Z)({},"".concat(v,"-menu-without-submenu"),!(p.filters||[]).some(function(e){return e.children}))),ei=function(e){e.target.checked?j(tz(null==p?void 0:p.filters).map(function(e){return String(e)})):j([])},ec=function e(n){var t;return(0,d.Z)((0,d.Z)({},n),{text:n.title,value:n.key,children:(null===(t=n.children)||void 0===t?void 0:t.map(function(n){return e(n)}))||[]})};if("function"==typeof p.filterDropdown)a=p.filterDropdown({prefixCls:"".concat(v,"-custom"),setSelectedKeys:function(e){return B({selectedKeys:e})},selectedKeys:_(),confirm:eo,clearFilters:er,filters:p.filters,visible:o,close:function(){A(!1)}});else if(p.filterDropdown)a=p.filterDropdown;else{var ed=_()||[];a=h.createElement(h.Fragment,null,0===(p.filters||[]).length?h.createElement(e0.Z,{image:e0.Z.PRESENTED_IMAGE_SIMPLE,description:Z.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===(void 0===g?"menu":g)?h.createElement(h.Fragment,null,h.createElement(tL,{filterSearch:C,value:J,onChange:ee,tablePrefixCls:i,locale:Z}),h.createElement("div",{className:"".concat(i,"-filter-dropdown-tree")},y?h.createElement(eJ.Z,{checked:ed.length===tz(p.filters).length,indeterminate:ed.length>0&&ed.lengthn.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},tV=t(84506),tW=t(80882),tU={},tG="SELECT_ALL",tX="SELECT_INVERT",tq="SELECT_NONE",tY=[],t$=t(39398),tJ=t(10010),tQ=t(94199),t0="ascend",t1="descend";function t2(e){return"object"===(0,i.Z)(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t3(e){return"function"==typeof e?e:!!e&&"object"===(0,i.Z)(e)&&!!e.compare&&e.compare}function t4(e,n,t){var r=[];function o(e,n){r.push({column:e,key:ej(e,n),multiplePriority:t2(e),sortOrder:e.sortOrder})}return(e||[]).forEach(function(e,a){var l=eB(a,t);e.children?("sortOrder"in e&&o(e,l),r=[].concat((0,v.Z)(r),(0,v.Z)(t4(e.children,n,l)))):e.sorter&&("sortOrder"in e?o(e,l):n&&e.defaultSortOrder&&r.push({column:e,key:ej(e,l),multiplePriority:t2(e),sortOrder:e.defaultSortOrder}))}),r}function t8(e){var n=e.column;return{column:n,order:e.sortOrder,field:n.dataIndex,columnKey:n.key}}function t6(e){var n=e.filter(function(e){return e.sortOrder}).map(t8);return 0===n.length&&e.length?(0,d.Z)((0,d.Z)({},t8(e[e.length-1])),{column:void 0}):n.length<=1?n[0]||{}:n}function t5(e,n,t){var r=n.slice().sort(function(e,n){return n.multiplePriority-e.multiplePriority}),o=e.slice(),a=r.filter(function(e){var n=e.column.sorter,t=e.sortOrder;return t3(n)&&t});return a.length?o.sort(function(e,n){for(var t=0;t2&&void 0!==arguments[2]&&arguments[2],r=(0,d.Z)((0,d.Z)({},es),e);t&&(es.resetPagination(),r.pagination.current&&(r.pagination.current=1),y&&y.onChange&&y.onChange(1,r.pagination.pageSize)),M&&!1!==M.scrollToFirstRowOnChange&&ea.body.current&&function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=n.callback,o=n.duration,a=void 0===o?450:o,l=(void 0===t?function(){return window}:t)(),i=function(e,n){if("undefined"==typeof window)return 0;var t,r,o=n?"scrollTop":"scrollLeft",a=0;return ez(e)?a=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!ez(e)&&"number"!=typeof a&&(a=null===(r=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===r?void 0:r[o]),a}(l,!0),c=Date.now(),d=function e(){var n,t,o=Date.now()-c,d=(n=o>a?a:o,t=0-i,(n/=a/2)<1?t/2*n*n*n+i:t/2*((n-=2)*n*n+2)+i);ez(l)?l.scrollTo(window.pageXOffset,d):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=d:l.scrollTop=d,o0?e7:e8}),na=Math.ceil((e7||e8)/no.pageSize),no.current>na&&(no.current=na||1),nl=function(e,n){nr({current:null!=e?e:1,pageSize:n||no.pageSize})},ni=function(e,n){var t;y&&(null===(t=y.onChange)||void 0===t||t.call(y,e,n)),nl(e,n),eK(e,n||(null==no?void 0:no.pageSize))},!1===y?[{},function(){}]:[(0,d.Z)((0,d.Z)({},no),{onChange:ni}),nl]),e_=(0,s.Z)(eF,2),eW=e_[0],eU=e_[1];es.pagination=!1===y?{}:(nc=y,nu={current:(nd=eW).current,pageSize:nd.pageSize},Object.keys(nc&&"object"===(0,i.Z)(nc)?nc:{}).forEach(function(e){var n=nd[e];"function"!=typeof n&&(nu[e]=n)}),nu),es.resetPagination=eU;var eG=h.useMemo(function(){if(!1===y||!eW.pageSize)return eN;var e=eW.current,n=void 0===e?1:e,t=eW.total,r=eW.pageSize,o=void 0===r?10:r;return eN.lengtho?eN.slice((n-1)*o,n*o):eN:eN.slice((n-1)*o,n*o)},[!!y,eN,eW&&eW.current,eW&&eW.pageSize,eW&&eW.total]),eX=(nf={prefixCls:J,data:eN,pageData:eG,getRowKey:ei,getRecordByKey:ed,expandType:eo,childrenColumnName:er,locale:q,getPopupContainer:w},nv=(np=g||{}).preserveSelectedRowKeys,nh=np.selectedRowKeys,nm=np.defaultSelectedRowKeys,ny=np.getCheckboxProps,ng=np.onChange,nC=np.onSelect,nE=np.onSelectAll,nk=np.onSelectInvert,nZ=np.onSelectNone,nN=np.onSelectMultiple,nb=np.columnWidth,nw=np.type,nS=np.selections,nO=np.fixed,nD=np.renderCell,nP=np.hideSelectAll,nM=void 0===(nR=np.checkStrictly)||nR,nL=nf.prefixCls,nT=nf.data,nH=nf.pageData,nz=nf.getRecordByKey,nF=nf.getRowKey,n_=nf.expandType,nj=nf.childrenColumnName,nB=nf.locale,nV=nf.getPopupContainer,nW=(0,e3.Z)(nh||nm||tY,{value:nh}),nG=(nU=(0,s.Z)(nW,2))[0],nX=nU[1],nq=h.useRef(new Map),nY=(0,h.useCallback)(function(e){if(nv){var n=new Map;e.forEach(function(e){var t=nz(e);!t&&nq.current.has(e)&&(t=nq.current.get(e)),n.set(e,t)}),nq.current=n}},[nz,nv]),h.useEffect(function(){nY(nG)},[nG]),n$=(0,h.useMemo)(function(){return nM?{keyEntities:null}:nK(nT,{externalGetKey:nF,childrenPropName:nj})},[nT,nF,nM,nj]).keyEntities,nJ=(0,h.useMemo)(function(){return function e(n,t){var r=[];return(n||[]).forEach(function(n){r.push(n),n&&"object"===(0,i.Z)(n)&&t in n&&(r=[].concat((0,v.Z)(r),(0,v.Z)(e(n[t],t))))}),r}(nH,nj)},[nH,nj]),nQ=(0,h.useMemo)(function(){var e=new Map;return nJ.forEach(function(n,t){var r=nF(n,t),o=(ny?ny(n):null)||{};e.set(r,o)}),e},[nJ,nF,ny]),n0=(0,h.useCallback)(function(e){var n;return!!(null===(n=nQ.get(nF(e)))||void 0===n?void 0:n.disabled)},[nQ,nF]),n1=(0,h.useMemo)(function(){if(nM)return[nG||[],[]];var e=n7(nG,!0,n$,n0);return[e.checkedKeys||[],e.halfCheckedKeys]},[nG,nM,n$,n0]),n3=(n2=(0,s.Z)(n1,2))[0],n4=n2[1],n8=(0,h.useMemo)(function(){var e="radio"===nw?n3.slice(0,1):n3;return new Set(e)},[n3,nw]),n6=(0,h.useMemo)(function(){return"radio"===nw?new Set:new Set(n4)},[n4,nw]),n5=(0,h.useState)(null),te=(n9=(0,s.Z)(n5,2))[0],tn=n9[1],h.useEffect(function(){g||nX(tY)},[!!g]),tt=(0,h.useCallback)(function(e,n){var t,r;nY(e),nv?(t=e,r=e.map(function(e){return nq.current.get(e)})):(t=[],r=[],e.forEach(function(e){var n=nz(e);void 0!==n&&(t.push(e),r.push(n))})),nX(t),null==ng||ng(t,r,{type:n})},[nX,nz,ng,nv]),tr=(0,h.useCallback)(function(e,n,t,r){if(nC){var o=t.map(function(e){return nz(e)});nC(nz(e),n,o,r)}tt(t,"single")},[nC,nz,tt]),to=(0,h.useMemo)(function(){return!nS||nP?null:(!0===nS?[tG,tX,tq]:nS).map(function(e){return e===tG?{key:"all",text:nB.selectionAll,onSelect:function(){tt(nT.map(function(e,n){return nF(e,n)}).filter(function(e){var n=nQ.get(e);return!(null==n?void 0:n.disabled)||n8.has(e)}),"all")}}:e===tX?{key:"invert",text:nB.selectInvert,onSelect:function(){var e=new Set(n8);nH.forEach(function(n,t){var r=nF(n,t),o=nQ.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});var n=Array.from(e);nk&&nk(n),tt(n,"invert")}}:e===tq?{key:"none",text:nB.selectNone,onSelect:function(){null==nZ||nZ(),tt(Array.from(n8).filter(function(e){var n=nQ.get(e);return null==n?void 0:n.disabled}),"none")}}:e}).map(function(e){return(0,d.Z)((0,d.Z)({},e),{onSelect:function(){for(var n,t=arguments.length,r=Array(t),o=0;o0&&g&&(ee.expandIconColumnIndex-=1),"number"!=typeof ee.indentSize&&(ee.indentSize="number"==typeof R?R:15);var e1=h.useCallback(function(e){return ew(eY(eE(ev(e))))},[ev,eE,eY]);if(!1!==y&&(null==eW?void 0:eW.total)){td=eW.size?eW.size:"small"===X||"middle"===X?"small":void 0;var e2,e4,e8,e6,e5,e7,e9,ne,nn,nt,nr,no,na,nl,ni,nc,nd,nu,nf,np,nv,nh,nm,ny,ng,nC,nE,nk,nZ,nN,nb,nw,nS,nO,nD,nP,nR,nM,nL,nT,nH,nz,nF,n_,nj,nB,nV,nW,nU,nG,nX,nq,nY,n$,nJ,nQ,n0,n1,n2,n3,n4,n8,n6,n5,n9,te,tn,tt,tr,to,ta,tl,ti,tc,td,ts=function(e){return h.createElement(eI.Z,(0,d.Z)({},eW,{className:f()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),eW.className),size:td}))},tu="rtl"===G?"left":"right",tf=eW.position;if(null!==tf&&Array.isArray(tf)){var tp=tf.find(function(e){return e.includes("top")}),tv=tf.find(function(e){return e.includes("bottom")}),th=tf.every(function(e){return"none"==="".concat(e)});tp||tv||th||(tc=ts(tu)),tp&&(ti=ts(tp.toLowerCase().replace("top",""))),tv&&(tc=ts(tv.toLowerCase().replace("bottom","")))}else tc=ts(tu)}"boolean"==typeof S?t={spinning:S}:"object"===(0,i.Z)(S)&&(t=(0,d.Z)({spinning:!0},S));var tm=f()("".concat(J,"-wrapper"),(0,c.Z)({},"".concat(J,"-wrapper-rtl"),"rtl"===G),o);return h.createElement("div",{ref:n,className:tm,style:a},h.createElement(eA.Z,(0,d.Z)({spinning:!1},t),ti,h.createElement(eO,(0,d.Z)({},_,{columns:F,direction:G,expandable:ee,prefixCls:J,className:f()((tl={},(0,c.Z)(tl,"".concat(J,"-middle"),"middle"===X),(0,c.Z)(tl,"".concat(J,"-small"),"small"===X),(0,c.Z)(tl,"".concat(J,"-bordered"),u),(0,c.Z)(tl,"".concat(J,"-empty"),0===Y.length),tl)),data:eG,rowKey:ei,rowClassName:e0,emptyText:T&&T.emptyText||(U||eR.Z)("Table"),internalHooks:eS,internalRefs:ea,transformColumns:e1})),tc))});t9.SELECTION_COLUMN=tU,t9.EXPAND_COLUMN=eO.EXPAND_COLUMN,t9.SELECTION_ALL=tG,t9.SELECTION_INVERT=tX,t9.SELECTION_NONE=tq,t9.Column=eF,t9.ColumnGroup=e_,t9.Summary=eh;var re=t9},50132:function(e,n,t){var r=t(87462),o=t(4942),a=t(45987),l=t(1413),i=t(15671),c=t(43144),d=t(60136),s=t(33643),u=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,d.Z)(t,e);var n=(0,s.Z)(t);function t(e){(0,i.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;!t&&("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,l.Z)((0,l.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var r,o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,l=n.className,i=n.style,c=n.name,d=n.id,s=n.type,f=n.disabled,v=n.readOnly,h=n.tabIndex,m=n.onClick,y=n.onFocus,g=n.onBlur,x=n.onKeyDown,C=n.onKeyPress,E=n.onKeyUp,k=n.autoFocus,Z=n.value,N=n.required,b=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),w=Object.keys(b).reduce(function(e,n){return("aria-"===n.substr(0,5)||"data-"===n.substr(0,5)||"role"===n)&&(e[n]=b[n]),e},{}),S=this.state.checked,K=p()(t,l,(e={},(0,o.Z)(e,"".concat(t,"-checked"),S),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return u.createElement("span",{className:K,style:i},u.createElement("input",(0,r.Z)({name:c,id:d,type:s,required:N,readOnly:v,disabled:f,tabIndex:h,className:"".concat(t,"-input"),checked:!!S,onClick:m,onFocus:y,onBlur:g,onKeyUp:E,onKeyDown:x,onKeyPress:C,onChange:this.handleChange,autoFocus:k,ref:this.saveInput,value:Z},w)),u.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,l.Z)((0,l.Z)({},n),{},{checked:e.checked}):null}}]),t}(u.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/3626-d5468240e26d70a2.js b/static/web/_next/static/chunks/3626-d5468240e26d70a2.js new file mode 100644 index 000000000..00e2e08dc --- /dev/null +++ b/static/web/_next/static/chunks/3626-d5468240e26d70a2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3626],{10010:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(1413),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},l=t(42135),i=function(e,n){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:a}))};i.displayName="CaretUpOutlined";var c=o.forwardRef(i)},32808:function(e,n,t){t.d(n,{Z:function(){return N}});var r=t(4942),o=t(87462),a=t(94184),l=t.n(a),i=t(50132),c=t(67294),d=t(53124),s=t(65223),u=t(74902),f=t(97685),p=t(98423),v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},h=c.createContext(null),m=function(e,n){var t=e.defaultValue,a=e.children,i=e.options,s=void 0===i?[]:i,m=e.prefixCls,y=e.className,g=e.style,x=e.onChange,C=v(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),E=c.useContext(d.E_),Z=E.getPrefixCls,N=E.direction,b=c.useState(C.value||t||[]),w=(0,f.Z)(b,2),S=w[0],K=w[1],O=c.useState([]),D=(0,f.Z)(O,2),P=D[0],R=D[1];c.useEffect(function(){"value"in C&&K(C.value||[])},[C.value]);var M=function(){return s.map(function(e){return"string"==typeof e||"number"==typeof e?{label:e,value:e}:e})},L=function(e){R(function(n){return n.filter(function(n){return n!==e})})},T=function(e){R(function(n){return[].concat((0,u.Z)(n),[e])})},I=function(e){var n=S.indexOf(e.value),t=(0,u.Z)(S);-1===n?t.push(e.value):t.splice(n,1),"value"in C||K(t);var r=M();null==x||x(t.filter(function(e){return P.includes(e)}).sort(function(e,n){return r.findIndex(function(n){return n.value===e})-r.findIndex(function(e){return e.value===n})}))},A=Z("checkbox",m),H="".concat(A,"-group"),z=(0,p.Z)(C,["value","disabled"]);s&&s.length>0&&(a=M().map(function(e){return c.createElement(k,{prefixCls:A,key:e.value.toString(),disabled:"disabled"in e?e.disabled:C.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:"".concat(H,"-item"),style:e.style},e.label)}));var F={toggleOption:I,value:S,disabled:C.disabled,name:C.name,registerValue:T,cancelValue:L},_=l()(H,(0,r.Z)({},"".concat(H,"-rtl"),"rtl"===N),y);return c.createElement("div",(0,o.Z)({className:_,style:g},z,{ref:n}),c.createElement(h.Provider,{value:F},a))},y=c.forwardRef(m),g=c.memo(y),x=t(98866),C=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},E=function(e,n){var t,a,u=e.prefixCls,f=e.className,p=e.children,v=e.indeterminate,m=void 0!==v&&v,y=e.style,g=e.onMouseEnter,E=e.onMouseLeave,k=e.skipGroup,Z=void 0!==k&&k,N=e.disabled,b=C(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),w=c.useContext(d.E_),S=w.getPrefixCls,K=w.direction,O=c.useContext(h),D=(0,c.useContext)(s.aM).isFormItemInput,P=(0,c.useContext)(x.Z),R=null!==(a=(null==O?void 0:O.disabled)||N)&&void 0!==a?a:P,M=c.useRef(b.value);c.useEffect(function(){null==O||O.registerValue(b.value)},[]),c.useEffect(function(){if(!Z)return b.value!==M.current&&(null==O||O.cancelValue(M.current),null==O||O.registerValue(b.value),M.current=b.value),function(){return null==O?void 0:O.cancelValue(b.value)}},[b.value]);var L=S("checkbox",u),T=(0,o.Z)({},b);O&&!Z&&(T.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),O.toggleOption&&O.toggleOption({label:p,value:b.value})},T.name=O.name,T.checked=O.value.includes(b.value));var I=l()((t={},(0,r.Z)(t,"".concat(L,"-wrapper"),!0),(0,r.Z)(t,"".concat(L,"-rtl"),"rtl"===K),(0,r.Z)(t,"".concat(L,"-wrapper-checked"),T.checked),(0,r.Z)(t,"".concat(L,"-wrapper-disabled"),R),(0,r.Z)(t,"".concat(L,"-wrapper-in-form-item"),D),t),f),A=l()((0,r.Z)({},"".concat(L,"-indeterminate"),m));return c.createElement("label",{className:I,style:y,onMouseEnter:g,onMouseLeave:E},c.createElement(i.Z,(0,o.Z)({"aria-checked":m?"mixed":void 0},T,{prefixCls:L,className:A,disabled:R,ref:n})),void 0!==p&&c.createElement("span",null,p))},k=c.forwardRef(E),Z=k;Z.Group=g,Z.__ANT_CHECKBOX=!0;var N=Z},93626:function(e,n,t){t.d(n,{Z:function(){return re}});var r,o,a,l,i=t(71002),c=t(4942),d=t(87462),s=t(97685),u=t(94184),f=t.n(u),p=t(1413),v=t(74902),h=t(67294),m=t(5110),y=t(64217),g=t(79370),x=t(96774),C=t.n(x),E=t(80334),k=t(48555),Z=t(74204),N=function(e){return null},b=function(e){return null},w=t(45987),S=t(42550);function K(e){return null==e?[]:Array.isArray(e)?e:[e]}function O(e,n){if(!n&&"number"!=typeof n)return e;for(var t=K(n),r=e,o=0;o=t);return{onHover:null==e?void 0:e.onHover,hovering:r}},r=(0,M.Z)(t),l=(a=(o=h.useContext(null==L?void 0:L.Context))||{}).listeners,i=a.getValue,c=h.useState(function(){return r(o?i():null)}),f=(u=(0,s.Z)(c,2))[0],p=u[1],(0,R.Z)(function(){if(o)return l.add(e),function(){l.delete(e)};function e(e){p(function(n){var t=r(e);return C()(n,t)?n:t})}},[o]),f),b=N.onHover,w=N.hovering;return h.createElement(_,(0,d.Z)({},e,{colSpan:null!=g?g:E,rowSpan:Z,hovering:w,ref:n,onHover:b}))});j.displayName="WrappedCell";var B=h.createContext(null);function V(e,n,t,r,o){var a,l,i=t[e]||{},c=t[n]||{};"left"===i.fixed?a=r.left[e]:"right"===c.fixed&&(l=r.right[n]);var d=!1,s=!1,u=!1,f=!1,p=t[n+1],v=t[e-1];return"rtl"===o?void 0!==a?f=!(v&&"left"===v.fixed):void 0!==l&&(u=!(p&&"right"===p.fixed)):void 0!==a?d=!(p&&"left"===p.fixed):void 0!==l&&(s=!(v&&"right"===v.fixed)),{fixLeft:a,fixRight:l,lastFixLeft:d,firstFixRight:s,lastFixRight:u,firstFixLeft:f,isSticky:r.isSticky}}function W(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,i=e.onHeaderRow,c=e.index,s=h.useContext(B),u=s.prefixCls,f=s.direction;i&&(n=i(t.map(function(e){return e.column}),c));var p=D(t.map(function(e){return e.column}));return h.createElement(a,n,t.map(function(e,n){var t,a=e.column,i=V(e.colStart,e.colEnd,o,r,f);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),h.createElement(j,(0,d.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:u,key:p[n]},i,{additionalProps:t,rowType:"header"}))}))}W.displayName="HeaderRow";var U=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=h.useContext(B),l=a.prefixCls,i=a.getComponent,c=h.useMemo(function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map(function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},l=1,i=t.children;return i&&i.length>0&&(l=e(i,a,o+1).reduce(function(e,n){return e+n},0),r.hasSubColumns=!0),"colSpan"in t&&(l=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=l,r.colEnd=r.colStart+l-1,n[o].push(r),a+=l,l})}(e,0);for(var t=n.length,r=function(e){n[e].forEach(function(n){("rowSpan"in n)||n.hasSubColumns||(n.rowSpan=t-e)})},o=0;o1?t-1:0),o=1;o0?[].concat((0,v.Z)(e),(0,v.Z)(ei(o).map(function(e){return(0,p.Z)({fixed:r},e)}))):[].concat((0,v.Z)(e),[(0,p.Z)((0,p.Z)({},n),{},{fixed:r})])},[])}var ec=function(e,n){var t=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,l=e.expandedKeys,i=e.columnTitle,d=e.getRowKey,s=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,v=e.expandIconColumnIndex,m=e.direction,y=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=h.useMemo(function(){return r||el(o)},[r,o]),E=h.useMemo(function(){if(a){var e,n,r=C.slice();if(!r.includes(er)){var o=v||0;o>=0&&r.splice(o,0,er)}var p=r.indexOf(er);r=r.filter(function(e,n){return e!==er||n===p});var m=C[p];n=("left"===x||x)&&!v?"left":("right"===x||x)&&v===C.length?"right":m?m.fixed:null;var E=(e={},(0,c.Z)(e,et,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,c.Z)(e,"title",i),(0,c.Z)(e,"fixed",n),(0,c.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,c.Z)(e,"width",g),(0,c.Z)(e,"render",function(e,n,r){var o=d(n,r),a=u({prefixCls:t,expanded:l.has(o),expandable:!f||f(n),record:n,onExpand:s});return y?h.createElement("span",{onClick:function(e){return e.stopPropagation()}},a):a}),e);return r.map(function(e){return e===er?E:e})}return C.filter(function(e){return e!==er})},[a,C,d,l,u,m]),k=h.useMemo(function(){var e=E;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e},[n,E,m]),Z=h.useMemo(function(){return"rtl"===m?ei(k).map(function(e){var n=e.fixed,t=(0,w.Z)(e,ea),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,p.Z)({fixed:r},t)}):ei(k)},[k,m]);return[k,Z]};function ed(e){var n=(0,h.useRef)(e),t=(0,h.useState)({}),r=(0,s.Z)(t,2)[1],o=(0,h.useRef)(null),a=(0,h.useRef)([]);return(0,h.useEffect)(function(){return function(){o.current=null}},[]),[n.current,function(e){a.current.push(e);var t=Promise.resolve();o.current=t,t.then(function(){if(o.current===t){var e=a.current,l=n.current;a.current=[],e.forEach(function(e){n.current=e(n.current)}),o.current=null,l!==n.current&&r({})}})}]}var es=["columnType"],eu=function(e){for(var n=e.colWidths,t=e.columns,r=e.columCount,o=[],a=r||t.length,l=!1,i=a-1;i>=0;i-=1){var c=n[i],s=t&&t[i],u=s&&s[et];if(c||u||l){var f=u||{},p=(f.columnType,(0,w.Z)(f,es));o.unshift(h.createElement("col",(0,d.Z)({key:i,style:{width:c}},p))),l=!0}}return h.createElement("colgroup",null,o)},ef=function(e){var n=e.className,t=e.children;return h.createElement("div",{className:n},t)},ep=h.createContext({}),ev=["children"];function eh(e){return e.children}eh.Row=function(e){var n=e.children,t=(0,w.Z)(e,ev);return h.createElement("tr",t,n)},eh.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,l=e.rowSpan,i=e.align,c=h.useContext(B),s=c.prefixCls,u=c.direction,f=h.useContext(ep),p=f.scrollColumnIndex,v=f.stickyOffsets,m=f.flattenColumns,y=t+a-1+1===p?a+1:a,g=V(t,t+y-1,m,v,u);return h.createElement(j,(0,d.Z)({className:n,index:t,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:l,render:function(){return r}},g))};var em=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=h.useContext(B).prefixCls,a=r.length-1,l=r[a],i=h.useMemo(function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null==l?void 0:l.scrollbar)?a:null}},[l,r,a,t]);return h.createElement(ep.Provider,{value:i},h.createElement("tfoot",{className:"".concat(o,"-summary")},n))};function ey(e){var n,t=e.prefixCls,r=e.record,o=e.onExpand,a=e.expanded,l=e.expandable,i="".concat(t,"-row-expand-icon");if(!l)return h.createElement("span",{className:f()(i,"".concat(t,"-row-spaced"))});var d=function(e){o(r,e),e.stopPropagation()};return h.createElement("span",{className:f()(i,(n={},(0,c.Z)(n,"".concat(t,"-row-expanded"),a),(0,c.Z)(n,"".concat(t,"-row-collapsed"),!a),n)),onClick:d})}var eg=t(64019),ex=t(27678),eC=function(e,n){var t,r,o=e.scrollBodyRef,a=e.onScroll,l=e.offsetScroll,i=e.container,d=h.useContext(B).prefixCls,u=(null===(t=o.current)||void 0===t?void 0:t.scrollWidth)||0,v=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,m=u&&v*(v/u),y=h.useRef(),g=ed({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,s.Z)(g,2),C=x[0],E=x[1],k=h.useRef({delta:0,x:0}),N=h.useState(!1),b=(0,s.Z)(N,2),w=b[0],S=b[1],K=function(){S(!1)},O=function(e){e.persist(),k.current.delta=e.pageX-C.scrollLeft,k.current.x=0,S(!0),e.preventDefault()},D=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(!w||0===t){w&&S(!1);return}var r=k.current.x+e.pageX-k.current.x-k.current.delta;r<=0&&(r=0),r+m>=v&&(r=v-m),a({scrollLeft:r/v*(u+2)}),k.current.x=e.pageX},P=function(){if(o.current){var e=(0,ex.os)(o.current).top,n=e+o.current.offsetHeight,t=i===window?document.documentElement.scrollTop+window.innerHeight:(0,ex.os)(i).top+i.clientHeight;n-(0,Z.Z)()<=t||e>=t-l?E(function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!0})}):E(function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!1})})}},R=function(e){E(function(n){return(0,p.Z)((0,p.Z)({},n),{},{scrollLeft:e/u*v||0})})};return(h.useImperativeHandle(n,function(){return{setScrollLeft:R}}),h.useEffect(function(){var e=(0,eg.Z)(document.body,"mouseup",K,!1),n=(0,eg.Z)(document.body,"mousemove",D,!1);return P(),function(){e.remove(),n.remove()}},[m,w]),h.useEffect(function(){var e=(0,eg.Z)(i,"scroll",P,!1),n=(0,eg.Z)(window,"resize",P,!1);return function(){e.remove(),n.remove()}},[i]),h.useEffect(function(){C.isHiddenScrollBar||E(function(e){var n=o.current;return n?(0,p.Z)((0,p.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e})},[C.isHiddenScrollBar]),u<=v||!m||C.isHiddenScrollBar)?null:h.createElement("div",{style:{height:(0,Z.Z)(),width:v,bottom:l},className:"".concat(d,"-sticky-scroll")},h.createElement("div",{onMouseDown:O,ref:y,className:f()("".concat(d,"-sticky-scroll-bar"),(0,c.Z)({},"".concat(d,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))},eE=h.forwardRef(eC),ek=(0,t(98924).Z)()?window:null,eZ=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],eN=h.forwardRef(function(e,n){var t=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,l=e.colWidths,i=e.columCount,d=e.stickyOffsets,s=e.direction,u=e.fixHeader,m=e.stickyTopOffset,y=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,E=e.children,k=(0,w.Z)(e,eZ),Z=h.useContext(B),N=Z.prefixCls,b=Z.scrollbarSize,K=Z.isSticky,O=K&&!u?0:b,D=h.useRef(null),P=h.useCallback(function(e){(0,S.mH)(n,e),(0,S.mH)(D,e)},[]);h.useEffect(function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(x({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=D.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=D.current)||void 0===e||e.removeEventListener("wheel",n)}},[]);var R=h.useMemo(function(){return a.every(function(e){return e.width>=0})},[a]),M=a[a.length-1],L={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(N,"-cell-scrollbar")}}},T=(0,h.useMemo)(function(){return O?[].concat((0,v.Z)(o),[L]):o},[O,o]),I=(0,h.useMemo)(function(){return O?[].concat((0,v.Z)(a),[L]):a},[O,a]),A=(0,h.useMemo)(function(){var e=d.right,n=d.left;return(0,p.Z)((0,p.Z)({},d),{},{left:"rtl"===s?[].concat((0,v.Z)(n.map(function(e){return e+O})),[0]):n,right:"rtl"===s?e:[].concat((0,v.Z)(e.map(function(e){return e+O})),[0]),isSticky:K})},[O,d,K]),H=(0,h.useMemo)(function(){for(var e=[],n=0;n0)):(e0(o>0),e4(on.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},nr=function(e,n){var t,r=h.useContext(e8),o=h.useContext(e5),a=h.useContext(eP.E_),l=a.getPrefixCls,i=a.direction,s=h.useRef(),u=(0,S.sQ)(n,s),p=(0,h.useContext)(nn.aM).isFormItemInput,v=function(n){var t,o;null===(t=e.onChange)||void 0===t||t.call(e,n),null===(o=null==r?void 0:r.onChange)||void 0===o||o.call(r,n)},m=e.prefixCls,y=e.className,g=e.children,x=e.style,C=e.disabled,E=nt(e,["prefixCls","className","children","style","disabled"]),k=l("radio",m),Z="button"===((null==r?void 0:r.optionType)||o)?"".concat(k,"-button"):k,N=(0,d.Z)({},E),b=h.useContext(ne.Z);N.disabled=C||b,r&&(N.name=r.name,N.onChange=v,N.checked=e.value===r.value,N.disabled=N.disabled||r.disabled);var w=f()("".concat(Z,"-wrapper"),(t={},(0,c.Z)(t,"".concat(Z,"-wrapper-checked"),N.checked),(0,c.Z)(t,"".concat(Z,"-wrapper-disabled"),N.disabled),(0,c.Z)(t,"".concat(Z,"-wrapper-rtl"),"rtl"===i),(0,c.Z)(t,"".concat(Z,"-wrapper-in-form-item"),p),t),y);return h.createElement("label",{className:w,style:x,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},h.createElement(e9.Z,(0,d.Z)({},N,{type:"radio",prefixCls:Z,ref:u})),void 0!==g?h.createElement("span",null,g):null)},no=h.forwardRef(nr),na=h.forwardRef(function(e,n){var t,r=h.useContext(eP.E_),o=r.getPrefixCls,a=r.direction,l=h.useContext(eM.Z),i=(0,e3.Z)(e.defaultValue,{value:e.value}),u=(0,s.Z)(i,2),p=u[0],v=u[1],m=function(n){var t=n.target.value;"value"in e||v(t);var r=e.onChange;r&&t!==p&&r(n)},y=e.prefixCls,g=e.className,x=e.options,C=e.buttonStyle,E=e.disabled,k=e.children,Z=e.size,N=e.style,b=e.id,w=e.onMouseEnter,S=e.onMouseLeave,K=e.onFocus,O=e.onBlur,D=o("radio",y),P="".concat(D,"-group"),R=k;x&&x.length>0&&(R=x.map(function(e){return"string"==typeof e||"number"==typeof e?h.createElement(no,{key:e.toString(),prefixCls:D,disabled:E,value:e,checked:p===e},e):h.createElement(no,{key:"radio-group-value-options-".concat(e.value),prefixCls:D,disabled:e.disabled||E,value:e.value,checked:p===e.value,style:e.style},e.label)}));var M=Z||l,L=f()(P,"".concat(P,"-").concat(void 0===C?"outline":C),(t={},(0,c.Z)(t,"".concat(P,"-").concat(M),M),(0,c.Z)(t,"".concat(P,"-rtl"),"rtl"===a),t),void 0===g?"":g);return h.createElement("div",(0,d.Z)({},(0,e4.Z)(e),{className:L,style:N,onMouseEnter:w,onMouseLeave:S,onFocus:K,onBlur:O,id:b,ref:n}),h.createElement(e6,{value:{onChange:m,value:p,disabled:e.disabled,name:e.name,optionType:e.optionType}},R))}),nl=h.memo(na),ni=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},nc=function(e,n){var t=h.useContext(eP.E_).getPrefixCls,r=e.prefixCls,o=ni(e,["prefixCls"]),a=t("radio",r);return h.createElement(e7,{value:"button"},h.createElement(no,(0,d.Z)({prefixCls:a},o,{type:"radio",ref:n})))},nd=h.forwardRef(nc),ns=no;ns.Button=nd,ns.Group=nl,ns.__ANT_RADIO=!0;var nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},nf=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:nu}))};nf.displayName="HolderOutlined";var np=h.forwardRef(nf),nv=t(15671),nh=t(43144),nm=t(97326),ny=t(60136),ng=t(33643),nx=t(15105),nC=h.createContext(null),nE=function(e){for(var n,t=e.prefixCls,r=e.level,o=e.isStart,a=e.isEnd,l="".concat(t,"-indent-unit"),i=[],d=0;d1&&void 0!==arguments[1]?arguments[1]:null;return t.map(function(d,s){for(var u,f=nz(r?r.pos:"0",s),h=nN(d[a],f),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},p=f.initWrapper,h=f.processEntity,m=f.onProcessFinished,y=f.externalGetKey,g=f.childrenPropName,x=f.fieldNames,C=arguments.length>2?arguments[2]:void 0,E={},k={},Z={posEntities:E,keyEntities:k};return p&&(Z=p(Z)||Z),n=function(e){var n=e.node,t=e.index,r=e.pos,o=e.key,a=e.parentPos,l=e.level,i={node:n,nodes:e.nodes,index:t,key:o,pos:r,level:l},c=nN(o,r);E[r]=i,k[c]=i,i.parent=E[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i)),h&&h(i,Z)},t={externalGetKey:y||C,childrenPropName:g,fieldNames:x},a=(o=("object"===(0,i.Z)(t)?t:{externalGetKey:t})||{}).childrenPropName,l=o.externalGetKey,d=(c=nb(o.fieldNames)).key,s=c.children,u=a||s,l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,n){return nN(e[d],n)},function t(o,a,l,i){var c=o?o[u]:e,d=o?nz(l.pos,a):"0",s=o?[].concat((0,v.Z)(i),[o]):[];if(o){var f=r(o,d);n({node:o,index:a,pos:d,key:f,parentPos:l.node?l.pos:null,level:l.level+1,nodes:s})}c&&c.forEach(function(e,n){t(e,n,{node:o,pos:d,level:l?l.level+1:-1},s)})}(null),m&&m(Z),Z}function nO(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,l=n.checkedKeys,i=n.halfCheckedKeys,c=n.dragOverNodeKey,d=n.dropPosition,s=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==l.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===d,dragOverGapTop:c===e&&-1===d,dragOverGapBottom:c===e&&1===d}}function nD(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,i=e.halfChecked,c=e.dragOver,d=e.dragOverGapTop,s=e.dragOverGapBottom,u=e.pos,f=e.active,v=e.eventKey,h=(0,p.Z)((0,p.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:l,halfChecked:i,dragOver:c,dragOverGapTop:d,dragOverGapBottom:s,pos:u,active:f,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,E.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var nP=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],nR="open",nM="close",nL=function(e){(0,ny.Z)(t,e);var n=(0,ng.Z)(t);function t(){var e;(0,nv.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a=0&&t.splice(r,1),t}function nA(e,n){var t=(e||[]).slice();return -1===t.indexOf(n)&&t.push(n),t}function nH(e){return e.split("-")}function nz(e,n){return"".concat(e,"-").concat(n)}function nF(e,n,t,r,o,a,l,i,c,d){var s,u,f=e.clientX,p=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,m=v.height,y=(("rtl"===d?-1:1)*(((null==o?void 0:o.x)||0)-f)-12)/r,g=i[t.props.eventKey];if(p-1.5?a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:0})?Z=0:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1,{dropPosition:Z,dropLevelOffset:N,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:k,dropContainerKey:0===Z?null:(null===(u=g.parent)||void 0===u?void 0:u.key)||null,dropAllowed:K}}function n_(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function nj(e){var n;if(!e)return null;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,i.Z)(e))return(0,E.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function nB(e,n){var t=new Set;return(e||[]).forEach(function(e){!function e(r){if(!t.has(r)){var o=n[r];if(o){t.add(r);var a=o.parent;!o.node.disabled&&a&&e(a.key)}}}(e)}),(0,v.Z)(t)}nT.displayName="TreeNode",nT.defaultProps={title:"---"},nT.isTreeNode=1;var nV=t(73453),nW=t(62874),nU=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nG=function(e,n){var t=e.className,r=e.style,o=e.motion,a=e.motionNodes,l=e.motionType,i=e.onMotionStart,c=e.onMotionEnd,u=e.active,p=e.treeNodeRequiredProps,v=(0,w.Z)(e,nU),m=h.useState(!0),y=(0,s.Z)(m,2),g=y[0],x=y[1],C=h.useContext(nC).prefixCls,E=h.useRef(!1),k=function(){E.current||c(),E.current=!0};return((0,h.useEffect)(function(){a&&"hide"===l&&g&&x(!1)},[a]),(0,h.useEffect)(function(){return a&&i(),function(){a&&k()}},[]),a)?h.createElement(nW.Z,(0,d.Z)({ref:n,visible:g},o,{motionAppear:"show"===l,onAppearEnd:k,onLeaveEnd:k}),function(e,n){var t=e.className,r=e.style;return h.createElement("div",{ref:n,className:f()("".concat(C,"-treenode-motion"),t),style:r},a.map(function(e){var n=(0,d.Z)({},e.data),t=e.title,r=e.key,o=e.isStart,a=e.isEnd;delete n.children;var l=nO(r,p);return h.createElement(nT,(0,d.Z)({},n,l,{title:t,active:u,data:e.data,key:r,isStart:o,isEnd:a}))}))}):h.createElement(nT,(0,d.Z)({domRef:n,className:t,style:r},v,{active:u}))};nG.displayName="MotionTreeNode";var nX=h.forwardRef(nG);function nq(e,n,t){var r=e[e.findIndex(function(e){return e.key===t})+1],o=n.findIndex(function(e){return e.key===t});if(r){var a=n.findIndex(function(e){return e.key===r.key});return n.slice(o+1,a)}return n.slice(o+1)}var nY=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],n$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},nJ=function(){},nQ="RC_TREE_MOTION_".concat(Math.random()),n0={key:nQ},n1={key:nQ,level:0,index:0,pos:"0",node:n0,nodes:[n0]},n2={parent:null,children:[],pos:n1.pos,data:n0,title:null,key:nQ,isStart:[],isEnd:[]};function n3(e,n,t,r){return!1!==n&&t?e.slice(0,Math.ceil(t/r)+1):e}function n4(e){return nN(e.key,e.pos)}var n8=h.forwardRef(function(e,n){var t=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,i=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,v=e.dragging,m=e.dragOverNodeKey,y=e.dropPosition,g=e.motion,x=e.height,C=e.itemHeight,E=e.virtual,k=e.focusable,Z=e.activeItem,N=e.focused,b=e.tabIndex,S=e.onKeyDown,K=e.onFocus,O=e.onBlur,D=e.onActiveChange,P=e.onListChangeStart,R=e.onListChangeEnd,M=(0,w.Z)(e,nY),L=h.useRef(null),T=h.useRef(null);h.useImperativeHandle(n,function(){return{scrollTo:function(e){L.current.scrollTo(e)},getIndentWidth:function(){return T.current.offsetWidth}}});var I=h.useState(o),A=(0,s.Z)(I,2),H=A[0],z=A[1],F=h.useState(r),_=(0,s.Z)(F,2),j=_[0],B=_[1],V=h.useState(r),W=(0,s.Z)(V,2),U=W[0],G=W[1],X=h.useState([]),q=(0,s.Z)(X,2),Y=q[0],$=q[1],J=h.useState(null),Q=(0,s.Z)(J,2),ee=Q[0],en=Q[1],et=h.useRef(r);function er(){var e=et.current;B(e),G(e),$([]),en(null),R()}et.current=r,h.useEffect(function(){z(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach(function(e){t.set(e,!0)});var r=n.filter(function(e){return!t.has(e)});return 1===r.length?r[0]:null}return t ").concat(n);return n}(Z)),h.createElement("div",null,h.createElement("input",{style:n$,disabled:!1===k||p,tabIndex:!1!==k?b:null,onKeyDown:S,onFocus:K,onBlur:O,value:"",onChange:nJ,"aria-label":"for screen reader"})),h.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},h.createElement("div",{className:"".concat(t,"-indent")},h.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),h.createElement(nV.Z,(0,d.Z)({},M,{data:g?U:r,itemKey:n4,height:x,fullHeight:!1,virtual:E,itemHeight:C,prefixCls:"".concat(t,"-list"),ref:L,onVisibleChange:function(e,n){var t=new Set(e);n.filter(function(e){return!t.has(e)}).some(function(e){return n4(e)===nQ})&&er()}}),function(e){var n=e.pos,t=(0,d.Z)({},e.data),r=e.title,o=e.key,a=e.isStart,l=e.isEnd,i=nN(o,n);delete t.key,delete t.children;var c=nO(i,eo);return h.createElement(nX,(0,d.Z)({},t,c,{title:r,active:!!Z&&o===Z.key,pos:n,data:e.data,isStart:a,isEnd:l,motion:g,motionNodes:o===nQ?Y:null,motionType:ee,onMotionStart:P,onMotionEnd:er,treeNodeRequiredProps:eo,onMouseMove:function(){D(null)}}))}))});function n6(e,n){var t=new Set;return e.forEach(function(e){n.has(e)||t.add(e)}),t}function n5(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!!(t||r)||!1===o}function n7(e,n,t,r){var o,a=[];o=r||n5;var l=new Set(e.filter(function(e){var n=!!t[e];return n||a.push(e),n})),i=new Map,c=0;return Object.keys(t).forEach(function(e){var n=t[e],r=n.level,o=i.get(r);o||(o=new Set,i.set(r,o)),o.add(n),c=Math.max(c,r)}),(0,E.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,l=0;l<=t;l+=1)(n.get(l)||new Set).forEach(function(e){var n=e.key,t=e.node,a=e.children,l=void 0===a?[]:a;o.has(n)&&!r(t)&&l.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var i=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach(function(e){var n=e.parent;if(!(r(e.node)||!e.parent||i.has(e.parent.key))){if(r(e.parent.node)){i.add(n.key);return}var t=!0,l=!1;(n.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var n=e.key,r=o.has(n);t&&!r&&(t=!1),!l&&(r||a.has(n))&&(l=!0)}),t&&o.add(n.key),l&&a.add(n.key),i.add(n.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(n6(a,o))}}(l,i,c,o):function(e,n,t,r,o){for(var a=new Set(e),l=new Set(n),i=0;i<=r;i+=1)(t.get(i)||new Set).forEach(function(e){var n=e.key,t=e.node,r=e.children,i=void 0===r?[]:r;a.has(n)||l.has(n)||o(t)||i.filter(function(e){return!o(e.node)}).forEach(function(e){a.delete(e.key)})});l=new Set;for(var c=new Set,d=r;d>=0;d-=1)(t.get(d)||new Set).forEach(function(e){var n=e.parent;if(!(o(e.node)||!e.parent||c.has(e.parent.key))){if(o(e.parent.node)){c.add(n.key);return}var t=!0,r=!1;(n.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var n=e.key,o=a.has(n);t&&!o&&(t=!1),!r&&(o||l.has(n))&&(r=!0)}),t||a.delete(n.key),r&&l.add(n.key),c.add(n.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(n6(l,a))}}(l,n.halfCheckedKeys,i,c,o)}n8.displayName="NodeList";var n9=function(e){(0,ny.Z)(t,e);var n=(0,ng.Z)(t);function t(){var e;(0,nv.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:[];n.forEach(function(n){var t=n.key,o=n.children;r.push(t),e(o)})}(l[c].children),r),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(d),window.addEventListener("dragend",e.onWindowDragEnd),null==i||i({event:n,node:nD(t.props)})},e.onNodeDragEnter=function(n,t){var r=e.state,o=r.expandedKeys,a=r.keyEntities,l=r.dragChildrenKeys,i=r.flattenNodes,c=r.indent,d=e.props,s=d.onDragEnter,u=d.onExpand,f=d.allowDrop,p=d.direction,h=t.props,m=h.pos,y=h.eventKey,g=(0,nm.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==y&&(e.currentMouseOverDroppableNodeKey=y),!g){e.resetDragState();return}var x=nF(n,g,t,c,e.dragStartMousePosition,f,i,a,o,p),C=x.dropPosition,E=x.dropLevelOffset,k=x.dropTargetKey,Z=x.dropContainerKey,N=x.dropTargetPos,b=x.dropAllowed,w=x.dragOverNodeKey;if(-1!==l.indexOf(k)||!b||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(n){clearTimeout(e.delayedDragEnterLogic[n])}),g.props.eventKey!==t.props.eventKey&&(n.persist(),e.delayedDragEnterLogic[m]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var r=(0,v.Z)(o),l=a[t.props.eventKey];l&&(l.children||[]).length&&(r=nA(o,t.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null==u||u(r,{node:nD(t.props),expanded:!0,nativeEvent:n.nativeEvent})}},800)),g.props.eventKey===k&&0===E)){e.resetDragState();return}e.setState({dragOverNodeKey:w,dropPosition:C,dropLevelOffset:E,dropTargetKey:k,dropContainerKey:Z,dropTargetPos:N,dropAllowed:b}),null==s||s({event:n,node:nD(t.props),expandedKeys:o})},e.onNodeDragOver=function(n,t){var r=e.state,o=r.dragChildrenKeys,a=r.flattenNodes,l=r.keyEntities,i=r.expandedKeys,c=r.indent,d=e.props,s=d.onDragOver,u=d.allowDrop,f=d.direction,p=(0,nm.Z)(e).dragNode;if(p){var v=nF(n,p,t,c,e.dragStartMousePosition,u,a,l,i,f),h=v.dropPosition,m=v.dropLevelOffset,y=v.dropTargetKey,g=v.dropContainerKey,x=v.dropAllowed,C=v.dropTargetPos,E=v.dragOverNodeKey;-1===o.indexOf(y)&&x&&(p.props.eventKey===y&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&m===e.state.dropLevelOffset&&y===e.state.dropTargetKey&&g===e.state.dropContainerKey&&C===e.state.dropTargetPos&&x===e.state.dropAllowed&&E===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:m,dropTargetKey:y,dropContainerKey:g,dropTargetPos:C,dropAllowed:x,dragOverNodeKey:E}),null==s||s({event:n,node:nD(t.props)}))}},e.onNodeDragLeave=function(n,t){e.currentMouseOverDroppableNodeKey!==t.props.eventKey||n.currentTarget.contains(n.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:n,node:nD(t.props)})},e.onWindowDragEnd=function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(n,t){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:n,node:nD(t.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(n,t){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.state,l=a.dragChildrenKeys,i=a.dropPosition,c=a.dropTargetKey,d=a.dropTargetPos;if(a.dropAllowed){var s=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var u=(0,p.Z)((0,p.Z)({},nO(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:e.state.keyEntities[c].node}),f=-1!==l.indexOf(c);(0,E.ZP)(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=nH(d),h={event:n,node:nD(u),dragNode:e.dragNode?nD(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(l),dropToGap:0!==i,dropPosition:i+Number(v[v.length-1])};o||null==s||s(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,l=t.expanded,i=t.key;if(!t.isLeaf&&!n.shiftKey&&!n.metaKey&&!n.ctrlKey){var c=a.filter(function(e){return e.key===i})[0],d=nD((0,p.Z)((0,p.Z)({},nO(i,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(l?nI(o,i):nA(o,i)),e.onNodeExpand(n,d)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,l=o.fieldNames,i=e.props,c=i.onSelect,d=i.multiple,s=t.selected,u=t[l.key],f=!s,p=(r=f?d?nA(r,u):[u]:nI(r,u)).map(function(e){var n=a[e];return n?n.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,l=a.keyEntities,i=a.checkedKeys,c=a.halfCheckedKeys,d=e.props,s=d.checkStrictly,u=d.onCheck,f=t.key,p={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(s){var h=r?nA(i,f):nI(i,f);o={checked:h,halfChecked:nI(c,f)},p.checkedNodes=h.map(function(e){return l[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:h})}else{var m=n7([].concat((0,v.Z)(i),[f]),!0,l),y=m.checkedKeys,g=m.halfCheckedKeys;if(!r){var x=new Set(y);x.delete(f);var C=n7(Array.from(x),{checked:!1,halfCheckedKeys:g},l);y=C.checkedKeys,g=C.halfCheckedKeys}o=y,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=g,y.forEach(function(e){var n=l[e];if(n){var t=n.node,r=n.pos;p.checkedNodes.push(t),p.checkedNodesPositions.push({node:t,pos:r})}}),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:g})}null==u||u(o,p)},e.onNodeLoad=function(n){var t=n.key,r=new Promise(function(r,o){e.setState(function(a){var l=a.loadedKeys,i=a.loadingKeys,c=void 0===i?[]:i,d=e.props,s=d.loadData,u=d.onLoad;return s&&-1===(void 0===l?[]:l).indexOf(t)&&-1===c.indexOf(t)?(s(n).then(function(){var o=nA(e.state.loadedKeys,t);null==u||u(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState(function(e){return{loadingKeys:nI(e.loadingKeys,t)}}),r()}).catch(function(n){if(e.setState(function(e){return{loadingKeys:nI(e.loadingKeys,t)}}),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,E.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:nA(a,t)}),r()}o(n)}),{loadingKeys:nA(c,t)}):null})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null==r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null==r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,l={};Object.keys(n).forEach(function(t){if(t in e.props){a=!1;return}o=!0,l[t]=n[t]}),o&&(!t||a)&&e.setState((0,p.Z)((0,p.Z)({},l),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,nh.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,r=t.focused,o=t.flattenNodes,a=t.keyEntities,l=t.draggingNodeKey,s=t.activeKey,u=t.dropLevelOffset,p=t.dropContainerKey,v=t.dropTargetKey,m=t.dropPosition,g=t.dragOverNodeKey,x=t.indent,C=this.props,E=C.prefixCls,k=C.className,Z=C.style,N=C.showLine,b=C.focusable,w=C.tabIndex,S=C.selectable,K=C.showIcon,O=C.icon,D=C.switcherIcon,P=C.draggable,R=C.checkable,M=C.checkStrictly,L=C.disabled,T=C.motion,I=C.loadData,A=C.filterTreeNode,H=C.height,z=C.itemHeight,F=C.virtual,_=C.titleRender,j=C.dropIndicatorRender,B=C.onContextMenu,V=C.onScroll,W=C.direction,U=C.rootClassName,G=C.rootStyle,X=(0,y.Z)(this.props,{aria:!0,data:!0});return P&&(n="object"===(0,i.Z)(P)?P:"function"==typeof P?{nodeDraggable:P}:{}),h.createElement(nC.Provider,{value:{prefixCls:E,selectable:S,showIcon:K,icon:O,switcherIcon:D,draggable:n,draggingNodeKey:l,checkable:R,checkStrictly:M,disabled:L,keyEntities:a,dropLevelOffset:u,dropContainerKey:p,dropTargetKey:v,dropPosition:m,dragOverNodeKey:g,indent:x,direction:W,dropIndicatorRender:j,loadData:I,filterTreeNode:A,titleRender:_,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},h.createElement("div",{role:"tree",className:f()(E,k,U,(e={},(0,c.Z)(e,"".concat(E,"-show-line"),N),(0,c.Z)(e,"".concat(E,"-focused"),r),(0,c.Z)(e,"".concat(E,"-active-focused"),null!==s),e)),style:G},h.createElement(n8,(0,d.Z)({ref:this.listRef,prefixCls:E,style:Z,data:o,disabled:L,selectable:S,checkable:!!R,motion:T,dragging:null!==l,height:H,itemHeight:z,virtual:F,focusable:b,focused:r,tabIndex:void 0===w?0:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:V},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r,o=n.prevProps,a={prevProps:e};function l(n){return!o&&n in e||o&&o[n]!==e[n]}var i=n.fieldNames;if(l("fieldNames")&&(i=nb(e.fieldNames),a.fieldNames=i),l("treeData")?t=e.treeData:l("children")&&((0,E.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=nw(e.children)),t){a.treeData=t;var d=nK(t,{fieldNames:i});a.keyEntities=(0,p.Z)((0,c.Z)({},nQ,n1),d.keyEntities)}var s=a.keyEntities||n.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?nB(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=(0,p.Z)({},s);delete u[nQ],a.expandedKeys=Object.keys(u).map(function(e){return u[e].key})}else!o&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?nB(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var f=nS(t||n.treeData,a.expandedKeys||n.expandedKeys,i);a.flattenNodes=f}if(e.selectable&&(l("selectedKeys")?a.selectedKeys=n_(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(a.selectedKeys=n_(e.defaultSelectedKeys,e))),e.checkable&&(l("checkedKeys")?r=nj(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?r=nj(e.defaultCheckedKeys)||{}:t&&(r=nj(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),r)){var v=r,h=v.checkedKeys,m=void 0===h?[]:h,y=v.halfCheckedKeys,g=void 0===y?[]:y;if(!e.checkStrictly){var x=n7(m,!0,s);m=x.checkedKeys,g=x.halfCheckedKeys}a.checkedKeys=m,a.halfCheckedKeys=g}return l("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(h.Component);n9.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case -1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return h.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},n9.TreeNode=nT;var te=t(33603),tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},tt=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tn}))};tt.displayName="FileOutlined";var tr=h.forwardRef(tt),to={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ta=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:to}))};ta.displayName="FolderOpenOutlined";var tl=h.forwardRef(ta),ti={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},tc=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:ti}))};tc.displayName="FolderOutlined";var td=h.forwardRef(tc);function ts(e,n){e.forEach(function(e){var t=e.key,r=e.children;!1!==n(t,e)&&ts(r||[],n)})}function tu(e,n){var t=(0,v.Z)(n),r=[];return ts(e,function(e,n){var o=t.indexOf(e);return -1!==o&&(r.push(n),t.splice(o,1)),!!t.length}),r}(a=l||(l={}))[a.None=0]="None",a[a.Start=1]="Start",a[a.End=2]="End";var tf=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};function tp(e){var n=e.isLeaf,t=e.expanded;return n?h.createElement(tr,null):t?h.createElement(tl,null):h.createElement(td,null)}function tv(e){var n=e.treeData,t=e.children;return n||nw(t)}var th=function(e,n){var t=e.defaultExpandAll,r=e.defaultExpandParent,o=e.defaultExpandedKeys,a=tf(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),i=h.useRef(),u=h.useRef(),p=function(){var e=nK(tv(a)).keyEntities;return t?Object.keys(e):r?nB(a.expandedKeys||o||[],e):a.expandedKeys||o},m=h.useState(a.selectedKeys||a.defaultSelectedKeys||[]),y=(0,s.Z)(m,2),g=y[0],x=y[1],C=h.useState(function(){return p()}),E=(0,s.Z)(C,2),k=E[0],Z=E[1];h.useEffect(function(){"selectedKeys"in a&&x(a.selectedKeys)},[a.selectedKeys]),h.useEffect(function(){"expandedKeys"in a&&Z(a.expandedKeys)},[a.expandedKeys]);var N=function(e,n){var t;return"expandedKeys"in a||Z(e),null===(t=a.onExpand)||void 0===t?void 0:t.call(a,e,n)},b=function(e,n){var t,r,o,c,s,f,p,h,m,y=a.multiple,g=n.node,C=n.nativeEvent,E=g.key,Z=void 0===E?"":E,N=tv(a),b=(0,d.Z)((0,d.Z)({},n),{selected:!0}),w=(null==C?void 0:C.ctrlKey)||(null==C?void 0:C.metaKey),S=null==C?void 0:C.shiftKey;y&&w?(m=e,i.current=Z,u.current=m,b.selectedNodes=tu(N,m)):y&&S?(m=Array.from(new Set([].concat((0,v.Z)(u.current||[]),(0,v.Z)((r=(t={treeData:N,expandedKeys:k,startKey:Z,endKey:i.current}).treeData,o=t.expandedKeys,c=t.startKey,s=t.endKey,f=[],p=l.None,c&&c===s?[c]:c&&s?(ts(r,function(e){if(p===l.End)return!1;if(e===c||e===s){if(f.push(e),p===l.None)p=l.Start;else if(p===l.Start)return p=l.End,!1}else p===l.Start&&f.push(e);return o.includes(e)}),f):[]))))),b.selectedNodes=tu(N,m)):(m=[Z],i.current=Z,u.current=m,b.selectedNodes=tu(N,m)),null===(h=a.onSelect)||void 0===h||h.call(a,m,b),"selectedKeys"in a||x(m)},w=h.useContext(eP.E_),S=w.getPrefixCls,K=w.direction,O=a.prefixCls,D=a.className,P=a.showIcon,R=a.expandAction,M=tf(a,["prefixCls","className","showIcon","expandAction"]),L=S("tree",O),T=f()("".concat(L,"-directory"),(0,c.Z)({},"".concat(L,"-directory-rtl"),"rtl"===K),D);return h.createElement(tD,(0,d.Z)({icon:tp,ref:n,blockNode:!0},M,{showIcon:void 0===P||P,expandAction:void 0===R?"click":R,prefixCls:L,className:T,expandedKeys:k,selectedKeys:g,onSelect:b,onExpand:N}))},tm=h.forwardRef(th);function ty(e){var n,t=e.dropPosition,r=e.dropLevelOffset,o=e.prefixCls,a=e.indent,l=e.direction,i=void 0===l?"ltr":l,d="ltr"===i?"left":"right",s=(n={},(0,c.Z)(n,d,-r*a+4),(0,c.Z)(n,"ltr"===i?"right":"left",0),n);switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[d]=a+4}return h.createElement("div",{style:s,className:"".concat(o,"-drop-indicator")})}var tg={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},tx=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tg}))};tx.displayName="CaretDownFilled";var tC=h.forwardRef(tx),tE=t(50888),tk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},tZ=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tk}))};tZ.displayName="MinusSquareOutlined";var tN=h.forwardRef(tZ),tb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},tw=function(e,n){return h.createElement(eU.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:n,icon:tb}))};tw.displayName="PlusSquareOutlined";var tS=h.forwardRef(tw),tK=t(96159),tO=h.forwardRef(function(e,n){var t,r=h.useContext(eP.E_),o=r.getPrefixCls,a=r.direction,l=r.virtual,s=e.prefixCls,u=e.className,p=e.showIcon,v=void 0!==p&&p,m=e.showLine,y=e.switcherIcon,g=e.blockNode,x=void 0!==g&&g,C=e.children,E=e.checkable,k=void 0!==E&&E,Z=e.selectable,N=void 0===Z||Z,b=e.draggable,w=e.motion,S=void 0===w?(0,d.Z)((0,d.Z)({},te.ZP),{motionAppear:!1}):w,K=o("tree",s),O=(0,d.Z)((0,d.Z)({},e),{checkable:k,selectable:N,showIcon:v,motion:S,blockNode:x,showLine:Boolean(m),dropIndicatorRender:ty}),D=h.useMemo(function(){if(!b)return!1;var e={};switch((0,i.Z)(b)){case"function":e.nodeDraggable=b;break;case"object":e=(0,d.Z)({},b)}return!1!==e.icon&&(e.icon=e.icon||h.createElement(np,null)),e},[b]);return h.createElement(n9,(0,d.Z)({itemHeight:20,ref:n,virtual:l},O,{prefixCls:K,className:f()((t={},(0,c.Z)(t,"".concat(K,"-icon-hide"),!v),(0,c.Z)(t,"".concat(K,"-block-node"),x),(0,c.Z)(t,"".concat(K,"-unselectable"),!N),(0,c.Z)(t,"".concat(K,"-rtl"),"rtl"===a),t),u),direction:a,checkable:k?h.createElement("span",{className:"".concat(K,"-checkbox-inner")}):k,selectable:N,switcherIcon:function(e){return function(e,n,t,r){var o,a=r.isLeaf,l=r.expanded;if(r.loading)return h.createElement(tE.Z,{className:"".concat(e,"-switcher-loading-icon")});if(t&&"object"===(0,i.Z)(t)&&(o=t.showLeafIcon),a){if(!t)return null;if("boolean"!=typeof o&&o){var c="function"==typeof o?o(r):o;return(0,tK.l$)(c)?(0,tK.Tm)(c,{className:f()(c.props.className||"","".concat(e,"-switcher-line-custom-icon"))}):c}return o?h.createElement(tr,{className:"".concat(e,"-switcher-line-icon")}):h.createElement("span",{className:"".concat(e,"-switcher-leaf-line")})}var d="".concat(e,"-switcher-icon"),s="function"==typeof n?n(r):n;return(0,tK.l$)(s)?(0,tK.Tm)(s,{className:f()(s.props.className||"",d)}):s||(t?l?h.createElement(tN,{className:"".concat(e,"-switcher-line-icon")}):h.createElement(tS,{className:"".concat(e,"-switcher-line-icon")}):h.createElement(tC,{className:d}))}(K,y,m,e)},draggable:D}),C)});tO.TreeNode=nT,tO.DirectoryTree=tm;var tD=tO,tP=t(57838),tR=t(68795),tM=t(69677),tL=function(e){var n=e.value,t=e.onChange,r=e.filterSearch,o=e.tablePrefixCls,a=e.locale;return r?h.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},h.createElement(tM.Z,{prefix:h.createElement(tR.Z,null),placeholder:a.filterSearchPlaceholder,onChange:t,value:n,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null},tT=function(e){return h.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};function tI(e,n){return("string"==typeof n||"number"==typeof n)&&(null==n?void 0:n.toString().toLowerCase().includes(e.trim().toLowerCase()))}var tA=function(e){var n,t,r,o,a,l,i=e.tablePrefixCls,u=e.prefixCls,p=e.column,v=e.dropdownPrefixCls,m=e.columnKey,y=e.filterMultiple,g=e.filterMode,x=e.filterSearch,C=void 0!==x&&x,E=e.filterState,k=e.triggerFilter,Z=e.locale,N=e.children,b=e.getPopupContainer,w=p.filterDropdownOpen,S=p.onFilterDropdownOpenChange,K=p.filterDropdownVisible,O=p.onFilterDropdownVisibleChange,D=p.filterResetToDefaultFilteredValue,P=p.defaultFilteredValue,R=h.useState(!1),M=(0,s.Z)(R,2),L=M[0],T=M[1],I=!!(E&&((null===(r=E.filteredKeys)||void 0===r?void 0:r.length)||E.forceFiltered)),A=function(e){T(e),null==S||S(e),null==O||O(e)};o="boolean"==typeof w?w:"boolean"==typeof K?K:L;var H=null==E?void 0:E.filteredKeys,z=(n=h.useRef(H||[]),t=(0,tP.Z)(),[function(){return n.current},function(e){n.current=e,t()}]),F=(0,s.Z)(z,2),_=F[0],j=F[1],B=function(e){j(e.selectedKeys)},V=function(e,n){var t=n.node,r=n.checked;y?B({selectedKeys:e}):B({selectedKeys:r&&t.key?[t.key]:[]})};h.useEffect(function(){L&&B({selectedKeys:H||[]})},[H]);var W=h.useState([]),U=(0,s.Z)(W,2),G=U[0],X=U[1],q=function(e){X(e)},Y=h.useState(""),$=(0,s.Z)(Y,2),J=$[0],Q=$[1],ee=function(e){Q(e.target.value)};h.useEffect(function(){L||Q("")},[L]);var en=function(e){var n=e&&e.length?e:null;if(null===n&&(!E||!E.filteredKeys)||eY()(n,null==E?void 0:E.filteredKeys))return null;k({column:p,key:m,filteredKeys:n})},et=function(){A(!1),en(_())},er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},n=e.confirm,t=e.closeDropdown;n&&en([]),t&&A(!1),Q(""),D?j((P||[]).map(function(e){return String(e)})):j([])},eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e.closeDropdown&&A(!1),en(_())},ea=function(e){e&&void 0!==H&&j(H||[]),A(e),e||p.filterDropdown||et()},el=f()((0,c.Z)({},"".concat(v,"-menu-without-submenu"),!(p.filters||[]).some(function(e){return e.children}))),ei=function(e){e.target.checked?j(tz(null==p?void 0:p.filters).map(function(e){return String(e)})):j([])},ec=function e(n){var t;return(0,d.Z)((0,d.Z)({},n),{text:n.title,value:n.key,children:(null===(t=n.children)||void 0===t?void 0:t.map(function(n){return e(n)}))||[]})};if("function"==typeof p.filterDropdown)a=p.filterDropdown({prefixCls:"".concat(v,"-custom"),setSelectedKeys:function(e){return B({selectedKeys:e})},selectedKeys:_(),confirm:eo,clearFilters:er,filters:p.filters,visible:o,close:function(){A(!1)}});else if(p.filterDropdown)a=p.filterDropdown;else{var ed=_()||[];a=h.createElement(h.Fragment,null,0===(p.filters||[]).length?h.createElement(e0.Z,{image:e0.Z.PRESENTED_IMAGE_SIMPLE,description:Z.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===(void 0===g?"menu":g)?h.createElement(h.Fragment,null,h.createElement(tL,{filterSearch:C,value:J,onChange:ee,tablePrefixCls:i,locale:Z}),h.createElement("div",{className:"".concat(i,"-filter-dropdown-tree")},y?h.createElement(eJ.Z,{checked:ed.length===tz(p.filters).length,indeterminate:ed.length>0&&ed.lengthn.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},tV=t(84506),tW=t(80882),tU={},tG="SELECT_ALL",tX="SELECT_INVERT",tq="SELECT_NONE",tY=[],t$=t(39398),tJ=t(10010),tQ=t(94199),t0="ascend",t1="descend";function t2(e){return"object"===(0,i.Z)(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t3(e){return"function"==typeof e?e:!!e&&"object"===(0,i.Z)(e)&&!!e.compare&&e.compare}function t4(e,n,t){var r=[];function o(e,n){r.push({column:e,key:ej(e,n),multiplePriority:t2(e),sortOrder:e.sortOrder})}return(e||[]).forEach(function(e,a){var l=eB(a,t);e.children?("sortOrder"in e&&o(e,l),r=[].concat((0,v.Z)(r),(0,v.Z)(t4(e.children,n,l)))):e.sorter&&("sortOrder"in e?o(e,l):n&&e.defaultSortOrder&&r.push({column:e,key:ej(e,l),multiplePriority:t2(e),sortOrder:e.defaultSortOrder}))}),r}function t8(e){var n=e.column;return{column:n,order:e.sortOrder,field:n.dataIndex,columnKey:n.key}}function t6(e){var n=e.filter(function(e){return e.sortOrder}).map(t8);return 0===n.length&&e.length?(0,d.Z)((0,d.Z)({},t8(e[e.length-1])),{column:void 0}):n.length<=1?n[0]||{}:n}function t5(e,n,t){var r=n.slice().sort(function(e,n){return n.multiplePriority-e.multiplePriority}),o=e.slice(),a=r.filter(function(e){var n=e.column.sorter,t=e.sortOrder;return t3(n)&&t});return a.length?o.sort(function(e,n){for(var t=0;t2&&void 0!==arguments[2]&&arguments[2],r=(0,d.Z)((0,d.Z)({},es),e);t&&(es.resetPagination(),r.pagination.current&&(r.pagination.current=1),y&&y.onChange&&y.onChange(1,r.pagination.pageSize)),M&&!1!==M.scrollToFirstRowOnChange&&ea.body.current&&function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=n.callback,o=n.duration,a=void 0===o?450:o,l=(void 0===t?function(){return window}:t)(),i=function(e,n){if("undefined"==typeof window)return 0;var t,r,o=n?"scrollTop":"scrollLeft",a=0;return ez(e)?a=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!ez(e)&&"number"!=typeof a&&(a=null===(r=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===r?void 0:r[o]),a}(l,!0),c=Date.now(),d=function e(){var n,t,o=Date.now()-c,d=(n=o>a?a:o,t=0-i,(n/=a/2)<1?t/2*n*n*n+i:t/2*((n-=2)*n*n+2)+i);ez(l)?l.scrollTo(window.pageXOffset,d):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=d:l.scrollTop=d,o0?e7:e8}),na=Math.ceil((e7||e8)/no.pageSize),no.current>na&&(no.current=na||1),nl=function(e,n){nr({current:null!=e?e:1,pageSize:n||no.pageSize})},ni=function(e,n){var t;y&&(null===(t=y.onChange)||void 0===t||t.call(y,e,n)),nl(e,n),eK(e,n||(null==no?void 0:no.pageSize))},!1===y?[{},function(){}]:[(0,d.Z)((0,d.Z)({},no),{onChange:ni}),nl]),e_=(0,s.Z)(eF,2),eW=e_[0],eU=e_[1];es.pagination=!1===y?{}:(nc=y,nu={current:(nd=eW).current,pageSize:nd.pageSize},Object.keys(nc&&"object"===(0,i.Z)(nc)?nc:{}).forEach(function(e){var n=nd[e];"function"!=typeof n&&(nu[e]=n)}),nu),es.resetPagination=eU;var eG=h.useMemo(function(){if(!1===y||!eW.pageSize)return eN;var e=eW.current,n=void 0===e?1:e,t=eW.total,r=eW.pageSize,o=void 0===r?10:r;return eN.lengtho?eN.slice((n-1)*o,n*o):eN:eN.slice((n-1)*o,n*o)},[!!y,eN,eW&&eW.current,eW&&eW.pageSize,eW&&eW.total]),eX=(nf={prefixCls:J,data:eN,pageData:eG,getRowKey:ei,getRecordByKey:ed,expandType:eo,childrenColumnName:er,locale:q,getPopupContainer:w},nv=(np=g||{}).preserveSelectedRowKeys,nh=np.selectedRowKeys,nm=np.defaultSelectedRowKeys,ny=np.getCheckboxProps,ng=np.onChange,nC=np.onSelect,nE=np.onSelectAll,nk=np.onSelectInvert,nZ=np.onSelectNone,nN=np.onSelectMultiple,nb=np.columnWidth,nw=np.type,nS=np.selections,nO=np.fixed,nD=np.renderCell,nP=np.hideSelectAll,nM=void 0===(nR=np.checkStrictly)||nR,nL=nf.prefixCls,nT=nf.data,nH=nf.pageData,nz=nf.getRecordByKey,nF=nf.getRowKey,n_=nf.expandType,nj=nf.childrenColumnName,nB=nf.locale,nV=nf.getPopupContainer,nW=(0,e3.Z)(nh||nm||tY,{value:nh}),nG=(nU=(0,s.Z)(nW,2))[0],nX=nU[1],nq=h.useRef(new Map),nY=(0,h.useCallback)(function(e){if(nv){var n=new Map;e.forEach(function(e){var t=nz(e);!t&&nq.current.has(e)&&(t=nq.current.get(e)),n.set(e,t)}),nq.current=n}},[nz,nv]),h.useEffect(function(){nY(nG)},[nG]),n$=(0,h.useMemo)(function(){return nM?{keyEntities:null}:nK(nT,{externalGetKey:nF,childrenPropName:nj})},[nT,nF,nM,nj]).keyEntities,nJ=(0,h.useMemo)(function(){return function e(n,t){var r=[];return(n||[]).forEach(function(n){r.push(n),n&&"object"===(0,i.Z)(n)&&t in n&&(r=[].concat((0,v.Z)(r),(0,v.Z)(e(n[t],t))))}),r}(nH,nj)},[nH,nj]),nQ=(0,h.useMemo)(function(){var e=new Map;return nJ.forEach(function(n,t){var r=nF(n,t),o=(ny?ny(n):null)||{};e.set(r,o)}),e},[nJ,nF,ny]),n0=(0,h.useCallback)(function(e){var n;return!!(null===(n=nQ.get(nF(e)))||void 0===n?void 0:n.disabled)},[nQ,nF]),n1=(0,h.useMemo)(function(){if(nM)return[nG||[],[]];var e=n7(nG,!0,n$,n0);return[e.checkedKeys||[],e.halfCheckedKeys]},[nG,nM,n$,n0]),n3=(n2=(0,s.Z)(n1,2))[0],n4=n2[1],n8=(0,h.useMemo)(function(){var e="radio"===nw?n3.slice(0,1):n3;return new Set(e)},[n3,nw]),n6=(0,h.useMemo)(function(){return"radio"===nw?new Set:new Set(n4)},[n4,nw]),n5=(0,h.useState)(null),te=(n9=(0,s.Z)(n5,2))[0],tn=n9[1],h.useEffect(function(){g||nX(tY)},[!!g]),tt=(0,h.useCallback)(function(e,n){var t,r;nY(e),nv?(t=e,r=e.map(function(e){return nq.current.get(e)})):(t=[],r=[],e.forEach(function(e){var n=nz(e);void 0!==n&&(t.push(e),r.push(n))})),nX(t),null==ng||ng(t,r,{type:n})},[nX,nz,ng,nv]),tr=(0,h.useCallback)(function(e,n,t,r){if(nC){var o=t.map(function(e){return nz(e)});nC(nz(e),n,o,r)}tt(t,"single")},[nC,nz,tt]),to=(0,h.useMemo)(function(){return!nS||nP?null:(!0===nS?[tG,tX,tq]:nS).map(function(e){return e===tG?{key:"all",text:nB.selectionAll,onSelect:function(){tt(nT.map(function(e,n){return nF(e,n)}).filter(function(e){var n=nQ.get(e);return!(null==n?void 0:n.disabled)||n8.has(e)}),"all")}}:e===tX?{key:"invert",text:nB.selectInvert,onSelect:function(){var e=new Set(n8);nH.forEach(function(n,t){var r=nF(n,t),o=nQ.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});var n=Array.from(e);nk&&nk(n),tt(n,"invert")}}:e===tq?{key:"none",text:nB.selectNone,onSelect:function(){null==nZ||nZ(),tt(Array.from(n8).filter(function(e){var n=nQ.get(e);return null==n?void 0:n.disabled}),"none")}}:e}).map(function(e){return(0,d.Z)((0,d.Z)({},e),{onSelect:function(){for(var n,t=arguments.length,r=Array(t),o=0;o0&&g&&(ee.expandIconColumnIndex-=1),"number"!=typeof ee.indentSize&&(ee.indentSize="number"==typeof R?R:15);var e1=h.useCallback(function(e){return ew(eY(eE(ev(e))))},[ev,eE,eY]);if(!1!==y&&(null==eW?void 0:eW.total)){td=eW.size?eW.size:"small"===X||"middle"===X?"small":void 0;var e2,e4,e8,e6,e5,e7,e9,ne,nn,nt,nr,no,na,nl,ni,nc,nd,nu,nf,np,nv,nh,nm,ny,ng,nC,nE,nk,nZ,nN,nb,nw,nS,nO,nD,nP,nR,nM,nL,nT,nH,nz,nF,n_,nj,nB,nV,nW,nU,nG,nX,nq,nY,n$,nJ,nQ,n0,n1,n2,n3,n4,n8,n6,n5,n9,te,tn,tt,tr,to,ta,tl,ti,tc,td,ts=function(e){return h.createElement(eI.Z,(0,d.Z)({},eW,{className:f()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),eW.className),size:td}))},tu="rtl"===G?"left":"right",tf=eW.position;if(null!==tf&&Array.isArray(tf)){var tp=tf.find(function(e){return e.includes("top")}),tv=tf.find(function(e){return e.includes("bottom")}),th=tf.every(function(e){return"none"==="".concat(e)});tp||tv||th||(tc=ts(tu)),tp&&(ti=ts(tp.toLowerCase().replace("top",""))),tv&&(tc=ts(tv.toLowerCase().replace("bottom","")))}else tc=ts(tu)}"boolean"==typeof S?t={spinning:S}:"object"===(0,i.Z)(S)&&(t=(0,d.Z)({spinning:!0},S));var tm=f()("".concat(J,"-wrapper"),(0,c.Z)({},"".concat(J,"-wrapper-rtl"),"rtl"===G),o);return h.createElement("div",{ref:n,className:tm,style:a},h.createElement(eA.Z,(0,d.Z)({spinning:!1},t),ti,h.createElement(eO,(0,d.Z)({},_,{columns:F,direction:G,expandable:ee,prefixCls:J,className:f()((tl={},(0,c.Z)(tl,"".concat(J,"-middle"),"middle"===X),(0,c.Z)(tl,"".concat(J,"-small"),"small"===X),(0,c.Z)(tl,"".concat(J,"-bordered"),u),(0,c.Z)(tl,"".concat(J,"-empty"),0===Y.length),tl)),data:eG,rowKey:ei,rowClassName:e0,emptyText:T&&T.emptyText||(U||eR.Z)("Table"),internalHooks:eS,internalRefs:ea,transformColumns:e1})),tc))});t9.SELECTION_COLUMN=tU,t9.EXPAND_COLUMN=eO.EXPAND_COLUMN,t9.SELECTION_ALL=tG,t9.SELECTION_INVERT=tX,t9.SELECTION_NONE=tq,t9.Column=eF,t9.ColumnGroup=e_,t9.Summary=eh;var re=t9},50132:function(e,n,t){var r=t(87462),o=t(4942),a=t(45987),l=t(1413),i=t(15671),c=t(43144),d=t(60136),s=t(33643),u=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,d.Z)(t,e);var n=(0,s.Z)(t);function t(e){(0,i.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;!t&&("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,l.Z)((0,l.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var r,o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,l=n.className,i=n.style,c=n.name,d=n.id,s=n.type,f=n.disabled,v=n.readOnly,h=n.tabIndex,m=n.onClick,y=n.onFocus,g=n.onBlur,x=n.onKeyDown,C=n.onKeyPress,E=n.onKeyUp,k=n.autoFocus,Z=n.value,N=n.required,b=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),w=Object.keys(b).reduce(function(e,n){return("aria-"===n.substr(0,5)||"data-"===n.substr(0,5)||"role"===n)&&(e[n]=b[n]),e},{}),S=this.state.checked,K=p()(t,l,(e={},(0,o.Z)(e,"".concat(t,"-checked"),S),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return u.createElement("span",{className:K,style:i},u.createElement("input",(0,r.Z)({name:c,id:d,type:s,required:N,readOnly:v,disabled:f,tabIndex:h,className:"".concat(t,"-input"),checked:!!S,onClick:m,onFocus:y,onBlur:g,onKeyUp:E,onKeyDown:x,onKeyPress:C,onChange:this.handleChange,autoFocus:k,ref:this.saveInput,value:Z},w)),u.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,l.Z)((0,l.Z)({},n),{},{checked:e.checked}):null}}]),t}(u.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/5535.6b45610ba61bcdd0.js b/static/web/_next/static/chunks/5535.96e56f455f42f11a.js similarity index 98% rename from static/web/_next/static/chunks/5535.6b45610ba61bcdd0.js rename to static/web/_next/static/chunks/5535.96e56f455f42f11a.js index ed1af3417..ef6ca72b4 100644 --- a/static/web/_next/static/chunks/5535.6b45610ba61bcdd0.js +++ b/static/web/_next/static/chunks/5535.96e56f455f42f11a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5535],{54907:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var a=n(87462),r=n(4942),i=n(18073),o=n(94184),s=n.n(o),c=n(74902),l=n(15671),d=n(43144),u=n(60136),p=n(33643),h=n(71002),v=n(50344),m=n(67294),f=n(96774),A=n.n(f),y=n(45987),g=n(62874),x=n(97685),b=m.forwardRef(function(e,t){var n,a=e.prefixCls,i=e.forceRender,o=e.className,c=e.style,l=e.children,d=e.isActive,u=e.role,p=m.useState(d||i),h=(0,x.Z)(p,2),v=h[0],f=h[1];return(m.useEffect(function(){(i||d)&&f(!0)},[i,d]),v)?m.createElement("div",{ref:t,className:s()("".concat(a,"-content"),(n={},(0,r.Z)(n,"".concat(a,"-content-active"),d),(0,r.Z)(n,"".concat(a,"-content-inactive"),!d),n),o),style:c,role:u},m.createElement("div",{className:"".concat(a,"-content-box")},l)):null});b.displayName="PanelContent";var C=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],Z=function(e){(0,u.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;(0,l.Z)(this,n);for(var a=arguments.length,r=Array(a),i=0;i-1?t.splice(n,1):t.push(e)}a.setActiveKey(t)},a.getNewChild=function(e,t){if(!e)return null;var n=a.state.activeKey,r=a.props,i=r.prefixCls,o=r.openMotion,s=r.accordion,c=r.destroyInactivePanel,l=r.expandIcon,d=r.collapsible,u=e.key||String(t),p=e.props,h=p.header,v=p.headerClass,f=p.destroyInactivePanel,A=p.collapsible,y=!1;y=s?n[0]===u:n.indexOf(u)>-1;var g=null!=A?A:d,x={key:u,panelKey:u,header:h,headerClass:v,isActive:y,prefixCls:i,destroyInactivePanel:null!=f?f:c,openMotion:o,accordion:s,children:e.props.children,onItemClick:"disabled"===g?null:a.onClickItem,expandIcon:l,collapsible:g};return"string"==typeof e.type?e:(Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),m.cloneElement(e,x))},a.getItems=function(){var e=a.props.children;return(0,v.Z)(e).map(a.getNewChild)},a.setActiveKey=function(e){"activeKey"in a.props||a.setState({activeKey:e}),a.props.onChange(a.props.accordion?e[0]:e)};var a,r=e.activeKey,i=e.defaultActiveKey;return"activeKey"in e&&(i=r),a.state={activeKey:w(i)},a}return(0,d.Z)(n,[{key:"shouldComponentUpdate",value:function(e,t){return!A()(this.props,e)||!A()(this.state,t)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,a=t.className,i=t.style,o=t.accordion,c=s()((e={},(0,r.Z)(e,n,!0),(0,r.Z)(e,a,!!a),e));return m.createElement("div",{className:c,style:i,role:o?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=w(e.activeKey)),t}}]),n}(m.Component);N.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},N.Panel=Z,N.Panel;var E=n(98423),I=n(53124),j=n(33603),k=n(96159),O=function(e){var t=m.useContext(I.E_).getPrefixCls,n=e.prefixCls,i=e.className,o=e.showArrow,c=t("collapse",n),l=s()((0,r.Z)({},"".concat(c,"-no-arrow"),!(void 0===o||o)),void 0===i?"":i);return m.createElement(N.Panel,(0,a.Z)({},e,{prefixCls:c,className:l}))},S=function(e){var t,n,o=m.useContext(I.E_),c=o.getPrefixCls,l=o.direction,d=e.prefixCls,u=e.className,p=e.bordered,h=e.ghost,f=e.expandIconPosition,A=void 0===f?"start":f,y=c("collapse",d),g=m.useMemo(function(){return"left"===A?"start":"right"===A?"end":A},[A]),x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.expandIcon,a=n?n(t):m.createElement(i.Z,{rotate:t.isActive?90:void 0});return(0,k.Tm)(a,function(){return{className:s()(a.props.className,"".concat(y,"-arrow"))}})},b=s()("".concat(y,"-icon-position-").concat(g),(n={},(0,r.Z)(n,"".concat(y,"-borderless"),!(void 0===p||p)),(0,r.Z)(n,"".concat(y,"-rtl"),"rtl"===l),(0,r.Z)(n,"".concat(y,"-ghost"),!!h),n),void 0===u?"":u),C=(0,a.Z)((0,a.Z)({},j.ZP),{motionAppear:!1,leavedClassName:"".concat(y,"-content-hidden")});return m.createElement(N,(0,a.Z)({openMotion:C},e,{expandIcon:x,prefixCls:y,className:b}),(t=e.children,(0,v.Z)(t).map(function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var r=e.key||String(t),i=e.props,o=i.disabled,s=i.collapsible,c=(0,a.Z)((0,a.Z)({},(0,E.Z)(e.props,["disabled"])),{key:r,collapsible:null!=s?s:o?"disabled":void 0});return(0,k.Tm)(e,c)}return e})))};S.Panel=O;var P=S},11382:function(e,t,n){"use strict";var a=n(87462),r=n(4942),i=n(97685),o=n(94184),s=n.n(o),c=n(23279),l=n.n(c),d=n(98423),u=n(67294),p=n(53124),h=n(96159),v=n(93355),m=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};(0,v.b)("small","default","large");var f=null,A=function(e){var t=e.spinPrefixCls,n=e.spinning,o=void 0===n||n,c=e.delay,v=e.className,A=e.size,y=void 0===A?"default":A,g=e.tip,x=e.wrapperClassName,b=e.style,C=e.children,Z=m(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),w=u.useState(function(){return o&&(!o||!c||!!isNaN(Number(c)))}),N=(0,i.Z)(w,2),E=N[0],I=N[1];u.useEffect(function(){var e=l()(function(){I(o)},c);return e(),function(){var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}},[c,o]);var j=function(n){var i,o,c,l=n.direction,p=s()(t,(c={},(0,r.Z)(c,"".concat(t,"-sm"),"small"===y),(0,r.Z)(c,"".concat(t,"-lg"),"large"===y),(0,r.Z)(c,"".concat(t,"-spinning"),E),(0,r.Z)(c,"".concat(t,"-show-text"),!!g),(0,r.Z)(c,"".concat(t,"-rtl"),"rtl"===l),c),v),m=(0,d.Z)(Z,["indicator","prefixCls"]),A=u.createElement("div",(0,a.Z)({},m,{style:b,className:p,"aria-live":"polite","aria-busy":E}),(i=e.indicator,o="".concat(t,"-dot"),null===i?null:(0,h.l$)(i)?(0,h.Tm)(i,{className:s()(i.props.className,o)}):(0,h.l$)(f)?(0,h.Tm)(f,{className:s()(f.props.className,o)}):u.createElement("span",{className:s()(o,"".concat(t,"-dot-spin"))},u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}))),g?u.createElement("div",{className:"".concat(t,"-text")},g):null);if(void 0!==C){var w=s()("".concat(t,"-container"),(0,r.Z)({},"".concat(t,"-blur"),E));return u.createElement("div",(0,a.Z)({},m,{className:s()("".concat(t,"-nested-loading"),x)}),E&&u.createElement("div",{key:"loading"},A),u.createElement("div",{className:w,key:"container"},C))}return A};return u.createElement(p.C,null,j)},y=function(e){var t=e.prefixCls,n=(0,u.useContext(p.E_).getPrefixCls)("spin",t),r=(0,a.Z)((0,a.Z)({},e),{spinPrefixCls:n});return u.createElement(A,(0,a.Z)({},r))};y.setDefaultIndicator=function(e){f=e},t.Z=y},65535:function(e,t,n){"use strict";n.r(t),n.d(t,{AuthModal:function(){return I}});var a=n(85893),r=n(84381),i=n(4480),o=n(54907),s=n(84485),c=n(11382),l=n(26713),d=n(14670),u=n(69677),p=n(67294),h=n(37174);let{Panel:v}=o.Z,{Link:m}=s.Z,f=e=>{let{authenticated:t,displayName:n,accessToken:r}=e,[i,s]=(0,p.useState)(null),[f,A]=(0,p.useState)(!1),[y,g]=(0,p.useState)(!1),[x,b]=(0,p.useState)(""),C=t?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,a.jsxs)("span",{children:["Use your own domain to authenticate ",(0,a.jsx)("span",{children:n})," or login as a previously"," ","authenticated chat user using IndieAuth."]}),Z=i;Z&&Z.includes("url does not support indieauth")&&(Z="The provided URL is either invalid or does not support IndieAuth.");let w=e=>{if(!(0,h.Z)(e)||!e.includes(".")){g(!1);return}g(!0)},N=e=>{let t=e.nativeEvent.data;if(":"===t)return;b(e.target.value);let n="https://".concat(e.target.value);w(n)},E=async()=>{if(y){A(!0);try{let e=await fetch("/api/auth/indieauth?accessToken=".concat(r),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({authHost:"https://".concat(x)})}),t=await e.json();if(t.message){s(t.message),A(!1);return}if(!t.redirect){s("Auth provider did not return a redirect URL."),A(!1);return}if(t.redirect){let{redirect:n}=t;window.location=n}}catch(a){s(a.message)}A(!1)}};return(0,a.jsx)(c.Z,{spinning:f,children:(0,a.jsxs)(l.Z,{direction:"vertical",children:[C,Z&&(0,a.jsx)(d.Z,{message:"Error",description:Z,type:"error",showIcon:!0}),(0,a.jsx)("div",{children:"Your domain"}),(0,a.jsx)(u.Z.Search,{addonBefore:"https://",onInput:N,type:"url",value:x,placeholder:"yoursite.com",status:!y&&x.length>0?"error":void 0,onSearch:E}),(0,a.jsx)(o.Z,{ghost:!0,children:(0,a.jsxs)(v,{header:"Learn more about using IndieAuth to authenticate with chat.",children:[(0,a.jsx)("p",{children:"IndieAuth allows for a completely independent and decentralized way of identifying yourself using your own domain."}),(0,a.jsxs)("p",{children:["If you run an Owncast instance, you can use that domain here. Otherwise,"," ",(0,a.jsx)(m,{href:"https://indieauth.net/#providers",children:"learn more about how you can support IndieAuth"}),"."]})]},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})};var A=n(71577),y=n(50501),g=n.n(y);let{Panel:x}=o.Z,b=e=>{let{authenticated:t,displayName:n,accessToken:r}=e,[i,s]=(0,p.useState)(null),[h,v]=(0,p.useState)(!1),[m,f]=(0,p.useState)(!1),[y,b]=(0,p.useState)(""),[C,Z]=(0,p.useState)(""),[w,N]=(0,p.useState)(!1),E=t?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,a.jsxs)("span",{children:["Receive a direct message on the Fediverse to link your account to"," ",(0,a.jsx)("strong",{children:n}),", or login as a previously linked chat user."]}),I=i;I&&I.includes("url does not support indieauth")&&(I="The provided URL is either invalid or does not support IndieAuth.");let j=e=>{f(function(e){let t=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e))},k=e=>{b(e.target.value),j(e.target.value)},O=async(e,t)=>{let n=await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}),a=await n.json();a.message&&(s(a.message),v(!1))},S=async()=>{v(!0);try{await O("/api/auth/fediverse/verify?accessToken=".concat(r),{code:C}),window.location.href="/"}catch(e){console.error(e),s(e)}v(!1)},P=async()=>{if(!m)return;v(!0),s(null);let e=y.replace(/^@+/,"");try{await O("/api/auth/fediverse?accessToken=".concat(r),{account:e}),N(!0)}catch(t){console.error(t),s(t)}v(!1)},T=(0,a.jsxs)("div",{children:["Paste in the code that was sent to your Fediverse account. If you did not receive a code, make sure you can accept direct messages.",(0,a.jsxs)("div",{className:g().codeInputContainer,children:[(0,a.jsx)(u.Z,{value:C,onChange:e=>Z(e.target.value),className:g().codeInput,placeholder:"123456",maxLength:6}),(0,a.jsx)(A.Z,{type:"primary",onClick:S,disabled:C.length<6,className:g().submitButton,children:"Verify Code"})]})]}),R=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:"Your Fediverse Account"}),(0,a.jsx)(u.Z.Search,{addonBefore:"@",onInput:k,value:y,placeholder:"youraccount@yourserver.com",status:!m&&y.length>0?"error":void 0,onSearch:P})]});return(0,a.jsx)(c.Z,{spinning:h,children:(0,a.jsxs)(l.Z,{direction:"vertical",children:[E,I&&(0,a.jsx)(d.Z,{message:"Error",description:I,type:"error",showIcon:!0}),w?T:R,(0,a.jsx)(o.Z,{ghost:!0,children:(0,a.jsx)(x,{header:"Learn more about using the Fediverse to authenticate with chat.",children:(0,a.jsx)("p",{children:"xxxxxx"})},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})};var C={src:"/_next/static/media/fediverse-black.0b51c805.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAOVBMVEVMaXEbGxsREREQEBAPDw8NDQ0FBQUQEBAQEBAUFBQNDQ0REREVFRUQEBAODg4UFBQUFBQHBwcNDQ1DUQGwAAAAE3RSTlMAC2QvWeDEnZQbSn15tW2ri/pAr8wTOgAAAAlwSFlzAAAD6AAAA+gBtXtSawAAAD1JREFUeJwdy0cOgDAMAMGNS2yHFPj/Z0GcRwMwegNaWbgB3WfmZSArZd7eqR0qEYM6GT/pc/bygqal8v0XMgEBhHcrytIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},Z={src:"/_next/static/media/indieauth.38c52a3d.png",height:512,width:406,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAAJFBMVEU4ODg4ODg5OTk5OTk5OTk4ODg5OTk4ODg5OTk5OTk5OTk4ODiRUFfYAAAAC3RSTlMCFOuovTv1zI8wabTrOYwAAAAJcEhZcwAAA+gAAAPoAbV7UmsAAAAsSURBVHicBcGFAQAwDMCg1Gb5/98BHG1gd2UQGeQwVvl4ujyUEzbbi8nyhn4bVgEfoFU38wAAAABJRU5ErkJggg==",blurWidth:6,blurHeight:8},w=n(54639),N=n.n(w),E=n(77466);let I=()=>{let e=(0,i.sJ)(E.L4),t=(0,i.sJ)(E.FI),n=(0,i.sJ)(E.db);if(!n)return null;let{displayName:o}=n,s=(0,a.jsxs)("span",{className:N().tabContent,children:[(0,a.jsx)("img",{className:N().icon,src:Z.src,alt:"IndieAuth"}),"IndieAuth"]}),c=(0,a.jsx)(f,{authenticated:e,displayName:o,accessToken:t}),l=(0,a.jsxs)("span",{className:N().tabContent,children:[(0,a.jsx)("img",{className:N().icon,src:C.src,alt:"Fediverse auth"}),"FediAuth"]}),d=(0,a.jsx)(b,{authenticated:e,displayName:o,accessToken:t});return(0,a.jsx)("div",{children:(0,a.jsx)(r.Z,{defaultActiveKey:"1",items:[{label:s,key:"1",children:c},{label:l,key:"2",children:d}],type:"card",size:"small",renderTabBar:null})})}},54639:function(e){e.exports={tabContent:"AuthModal_tabContent__KgMU3",icon:"AuthModal_icon__kpEuV"}},50501:function(e){e.exports={codeInputContainer:"FediAuthModal_codeInputContainer__M_dAD",codeInput:"FediAuthModal_codeInput__dIE6u",submitButton:"FediAuthModal_submitButton__iuF9R"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5535],{54907:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var a=n(87462),r=n(4942),i=n(18073),o=n(94184),s=n.n(o),c=n(74902),l=n(15671),d=n(43144),u=n(60136),p=n(33643),h=n(71002),v=n(50344),m=n(67294),f=n(96774),A=n.n(f),y=n(45987),g=n(62874),x=n(97685),b=m.forwardRef(function(e,t){var n,a=e.prefixCls,i=e.forceRender,o=e.className,c=e.style,l=e.children,d=e.isActive,u=e.role,p=m.useState(d||i),h=(0,x.Z)(p,2),v=h[0],f=h[1];return(m.useEffect(function(){(i||d)&&f(!0)},[i,d]),v)?m.createElement("div",{ref:t,className:s()("".concat(a,"-content"),(n={},(0,r.Z)(n,"".concat(a,"-content-active"),d),(0,r.Z)(n,"".concat(a,"-content-inactive"),!d),n),o),style:c,role:u},m.createElement("div",{className:"".concat(a,"-content-box")},l)):null});b.displayName="PanelContent";var C=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],Z=function(e){(0,u.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;(0,l.Z)(this,n);for(var a=arguments.length,r=Array(a),i=0;i-1?t.splice(n,1):t.push(e)}a.setActiveKey(t)},a.getNewChild=function(e,t){if(!e)return null;var n=a.state.activeKey,r=a.props,i=r.prefixCls,o=r.openMotion,s=r.accordion,c=r.destroyInactivePanel,l=r.expandIcon,d=r.collapsible,u=e.key||String(t),p=e.props,h=p.header,v=p.headerClass,f=p.destroyInactivePanel,A=p.collapsible,y=!1;y=s?n[0]===u:n.indexOf(u)>-1;var g=null!=A?A:d,x={key:u,panelKey:u,header:h,headerClass:v,isActive:y,prefixCls:i,destroyInactivePanel:null!=f?f:c,openMotion:o,accordion:s,children:e.props.children,onItemClick:"disabled"===g?null:a.onClickItem,expandIcon:l,collapsible:g};return"string"==typeof e.type?e:(Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),m.cloneElement(e,x))},a.getItems=function(){var e=a.props.children;return(0,v.Z)(e).map(a.getNewChild)},a.setActiveKey=function(e){"activeKey"in a.props||a.setState({activeKey:e}),a.props.onChange(a.props.accordion?e[0]:e)};var a,r=e.activeKey,i=e.defaultActiveKey;return"activeKey"in e&&(i=r),a.state={activeKey:w(i)},a}return(0,d.Z)(n,[{key:"shouldComponentUpdate",value:function(e,t){return!A()(this.props,e)||!A()(this.state,t)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,a=t.className,i=t.style,o=t.accordion,c=s()((e={},(0,r.Z)(e,n,!0),(0,r.Z)(e,a,!!a),e));return m.createElement("div",{className:c,style:i,role:o?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=w(e.activeKey)),t}}]),n}(m.Component);N.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},N.Panel=Z,N.Panel;var E=n(98423),I=n(53124),j=n(33603),k=n(96159),O=function(e){var t=m.useContext(I.E_).getPrefixCls,n=e.prefixCls,i=e.className,o=e.showArrow,c=t("collapse",n),l=s()((0,r.Z)({},"".concat(c,"-no-arrow"),!(void 0===o||o)),void 0===i?"":i);return m.createElement(N.Panel,(0,a.Z)({},e,{prefixCls:c,className:l}))},S=function(e){var t,n,o=m.useContext(I.E_),c=o.getPrefixCls,l=o.direction,d=e.prefixCls,u=e.className,p=e.bordered,h=e.ghost,f=e.expandIconPosition,A=void 0===f?"start":f,y=c("collapse",d),g=m.useMemo(function(){return"left"===A?"start":"right"===A?"end":A},[A]),x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.expandIcon,a=n?n(t):m.createElement(i.Z,{rotate:t.isActive?90:void 0});return(0,k.Tm)(a,function(){return{className:s()(a.props.className,"".concat(y,"-arrow"))}})},b=s()("".concat(y,"-icon-position-").concat(g),(n={},(0,r.Z)(n,"".concat(y,"-borderless"),!(void 0===p||p)),(0,r.Z)(n,"".concat(y,"-rtl"),"rtl"===l),(0,r.Z)(n,"".concat(y,"-ghost"),!!h),n),void 0===u?"":u),C=(0,a.Z)((0,a.Z)({},j.ZP),{motionAppear:!1,leavedClassName:"".concat(y,"-content-hidden")});return m.createElement(N,(0,a.Z)({openMotion:C},e,{expandIcon:x,prefixCls:y,className:b}),(t=e.children,(0,v.Z)(t).map(function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var r=e.key||String(t),i=e.props,o=i.disabled,s=i.collapsible,c=(0,a.Z)((0,a.Z)({},(0,E.Z)(e.props,["disabled"])),{key:r,collapsible:null!=s?s:o?"disabled":void 0});return(0,k.Tm)(e,c)}return e})))};S.Panel=O;var P=S},11382:function(e,t,n){"use strict";var a=n(87462),r=n(4942),i=n(97685),o=n(94184),s=n.n(o),c=n(23279),l=n.n(c),d=n(98423),u=n(67294),p=n(53124),h=n(96159),v=n(93355),m=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};(0,v.b)("small","default","large");var f=null,A=function(e){var t=e.spinPrefixCls,n=e.spinning,o=void 0===n||n,c=e.delay,v=e.className,A=e.size,y=void 0===A?"default":A,g=e.tip,x=e.wrapperClassName,b=e.style,C=e.children,Z=m(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),w=u.useState(function(){return o&&(!o||!c||!!isNaN(Number(c)))}),N=(0,i.Z)(w,2),E=N[0],I=N[1];u.useEffect(function(){var e=l()(function(){I(o)},c);return e(),function(){var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}},[c,o]);var j=function(n){var i,o,c,l=n.direction,p=s()(t,(c={},(0,r.Z)(c,"".concat(t,"-sm"),"small"===y),(0,r.Z)(c,"".concat(t,"-lg"),"large"===y),(0,r.Z)(c,"".concat(t,"-spinning"),E),(0,r.Z)(c,"".concat(t,"-show-text"),!!g),(0,r.Z)(c,"".concat(t,"-rtl"),"rtl"===l),c),v),m=(0,d.Z)(Z,["indicator","prefixCls"]),A=u.createElement("div",(0,a.Z)({},m,{style:b,className:p,"aria-live":"polite","aria-busy":E}),(i=e.indicator,o="".concat(t,"-dot"),null===i?null:(0,h.l$)(i)?(0,h.Tm)(i,{className:s()(i.props.className,o)}):(0,h.l$)(f)?(0,h.Tm)(f,{className:s()(f.props.className,o)}):u.createElement("span",{className:s()(o,"".concat(t,"-dot-spin"))},u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}),u.createElement("i",{className:"".concat(t,"-dot-item")}))),g?u.createElement("div",{className:"".concat(t,"-text")},g):null);if(void 0!==C){var w=s()("".concat(t,"-container"),(0,r.Z)({},"".concat(t,"-blur"),E));return u.createElement("div",(0,a.Z)({},m,{className:s()("".concat(t,"-nested-loading"),x)}),E&&u.createElement("div",{key:"loading"},A),u.createElement("div",{className:w,key:"container"},C))}return A};return u.createElement(p.C,null,j)},y=function(e){var t=e.prefixCls,n=(0,u.useContext(p.E_).getPrefixCls)("spin",t),r=(0,a.Z)((0,a.Z)({},e),{spinPrefixCls:n});return u.createElement(A,(0,a.Z)({},r))};y.setDefaultIndicator=function(e){f=e},t.Z=y},65535:function(e,t,n){"use strict";n.r(t),n.d(t,{AuthModal:function(){return I}});var a=n(85893),r=n(84381),i=n(4480),o=n(54907),s=n(84485),c=n(11382),l=n(26713),d=n(14670),u=n(69677),p=n(67294),h=n(37174);let{Panel:v}=o.Z,{Link:m}=s.Z,f=e=>{let{authenticated:t,displayName:n,accessToken:r}=e,[i,s]=(0,p.useState)(null),[f,A]=(0,p.useState)(!1),[y,g]=(0,p.useState)(!1),[x,b]=(0,p.useState)(""),C=t?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,a.jsxs)("span",{children:["Use your own domain to authenticate ",(0,a.jsx)("span",{children:n})," or login as a previously"," ","authenticated chat user using IndieAuth."]}),Z=i;Z&&Z.includes("url does not support indieauth")&&(Z="The provided URL is either invalid or does not support IndieAuth.");let w=e=>{if(!(0,h.Z)(e)||!e.includes(".")){g(!1);return}g(!0)},N=e=>{let t=e.nativeEvent.data;if(":"===t)return;b(e.target.value);let n="https://".concat(e.target.value);w(n)},E=async()=>{if(y){A(!0);try{let e=await fetch("/api/auth/indieauth?accessToken=".concat(r),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({authHost:"https://".concat(x)})}),t=await e.json();if(t.message){s(t.message),A(!1);return}if(!t.redirect){s("Auth provider did not return a redirect URL."),A(!1);return}if(t.redirect){let{redirect:n}=t;window.location=n}}catch(a){s(a.message)}A(!1)}};return(0,a.jsx)(c.Z,{spinning:f,children:(0,a.jsxs)(l.Z,{direction:"vertical",children:[C,Z&&(0,a.jsx)(d.Z,{message:"Error",description:Z,type:"error",showIcon:!0}),(0,a.jsx)("div",{children:"Your domain"}),(0,a.jsx)(u.Z.Search,{addonBefore:"https://",onInput:N,type:"url",value:x,placeholder:"yoursite.com",status:!y&&x.length>0?"error":void 0,onSearch:E}),(0,a.jsx)(o.Z,{ghost:!0,children:(0,a.jsxs)(v,{header:"Learn more about using IndieAuth to authenticate with chat.",children:[(0,a.jsx)("p",{children:"IndieAuth allows for a completely independent and decentralized way of identifying yourself using your own domain."}),(0,a.jsxs)("p",{children:["If you run an Owncast instance, you can use that domain here. Otherwise,"," ",(0,a.jsx)(m,{href:"https://indieauth.net/#providers",children:"learn more about how you can support IndieAuth"}),"."]})]},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})};var A=n(71577),y=n(50501),g=n.n(y);let{Panel:x}=o.Z,b=e=>{let{authenticated:t,displayName:n,accessToken:r}=e,[i,s]=(0,p.useState)(null),[h,v]=(0,p.useState)(!1),[m,f]=(0,p.useState)(!1),[y,b]=(0,p.useState)(""),[C,Z]=(0,p.useState)(""),[w,N]=(0,p.useState)(!1),E=t?(0,a.jsxs)("span",{children:[(0,a.jsx)("b",{children:"You are already authenticated"}),". However, you can add other domains or log in as a different user."]}):(0,a.jsxs)("span",{children:["Receive a direct message on the Fediverse to link your account to"," ",(0,a.jsx)("strong",{children:n}),", or login as a previously linked chat user."]}),I=i;I&&I.includes("url does not support indieauth")&&(I="The provided URL is either invalid or does not support IndieAuth.");let j=e=>{f(function(e){let t=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e))},k=e=>{b(e.target.value),j(e.target.value)},O=async(e,t)=>{let n=await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}),a=await n.json();a.message&&(s(a.message),v(!1))},S=async()=>{v(!0);try{await O("/api/auth/fediverse/verify?accessToken=".concat(r),{code:C}),window.location.href="/"}catch(e){console.error(e),s(e)}v(!1)},P=async()=>{if(!m)return;v(!0),s(null);let e=y.replace(/^@+/,"");try{await O("/api/auth/fediverse?accessToken=".concat(r),{account:e}),N(!0)}catch(t){console.error(t),s(t)}v(!1)},T=(0,a.jsxs)("div",{children:["Paste in the code that was sent to your Fediverse account. If you did not receive a code, make sure you can accept direct messages.",(0,a.jsxs)("div",{className:g().codeInputContainer,children:[(0,a.jsx)(u.Z,{value:C,onChange:e=>Z(e.target.value),className:g().codeInput,placeholder:"123456",maxLength:6}),(0,a.jsx)(A.Z,{type:"primary",onClick:S,disabled:C.length<6,className:g().submitButton,children:"Verify Code"})]})]}),R=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:"Your Fediverse Account"}),(0,a.jsx)(u.Z.Search,{addonBefore:"@",onInput:k,value:y,placeholder:"youraccount@yourserver.com",status:!m&&y.length>0?"error":void 0,onSearch:P})]});return(0,a.jsx)(c.Z,{spinning:h,children:(0,a.jsxs)(l.Z,{direction:"vertical",children:[E,I&&(0,a.jsx)(d.Z,{message:"Error",description:I,type:"error",showIcon:!0}),w?T:R,(0,a.jsx)(o.Z,{ghost:!0,children:(0,a.jsx)(x,{header:"Learn more about using the Fediverse to authenticate with chat.",children:(0,a.jsx)("p",{children:"xxxxxx"})},"header")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Note"}),": This is for authentication purposes only, and no personal information will be accessed or stored."]})]})})};var C={src:"/_next/static/media/fediverse-black.0b51c805.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAOVBMVEVMaXEbGxsREREQEBAPDw8NDQ0FBQUQEBAQEBAUFBQNDQ0REREVFRUQEBAODg4UFBQUFBQHBwcNDQ1DUQGwAAAAE3RSTlMAC2QvWeDEnZQbSn15tW2ri/pAr8wTOgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAD1JREFUeJwdy0cOgDAMAMGNS2yHFPj/Z0GcRwMwegNaWbgB3WfmZSArZd7eqR0qEYM6GT/pc/bygqal8v0XMgEBhHcrytIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},Z={src:"/_next/static/media/indieauth.38c52a3d.png",height:512,width:406,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAAJFBMVEU4ODg4ODg5OTk5OTk5OTk4ODg5OTk4ODg5OTk5OTk5OTk4ODiRUFfYAAAAC3RSTlMCFOuovTv1zI8wabTrOYwAAAAJcEhZcwAALiMAAC4jAXilP3YAAAAsSURBVHicBcGFAQAwDMCg1Gb5/98BHG1gd2UQGeQwVvl4ujyUEzbbi8nyhn4bVgEfoFU38wAAAABJRU5ErkJggg==",blurWidth:6,blurHeight:8},w=n(54639),N=n.n(w),E=n(77466);let I=()=>{let e=(0,i.sJ)(E.L4),t=(0,i.sJ)(E.FI),n=(0,i.sJ)(E.db);if(!n)return null;let{displayName:o}=n,s=(0,a.jsxs)("span",{className:N().tabContent,children:[(0,a.jsx)("img",{className:N().icon,src:Z.src,alt:"IndieAuth"}),"IndieAuth"]}),c=(0,a.jsx)(f,{authenticated:e,displayName:o,accessToken:t}),l=(0,a.jsxs)("span",{className:N().tabContent,children:[(0,a.jsx)("img",{className:N().icon,src:C.src,alt:"Fediverse auth"}),"FediAuth"]}),d=(0,a.jsx)(b,{authenticated:e,displayName:o,accessToken:t});return(0,a.jsx)("div",{children:(0,a.jsx)(r.Z,{defaultActiveKey:"1",items:[{label:s,key:"1",children:c},{label:l,key:"2",children:d}],type:"card",size:"small",renderTabBar:null})})}},54639:function(e){e.exports={tabContent:"AuthModal_tabContent__KgMU3",icon:"AuthModal_icon__kpEuV"}},50501:function(e){e.exports={codeInputContainer:"FediAuthModal_codeInputContainer__M_dAD",codeInput:"FediAuthModal_codeInput__dIE6u",submitButton:"FediAuthModal_submitButton__iuF9R"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/main-170da8d31ca0bc71.js b/static/web/_next/static/chunks/main-170da8d31ca0bc71.js deleted file mode 100644 index 6e074fff9..000000000 --- a/static/web/_next/static/chunks/main-170da8d31ca0bc71.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{60932:function(e,t){"use strict";function r(e,t,r,n,a,o,i){try{var l=e[o](i),s=l.value}catch(u){r(u);return}l.done?t(s):Promise.resolve(s).then(n,a)}t.Z=function(e){return function(){var t=this,n=arguments;return new Promise(function(a,o){var i=e.apply(t,n);function l(e){r(i,a,o,l,s,"next",e)}function s(e){r(i,a,o,l,s,"throw",e)}l(void 0)})}}},6495:function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(a[r]=e[r]);return a}},40037:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})})},33468:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBasePath=function(e,t){return a.normalizePathTrailingSlash(n.addPathPrefix(e,""))};var n=r(44135),a=r(52700);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54465:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=void 0,r(52700);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'.concat(e.props["data-href"],'"]')))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,o="";if(r){let{children:i}=r.props;o="string"==typeof i?i:Array.isArray(i)?i.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{(function(e,t){let r=document.getElementsByTagName("head")[0],o=r.querySelector("meta[name=next-head-count]"),i=Number(o.content),l=[];for(let s=0,u=o.previousElementSibling;s{for(let t=0,r=l.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),d.forEach(e=>r.insertBefore(e,o)),o.content=(i-l.length+d.length).toString()})(e,t[e]||[])})}}},t.isEqualNode=a,t.DOMAttributeNames=void 0;let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function n(e){let{type:t,props:n}=e,a=document.createElement(t);for(let o in n){if(!n.hasOwnProperty(o)||"children"===o||"dangerouslySetInnerHTML"===o||void 0===n[o])continue;let i=r[o]||o.toLowerCase();"script"===t&&("async"===i||"defer"===i||"noModule"===i)?a[i]=!!n[o]:a.setAttribute(i,n[o])}let{children:l,dangerouslySetInnerHTML:s}=n;return s?a.innerHTML=s.__html||"":l&&(a.textContent="string"==typeof l?l:Array.isArray(l)?l.join(""):""),a}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}t.DOMAttributeNames=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84534:function(e,t,r){"use strict";let n,a,o,i,l,s,u,c,d,f,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=r(91598).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=function(){return F.apply(this,arguments)},t.hydrate=function(e){return en.apply(this,arguments)},t.emitter=t.router=t.version=void 0;var g=r(60932).Z,y=r(6495).Z,v=r(92648).Z;r(91598).Z,r(40037);var _=v(r(67294)),P=v(r(20745)),b=r(4664),E=v(r(8550)),S=r(72692),w=r(86238),x=r(94919),O=r(86949),j=r(670),R=r(17345),C=v(r(31831)),M=v(r(70976)),A=v(r(659)),T=r(18483),L=r(80880),I=r(80676),N=r(28730),k=r(82813),D=r(10928);t.version="13.0.1",t.router=n;let B=E.default();t.emitter=B;let U=e=>[].slice.call(e),H=!1;self.__next_require__=r;class q extends _.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&"/404"!==a.page&&"/_error"!==a.page&&(a.isFallback||a.nextExport&&(w.isDynamicRoute(n.pathname)||location.search,1)||a.props&&a.props.__N_SSG&&(location.search,1))&&n.replace(n.pathname+"?"+String(x.assign(x.urlQueryToSearchParams(n.query),new URLSearchParams(location.search))),o,{_h:1,shallow:!a.isFallback&&!H}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}function F(){return(F=g(function*(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=a,h=a.defaultLocale;let e=a.assetPrefix||"";if(r.p="".concat(e,"/_next/"),O.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:a.runtimeConfig||{}}),o=j.getURL(),D.hasBasePath(o)&&(o=k.removeBasePath(o)),a.scriptLoader){let{initScriptLoader:t}=r(63573);t(a.scriptLoader)}i=new M.default(a.buildId,e);let u=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>u(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=u,(s=C.default()).getIsSsr=()=>n.isSsr,l=document.getElementById("__next"),{assetPrefix:e}})).apply(this,arguments)}function W(e,t){return _.default.createElement(e,Object.assign({},t))}function Z(e){let{children:t}=e;return _.default.createElement(q,{fn:e=>G({App:d,err:e}).catch(e=>console.error("Error rendering page: ",e))},_.default.createElement(S.RouterContext.Provider,{value:L.makePublicRouterInstance(n)},_.default.createElement(b.HeadManagerContext.Provider,{value:s},_.default.createElement(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}},t))))}let z=e=>t=>{let r=y({},t,{Component:p,err:a.err,router:n});return _.default.createElement(Z,null,W(e,r))};function G(e){let{App:t,err:l}=e;return console.error(l),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:a,styleSheets:o}=n;return(null==u?void 0:u.Component)===a?Promise.resolve().then(()=>m(r(97345))).then(n=>Promise.resolve().then(()=>m(r(74297))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:a,styleSheets:o}}).then(r=>{var i;let{ErrorComponent:s,styleSheets:u}=r,c=z(t),d={Component:s,AppTree:c,router:n,ctx:{err:l,pathname:a.page,query:a.query,asPath:o,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:j.loadGetInitialProps(t,d)).then(t=>ee(y({},e,{err:l,Component:s,styleSheets:u,props:t})))})}function V(e){let{callback:t}=e;return _.default.useLayoutEffect(()=>t(),[t]),null}let $=null,X=!0;function K(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach(e=>performance.clearMarks(e))}function Q(){j.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),f&&performance.getEntriesByName("Next.js-hydration").forEach(f),K())}function J(){if(!j.ST)return;performance.mark("afterRender");let e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),f&&(performance.getEntriesByName("Next.js-render").forEach(f),performance.getEntriesByName("Next.js-route-change-to-render").forEach(f)),K(),["Next.js-route-change-to-render","Next.js-render"].forEach(e=>performance.clearMeasures(e)))}function Y(e){let{callbacks:t,children:r}=e;return _.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),_.default.useEffect(()=>{A.default(f)},[]),r}function ee(e){let t,{App:r,Component:a,props:o,err:i}=e,s="initial"in e?void 0:e.styleSheets;a=a||u.Component,o=o||u.props;let d=y({},o,{Component:a,err:i,router:n});u=d;let f=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{f=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!s)return;let e=U(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map(e=>e.getAttribute("data-n-href"))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");s.forEach(e=>{let{href:r,text:a}=e;if(!t.has(r)){let o=document.createElement("style");o.setAttribute("data-n-href",r),o.setAttribute("media","x"),n&&o.setAttribute("nonce",n),document.head.appendChild(o),o.appendChild(document.createTextNode(a))}})}();let m=_.default.createElement(_.default.Fragment,null,_.default.createElement(V,{callback:function(){if(s&&!f){let t=new Set(s.map(e=>e.href)),r=U(document.querySelectorAll("style[data-n-href]")),n=r.map(e=>e.getAttribute("data-n-href"));for(let a=0;a{let{href:t}=e,r=document.querySelector('style[data-n-href="'.concat(t,'"]'));r&&(o.parentNode.insertBefore(r,o.nextSibling),o=r)}),U(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let i=document.documentElement,l=i.style.scrollBehavior;i.style.scrollBehavior="auto",window.scrollTo(e.scroll.x,e.scroll.y),i.style.scrollBehavior=l}}}),_.default.createElement(Z,null,W(r,d),_.default.createElement(R.Portal,{type:"next-route-announcer"},_.default.createElement(T.RouteAnnouncer,null))));return!function(e,t){j.ST&&performance.mark("beforeRender");let r=t(X?Q:J);if($){let n=_.default.startTransition;n(()=>{$.render(r)})}else $=P.default.hydrateRoot(e,r),X=!1}(l,e=>_.default.createElement(Y,{callbacks:[e,h]},_.default.createElement(_.default.StrictMode,null,m))),p}function et(e){return er.apply(this,arguments)}function er(){return(er=g(function*(e){if(e.err){yield G(e);return}try{yield ee(e)}catch(r){let t=I.getProperError(r);if(t.cancelled)throw t;yield G(y({},e,{err:t}))}})).apply(this,arguments)}function en(){return(en=g(function*(e){let r=a.err;try{let l=yield i.routeLoader.whenEntrypoint("/_app");if("error"in l)throw l.error;let{component:s,exports:u}=l;d=s,u&&u.reportWebVitals&&(f=e=>{let t,{id:r,name:n,startTime:a,value:o,duration:i,entryType:l,entries:s,attribution:c}=e,d="".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let f={id:r||d,name:n,startTime:a||t,value:null==o?i:o,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(f.attribution=c),u.reportWebVitals(f)});let c=yield i.routeLoader.whenEntrypoint(a.page);if("error"in c)throw c.error;p=c.component}catch(m){r=I.getProperError(m)}window.__NEXT_PRELOADREADY&&(yield window.__NEXT_PRELOADREADY(a.dynamicIds)),t.router=n=L.createRouter(a.page,a.query,o,{initialProps:a.props,pageLoader:i,App:d,Component:p,wrapApp:z,err:r,isFallback:Boolean(a.isFallback),subscription:(e,t,r)=>et(Object.assign({},e,{App:t,scroll:r})),locale:a.locale,locales:a.locales,defaultLocale:h,domainLocales:a.domainLocales,isPreview:a.isPreview}),H=yield n._initialMatchesMiddlewarePromise;let g={App:d,initial:!0,Component:p,props:a.props,err:r};(null==e?void 0:e.beforeRender)&&(yield e.beforeRender()),et(g)})).apply(this,arguments)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21783:function(e,t,r){"use strict";var n=r(84534);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},n.initialize({}).then(()=>n.hydrate()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52700:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathTrailingSlash=void 0;var n=r(40012),a=r(26727);let o=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:o}=a.parsePath(e);return/\.[^/]+\/?$/.test(t)?"".concat(n.removeTrailingSlash(t)).concat(r).concat(o):t.endsWith("/")?"".concat(t).concat(r).concat(o):"".concat(t,"/").concat(r).concat(o)};t.normalizePathTrailingSlash=o,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(92648).Z,a=r(33468),o=r(41003),i=n(r(27929)),l=r(54465),s=r(86238),u=r(22864),c=r(40012),d=r(82497);t.default=class{getPageList(){return d.getClientBuildManifest().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:d,query:f,search:p}=u.parseRelativeUrl(r),{pathname:h}=u.parseRelativeUrl(t),m=c.removeTrailingSlash(d);if("/"!==m[0])throw Error('Route name should start with a "/", got "'.concat(m,'"'));return(e=>{let t=i.default(c.removeTrailingSlash(l.addLocale(e,n)),".json");return a.addBasePath("/_next/data/".concat(this.buildId).concat(t).concat(p),!0)})(e.skipInterpolation?h:s.isDynamicRoute(m)?o.interpolateAs(d,h,f).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=d.createRouteLoader(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},659:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let a=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let o=!1;function i(e){n&&n(e)}var l=e=>{if(n=e,!o)for(let t of(o=!0,a))try{let l;l||(l=r(78018)),l["on".concat(t)](i)}catch(s){console.warn("Failed to track ".concat(t," web-vital"),s)}};t.default=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17345:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Portal=void 0;var n=r(67294),a=r(73935);let o=e=>{let{children:t,type:r}=e,[o,i]=n.useState(null);return n.useEffect(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),o?a.createPortal(t,o):null};t.Portal=o,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82813:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeBasePath=function(e){return(e=e.slice(0)).startsWith("/")||(e="/".concat(e)),e},r(10928),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66876:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeLocale=function(e,t){return e},r(26727),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44686:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIdleCallback=t.requestIdleCallback=void 0;let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};t.requestIdleCallback=r;let n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=n,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18483:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RouteAnnouncer=void 0;var n=(0,r(92648).Z)(r(67294)),a=r(80880);let o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},i=()=>{let{asPath:e}=a.useRouter(),[t,r]=n.default.useState(""),i=n.default.useRef(e);return n.default.useEffect(()=>{if(i.current!==e){if(i.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1"),a=null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent;r(a||e)}}},[e]),n.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:o},t)};t.RouteAnnouncer=i,t.default=i,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82497:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=s,t.isAssetError=function(e){return e&&l in e},t.getClientBuildManifest=c,t.createRouteLoader=function(e){let t=new Map,r=new Map,n=new Map,l=new Map;function c(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(s(Error("Failed to load script: ".concat(e)))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function f(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: ".concat(e));return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw s(e)})),t}return{whenEntrypoint:e=>o(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),l.delete(e))})},loadRoute(r,n){return o(r,l,()=>{let a;return u(d(e,r).then(e=>{let{scripts:n,css:a}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(c)),Promise.all(a.map(f))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,s(Error("Route did not complete loading: ".concat(r)))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==a?void 0:a())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():d(e,t).then(e=>Promise.all(i?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let o='\n link[rel="prefetch"][href^="'.concat(t,'"],\n link[rel="preload"][href^="').concat(t,'"],\n script[src^="').concat(t,'"]');if(document.querySelector(o))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=a,n.href=t,document.head.appendChild(n)})}):[])).then(()=>{a.requestIdleCallback(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}},(0,r(92648).Z)(r(27929));var n=r(65407),a=r(44686);function o(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let o=new Promise(e=>{n=e});return t.set(e,a={resolve:n,future:o}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):o}let i=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}(),l=Symbol("ASSET_LOAD_ERROR");function s(e){return Object.defineProperty(e,l,{})}function u(e,t,r){return new Promise((n,o)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(o),a.requestIdleCallback(()=>setTimeout(()=>{i||o(r)},t))})}function c(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return u(e,3800,s(Error("Failed to load client build manifest")))}function d(e,t){return c().then(r=>{if(!(t in r))throw s(Error("Failed to lookup route: ".concat(t)));let a=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:a.filter(e=>e.endsWith(".js")).map(e=>n.__unsafeCreateTrustedScriptURL(e)),css:a.filter(e=>e.endsWith(".css"))}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80880:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return s.default}}),t.useRouter=function(){return a.default.useContext(i.RouterContext)},t.createRouter=function(){for(var e=arguments.length,t=Array(e),r=0;re()),u.readyCallbacks=[],u.router},t.makePublicRouterInstance=function(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=o.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),a=0;ao.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get(){let t=f();return t[e]}})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{u.ready(()=>{o.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n{let t=e.id||e.getAttribute("src");p.add(t)})}()},t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=r(91598).Z,i=r(17273).Z,l=a(r(73935)),s=o(r(67294)),u=r(4664),c=r(31831),d=r(44686);let f=new Map,p=new Set,h=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy"],m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:o,children:i="",strategy:l="afterInteractive",onError:s}=e,u=r||t;if(u&&p.has(u))return;if(f.has(t)){p.add(u),f.get(t).then(n,s);return}let d=()=>{a&&a(),p.add(u)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),d()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){s&&s(e)});for(let[y,v]of(o?(m.innerHTML=o.__html||"",d()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",d()):t&&(m.src=t,f.set(t,g)),Object.entries(e))){if(void 0===v||h.includes(y))continue;let _=c.DOMAttributeNames[y]||y.toLowerCase();m.setAttribute(_,v)}"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),document.body.appendChild(m)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{d.requestIdleCallback(()=>m(e))}):m(e)}function y(e){let{id:t,src:r="",onLoad:a=()=>{},onReady:o=null,strategy:c="afterInteractive",onError:f}=e,h=i(e,["id","src","onLoad","onReady","strategy","onError"]),{updateScripts:g,scripts:y,getIsSsr:v,appDir:_,nonce:P}=s.useContext(u.HeadManagerContext),b=s.useRef(!1);s.useEffect(()=>{let e=t||r;b.current||(o&&e&&p.has(e)&&o(),b.current=!0)},[o,t,r]);let E=s.useRef(!1);if(s.useEffect(()=>{!E.current&&("afterInteractive"===c?m(e):"lazyOnload"===c&&("complete"===document.readyState?d.requestIdleCallback(()=>m(e)):window.addEventListener("load",()=>{d.requestIdleCallback(()=>m(e))})),E.current=!0)},[e,c]),("beforeInteractive"===c||"worker"===c)&&(g?(y[c]=(y[c]||[]).concat([n({id:t,src:r,onLoad:a,onReady:o,onError:f},h)]),g(y)):v&&v()?p.add(t||r):v&&!v()&&m(e)),_){if("beforeInteractive"===c)return r?(l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"}),s.default.createElement("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat(JSON.stringify([r]),")")}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat(JSON.stringify([0,n({},h)]),")")}}));"afterInteractive"===c&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"})}return null}Object.defineProperty(y,"__nextScript",{value:!0}),t.default=y,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65407:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.__unsafeCreateTrustedScriptURL=function(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49977:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return n.default.createElement(e,Object.assign({router:a.useRouter()},t))}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t};var n=(0,r(92648).Z)(r(67294)),a=r(80880);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74297:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=r(60932).Z,o=(0,r(92648).Z)(r(67294)),i=r(670);function l(e){return s.apply(this,arguments)}function s(){return(s=a(function*(e){let{Component:t,ctx:r}=e,n=yield i.loadGetInitialProps(t,r);return{pageProps:n}})).apply(this,arguments)}class u extends(n=o.default.Component){render(){let{Component:e,pageProps:t}=this.props;return o.default.createElement(e,Object.assign({},t))}}u.origGetInitialProps=l,u.getInitialProps=l,t.default=u},97345:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=r(92648).Z,o=a(r(67294)),i=a(r(83121));let l={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function s(e){let{res:t,err:r}=e,n=t&&t.statusCode?t.statusCode:r?r.statusCode:404;return{statusCode:n}}let u={error:{fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",margin:0,marginRight:"20px",padding:"0 23px 0 0",fontSize:"24px",fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"49px",margin:0,padding:0}};class c extends(n=o.default.Component){render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||l[e]||"An unexpected error has occurred";return o.default.createElement("div",{style:u.error},o.default.createElement(i.default,null,o.default.createElement("title",null,e?"".concat(e,": ").concat(r):"Application error: a client-side exception has occurred")),o.default.createElement("div",null,o.default.createElement("style",{dangerouslySetInnerHTML:{__html:"\n body { margin: 0; color: #000; background: #fff; }\n .next-error-h1 {\n border-right: 1px solid rgba(0, 0, 0, .3);\n }\n\n ".concat(t?"@media (prefers-color-scheme: dark) {\n body { color: #fff; background: #000; }\n .next-error-h1 {\n border-right: 1px solid rgba(255, 255, 255, .3);\n }\n }":"")}}),e?o.default.createElement("h1",{className:"next-error-h1",style:u.h1},e):null,o.default.createElement("div",{style:u.desc},o.default.createElement("h2",{style:u.h2},this.props.title||e?r:o.default.createElement(o.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}c.displayName="ErrorPage",c.getInitialProps=s,c.origGetInitialProps=s,t.default=c},40610:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext({});t.AmpStateContext=a},40532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=function(){let{ampFirst:e=!1,hybrid:t=!1,hasQuery:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||t&&r}},18659:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){return r.test(e)?e.replace(n,"\\$&"):e};let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g},4664:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext({});t.HeadManagerContext=a},83121:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=c,t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=(0,r(91598).Z)(r(67294)),i=a(r(31436)),l=r(40610),s=r(4664),u=r(40532);function c(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(57238);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return a=>{let o=!0,i=!1;if(a.key&&"number"!=typeof a.key&&a.key.indexOf("$")>0){i=!0;let l=a.key.slice(a.key.indexOf("$")+1);e.has(l)?o=!1:e.add(l)}switch(a.type){case"title":case"base":t.has(a.type)?o=!1:t.add(a.type);break;case"meta":for(let s=0,u=f.length;s{let a=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let i=n({},e.props||{});return i["data-href"]=i.href,i.href=void 0,i["data-optimized-fonts"]=!0,o.default.cloneElement(e,i)}return o.default.cloneElement(e,{key:a})})}var h=function(e){let{children:t}=e,r=o.useContext(l.AmpStateContext),n=o.useContext(s.HeadManagerContext);return o.default.createElement(i.default,{reduceComponentsToState:p,headManager:n,inAmpMode:u.isInAmpMode(r)},t)};t.default=h,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24769:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}},28730:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConfigContext=void 0;var n=(0,r(92648).Z)(r(67294)),a=r(10139);let o=n.default.createContext(a.imageConfigDefault);t.ImageConfigContext=o},10139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0,t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"],t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",remotePatterns:[],unoptimized:!1}},82849:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectClassLabel=r,t.isPlainObject=function(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},8550:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a{e(...n)})}}}},6301:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalizePagePath=function(e){let t=a.normalizePathSep(e);return t.startsWith("/index/")&&!n.isDynamicRoute(t)?t.slice(6):"/index"!==t?t:"/"};var n=r(18588),a=r(49997)},49997:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=function(e){return e.replace(/\\/g,"/")}},72692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext(null);t.RouterContext=a},41003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesMiddleware=I,t.isLocalURL=B,t.interpolateAs=U,t.resolveHref=H,t.createKey=$,t.default=void 0;var n=r(60932).Z,a=r(6495).Z,o=r(92648).Z,i=r(91598).Z,l=r(52700),s=r(40012),u=r(82497),c=r(63573),d=i(r(80676)),f=r(6301),p=r(24769),h=o(r(8550)),m=r(670),g=r(86238),y=r(22864),v=r(94919),_=o(r(27980)),P=r(13156),b=r(54903),E=r(67795);r(84643);var S=r(26727),w=r(54465),x=r(66876),O=r(82813),j=r(33468),R=r(10928),C=r(18756),M=r(57429),A=r(79002),T=r(21754);function L(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}function I(e){return N.apply(this,arguments)}function N(){return(N=n(function*(e){let t=yield Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=S.parsePath(e.asPath),n=R.hasBasePath(r)?O.removeBasePath(r):r,a=j.addBasePath(w.addLocale(n,e.locale));return t.some(e=>RegExp(e.regexp).test(a))})).apply(this,arguments)}function k(e){let t=m.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function D(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function B(e){if(!m.isAbsoluteUrl(e))return!0;try{let t=m.getLocationOrigin(),r=new URL(e,t);return r.origin===t&&R.hasBasePath(r.pathname)}catch(n){return!1}}function U(e,t,r){let n="",a=b.getRouteRegex(e),o=a.groups,i=(t!==e?P.getRouteMatcher(a)(t):"")||r;n=e;let l=Object.keys(o);return l.every(e=>{let t=i[e]||"",{repeat:r,optional:a}=o[e],l="[".concat(r?"...":"").concat(e,"]");return a&&(l="".concat(t?"":"/","[").concat(l,"]")),r&&!Array.isArray(t)&&(t=[t]),(a||e in i)&&(n=n.replace(l,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(n=""),{params:l,result:n}}function H(e,t,r){let n;let a="string"==typeof t?t:E.formatWithValidation(t),o=a.match(/^[a-zA-Z]{1,}:\/\//),i=o?a.slice(o[0].length):a,s=i.split("?");if((s[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href passed to next/router: ".concat(a,", repeated forward-slashes (//) or backslashes \\ are not valid in the href"));let u=m.normalizeRepeatedSlashes(i);a=(o?o[0]:"")+u}if(!B(a))return r?[a]:a;try{n=new URL(a.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(c){n=new URL("/","http://n")}try{let d=new URL(a,n);d.pathname=l.normalizePathTrailingSlash(d.pathname);let f="";if(g.isDynamicRoute(d.pathname)&&d.searchParams&&r){let p=v.searchParamsToUrlQuery(d.searchParams),{result:h,params:y}=U(d.pathname,d.pathname,p);h&&(f=E.formatWithValidation({pathname:h,hash:d.hash,query:D(p,y)}))}let _=d.origin===n.origin?d.href.slice(d.origin.length):d.href;return r?[_,f||_]:_}catch(P){return r?[a]:a}}function q(e,t,r){let[n,a]=H(e,t,!0),o=m.getLocationOrigin(),i=n.startsWith(o),l=a&&a.startsWith(o);n=k(n),a=a?k(a):a;let s=i?n:j.addBasePath(n),u=r?k(H(e,r)):a||n;return{url:s,as:l?u:j.addBasePath(u)}}function F(e,t){let r=s.removeTrailingSlash(f.denormalizePagePath(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if(g.isDynamicRoute(t)&&b.getRouteRegex(t).re.test(r))return e=t,!0}),s.removeTrailingSlash(e))}let W=Symbol("SSG_DATA_NOT_FOUND"),Z={};function z(e){let t=document.documentElement,r=t.style.scrollBehavior;t.style.scrollBehavior="auto",e(),t.style.scrollBehavior=r}function G(e){try{return JSON.parse(e)}catch(t){return null}}function V(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:a,hasMiddleware:o,isServerRender:i,parseJSON:l,persistCache:s,isBackground:c,unstable_skipClientCache:d}=e,{href:f}=new URL(r,window.location.href),p=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(r,i?3:1,{headers:a?{purpose:"prefetch"}:{},method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(o&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};if(!o&&404===t.status){var n;if(null==(n=G(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:W},response:t,text:e,cacheKey:f}}let a=Error("Failed to load static props");throw i||u.markAssetError(a),a}return{dataHref:r,json:l?G(e):null,response:t,text:e,cacheKey:f}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e)).catch(e=>{throw delete n[f],e});return d&&s?p({}).then(e=>(n[f]=Promise.resolve(e),e)):void 0!==n[f]?n[f]:n[f]=p(c?{method:"HEAD"}:{})}function $(){return Math.random().toString(36).slice(2,10)}function X(e){let{url:t,router:r}=e;if(t===j.addBasePath(w.addLocale(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL ".concat(t," ").concat(location.href));window.location.href=t}let K=e=>{let{route:t,router:r}=e,n=!1,a=r.clc=()=>{n=!0},o=()=>{if(n){let e=Error('Abort fetching component for route: "'.concat(t,'"'));throw e.cancelled=!0,e}a===r.clc&&(r.clc=null)};return o};class Q{reload(){window.location.reload()}back(){window.history.back()}push(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{url:e,as:t}=q(this,e,t),this.change("pushState",e,t,r)}replace(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{url:e,as:t}=q(this,e,t),this.change("replaceState",e,t,r)}change(e,t,r,o,i){var l=this;return n(function*(){let n,f;if(!B(t))return X({url:t,router:l}),!1;let p=o._h,h=p||o._shouldResolveHref||S.parsePath(t).pathname===S.parsePath(r).pathname,v=a({},l.state),C=!0!==l.isReady;l.isReady=!0;let M=l.isSsr;if(p||(l.isSsr=!1),p&&l.clc)return!1;let T=v.locale;m.ST&&performance.mark("routeChange");let{shallow:N=!1,scroll:k=!0}=o,H={shallow:N};l._inFlightRoute&&l.clc&&(M||Q.events.emit("routeChangeError",L(),l._inFlightRoute,H),l.clc(),l.clc=null),r=j.addBasePath(w.addLocale(R.hasBasePath(r)?O.removeBasePath(r):r,o.locale,l.defaultLocale));let Z=x.removeLocale(R.hasBasePath(r)?O.removeBasePath(r):r,v.locale);l._inFlightRoute=r;let z=T!==v.locale;if(!p&&l.onlyAHashChange(Z)&&!z){v.asPath=Z,Q.events.emit("hashChangeStart",r,H),l.changeState(e,t,r,a({},o,{scroll:!1})),k&&l.scrollToHash(Z);try{yield l.set(v,l.components[v.route],null)}catch(G){throw d.default(G)&&G.cancelled&&Q.events.emit("routeChangeError",G,Z,H),G}return Q.events.emit("hashChangeComplete",r,H),!0}let V=y.parseRelativeUrl(t),{pathname:$,query:K}=V;try{[n,{__rewrites:f}]=yield Promise.all([l.pageLoader.getPageList(),u.getClientBuildManifest(),l.pageLoader.getMiddleware()])}catch(J){return X({url:r,router:l}),!1}l.urlIsNew(Z)||z||(e="replaceState");let Y=r;$=$?s.removeTrailingSlash(O.removeBasePath($)):$;let ee=yield I({asPath:r,locale:v.locale,router:l});if(o.shallow&&ee&&($=l.pathname),p&&ee&&(h=!1),h&&"/_error"!==$){if(o._shouldResolveHref=!0,r.startsWith("/")){let et=_.default(j.addBasePath(w.addLocale(Z,v.locale),!0),n,f,K,e=>F(e,n),l.locales);if(et.externalDest)return X({url:r,router:l}),!0;ee||(Y=et.asPath),et.matchedPage&&et.resolvedHref&&($=et.resolvedHref,V.pathname=j.addBasePath($),ee||(t=E.formatWithValidation(V)))}else V.pathname=F($,n),V.pathname===$||($=V.pathname,V.pathname=j.addBasePath($),ee||(t=E.formatWithValidation(V)))}if(!B(r))return X({url:r,router:l}),!1;Y=x.removeLocale(O.removeBasePath(Y),v.locale);let er=s.removeTrailingSlash($),en=!1;if(g.isDynamicRoute(er)){let ea=y.parseRelativeUrl(Y),eo=ea.pathname,ei=b.getRouteRegex(er);en=P.getRouteMatcher(ei)(eo);let el=er===eo,es=el?U(er,eo,K):{};if(en&&(!el||es.result))el?r=E.formatWithValidation(Object.assign({},ea,{pathname:es.result,query:D(K,es.params)})):Object.assign(K,en);else{let eu=Object.keys(ei.groups).filter(e=>!K[e]);if(eu.length>0&&!ee)throw Error((el?"The provided `href` (".concat(t,") value is missing query values (").concat(eu.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(eo,") is incompatible with the `href` value (").concat(er,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(el?"href-interpolation-failed":"incompatible-href-as"))}}p||Q.events.emit("routeChangeStart",r,H);try{var ec,ed,ef,ep;let eh=yield l.getRouteInfo({route:er,pathname:$,query:K,as:r,resolvedAs:Y,routeProps:H,locale:v.locale,isPreview:v.isPreview,hasMiddleware:ee,unstable_skipClientCache:o.unstable_skipClientCache,isQueryUpdating:p&&!l.isFallback});if("route"in eh&&ee){er=$=eh.route||er,H.shallow||(K=Object.assign({},eh.query||{},K));let em=R.hasBasePath(V.pathname)?O.removeBasePath(V.pathname):V.pathname;if(en&&$!==em&&Object.keys(en).forEach(e=>{en&&K[e]===en[e]&&delete K[e]}),g.isDynamicRoute($)){let eg=!H.shallow&&eh.resolvedAs?eh.resolvedAs:j.addBasePath(w.addLocale(new URL(r,location.href).pathname,v.locale),!0),ey=eg;R.hasBasePath(ey)&&(ey=O.removeBasePath(ey));let ev=b.getRouteRegex($),e_=P.getRouteMatcher(ev)(new URL(ey,location.href).pathname);e_&&Object.assign(K,e_)}}if("type"in eh){if("redirect-internal"===eh.type)return l.change(e,eh.newUrl,eh.newAs,o);return X({url:eh.destination,router:l}),new Promise(()=>{})}let{error:eP,props:eb,__N_SSG:eE,__N_SSP:eS}=eh,ew=eh.Component;if(ew&&ew.unstable_scriptLoader){let ex=[].concat(ew.unstable_scriptLoader());ex.forEach(e=>{c.handleClientScriptLoad(e.props)})}if((eE||eS)&&eb){if(eb.pageProps&&eb.pageProps.__N_REDIRECT){o.locale=!1;let eO=eb.pageProps.__N_REDIRECT;if(eO.startsWith("/")&&!1!==eb.pageProps.__N_REDIRECT_BASE_PATH){let ej=y.parseRelativeUrl(eO);ej.pathname=F(ej.pathname,n);let{url:eR,as:eC}=q(l,eO,eO);return l.change(e,eR,eC,o)}return X({url:eO,router:l}),new Promise(()=>{})}if(v.isPreview=!!eb.__N_PREVIEW,eb.notFound===W){let eM;try{yield l.fetchComponent("/404"),eM="/404"}catch(eA){eM="/_error"}if(eh=yield l.getRouteInfo({route:eM,pathname:eM,query:K,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:v.locale,isPreview:v.isPreview}),"type"in eh)throw Error("Unexpected middleware effect on /404")}}Q.events.emit("beforeHistoryChange",r,H),l.changeState(e,t,r,o),p&&"/_error"===$&&(null==(ec=self.__NEXT_DATA__.props)?void 0:null==(ed=ec.pageProps)?void 0:ed.statusCode)===500&&(null==eb?void 0:eb.pageProps)&&(eb.pageProps.statusCode=500);let eT=o.shallow&&v.route===(null!=(ef=eh.route)?ef:er),eL=null!=(ep=o.scroll)?ep:!o._h&&!eT,eI=a({},v,{route:er,pathname:$,query:K,asPath:Z,isFallback:!1}),eN=null!=i?i:eL?{x:0,y:0}:null,ek=o._h&&!eN&&!C&&!z&&A.compareRouterStates(eI,l.state);if(!ek){if(yield l.set(eI,eh,eN).catch(e=>{if(e.cancelled)eP=eP||e;else throw e}),eP)throw p||Q.events.emit("routeChangeError",eP,Z,H),eP;p||Q.events.emit("routeChangeComplete",r,H),eL&&/#.+$/.test(r)&&l.scrollToHash(r)}return!0}catch(eD){if(d.default(eD)&&eD.cancelled)return!1;throw eD}})()}changeState(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};("pushState"!==e||m.getURL()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:$()},"",r))}handleRouteInfoError(e,t,r,a,o,i){var l=this;return n(function*(){if(console.error(e),e.cancelled)throw e;if(u.isAssetError(e)||i)throw Q.events.emit("routeChangeError",e,a,o),X({url:a,router:l}),L();try{let n;let{page:s,styleSheets:c}=yield l.fetchComponent("/_error"),f={props:n,Component:s,styleSheets:c,err:e,error:e};if(!f.props)try{f.props=yield l.getInitialProps(s,{err:e,pathname:t,query:r})}catch(p){console.error("Error in error page `getInitialProps`: ",p),f.props={}}return f}catch(h){return l.handleRouteInfoError(d.default(h)?h:Error(h+""),t,r,a,o,!0)}})()}getRouteInfo(e){let{route:t,pathname:r,query:o,as:i,resolvedAs:l,routeProps:c,locale:f,hasMiddleware:h,isPreview:m,unstable_skipClientCache:v,isQueryUpdating:x}=e;var R=this;return n(function*(){let e=t;try{var A,T,L,N;let k=K({route:e,router:R}),D=R.components[e];if(c.shallow&&D&&R.route===e)return D;h&&(D=void 0);let B=!D||"initial"in D?void 0:D,U={dataHref:R.pageLoader.getDataHref({href:E.formatWithValidation({pathname:r,query:o}),skipInterpolation:!0,asPath:l,locale:f}),hasMiddleware:!0,isServerRender:R.isSsr,parseJSON:!0,inflightCache:R.sdc,persistCache:!m,isPrefetch:!1,unstable_skipClientCache:v,isBackground:x},H=x?{}:yield(N={fetchData:()=>V(U),asPath:l,locale:f,router:R},I(N).then(e=>e&&N.fetchData?N.fetchData().then(e=>(function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:Boolean(!0)},o=t.headers.get("x-nextjs-rewrite"),i=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||i||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(i=l),i){if(i.startsWith("/")){let c=y.parseRelativeUrl(i),d=C.getNextPathnameInfo(c.pathname,{nextConfig:n,parseData:!0}),f=s.removeTrailingSlash(d.pathname);return Promise.all([r.router.pageLoader.getPageList(),u.getClientBuildManifest()]).then(t=>{let[n,{__rewrites:a}]=t,i=w.addLocale(d.pathname,d.locale);if(g.isDynamicRoute(i)||!o&&n.includes(p.normalizeLocalePath(O.removeBasePath(i),r.router.locales).pathname)){let l=C.getNextPathnameInfo(y.parseRelativeUrl(e).pathname,{parseData:!0});i=j.addBasePath(l.pathname),c.pathname=i}{let s=_.default(i,n,a,c.query,e=>F(e,n),r.router.locales);s.matchedPage&&(c.pathname=s.parsedAs.pathname,i=c.pathname,Object.assign(c.query,s.parsedAs.query))}let u=n.includes(f)?f:F(p.normalizeLocalePath(O.removeBasePath(c.pathname),r.router.locales).pathname,n);if(g.isDynamicRoute(u)){let h=P.getRouteMatcher(b.getRouteRegex(u))(i);Object.assign(c.query,h||{})}return{type:"rewrite",parsedAs:c,resolvedHref:u}})}let h=S.parsePath(e),m=M.formatNextPathnameInfo(a({},C.getNextPathnameInfo(h.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-external",destination:"".concat(m).concat(h.query).concat(h.hash)})}let v=t.headers.get("x-nextjs-redirect");if(v){if(v.startsWith("/")){let E=S.parsePath(v),x=M.formatNextPathnameInfo(a({},C.getNextPathnameInfo(E.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-internal",newAs:"".concat(x).concat(E.query).concat(E.hash),newUrl:"".concat(x).concat(E.query).concat(E.hash)})}return Promise.resolve({type:"redirect-external",destination:v})}return Promise.resolve({type:"next"})})(e.dataHref,e.response,N).then(t=>({dataHref:e.dataHref,cacheKey:e.cacheKey,json:e.json,response:e.response,text:e.text,effect:t}))).catch(e=>null):null));if(x&&H&&(H.json=self.__NEXT_DATA__.props),k(),(null==H?void 0:null==(A=H.effect)?void 0:A.type)==="redirect-internal"||(null==H?void 0:null==(T=H.effect)?void 0:T.type)==="redirect-external")return H.effect;if((null==H?void 0:null==(L=H.effect)?void 0:L.type)==="rewrite"&&(e=s.removeTrailingSlash(H.effect.resolvedHref),r=H.effect.resolvedHref,o=a({},o,H.effect.parsedAs.query),l=O.removeBasePath(p.normalizeLocalePath(H.effect.parsedAs.pathname,R.locales).pathname),D=R.components[e],c.shallow&&D&&R.route===e&&!h))return a({},D,{route:e});if("/api"===e||e.startsWith("/api/"))return X({url:i,router:R}),new Promise(()=>{});let q=B||(yield R.fetchComponent(e).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}))),W=q.__N_SSG||q.__N_SSP,{props:z,cacheKey:G}=yield R._getData(n(function*(){if(W){let{json:e,cacheKey:t}=(null==H?void 0:H.json)?H:yield V({dataHref:R.pageLoader.getDataHref({href:E.formatWithValidation({pathname:r,query:o}),asPath:l,locale:f}),isServerRender:R.isSsr,parseJSON:!0,inflightCache:R.sdc,persistCache:!m,isPrefetch:!1,unstable_skipClientCache:v});return{cacheKey:t,props:e||{}}}return{headers:{},cacheKey:"",props:yield R.getInitialProps(q.Component,{pathname:r,query:o,asPath:i,locale:f,locales:R.locales,defaultLocale:R.defaultLocale})}}));return q.__N_SSP&&U.dataHref&&delete R.sdc[G],R.isPreview||!q.__N_SSG||x||V(Object.assign({},U,{isBackground:!0,persistCache:!1,inflightCache:Z})).catch(()=>{}),z.pageProps=Object.assign({},z.pageProps),q.props=z,q.route=e,q.query=o,q.resolvedAs=l,R.components[e]=q,q}catch($){return R.handleRouteInfoError(d.getProperError($),r,o,i,c)}})()}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#"),[n,a]=e.split("#");return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){z(()=>window.scrollTo(0,0));return}let r=decodeURIComponent(t),n=document.getElementById(r);if(n){z(()=>n.scrollIntoView());return}let a=document.getElementsByName(r)[0];a&&z(()=>a.scrollIntoView())}urlIsNew(e){return this.asPath!==e}prefetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a=this;return n(function*(){if(T.isBot(window.navigator.userAgent))return;let n=y.parseRelativeUrl(e),{pathname:o,query:i}=n,l=yield a.pageLoader.getPageList(),c=t,d=void 0!==r.locale?r.locale||void 0:a.locale;if(t.startsWith("/")){let f;({__rewrites:f}=yield u.getClientBuildManifest());let p=_.default(j.addBasePath(w.addLocale(t,a.locale),!0),l,f,n.query,e=>F(e,l),a.locales);if(p.externalDest)return;c=x.removeLocale(O.removeBasePath(p.asPath),a.locale),p.matchedPage&&p.resolvedHref&&(o=p.resolvedHref,n.pathname=o,e=E.formatWithValidation(n))}n.pathname=F(n.pathname,l),g.isDynamicRoute(n.pathname)&&(o=n.pathname,n.pathname=o,Object.assign(i,P.getRouteMatcher(b.getRouteRegex(n.pathname))(S.parsePath(t).pathname)||{}),e=E.formatWithValidation(n));let h=s.removeTrailingSlash(o);yield Promise.all([a.pageLoader._isSsg(h).then(t=>!!t&&V({dataHref:a.pageLoader.getDataHref({href:e,asPath:c,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:a.sdc,persistCache:!a.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1)),a.pageLoader[r.priority?"loadPage":"prefetch"](h)])})()}fetchComponent(e){var t=this;return n(function*(){let r=K({route:e,router:t});try{let n=yield t.pageLoader.loadPage(e);return r(),n}catch(a){throw r(),a}})()}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let n=Error("Loading initial props cancelled");throw n.cancelled=!0,n}return e})}_getFlightData(e){return V({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,m.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:a,App:o,wrapApp:i,Component:l,err:u,subscription:c,isFallback:d,locale:f,locales:p,defaultLocale:h,domainLocales:v,isPreview:_}){this.sdc={},this.isFirstPopStateEvent=!0,this._key=$(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:a,query:o}=this;this.changeState("replaceState",E.formatWithValidation({pathname:j.addBasePath(a),query:o}),m.getURL());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:i,as:l,options:s,key:u}=n;this._key=u;let{pathname:c}=y.parseRelativeUrl(i);(!this.isSsr||l!==j.addBasePath(this.asPath)||c!==j.addBasePath(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",i,l,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};let P=s.removeTrailingSlash(e);this.components={},"/_error"!==e&&(this.components[P]={Component:l,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:o,styleSheets:[]},this.events=Q.events,this.pageLoader=a;let b=g.isDynamicRoute(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=i,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||(b||self.location.search,0)),this.state={route:P,pathname:e,query:t,asPath:b?e:r,isPreview:!!_,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let S={locale:f},w=m.getURL();this._initialMatchesMiddlewarePromise=I({router:this,locale:f,asPath:w}).then(n=>(S._shouldResolveHref=r!==e,this.changeState("replaceState",n?w:E.formatWithValidation({pathname:j.addBasePath(e),query:t}),w,S),n))}window.addEventListener("popstate",this.onPopState)}}Q.events=h.default(),t.default=Q},34441:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=function(e,t,r,o){return t&&t!==r&&(o||!a.pathHasPrefix(e.toLowerCase(),"/".concat(t.toLowerCase()))&&!a.pathHasPrefix(e.toLowerCase(),"/api"))?n.addPathPrefix(e,"/".concat(t)):e};var n=r(44135),a=r(93210)},44135:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathPrefix=function(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:o}=n.parsePath(e);return"".concat(t).concat(r).concat(a).concat(o)};var n=r(26727)},96074:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathSuffix=function(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:o}=n.parsePath(e);return"".concat(r).concat(t).concat(a).concat(o)};var n=r(26727)},79002:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareRouterStates=function(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let a=r[n];if("query"===a){let o=Object.keys(e.query);if(o.length!==Object.keys(t.query).length)return!1;for(let i=o.length;i--;){let l=o[i];if(!t.query.hasOwnProperty(l)||e.query[l]!==t.query[l])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}},57429:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNextPathnameInfo=function(e){let t=i.addLocale(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=n.removeTrailingSlash(t)),e.buildId&&(t=o.addPathSuffix(a.addPathPrefix(t,"/_next/data/".concat(e.buildId)),"/"===e.pathname?"index.json":".json")),t=a.addPathPrefix(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:o.addPathSuffix(t,"/"):n.removeTrailingSlash(t)};var n=r(40012),a=r(44135),o=r(96074),i=r(34441)},67795:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=o,t.formatWithValidation=function(e){return o(e)},t.urlObjectKeys=void 0;var n=(0,r(91598).Z)(r(94919));let a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(n.urlQueryToSearchParams(s)));let c=e.search||s&&"?".concat(s)||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||a.test(o))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),"".concat(o).concat(u).concat(i).concat(c).concat(l)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},27929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},18756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextPathnameInfo=function(e,t){var r;let{basePath:i,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},u={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};if(i&&o.pathHasPrefix(u.pathname,i)&&(u.pathname=a.removePathPrefix(u.pathname,i),u.basePath=i),!0===t.parseData&&u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){let c=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),d=c[0];u.pathname="index"!==c[1]?"/".concat(c.slice(1).join("/")):"/",u.buildId=d}if(l){let f=n.normalizeLocalePath(u.pathname,l.locales);u.locale=null==f?void 0:f.detectedLocale,u.pathname=(null==f?void 0:f.pathname)||u.pathname}return u};var n=r(24769),a=r(22650),o=r(93210)},18588:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a.isDynamicRoute}});var n=r(30566),a=r(86238)},21754:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBot=function(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}},86238:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};let r=/\/\[[^/]+?\](?=\/|$)/},26727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePath=function(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}},22864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){let r=new URL(n.getLocationOrigin()),o=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,o);if(d!==r.origin)throw Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:i,query:a.searchParamsToUrlQuery(l),search:s,hash:u,href:c.slice(r.origin.length)}};var n=r(670),a=r(94919)},97253:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=function(e){if(e.startsWith("/"))return a.parseRelativeUrl(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:n.searchParamsToUrlQuery(t.searchParams),search:t.search}};var n=r(94919),a=r(22864)},93210:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathHasPrefix=function(e,t){if("string"!=typeof e)return!1;let{pathname:r}=n.parsePath(e);return r===t||r.startsWith(t+"/")};var n=r(26727)},77127:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathMatch=function(e,t){let r=[],o=a.pathToRegexp(e,r,{delimiter:"/",sensitive:!1,strict:null==t?void 0:t.strict}),i=a.regexpToFunction((null==t?void 0:t.regexModifier)?RegExp(t.regexModifier(o.source),o.flags):o,r);return(e,a)=>{let o=null!=e&&i(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let l of r)"number"==typeof l.name&&delete o.params[l.name];return n({},a,o.params)}};var n=r(6495).Z,a=r(74329)},67327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchHas=function(e,t,r){let n={},a=t.every(t=>{let a;let o=t.key;switch(t.type){case"header":o=o.toLowerCase(),a=e.headers[o];break;case"cookie":a=e.cookies[t.key];break;case"query":a=r[o];break;case"host":{let{host:i}=(null==e?void 0:e.headers)||{},l=null==i?void 0:i.split(":")[0].toLowerCase();a=l}}if(!t.value&&a)return n[function(e){let t="";for(let r=0;r64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(o)]=a,!0;if(a){let s=RegExp("^".concat(t.value,"$")),u=Array.isArray(a)?a.slice(-1)[0].match(s):a.match(s);if(u)return Array.isArray(u)&&(u.groups?Object.keys(u.groups).forEach(e=>{n[e]=u.groups[e]}):"host"===t.type&&u[0]&&(n.host=u[0])),!0}return!1});return!!a&&n},t.compileNonPath=s,t.prepareDestination=function(e){let t;let r=Object.assign({},e.query);delete r.__nextLocale,delete r.__nextDefaultLocale,delete r.__nextDataReq;let u=e.destination;for(let c of Object.keys(n({},e.params,r))){var d,f;d=u,f=c,u=d.replace(RegExp(":".concat(o.escapeStringRegexp(f)),"g"),"__ESC_COLON_".concat(f))}let p=i.parseUrl(u),h=p.query,m=l("".concat(p.pathname).concat(p.hash||"")),g=l(p.hostname||""),y=[],v=[];a.pathToRegexp(m,y),a.pathToRegexp(g,v);let _=[];y.forEach(e=>_.push(e.name)),v.forEach(e=>_.push(e.name));let P=a.compile(m,{validate:!1}),b=a.compile(g,{validate:!1});for(let[E,S]of Object.entries(h))Array.isArray(S)?h[E]=S.map(t=>s(l(t),e.params)):"string"==typeof S&&(h[E]=s(l(S),e.params));let w=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!w.some(e=>_.includes(e)))for(let x of w)x in h||(h[x]=e.params[x]);try{t=P(e.params);let[O,j]=t.split("#");p.hostname=b(e.params),p.pathname=O,p.hash="".concat(j?"#":"").concat(j||""),delete p.search}catch(R){if(R.message.match(/Expected .*? to not repeat, but got an array/))throw Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw R}return p.query=n({},r,p.query),{newUrl:t,destQuery:h,parsedDestination:p}};var n=r(6495).Z,a=r(74329),o=r(18659),i=r(97253);function l(e){return e.replace(/__ESC_COLON_/gi,":")}function s(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(":".concat(r))&&(e=e.replace(RegExp(":".concat(r,"\\*"),"g"),":".concat(r,"--ESCAPED_PARAM_ASTERISKS")).replace(RegExp(":".concat(r,"\\?"),"g"),":".concat(r,"--ESCAPED_PARAM_QUESTION")).replace(RegExp(":".concat(r,"\\+"),"g"),":".concat(r,"--ESCAPED_PARAM_PLUS")).replace(RegExp(":".concat(r,"(?!\\w)"),"g"),"--ESCAPED_PARAM_COLON".concat(r)));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),a.compile("/".concat(e),{validate:!1})(t).slice(1)}},94919:function(e,t){"use strict";function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t},t.urlQueryToSearchParams=function(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,a]=e;Array.isArray(a)?a.forEach(e=>t.append(n,r(e))):t.set(n,r(a))}),t},t.assign=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}},22650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removePathPrefix=function(e,t){if(n.pathHasPrefix(e,t)){let r=e.slice(t.length);return r.startsWith("/")?r:"/".concat(r)}return e};var n=r(93210)},40012:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")||"/"}},27980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,u,c,d){let f,p=!1,h=!1,m=s.parseRelativeUrl(e),g=o.removeTrailingSlash(i.normalizeLocalePath(l.removeBasePath(m.pathname),d).pathname),y=r=>{let s=n.getPathMatch(r.source+"(/)?",{removeUnnamedParams:!0,strict:!0}),y=s(m.pathname);if(r.has&&y){let v=a.matchHas({headers:{host:document.location.hostname},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},r.has,m.query);v?Object.assign(y,v):y=!1}if(y){if(!r.destination)return h=!0,!0;let _=a.prepareDestination({appendParamsToQuery:!0,destination:r.destination,params:y,query:u});if(m=_.parsedDestination,e=_.newUrl,Object.assign(u,_.parsedDestination.query),g=o.removeTrailingSlash(i.normalizeLocalePath(l.removeBasePath(e),d).pathname),t.includes(g))return p=!0,f=g,!0;if((f=c(g))!==e&&t.includes(f))return p=!0,!0}},v=!1;for(let _=0;_{let a=t.exec(e);if(!a)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(t){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=a[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>o(e)):t.repeat?[o(n)]:o(n))}),i}};var n=r(670)},54903:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteRegex=s,t.getNamedRouteRegex=function(e){let t=u(e);return n({},s(e),{namedRegex:"^".concat(t.namedParameterizedRoute,"(?:/)?$"),routeKeys:t.routeKeys})},t.getNamedMiddlewareRegex=function(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/".concat(n?".*":"","$")};let{namedParameterizedRoute:a}=u(e);return{namedRegex:"^".concat(a).concat(n?"(?:(/.*)?)":"","$")}};var n=r(6495).Z,a=r(18659),o=r(40012);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=o.removeTrailingSlash(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/".concat(a.escapeStringRegexp(e));{let{key:t,optional:o,repeat:l}=i(e.slice(1,-1));return r[t]={pos:n++,repeat:l,optional:o},l?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^".concat(t,"(?:/)?$")),groups:r}}function u(e){let t,r;let n=o.removeTrailingSlash(e).slice(1).split("/"),l=(t=97,r=1,()=>{let e="";for(let n=0;n122&&(r++,t=97);return e}),s={};return{namedParameterizedRoute:n.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/".concat(a.escapeStringRegexp(e));{let{key:t,optional:r,repeat:n}=i(e.slice(1,-1)),o=t.replace(/\W/g,""),u=!1;return(0===o.length||o.length>30)&&(u=!0),isNaN(parseInt(o.slice(0,1)))||(u=!0),u&&(o=l()),s[o]=t,n?r?"(?:/(?<".concat(o,">.+?))?"):"/(?<".concat(o,">.+?)"):"/(?<".concat(o,">[^/]+?)")}}).join(""),routeKeys:s}}},30566:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()};class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh("".concat(e).concat(t,"/"))).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh("".concat(e,"[").concat(this.slugName,"]/"))),!this.placeholder){let n="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(n,'" and "').concat(n,"[[...").concat(this.optionalRestSlugName,']]").'));r.unshift(n)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh("".concat(e,"[...").concat(this.restSlugName,"]/"))),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh("".concat(e,"[[...").concat(this.optionalRestSlugName,"]]/"))),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let a=e[0];if(a.startsWith("[")&&a.endsWith("]")){let o=a.slice(1,-1),i=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),i=!0),o.startsWith("...")&&(o=o.substring(3),n=!0),o.startsWith("[")||o.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('".concat(o,"')."));if(o.startsWith("."))throw Error("Segment names may not start with erroneous periods ('".concat(o,"')."));function l(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('".concat(e,"' !== '").concat(r,"')."));t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'.concat(r,'" repeat within a single dynamic path'));if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw Error('You cannot have the slug names "'.concat(e,'" and "').concat(r,'" differ only by non-word symbols within a single dynamic path'))}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName,']" and "').concat(e[0],'" ).'));l(this.optionalRestSlugName,o),this.optionalRestSlugName=o,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName,']]" and "').concat(e[0],'").'));l(this.restSlugName,o),this.restSlugName=o,a="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'.concat(e[0],'").'));l(this.slugName,o),this.slugName=o,a="[]"}}this.children.has(a)||this.children.set(a,new r),this.children.get(a)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}},86949:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0,t.default=()=>r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let a=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(a,e))}}if(a){var s;null==t||null==(s=t.mountedInstances)||s.add(e.children),l()}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null};var n=(0,r(91598).Z)(r(67294));let a=!1,o=a?()=>{}:n.useLayoutEffect,i=a?()=>{}:n.useEffect},670:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){let t,r=!1;return function(){for(var n=arguments.length,a=Array(n),o=0;oa.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return"".concat(e,"//").concat(t).concat(r?":"+r:"")}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function u(e,t){return c.apply(this,arguments)}function c(){return(c=n(function*(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:yield u(t.Component,t.ctx)}:{};let n=yield e.getInitialProps(t);if(r&&s(r))return n;if(!n){let a='"'.concat(l(e),'.getInitialProps()" should resolve to an object. But found "').concat(n,'" instead.');throw Error(a)}return n})).apply(this,arguments)}t.isAbsoluteUrl=o;let d="undefined"!=typeof performance;t.SP=d;let f=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);t.ST=f,t.DecodeError=class extends Error{},t.NormalizeError=class extends Error{},t.PageNotFoundError=class extends Error{constructor(e){super(),this.code="ENOENT",this.message="Cannot find module for page: ".concat(e)}},t.MissingStaticPage=class extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: ".concat(e," ").concat(t)}},t.MiddlewareNotFoundError=class extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},57238:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warnOnce=void 0;let r=e=>{};t.warnOnce=r},74329:function(e,t){"use strict";function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){a+=e[o++];continue}break}if(!a)throw TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:a}),r=o;continue}if("("===n){var l=1,s="",o=r+1;if("?"===e[o])throw TypeError('Pattern cannot start with "?" at '+o);for(;o-1:void 0===_;a||(p+="(?:"+f+"(?="+d+"))?"),P||(p+="(?="+f+"|"+d+")")}return RegExp(p,i(r))}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n=0?n="back-forward-cache":r&&(n=document.prerendering||d()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(a){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var a,o;return function(i){var l;t.value>=0&&(i||n)&&((o=t.value-(a||0))||void 0===a)&&(a=t.value,t.delta=o,t.rating=(l=t.value)>r[1]?"poor":l>r[0]?"needs-improvement":"good",e(t))}},g=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},v=function(){h(function(e){g=e.timeStamp},!0)},_=function(){return g<0&&(g=y(),v(),u(function(){setTimeout(function(){g=y(),v()},0)})),{get firstHiddenTime(){return g}}},P=function(e,t){t=t||{};var r,n=[1800,3e3],a=_(),o=f("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime-1&&e(t)},o=f("CLS",0),i=0,l=[],s=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=l[0],r=l[l.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,l.push(e)):(i=e.value,l=[e]),i>o.value&&(o.value=i,o.entries=l,n())}})},c=p("layout-shift",s);c&&(n=m(a,o,r,t.reportAllChanges),h(function(){s(c.takeRecords()),n(!0)}),u(function(){i=0,E=-1,n=m(a,o=f("CLS",0),r,t.reportAllChanges)}))},w={passive:!0,capture:!0},x=new Date,O=function(e,t){n||(n=t,a=e,o=new Date,C(removeEventListener),j())},j=function(){if(a>=0&&a1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){O(a,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,w),removeEventListener("pointercancel",r,w)},addEventListener("pointerup",t,w),addEventListener("pointercancel",r,w)):O(a,e)}},C=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,R,w)})},M=function(e,t){t=t||{};var r,o=[100,300],l=_(),s=f("FID"),c=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};H[n.id]=n,U.push(n)}U.sort(function(e,t){return t.latency-e.latency}),U.splice(10).forEach(function(e){delete H[e.id]})}},F=function(e,t){t=t||{};var r=[200,500];k();var n,a=f("INP"),o=function(e){e.forEach(function(e){e.interactionId&&q(e),"first-input"!==e.entryType||U.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||q(e)});var t=U[Math.min(U.length-1,Math.floor(B()/50))];t&&t.latency!==a.value&&(a.value=t.latency,a.entries=t.entries,n())},i=p("event",o,{durationThreshold:t.durationThreshold||40});n=m(e,a,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){o(i.takeRecords()),a.value<0&&B()>0&&(a.value=0,a.entries=[]),n(!0)}),u(function(){U=[],D=N(),n=m(e,a=f("INP"),r,t.reportAllChanges)}))},W={},Z=function(e,t){t=t||{};var r,n=[2500,4e3],a=_(),o=f("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-d();nperformance.now())return;n.entries=[o],a(!0),u(function(){(a=m(e,n=f("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},80676:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.getProperError=function(e){return a(e)?e:Error(n.isPlainObject(e)?JSON.stringify(e):e+"")};var n=r(82849);function a(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}}},function(e){e.O(0,[9774],function(){return e(e.s=21783)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/main-79d3a3ee4ffc18a7.js b/static/web/_next/static/chunks/main-79d3a3ee4ffc18a7.js new file mode 100644 index 000000000..ccbcfcae9 --- /dev/null +++ b/static/web/_next/static/chunks/main-79d3a3ee4ffc18a7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{60932:function(e,t){"use strict";function r(e,t,r,n,a,o,i){try{var l=e[o](i),s=l.value}catch(u){r(u);return}l.done?t(s):Promise.resolve(s).then(n,a)}t.Z=function(e){return function(){var t=this,n=arguments;return new Promise(function(a,o){var i=e.apply(t,n);function l(e){r(i,a,o,l,s,"next",e)}function s(e){r(i,a,o,l,s,"throw",e)}l(void 0)})}}},6495:function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(a[r]=e[r]);return a}},40037:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})})},33468:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBasePath=function(e,t){return a.normalizePathTrailingSlash(n.addPathPrefix(e,""))};var n=r(44135),a=r(52700);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54465:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=void 0,r(52700);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'.concat(e.props["data-href"],'"]')))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,o="";if(r){let{children:i}=r.props;o="string"==typeof i?i:Array.isArray(i)?i.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{(function(e,t){let r=document.getElementsByTagName("head")[0],o=r.querySelector("meta[name=next-head-count]"),i=Number(o.content),l=[];for(let s=0,u=o.previousElementSibling;s{for(let t=0,r=l.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),d.forEach(e=>r.insertBefore(e,o)),o.content=(i-l.length+d.length).toString()})(e,t[e]||[])})}}},t.isEqualNode=a,t.DOMAttributeNames=void 0;let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function n(e){let{type:t,props:n}=e,a=document.createElement(t);for(let o in n){if(!n.hasOwnProperty(o)||"children"===o||"dangerouslySetInnerHTML"===o||void 0===n[o])continue;let i=r[o]||o.toLowerCase();"script"===t&&("async"===i||"defer"===i||"noModule"===i)?a[i]=!!n[o]:a.setAttribute(i,n[o])}let{children:l,dangerouslySetInnerHTML:s}=n;return s?a.innerHTML=s.__html||"":l&&(a.textContent="string"==typeof l?l:Array.isArray(l)?l.join(""):""),a}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}t.DOMAttributeNames=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84534:function(e,t,r){"use strict";let n,a,o,i,l,s,u,c,d,f,p,h;Object.defineProperty(t,"__esModule",{value:!0});let m=r(91598).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=function(){return z.apply(this,arguments)},t.hydrate=function(e){return ei.apply(this,arguments)},t.emitter=t.router=t.version=void 0;var g=r(60932).Z,y=r(6495).Z,v=r(92648).Z;r(91598).Z,r(40037);var _=v(r(67294)),P=v(r(20745)),b=r(4664),E=v(r(8550)),S=r(72692),x=r(86238),w=r(94919),C=r(86949),O=r(670),R=r(17345),j=v(r(31831)),A=v(r(70976)),M=v(r(659)),L=r(18483),T=r(80880),I=r(80676),N=r(28730),k=r(82813),D=r(10928),B=r(48245),U=r(60401),q=r(78914);t.version="13.0.2",t.router=n;let F=E.default();t.emitter=F;let H=e=>[].slice.call(e),W=!1;self.__next_require__=r;class Z extends _.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&"/404"!==a.page&&"/_error"!==a.page&&(a.isFallback||a.nextExport&&(x.isDynamicRoute(n.pathname)||location.search,1)||a.props&&a.props.__N_SSG&&(location.search,1))&&n.replace(n.pathname+"?"+String(w.assign(w.urlQueryToSearchParams(n.query),new URLSearchParams(location.search))),o,{_h:1,shallow:!a.isFallback&&!W}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}function z(){return(z=g(function*(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=a,h=a.defaultLocale;let e=a.assetPrefix||"";if(r.p="".concat(e,"/_next/"),C.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:a.runtimeConfig||{}}),o=O.getURL(),D.hasBasePath(o)&&(o=k.removeBasePath(o)),a.scriptLoader){let{initScriptLoader:t}=r(63573);t(a.scriptLoader)}i=new A.default(a.buildId,e);let u=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>u(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=u,(s=j.default()).getIsSsr=()=>n.isSsr,l=document.getElementById("__next"),{assetPrefix:e}})).apply(this,arguments)}function G(e,t){return _.default.createElement(e,Object.assign({},t))}function V(e){var t;let{children:r}=e;return _.default.createElement(Z,{fn:e=>X({App:d,err:e}).catch(e=>console.error("Error rendering page: ",e))},_.default.createElement(B.AppRouterContext.Provider,{value:U.adaptForAppRouterInstance(n)},_.default.createElement(q.SearchParamsContext.Provider,{value:U.adaptForSearchParams(n)},_.default.createElement(U.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t},_.default.createElement(S.RouterContext.Provider,{value:T.makePublicRouterInstance(n)},_.default.createElement(b.HeadManagerContext.Provider,{value:s},_.default.createElement(N.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}},r)))))))}let $=e=>t=>{let r=y({},t,{Component:p,err:a.err,router:n});return _.default.createElement(V,null,G(e,r))};function X(e){let{App:t,err:l}=e;return console.error(l),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:a,styleSheets:o}=n;return(null==u?void 0:u.Component)===a?Promise.resolve().then(()=>m(r(97345))).then(n=>Promise.resolve().then(()=>m(r(74297))).then(r=>(t=r.default,e.App=t,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:a,styleSheets:o}}).then(r=>{var i;let{ErrorComponent:s,styleSheets:u}=r,c=$(t),d={Component:s,AppTree:c,router:n,ctx:{err:l,pathname:a.page,query:a.query,asPath:o,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:O.loadGetInitialProps(t,d)).then(t=>en(y({},e,{err:l,Component:s,styleSheets:u,props:t})))})}function K(e){let{callback:t}=e;return _.default.useLayoutEffect(()=>t(),[t]),null}let Q=null,J=!0;function Y(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach(e=>performance.clearMarks(e))}function ee(){O.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),f&&performance.getEntriesByName("Next.js-hydration").forEach(f),Y())}function et(){if(!O.ST)return;performance.mark("afterRender");let e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),f&&(performance.getEntriesByName("Next.js-render").forEach(f),performance.getEntriesByName("Next.js-route-change-to-render").forEach(f)),Y(),["Next.js-route-change-to-render","Next.js-render"].forEach(e=>performance.clearMeasures(e)))}function er(e){let{callbacks:t,children:r}=e;return _.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),_.default.useEffect(()=>{M.default(f)},[]),r}function en(e){let t,{App:r,Component:a,props:o,err:i}=e,s="initial"in e?void 0:e.styleSheets;a=a||u.Component,o=o||u.props;let d=y({},o,{Component:a,err:i,router:n});u=d;let f=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{f=!0,c=null;let e=Error("Cancel rendering route");e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!s)return;let e=H(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map(e=>e.getAttribute("data-n-href"))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");s.forEach(e=>{let{href:r,text:a}=e;if(!t.has(r)){let o=document.createElement("style");o.setAttribute("data-n-href",r),o.setAttribute("media","x"),n&&o.setAttribute("nonce",n),document.head.appendChild(o),o.appendChild(document.createTextNode(a))}})}();let m=_.default.createElement(_.default.Fragment,null,_.default.createElement(K,{callback:function(){if(s&&!f){let t=new Set(s.map(e=>e.href)),r=H(document.querySelectorAll("style[data-n-href]")),n=r.map(e=>e.getAttribute("data-n-href"));for(let a=0;a{let{href:t}=e,r=document.querySelector('style[data-n-href="'.concat(t,'"]'));r&&(o.parentNode.insertBefore(r,o.nextSibling),o=r)}),H(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let i=document.documentElement,l=i.style.scrollBehavior;i.style.scrollBehavior="auto",window.scrollTo(e.scroll.x,e.scroll.y),i.style.scrollBehavior=l}}}),_.default.createElement(V,null,G(r,d),_.default.createElement(R.Portal,{type:"next-route-announcer"},_.default.createElement(L.RouteAnnouncer,null))));return!function(e,t){O.ST&&performance.mark("beforeRender");let r=t(J?ee:et);if(Q){let n=_.default.startTransition;n(()=>{Q.render(r)})}else Q=P.default.hydrateRoot(e,r),J=!1}(l,e=>_.default.createElement(er,{callbacks:[e,h]},_.default.createElement(_.default.StrictMode,null,m))),p}function ea(e){return eo.apply(this,arguments)}function eo(){return(eo=g(function*(e){if(e.err){yield X(e);return}try{yield en(e)}catch(r){let t=I.getProperError(r);if(t.cancelled)throw t;yield X(y({},e,{err:t}))}})).apply(this,arguments)}function ei(){return(ei=g(function*(e){let r=a.err;try{let l=yield i.routeLoader.whenEntrypoint("/_app");if("error"in l)throw l.error;let{component:s,exports:u}=l;d=s,u&&u.reportWebVitals&&(f=e=>{let t,{id:r,name:n,startTime:a,value:o,duration:i,entryType:l,entries:s,attribution:c}=e,d="".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let f={id:r||d,name:n,startTime:a||t,value:null==o?i:o,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(f.attribution=c),u.reportWebVitals(f)});let c=yield i.routeLoader.whenEntrypoint(a.page);if("error"in c)throw c.error;p=c.component}catch(m){r=I.getProperError(m)}window.__NEXT_PRELOADREADY&&(yield window.__NEXT_PRELOADREADY(a.dynamicIds)),t.router=n=T.createRouter(a.page,a.query,o,{initialProps:a.props,pageLoader:i,App:d,Component:p,wrapApp:$,err:r,isFallback:Boolean(a.isFallback),subscription:(e,t,r)=>ea(Object.assign({},e,{App:t,scroll:r})),locale:a.locale,locales:a.locales,defaultLocale:h,domainLocales:a.domainLocales,isPreview:a.isPreview}),W=yield n._initialMatchesMiddlewarePromise;let g={App:d,initial:!0,Component:p,props:a.props,err:r};(null==e?void 0:e.beforeRender)&&(yield e.beforeRender()),ea(g)})).apply(this,arguments)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21783:function(e,t,r){"use strict";var n=r(84534);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},n.initialize({}).then(()=>n.hydrate()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52700:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathTrailingSlash=void 0;var n=r(40012),a=r(26727);let o=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:o}=a.parsePath(e);return/\.[^/]+\/?$/.test(t)?"".concat(n.removeTrailingSlash(t)).concat(r).concat(o):t.endsWith("/")?"".concat(t).concat(r).concat(o):"".concat(t,"/").concat(r).concat(o)};t.normalizePathTrailingSlash=o,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(92648).Z,a=r(33468),o=r(41003),i=n(r(27929)),l=r(54465),s=r(86238),u=r(22864),c=r(40012),d=r(82497);t.default=class{getPageList(){return d.getClientBuildManifest().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:d,query:f,search:p}=u.parseRelativeUrl(r),{pathname:h}=u.parseRelativeUrl(t),m=c.removeTrailingSlash(d);if("/"!==m[0])throw Error('Route name should start with a "/", got "'.concat(m,'"'));return(e=>{let t=i.default(c.removeTrailingSlash(l.addLocale(e,n)),".json");return a.addBasePath("/_next/data/".concat(this.buildId).concat(t).concat(p),!0)})(e.skipInterpolation?h:s.isDynamicRoute(m)?o.interpolateAs(d,h,f).result:m)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=d.createRouteLoader(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},659:function(e,t,r){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let a=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let o=!1;function i(e){n&&n(e)}var l=e=>{if(n=e,!o)for(let t of(o=!0,a))try{let l;l||(l=r(78018)),l["on".concat(t)](i)}catch(s){console.warn("Failed to track ".concat(t," web-vital"),s)}};t.default=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17345:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Portal=void 0;var n=r(67294),a=r(73935);let o=e=>{let{children:t,type:r}=e,[o,i]=n.useState(null);return n.useEffect(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),o?a.createPortal(t,o):null};t.Portal=o,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82813:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeBasePath=function(e){return(e=e.slice(0)).startsWith("/")||(e="/".concat(e)),e},r(10928),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66876:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeLocale=function(e,t){return e},r(26727),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44686:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIdleCallback=t.requestIdleCallback=void 0;let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};t.requestIdleCallback=r;let n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=n,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18483:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RouteAnnouncer=void 0;var n=(0,r(92648).Z)(r(67294)),a=r(80880);let o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},i=()=>{let{asPath:e}=a.useRouter(!0),[t,r]=n.default.useState(""),i=n.default.useRef(e);return n.default.useEffect(()=>{if(i.current!==e){if(i.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1"),a=null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent;r(a||e)}}},[e]),n.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:o},t)};t.RouteAnnouncer=i,t.default=i,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82497:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=s,t.isAssetError=function(e){return e&&l in e},t.getClientBuildManifest=c,t.createRouteLoader=function(e){let t=new Map,r=new Map,n=new Map,l=new Map;function c(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(s(Error("Failed to load script: ".concat(e)))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function f(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: ".concat(e));return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw s(e)})),t}return{whenEntrypoint:e=>o(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),l.delete(e))})},loadRoute(r,n){return o(r,l,()=>{let a;return u(d(e,r).then(e=>{let{scripts:n,css:a}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(c)),Promise.all(a.map(f))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,s(Error("Route did not complete loading: ".concat(r)))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==a?void 0:a())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():d(e,t).then(e=>Promise.all(i?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,a)=>{let o='\n link[rel="prefetch"][href^="'.concat(t,'"],\n link[rel="preload"][href^="').concat(t,'"],\n script[src^="').concat(t,'"]');if(document.querySelector(o))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=a,n.href=t,document.head.appendChild(n)})}):[])).then(()=>{a.requestIdleCallback(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}},(0,r(92648).Z)(r(27929));var n=r(65407),a=r(44686);function o(e,t,r){let n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);let o=new Promise(e=>{n=e});return t.set(e,a={resolve:n,future:o}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):o}let i=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}(),l=Symbol("ASSET_LOAD_ERROR");function s(e){return Object.defineProperty(e,l,{})}function u(e,t,r){return new Promise((n,o)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(o),a.requestIdleCallback(()=>setTimeout(()=>{i||o(r)},t))})}function c(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return u(e,3800,s(Error("Failed to load client build manifest")))}function d(e,t){return c().then(r=>{if(!(t in r))throw s(Error("Failed to lookup route: ".concat(t)));let a=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:a.filter(e=>e.endsWith(".js")).map(e=>n.__unsafeCreateTrustedScriptURL(e)),css:a.filter(e=>e.endsWith(".css"))}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80880:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return s.default}}),t.useRouter=function(e){let t=a.default.useContext(i.RouterContext);if(!t&&e)throw Error("invariant expected pages router to be mounted");return t},t.createRouter=function(){for(var e=arguments.length,t=Array(e),r=0;re()),u.readyCallbacks=[],u.router},t.makePublicRouterInstance=function(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=o.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),a=0;ao.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get(){let t=f();return t[e]}})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{u.ready(()=>{o.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n{let t=e.id||e.getAttribute("src");p.add(t)})}()},t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=r(91598).Z,i=r(17273).Z,l=a(r(73935)),s=o(r(67294)),u=r(4664),c=r(31831),d=r(44686);let f=new Map,p=new Set,h=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy"],m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:o,children:i="",strategy:l="afterInteractive",onError:s}=e,u=r||t;if(u&&p.has(u))return;if(f.has(t)){p.add(u),f.get(t).then(n,s);return}let d=()=>{a&&a(),p.add(u)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),d()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){s&&s(e)});for(let[y,v]of(o?(m.innerHTML=o.__html||"",d()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",d()):t&&(m.src=t,f.set(t,g)),Object.entries(e))){if(void 0===v||h.includes(y))continue;let _=c.DOMAttributeNames[y]||y.toLowerCase();m.setAttribute(_,v)}"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),document.body.appendChild(m)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{d.requestIdleCallback(()=>m(e))}):m(e)}function y(e){let{id:t,src:r="",onLoad:a=()=>{},onReady:o=null,strategy:c="afterInteractive",onError:f}=e,h=i(e,["id","src","onLoad","onReady","strategy","onError"]),{updateScripts:g,scripts:y,getIsSsr:v,appDir:_,nonce:P}=s.useContext(u.HeadManagerContext),b=s.useRef(!1);s.useEffect(()=>{let e=t||r;b.current||(o&&e&&p.has(e)&&o(),b.current=!0)},[o,t,r]);let E=s.useRef(!1);if(s.useEffect(()=>{!E.current&&("afterInteractive"===c?m(e):"lazyOnload"===c&&("complete"===document.readyState?d.requestIdleCallback(()=>m(e)):window.addEventListener("load",()=>{d.requestIdleCallback(()=>m(e))})),E.current=!0)},[e,c]),("beforeInteractive"===c||"worker"===c)&&(g?(y[c]=(y[c]||[]).concat([n({id:t,src:r,onLoad:a,onReady:o,onError:f},h)]),g(y)):v&&v()?p.add(t||r):v&&!v()&&m(e)),_){if("beforeInteractive"===c)return r?(l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"}),s.default.createElement("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat(JSON.stringify([r]),")")}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),s.default.createElement("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat(JSON.stringify([0,n({},h)]),")")}}));"afterInteractive"===c&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"})}return null}Object.defineProperty(y,"__nextScript",{value:!0}),t.default=y,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65407:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.__unsafeCreateTrustedScriptURL=function(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49977:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return n.default.createElement(e,Object.assign({router:a.useRouter()},t))}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t};var n=(0,r(92648).Z)(r(67294)),a=r(80880);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74297:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=r(60932).Z,o=(0,r(92648).Z)(r(67294)),i=r(670);function l(e){return s.apply(this,arguments)}function s(){return(s=a(function*(e){let{Component:t,ctx:r}=e,n=yield i.loadGetInitialProps(t,r);return{pageProps:n}})).apply(this,arguments)}class u extends(n=o.default.Component){render(){let{Component:e,pageProps:t}=this.props;return o.default.createElement(e,Object.assign({},t))}}u.origGetInitialProps=l,u.getInitialProps=l,t.default=u},97345:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=r(92648).Z,o=a(r(67294)),i=a(r(83121));let l={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function s(e){let{res:t,err:r}=e,n=t&&t.statusCode?t.statusCode:r?r.statusCode:404;return{statusCode:n}}let u={error:{fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",margin:0,marginRight:"20px",padding:"0 23px 0 0",fontSize:"24px",fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"49px",margin:0,padding:0}};class c extends(n=o.default.Component){render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||l[e]||"An unexpected error has occurred";return o.default.createElement("div",{style:u.error},o.default.createElement(i.default,null,o.default.createElement("title",null,e?"".concat(e,": ").concat(r):"Application error: a client-side exception has occurred")),o.default.createElement("div",null,o.default.createElement("style",{dangerouslySetInnerHTML:{__html:"\n body { margin: 0; color: #000; background: #fff; }\n .next-error-h1 {\n border-right: 1px solid rgba(0, 0, 0, .3);\n }\n\n ".concat(t?"@media (prefers-color-scheme: dark) {\n body { color: #fff; background: #000; }\n .next-error-h1 {\n border-right: 1px solid rgba(255, 255, 255, .3);\n }\n }":"")}}),e?o.default.createElement("h1",{className:"next-error-h1",style:u.h1},e):null,o.default.createElement("div",{style:u.desc},o.default.createElement("h2",{style:u.h2},this.props.title||e?r:o.default.createElement(o.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}c.displayName="ErrorPage",c.getInitialProps=s,c.origGetInitialProps=s,t.default=c},40610:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext({});t.AmpStateContext=a},40532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=function(){let{ampFirst:e=!1,hybrid:t=!1,hasQuery:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||t&&r}},48245:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext(null);t.AppRouterContext=a;let o=n.default.createContext(null);t.LayoutRouterContext=o;let i=n.default.createContext(null);t.GlobalLayoutRouterContext=i;let l=n.default.createContext(null);t.TemplateContext=l},18659:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){return r.test(e)?e.replace(n,"\\$&"):e};let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g},4664:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext({});t.HeadManagerContext=a},83121:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=c,t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=(0,r(91598).Z)(r(67294)),i=a(r(31436)),l=r(40610),s=r(4664),u=r(40532);function c(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(57238);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return a=>{let o=!0,i=!1;if(a.key&&"number"!=typeof a.key&&a.key.indexOf("$")>0){i=!0;let l=a.key.slice(a.key.indexOf("$")+1);e.has(l)?o=!1:e.add(l)}switch(a.type){case"title":case"base":t.has(a.type)?o=!1:t.add(a.type);break;case"meta":for(let s=0,u=f.length;s{let a=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let i=n({},e.props||{});return i["data-href"]=i.href,i.href=void 0,i["data-optimized-fonts"]=!0,o.default.cloneElement(e,i)}return o.default.cloneElement(e,{key:a})})}var h=function(e){let{children:t}=e,r=o.useContext(l.AmpStateContext),n=o.useContext(s.HeadManagerContext);return o.default.createElement(i.default,{reduceComponentsToState:p,headManager:n,inAmpMode:u.isInAmpMode(r)},t)};t.default=h,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutSegmentsContext=t.ParamsContext=t.PathnameContext=t.SearchParamsContext=void 0;var n=r(67294);let a=n.createContext(null);t.SearchParamsContext=a;let o=n.createContext(null);t.PathnameContext=o;let i=n.createContext(null);t.ParamsContext=i;let l=n.createContext(null);t.LayoutSegmentsContext=l},24769:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}},28730:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConfigContext=void 0;var n=(0,r(92648).Z)(r(67294)),a=r(10139);let o=n.default.createContext(a.imageConfigDefault);t.ImageConfigContext=o},10139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0,t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"],t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",remotePatterns:[],unoptimized:!1}},82849:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectClassLabel=r,t.isPlainObject=function(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},8550:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a{e(...n)})}}}},6301:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalizePagePath=function(e){let t=a.normalizePathSep(e);return t.startsWith("/index/")&&!n.isDynamicRoute(t)?t.slice(6):"/index"!==t?t:"/"};var n=r(18588),a=r(49997)},49997:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=function(e){return e.replace(/\\/g,"/")}},72692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext(null);t.RouterContext=a},60401:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adaptForAppRouterInstance=function(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},push(t){e.push(t)},replace(t){e.replace(t)},prefetch(t){e.prefetch(t)}}},t.adaptForSearchParams=function(e){return e.isReady&&e.query?function(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let a of n)t.append(r,a);else void 0!==n&&t.append(r,n);return t}(e.query):new URLSearchParams},t.PathnameContextProviderAdapter=function(e){var{children:t,router:r}=e,n=a(e,["children","router"]);let s=o.useRef(n.isAutoExport),u=o.useMemo(()=>{let e=s.current;if(e&&(s.current=!1),l.isDynamicRoute(r.pathname)&&(r.isFallback||e&&!r.isReady))return null;let t=new URL(r.asPath,"http://f");return t.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return o.default.createElement(i.PathnameContext.Provider,{value:u},t)};var n=r(91598).Z,a=r(17273).Z,o=n(r(67294)),i=r(78914),l=r(18588)},41003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesMiddleware=I,t.isLocalURL=B,t.interpolateAs=U,t.resolveHref=q,t.createKey=$,t.default=void 0;var n=r(60932).Z,a=r(6495).Z,o=r(92648).Z,i=r(91598).Z,l=r(52700),s=r(40012),u=r(82497),c=r(63573),d=i(r(80676)),f=r(6301),p=r(24769),h=o(r(8550)),m=r(670),g=r(86238),y=r(22864),v=r(94919),_=o(r(27980)),P=r(13156),b=r(54903),E=r(67795);r(84643);var S=r(26727),x=r(54465),w=r(66876),C=r(82813),O=r(33468),R=r(10928),j=r(18756),A=r(57429),M=r(79002),L=r(21754);function T(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}function I(e){return N.apply(this,arguments)}function N(){return(N=n(function*(e){let t=yield Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=S.parsePath(e.asPath),n=R.hasBasePath(r)?C.removeBasePath(r):r,a=O.addBasePath(x.addLocale(n,e.locale));return t.some(e=>RegExp(e.regexp).test(a))})).apply(this,arguments)}function k(e){let t=m.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function D(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function B(e){if(!m.isAbsoluteUrl(e))return!0;try{let t=m.getLocationOrigin(),r=new URL(e,t);return r.origin===t&&R.hasBasePath(r.pathname)}catch(n){return!1}}function U(e,t,r){let n="",a=b.getRouteRegex(e),o=a.groups,i=(t!==e?P.getRouteMatcher(a)(t):"")||r;n=e;let l=Object.keys(o);return l.every(e=>{let t=i[e]||"",{repeat:r,optional:a}=o[e],l="[".concat(r?"...":"").concat(e,"]");return a&&(l="".concat(t?"":"/","[").concat(l,"]")),r&&!Array.isArray(t)&&(t=[t]),(a||e in i)&&(n=n.replace(l,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(n=""),{params:l,result:n}}function q(e,t,r){let n;let a="string"==typeof t?t:E.formatWithValidation(t),o=a.match(/^[a-zA-Z]{1,}:\/\//),i=o?a.slice(o[0].length):a,s=i.split("?");if((s[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href passed to next/router: ".concat(a,", repeated forward-slashes (//) or backslashes \\ are not valid in the href"));let u=m.normalizeRepeatedSlashes(i);a=(o?o[0]:"")+u}if(!B(a))return r?[a]:a;try{n=new URL(a.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(c){n=new URL("/","http://n")}try{let d=new URL(a,n);d.pathname=l.normalizePathTrailingSlash(d.pathname);let f="";if(g.isDynamicRoute(d.pathname)&&d.searchParams&&r){let p=v.searchParamsToUrlQuery(d.searchParams),{result:h,params:y}=U(d.pathname,d.pathname,p);h&&(f=E.formatWithValidation({pathname:h,hash:d.hash,query:D(p,y)}))}let _=d.origin===n.origin?d.href.slice(d.origin.length):d.href;return r?[_,f||_]:_}catch(P){return r?[a]:a}}function F(e,t,r){let[n,a]=q(e,t,!0),o=m.getLocationOrigin(),i=n.startsWith(o),l=a&&a.startsWith(o);n=k(n),a=a?k(a):a;let s=i?n:O.addBasePath(n),u=r?k(q(e,r)):a||n;return{url:s,as:l?u:O.addBasePath(u)}}function H(e,t){let r=s.removeTrailingSlash(f.denormalizePagePath(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if(g.isDynamicRoute(t)&&b.getRouteRegex(t).re.test(r))return e=t,!0}),s.removeTrailingSlash(e))}let W=Symbol("SSG_DATA_NOT_FOUND"),Z={};function z(e){let t=document.documentElement,r=t.style.scrollBehavior;t.style.scrollBehavior="auto",e(),t.style.scrollBehavior=r}function G(e){try{return JSON.parse(e)}catch(t){return null}}function V(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:a,hasMiddleware:o,isServerRender:i,parseJSON:l,persistCache:s,isBackground:c,unstable_skipClientCache:d}=e,{href:f}=new URL(r,window.location.href),p=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(a=>!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a)})(r,i?3:1,{headers:a?{purpose:"prefetch"}:{},method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(o&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};if(!o&&404===t.status){var n;if(null==(n=G(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:W},response:t,text:e,cacheKey:f}}let a=Error("Failed to load static props");throw i||u.markAssetError(a),a}return{dataHref:r,json:l?G(e):null,response:t,text:e,cacheKey:f}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e)).catch(e=>{throw delete n[f],e});return d&&s?p({}).then(e=>(n[f]=Promise.resolve(e),e)):void 0!==n[f]?n[f]:n[f]=p(c?{method:"HEAD"}:{})}function $(){return Math.random().toString(36).slice(2,10)}function X(e){let{url:t,router:r}=e;if(t===O.addBasePath(x.addLocale(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL ".concat(t," ").concat(location.href));window.location.href=t}let K=e=>{let{route:t,router:r}=e,n=!1,a=r.clc=()=>{n=!0},o=()=>{if(n){let e=Error('Abort fetching component for route: "'.concat(t,'"'));throw e.cancelled=!0,e}a===r.clc&&(r.clc=null)};return o};class Q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}change(e,t,r,o,i){var l=this;return n(function*(){let n,f;if(!B(t))return X({url:t,router:l}),!1;let p=o._h,h=p||o._shouldResolveHref||S.parsePath(t).pathname===S.parsePath(r).pathname,v=a({},l.state),j=!0!==l.isReady;l.isReady=!0;let A=l.isSsr;if(p||(l.isSsr=!1),p&&l.clc)return!1;let L=v.locale;m.ST&&performance.mark("routeChange");let{shallow:N=!1,scroll:k=!0}=o,q={shallow:N};l._inFlightRoute&&l.clc&&(A||Q.events.emit("routeChangeError",T(),l._inFlightRoute,q),l.clc(),l.clc=null),r=O.addBasePath(x.addLocale(R.hasBasePath(r)?C.removeBasePath(r):r,o.locale,l.defaultLocale));let Z=w.removeLocale(R.hasBasePath(r)?C.removeBasePath(r):r,v.locale);l._inFlightRoute=r;let z=L!==v.locale;if(!p&&l.onlyAHashChange(Z)&&!z){v.asPath=Z,Q.events.emit("hashChangeStart",r,q),l.changeState(e,t,r,a({},o,{scroll:!1})),k&&l.scrollToHash(Z);try{yield l.set(v,l.components[v.route],null)}catch(G){throw d.default(G)&&G.cancelled&&Q.events.emit("routeChangeError",G,Z,q),G}return Q.events.emit("hashChangeComplete",r,q),!0}let V=y.parseRelativeUrl(t),{pathname:$,query:K}=V;try{[n,{__rewrites:f}]=yield Promise.all([l.pageLoader.getPageList(),u.getClientBuildManifest(),l.pageLoader.getMiddleware()])}catch(J){return X({url:r,router:l}),!1}l.urlIsNew(Z)||z||(e="replaceState");let Y=r;$=$?s.removeTrailingSlash(C.removeBasePath($)):$;let ee=yield I({asPath:r,locale:v.locale,router:l});if(o.shallow&&ee&&($=l.pathname),p&&ee&&(h=!1),h&&"/_error"!==$){if(o._shouldResolveHref=!0,r.startsWith("/")){let et=_.default(O.addBasePath(x.addLocale(Z,v.locale),!0),n,f,K,e=>H(e,n),l.locales);if(et.externalDest)return X({url:r,router:l}),!0;ee||(Y=et.asPath),et.matchedPage&&et.resolvedHref&&($=et.resolvedHref,V.pathname=O.addBasePath($),ee||(t=E.formatWithValidation(V)))}else V.pathname=H($,n),V.pathname===$||($=V.pathname,V.pathname=O.addBasePath($),ee||(t=E.formatWithValidation(V)))}if(!B(r))return X({url:r,router:l}),!1;Y=w.removeLocale(C.removeBasePath(Y),v.locale);let er=s.removeTrailingSlash($),en=!1;if(g.isDynamicRoute(er)){let ea=y.parseRelativeUrl(Y),eo=ea.pathname,ei=b.getRouteRegex(er);en=P.getRouteMatcher(ei)(eo);let el=er===eo,es=el?U(er,eo,K):{};if(en&&(!el||es.result))el?r=E.formatWithValidation(Object.assign({},ea,{pathname:es.result,query:D(K,es.params)})):Object.assign(K,en);else{let eu=Object.keys(ei.groups).filter(e=>!K[e]);if(eu.length>0&&!ee)throw Error((el?"The provided `href` (".concat(t,") value is missing query values (").concat(eu.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(eo,") is incompatible with the `href` value (").concat(er,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(el?"href-interpolation-failed":"incompatible-href-as"))}}p||Q.events.emit("routeChangeStart",r,q);try{var ec,ed,ef,ep;let eh=yield l.getRouteInfo({route:er,pathname:$,query:K,as:r,resolvedAs:Y,routeProps:q,locale:v.locale,isPreview:v.isPreview,hasMiddleware:ee,unstable_skipClientCache:o.unstable_skipClientCache,isQueryUpdating:p&&!l.isFallback});if("route"in eh&&ee){er=$=eh.route||er,q.shallow||(K=Object.assign({},eh.query||{},K));let em=R.hasBasePath(V.pathname)?C.removeBasePath(V.pathname):V.pathname;if(en&&$!==em&&Object.keys(en).forEach(e=>{en&&K[e]===en[e]&&delete K[e]}),g.isDynamicRoute($)){let eg=!q.shallow&&eh.resolvedAs?eh.resolvedAs:O.addBasePath(x.addLocale(new URL(r,location.href).pathname,v.locale),!0),ey=eg;R.hasBasePath(ey)&&(ey=C.removeBasePath(ey));let ev=b.getRouteRegex($),e_=P.getRouteMatcher(ev)(new URL(ey,location.href).pathname);e_&&Object.assign(K,e_)}}if("type"in eh){if("redirect-internal"===eh.type)return l.change(e,eh.newUrl,eh.newAs,o);return X({url:eh.destination,router:l}),new Promise(()=>{})}let{error:eP,props:eb,__N_SSG:eE,__N_SSP:eS}=eh,ex=eh.Component;if(ex&&ex.unstable_scriptLoader){let ew=[].concat(ex.unstable_scriptLoader());ew.forEach(e=>{c.handleClientScriptLoad(e.props)})}if((eE||eS)&&eb){if(eb.pageProps&&eb.pageProps.__N_REDIRECT){o.locale=!1;let eC=eb.pageProps.__N_REDIRECT;if(eC.startsWith("/")&&!1!==eb.pageProps.__N_REDIRECT_BASE_PATH){let eO=y.parseRelativeUrl(eC);eO.pathname=H(eO.pathname,n);let{url:eR,as:ej}=F(l,eC,eC);return l.change(e,eR,ej,o)}return X({url:eC,router:l}),new Promise(()=>{})}if(v.isPreview=!!eb.__N_PREVIEW,eb.notFound===W){let eA;try{yield l.fetchComponent("/404"),eA="/404"}catch(eM){eA="/_error"}if(eh=yield l.getRouteInfo({route:eA,pathname:eA,query:K,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:v.locale,isPreview:v.isPreview}),"type"in eh)throw Error("Unexpected middleware effect on /404")}}Q.events.emit("beforeHistoryChange",r,q),l.changeState(e,t,r,o),p&&"/_error"===$&&(null==(ec=self.__NEXT_DATA__.props)?void 0:null==(ed=ec.pageProps)?void 0:ed.statusCode)===500&&(null==eb?void 0:eb.pageProps)&&(eb.pageProps.statusCode=500);let eL=o.shallow&&v.route===(null!=(ef=eh.route)?ef:er),eT=null!=(ep=o.scroll)?ep:!o._h&&!eL,eI=a({},v,{route:er,pathname:$,query:K,asPath:Z,isFallback:!1}),eN=null!=i?i:eT?{x:0,y:0}:null,ek=o._h&&!eN&&!j&&!z&&M.compareRouterStates(eI,l.state);if(!ek){if(yield l.set(eI,eh,eN).catch(e=>{if(e.cancelled)eP=eP||e;else throw e}),eP)throw p||Q.events.emit("routeChangeError",eP,Z,q),eP;p||Q.events.emit("routeChangeComplete",r,q),eT&&/#.+$/.test(r)&&l.scrollToHash(r)}return!0}catch(eD){if(d.default(eD)&&eD.cancelled)return!1;throw eD}})()}changeState(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};("pushState"!==e||m.getURL()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:$()},"",r))}handleRouteInfoError(e,t,r,a,o,i){var l=this;return n(function*(){if(console.error(e),e.cancelled)throw e;if(u.isAssetError(e)||i)throw Q.events.emit("routeChangeError",e,a,o),X({url:a,router:l}),T();try{let n;let{page:s,styleSheets:c}=yield l.fetchComponent("/_error"),f={props:n,Component:s,styleSheets:c,err:e,error:e};if(!f.props)try{f.props=yield l.getInitialProps(s,{err:e,pathname:t,query:r})}catch(p){console.error("Error in error page `getInitialProps`: ",p),f.props={}}return f}catch(h){return l.handleRouteInfoError(d.default(h)?h:Error(h+""),t,r,a,o,!0)}})()}getRouteInfo(e){let{route:t,pathname:r,query:o,as:i,resolvedAs:l,routeProps:c,locale:f,hasMiddleware:h,isPreview:m,unstable_skipClientCache:v,isQueryUpdating:w}=e;var R=this;return n(function*(){let e=t;try{var M,L,T,N;let k=K({route:e,router:R}),D=R.components[e];if(c.shallow&&D&&R.route===e)return D;h&&(D=void 0);let B=!D||"initial"in D?void 0:D,U={dataHref:R.pageLoader.getDataHref({href:E.formatWithValidation({pathname:r,query:o}),skipInterpolation:!0,asPath:l,locale:f}),hasMiddleware:!0,isServerRender:R.isSsr,parseJSON:!0,inflightCache:R.sdc,persistCache:!m,isPrefetch:!1,unstable_skipClientCache:v,isBackground:w},q=w?{}:yield(N={fetchData:()=>V(U),asPath:l,locale:f,router:R},I(N).then(e=>e&&N.fetchData?N.fetchData().then(e=>(function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:Boolean(!0)},o=t.headers.get("x-nextjs-rewrite"),i=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||i||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(i=l),i){if(i.startsWith("/")){let c=y.parseRelativeUrl(i),d=j.getNextPathnameInfo(c.pathname,{nextConfig:n,parseData:!0}),f=s.removeTrailingSlash(d.pathname);return Promise.all([r.router.pageLoader.getPageList(),u.getClientBuildManifest()]).then(t=>{let[n,{__rewrites:a}]=t,i=x.addLocale(d.pathname,d.locale);if(g.isDynamicRoute(i)||!o&&n.includes(p.normalizeLocalePath(C.removeBasePath(i),r.router.locales).pathname)){let l=j.getNextPathnameInfo(y.parseRelativeUrl(e).pathname,{parseData:!0});i=O.addBasePath(l.pathname),c.pathname=i}{let s=_.default(i,n,a,c.query,e=>H(e,n),r.router.locales);s.matchedPage&&(c.pathname=s.parsedAs.pathname,i=c.pathname,Object.assign(c.query,s.parsedAs.query))}let u=n.includes(f)?f:H(p.normalizeLocalePath(C.removeBasePath(c.pathname),r.router.locales).pathname,n);if(g.isDynamicRoute(u)){let h=P.getRouteMatcher(b.getRouteRegex(u))(i);Object.assign(c.query,h||{})}return{type:"rewrite",parsedAs:c,resolvedHref:u}})}let h=S.parsePath(e),m=A.formatNextPathnameInfo(a({},j.getNextPathnameInfo(h.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-external",destination:"".concat(m).concat(h.query).concat(h.hash)})}let v=t.headers.get("x-nextjs-redirect");if(v){if(v.startsWith("/")){let E=S.parsePath(v),w=A.formatNextPathnameInfo(a({},j.getNextPathnameInfo(E.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-internal",newAs:"".concat(w).concat(E.query).concat(E.hash),newUrl:"".concat(w).concat(E.query).concat(E.hash)})}return Promise.resolve({type:"redirect-external",destination:v})}return Promise.resolve({type:"next"})})(e.dataHref,e.response,N).then(t=>({dataHref:e.dataHref,cacheKey:e.cacheKey,json:e.json,response:e.response,text:e.text,effect:t}))).catch(e=>null):null));if(w&&q&&(q.json=self.__NEXT_DATA__.props),k(),(null==q?void 0:null==(M=q.effect)?void 0:M.type)==="redirect-internal"||(null==q?void 0:null==(L=q.effect)?void 0:L.type)==="redirect-external")return q.effect;if((null==q?void 0:null==(T=q.effect)?void 0:T.type)==="rewrite"&&(e=s.removeTrailingSlash(q.effect.resolvedHref),r=q.effect.resolvedHref,o=a({},o,q.effect.parsedAs.query),l=C.removeBasePath(p.normalizeLocalePath(q.effect.parsedAs.pathname,R.locales).pathname),D=R.components[e],c.shallow&&D&&R.route===e&&!h))return a({},D,{route:e});if("/api"===e||e.startsWith("/api/"))return X({url:i,router:R}),new Promise(()=>{});let F=B||(yield R.fetchComponent(e).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}))),W=F.__N_SSG||F.__N_SSP,{props:z,cacheKey:G}=yield R._getData(n(function*(){if(W){let{json:e,cacheKey:t}=(null==q?void 0:q.json)?q:yield V({dataHref:R.pageLoader.getDataHref({href:E.formatWithValidation({pathname:r,query:o}),asPath:l,locale:f}),isServerRender:R.isSsr,parseJSON:!0,inflightCache:R.sdc,persistCache:!m,isPrefetch:!1,unstable_skipClientCache:v});return{cacheKey:t,props:e||{}}}return{headers:{},cacheKey:"",props:yield R.getInitialProps(F.Component,{pathname:r,query:o,asPath:i,locale:f,locales:R.locales,defaultLocale:R.defaultLocale})}}));return F.__N_SSP&&U.dataHref&&delete R.sdc[G],R.isPreview||!F.__N_SSG||w||V(Object.assign({},U,{isBackground:!0,persistCache:!1,inflightCache:Z})).catch(()=>{}),z.pageProps=Object.assign({},z.pageProps),F.props=z,F.route=e,F.query=o,F.resolvedAs=l,R.components[e]=F,F}catch($){return R.handleRouteInfoError(d.getProperError($),r,o,i,c)}})()}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#"),[n,a]=e.split("#");return!!a&&t===n&&r===a||t===n&&r!==a}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){z(()=>window.scrollTo(0,0));return}let r=decodeURIComponent(t),n=document.getElementById(r);if(n){z(()=>n.scrollIntoView());return}let a=document.getElementsByName(r)[0];a&&z(()=>a.scrollIntoView())}urlIsNew(e){return this.asPath!==e}prefetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a=this;return n(function*(){if(L.isBot(window.navigator.userAgent))return;let n=y.parseRelativeUrl(e),{pathname:o,query:i}=n,l=yield a.pageLoader.getPageList(),c=t,d=void 0!==r.locale?r.locale||void 0:a.locale;if(t.startsWith("/")){let f;({__rewrites:f}=yield u.getClientBuildManifest());let p=_.default(O.addBasePath(x.addLocale(t,a.locale),!0),l,f,n.query,e=>H(e,l),a.locales);if(p.externalDest)return;c=w.removeLocale(C.removeBasePath(p.asPath),a.locale),p.matchedPage&&p.resolvedHref&&(o=p.resolvedHref,n.pathname=o,e=E.formatWithValidation(n))}n.pathname=H(n.pathname,l),g.isDynamicRoute(n.pathname)&&(o=n.pathname,n.pathname=o,Object.assign(i,P.getRouteMatcher(b.getRouteRegex(n.pathname))(S.parsePath(t).pathname)||{}),e=E.formatWithValidation(n));let h=s.removeTrailingSlash(o);yield Promise.all([a.pageLoader._isSsg(h).then(t=>!!t&&V({dataHref:a.pageLoader.getDataHref({href:e,asPath:c,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:a.sdc,persistCache:!a.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1)),a.pageLoader[r.priority?"loadPage":"prefetch"](h)])})()}fetchComponent(e){var t=this;return n(function*(){let r=K({route:e,router:t});try{let n=yield t.pageLoader.loadPage(e);return r(),n}catch(a){throw r(),a}})()}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let n=Error("Loading initial props cancelled");throw n.cancelled=!0,n}return e})}_getFlightData(e){return V({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,m.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:a,App:o,wrapApp:i,Component:l,err:u,subscription:c,isFallback:d,locale:f,locales:p,defaultLocale:h,domainLocales:v,isPreview:_}){this.sdc={},this.isFirstPopStateEvent=!0,this._key=$(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:a,query:o}=this;this.changeState("replaceState",E.formatWithValidation({pathname:O.addBasePath(a),query:o}),m.getURL());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:i,as:l,options:s,key:u}=n;this._key=u;let{pathname:c}=y.parseRelativeUrl(i);(!this.isSsr||l!==O.addBasePath(this.asPath)||c!==O.addBasePath(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",i,l,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};let P=s.removeTrailingSlash(e);this.components={},"/_error"!==e&&(this.components[P]={Component:l,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:o,styleSheets:[]},this.events=Q.events,this.pageLoader=a;let b=g.isDynamicRoute(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=i,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||(b||self.location.search,0)),this.state={route:P,pathname:e,query:t,asPath:b?e:r,isPreview:!!_,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let S={locale:f},x=m.getURL();this._initialMatchesMiddlewarePromise=I({router:this,locale:f,asPath:x}).then(n=>(S._shouldResolveHref=r!==e,this.changeState("replaceState",n?x:E.formatWithValidation({pathname:O.addBasePath(e),query:t}),x,S),n))}window.addEventListener("popstate",this.onPopState)}}Q.events=h.default(),t.default=Q},34441:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=function(e,t,r,o){return t&&t!==r&&(o||!a.pathHasPrefix(e.toLowerCase(),"/".concat(t.toLowerCase()))&&!a.pathHasPrefix(e.toLowerCase(),"/api"))?n.addPathPrefix(e,"/".concat(t)):e};var n=r(44135),a=r(93210)},44135:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathPrefix=function(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:o}=n.parsePath(e);return"".concat(t).concat(r).concat(a).concat(o)};var n=r(26727)},96074:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathSuffix=function(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:a,hash:o}=n.parsePath(e);return"".concat(r).concat(t).concat(a).concat(o)};var n=r(26727)},79002:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareRouterStates=function(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let a=r[n];if("query"===a){let o=Object.keys(e.query);if(o.length!==Object.keys(t.query).length)return!1;for(let i=o.length;i--;){let l=o[i];if(!t.query.hasOwnProperty(l)||e.query[l]!==t.query[l])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}},57429:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNextPathnameInfo=function(e){let t=i.addLocale(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=n.removeTrailingSlash(t)),e.buildId&&(t=o.addPathSuffix(a.addPathPrefix(t,"/_next/data/".concat(e.buildId)),"/"===e.pathname?"index.json":".json")),t=a.addPathPrefix(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:o.addPathSuffix(t,"/"):n.removeTrailingSlash(t)};var n=r(40012),a=r(44135),o=r(96074),i=r(34441)},67795:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=o,t.formatWithValidation=function(e){return o(e)},t.urlObjectKeys=void 0;var n=(0,r(91598).Z)(r(94919));let a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(n.urlQueryToSearchParams(s)));let c=e.search||s&&"?".concat(s)||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||a.test(o))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),"".concat(o).concat(u).concat(i).concat(c).concat(l)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},27929:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},18756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextPathnameInfo=function(e,t){var r;let{basePath:i,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},u={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};if(i&&o.pathHasPrefix(u.pathname,i)&&(u.pathname=a.removePathPrefix(u.pathname,i),u.basePath=i),!0===t.parseData&&u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){let c=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),d=c[0];u.pathname="index"!==c[1]?"/".concat(c.slice(1).join("/")):"/",u.buildId=d}if(l){let f=n.normalizeLocalePath(u.pathname,l.locales);u.locale=null==f?void 0:f.detectedLocale,u.pathname=(null==f?void 0:f.pathname)||u.pathname}return u};var n=r(24769),a=r(22650),o=r(93210)},18588:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a.isDynamicRoute}});var n=r(30566),a=r(86238)},21754:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBot=function(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}},86238:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};let r=/\/\[[^/]+?\](?=\/|$)/},26727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePath=function(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}},22864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){let r=new URL(n.getLocationOrigin()),o=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,o);if(d!==r.origin)throw Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:i,query:a.searchParamsToUrlQuery(l),search:s,hash:u,href:c.slice(r.origin.length)}};var n=r(670),a=r(94919)},97253:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=function(e){if(e.startsWith("/"))return a.parseRelativeUrl(e);let t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:n.searchParamsToUrlQuery(t.searchParams),search:t.search}};var n=r(94919),a=r(22864)},93210:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathHasPrefix=function(e,t){if("string"!=typeof e)return!1;let{pathname:r}=n.parsePath(e);return r===t||r.startsWith(t+"/")};var n=r(26727)},77127:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathMatch=function(e,t){let r=[],o=a.pathToRegexp(e,r,{delimiter:"/",sensitive:!1,strict:null==t?void 0:t.strict}),i=a.regexpToFunction((null==t?void 0:t.regexModifier)?RegExp(t.regexModifier(o.source),o.flags):o,r);return(e,a)=>{let o=null!=e&&i(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(let l of r)"number"==typeof l.name&&delete o.params[l.name];return n({},a,o.params)}};var n=r(6495).Z,a=r(74329)},67327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchHas=function(e,t,r){let n={},a=t.every(t=>{let a;let o=t.key;switch(t.type){case"header":o=o.toLowerCase(),a=e.headers[o];break;case"cookie":a=e.cookies[t.key];break;case"query":a=r[o];break;case"host":{let{host:i}=(null==e?void 0:e.headers)||{},l=null==i?void 0:i.split(":")[0].toLowerCase();a=l}}if(!t.value&&a)return n[function(e){let t="";for(let r=0;r64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(o)]=a,!0;if(a){let s=RegExp("^".concat(t.value,"$")),u=Array.isArray(a)?a.slice(-1)[0].match(s):a.match(s);if(u)return Array.isArray(u)&&(u.groups?Object.keys(u.groups).forEach(e=>{n[e]=u.groups[e]}):"host"===t.type&&u[0]&&(n.host=u[0])),!0}return!1});return!!a&&n},t.compileNonPath=s,t.prepareDestination=function(e){let t;let r=Object.assign({},e.query);delete r.__nextLocale,delete r.__nextDefaultLocale,delete r.__nextDataReq;let u=e.destination;for(let c of Object.keys(n({},e.params,r))){var d,f;d=u,f=c,u=d.replace(RegExp(":".concat(o.escapeStringRegexp(f)),"g"),"__ESC_COLON_".concat(f))}let p=i.parseUrl(u),h=p.query,m=l("".concat(p.pathname).concat(p.hash||"")),g=l(p.hostname||""),y=[],v=[];a.pathToRegexp(m,y),a.pathToRegexp(g,v);let _=[];y.forEach(e=>_.push(e.name)),v.forEach(e=>_.push(e.name));let P=a.compile(m,{validate:!1}),b=a.compile(g,{validate:!1});for(let[E,S]of Object.entries(h))Array.isArray(S)?h[E]=S.map(t=>s(l(t),e.params)):"string"==typeof S&&(h[E]=s(l(S),e.params));let x=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!x.some(e=>_.includes(e)))for(let w of x)w in h||(h[w]=e.params[w]);try{t=P(e.params);let[C,O]=t.split("#");p.hostname=b(e.params),p.pathname=C,p.hash="".concat(O?"#":"").concat(O||""),delete p.search}catch(R){if(R.message.match(/Expected .*? to not repeat, but got an array/))throw Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw R}return p.query=n({},r,p.query),{newUrl:t,destQuery:h,parsedDestination:p}};var n=r(6495).Z,a=r(74329),o=r(18659),i=r(97253);function l(e){return e.replace(/__ESC_COLON_/gi,":")}function s(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(":".concat(r))&&(e=e.replace(RegExp(":".concat(r,"\\*"),"g"),":".concat(r,"--ESCAPED_PARAM_ASTERISKS")).replace(RegExp(":".concat(r,"\\?"),"g"),":".concat(r,"--ESCAPED_PARAM_QUESTION")).replace(RegExp(":".concat(r,"\\+"),"g"),":".concat(r,"--ESCAPED_PARAM_PLUS")).replace(RegExp(":".concat(r,"(?!\\w)"),"g"),"--ESCAPED_PARAM_COLON".concat(r)));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),a.compile("/".concat(e),{validate:!1})(t).slice(1)}},94919:function(e,t){"use strict";function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t},t.urlQueryToSearchParams=function(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,a]=e;Array.isArray(a)?a.forEach(e=>t.append(n,r(e))):t.set(n,r(a))}),t},t.assign=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}},22650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removePathPrefix=function(e,t){if(n.pathHasPrefix(e,t)){let r=e.slice(t.length);return r.startsWith("/")?r:"/".concat(r)}return e};var n=r(93210)},40012:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")||"/"}},27980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,u,c,d){let f,p=!1,h=!1,m=s.parseRelativeUrl(e),g=o.removeTrailingSlash(i.normalizeLocalePath(l.removeBasePath(m.pathname),d).pathname),y=r=>{let s=n.getPathMatch(r.source+"(/)?",{removeUnnamedParams:!0,strict:!0}),y=s(m.pathname);if(r.has&&y){let v=a.matchHas({headers:{host:document.location.hostname},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},r.has,m.query);v?Object.assign(y,v):y=!1}if(y){if(!r.destination)return h=!0,!0;let _=a.prepareDestination({appendParamsToQuery:!0,destination:r.destination,params:y,query:u});if(m=_.parsedDestination,e=_.newUrl,Object.assign(u,_.parsedDestination.query),g=o.removeTrailingSlash(i.normalizeLocalePath(l.removeBasePath(e),d).pathname),t.includes(g))return p=!0,f=g,!0;if((f=c(g))!==e&&t.includes(f))return p=!0,!0}},v=!1;for(let _=0;_{let a=t.exec(e);if(!a)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(t){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=a[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>o(e)):t.repeat?[o(n)]:o(n))}),i}};var n=r(670)},54903:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteRegex=s,t.getNamedRouteRegex=function(e){let t=u(e);return n({},s(e),{namedRegex:"^".concat(t.namedParameterizedRoute,"(?:/)?$"),routeKeys:t.routeKeys})},t.getNamedMiddlewareRegex=function(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/".concat(n?".*":"","$")};let{namedParameterizedRoute:a}=u(e);return{namedRegex:"^".concat(a).concat(n?"(?:(/.*)?)":"","$")}};var n=r(6495).Z,a=r(18659),o=r(40012);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=o.removeTrailingSlash(e).slice(1).split("/"),r={},n=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/".concat(a.escapeStringRegexp(e));{let{key:t,optional:o,repeat:l}=i(e.slice(1,-1));return r[t]={pos:n++,repeat:l,optional:o},l?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^".concat(t,"(?:/)?$")),groups:r}}function u(e){let t,r;let n=o.removeTrailingSlash(e).slice(1).split("/"),l=(t=97,r=1,()=>{let e="";for(let n=0;n122&&(r++,t=97);return e}),s={};return{namedParameterizedRoute:n.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/".concat(a.escapeStringRegexp(e));{let{key:t,optional:r,repeat:n}=i(e.slice(1,-1)),o=t.replace(/\W/g,""),u=!1;return(0===o.length||o.length>30)&&(u=!0),isNaN(parseInt(o.slice(0,1)))||(u=!0),u&&(o=l()),s[o]=t,n?r?"(?:/(?<".concat(o,">.+?))?"):"/(?<".concat(o,">.+?)"):"/(?<".concat(o,">[^/]+?)")}}).join(""),routeKeys:s}}},30566:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()};class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh("".concat(e).concat(t,"/"))).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh("".concat(e,"[").concat(this.slugName,"]/"))),!this.placeholder){let n="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(n,'" and "').concat(n,"[[...").concat(this.optionalRestSlugName,']]").'));r.unshift(n)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh("".concat(e,"[...").concat(this.restSlugName,"]/"))),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh("".concat(e,"[[...").concat(this.optionalRestSlugName,"]]/"))),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let a=e[0];if(a.startsWith("[")&&a.endsWith("]")){let o=a.slice(1,-1),i=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),i=!0),o.startsWith("...")&&(o=o.substring(3),n=!0),o.startsWith("[")||o.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('".concat(o,"')."));if(o.startsWith("."))throw Error("Segment names may not start with erroneous periods ('".concat(o,"')."));function l(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('".concat(e,"' !== '").concat(r,"')."));t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'.concat(r,'" repeat within a single dynamic path'));if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw Error('You cannot have the slug names "'.concat(e,'" and "').concat(r,'" differ only by non-word symbols within a single dynamic path'))}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName,']" and "').concat(e[0],'" ).'));l(this.optionalRestSlugName,o),this.optionalRestSlugName=o,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName,']]" and "').concat(e[0],'").'));l(this.restSlugName,o),this.restSlugName=o,a="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'.concat(e[0],'").'));l(this.slugName,o),this.slugName=o,a="[]"}}this.children.has(a)||this.children.set(a,new r),this.children.get(a)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}},86949:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0,t.default=()=>r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let a=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(a,e))}}if(a){var s;null==t||null==(s=t.mountedInstances)||s.add(e.children),l()}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null};var n=(0,r(91598).Z)(r(67294));let a=!1,o=a?()=>{}:n.useLayoutEffect,i=a?()=>{}:n.useEffect},670:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){let t,r=!1;return function(){for(var n=arguments.length,a=Array(n),o=0;oa.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return"".concat(e,"//").concat(t).concat(r?":"+r:"")}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function u(e,t){return c.apply(this,arguments)}function c(){return(c=n(function*(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:yield u(t.Component,t.ctx)}:{};let n=yield e.getInitialProps(t);if(r&&s(r))return n;if(!n){let a='"'.concat(l(e),'.getInitialProps()" should resolve to an object. But found "').concat(n,'" instead.');throw Error(a)}return n})).apply(this,arguments)}t.isAbsoluteUrl=o;let d="undefined"!=typeof performance;t.SP=d;let f=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);t.ST=f,t.DecodeError=class extends Error{},t.NormalizeError=class extends Error{},t.PageNotFoundError=class extends Error{constructor(e){super(),this.code="ENOENT",this.message="Cannot find module for page: ".concat(e)}},t.MissingStaticPage=class extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: ".concat(e," ").concat(t)}},t.MiddlewareNotFoundError=class extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},57238:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warnOnce=void 0;let r=e=>{};t.warnOnce=r},74329:function(e,t){"use strict";function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){a+=e[o++];continue}break}if(!a)throw TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:a}),r=o;continue}if("("===n){var l=1,s="",o=r+1;if("?"===e[o])throw TypeError('Pattern cannot start with "?" at '+o);for(;o-1:void 0===_;a||(p+="(?:"+f+"(?="+d+"))?"),P||(p+="(?="+f+"|"+d+")")}return RegExp(p,i(r))}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n=0?n="back-forward-cache":r&&(n=document.prerendering||d()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(a){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},m=function(e,t,r,n){var a,o;return function(i){var l;t.value>=0&&(i||n)&&((o=t.value-(a||0))||void 0===a)&&(a=t.value,t.delta=o,t.rating=(l=t.value)>r[1]?"poor":l>r[0]?"needs-improvement":"good",e(t))}},g=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},v=function(){h(function(e){g=e.timeStamp},!0)},_=function(){return g<0&&(g=y(),v(),u(function(){setTimeout(function(){g=y(),v()},0)})),{get firstHiddenTime(){return g}}},P=function(e,t){t=t||{};var r,n=[1800,3e3],a=_(),o=f("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime-1&&e(t)},o=f("CLS",0),i=0,l=[],s=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=l[0],r=l[l.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,l.push(e)):(i=e.value,l=[e]),i>o.value&&(o.value=i,o.entries=l,n())}})},c=p("layout-shift",s);c&&(n=m(a,o,r,t.reportAllChanges),h(function(){s(c.takeRecords()),n(!0)}),u(function(){i=0,E=-1,n=m(a,o=f("CLS",0),r,t.reportAllChanges)}))},x={passive:!0,capture:!0},w=new Date,C=function(e,t){n||(n=t,a=e,o=new Date,j(removeEventListener),O())},O=function(){if(a>=0&&a1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){C(a,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,x),removeEventListener("pointercancel",r,x)},addEventListener("pointerup",t,x),addEventListener("pointercancel",r,x)):C(a,e)}},j=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,R,x)})},A=function(e,t){t=t||{};var r,o=[100,300],l=_(),s=f("FID"),c=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};q[n.id]=n,U.push(n)}U.sort(function(e,t){return t.latency-e.latency}),U.splice(10).forEach(function(e){delete q[e.id]})}},H=function(e,t){t=t||{};var r=[200,500];k();var n,a=f("INP"),o=function(e){e.forEach(function(e){e.interactionId&&F(e),"first-input"!==e.entryType||U.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||F(e)});var t=U[Math.min(U.length-1,Math.floor(B()/50))];t&&t.latency!==a.value&&(a.value=t.latency,a.entries=t.entries,n())},i=p("event",o,{durationThreshold:t.durationThreshold||40});n=m(e,a,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){o(i.takeRecords()),a.value<0&&B()>0&&(a.value=0,a.entries=[]),n(!0)}),u(function(){U=[],D=N(),n=m(e,a=f("INP"),r,t.reportAllChanges)}))},W={},Z=function(e,t){t=t||{};var r,n=[2500,4e3],a=_(),o=f("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-d();nperformance.now())return;n.entries=[o],a(!0),u(function(){(a=m(e,n=f("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},80676:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.getProperError=function(e){return a(e)?e:Error(n.isPlainObject(e)?JSON.stringify(e):e+"")};var n=r(82849);function a(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}}},function(e){e.O(0,[9774],function(){return e(e.s=21783)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/_app-dafcce2e4add55ad.js b/static/web/_next/static/chunks/pages/_app-4b83673271c4615f.js similarity index 60% rename from static/web/_next/static/chunks/pages/_app-dafcce2e4add55ad.js rename to static/web/_next/static/chunks/pages/_app-4b83673271c4615f.js index 05be4de2c..cae393a7f 100644 --- a/static/web/_next/static/chunks/pages/_app-dafcce2e4add55ad.js +++ b/static/web/_next/static/chunks/pages/_app-4b83673271c4615f.js @@ -2,7 +2,7 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/ !function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},93645:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function o(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19013),o=n(13882);function i(e,t){return(0,o.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59910),o=n(13882),i=n(93645);function a(e,t,n){(0,o.Z)(2,arguments);var a=(0,r.Z)(e,t)/1e3;return(0,i.u)(null==n?void 0:n.roundingMethod)(a)}},19013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(13882);function o(e){return(o="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)}function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===o(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),l=n(81866);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tu))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h-1&&e%1==0&&e-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(r){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,n){var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,c=l?l.isBuffer:void 0;e.exports=c||o},18446:function(e,t,n){var r=n(90939);e.exports=function(e,t){return r(e,t)}},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},36719:function(e,t,n){var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},3674:function(e,t,n){var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(6462)}])},50738:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var r=n(85893);n(67294);var o=n(94184),i=n.n(o),a=n(29403),l=n.n(a);let c=e=>{let{variant:t="simple"}=e,n=i()(l().root,{[l().simple]:"simple"===t,[l().contrast]:"contrast"===t});return(0,r.jsx)("div",{className:n,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.68623352050781 104.46271514892578",className:"logo-svg",children:(0,r.jsx)("g",{transform:"matrix(1 0 0 1 -37.08803939819336 -18.940391540527344)",children:(0,r.jsx)("g",{children:(0,r.jsxs)("g",{children:[(0,r.jsx)("g",{children:(0,r.jsxs)("g",{transform:"matrix(1.0445680396949917 0 0 1.0445679172996596 36.34559138380523 18.877718021903796)",children:[(0,r.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient120",gradientTransform:"rotate(-90 .5 .5)",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#1f2022",stopOpacity:"1"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#635e69",stopOpacity:"1"})]})}),(0,r.jsx)("path",{fill:"url(#gradient120)",d:"M91.5 75.35Q93.05 71.15 91.65 67.7 90.35 64.5 86.65 62.3 83.2 60.3 78.3 59.4 73.85 58.6 68.6 58.7 63.55 58.85 58.8 59.8 54.25 60.75 50.8 62.2 47.4 63.65 45.5 65.35 43.6 67.15 43.5 69.05 43.35 71.3 45.8 73.9 48.05 76.3 52.1 78.6 56.15 80.9 61.05 82.55 66.3 84.3 71.4 84.8 74.7 85.1 77.55 84.9 80.65 84.6 83.3 83.6 86.15 82.5 88.15 80.55 90.4 78.4 91.5 75.35M70.6 67.5Q72.3 68.4 73.1 69.7 73.9 71.15 73.45 73 73.1 74.3 72.3 75.25 71.55 76.1 70.3 76.6 69.25 77.05 67.75 77.25 66.3 77.4 64.85 77.3 62.3 77.15 59.25 76.3 56.6 75.5 54.15 74.3 51.9 73.2 50.45 72 49.05 70.75 49.1 69.8 49.2 69 50.25 68.25 51.3 67.55 53.15 67 55 66.4 57.25 66.1 59.8 65.8 62.1 65.8 64.65 65.85 66.7 66.2 68.9 66.65 70.6 67.5Z"})]}),(0,r.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient121",gradientTransform:"rotate(-180 .5 .5)",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#2087e2",stopOpacity:"1"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#b63fff",stopOpacity:"1"})]})}),(0,r.jsx)("path",{fill:"url(#gradient121)",d:"M66.6 15.05Q66.4 9.65 63.9 6.05 61.25 2.1 56.1 0.65 54.95 0.3 53.65 0.15 52.5 0 51.3 0.1 50.2 0.1 49.1 0.35 48.15 0.55 47 1 43.3 2.45 40.3 6.1 37.5 9.4 35.5 14.3 33.75 18.45 32.7 23.4 31.7 28.05 31.35 32.85 31.05 37.2 31.3 41.2 31.6 45.15 32.4 48.35 34 54.9 37.3 56.4 37.6 56.55 37.9 56.65L39.2 56.85Q39.45 56.85 39.95 56.8 42.05 56.6 44.7 55.05 47.25 53.5 50.05 50.8 53.05 47.9 55.85 44.05 58.8 40.05 61.1 35.6 63.8 30.35 65.25 25.3 66.75 19.75 66.6 15.05M47.55 23.15Q48.05 23.25 48.4 23.4 52.45 24.8 52.55 29.85 52.6 34 50 39.4 47.85 43.9 44.85 47.3 42.05 50.5 40.15 50.7L39.9 50.75 39.45 50.7 39.2 50.6Q37.8 49.95 37.25 46.35 36.7 42.7 37.3 38 37.95 32.75 39.75 28.8 41.9 24.1 45.05 23.25 45.6 23.1 45.85 23.1 46.25 23.05 46.65 23.05 47.05 23.05 47.55 23.15Z"})]}),(0,r.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient122",gradientTransform:"rotate(-90 .5 .5)",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#100f0f",stopOpacity:"1"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,r.jsx)("path",{fill:"url(#gradient122)",d:"M2.7 33.6Q2.1 34.4 1.7 35.35 1.25 36.5 1.05 37.7 0 42.6 2.2 47.2 4 51 8 54.35 11.55 57.3 16 59.15 20.5 61 23.85 60.85 24.5 60.85 25.25 60.7 26 60.55 26.5 60.3 27 60.05 27.45 59.65 27.9 59.25 28.15 58.75 29.35 56.45 27.5 51.65 25.6 47 21.75 42.1 17.75 37 13.4 34.05 8.7 30.9 5.45 31.7 4.65 31.9 3.95 32.4 3.25 32.85 2.7 33.6M10.1 43.55Q10.35 43.1 10.6 42.85 10.85 42.6 11.2 42.4 11.6 42.25 11.9 42.2 13.5 41.9 15.95 43.6 18.15 45.05 20.35 47.7 22.35 50.1 23.55 52.4 24.7 54.75 24.25 55.7 24.15 55.9 24 56 23.85 56.2 23.65 56.25 23.55 56.35 23.25 56.4L22.7 56.5Q21.1 56.6 18.55 55.6 16.05 54.6 13.85 52.95 11.5 51.2 10.35 49.15 9.05 46.8 9.75 44.45 9.9 43.95 10.1 43.55Z"})]}),(0,r.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient123",gradientTransform:"rotate(-180 .5 .5)",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#222020",stopOpacity:"1"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,r.jsx)("path",{fill:"url(#gradient123)",d:"M34.95 74.2L34.75 74.2Q33.2 74.15 31.9 75.25 30.7 76.3 29.85 78.25 29.1 80 28.8 82.2 28.5 84.4 28.7 86.65 29.1 91.4 31.5 94.7 34.3 98.5 39.3 99.7L39.4 99.7 39.7 99.8 39.85 99.8Q45.3 100.85 47.15 97.75 48 96.3 48 94.05 47.95 91.9 47.2 89.35 46.45 86.75 45.1 84.15 43.75 81.5 42.05 79.35 40.25 77.1 38.45 75.75 36.55 74.35 34.95 74.2M33.55 80.4Q34.35 78.2 35.6 78.3L35.65 78.3Q36.9 78.45 38.6 80.9 40.3 83.35 41.15 86.05 42.1 89 41.55 90.75 40.9 92.6 38.35 92.25L38.3 92.25 38.25 92.2 38.1 92.2Q35.6 91.7 34.25 89.6 33.1 87.7 32.95 85 32.8 82.35 33.55 80.4Z"})]}),(0,r.jsxs)("g",{transform:"matrix(0.9999999999999999 0 0 1 0 5.684341886080802e-14)",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient124",gradientTransform:"rotate(-180 .5 .5)",children:[" ",(0,r.jsx)("stop",{offset:"0",stopColor:"#1e1c1c",stopOpacity:"1"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#49261F",stopOpacity:"1"})]})}),(0,r.jsx)("path",{fill:"url(#gradient124)",d:"M22.7 69.65Q22.25 69.3 21.6 69.05 20.95 68.8 20.25 68.7 19.6 68.55 18.85 68.5 16.7 68.45 14.65 69.15 12.65 69.8 11.4 71.1 10.15 72.5 10.2 74.2 10.25 76.05 11.95 78.2 12.4 78.75 13.05 79.4 13.55 79.9 14.2 80.3 14.7 80.6 15.3 80.85 16 81.1 16.4 81.1 18.2 81.35 19.9 80.35 21.55 79.4 22.75 77.65 24 75.85 24.3 73.95 24.6 71.85 23.55 70.5 23.15 70 22.7 69.65M21.7 71.7Q22.15 72.3 21.9 73.3 21.7 74.25 21 75.25 20.3 76.2 19.4 76.75 18.45 77.35 17.55 77.25L17 77.15Q16.7 77.05 16.45 76.85 16.25 76.75 15.9 76.45 15.7 76.25 15.4 75.9 14.5 74.75 14.7 73.8 14.8 72.95 15.75 72.3 16.6 71.7 17.8 71.4 19 71.1 20.1 71.15L20.65 71.2 21.1 71.3Q21.3 71.4 21.45 71.5L21.7 71.7Z"})]}),(0,r.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient125",gradientTransform:"rotate(-360 .5 .5)",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:"0.5"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#FFFFFF",stopOpacity:"0.2"})]})}),(0,r.jsx)("path",{fill:"url(#gradient125)",d:"M52.6 19.25Q59.6 19.25 66.2 20.95 66.7 17.8 66.6 15.05 66.4 9.65 63.9 6.05 61.25 2.1 56.1 0.65 54.95 0.3 53.65 0.15 52.5 0 51.3 0.1 50.2 0.1 49.1 0.35 48.15 0.55 47 1 43.3 2.45 40.3 6.1 37.5 9.4 35.5 14.3 33.85 18.3 32.8 22.85 42.25 19.25 52.6 19.25Z"})]}),(0,r.jsxs)("g",{transform:"matrix(1 0 0 1 0 0)",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"0",y1:"0",x2:"0",y2:"1",id:"gradient126",gradientTransform:"rotate(-360 .5 .5)",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:"0.5"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#FFFFFF",stopOpacity:"0.2"})]})}),(0,r.jsx)("path",{fill:"url(#gradient126)",d:"M1.05 37.7Q0 42.6 2.2 47.2 2.95 48.8 4.05 50.25 7.55 41.65 14.4 34.75 14 34.45 13.4 34.05 8.7 30.9 5.45 31.7 4.65 31.9 3.95 32.4 3.25 32.85 2.7 33.6 2.1 34.4 1.7 35.35 1.25 36.5 1.05 37.7Z"})]})]})}),(0,r.jsx)("g",{transform:"matrix(1.219512230276127 0 0 1.2195122143630526 32.82519274395008 88.56945194723018)",children:(0,r.jsx)("path",{fill:"#000000",fillOpacity:"1",d:""})})]})})})})})}},39664:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var r=n(85893);n(67294);var o=n(94184),i=n.n(o);let a=e=>{let{status:t}=e,{type:n,icon:o,message:a}=t||{},l=i()({"status-container":!0,["status-".concat(n)]:n,empty:!a});return(0,r.jsxs)("span",{className:l,children:[o?(0,r.jsx)("span",{className:"status-icon",children:o}):null,a?(0,r.jsx)("span",{className:"status-message",children:a}):null]})}},40117:function(e,t,n){"use strict";n.d(t,{mG:function(){return en},A8:function(){return et},Kx:function(){return ee},Sk:function(){return er},xA:function(){return eo},nv:function(){return ei}});var r=n(85893),o=n(67294),i=n(94184),a=n.n(i),l=n(69677),c=n(87462),s=n(4942),u=n(71002),f=n(97685),d=n(80882),p=n(1413),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},m=n(42135),v=function(e,t){return o.createElement(m.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:t,icon:h}))};v.displayName="UpOutlined";var g=o.forwardRef(v),y=n(45987),b=n(15105),w=n(8410),x=n(42550),E=n(15671),C=n(43144);function Z(){return"function"==typeof BigInt}function S(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function k(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function N(e){var t=String(e);if(k(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return(null==r?void 0:r[1])&&(n+=r[1].length),n}return t.includes(".")&&T(t)?t.length-t.indexOf(".")-1:0}function _(e){var t=String(e);if(k(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Z()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":_(this.number):this.origin}}]),e}(),R=function(){function e(t){if((0,E.Z)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!t&&0!==t||!String(t).trim()){this.empty=!0;return}if(this.origin=String(t),"-"===t){this.nan=!0;return}var n=t;if(k(n)&&(n=Number(n)),T(n="string"==typeof n?n:_(n))){var r=S(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return(0,C.Z)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){return BigInt("".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0")))}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=S((this.alignDecimal(r)+n.alignDecimal(r)).toString()),i=o.negativeStr,a=o.trimStr,l="".concat(i).concat(a.padStart(r+1,"0"));return new e("".concat(l.slice(0,-r),".").concat(l.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return 0>=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":S("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function A(e){return Z()?new R(e):new P(e)}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=S(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?M(A(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var j=n(31131);function L(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,l=e.downDisabled,u=e.onStep,f=o.useRef(),d=o.useRef();d.current=u;var p=function(e,t){e.preventDefault(),d.current(t),f.current=setTimeout(function e(){d.current(t),f.current=setTimeout(e,200)},600)},h=function(){clearTimeout(f.current)};if(o.useEffect(function(){return h},[]),(0,j.Z)())return null;var m="".concat(t,"-handler"),v=a()(m,"".concat(m,"-up"),(0,s.Z)({},"".concat(m,"-up-disabled"),i)),g=a()(m,"".concat(m,"-down"),(0,s.Z)({},"".concat(m,"-down-disabled"),l)),y={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return o.createElement("div",{className:"".concat(m,"-wrap")},o.createElement("span",(0,c.Z)({},y,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:v}),n||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),o.createElement("span",(0,c.Z)({},y,{onMouseDown:function(e){p(e,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:g}),r||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var I=n(80334),F=n(75164),V=function(){var e=(0,o.useRef)(0),t=function(){F.Z.cancel(e.current)};return(0,o.useEffect)(function(){return t},[]),function(n){t(),e.current=(0,F.Z)(function(){n()})}},D=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],z=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},U=function(e){var t=A(e);return t.isInvalidate()?null:t},B=o.forwardRef(function(e,t){var n,r,i,l=e.prefixCls,d=void 0===l?"rc-input-number":l,p=e.className,h=e.style,m=e.min,v=e.max,g=e.step,E=void 0===g?1:g,C=e.defaultValue,Z=e.value,S=e.disabled,k=e.readOnly,P=e.upHandler,R=e.downHandler,j=e.keyboard,F=e.controls,B=e.stringMode,H=e.parser,W=e.formatter,q=e.precision,$=e.decimalSeparator,K=e.onChange,G=e.onInput,Y=e.onPressEnter,X=e.onStep,Q=(0,y.Z)(e,D),J="".concat(d,"-input"),ee=o.useRef(null),et=o.useState(!1),en=(0,f.Z)(et,2),er=en[0],eo=en[1],ei=o.useRef(!1),ea=o.useRef(!1),el=o.useRef(!1),ec=o.useState(function(){return A(null!=Z?Z:C)}),es=(0,f.Z)(ec,2),eu=es[0],ef=es[1],ed=o.useCallback(function(e,t){return t?void 0:q>=0?q:Math.max(N(e),N(E))},[q,E]),ep=o.useCallback(function(e){var t=String(e);if(H)return H(t);var n=t;return $&&(n=n.replace($,".")),n.replace(/[^\w.-]+/g,"")},[H,$]),eh=o.useRef(""),em=o.useCallback(function(e,t){if(W)return W(e,{userTyping:t,input:String(eh.current)});var n="number"==typeof e?_(e):e;if(!t){var r=ed(n,t);T(n)&&($||r>=0)&&(n=M(n,$||".",r))}return n},[W,ed,$]),ev=o.useState(function(){var e=null!=C?C:Z;return eu.isInvalidate()&&["string","number"].includes((0,u.Z)(e))?Number.isNaN(e)?"":e:em(eu.toString(),!1)}),eg=(0,f.Z)(ev,2),ey=eg[0],eb=eg[1];function ew(e,t){eb(em(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}eh.current=ey;var ex=o.useMemo(function(){return U(v)},[v,q]),eE=o.useMemo(function(){return U(m)},[m,q]),eC=o.useMemo(function(){return!(!ex||!eu||eu.isInvalidate())&&ex.lessEquals(eu)},[ex,eu]),eZ=o.useMemo(function(){return!(!eE||!eu||eu.isInvalidate())&&eu.lessEquals(eE)},[eE,eu]),eS=(n=ee.current,r=(0,o.useRef)(null),[function(){try{var e=n.selectionStart,t=n.selectionEnd,o=n.value,i=o.substring(0,e),a=o.substring(t);r.current={start:e,end:t,value:o,beforeTxt:i,afterTxt:a}}catch(l){}},function(){if(n&&r.current&&er)try{var e=n.value,t=r.current,o=t.beforeTxt,i=t.afterTxt,a=t.start,l=e.length;if(e.endsWith(i))l=e.length-r.current.afterTxt.length;else if(e.startsWith(o))l=o.length;else{var c=o[a-1],s=e.indexOf(c,a-1);-1!==s&&(l=s+1)}n.setSelectionRange(l,l)}catch(u){(0,I.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(u.message))}}]),ek=(0,f.Z)(eS,2),eN=ek[0],e_=ek[1],eT=function(e){return ex&&!e.lessEquals(ex)?ex:eE&&!eE.lessEquals(e)?eE:null},eO=function(e){return!eT(e)},eP=function(e,t){var n=e,r=eO(n)||n.isEmpty();if(n.isEmpty()||t||(n=eT(n)||n,r=!0),!k&&!S&&r){var o,i=n.toString(),a=ed(i,t);return a>=0&&!eO(n=A(M(i,".",a)))&&(n=A(M(i,".",a,!0))),n.equals(eu)||(o=n,void 0===Z&&ef(o),null==K||K(n.isEmpty()?null:z(B,n)),void 0===Z&&ew(n,t)),n}return eu},eR=V(),eA=function e(t){if(eN(),eb(t),!ea.current){var n=A(ep(t));n.isNaN()||eP(n,!0)}null==G||G(t),eR(function(){var n=t;H||(n=t.replace(/。/g,".")),n!==t&&e(n)})},eM=function(){ea.current=!0},ej=function(){ea.current=!1,eA(ee.current.value)},eL=function(e){eA(e.target.value)},eI=function(e){if((!e||!eC)&&(e||!eZ)){ei.current=!1;var t,n=A(el.current?O(E):E);e||(n=n.negate());var r=eP((eu||A(0)).add(n.toString()),!1);null==X||X(z(B,r),{offset:el.current?O(E):E,type:e?"up":"down"}),null===(t=ee.current)||void 0===t||t.focus()}},eF=function(e){var t=A(ep(ey)),n=t;n=t.isNaN()?eu:eP(t,e),void 0!==Z?ew(eu,!1):n.isNaN()||ew(n,!1)},eV=function(e){var t=e.which,n=e.shiftKey;ei.current=!0,n?el.current=!0:el.current=!1,t===b.Z.ENTER&&(ea.current||(ei.current=!1),eF(!1),null==Y||Y(e)),!1!==j&&!ea.current&&[b.Z.UP,b.Z.DOWN].includes(t)&&(eI(b.Z.UP===t),e.preventDefault())},eD=function(){ei.current=!1,el.current=!1},ez=function(){eF(!1),eo(!1),ei.current=!1};return(0,w.o)(function(){eu.isInvalidate()||ew(eu,!1)},[q]),(0,w.o)(function(){var e=A(Z);ef(e);var t=A(ep(ey));e.equals(t)&&ei.current&&!W||ew(e,ei.current)},[Z]),(0,w.o)(function(){W&&e_()},[ey]),o.createElement("div",{className:a()(d,p,(i={},(0,s.Z)(i,"".concat(d,"-focused"),er),(0,s.Z)(i,"".concat(d,"-disabled"),S),(0,s.Z)(i,"".concat(d,"-readonly"),k),(0,s.Z)(i,"".concat(d,"-not-a-number"),eu.isNaN()),(0,s.Z)(i,"".concat(d,"-out-of-range"),!eu.isInvalidate()&&!eO(eu)),i)),style:h,onFocus:function(){eo(!0)},onBlur:ez,onKeyDown:eV,onKeyUp:eD,onCompositionStart:eM,onCompositionEnd:ej},(void 0===F||F)&&o.createElement(L,{prefixCls:d,upNode:P,downNode:R,upDisabled:eC,downDisabled:eZ,onStep:eI}),o.createElement("div",{className:"".concat(J,"-wrap")},o.createElement("input",(0,c.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":eu.isInvalidate()?null:eu.toString(),step:E},Q,{ref:(0,x.sQ)(ee,t),className:J,value:ey,onChange:eL,disabled:S,readOnly:k}))))});B.displayName="InputNumber";var H=n(53124),W=n(98866),q=n(97647),$=n(65223),K=n(4173),G=n(96159),Y=n(9708),X=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);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Q=o.forwardRef(function(e,t){var n=o.useContext(H.E_),r=n.getPrefixCls,i=n.direction,l=o.useContext(q.Z),p=o.useState(!1),h=(0,f.Z)(p,2),m=h[0],v=h[1],y=o.useRef(null);o.useImperativeHandle(t,function(){return y.current});var b=e.className,w=e.size,x=e.disabled,E=e.prefixCls,C=e.addonBefore,Z=e.addonAfter,S=e.prefix,k=e.bordered,N=void 0===k||k,_=e.readOnly,T=e.status,O=e.controls,P=X(e,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),R=r("input-number",E),A=(0,K.ri)(R,i),M=A.compactSize,j=A.compactItemClassnames,L=o.createElement(g,{className:"".concat(R,"-handler-up-inner")}),I=o.createElement(d.Z,{className:"".concat(R,"-handler-down-inner")});"object"===(0,u.Z)(O)&&(L=void 0===O.upIcon?L:o.createElement("span",{className:"".concat(R,"-handler-up-inner")},O.upIcon),I=void 0===O.downIcon?I:o.createElement("span",{className:"".concat(R,"-handler-down-inner")},O.downIcon));var F=(0,o.useContext)($.aM),V=F.hasFeedback,D=F.status,z=F.isFormItemInput,U=F.feedbackIcon,Q=(0,Y.F)(D,T),J=M||w||l,ee=o.useContext(W.Z),et=null!=x?x:ee,en=a()((eo={},(0,s.Z)(eo,"".concat(R,"-lg"),"large"===J),(0,s.Z)(eo,"".concat(R,"-sm"),"small"===J),(0,s.Z)(eo,"".concat(R,"-rtl"),"rtl"===i),(0,s.Z)(eo,"".concat(R,"-borderless"),!N),(0,s.Z)(eo,"".concat(R,"-in-form-item"),z),eo),(0,Y.Z)(R,Q),j,b),er=o.createElement(B,(0,c.Z)({ref:y,disabled:et,className:en,upHandler:L,downHandler:I,prefixCls:R,readOnly:_,controls:"boolean"==typeof O?O:void 0},P));if(null!=S||V){var eo,ei,ea=a()("".concat(R,"-affix-wrapper"),(0,Y.Z)("".concat(R,"-affix-wrapper"),Q,V),(ei={},(0,s.Z)(ei,"".concat(R,"-affix-wrapper-focused"),m),(0,s.Z)(ei,"".concat(R,"-affix-wrapper-disabled"),e.disabled),(0,s.Z)(ei,"".concat(R,"-affix-wrapper-sm"),"small"===l),(0,s.Z)(ei,"".concat(R,"-affix-wrapper-lg"),"large"===l),(0,s.Z)(ei,"".concat(R,"-affix-wrapper-rtl"),"rtl"===i),(0,s.Z)(ei,"".concat(R,"-affix-wrapper-readonly"),_),(0,s.Z)(ei,"".concat(R,"-affix-wrapper-borderless"),!N),(0,s.Z)(ei,"".concat(b),!(C||Z)&&b),ei));er=o.createElement("div",{className:ea,style:e.style,onMouseUp:function(){return y.current.focus()}},S&&o.createElement("span",{className:"".concat(R,"-prefix")},S),(0,G.Tm)(er,{style:null,value:e.value,onFocus:function(t){var n;v(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(t){var n;v(!1),null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),V&&o.createElement("span",{className:"".concat(R,"-suffix")},U))}if(null!=C||null!=Z){var el,ec="".concat(R,"-group"),es="".concat(ec,"-addon"),eu=C?o.createElement("div",{className:es},C):null,ef=Z?o.createElement("div",{className:es},Z):null,ed=a()("".concat(R,"-wrapper"),ec,(0,s.Z)({},"".concat(ec,"-rtl"),"rtl"===i)),ep=a()("".concat(R,"-group-wrapper"),(el={},(0,s.Z)(el,"".concat(R,"-group-wrapper-sm"),"small"===l),(0,s.Z)(el,"".concat(R,"-group-wrapper-lg"),"large"===l),(0,s.Z)(el,"".concat(R,"-group-wrapper-rtl"),"rtl"===i),el),(0,Y.Z)("".concat(R,"-group-wrapper"),Q,V),b);er=o.createElement("div",{className:ep,style:e.style},o.createElement("div",{className:ed},eu&&o.createElement($.Ux,{status:!0,override:!0},eu),(0,G.Tm)(er,{style:null,disabled:et}),ef&&o.createElement($.Ux,{status:!0,override:!0},ef)))}return er}),J=n(39664);let ee="default",et="password",en="numeric",er="textarea",eo="url",ei=e=>{let{className:t,disabled:n,fieldName:o,label:i,maxLength:c,onBlur:s,onChange:u,onPressEnter:f,pattern:d,placeholder:p,required:h,status:m,tip:v,type:g,useTrim:y,value:b}=e,w=e=>{if(u){let t=g===en?e:e.target.value;u({fieldName:o,value:y?t.trim():t})}},x=e=>{let t=e.target.value;s&&s({value:t})},E=()=>{f&&f()},C=l.Z,Z={};g===er?(C=l.Z.TextArea,Z={autoSize:!0}):g===et?(C=l.Z.Password,Z={visibilityToggle:!0}):g===en?(C=Q,Z={type:"number",min:1,max:10**c-1}):g===eo&&(Z={type:"url",pattern:d});let S="field-".concat(o),{type:k}=m||{},N=a()({"formfield-container":!0,"textfield-container":!0,["type-".concat(g)]:!0,required:h,["status-".concat(k)]:m});return(0,r.jsxs)("div",{className:N,children:[i?(0,r.jsx)("div",{className:"label-side",children:(0,r.jsx)("label",{htmlFor:S,className:"formfield-label",children:i})}):null,(0,r.jsxs)("div",{className:"input-side",children:[(0,r.jsx)("div",{className:"input-group",children:(0,r.jsx)(C,{id:S,className:"field ".concat(t," ").concat(S),...Z,...g!==en&&{allowClear:!0},placeholder:p,maxLength:c,onChange:w,onBlur:x,onPressEnter:E,disabled:n,value:b})}),(0,r.jsx)(J.E,{status:m}),(0,r.jsx)("p",{className:"field-tip",children:v})]})]})};ei.defaultProps={className:"",disabled:!1,label:"",maxLength:255,placeholder:"",required:!1,status:null,tip:"",type:ee,value:"",pattern:"",useTrim:!1,useTrimLead:!1,onSubmit(){},onBlur(){},onChange(){},onPressEnter(){}}},10135:function(e,t,n){"use strict";n.d(t,{$7:function(){return v},Kx:function(){return p},Sk:function(){return h},xA:function(){return m}});var r=n(85893),o=n(71577),i=n(94184),a=n.n(i),l=n(67294),c=n(90745),s=n(41983),u=n(99519),f=n(39664),d=n(40117);let p="default",h="textarea",m="url",v=e=>{let{apiPath:t,configPath:n="",initialValue:i,useTrim:p,useTrimLead:h,...m}=e,[v,g]=(0,l.useState)(null),[y,b]=(0,l.useState)(!1),w=(0,l.useContext)(u.aC),{setFieldInConfigState:x}=w||{},E=null,{fieldName:C,required:Z,tip:S,status:k,value:N,onChange:_,onSubmit:T}=m,O=()=>{g(null),b(!1),clearTimeout(E),E=null};(0,l.useEffect)(()=>{Z&&(""===N||null===N)||N===i?b(!1):(O(),b(!0))},[N]);let P=e=>{let{fieldName:t,value:n}=e;if(_){let r=n;p?r=n.trim():h&&(r=n.replace(/^\s+/g,"")),_({fieldName:t,value:r})}},R=e=>{let{value:t}=e;_&&Z&&""===t&&_({fieldName:C,value:i})},A=async()=>{(Z&&""!==N||N!==i)&&(g((0,s.kg)(s.Jk)),await (0,c.Si)({apiPath:t,data:{value:N},onSuccess(){x({fieldName:C,value:N,path:n}),g((0,s.kg)(s.zv))},onError(e){g((0,s.kg)(s.Un,"There was an error: ".concat(e)))}}),E=setTimeout(O,c.sI),T&&T())},M=a()({"textfield-with-submit-container":!0,submittable:y});return(0,r.jsxs)("div",{className:M,children:[(0,r.jsx)("div",{className:"textfield-component",children:(0,r.jsx)(d.nv,{...m,onSubmit:null,onBlur:R,onChange:P})}),(0,r.jsxs)("div",{className:"formfield-container lower-container",children:[(0,r.jsx)("p",{className:"label-spacer"}),(0,r.jsxs)("div",{className:"lower-content",children:[(0,r.jsx)("div",{className:"field-tip",children:S}),(0,r.jsx)(f.E,{status:k||v}),(0,r.jsx)("div",{className:"update-button-container",children:(0,r.jsx)(o.Z,{type:"primary",size:"small",className:"submit-button",onClick:A,disabled:!y,children:"Update"})})]})]})]})};v.defaultProps={configPath:"",initialValue:""}},10227:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){return!1},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31551:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(92648).Z,o=n(17273).Z,i=r(n(67294)),a=n(41003),l=n(54465),c=n(72692),s=n(48245),u=n(69246),f=n(10227),d=n(33468);let p={};function h(e,t,n,r){if(!e||!a.isLocalURL(t))return;Promise.resolve(e.prefetch(t,n,r)).catch(e=>{});let o=r&&void 0!==r.locale?r.locale:e&&e.locale;p[t+"%"+n+(o?"%"+o:"")]=!0}let m=i.default.forwardRef(function(e,t){let n,r;let{href:m,as:v,children:g,prefetch:y,passHref:b,replace:w,shallow:x,scroll:E,locale:C,onClick:Z,onMouseEnter:S,onTouchStart:k,legacyBehavior:N=!0!==Boolean(!0)}=e,_=o(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=g,N&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let T=!1!==y,O=i.default.useContext(c.RouterContext),P=i.default.useContext(s.AppRouterContext);P&&(O=P);let{href:R,as:A}=i.default.useMemo(()=>{let[e,t]=a.resolveHref(O,m,!0);return{href:e,as:v?a.resolveHref(O,v):t||e}},[O,m,v]),M=i.default.useRef(R),j=i.default.useRef(A);N&&(r=i.default.Children.only(n));let L=N?r&&"object"==typeof r&&r.ref:t,[I,F,V]=u.useIntersection({rootMargin:"200px"}),D=i.default.useCallback(e=>{(j.current!==A||M.current!==R)&&(V(),j.current=A,M.current=R),I(e),L&&("function"==typeof L?L(e):"object"==typeof L&&(L.current=e))},[A,L,R,V,I]);i.default.useEffect(()=>{let e=F&&T&&a.isLocalURL(R),t=void 0!==C?C:O&&O.locale,n=p[R+"%"+A+(t?"%"+t:"")];e&&!n&&h(O,R,A,{locale:t})},[A,R,F,C,T,O]);let z={ref:D,onClick(e){N||"function"!=typeof Z||Z(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,l,c,s,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!a.isLocalURL(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,locale:s,scroll:c}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};u?i.default.startTransition(h):h()}(e,O,R,A,w,x,E,C,Boolean(P),T)},onMouseEnter(e){N||"function"!=typeof S||S(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),!(!T&&P)&&a.isLocalURL(R)&&h(O,R,A,{priority:!0})},onTouchStart(e){N||"function"!=typeof k||k(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),!(!T&&P)&&a.isLocalURL(R)&&h(O,R,A,{priority:!0})}};if(!N||b||"a"===r.type&&!("href"in r.props)){let U=void 0!==C?C:O&&O.locale,B=O&&O.isLocaleDomain&&f.getDomainLocale(A,U,O.locales,O.domainLocales);z.href=B||d.addBasePath(l.addLocale(A,U,O&&O.defaultLocale))}return N?i.default.cloneElement(r,z):i.default.createElement("a",Object.assign({},_,z),n)});t.default=m,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:n,disabled:c}=e,s=c||!i,[u,f]=r.useState(!1),[d,p]=r.useState(null);r.useEffect(()=>{if(i){if(!s&&!u&&d&&d.tagName){let e=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let t=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);t>-1&&l.splice(t,1)}}}(d,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return e}}else if(!u){let r=o.requestIdleCallback(()=>f(!0));return()=>o.cancelIdleCallback(r)}},[d,s,n,t,u]);let h=r.useCallback(()=>{f(!1)},[]);return[p,u,h]};var r=n(67294),o=n(44686);let i="function"==typeof IntersectionObserver,a=new Map,l=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48245:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var r=(0,n(92648).Z)(n(67294));let o=r.default.createContext(null);t.AppRouterContext=o;let i=r.default.createContext(null);t.LayoutRouterContext=i;let a=r.default.createContext(null);t.GlobalLayoutRouterContext=a;let l=r.default.createContext(null);t.TemplateContext=l},6462:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eh}});var r=n(85893);n(83432),n(57151),n(48339),n(43191),n(33614);var o=n(11163),i=n(4480),a=n(67294),l=n(99519),c=n(82661),s=n(45697),u=n.n(s),f=n(41664),d=n.n(f),p=n(9008),h=n.n(p),m=n(11699),v=n(97183),g=n(66516),y=n(14670),b=n(84485),w=n(55241),x=n(26713),E=n(94199),C=n(71577),Z=n(1413),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},k=n(42135),N=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:S}))};N.displayName="PlayCircleFilled";var _=a.forwardRef(N),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-square",theme:"filled"},O=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:T}))};O.displayName="MinusSquareFilled";var P=a.forwardRef(O),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},A=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:R}))};A.displayName="HomeOutlined";var M=a.forwardRef(A),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},L=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:j}))};L.displayName="LineChartOutlined";var I=a.forwardRef(L),F=n(38545),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},D=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:V}))};D.displayName="SettingOutlined";var z=a.forwardRef(D),U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},B=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:U}))};B.displayName="ToolOutlined";var H=a.forwardRef(B),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"},q=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:W}))};q.displayName="ExperimentOutlined";var $=a.forwardRef(q),K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},G=function(e,t){return a.createElement(k.Z,(0,Z.Z)((0,Z.Z)({},e),{},{ref:t,icon:K}))};G.displayName="QuestionCircleOutlined";var Y=a.forwardRef(G),X=n(86548),Q=n(94184),J=n.n(Q),ee=n(64777),et=n(70241),en=n(50738),er=n(10135),eo=n(90745),ei=n(69677),ea=n(85402),el=n(41983);let{TextArea:ec}=ei.Z,es=e=>{let{open:t,handleClose:n}=e,[o,i]=(0,a.useState)(""),[l,c]=(0,a.useState)(!1),[s,u]=(0,a.useState)(null);function f(){c(!1),u(null),n()}async function d(){c(!0);try{await (0,ee.rQ)(ee.e_,{data:{value:o},method:"POST",auth:!0}),u(el.zv),setTimeout(f,1e3)}catch(e){console.error(e),u(el.Un)}c(!1)}return(0,r.jsx)(ea.Z,{destroyOnClose:!0,width:600,title:"Post to Followers",open:t,onCancel:n,footer:[(0,r.jsx)(C.Z,{onClick:()=>n(),children:"Cancel"}),(0,r.jsx)(C.Z,{type:"primary",onClick:d,disabled:l||s,loading:l,children:(null==s?void 0:s.toUpperCase())||"Post"})],children:(0,r.jsx)(ec,{placeholder:"Tell the world about your streaming plans...",size:"large",showCount:!0,maxLength:500,style:{height:"150px",width:"100%"},onChange:function(e){i(e.target.value)}})})},eu=e=>{let{children:t}=e,n=(0,a.useContext)(l.aC),{serverConfig:i,online:s,broadcaster:u,versionNumber:f}=n||{},{instanceDetails:p,chatDisabled:Z,federation:S}=i,{enabled:k}=S,[N,T]=(0,a.useState)(""),[O,R]=(0,a.useState)(!1),A=(0,a.useContext)(c.k),j=(0,o.useRouter)(),{route:L}=j||{},{Header:V,Footer:D,Content:U,Sider:B}=v.Z,{SubMenu:W}=g.Z,[q,K]=(0,a.useState)(""),G=async()=>{try{let e=await (0,ee.GR)(f);K(e)}catch(t){console.log("==== error",t)}};(0,a.useEffect)(()=>{G()},[f]),(0,a.useEffect)(()=>{T(p.streamTitle)},[p]);let Q=e=>{let{value:t}=e;T(t)},ei=()=>{R(!0)},ea=J()({"app-container":!0,online:s}),el=()=>{A.setMessage(null)},ec=A.message?(0,r.jsx)(y.Z,{message:A.message,afterClose:el,banner:!0,closable:!0}):null,eu=u?(0,et.wS)((0,m.Z)(new Date,new Date(u.time))):"",ef=s?(0,r.jsx)("img",{src:"/thumbnail.jpg",className:"online-thumbnail",alt:"current thumbnail",width:"1rem"}):null,ed=s?(0,r.jsx)(_,{}):(0,r.jsx)(P,{}),ep=(0,r.jsx)(b.Z.Text,{children:"Thumbnail"}),eh=(0,r.jsxs)("div",{className:"online-status-indicator",children:[(0,r.jsx)("span",{className:"status-label",children:s?"Online ".concat(eu):"Offline"}),(0,r.jsx)("span",{className:"status-icon",children:ed})]}),em=s?(0,r.jsx)(w.Z,{content:ef,title:ep,trigger:"hover",children:eh}):eh;return(0,r.jsxs)(v.Z,{className:ea,children:[(0,r.jsxs)(h(),{children:[(0,r.jsx)("title",{children:"Owncast Admin"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"})]}),(0,r.jsxs)(B,{width:240,className:"side-nav",children:[(0,r.jsxs)("h1",{className:"owncast-title",children:[(0,r.jsx)("span",{className:"logo-container",children:(0,r.jsx)(en.C,{variant:"simple"})}),(0,r.jsx)("span",{className:"title-label",children:"Owncast Admin"})]}),(0,r.jsxs)(g.Z,{defaultSelectedKeys:[L.substring(1)||"home"],defaultOpenKeys:q?["utilities-menu"]:[],mode:"inline",className:"menu-container",children:[(0,r.jsx)(g.Z.Item,{icon:(0,r.jsx)(M,{}),children:(0,r.jsx)(d(),{href:"/admin",children:"Home"})},"home"),(0,r.jsx)(g.Z.Item,{icon:(0,r.jsx)(I,{}),title:"Current stream",children:(0,r.jsx)(d(),{href:"/admin/viewer-info",children:"Viewers"})},"viewer-info"),(0,r.jsxs)(W,{title:"Chat & Users",icon:(0,r.jsx)(F.Z,{}),style:{display:Z?"none":"block"},children:[(0,r.jsx)(g.Z.Item,{title:"Chat utilities",children:(0,r.jsx)(d(),{href:"/admin/chat/messages",children:"Messages"})},"messages"),(0,r.jsx)(g.Z.Item,{title:"Chat utilities",children:(0,r.jsx)(d(),{href:"/admin/chat/users",children:"Users"})},"chat-users")]},"chat-config"),(0,r.jsx)(g.Z.Item,{style:{display:k?"block":"none"},title:"Fediverse followers",icon:(0,r.jsx)("img",{alt:"fediverse icon",src:"/admin/fediverse-white.png",width:"15rem",style:{opacity:.6,position:"relative",top:"-1px"}}),children:(0,r.jsx)(d(),{href:"/admin/federation/followers",children:"Followers"})},"federation-followers"),(0,r.jsxs)(W,{title:"Configuration",icon:(0,r.jsx)(z,{}),children:[(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/config-public-details",children:"General"})},"config-public-details"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/config-server-details",children:"Server Setup"})},"config-server-details"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/config-video",children:"Video"})},"config-video"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/config-chat",children:"Chat"})},"config-chat"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/config-federation",children:"Social"})},"config-federation"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/config-notify",children:"Notifications"})},"config-notify"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/config-storage",children:"S3 Storage"})},"config-storage")]},"configuration"),(0,r.jsxs)(W,{icon:(0,r.jsx)(H,{}),title:"Utilities",children:[(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/hardware-info",children:"Hardware"})},"hardware-info"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/stream-health",children:"Stream Health"})},"stream-health"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/logs",children:"Logs"})},"logs"),(0,r.jsx)(g.Z.Item,{title:"Social Actions",style:{display:k?"block":"none"},children:(0,r.jsx)(d(),{href:"/admin/federation/actions",children:"Social Actions"})},"federation-activities"),(0,r.jsx)(g.Z.Item,{style:{display:q?"block":"none"},children:(0,r.jsx)(d(),{href:"/upgrade",children:"Upgrade to v".concat("".concat(q)||"")})},"upgrade")]},"utilities-menu"),(0,r.jsxs)(W,{icon:(0,r.jsx)($,{}),title:"Integrations",children:[(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/webhooks",children:"Webhooks"})},"webhooks"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/access-tokens",children:"Access Tokens"})},"access-tokens"),(0,r.jsx)(g.Z.Item,{children:(0,r.jsx)(d(),{href:"/admin/actions",children:"External Actions"})},"actions")]},"integrations-menu"),(0,r.jsx)(g.Z.Item,{icon:(0,r.jsx)(Y,{}),title:"Help",children:(0,r.jsx)(d(),{href:"/admin/help",children:"Help"})},"help")]})]}),(0,r.jsxs)(v.Z,{className:"layout-main",children:[(0,r.jsxs)(V,{className:"layout-header",children:[(0,r.jsx)(x.Z,{direction:"horizontal",children:(0,r.jsx)(E.Z,{title:"Compose post to your followers",children:(0,r.jsx)(C.Z,{type:"primary",shape:"circle",icon:(0,r.jsx)(X.Z,{}),size:"large",onClick:ei,style:{display:k?"block":"none"}})})}),(0,r.jsx)("div",{className:"global-stream-title-container",children:(0,r.jsx)(er.$7,{fieldName:"streamTitle",...eo.$t,placeholder:"What are you streaming now",value:N,initialValue:p.streamTitle,onChange:Q})}),(0,r.jsx)(x.Z,{direction:"horizontal",children:em})]}),ec,(0,r.jsx)(U,{className:"main-content-container",children:t}),(0,r.jsx)(D,{className:"footer-container",children:(0,r.jsxs)("a",{href:"https://owncast.online/?source=admin",target:"_blank",rel:"noopener noreferrer",children:["About Owncast v",f]})})]}),(0,r.jsx)(es,{open:O,handleClose:()=>R(!1)})]})};eu.propTypes={children:u().element.isRequired};let ef=e=>{let{Component:t,pageProps:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/main-layout.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/form-textfields.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-socialhandles.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-storage.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-edit-string-tags.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-video-variants.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/config-public-details.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/home.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/chat.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/pages.css"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin/offline-notice.css"}),(0,r.jsx)(l.ZP,{children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(eu,{children:(0,r.jsx)(t,{...n})})})})]})},ed=e=>{let{Component:t,pageProps:n}=e;return(0,r.jsx)("div",{children:(0,r.jsx)(t,{...n})})},ep=e=>{let{Component:t,pageProps:n}=e;(0,a.useEffect)(()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/serviceWorker.js").then(e=>{console.debug("Service Worker registration successful with scope: ",e.scope)},e=>{console.error("Service Worker registration failed: ",e)})})},[]);let l=(0,o.useRouter)();return l.pathname.startsWith("/admin")?(0,r.jsx)(ef,{pageProps:n,Component:t,router:l}):(0,r.jsx)(i.Wh,{children:(0,r.jsx)(ed,{pageProps:n,Component:t,router:l})})};var eh=ep},82661:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(85893),o=n(67294),i=n(45697),a=n.n(i);let l=o.createContext({message:null,setMessage:e=>null}),c=e=>{let{children:t}=e,[n,i]=(0,o.useState)("");return(0,r.jsx)(l.Provider,{value:{message:n,setMessage:i},children:t})};c.propTypes={children:a().element.isRequired},t.Z=c},64777:function(e,t,n){"use strict";n.d(t,{$i:function(){return R},$l:function(){return U},Bu:function(){return g},E8:function(){return j},GC:function(){return w},GR:function(){return q},HP:function(){return M},IO:function(){return _},Kp:function(){return h},Kt:function(){return H},M_:function(){return O},N$:function(){return V},NE:function(){return c},NM:function(){return v},Q_:function(){return s},RB:function(){return y},UJ:function(){return D},WB:function(){return a},WE:function(){return Z},WQ:function(){return C},Wr:function(){return N},XA:function(){return T},Y9:function(){return L},a_:function(){return p},ao:function(){return f},bl:function(){return u},e_:function(){return A},hn:function(){return S},iG:function(){return P},iV:function(){return d},jr:function(){return b},kb:function(){return I},kg:function(){return B},ms:function(){return k},nx:function(){return x},op:function(){return F},qk:function(){return m},rQ:function(){return z},sG:function(){return E}});var r=n(34155);let o=r.env.NEXT_PUBLIC_ADMIN_USERNAME,i=r.env.NEXT_PUBLIC_ADMIN_STREAMKEY,a="/",l="".concat(a,"api/admin/"),c=15e3,s="".concat(l,"status"),u="".concat(l,"serverconfig"),f="".concat(l,"config"),d="".concat(l,"viewersOverTime"),p="".concat(l,"viewers"),h="".concat(l,"chat/clients"),m="".concat(l,"chat/users/disabled"),v="".concat(l,"chat/users/setenabled"),g="".concat(l,"chat/users/ipbans"),y="".concat(l,"chat/users/ipbans/remove"),b="".concat(l,"chat/users/setmoderator"),w="".concat(l,"chat/users/moderators"),x="".concat(l,"hardwarestats"),E="".concat(l,"logs"),C="".concat(l,"logs/warnings"),Z="".concat(l,"chat/messages"),S="/api/admin/chat/messagevisibility",k="".concat(l,"accesstokens"),N="".concat(l,"accesstokens/delete"),_="".concat(l,"accesstokens/create"),T="".concat(l,"webhooks"),O="".concat(l,"webhooks/delete"),P="".concat(l,"webhooks/create"),R="".concat(a,"api/socialplatforms"),A="".concat(l,"federation/send"),M="".concat(l,"followers"),j="".concat(l,"followers/pending"),L="".concat(l,"followers/blocked"),I="".concat(l,"followers/approve"),F="".concat(l,"federation/actions"),V="".concat(l,"metrics/video"),D="".concat(l,"yp/reset");async function z(e,t){let{data:n,method:r="GET",auth:a=!0}=t||{},l={method:r};if(n&&(l.body=JSON.stringify(n)),a&&o&&i){let c=btoa("".concat(o,":").concat(i));l.headers={Authorization:"Basic ".concat(c)},l.mode="cors",l.credentials="include"}try{let s=await fetch(e,l),u=await s.json();if(!s.ok){let f=u.message||"An error has occurred: ".concat(s.status);throw Error(f)}return u}catch(d){return console.error(d),d}}async function U(e,t){let n={method:"GET",auth:!1,...t};return z(e,n)}async function B(e){try{let t=await fetch(e,{referrerPolicy:"no-referrer",referrer:""});if(!t.ok){let n="An error has occured: ".concat(t.status);throw Error(n)}let r=await t.json();return r}catch(o){console.log(o)}return{}}async function H(){return B("https://api.github.com/repos/owncast/owncast/releases/latest")}let W=/^\d+(\.\d+){0,2}$/;async function q(e){let t=await H(),n=t.tag_name;return("v"===n.substr(0,1)&&(n=n.substr(1)),!function(e,t){if(!e||!t||0===e.length||0===t.length)return!1;if(e===t)return!0;if(W.test(e)&&W.test(t)){let n=e.split(".");for(;n.length<3;)n.push("0");let r=t.split(".");for(;r.length<3;)r.push("0");for(let o=0;o<3;o++){let i=parseInt(n[o],10),a=parseInt(r[o],10);if(i!==a)return i>a}return!0}return e>=t}(e,n))?n:null}},90745:function(e,t,n){"use strict";n.d(t,{$Z:function(){return ep},$t:function(){return C},$w:function(){return f},AA:function(){return l},AN:function(){return B},AP:function(){return m},BF:function(){return $},B_:function(){return Y},CJ:function(){return v},CQ:function(){return b},Dg:function(){return U},EY:function(){return j},FE:function(){return q},HM:function(){return eo},I$:function(){return ea},IX:function(){return k},KB:function(){return T},Kl:function(){return H},LC:function(){return W},ME:function(){return A},P:function(){return L},RE:function(){return E},Ri:function(){return _},SS:function(){return er},Si:function(){return x},Xc:function(){return K},Xq:function(){return ee},ZQ:function(){return N},_X:function(){return I},c9:function(){return d},cf:function(){return g},cj:function(){return R},d$:function(){return c},dL:function(){return Q},dR:function(){return X},dj:function(){return z},gX:function(){return F},i3:function(){return el},kB:function(){return D},lT:function(){return P},mv:function(){return ed},nm:function(){return J},os:function(){return y},oy:function(){return ef},pE:function(){return w},rE:function(){return O},rd:function(){return S},rs:function(){return Z},sI:function(){return a},sv:function(){return p},t$:function(){return ei},vv:function(){return h},wC:function(){return ec},x8:function(){return et},yC:function(){return en},y_:function(){return M},yi:function(){return G},yj:function(){return V},z_:function(){return es},zm:function(){return eu}});var r=n(64777),o=n(40117),i=n(37174);let a=3e3,l="/pagecontent",c="/customstyles",s="/serverurl",u="/nsfw",f="/s3",d="/socialhandles",p="/video/streamlatencylevel",h="/video/streamoutputvariants",m="/directoryenabled",v="/chat/forbiddenusernames",g="/chat/suggestedusernames",y="/externalactions",b="/video/codec",w="/federation/blockdomains";async function x(e){let{apiPath:t,data:n,onSuccess:o,onError:i}=e,a=await (0,r.rQ)("".concat(r.ao).concat(t),{data:n,method:"POST",auth:!0});a.success&&o?o(a.message):i&&i(a.message)}let E={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},C={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},Z={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},S={apiPath:"/offlinemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"An optional message you can leave people when your stream is not live.",label:"Offline Message",tip:"An optional message you can leave people when your stream is not live."},k={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"",label:"Welcome Message",tip:"A system chat message sent to viewers when they first connect to chat. Leave blank to disable."},N={apiPath:"/logo",configPath:"instanceDetails",maxLength:255,placeholder:"/img/mylogo.png",label:"Logo",tip:"Upload your logo if you have one. We recommend that you use a square image that is at least 256x256. SVGs are discouraged as they cannot be displayed on all social media platforms."},_={apiPath:"/key",configPath:"",maxLength:255,placeholder:"abc123",label:"Stream Key",tip:"Save this key somewhere safe, you will need it to stream or login to the admin dashboard!",required:!0},T={apiPath:"/ffmpegpath",configPath:"",maxLength:255,placeholder:"/usr/local/bin/ffmpeg",label:"FFmpeg Path",tip:"Absolute file path of the FFMPEG application on your server",required:!0},O={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},P={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},R={apiPath:s,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:o.xA,pattern:i.a,useTrim:!0},A={apiPath:"/sockethostoverride",configPath:"",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Websocket host override",tip:"The direct URL of your Owncast server.",type:o.xA,pattern:i.a,useTrim:!0},M={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},j={apiPath:u,configPath:"instanceDetails",label:"NSFW?",tip:"Turn this ON if you plan to steam explicit or adult content. Please respectfully set this flag so unexpected eyes won't accidentally see it in the Directory."},L={apiPath:m,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},I={apiPath:"/hideviewercount",configPath:"",label:"Hide viewer count",tip:"Turn this ON to hide the viewer count the web page."},F={framerate:24,videoPassthrough:!1,videoBitrate:800,audioPassthrough:!0,audioBitrate:0,cpuUsageLevel:3,scaledHeight:null,scaledWidth:null,name:""},V={apiPath:"/chat/disable",configPath:"",label:"Chat",tip:"Turn the chat functionality on/off on your Owncast server.",useSubmit:!0},D={apiPath:"/chat/joinmessagesenabled",configPath:"",label:"Join Messages",tip:"Show when a viewer joins the chat.",useSubmit:!0},z={apiPath:"/chat/establishedusermode",configPath:"",label:"Established users only",tip:"Only users who have previously been established for some time may chat.",useSubmit:!0},U={apiPath:v,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},B={apiPath:g,placeholder:"username",label:"Default usernames",tip:"An optional list of chat usernames that new users get assigned. If the list holds less then 10 items, random names will be generated. Users can change their usernames afterwards and the same username may be given out multple times.",min_not_reached:"At least 10 items are required for this feature.",no_entries:"The default name generator is used."},H={apiPath:"/federation/enable",configPath:"federation",label:"Enable Social Features",tip:"Send and receive activities on the Fediverse.",useSubmit:!0},W={apiPath:"/federation/private",configPath:"federation",label:"Private",tip:"Follow requests will require approval and only followers will see your activity.",useSubmit:!0},q={apiPath:"/federation/showengagement",configPath:"showEngagement",label:"Show engagement",tip:"Following, liking and sharing will appear in the chat feed.",useSubmit:!0},$={apiPath:"/federation/livemessage",configPath:"federation",maxLength:500,placeholder:"My stream has started, tune in!",label:"Now Live message",tip:"The message sent announcing that your live stream has begun. Tags will be automatically added. Leave blank to disable."},K={apiPath:"/federation/username",configPath:"federation",maxLength:10,placeholder:"owncast",default:"owncast",label:"Username",tip:'The username used for sending and receiving activities from the Fediverse. For example, if you use "bob" as a username you would send messages to the fediverse from @bob@yourserver. Once people start following your instance you should not change this.'},G={apiPath:s,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.",type:o.xA,pattern:i.a,useTrim:!0},Y={apiPath:u,configPath:"instanceDetails",label:"Potentially NSFW",tip:"Turn this ON if you plan to steam explicit or adult content so previews of your stream can be marked as potentially sensitive."},X={apiPath:w,configPath:"federation",label:"Blocked domains",placeholder:"bad.domain.biz",tip:"You can block specific domains from interacting with you."},Q={audioBitrate:{min:600,max:1200,defaultValue:800,unit:"kbps",incrementBy:100,tip:"nothing to see here"},videoPassthrough:{tip:"If enabled, all other settings will be disabled. Otherwise configure as desired."},audioPassthrough:{tip:"If No is selected, then you should set your desired Audio Bitrate."},scaledWidth:{fieldName:"scaledWidth",label:"Resized Width",maxLength:4,placeholder:"1080",tip:"Optionally resize this content's width."},scaledHeight:{fieldName:"scaledHeight",label:"Resized Height",maxLength:4,placeholder:"720",tip:"Optionally resize this content's height."}},J={min:24,max:120,defaultValue:24,unit:"fps",incrementBy:null,tip:"Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content."},ee={[J.min]:"".concat(J.min," ").concat(J.unit),25:" ",30:" ",50:" ",60:" ",90:" ",[J.max]:"".concat(J.max," ").concat(J.unit)},et={[J.min]:"".concat(J.min,"fps - Good for film, presentations, music, low power/bandwidth servers."),25:"25fps - Good for film, presentations, music, low power/bandwidth servers.",30:"30fps - Good for slow/casual games, chat, general purpose.",50:"50fps - Good for fast/action games, sports, HD video.",60:"60fps - Good for fast/action games, sports, HD video.",90:"90fps - Good for newer fast games and hardware.",[J.max]:"".concat(J.max,"fps - Experimental, use at your own risk!")},en={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},er={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},eo={[en.min]:"".concat(en.min," ").concat(en.unit),3e3:3e3,4500:4500,[en.max]:"".concat(en.max," ").concat(en.unit)},ei={1:"lowest",2:"",3:"",4:"",5:"highest"},ea={1:"Lowest hardware usage - lowest quality video",2:"Low hardware usage - low quality video",3:"Medium hardware usage - average quality video",4:"High hardware usage - high quality video",5:"Highest hardware usage - higher quality video"},el={VIDEO_HEIGHT:1080,VIDEO_BITRATE:3e3,HELP_TEXT:"You have only set one video quality variant. If your server has the computing resources, consider adding another, lower-quality variant, so more people can view your content!"},ec={url:"",platform:""},es="OTHER_SOCIAL_HANDLE_OPTION",eu={accessKey:{fieldName:"accessKey",label:"Access Key",maxLength:255,placeholder:"access key 123",tip:""},acl:{fieldName:"acl",label:"ACL",maxLength:255,placeholder:"",tip:"Optional specific access control value to add to your content. Generally not required."},bucket:{fieldName:"bucket",label:"Bucket",maxLength:255,placeholder:"bucket 123",tip:"Create a new bucket for each Owncast instance you may be running."},endpoint:{fieldName:"endpoint",label:"Endpoint",maxLength:255,placeholder:"https://your.s3.provider.endpoint.com",tip:'The full URL (with "https://") endpoint from your storage provider.',useTrim:!0,type:o.xA,pattern:i.a},region:{fieldName:"region",label:"Region",maxLength:255,placeholder:"region 123",tip:""},secret:{fieldName:"secret",label:"Secret key",maxLength:255,placeholder:"your secret key",tip:""},servingEndpoint:{fieldName:"servingEndpoint",label:"Serving Endpoint",maxLength:255,placeholder:"http://cdn.ss3.provider.endpoint.com",tip:"Optional URL that content should be accessed from instead of the default. Used with CDNs and specific storage providers. Generally not required.",type:o.xA,pattern:i.a,useTrim:!0},forcePathStyle:{fieldName:"forcePathStyle",label:"Force path-style",tip:"If your S3 provider doesn't support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)"}},ef={webhookUrl:{fieldName:"webhook",label:"Webhook URL",maxLength:255,placeholder:"https://discord.com/api/webhooks/837/jf38-6iNEv",tip:"The webhook assigned to your channel.",type:o.xA,pattern:i.a,useTrim:!0},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:300,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},ed={goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},ep={apiKey:{fieldName:"apiKey",label:"API Key",maxLength:200,tip:"",placeholder:"gaUQhRC2lqfrEFfElBXJgOctU"},apiSecret:{fieldName:"apiSecret",label:"API Secret",maxLength:200,tip:"",placeholder:"IIz4jFZMWbUKdFOEGUprFjRwIslG56d1SPQlolJYjXwJ2y2qKS"},accessToken:{fieldName:"accessToken",label:"Access Token",maxLength:200,tip:"",placeholder:"952540400-EEiwe9fkuSvWjnNC82YFa9kgpqbyAP3J7FjE2dkka"},accessTokenSecret:{fieldName:"accessTokenSecret",label:"Access Token Secret",maxLength:200,tip:"",placeholder:"xO0AZWNGfZxpNsYPg3zNEKhAsPPGvNZFlzQArA2khI9Kg"},bearerToken:{fieldName:"bearerToken",label:"Bearer Token",maxLength:200,tip:"",placeholder:"AAAAAAAAAAAAAAFqpXwEAAnnepHkjA8XD5ftx5jUadYIRtPtaq7AAAAwpXPpDWKDcdhiWr0tVDjsgW%2B4awGOM9VQ%3XPoMFuWcHsE42TK"},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}}},70241:function(e,t,n){"use strict";n.d(t,{AB:function(){return s},Qr:function(){return a},t5:function(){return i},wS:function(){return c}});var r=n(42238),o=n.n(r);function i(e){let t=e.split(":");t[t.length-1]="";let n=t.join(":");return"[::1]"===(n=n.slice(0,n.length-1))||"127.0.0.1"===n?"Localhost":n}function a(e){return!e||0===Object.keys(e).length&&e.constructor===Object}function l(e,t,n){return String(t.repeat(n)+e).slice(-n)}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Number.isFinite(+e)?Math.abs(e):0,n=Math.floor(t/86400),r=n>0?"".concat(n," day").concat(n>1?"s":""," "):"",o=Math.floor(t/3600%24),i=o||n?l("".concat(o,":"),"0",3):"",a=l("".concat(Math.floor(t/60%60),":"),"0",3),c=l("".concat(Math.floor(t%60)),"0",2);return r+i+a+c}function s(e){let t=o()(e),{device:n,os:r,browser:i}=t,{major:a,name:l}=i,{version:c,name:s}=r,{model:u,type:f}=n;return"libmpv"===e?"mpv media player":l&&a&&s?"".concat(l," ").concat(a," on ").concat(s," ").concat(c,"\n ").concat(u||f?" (".concat(u||f,")"):""):e}},41983:function(e,t,n){"use strict";n.d(t,{Jk:function(){return u},Un:function(){return c},dG:function(){return d},kg:function(){return h},zv:function(){return f}});var r=n(85893),o=n(89739),i=n(21640),a=n(50888),l=n(28058);let c="error",s="invalid",u="proessing",f="success",d="warning",p={[f]:{type:f,icon:(0,r.jsx)(o.Z,{style:{color:"green"}}),message:"Success!"},[c]:{type:c,icon:(0,r.jsx)(i.Z,{style:{color:"red"}}),message:"An error occurred."},[s]:{type:s,icon:(0,r.jsx)(i.Z,{style:{color:"red"}}),message:"An error occurred."},[u]:{type:u,icon:(0,r.jsx)(a.Z,{}),message:""},[d]:{type:d,icon:(0,r.jsx)(l.Z,{style:{color:"#fc0"}}),message:""}};function h(e,t){return e&&p[e]?t?{type:e,icon:p[e].icon,message:t}:p[e]:null}},99519:function(e,t,n){"use strict";n.d(t,{aC:function(){return f}});var r=n(85893),o=n(67294),i=n(45697),a=n.n(i),l=n(64777),c=n(90745);let s={streamKey:"",instanceDetails:{customStyles:"",extraPageContent:"",logo:"",name:"",nsfw:!1,socialHandles:[],streamTitle:"",summary:"",tags:[],title:"",welcomeMessage:"",offlineMessage:""},ffmpegPath:"",rtmpServerPort:"",webServerPort:"",socketHostOverride:null,s3:{accessKey:"",acl:"",bucket:"",enabled:!1,endpoint:"",region:"",secret:"",servingEndpoint:"",forcePathStyle:!1},yp:{enabled:!1,instanceUrl:""},videoSettings:{latencyLevel:4,cpuUsageLevel:3,videoQualityVariants:[c.gX]},federation:{enabled:!1,isPrivate:!1,username:"",goLiveMessage:"",showEngagement:!0,blockedDomains:[]},notifications:{browser:{enabled:!1,goLiveMessage:""},discord:{enabled:!1,webhook:"",goLiveMessage:""},twitter:{enabled:!1,goLiveMessage:"",apiKey:"",apiSecret:"",accessToken:"",accessTokenSecret:"",bearerToken:""}},externalActions:[],supportedCodecs:[],videoCodec:"",forbiddenUsernames:[],suggestedUsernames:[],chatDisabled:!1,chatJoinMessagesEnabled:!0,chatEstablishedUserMode:!1,hideViewerCount:!1},u={broadcastActive:!1,broadcaster:null,currentBroadcast:null,online:!1,viewerCount:0,sessionMaxViewerCount:0,sessionPeakViewerCount:0,overallPeakViewerCount:0,versionNumber:"0.0.0",streamTitle:"",chatDisabled:!1,health:{healthy:!0,healthPercentage:100,message:"",representation:0}},f=o.createContext({...u,serverConfig:s,setFieldInConfigState:e=>null}),d=e=>{let{children:t}=e,[n,i]=(0,o.useState)(u),[a,c]=(0,o.useState)(s),d=async()=>{try{let e=await (0,l.rQ)(l.Q_);i({...e})}catch(t){}},p=async()=>{try{let e=await (0,l.rQ)(l.bl);c(e)}catch(t){}},h=e=>{let{fieldName:t,value:n,path:r}=e,o=r?{...a,[r]:{...a[r],[t]:n}}:{...a,[t]:n};c(o)};(0,o.useEffect)(()=>{let e=null;return d(),e=setInterval(d,l.NE),p(),()=>{clearInterval(e)}},[]);let m={...n,serverConfig:a,setFieldInConfigState:h};return(0,r.jsx)(f.Provider,{value:m,children:t})};d.propTypes={children:a().element.isRequired},t.ZP=d},37174:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},a:function(){return r}});let r="https?://.*";function o(e){try{let t=new URL(e);if(""===t.protocol||""===t.hostname||!["http:","https:"].includes(t.protocol))return!1}catch(n){return!1}return!0}},33614:function(){},43191:function(){},48339:function(){},57151:function(){},29403:function(e){e.exports={root:"OwncastLogo_root__uDVJf",contrast:"OwncastLogo_contrast__rDMJY",simple:"OwncastLogo_simple___hC9r"}},83432:function(){},9008:function(e,t,n){e.exports=n(83121)},41664:function(e,t,n){e.exports=n(31551)},11163:function(e,t,n){e.exports=n(80880)},34155: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(r){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(r){n=a}}();var c=[],s=!1,u=-1;function f(){s&&r&&(s=!1,r.length?c=r.concat(c):u=-1,c.length&&d())}function d(){if(!s){var e=l(f);s=!0;for(var t=c.length;t;){for(r=c,c=[];++u1)for(var n=1;n(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,h.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),a)}else(0,h.jL)(a);return function(){(0,h.jL)(a)}},[n,a]);var z=null;k&&(0,s.Yr)(k)&&t&&(z=k.ref);var U=(0,s.x1)(z,t);if(!P||!(0,c.Z)()||void 0===M)return null;var B=!1===D||("boolean"==typeof w&&(y=w),y),H=k;return t&&(H=i.cloneElement(k,{ref:U})),i.createElement(u.Provider,{value:V},B?H:(0,l.createPortal)(H,D))}),x=n(1413),E=n(94184),C=n.n(E),Z=n(15105),S=0,k=n(94999),N=n(64217),_=n(62874);function T(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,l=e.motionName;return i.createElement(_.Z,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var l=e.className,c=e.style;return i.createElement("div",(0,r.Z)({ref:o,style:(0,x.Z)((0,x.Z)({},c),n),className:C()("".concat(t,"-mask"),l)},a))})}function O(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function P(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 R=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),A={width:0,height:0,overflow:"hidden",outline:"none"},M=i.forwardRef(function(e,t){var n,o,a,l=e.prefixCls,c=e.className,s=e.style,u=e.title,f=e.ariaId,d=e.footer,p=e.closable,h=e.closeIcon,m=e.onClose,v=e.children,g=e.bodyStyle,y=e.bodyProps,b=e.modalRender,w=e.onMouseDown,E=e.onMouseUp,Z=e.holderRef,S=e.visible,k=e.forceRender,N=e.width,_=e.height,T=(0,i.useRef)(),O=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=T.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?T.current.focus():e||t!==T.current||O.current.focus()}}});var P={};void 0!==N&&(P.width=N),void 0!==_&&(P.height=_),d&&(n=i.createElement("div",{className:"".concat(l,"-footer")},d)),u&&(o=i.createElement("div",{className:"".concat(l,"-header")},i.createElement("div",{className:"".concat(l,"-title"),id:f},u))),p&&(a=i.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(l,"-close")},h||i.createElement("span",{className:"".concat(l,"-close-x")})));var M=i.createElement("div",{className:"".concat(l,"-content")},a,o,i.createElement("div",(0,r.Z)({className:"".concat(l,"-body"),style:g},y),v),n);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?f:null,"aria-modal":"true",ref:Z,style:(0,x.Z)((0,x.Z)({},s),P),className:C()(l,c),onMouseDown:w,onMouseUp:E},i.createElement("div",{tabIndex:0,ref:T,style:A,"aria-hidden":"true"}),i.createElement(R,{shouldUpdate:S||k},b?b(M):M),i.createElement("div",{tabIndex:0,ref:O,style:A,"aria-hidden":"true"}))}),j=i.forwardRef(function(e,t){var n=e.prefixCls,a=e.title,l=e.style,c=e.className,s=e.visible,u=e.forceRender,f=e.destroyOnClose,d=e.motionName,p=e.ariaId,h=e.onVisibleChanged,m=e.mousePosition,v=(0,i.useRef)(),g=i.useState(),y=(0,o.Z)(g,2),b=y[0],w=y[1],E={};function Z(){var e,t,n,r,o,i=(n={left:(t=(e=v.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=P(o),n.top+=P(o,!0),n);w(m?"".concat(m.x-i.left,"px ").concat(m.y-i.top,"px"):"")}return b&&(E.transformOrigin=b),i.createElement(_.Z,{visible:s,onVisibleChanged:h,onAppearPrepare:Z,onEnterPrepare:Z,forceRender:u,motionName:d,removeOnLeave:f,ref:v},function(o,s){var u=o.className,f=o.style;return i.createElement(M,(0,r.Z)({},e,{ref:t,title:a,ariaId:p,prefixCls:n,holderRef:s,style:(0,x.Z)((0,x.Z)((0,x.Z)({},f),l),E),className:C()(c,u)}))})});function L(e){var t,n,l,c,s,u,f,d=e.prefixCls,p=void 0===d?"rc-dialog":d,h=e.zIndex,m=e.visible,v=void 0!==m&&m,g=e.keyboard,y=void 0===g||g,b=e.focusTriggerAfterClose,w=void 0===b||b,E=e.wrapStyle,_=e.wrapClassName,P=e.wrapProps,R=e.onClose,A=e.afterClose,M=e.transitionName,L=e.animation,I=e.closable,F=e.mask,V=void 0===F||F,D=e.maskTransitionName,z=e.maskAnimation,U=e.maskClosable,B=e.maskStyle,H=e.maskProps,W=e.rootClassName,q=(0,i.useRef)(),$=(0,i.useRef)(),K=(0,i.useRef)(),G=i.useState(v),Y=(0,o.Z)(G,2),X=Y[0],Q=Y[1],J=(n=i.useState("ssr-id"),c=(l=(0,o.Z)(n,2))[0],s=l[1],f=null==(u=(0,x.Z)({},a).useId)?void 0:u(),(i.useEffect(function(){if(!u){var e=S;S+=1,s("rc_unique_".concat(e))}},[]),t)?t:f||c);function ee(e){null==R||R(e)}var et=(0,i.useRef)(!1),en=(0,i.useRef)(),er=function(){clearTimeout(en.current),et.current=!0},eo=function(){en.current=setTimeout(function(){et.current=!1})},ei=null;return(void 0===U||U)&&(ei=function(e){et.current?et.current=!1:$.current===e.target&&ee(e)}),(0,i.useEffect)(function(){v&&(Q(!0),(0,k.Z)($.current,document.activeElement)||(q.current=document.activeElement))},[v]),(0,i.useEffect)(function(){return function(){clearTimeout(en.current)}},[]),i.createElement("div",(0,r.Z)({className:C()("".concat(p,"-root"),W)},(0,N.Z)(e,{data:!0})),i.createElement(T,{prefixCls:p,visible:V&&v,motionName:O(p,D,z),style:(0,x.Z)({zIndex:h},B),maskProps:H}),i.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(y&&e.keyCode===Z.Z.ESC){e.stopPropagation(),ee(e);return}v&&e.keyCode===Z.Z.TAB&&K.current.changeActive(!e.shiftKey)},className:C()("".concat(p,"-wrap"),_),ref:$,onClick:ei,style:(0,x.Z)((0,x.Z)({zIndex:h},E),{},{display:X?null:"none"})},P),i.createElement(j,(0,r.Z)({},e,{onMouseDown:er,onMouseUp:eo,ref:K,closable:void 0===I||I,ariaId:J,prefixCls:p,visible:v&&X,onClose:ee,onVisibleChanged:function(e){if(e)!function(){if(!(0,k.Z)($.current,document.activeElement)){var e;null===(e=K.current)||void 0===e||e.focus()}}();else{if(Q(!1),V&&q.current&&w){try{q.current.focus({preventScroll:!0})}catch(t){}q.current=null}X&&(null==A||A())}},motionName:O(p,M,L)}))))}j.displayName="Content";var I=function(e){var t=e.visible,n=e.getContainer,a=e.forceRender,l=e.destroyOnClose,c=void 0!==l&&l,s=e.afterClose,u=i.useState(t),f=(0,o.Z)(u,2),d=f[0],p=f[1];return(i.useEffect(function(){t&&p(!0)},[t]),a||!c||d)?i.createElement(w,{open:t||a||d,autoDestroy:!1,getContainer:n,autoLock:t||d},i.createElement(L,(0,r.Z)({},e,{destroyOnClose:c,afterClose:function(){null==s||s(),p(!1)}}))):null};I.displayName="Dialog";var F=I},71990:function(e,t,n){"use strict";n.r(t),n.d(t,{Field:function(){return ew},FieldContext:function(){return b},FormProvider:function(){return eP},List:function(){return eE},ListContext:function(){return ex},default:function(){return eI},useForm:function(){return eT},useWatch:function(){return ej}});var r,o=n(67294),i=n(87462),a=n(45987),l=n(4942),c=n(1413),s=n(74902),u=n(15671),f=n(43144),d=n(97326),p=n(60136),h=n(33643),m=n(50344),v=n(80334),g="RC_FORM_INTERNAL_HOOKS",y=function(){(0,v.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},b=o.createContext({getFieldValue:y,getFieldsValue:y,getFieldError:y,getFieldWarning:y,getFieldsError:y,isFieldsTouched:y,isFieldTouched:y,isFieldValidating:y,isFieldsValidating:y,resetFields:y,setFields:y,setFieldValue:y,setFieldsValue:y,validateFields:y,submit:y,getInternalHooks:function(){return y(),{dispatch:y,initEntityValue:y,registerField:y,useSubscribe:y,setInitialValues:y,destroyForm:y,setCallbacks:y,registerWatch:y,getFields:y,setValidateMessages:y,setPreserve:y,getInitialValue:y}}});function w(e){return null==e?[]:Array.isArray(e)?e:[e]}var x=n(74165),E=n(15861),C=n(34155);function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=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(t){return"[Circular]"}break;default:return e}}):e}function A(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 M(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()\[\]\\.,;:\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},z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return RegExp(e),!0}catch(t){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"==typeof e&&!z.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(D.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(V())},hex:function(e){return"string"==typeof e&&!!e.match(D.hex)}},U=function(e,t,n,r,o){if(e.required&&void 0===t){F(e,t,n,r,o);return}var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?z[i](t)||r.push(R(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(R(o.messages.types[i],e.fullField,e.type))},B="enum",H={required:F,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(R(o.messages.whitespace,e.fullField))},type:U,range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="string"==typeof t,f=Array.isArray(t);if("number"==typeof t?s="number":u?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),u&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(R(o.messages[s].len,e.fullField,e.len)):a&&!l&&ce.max?r.push(R(o.messages[s].max,e.fullField,e.max)):a&&l&&(ce.max)&&r.push(R(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[B]=Array.isArray(e[B])?e[B]:[],-1===e[B].indexOf(t)&&r.push(R(o.messages[B],e.fullField,e[B].join(", ")))},pattern:function(e,t,n,r,o){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(R(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||RegExp(e.pattern).test(t)||r.push(R(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(A(t,i)&&!e.required)return n();H.required(e,t,r,a,o,i),A(t,i)||H.type(e,t,r,a,o)}n(a)},q={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t,"string")&&!e.required)return n();H.required(e,t,r,i,o,"string"),A(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(A(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),A(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(A(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(A(t)&&!e.required)return n();H.required(e,t,r,i,o),A(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(A(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(A(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(A(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(A(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(A(t,"string")&&!e.required)return n();H.required(e,t,r,i,o),A(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(A(t,"date")&&!e.required)return n();H.required(e,t,r,a,o),!A(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":typeof 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(A(t)&&!e.required)return n();H.required(e,t,r,i,o)}n(i)}};function $(){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 K=$(),G=function(){function e(e){this.rules=null,this._messages=K,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof 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]})},t.messages=function(e){return e&&(this._messages=I($(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;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 c=this.messages();c===K&&(c=$()),I(c,a.messages),a.messages=c}else a.messages=this.messages();var s={};(a.keys||Object.keys(this.rules)).forEach(function(e){var n=o.rules[e],r=i[e];n.forEach(function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=Z({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:Z({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:r,source:i,field:e}))})});var u={};return function(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a,l=function(e){return r(e),e.length?i(new j(e,P(e))):t(o)};M((a=[],Object.keys(e).forEach(function(t){a.push.apply(a,e[t]||[])}),a),n,l)});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],f=new Promise(function(t,i){var f=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new j(u,P(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?M(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,f)})});return f.catch(function(e){return e}),f}(s,a,function(t,n){var r,o=t.rule,l=("object"===o.type||"array"===o.type)&&("object"==typeof o.fields||"object"==typeof o.defaultField);function c(e,t){return Z({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function s(r){void 0===r&&(r=[]);var s=Array.isArray(r)?r:[r];!a.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==o.message&&(s=[].concat(o.message));var f=s.map(L(o,i));if(a.first&&f.length)return u[o.field]=1,n(f);if(l){if(o.required&&!t.value)return void 0!==o.message?f=[].concat(o.message).map(L(o,i)):a.error&&(f=[a.error(o,R(a.messages.required,o.field))]),n(f);var d={};o.defaultField&&Object.keys(t.value).map(function(e){d[e]=o.defaultField});var p={};Object.keys(d=Z({},d,t.rule.fields)).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))});var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)})}else n(f)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,s,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,s,t.source,a)}catch(f){null==console.error||console.error(f),a.suppressValidatorError||setTimeout(function(){throw f},0),s(f.message)}!0===r?s():!1===r?s("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?s(r):r instanceof Error&&s(r.message)}r&&r.then&&r.then(function(){return s()},function(e){return s(e)})},function(e){!function(e){for(var t=[],n={},r=0;r3&&void 0!==arguments[3]&&arguments[3];return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!J(e,t.slice(0,-1))?e:function e(t,n,r,o){if(!n.length)return r;var i,a=(0,ee.Z)(n),l=a[0],u=a.slice(1);return i=t||"number"!=typeof l?Array.isArray(t)?(0,s.Z)(t):(0,c.Z)({},t):[],o&&void 0===r&&1===u.length?delete i[l][u[0]]:i[l]=e(i[l],u,r,o),i}(e,t,n,r)}(e,t,n,r)}function eo(e,t){var n={};return t.forEach(function(t){var r=J(e,t);n=er(n,t,r)}),n}function ei(e,t){return e&&e.some(function(e){return ec(e,t)})}function ea(e){return"object"===(0,Q.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function el(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,s.Z)(e.slice(0,n)),[o],(0,s.Z)(e.slice(n,t)),(0,s.Z)(e.slice(t+1,r))):i<0?[].concat((0,s.Z)(e.slice(0,t)),(0,s.Z)(e.slice(t+1,n+1)),[o],(0,s.Z)(e.slice(n+1,r))):e}var ef="CODE_LOGIC_ERROR";function ed(e,t,n,r,o){return ep.apply(this,arguments)}function ep(){return(ep=(0,E.Z)((0,x.Z)().mark(function e(t,n,r,i,a){var u,f,d,p,h,m,v,g,y;return(0,x.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(u=(0,c.Z)({},r)).ruleIndex,u.validator&&(f=u.validator,u.validator=function(){try{return f.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(ef)}}),d=null,u&&"array"===u.type&&u.defaultField&&(d=u.defaultField,delete u.defaultField),p=new G((0,l.Z)({},t,[u])),h=el({},X,i.validateMessages),p.messages(h),m=[],e.prev=9,e.next=12,Promise.resolve(p.validate((0,l.Z)({},t,n),(0,c.Z)({},i)));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),e.t0.errors&&(m=e.t0.errors.map(function(e,t){var n=e.message,r=n===ef?h.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r}));case 17:if(!(!m.length&&d)){e.next=22;break}return e.next=20,Promise.all(n.map(function(e,n){return ed("".concat(t,".").concat(n),e,d,i,a)}));case 20:return v=e.sent,e.abrupt("return",v.reduce(function(e,t){return[].concat((0,s.Z)(e),(0,s.Z)(t))},[]));case 22:return g=(0,c.Z)((0,c.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 t[e.slice(2,-1)]})}(e,g):e}),e.abrupt("return",y);case 25:case"end":return e.stop()}},e,null,[[9,14]])}))).apply(this,arguments)}function eh(){return(eh=(0,E.Z)((0,x.Z)().mark(function e(t){return(0,x.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,s.Z)(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function em(){return(em=(0,E.Z)((0,x.Z)().mark(function e(t){var n;return(0,x.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 ev=["name"],eg=[];function ey(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var eb=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var r;return(0,u.Z)(this,n),(r=t.call(this,e)).state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=null,r.prevValidating=void 0,r.errors=eg,r.warnings=eg,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},r.getNamePath=function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat((0,s.Z)(void 0===n?[]:n),(0,s.Z)(t)):[]},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})},r.refresh=function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})},r.triggerMetaEvent=function(e){var t=r.props.onMetaChange;null==t||t((0,c.Z)((0,c.Z)({},r.getMeta()),{},{destroy:e}))},r.onStoreChange=function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,c=o.onReset,s=n.store,u=r.getNamePath(),f=r.getValue(e),d=r.getValue(s),p=t&&ei(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&f!==d&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=eg,r.warnings=eg,r.triggerMetaEvent()),n.type){case"reset":if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=eg,r.warnings=eg,r.triggerMetaEvent(),null==c||c(),r.refresh();return}break;case"remove":if(i){r.reRender();return}break;case"setField":if(p){var h=n.data;"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||eg),"warnings"in h&&(r.warnings=h.warnings||eg),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if(i&&!u.length&&ey(i,e,s,f,d,n)){r.reRender();return}break;case"dependenciesUpdate":if(l.map(en).some(function(e){return ei(n.relatedFields,e)})){r.reRender();return}break;default:if(p||(!l.length||u.length||i)&&ey(i,e,s,f,d,n)){r.reRender();return}}!0===i&&r.reRender()},r.validateRules=function(e){var t=r.getNamePath(),n=r.getValue(),o=Promise.resolve().then(function(){if(!r.mounted)return[];var i=r.props,a=i.validateFirst,l=i.messageVariables,u=(e||{}).triggerName,f=r.getRules();u&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||w(t).includes(u)}));var d=function(e,t,n,r,o,i){var a,l,s=e.join("."),u=n.map(function(e,t){var n=e.validator,r=(0,c.Z)((0,c.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;n0&&void 0!==arguments[0]?arguments[0]:eg;if(r.validatePromise===o){r.validatePromise=null;var t,n=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,o=void 0===r?eg:r;t?i.push.apply(i,(0,s.Z)(o)):n.push.apply(n,(0,s.Z)(o))}),r.errors=n,r.warnings=i,r.triggerMetaEvent(),r.reRender()}}),d});return r.validatePromise=o,r.dirty=!0,r.errors=eg,r.warnings=eg,r.triggerMetaEvent(),r.reRender(),o},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(g).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath()}},r.getOnlyChild=function(e){if("function"==typeof e){var t=r.getMeta();return(0,c.Z)((0,c.Z)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return J(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==o?o:f.validateTrigger,p=r.getNamePath(),h=f.getInternalHooks,m=f.getFieldsValue,v=h(g).dispatch,y=r.getValue(),b=e[n],x=(0,c.Z)((0,c.Z)({},e),(u||function(e){return(0,l.Z)({},s,e)})(y));return x[n]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o=0&&t<=n.length?(u.keys=[].concat((0,s.Z)(u.keys.slice(0,t)),[u.id],(0,s.Z)(u.keys.slice(t))),o([].concat((0,s.Z)(n.slice(0,t)),[e],(0,s.Z)(n.slice(t))))):(u.keys=[].concat((0,s.Z)(u.keys),[u.id]),o([].concat((0,s.Z)(n),[e]))),u.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.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||(u.keys=eu(u.keys,e,t),o(eu(n,e,t)))}}},t)})))},eC=n(97685),eZ="__@field_split__";function eS(e){return e.map(function(e){return"".concat((0,Q.Z)(e),":").concat(e)}).join(eZ)}var ek=function(){function e(){(0,u.Z)(this,e),this.kvs=new Map}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(eS(e),t)}},{key:"get",value:function(e){return this.kvs.get(eS(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(eS(e))}},{key:"map",value:function(e){return(0,s.Z)(this.kvs.entries()).map(function(t){var n=(0,eC.Z)(t,2),r=n[0],o=n[1];return e({key:r.split(eZ).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,eC.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}(),eN=["name","errors"],e_=(0,f.Z)(function e(t){var n=this;(0,u.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,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}},this.getInternalHooks=function(e){return e===g?(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,v.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var r,o=el({},e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=er(o,n,J(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}},this.destroyForm=function(){var e=new ek;n.getFieldEntities(!0).forEach(function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=J(n.initialValues,e);return e.length?et(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue();n.watchList.forEach(function(n){n(t,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},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},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ek;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t},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)}})},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach(function(n){var r,i="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();!(!e&&(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))&&(t?t("getMeta"in n?n.getMeta():null)&&o.push(i):o.push(i))}),eo(n.store,o.map(en))},this.getFieldValue=function(e){n.warningUnhooked();var t=en(e);return J(n.store,t)},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()}})},this.getFieldError=function(e){n.warningUnhooked();var t=en(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=en(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},r=new ek,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,s.Z)((0,s.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,v.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,v.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);t.skipExist&&void 0!==a||n.updateStore(er(n.store,o,(0,s.Z)(i)[0].value))}}}})}(e)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore(el({},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(er(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=(e.errors,(0,a.Z)(e,eN)),l=en(o);r.push(l),"value"in i&&n.updateStore(er(n.store,l,i.value)),n.notifyObservers(t,[l],{type:"setField",data:e})}),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,c.Z)((0,c.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===J(n.store,r)&&n.updateStore(er(n.store,r,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},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!ec(e.getNamePath(),t)})){var l=n.store;n.updateStore(er(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}},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})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=(0,c.Z)((0,c.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()},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,s.Z)(r))}),r},this.updateValue=function(e,t){var r=en(e),o=n.store;n.updateStore(er(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(eo(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,s.Z)(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;if(e){var r=el(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new ek;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},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new ek;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})}r(o.filter(function(t){return ei(e,t.name)}),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r,o,i,a=!!e,l=a?e.map(en):[],u=[];n.getFieldEntities(!0).forEach(function(r){if(a||l.push(r.getNamePath()),(null==t?void 0:t.recursive)&&a){var o=r.getNamePath();o.every(function(t,n){return e[n]===t||void 0===e[n]})&&l.push(o)}if(r.props.rules&&r.props.rules.length){var i=r.getNamePath();if(!a||ei(l,i)){var f=r.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},X),n.validateMessages)},t));u.push(f.then(function(){return{name:i,errors:[],warnings:[]}}).catch(function(e){var t,n=[],r=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors;t?r.push.apply(r,(0,s.Z)(o)):n.push.apply(n,(0,s.Z)(o))}),n.length)?Promise.reject({name:i,errors:n,warnings:r}):{name:i,errors:n,warnings:r}}))}}});var f=(r=!1,o=u.length,i=[],u.length?new Promise(function(e,t){u.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=f,f.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 d=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:t,outOfDate:n.lastValidatePromise!==f})});return d.catch(function(e){return e}),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eT=function(e){var t=o.useRef(),n=o.useState({}),r=(0,eC.Z)(n,2)[1];if(!t.current){if(e)t.current=e;else{var i=function(){r({})},a=new e_(i);t.current=a.getForm()}}return[t.current]},eO=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eP=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(eO),s=o.useRef({});return o.createElement(eO.Provider,{value:(0,c.Z)((0,c.Z)({},a),{},{validateMessages:(0,c.Z)((0,c.Z)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=(0,c.Z)((0,c.Z)({},s.current),{},(0,l.Z)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},eR=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],eA=function(e,t){var n,r=e.name,l=e.initialValues,u=e.fields,f=e.form,d=e.preserve,p=e.children,h=e.component,m=void 0===h?"form":h,v=e.validateMessages,y=e.validateTrigger,w=void 0===y?"onChange":y,x=e.onValuesChange,E=e.onFieldsChange,C=e.onFinish,Z=e.onFinishFailed,S=(0,a.Z)(e,eR),k=o.useContext(eO),N=eT(f),_=(0,eC.Z)(N,1)[0],T=_.getInternalHooks(g),O=T.useSubscribe,P=T.setInitialValues,R=T.setCallbacks,A=T.setValidateMessages,M=T.setPreserve,j=T.destroyForm;o.useImperativeHandle(t,function(){return _}),o.useEffect(function(){return k.registerForm(r,_),function(){k.unregisterForm(r)}},[k,_,r]),A((0,c.Z)((0,c.Z)({},k.validateMessages),v)),R({onValuesChange:x,onFieldsChange:function(e){if(k.triggerFormChange(r,e),E){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o0;if(P||R){var t=f(F),n=(0,p.Z)(t).length,a="object"===(0,o.Z)(R)?R.formatter({value:t,count:n,maxLength:O}):"".concat(n).concat(e?" / ".concat(O):"");return i.createElement(i.Fragment,null,!!R&&i.createElement("span",{className:l()("".concat(k,"-show-count-suffix"),(0,r.Z)({},"".concat(k,"-show-count-has-suffix"),!!P))},a),P)}return null}(),disabled:N}))})},97868:function(e,t,n){"use strict";n.d(t,{iz:function(){return eV},ck:function(){return q},BW:function(){return eF},sN:function(){return q},GP:function(){return eF},Wd:function(){return eh},ZP:function(){return ez},Xl:function(){return j}});var r=n(87462),o=n(4942),i=n(1413),a=n(74902),l=n(97685),c=n(45987),s=n(67294),u=n(94184),f=n.n(u),d=n(96774),p=n.n(d),h=n(21770),m=n(80334),v=n(34243),g=n(15671),y=n(43144),b=n(60136),w=n(33643),x=n(15105),E=n(98423),C=n(56982),Z=["children","locked"],S=s.createContext(null);function k(e){var t=e.children,n=e.locked,r=(0,c.Z)(e,Z),o=s.useContext(S),a=(0,C.Z)(function(){var e;return e=(0,i.Z)({},o),Object.keys(r).forEach(function(t){var n=r[t];void 0!==n&&(e[t]=n)}),e},[o,r],function(e,t){return!n&&(e[0]!==t[0]||!p()(e[1],t[1]))});return s.createElement(S.Provider,{value:a},t)}function N(e,t,n,r){var o=s.useContext(S),i=o.activeKey,a=o.onActive,l=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}var _=["item"];function T(e){var t=e.item,n=(0,c.Z)(e,_);return Object.defineProperty(n,"item",{get:function(){return(0,m.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function O(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?s.createElement(t,(0,i.Z)({},n)):t)||r||null}function P(e){var t=s.useContext(S),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}var R=s.createContext(null);function A(){return s.useContext(R)}var M=s.createContext([]);function j(e){var t=s.useContext(M);return s.useMemo(function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t},[t,e])}var L=s.createContext(null),I=s.createContext(null);function F(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function V(e){return F(s.useContext(I),e)}var D=s.createContext({}),z=["title","attribute","elementRef"],U=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],B=["active"],H=function(e){(0,b.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,g.Z)(this,n),t.apply(this,arguments)}return(0,y.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=(0,c.Z)(e,z),a=(0,E.Z)(i,["eventKey"]);return(0,m.ZP)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(v.Z.Item,(0,r.Z)({},n,{title:"string"==typeof t?t:void 0},a,{ref:o}))}}]),n}(s.Component),W=function(e){var t,n=e.style,l=e.className,u=e.eventKey,d=(e.warnKey,e.disabled),p=e.itemIcon,h=e.children,m=e.role,v=e.onMouseEnter,g=e.onMouseLeave,y=e.onClick,b=e.onKeyDown,w=e.onFocus,E=(0,c.Z)(e,U),C=V(u),Z=s.useContext(S),k=Z.prefixCls,_=Z.onItemClick,R=Z.disabled,A=Z.overflowDisabled,M=Z.itemIcon,L=Z.selectedKeys,I=Z.onActive,F=s.useContext(D)._internalRenderMenuItem,z="".concat(k,"-item"),W=s.useRef(),q=s.useRef(),$=R||d,K=j(u),G=function(e){return{key:u,keyPath:(0,a.Z)(K).reverse(),item:W.current,domEvent:e}},Y=N(u,$,v,g),X=Y.active,Q=(0,c.Z)(Y,B),J=L.includes(u),ee=P(K.length),et=function(e){if(!$){var t=G(e);null==y||y(T(t)),_(t)}},en=function(e){if(null==b||b(e),e.which===x.Z.ENTER){var t=G(e);null==y||y(T(t)),_(t)}},er=function(e){I(u),null==w||w(e)},eo={};"option"===e.role&&(eo["aria-selected"]=J);var ei=s.createElement(H,(0,r.Z)({ref:W,elementRef:q,role:null===m?"none":m||"menuitem",tabIndex:d?null:-1,"data-menu-id":A&&C?null:C},E,Q,eo,{component:"li","aria-disabled":d,style:(0,i.Z)((0,i.Z)({},ee),n),className:f()(z,(t={},(0,o.Z)(t,"".concat(z,"-active"),X),(0,o.Z)(t,"".concat(z,"-selected"),J),(0,o.Z)(t,"".concat(z,"-disabled"),$),t),l),onClick:et,onKeyDown:en,onFocus:er}),h,s.createElement(O,{props:(0,i.Z)((0,i.Z)({},e),{},{isSelected:J}),icon:p||M}));return F&&(ei=F(ei,e,{selected:J})),ei},q=function(e){var t=e.eventKey,n=A(),r=j(t);return(s.useEffect(function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}},[r]),n)?null:s.createElement(W,e)},$=n(71002),K=n(50344),G=["label","children","key","type"];function Y(e,t){return(0,K.Z)(e).map(function(e,n){if(s.isValidElement(e)){var r,o,i=e.key,l=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==l&&(l="tmp_key-".concat([].concat((0,a.Z)(t),[n]).join("-")));var c={key:l,eventKey:l};return s.cloneElement(e,c)}return e})}function X(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&(E.motionAppear=!1);var C=E.onVisibleChanged;return(E.onVisibleChanged=function(e){return v.current||e||w(!0),null==C?void 0:C(e)},b)?null:s.createElement(k,{mode:c,locked:!v.current},s.createElement(es.Z,(0,r.Z)({visible:x},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),function(e){var n=e.className,r=e.style;return s.createElement(ee,{id:t,className:n,style:r},a)}))}var ef=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ed=["active"],ep=function(e){var t,n=e.style,a=e.className,u=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),h=e.internalPopupClose,m=e.children,g=e.itemIcon,y=e.expandIcon,b=e.popupClassName,w=e.popupOffset,x=e.onClick,E=e.onMouseEnter,C=e.onMouseLeave,Z=e.onTitleClick,_=e.onTitleMouseEnter,R=e.onTitleMouseLeave,A=(0,c.Z)(e,ef),M=V(d),I=s.useContext(S),F=I.prefixCls,z=I.mode,U=I.openKeys,B=I.disabled,H=I.overflowDisabled,W=I.activeKey,q=I.selectedKeys,$=I.itemIcon,K=I.expandIcon,G=I.onItemClick,Y=I.onOpenChange,Q=I.onActive,J=s.useContext(D)._internalRenderSubMenuItem,et=s.useContext(L).isSubPathKey,en=j(),er="".concat(F,"-submenu"),eo=B||p,ei=s.useRef(),ea=s.useRef(),el=y||K,es=U.includes(d),ep=!H&&es,eh=et(q,d),em=N(d,eo,_,R),ev=em.active,eg=(0,c.Z)(em,ed),ey=s.useState(!1),eb=(0,l.Z)(ey,2),ew=eb[0],ex=eb[1],eE=function(e){eo||ex(e)},eC=function(e){eE(!0),null==E||E({key:d,domEvent:e})},eZ=function(e){eE(!1),null==C||C({key:d,domEvent:e})},eS=s.useMemo(function(){return ev||"inline"!==z&&(ew||et([W],d))},[z,ev,W,ew,d,et]),ek=P(en.length),eN=function(e){eo||(null==Z||Z({key:d,domEvent:e}),"inline"===z&&Y(d,!es))},e_=X(function(e){null==x||x(T(e)),G(e)}),eT=function(e){"inline"!==z&&Y(d,e)},eO=function(){Q(d)},eP=M&&"".concat(M,"-popup"),eR=s.createElement("div",(0,r.Z)({role:"menuitem",style:ek,className:"".concat(er,"-title"),tabIndex:eo?null:-1,ref:ei,title:"string"==typeof u?u:null,"data-menu-id":H&&M?null:M,"aria-expanded":ep,"aria-haspopup":!0,"aria-controls":eP,"aria-disabled":eo,onClick:eN,onFocus:eO},eg),u,s.createElement(O,{icon:"horizontal"!==z?el:null,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ep,isSubMenu:!0})},s.createElement("i",{className:"".concat(er,"-arrow")}))),eA=s.useRef(z);if("inline"!==z&&(eA.current=en.length>1?"vertical":z),!H){var eM=eA.current;eR=s.createElement(ec,{mode:eM,prefixCls:er,visible:!h&&ep&&"inline"!==z,popupClassName:b,popupOffset:w,popup:s.createElement(k,{mode:"horizontal"===eM?"vertical":eM},s.createElement(ee,{id:eP,ref:ea},m)),disabled:eo,onVisibleChange:eT},eR)}var ej=s.createElement(v.Z.Item,(0,r.Z)({role:"none"},A,{component:"li",style:n,className:f()(er,"".concat(er,"-").concat(z),a,(t={},(0,o.Z)(t,"".concat(er,"-open"),ep),(0,o.Z)(t,"".concat(er,"-active"),eS),(0,o.Z)(t,"".concat(er,"-selected"),eh),(0,o.Z)(t,"".concat(er,"-disabled"),eo),t)),onMouseEnter:eC,onMouseLeave:eZ}),eR,!H&&s.createElement(eu,{id:eP,open:ep,keyPath:en},m));return J&&(ej=J(ej,e,{selected:eh,active:eS,open:ep,disabled:eo})),s.createElement(k,{onItemClick:e_,mode:"horizontal"===z?"vertical":z,itemIcon:g||$,expandIcon:el},ej)};function eh(e){var t,n=e.eventKey,r=e.children,o=j(n),i=Y(r,o),a=A();return s.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]),t=a?i:s.createElement(ep,e,i),s.createElement(M.Provider,{value:o},t)}var em=n(88603),ev=x.Z.LEFT,eg=x.Z.RIGHT,ey=x.Z.UP,eb=x.Z.DOWN,ew=x.Z.ENTER,ex=x.Z.ESC,eE=x.Z.HOME,eC=x.Z.END,eZ=[ey,eb,ev,eg];function eS(e,t){return(0,em.tS)(e,!0).filter(function(e){return t.has(e)})}function ek(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=eS(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var eN=Math.random().toFixed(5).toString().slice(2),e_=0,eT="__RC_UTIL_PATH_SPLIT__",eO=function(e){return e.join(eT)},eP="rc-menu-more",eR=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],eA=[],eM=s.forwardRef(function(e,t){var n,u,d,m,g,y,b,w,x,E,C,Z,S,N,_,O,P,A,M,j,V,z,U,B,H,W,K,Q=e.prefixCls,J=void 0===Q?"rc-menu":Q,ee=e.rootClassName,et=e.style,er=e.className,eo=e.tabIndex,ei=e.items,ea=e.children,el=e.direction,ec=e.id,es=e.mode,eu=void 0===es?"vertical":es,ef=e.inlineCollapsed,ed=e.disabled,ep=e.disabledOverflow,em=e.subMenuOpenDelay,eM=e.subMenuCloseDelay,ej=e.forceSubMenuRender,eL=e.defaultOpenKeys,eI=e.openKeys,eD=e.activeKey,ez=e.defaultActiveFirst,eU=e.selectable,eB=void 0===eU||eU,eH=e.multiple,eW=void 0!==eH&&eH,eq=e.defaultSelectedKeys,e$=e.selectedKeys,eK=e.onSelect,eG=e.onDeselect,eY=e.inlineIndent,eX=e.motion,eQ=e.defaultMotions,eJ=e.triggerSubMenuAction,e0=e.builtinPlacements,e1=e.itemIcon,e2=e.expandIcon,e4=e.overflowedIndicator,e6=void 0===e4?"...":e4,e5=e.overflowedIndicatorPopupClassName,e3=e.getPopupContainer,e8=e.onClick,e7=e.onOpenChange,e9=e.onKeyDown,te=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),tt=e._internalRenderSubMenuItem,tn=(0,c.Z)(e,eR),tr=s.useMemo(function(){var e;return e=ea,ei&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,$.Z)(t)){var o=t.label,i=t.children,a=t.key,l=t.type,u=(0,c.Z)(t,G),f=null!=a?a:"tmp-".concat(n);return i||"group"===l?"group"===l?s.createElement(eF,(0,r.Z)({key:f},u,{title:o}),e(i)):s.createElement(eh,(0,r.Z)({key:f},u,{title:o}),e(i)):"divider"===l?s.createElement(eV,(0,r.Z)({key:f},u)):s.createElement(q,(0,r.Z)({key:f},u),o)}return null}).filter(function(e){return e})}(ei)),Y(e,eA)},[ea,ei]),to=s.useState(!1),ti=(0,l.Z)(to,2),ta=ti[0],tl=ti[1],tc=s.useRef(),ts=(n=(0,h.Z)(ec,{value:ec}),d=(u=(0,l.Z)(n,2))[0],m=u[1],s.useEffect(function(){e_+=1;var e="".concat(eN,"-").concat(e_);m("rc-menu-uuid-".concat(e))},[]),d),tu="rtl"===el,tf=s.useMemo(function(){return("inline"===eu||"vertical"===eu)&&ef?["vertical",ef]:[eu,!1]},[eu,ef]),td=(0,l.Z)(tf,2),tp=td[0],th=td[1],tm=s.useState(0),tv=(0,l.Z)(tm,2),tg=tv[0],ty=tv[1],tb=tg>=tr.length-1||"horizontal"!==tp||ep,tw=(0,h.Z)(eL,{value:eI,postState:function(e){return e||eA}}),tx=(0,l.Z)(tw,2),tE=tx[0],tC=tx[1],tZ=function(e){tC(e),null==e7||e7(e)},tS=s.useState(tE),tk=(0,l.Z)(tS,2),tN=tk[0],t_=tk[1],tT="inline"===tp,tO=s.useRef(!1);s.useEffect(function(){tT&&t_(tE)},[tE]),s.useEffect(function(){tO.current&&(tT?tC(tN):tZ(eA))},[tT]),s.useEffect(function(){return tO.current=!0,function(){tO.current=!1}},[]);var tP=(g=s.useState({}),y=(0,l.Z)(g,2)[1],b=(0,s.useRef)(new Map),w=(0,s.useRef)(new Map),x=s.useState([]),C=(E=(0,l.Z)(x,2))[0],Z=E[1],S=(0,s.useRef)(0),N=(0,s.useRef)(!1),_=function(){N.current||y({})},O=(0,s.useCallback)(function(e,t){var n,r=eO(t);w.current.set(r,e),b.current.set(e,r),S.current+=1;var o=S.current;n=function(){o===S.current&&_()},Promise.resolve().then(n)},[]),P=(0,s.useCallback)(function(e,t){var n=eO(t);w.current.delete(n),b.current.delete(e)},[]),A=(0,s.useCallback)(function(e){Z(e)},[]),M=(0,s.useCallback)(function(e,t){var n=(b.current.get(e)||"").split(eT);return t&&C.includes(n[0])&&n.unshift(eP),n},[C]),j=(0,s.useCallback)(function(e,t){return e.some(function(e){return M(e,!0).includes(t)})},[M]),V=function(){var e=(0,a.Z)(b.current.keys());return C.length&&e.push(eP),e},z=(0,s.useCallback)(function(e){var t="".concat(b.current.get(e)).concat(eT),n=new Set;return(0,a.Z)(w.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(w.current.get(e))}),n},[]),s.useEffect(function(){return function(){N.current=!0}},[]),{registerPath:O,unregisterPath:P,refreshOverflowKeys:A,isSubPathKey:j,getKeyPath:M,getKeys:V,getSubPathKeys:z}),tR=tP.registerPath,tA=tP.unregisterPath,tM=tP.refreshOverflowKeys,tj=tP.isSubPathKey,tL=tP.getKeyPath,tI=tP.getKeys,tF=tP.getSubPathKeys,tV=s.useMemo(function(){return{registerPath:tR,unregisterPath:tA}},[tR,tA]),tD=s.useMemo(function(){return{isSubPathKey:tj}},[tj]);s.useEffect(function(){tM(tb?eA:tr.slice(tg+1).map(function(e){return e.key}))},[tg,tb]);var tz=(0,h.Z)(eD||ez&&(null===(W=tr[0])||void 0===W?void 0:W.key),{value:eD}),tU=(0,l.Z)(tz,2),tB=tU[0],tH=tU[1],tW=X(function(e){tH(e)}),tq=X(function(){tH(void 0)});(0,s.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,r,o,i=null!=tB?tB:null===(t=tr.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;i&&(null===(n=tc.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(F(ts,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}});var t$=(0,h.Z)(eq||[],{value:e$,postState:function(e){return Array.isArray(e)?e:null==e?eA:[e]}}),tK=(0,l.Z)(t$,2),tG=tK[0],tY=tK[1],tX=function(e){if(eB){var t,n=e.key,r=tG.includes(n);tY(t=eW?r?tG.filter(function(e){return e!==n}):[].concat((0,a.Z)(tG),[n]):[n]);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==eG||eG(o):null==eK||eK(o)}!eW&&tE.length&&"inline"!==tp&&tZ(eA)},tQ=X(function(e){null==e8||e8(T(e)),tX(e)}),tJ=X(function(e,t){var n=tE.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tp){var r=tF(e);n=n.filter(function(e){return!r.has(e)})}p()(tE,n)||tZ(n)}),t0=X(e3),t1=function(e,t){var n=null!=t?t:!tE.includes(e);tJ(e,n)},t2=(U=s.useRef(),(B=s.useRef()).current=tB,H=function(){en.Z.cancel(U.current)},s.useEffect(function(){return function(){H()}},[]),function(e){var t=e.which;if([].concat(eZ,[ew,ex,eE,eC]).includes(t)){var n=function(){return c=new Set,s=new Map,u=new Map,tI().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(F(ts,e),"']"));t&&(c.add(t),u.set(t,e),s.set(e,t))}),c};n();var r=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(s.get(tB),c),i=u.get(r),a=function(e,t,n,r){var i,a,l,c,s="prev",u="next",f="children",d="parent";if("inline"===e&&r===ew)return{inlineTrigger:!0};var p=(i={},(0,o.Z)(i,ey,s),(0,o.Z)(i,eb,u),i),h=(a={},(0,o.Z)(a,ev,n?u:s),(0,o.Z)(a,eg,n?s:u),(0,o.Z)(a,eb,f),(0,o.Z)(a,ew,f),a),m=(l={},(0,o.Z)(l,ey,s),(0,o.Z)(l,eb,u),(0,o.Z)(l,ew,f),(0,o.Z)(l,ex,d),(0,o.Z)(l,ev,n?f:d),(0,o.Z)(l,eg,n?d:f),l),v=null===(c=({inline:p,horizontal:h,vertical:m,inlineSub:p,horizontalSub:m,verticalSub:m})["".concat(e).concat(t?"":"Sub")])||void 0===c?void 0:c[r];switch(v){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(tp,1===tL(i,!0).length,tu,t);if(!a&&t!==eE&&t!==eC)return;(eZ.includes(t)||[eE,eC].includes(t))&&e.preventDefault();var l=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=u.get(e);tH(r),H(),U.current=(0,en.Z)(function(){B.current===r&&t.focus()})}};if([eE,eC].includes(t)||a.sibling||!r){var c,s,u,f,d=eS(f=r&&"inline"!==tp?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(r):tc.current,c);l(t===eE?d[0]:t===eC?d[d.length-1]:ek(f,c,r,a.offset))}else if(a.inlineTrigger)t1(i);else if(a.offset>0)t1(i,!0),H(),U.current=(0,en.Z)(function(){n();var e=r.getAttribute("aria-controls");l(ek(document.getElementById(e),c))},5);else if(a.offset<0){var p=tL(i,!0),h=p[p.length-2],m=s.get(h);t1(h,!1),l(m)}}null==e9||e9(e)});s.useEffect(function(){tl(!0)},[]);var t4=s.useMemo(function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:tt}},[te,tt]),t6="horizontal"!==tp||ep?tr:tr.map(function(e,t){return s.createElement(k,{key:e.key,overflowDisabled:t>tg},e)}),t5=s.createElement(v.Z,(0,r.Z)({id:ec,ref:tc,prefixCls:"".concat(J,"-overflow"),component:"ul",itemComponent:q,className:f()(J,"".concat(J,"-root"),"".concat(J,"-").concat(tp),er,(K={},(0,o.Z)(K,"".concat(J,"-inline-collapsed"),th),(0,o.Z)(K,"".concat(J,"-rtl"),tu),K),ee),dir:el,style:et,role:"menu",tabIndex:void 0===eo?0:eo,data:t6,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?tr.slice(-t):null;return s.createElement(eh,{eventKey:eP,title:e6,disabled:tb,internalPopupClose:0===t,popupClassName:e5},n)},maxCount:"horizontal"!==tp||ep?v.Z.INVALIDATE:v.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ty(e)},onKeyDown:t2},tn));return s.createElement(D.Provider,{value:t4},s.createElement(I.Provider,{value:ts},s.createElement(k,{prefixCls:J,rootClassName:ee,mode:tp,openKeys:tE,rtl:tu,disabled:ed,motion:ta?eX:null,defaultMotions:ta?eQ:null,activeKey:tB,onActive:tW,onInactive:tq,selectedKeys:tG,inlineIndent:void 0===eY?24:eY,subMenuOpenDelay:void 0===em?.1:em,subMenuCloseDelay:void 0===eM?.1:eM,forceSubMenuRender:ej,builtinPlacements:e0,triggerSubMenuAction:void 0===eJ?"hover":eJ,getPopupContainer:t0,itemIcon:e1,expandIcon:e2,onItemClick:tQ,onOpenChange:tJ},s.createElement(L.Provider,{value:tD},t5),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(R.Provider,{value:tV},tr)))))}),ej=["className","title","eventKey","children"],eL=["children"],eI=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,c.Z)(e,ej),a=s.useContext(S).prefixCls,l="".concat(a,"-item-group");return s.createElement("li",(0,r.Z)({},i,{onClick:function(e){return e.stopPropagation()},className:f()(l,t)}),s.createElement("div",{className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),s.createElement("ul",{className:"".concat(l,"-list")},o))};function eF(e){var t=e.children,n=(0,c.Z)(e,eL),r=Y(t,j(n.eventKey));return A()?r:s.createElement(eI,(0,E.Z)(n,["warnKey"]),r)}function eV(e){var t=e.className,n=e.style,r=s.useContext(S).prefixCls;return A()?null:s.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}var eD=eM;eD.Item=q,eD.SubMenu=eh,eD.ItemGroup=eF,eD.Divider=eV;var ez=eD},62874:function(e,t,n){"use strict";n.d(t,{V:function(){return ei},Z:function(){return ea}});var r,o,i,a=n(4942),l=n(1413),c=n(97685),s=n(71002),u=n(67294),f=n(34203),d=n(42550),p=n(94184),h=n.n(p),m=n(98924);function v(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var g=(r=(0,m.Z)(),o="undefined"!=typeof window?window:{},i={animationend:v("Animation","AnimationEnd"),transitionend:v("Transition","TransitionEnd")},!r||("AnimationEvent"in o||delete i.animationend.animation,"TransitionEvent"in o||delete i.transitionend.transition),i),y={};(0,m.Z)()&&(y=document.createElement("div").style);var b={};function w(e){if(b[e])return b[e];var t=g[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,L.Z)(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]},F=(0,m.Z)()?u.useLayoutEffect:u.useEffect,V=[R,A,M,"end"];function D(e){return e===M||"end"===e}var z=function(e,t){var n=(0,j.Z)(P),r=(0,c.Z)(n,2),o=r[0],i=r[1],a=I(),l=(0,c.Z)(a,2),s=l[0],f=l[1];return F(function(){if(o!==P&&"end"!==o){var e=V[V.indexOf(o)+1],n=t(o);!1===n?i(e,!0):s(function(t){function r(){t.isCanceled()||i(e,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,o]),u.useEffect(function(){return function(){f()}},[]),[function(){i(R,!0)},o]},U=function(e){var t=(0,u.useRef)(),n=(0,u.useRef)(e);n.current=e;var r=u.useCallback(function(e){n.current(e)},[]);function o(e){e&&(e.removeEventListener(S,r),e.removeEventListener(Z,r))}return u.useEffect(function(){return function(){o(t.current)}},[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(S,r),e.addEventListener(Z,r),t.current=e)},o]},B=n(15671),H=n(43144),W=n(60136),q=n(33643),$=function(e){(0,W.Z)(n,e);var t=(0,q.Z)(n);function n(){return(0,B.Z)(this,n),t.apply(this,arguments)}return(0,H.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component),K=function(e){var t=e;function n(e){return!!(e.motionName&&t)}"object"===(0,s.Z)(e)&&(t=e.transitionSupport);var r=u.forwardRef(function(e,t){var r,o,i,s=e.visible,p=void 0===s||s,m=e.removeOnLeave,v=e.forceRender,g=e.children,y=e.motionName,b=e.leavedClassName,w=e.eventProps,x=n(e),E=(0,u.useRef)(),C=(0,u.useRef)(),Z=function(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,s=r.motionAppear,f=void 0===s||s,d=r.motionLeave,p=void 0===d||d,h=r.motionDeadline,m=r.motionLeaveImmediately,v=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,w=r.onEnterStart,x=r.onLeaveStart,E=r.onAppearActive,C=r.onEnterActive,Z=r.onLeaveActive,S=r.onAppearEnd,k=r.onEnterEnd,P=r.onLeaveEnd,L=r.onVisibleChanged,I=(0,j.Z)(),V=(0,c.Z)(I,2),B=V[0],H=V[1],W=(0,j.Z)(N),q=(0,c.Z)(W,2),$=q[0],K=q[1],G=(0,j.Z)(null),Y=(0,c.Z)(G,2),X=Y[0],Q=Y[1],J=(0,u.useRef)(!1),ee=(0,u.useRef)(null),et=(0,u.useRef)(!1);function en(e){var t,r=n();if(!e||e.deadline||e.target===r){var o=et.current;$===_&&o?t=null==S?void 0:S(r,e):$===T&&o?t=null==k?void 0:k(r,e):$===O&&o&&(t=null==P?void 0:P(r,e)),$!==N&&o&&!1!==t&&(K(N,!0),Q(null,!0))}}var er=U(en),eo=(0,c.Z)(er,1)[0],ei=u.useMemo(function(){var e,t,n;switch($){case _:return e={},(0,a.Z)(e,R,v),(0,a.Z)(e,A,b),(0,a.Z)(e,M,E),e;case T:return t={},(0,a.Z)(t,R,g),(0,a.Z)(t,A,w),(0,a.Z)(t,M,C),t;case O:return n={},(0,a.Z)(n,R,y),(0,a.Z)(n,A,x),(0,a.Z)(n,M,Z),n;default:return{}}},[$]),ea=z($,function(e){if(e===R){var t,r=ei[R];return!!r&&r(n())}return es in ei&&Q((null===(t=ei[es])||void 0===t?void 0:t.call(ei,n(),null))||null),es===M&&(eo(n()),h>0&&(clearTimeout(ee.current),ee.current=setTimeout(function(){en({deadline:!0})},h))),!0}),el=(0,c.Z)(ea,2),ec=el[0],es=el[1],eu=D(es);et.current=eu,F(function(){H(t);var n,r=J.current;J.current=!0,e&&(!r&&t&&f&&(n=_),r&&t&&i&&(n=T),(r&&!t&&p||!r&&m&&!t&&p)&&(n=O),n&&(K(n),ec()))},[t]),(0,u.useEffect)(function(){($!==_||f)&&($!==T||i)&&($!==O||p)||K(N)},[f,i,p]),(0,u.useEffect)(function(){return function(){J.current=!1,clearTimeout(ee.current)}},[]);var ef=u.useRef(!1);(0,u.useEffect)(function(){B&&(ef.current=!0),void 0!==B&&$===N&&((ef.current||B)&&(null==L||L(B)),ef.current=!0)},[B,$]);var ed=X;return ei[R]&&es===A&&(ed=(0,l.Z)({transition:"none"},ed)),[$,es,ed,null!=B?B:t]}(x,p,function(){try{return E.current instanceof HTMLElement?E.current:(0,f.Z)(C.current)}catch(e){return null}},e),S=(0,c.Z)(Z,4),P=S[0],L=S[1],I=S[2],V=S[3],B=u.useRef(V);V&&(B.current=!0);var H=u.useCallback(function(e){E.current=e,(0,d.mH)(t,e)},[t]),W=(0,l.Z)((0,l.Z)({},w),{},{visible:p});return g?P!==N&&n(e)?(L===R?i="prepare":D(L)?i="active":L===A&&(i="start"),r=g((0,l.Z)((0,l.Z)({},W),{},{className:h()(k(y,P),(o={},(0,a.Z)(o,k(y,"".concat(P,"-").concat(i)),i),(0,a.Z)(o,y,"string"==typeof y),o)),style:I}),H)):r=V?g((0,l.Z)({},W),H):!(void 0===m||m)&&B.current?g((0,l.Z)((0,l.Z)({},W),{},{className:b}),H):v?g((0,l.Z)((0,l.Z)({},W),{},{style:{display:"none"}}),H):null:r=null,u.isValidElement(r)&&(0,d.Yr)(r)&&!r.ref&&(r=u.cloneElement(r,{ref:H})),u.createElement($,{ref:C},r)});return r.displayName="CSSMotion",r}(C),G=n(87462),Y=n(45987),X="keep",Q="remove",J="removed";function ee(e){var t;return t=e&&"object"===(0,s.Z)(e)&&"key"in e?e:{key:e},(0,l.Z)((0,l.Z)({},t),{},{key:String(t.key)})}function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ee)}var en=["component","children","onVisibleChanged","onAllRemoved"],er=["status"],eo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ei=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,n=function(e){(0,W.Z)(r,e);var n=(0,q.Z)(r);function r(){var e;(0,B.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=et(e),a=et(t);i.forEach(function(e){for(var t=!1,i=r;i1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==Q})).forEach(function(t){t.key===e&&(t.status=X)})}),n})(r,et(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==J||e.status!==Q})}}}]),r}(u.Component);return n.defaultProps={component:"div"},n}(C),ea=K},51784:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(87462),o=n(4942),i=n(15671),a=n(43144),l=n(60136),c=n(33643),s=n(67294),u=n(73935),f=n(94184),d=n.n(f),p=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var r=arguments.length,o=Array(r),a=0;a=a&&(o.key=l[0].notice.key,o.updateMark=w(),o.userPassKey=r,l.shift()),l.push({notice:o,holderCallback:n})),{notices:l}})},e.remove=function(t){e.setState(function(e){return{notices:e.notices.filter(function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t})}})},e.noticePropsMap={},e}return(0,l.Z)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,a=n.className,l=n.closeIcon,c=n.style,s=[];return t.forEach(function(n,o){var a=n.notice,c=n.holderCallback,u=o===t.length-1?a.updateMark:void 0,f=a.key,d=a.userPassKey,p=(0,i.Z)((0,i.Z)((0,i.Z)({prefixCls:r,closeIcon:l},a),a.props),{},{key:f,noticeKey:d||f,updateMark:u,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});s.push(f),e.noticePropsMap[f]={props:p,holderCallback:c}}),u.createElement("div",{className:p()(r,a),style:c},u.createElement(h.V,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},function(t){var n=t.key,a=t.className,l=t.style,c=t.visible,s=e.noticePropsMap[n],f=s.props,d=s.holderCallback;return d?u.createElement("div",{key:n,className:p()(a,"".concat(r,"-hook-holder")),style:(0,i.Z)({},l),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),d(t,f)):e.hookRefs.delete(n))}}):u.createElement(m.Z,(0,o.Z)({},f,{className:p()(a,null==f?void 0:f.className),style:(0,i.Z)((0,i.Z)({},l),null==f?void 0:f.style),visible:c}))}))}}]),n}(u.Component);x.newInstance=void 0,x.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},x.newInstance=function(e,t){var n=e||{},i=n.getContainer,a=(0,r.Z)(n,g),l=document.createElement("div");i?i().appendChild(l):document.body.appendChild(l);var c=!1;(0,f.s)(u.createElement(x,(0,o.Z)({},a,{ref:function(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){(0,f.v)(l),l.parentNode&&l.parentNode.removeChild(l)},useNotification:function(){return(0,v.Z)(e)}}))}})),l)};var E=x},51550:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(74902),o=n(87462),i=n(97685),a=n(67294),l=n(51784);function c(e){var t=a.useRef({}),n=a.useState([]),c=(0,i.Z)(n,2),s=c[0],u=c[1];return[function(n){var i=!0;e.add(n,function(e,n){var c=n.key;if(e&&(!t.current[c]||i)){var s=a.createElement(l.Z,(0,o.Z)({},n,{holder:e}));t.current[c]=s,u(function(e){var t=e.findIndex(function(e){return e.key===n.key});if(-1===t)return[].concat((0,r.Z)(e),[s]);var o=(0,r.Z)(e);return o[t]=s,o})}i=!1})},a.createElement(a.Fragment,null,s)]}},34243:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(87462),o=n(1413),i=n(97685),a=n(45987),l=n(67294),c=n(94184),s=n.n(c),u=n(48555),f=n(8410),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0,h=l.forwardRef(function(e,t){var n,i=e.prefixCls,c=e.invalidate,f=e.item,h=e.renderItem,m=e.responsive,v=e.responsiveDisabled,g=e.registerSize,y=e.itemKey,b=e.className,w=e.style,x=e.children,E=e.display,C=e.order,Z=e.component,S=(0,a.Z)(e,d),k=m&&!E;l.useEffect(function(){return function(){g(y,null)}},[]);var N=h&&f!==p?h(f):x;c||(n={opacity:k?0:1,height:k?0:p,overflowY:k?"hidden":p,order:m?C:p,pointerEvents:k?"none":p,position:k?"absolute":p});var _={};k&&(_["aria-hidden"]=!0);var T=l.createElement(void 0===Z?"div":Z,(0,r.Z)({className:s()(!c&&i,b),style:(0,o.Z)((0,o.Z)({},n),w)},_,S,{ref:t}),N);return m&&(T=l.createElement(u.default,{onResize:function(e){g(y,e.offsetWidth)},disabled:v},T)),T});h.displayName="Item";var m=n(75164),v=n(30470),g=["component"],y=["className"],b=["className"],w=function(e,t){var n=l.useContext(C);if(!n){var o=e.component,i=(0,a.Z)(e,g);return l.createElement(void 0===o?"div":o,(0,r.Z)({},i,{ref:t}))}var c=n.className,u=(0,a.Z)(n,y),f=e.className,d=(0,a.Z)(e,b);return l.createElement(C.Provider,{value:null},l.createElement(h,(0,r.Z)({ref:t,className:s()(c,f)},u,d)))},x=l.forwardRef(w);x.displayName="RawItem";var E=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],C=l.createContext(null),Z="responsive",S="invalidate";function k(e){return"+ ".concat(e.length," ...")}var N=l.forwardRef(function(e,t){var n,c,d,p,g,y,b=e.prefixCls,w=void 0===b?"rc-overflow":b,x=e.data,N=void 0===x?[]:x,_=e.renderItem,T=e.renderRawItem,O=e.itemKey,P=e.itemWidth,R=void 0===P?10:P,A=e.ssr,M=e.style,j=e.className,L=e.maxCount,I=e.renderRest,F=e.renderRawRest,V=e.suffix,D=e.component,z=e.itemComponent,U=e.onVisibleChange,B=(0,a.Z)(e,E),H=(n=(0,v.Z)({}),c=(0,i.Z)(n,2)[1],d=(0,l.useRef)([]),p=0,g=0,function(e){var t=p;return p+=1,d.current.lengthL,eR=(0,l.useMemo)(function(){var e=N;return eT?e=null===K&&W?N:N.slice(0,Math.min(N.length,Y/R)):"number"==typeof L&&(e=N.slice(0,L)),e},[N,R,K,L,eT]),eA=(0,l.useMemo)(function(){return eT?N.slice(ex+1):N.slice(eR.length)},[N,eR,eT,ex]),eM=(0,l.useCallback)(function(e,t){var n;return"function"==typeof O?O(e):null!==(n=O&&(null==e?void 0:e[O]))&&void 0!==n?n:t},[O]),ej=(0,l.useCallback)(_||function(e){return e},[_]);function eL(e,t,n){(eb!==e||void 0!==t&&t!==em)&&(ew(e),n||(eS(eY){eL(r-1,e-o-ef+el);break}}V&&eF(0)+ef>Y&&ev(null)}},[Y,J,el,ef,eM,eR]);var eV=eZ&&!!eA.length,eD={};null!==em&&eT&&(eD={position:"absolute",left:em,top:0});var ez={prefixCls:ek,responsive:eT,component:z,invalidate:eO},eU=T?function(e,t){var n=eM(e,t);return l.createElement(C.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},ez),{},{order:t,item:e,itemKey:n,registerSize:eI,display:t<=ex})},T(e,t))}:function(e,t){var n=eM(e,t);return l.createElement(h,(0,r.Z)({},ez,{order:t,key:n,item:e,renderItem:ej,itemKey:n,registerSize:eI,display:t<=ex}))},eB={order:eV?ex:Number.MAX_SAFE_INTEGER,className:"".concat(ek,"-rest"),registerSize:function(e,t){ec(t),eo(el)},display:eV};if(F)F&&(y=l.createElement(C.Provider,{value:(0,o.Z)((0,o.Z)({},ez),eB)},F(eA)));else{var eH=I||k;y=l.createElement(h,(0,r.Z)({},ez,eB),"function"==typeof eH?eH(eA):eH)}var eW=l.createElement(void 0===D?"div":D,(0,r.Z)({className:s()(!eO&&w,j),style:M,ref:t},B),eR.map(eU),eP?y:null,V&&l.createElement(h,(0,r.Z)({},ez,{responsive:e_,responsiveDisabled:!eT,order:ex,className:"".concat(ek,"-suffix"),registerSize:function(e,t){ed(t)},display:!0,style:eD}),V));return e_&&(eW=l.createElement(u.default,{onResize:function(e,t){G(t.clientWidth)},disabled:!eT},eW)),eW});N.displayName="Overflow",N.Item=x,N.RESPONSIVE=Z,N.INVALIDATE=S;var _=N},62906:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},48555:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(87462),o=n(67294),i=n(50344);n(80334);var a=n(1413),l=n(42550),c=n(34203),s=n(91033),u=new Map,f=new s.Z(function(e){e.forEach(function(e){var t,n=e.target;null===(t=u.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),d=n(15671),p=n(43144),h=n(60136),m=n(33643),v=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),g=o.createContext(null);function y(e){var t=e.children,n=e.disabled,r=o.useRef(null),i=o.useRef(null),s=o.useContext(g),d="function"==typeof t,p=d?t(r):t,h=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!d&&o.isValidElement(p)&&(0,l.Yr)(p),y=m?p.ref:null,b=o.useMemo(function(){return(0,l.sQ)(y,r)},[y,r]),w=o.useRef(e);w.current=e;var x=o.useCallback(function(e){var t=w.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,c=e.offsetWidth,u=e.offsetHeight,f=Math.floor(i),d=Math.floor(l);if(h.current.width!==f||h.current.height!==d||h.current.offsetWidth!==c||h.current.offsetHeight!==u){var p={width:f,height:d,offsetWidth:c,offsetHeight:u};h.current=p;var m=(0,a.Z)((0,a.Z)({},p),{},{offsetWidth:c===Math.round(i)?i:c,offsetHeight:u===Math.round(l)?l:u});null==s||s(m,e,r),n&&Promise.resolve().then(function(){n(m,e)})}},[]);return o.useEffect(function(){var e=(0,c.Z)(r.current)||(0,c.Z)(i.current);return e&&!n&&(u.has(e)||(u.set(e,new Set),f.observe(e)),u.get(e).add(x)),function(){u.has(e)&&(u.get(e).delete(x),u.get(e).size||(f.unobserve(e),u.delete(e)))}},[r.current,n]),o.createElement(v,{ref:i},m?o.cloneElement(p,{ref:b}):p)}function b(e){var t=e.children;return("function"==typeof t?[t]:(0,i.Z)(t)).map(function(t,n){var i=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return o.createElement(y,(0,r.Z)({},e,{key:i}),t)})}b.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(g),l=o.useCallback(function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){l===r.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,o)},[n,a]);return o.createElement(g.Provider,{value:l},t)};var w=b},57239:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return Z},default:function(){return S}});var r,o=n(87462),i=n(15671),a=n(43144),l=n(60136),c=n(33643),s=n(67294),u=n(4942),f=n(1413),d=n(71002),p=n(97685),h=n(45987),m=n(48555),v=n(8410),g=n(75164),y=n(21770),b=n(94184),w=n.n(b),x=["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"],E={},C=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Z=s.forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-textarea":n,a=(e.onPressEnter,e.defaultValue),l=e.value,c=e.autoSize,b=e.onResize,Z=e.className,S=e.style,k=e.disabled,N=e.onChange,_=(e.onInternalAutoSize,(0,h.Z)(e,C)),T=(0,y.Z)(a,{value:l,postState:function(e){return null!=e?e:""}}),O=(0,p.Z)(T,2),P=O[0],R=O[1],A=function(e){R(e.target.value),null==N||N(e)},M=s.useRef();s.useImperativeHandle(t,function(){return{textArea:M.current}});var j=s.useMemo(function(){return c&&"object"===(0,d.Z)(c)?[c.minRows,c.maxRows]:[]},[c]),L=(0,p.Z)(j,2),I=L[0],F=L[1],V=!!c,D=function(){try{if(document.activeElement===M.current){var e=M.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;M.current.setSelectionRange(t,n),M.current.scrollTop=r}}catch(o){}},z=s.useState(2),U=(0,p.Z)(z,2),B=U[0],H=U[1],W=s.useState(),q=(0,p.Z)(W,2),$=q[0],K=q[1],G=function(){H(0)};(0,v.Z)(function(){V&&G()},[l,I,F,V]),(0,v.Z)(function(){if(0===B)H(1);else if(1===B){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var a=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&&E[n])return E[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:x.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(E[n]=l),l}(e,n),l=a.paddingSize,c=a.borderSize,s=a.boxSizing,u=a.sizingStyle;r.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")),r.value=e.value||e.placeholder||"";var f=void 0,d=void 0,p=r.scrollHeight;if("border-box"===s?p+=c:"content-box"===s&&(p-=l),null!==o||null!==i){r.value=" ";var h=r.scrollHeight-l;null!==o&&(f=h*o,"border-box"===s&&(f=f+l+c),p=Math.max(f,p)),null!==i&&(d=h*i,"border-box"===s&&(d=d+l+c),t=p>d?"":"hidden",p=Math.min(d,p))}var m={height:p,overflowY:t,resize:"none"};return f&&(m.minHeight=f),d&&(m.maxHeight=d),m}(M.current,!1,I,F);H(2),K(e)}else D()},[B]);var Y=s.useRef(),X=function(){g.Z.cancel(Y.current)},Q=function(e){2===B&&(null==b||b(e),c&&(X(),Y.current=(0,g.Z)(function(){G()})))};s.useEffect(function(){return X},[]);var J=(0,f.Z)((0,f.Z)({},S),V?$:null);return(0===B||1===B)&&(J.overflowY="hidden",J.overflowX="hidden"),s.createElement(m.default,{onResize:Q,disabled:!(c||b)},s.createElement("textarea",(0,o.Z)({},_,{ref:M,style:J,className:w()(i,Z,(0,u.Z)({},"".concat(i,"-disabled"),k)),disabled:k,value:P,onChange:A})))}),S=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){(0,i.Z)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var r,o=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return(0,a.Z)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return s.createElement(Z,(0,o.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(s.Component)},43763:function(e,t,n){"use strict";n.r(t),n.d(t,{Popup:function(){return d},default:function(){return h}});var r=n(87462),o=n(71002),i=n(1413),a=n(45987),l=n(67294),c=n(81263),s=n(43159),u=n(94184),f=n.n(u);function d(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,i=e.id,a=e.overlayInnerStyle,c=e.className,s=e.style;return l.createElement("div",{className:f()("".concat(o,"-content"),c),style:s},!1!==t&&l.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),l.createElement("div",{className:"".concat(o,"-inner"),id:i,role:"tooltip",style:a},"function"==typeof r?r():r))}var p=function(e,t){var n=e.overlayClassName,u=e.trigger,f=e.mouseEnterDelay,p=e.mouseLeaveDelay,h=e.overlayStyle,m=e.prefixCls,v=void 0===m?"rc-tooltip":m,g=e.children,y=e.onVisibleChange,b=e.afterVisibleChange,w=e.transitionName,x=e.animation,E=e.motion,C=e.placement,Z=e.align,S=e.destroyTooltipOnHide,k=void 0!==S&&S,N=e.defaultVisible,_=e.getTooltipContainer,T=e.overlayInnerStyle,O=e.arrowContent,P=e.overlay,R=e.id,A=e.showArrow,M=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),j=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return j.current});var L=(0,i.Z)({},M);"visible"in e&&(L.popupVisible=e.visible);var I=function(){return l.createElement(d,{showArrow:A,arrowContent:O,key:"content",prefixCls:v,id:R,overlayInnerStyle:T},P)},F=!1,V=!1;if("boolean"==typeof k)F=k;else if(k&&"object"===(0,o.Z)(k)){var D=k.keepParent;F=!0===D,V=!1===D}return l.createElement(c.Z,(0,r.Z)({popupClassName:n,prefixCls:v,popup:I,action:void 0===u?["hover"]:u,builtinPlacements:s.C,popupPlacement:void 0===C?"right":C,ref:j,popupAlign:void 0===Z?{}:Z,getPopupContainer:_,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:w,popupAnimation:x,popupMotion:E,defaultPopupVisible:N,destroyPopupOnHide:F,autoDestroy:V,mouseLeaveDelay:void 0===p?.1:p,popupStyle:h,mouseEnterDelay:void 0===f?0:f},L),g)},h=(0,l.forwardRef)(p)},43159:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},81263:function(e,t,n){"use strict";n.d(t,{Z:function(){return eJ}});var r,o,i,a=n(1413),l=n(87462),c=n(15671),s=n(43144),u=n(97326),f=n(60136),d=n(33643),p=n(4942),h=n(67294),m=n(73935),v=n(75164),g=n(94999),y=n(34203),b=n(42550),w=n(64019),x=n(98924),E=(0,h.forwardRef)(function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=(0,h.useRef)(),a=(0,h.useRef)();(0,h.useImperativeHandle)(t,function(){return{}});var l=(0,h.useRef)(!1);return!l.current&&(0,x.Z)()&&(a.current=r(),i.current=a.current.parentNode,l.current=!0),(0,h.useEffect)(function(){null==n||n(e)}),(0,h.useEffect)(function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var e,t;null===(e=a.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(a.current)}},[]),a.current?m.createPortal(o,a.current):null}),C=n(94184),Z=n.n(C),S=n(97685),k=n(45987),N=n(31131),_=n(62874);function T(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function O(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,o=e.mask,i=e.maskMotion,c=e.maskAnimation,s=e.maskTransitionName;if(!o)return null;var u={};return(i||s||c)&&(u=(0,a.Z)({motionAppear:!0},T({motion:i,prefixCls:t,transitionName:s,animation:c}))),h.createElement(_.Z,(0,l.Z)({},u,{visible:n,removeOnLeave:!0}),function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:Z()("".concat(t,"-mask"),n)})})}var P=n(71002),R=n(5110);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;tNumber(c))&&(c=e.style[t]||0),c=parseFloat(c)||0),void 0===r&&(r=l?1:-1);var s=void 0!==a||l,u=a||c;return -1===r?s?u-ec(e,["border","padding"],o):c:s?1===r?u:u+(2===r?-ec(e,["border"],o):ec(e,["margin"],o)):c+ec(e,el.slice(r),o)}ei(["Width","Height"],function(e){es["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],es["viewport".concat(e)](n))},es["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var ef={position:"absolute",visibility:"hidden",display:"block"};function ed(){for(var e,t=arguments.length,n=Array(t),r=0;r=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function eb(e){if(eh.isWindow(e)||9===e.nodeType){var t,n,r,o=eh.getWindow(e);t={left:eh.getWindowScrollLeft(o),top:eh.getWindowScrollTop(o)},n=eh.viewportWidth(o),r=eh.viewportHeight(o)}else t=eh.offset(e),n=eh.outerWidth(e),r=eh.outerHeight(e);return t.width=n,t.height=r,t}function ew(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,l=e.top;return"c"===n?l+=i/2:"b"===n&&(l+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:l}}function ex(e,t,n,r,o){var i=ew(t,n[1]),a=ew(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function eE(e,t,n){return e.leftn.right}function eC(e,t,n){return e.topn.bottom}function eZ(e,t,n){var r=[];return eh.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function eS(e,t){return e[t]=-e[t],e}function ek(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function eN(e,t){e[0]=ek(e[0],t.width),e[1]=ek(e[1],t.height)}function e_(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],l=n.overflow,c=n.source||e;i=[].concat(i),a=[].concat(a);var s={},u=0,f=ey(c,!!(l=l||{}).alwaysByViewport),d=eb(c);eN(i,d),eN(a,t);var p=ex(d,t,o,i,a),h=eh.merge(d,p);if(f&&(l.adjustX||l.adjustY)&&r){if(l.adjustX&&eE(p,d,f)){var m,v,g,y,b=eZ(o,/[lr]/gi,{l:"r",r:"l"}),w=eS(i,0),x=eS(a,0);(y=ex(d,t,b,w,x)).left>f.right||y.left+d.widthf.bottom||E.top+d.height=f.left&&v.left+g.width>f.right&&(g.width-=v.left+g.width-f.right),s.adjustX&&v.left+g.width>f.right&&(v.left=Math.max(f.right-g.width,f.left)),s.adjustY&&v.top=f.top&&v.top+g.height>f.bottom&&(g.height-=v.top+g.height-f.bottom),s.adjustY&&v.top+g.height>f.bottom&&(v.top=Math.max(f.bottom-g.height,f.top)),h=eh.mix(v,g))}return h.width!==d.width&&eh.css(c,"width",eh.width(c)+h.width-d.width),h.height!==d.height&&eh.css(c,"height",eh.height(c)+h.height-d.height),eh.offset(c,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function eT(e,t,n){var r,o,i=n.target||t,a=eb(i),l=(r=ey(i,n.overflow&&n.overflow.alwaysByViewport),o=eb(i),!!r&&!(o.left+o.width<=r.left)&&!(o.top+o.height<=r.top)&&!(o.left>=r.right)&&!(o.top>=r.bottom));return e_(e,a,n,l)}eT.__getOffsetParent=ev,eT.__getVisibleRectForElement=ey;var eO=n(18446),eP=n.n(eO),eR=n(91033);function eA(e,t){var n=null,r=null,o=new eR.Z(function(e){var o=(0,S.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,l=i.height,c=Math.floor(a),s=Math.floor(l);(n!==c||r!==s)&&Promise.resolve().then(function(){t({width:c,height:s})}),n=c,r=s}});return e&&o.observe(e),function(){o.disconnect()}}var eM=function(e,t){var n=h.useRef(!1),r=h.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout(function(){n.current=!1,i()},t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}},function(){n.current=!1,o()}]};function ej(e){return"function"!=typeof e?null:e()}function eL(e){return"object"===(0,P.Z)(e)&&e?e:null}var eI=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,l=e.monitorWindowResize,c=e.monitorBufferTime,s=h.useRef({}),u=h.useRef(),f=h.Children.only(n),d=h.useRef({});d.current.disabled=r,d.current.target=o,d.current.align=i,d.current.onAlign=a;var p=eM(function(){var e=d.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a,l,c,f,p,h,m,v,y,b,w=u.current,x=ej(n),E=eL(n);s.current.element=x,s.current.point=E,s.current.align=r;var C=document.activeElement;return x&&(0,R.Z)(x)?b=eT(w,x,r):E&&(c=(l=eh.getDocument(w)).defaultView||l.parentWindow,f=eh.getWindowScrollLeft(c),p=eh.getWindowScrollTop(c),h=eh.viewportWidth(c),m=eh.viewportHeight(c),v={left:i="pageX"in E?E.pageX:f+E.clientX,top:a="pageY"in E?E.pageY:p+E.clientY,width:0,height:0},y=[r.points[0],"cc"],b=e_(w,v,M(M({},r),{},{points:y}),i>=0&&i<=f+h&&a>=0&&a<=p+m)),C!==document.activeElement&&(0,g.Z)(w,C)&&"function"==typeof C.focus&&C.focus(),o&&b&&o(w,b),!0}return!1},void 0===c?0:c),m=(0,S.Z)(p,2),v=m[0],y=m[1],x=h.useRef({cancel:function(){}}),E=h.useRef({cancel:function(){}});h.useEffect(function(){var e,t=ej(o),n=eL(o);u.current!==E.current.element&&(E.current.cancel(),E.current.element=u.current,E.current.cancel=eA(u.current,v)),s.current.element===t&&((e=s.current.point)===n||e&&n&&("pageX"in n&&"pageY"in n?e.pageX===n.pageX&&e.pageY===n.pageY:"clientX"in n&&"clientY"in n&&e.clientX===n.clientX&&e.clientY===n.clientY))&&eP()(s.current.align,i)||(v(),x.current.element!==t&&(x.current.cancel(),x.current.element=t,x.current.cancel=eA(t,v)))}),h.useEffect(function(){r?y():v()},[r]);var C=h.useRef(null);return h.useEffect(function(){l?C.current||(C.current=(0,w.Z)(window,"resize",v)):C.current&&(C.current.remove(),C.current=null)},[l]),h.useEffect(function(){return function(){x.current.cancel(),E.current.cancel(),C.current&&C.current.remove(),y()}},[]),h.useImperativeHandle(t,function(){return{forceAlign:function(){return v(!0)}}}),h.isValidElement(f)&&(f=h.cloneElement(f,{ref:(0,b.sQ)(f.ref,u)})),f},eF=h.forwardRef(eI);eF.displayName="Align";var eV=n(8410),eD=n(74165),ez=n(15861),eU=n(30470),eB=["measure","alignPre","align",null,"motion"],eH=function(e,t){var n=(0,eU.Z)(null),r=(0,S.Z)(n,2),o=r[0],i=r[1],a=(0,h.useRef)();function l(){v.Z.cancel(a.current)}return(0,h.useEffect)(function(){i("measure",!0)},[e]),(0,h.useEffect)(function(){"measure"===o&&t(),o&&(a.current=(0,v.Z)((0,ez.Z)((0,eD.Z)().mark(function e(){var t,n;return(0,eD.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(n=eB[(t=eB.indexOf(o))+1])&&-1!==t&&i(n,!0);case 3:case"end":return e.stop()}},e)}))))},[o]),(0,h.useEffect)(function(){return function(){l()}},[]),[o,function(e){l(),a.current=(0,v.Z)(function(){i(function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e},!0),null==e||e()})}]},eW=function(e){var t=h.useState({width:0,height:0}),n=(0,S.Z)(t,2),r=n[0],o=n[1];return[h.useMemo(function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t},[e,r]),function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]},eq=h.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,c=e.children,s=e.zIndex,u=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,p=e.align,m=e.point,v=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,b=e.onMouseEnter,w=e.onMouseLeave,x=e.onMouseDown,E=e.onTouchStart,C=e.onClick,k=(0,h.useRef)(),N=(0,h.useRef)(),O=(0,h.useState)(),P=(0,S.Z)(O,2),R=P[0],A=P[1],M=eW(u),j=(0,S.Z)(M,2),L=j[0],I=j[1],F=eH(n,function(){u&&I(v())}),V=(0,S.Z)(F,2),D=V[0],z=V[1],U=(0,h.useState)(0),B=(0,S.Z)(U,2),H=B[0],W=B[1],q=(0,h.useRef)();function $(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function K(e,t){var n=g(t);R!==n&&A(n),W(function(e){return e+1}),"align"===D&&(null==y||y(e,t))}(0,eV.Z)(function(){"alignPre"===D&&W(0)},[D]),(0,eV.Z)(function(){"align"===D&&(H<3?$():z(function(){var e;null===(e=q.current)||void 0===e||e.call(q)}))},[H]);var G=(0,a.Z)({},T(e));function Y(){return new Promise(function(e){q.current=e})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(e){var t=G[e];G[e]=function(e,n){return z(),null==t?void 0:t(e,n)}}),h.useEffect(function(){G.motionName||"motion"!==D||z()},[G.motionName,D]),h.useImperativeHandle(t,function(){return{forceAlign:$,getElement:function(){return N.current}}});var X=(0,a.Z)((0,a.Z)({},L),{},{zIndex:s,opacity:"motion"!==D&&"stable"!==D&&n?0:void 0,pointerEvents:n||"stable"===D?void 0:"none"},i),Q=!0;null!=p&&p.points&&("align"===D||"stable"===D)&&(Q=!1);var J=c;return h.Children.count(c)>1&&(J=h.createElement("div",{className:"".concat(r,"-content")},c)),h.createElement(_.Z,(0,l.Z)({visible:n,ref:N,leavedClassName:"".concat(r,"-hidden")},G,{onAppearPrepare:Y,onEnterPrepare:Y,removeOnLeave:f,forceRender:d}),function(e,t){var n=e.className,i=e.style,l=Z()(r,o,R,n);return h.createElement(eF,{target:m||v,key:"popup",ref:k,monitorWindowResize:!0,disabled:Q,align:p,onAlign:K},h.createElement("div",{ref:t,className:l,onMouseEnter:b,onMouseLeave:w,onMouseDownCapture:x,onTouchStartCapture:E,onClick:C,style:(0,a.Z)((0,a.Z)({},i),X)},J))})});eq.displayName="PopupInner";var e$=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,c=e.mobile,s=(c=void 0===c?{}:c).popupClassName,u=c.popupStyle,f=c.popupMotion,d=c.popupRender,p=e.onClick,m=h.useRef();h.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return m.current}}});var v=(0,a.Z)({zIndex:o},u),g=i;return h.Children.count(i)>1&&(g=h.createElement("div",{className:"".concat(n,"-content")},i)),d&&(g=d(g)),h.createElement(_.Z,(0,l.Z)({visible:r,ref:m,removeOnLeave:!0},void 0===f?{}:f),function(e,t){var r=e.className,o=e.style,i=Z()(n,s,r);return h.createElement("div",{ref:t,className:i,onClick:p,style:(0,a.Z)((0,a.Z)({},o),v)},g)})});e$.displayName="MobilePopupInner";var eK=["visible","mobile"],eG=h.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=(0,k.Z)(e,eK),i=(0,h.useState)(n),c=(0,S.Z)(i,2),s=c[0],u=c[1],f=(0,h.useState)(!1),d=(0,S.Z)(f,2),p=d[0],m=d[1],v=(0,a.Z)((0,a.Z)({},o),{},{visible:s});(0,h.useEffect)(function(){u(n),n&&r&&m((0,N.Z)())},[n,r]);var g=p?h.createElement(e$,(0,l.Z)({},v,{mobile:r,ref:t})):h.createElement(eq,(0,l.Z)({},v,{ref:t}));return h.createElement("div",null,h.createElement(O,v),g)});eG.displayName="Popup";var eY=h.createContext(null);function eX(){}var eQ=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],eJ=(r=function(e){(0,f.Z)(n,e);var t=(0,d.Z)(n);function n(e){var r,o;return(0,c.Z)(this,n),r=t.call(this,e),(0,p.Z)((0,u.Z)(r),"popupRef",h.createRef()),(0,p.Z)((0,u.Z)(r),"triggerRef",h.createRef()),(0,p.Z)((0,u.Z)(r),"portalContainer",void 0),(0,p.Z)((0,u.Z)(r),"attachId",void 0),(0,p.Z)((0,u.Z)(r),"clickOutsideHandler",void 0),(0,p.Z)((0,u.Z)(r),"touchOutsideHandler",void 0),(0,p.Z)((0,u.Z)(r),"contextMenuOutsideHandler1",void 0),(0,p.Z)((0,u.Z)(r),"contextMenuOutsideHandler2",void 0),(0,p.Z)((0,u.Z)(r),"mouseDownTimeout",void 0),(0,p.Z)((0,u.Z)(r),"focusTime",void 0),(0,p.Z)((0,u.Z)(r),"preClickTime",void 0),(0,p.Z)((0,u.Z)(r),"preTouchTime",void 0),(0,p.Z)((0,u.Z)(r),"delayTimer",void 0),(0,p.Z)((0,u.Z)(r),"hasPopupMouseDown",void 0),(0,p.Z)((0,u.Z)(r),"onMouseEnter",function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)}),(0,p.Z)((0,u.Z)(r),"onMouseMove",function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)}),(0,p.Z)((0,u.Z)(r),"onMouseLeave",function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)}),(0,p.Z)((0,u.Z)(r),"onPopupMouseEnter",function(){r.clearDelayTimer()}),(0,p.Z)((0,u.Z)(r),"onPopupMouseLeave",function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,g.Z)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)}),(0,p.Z)((0,u.Z)(r),"onFocus",function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))}),(0,p.Z)((0,u.Z)(r),"onMouseDown",function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()}),(0,p.Z)((0,u.Z)(r),"onTouchStart",function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()}),(0,p.Z)((0,u.Z)(r),"onBlur",function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)}),(0,p.Z)((0,u.Z)(r),"onContextMenu",function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)}),(0,p.Z)((0,u.Z)(r),"onContextMenuClose",function(){r.isContextMenuToShow()&&r.close()}),(0,p.Z)((0,u.Z)(r),"onClick",function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),20>Math.abs(t-r.focusTime))return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)}),(0,p.Z)((0,u.Z)(r),"onPopupMouseDown",function(){if(r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout(function(){r.hasPopupMouseDown=!1},0),r.context){var e;(e=r.context).onPopupMouseDown.apply(e,arguments)}}),(0,p.Z)((0,u.Z)(r),"onDocumentClick",function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(!(0,g.Z)(n,t)||r.isContextMenuOnly())&&!(0,g.Z)(o,t)&&!r.hasPopupMouseDown&&r.close()}}),(0,p.Z)((0,u.Z)(r),"getRootDomNode",function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,y.Z)(r.triggerRef.current);if(t)return t}catch(n){}return m.findDOMNode((0,u.Z)(r))}),(0,p.Z)((0,u.Z)(r),"getPopupClassNameFromAlign",function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,l=n.alignPoint,c=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},i=[];return r.Children.forEach(t,function(t){(null!=t||n.keepEmpty)&&(Array.isArray(t)?i=i.concat(e(t)):(0,o.isFragment)(t)&&t.props?i=i.concat(e(t.props.children,n)):i.push(t))}),i}}});var r=n(67294),o=n(11805)},64019:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(73935);function o(e,t,n,o){var i=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i,o)}}}},98924:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},44958:function(e,t,n){"use strict";n.d(t,{hq:function(){return p},jL:function(){return d}});var r=n(98924),o=n(94999),i="data-rc-order",a=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function s(e){return Array.from((a.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,a=document.createElement("style");a.setAttribute(i,"queue"===o?"prependQueue":o?"prepend":"append"),(null==n?void 0:n.nonce)&&(a.nonce=null==n?void 0:n.nonce),a.innerHTML=e;var l=c(t),u=l.firstChild;if(o){if("queue"===o){var f=s(l).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(i))});if(f.length)return l.insertBefore(a,f[f.length-1].nextSibling),a}l.insertBefore(a,u)}else l.appendChild(a);return a}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(c(t)).find(function(n){return n.getAttribute(l(t))===e})}function d(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=f(e,n);null==r||null===(t=r.parentNode)||void 0===t||t.removeChild(r)}function p(e,t){var n,r,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=a.get(e);if(!n||!(0,o.Z)(document,n)){var r=u("",t),i=r.parentNode;a.set(e,i),i.removeChild(r)}}(c(s),s);var d=f(t,s);if(d)return(null===(n=s.csp)||void 0===n?void 0:n.nonce)&&d.nonce!==(null===(r=s.csp)||void 0===r?void 0:r.nonce)&&(d.nonce=null===(i=s.csp)||void 0===i?void 0:i.nonce),d.innerHTML!==e&&(d.innerHTML=e),d;var p=u(e,s);return p.setAttribute(l(s),t),p}},34203:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(73935);function o(e){return e instanceof HTMLElement?e:r.findDOMNode(e)}},88603:function(e,t,n){"use strict";n.d(t,{tS:function(){return a}});var r=n(74902),o=n(5110);function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,o.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),l=null;return i&&!Number.isNaN(a)?l=a:r&&null===l&&(l=0),r&&e.disabled&&(l=null),null!==l&&(l>=0||t&&l<0)}return!1}function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,r.Z)(e.querySelectorAll("*")).filter(function(e){return i(e,t)});return i(e,t)&&n.unshift(e),n}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1}},79370:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(98924),o=function(e){if((0,r.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},i=function(e,t){if(!o(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function a(e,t){return Array.isArray(e)||void 0===t?o(e):i(e,t)}},15105:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},38135:function(e,t,n){"use strict";n.d(t,{s:function(){return g},v:function(){return b}});var r,o,i=n(74165),a=n(15861),l=n(71002),c=n(1413),s=n(73935),u=(0,c.Z)({},r||(r=n.t(s,2))),f=u.version,d=u.render,p=u.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=u.createRoot)}catch(h){}function m(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var v="__rc_react_root__";function g(e,t){if(o){var n,r;n=t,m(!0),r=n[v]||o(n),m(!1),r.render(e),n[v]=r;return}d(e,t)}function y(){return(y=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[v])||void 0===e||e.unmount(),delete t[v]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e){return w.apply(this,arguments)}function w(){return(w=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==o)){e.next=2;break}return e.abrupt("return",function(e){return y.apply(this,arguments)}(t));case 2:p(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},74204:function(e,t,n){"use strict";var r;function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}function i(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?o():n}function a(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:i(n),height:i(r)}}n.d(t,{Z:function(){return o},o:function(){return a}})},66680:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o