@nocobase/app 1.3.39-beta → 1.4.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/.umirc.ts +12 -14
- package/client/src/pages/index.tsx +3 -0
- package/dist/client/4607.bae81918.async.js +1 -0
- package/dist/client/5617.d114c98c.async.js +78 -0
- package/dist/client/5721.ee2b0cf3.async.js +7 -0
- package/dist/client/index.html +2 -1
- package/dist/client/index.html.tpl +2 -1
- package/dist/client/npm._at_ant-design.e1f1f4b0.async.js +110 -0
- package/dist/client/{npm._at_antv.5ea2df50.async.js → npm._at_antv.56fcebdf.async.js} +5 -5
- package/dist/client/npm._at_budibase.113c5b6a.async.js +36 -0
- package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +9 -0
- package/dist/client/npm._at_emotion.6969cd50.async.js +2 -0
- package/dist/client/npm._at_formily.b1a03e41.async.js +96 -0
- package/dist/client/npm._at_formulajs.ff63776b.async.js +1 -0
- package/dist/client/npm._at_rc-component.43f95f42.async.js +5 -0
- package/dist/client/npm._at_remix-run.9a0418a9.async.js +2 -0
- package/dist/client/npm.ahooks.b416801a.async.js +6 -0
- package/dist/client/npm.antd-style.ecb45bdd.async.js +1 -0
- package/dist/client/npm.antd.732d7b9d.async.js +476 -0
- package/dist/client/npm.axios.c42e25ff.async.js +11 -0
- package/dist/client/npm.bignumber.js.cb49cd48.async.js +1 -0
- package/dist/client/npm.buffer.6f3eca94.async.js +1 -0
- package/dist/client/npm.cytoscape.cba0c14d.async.js +5 -0
- package/dist/client/{npm.d3-selection.e2684be8.async.js → npm.d3-selection.15d6ab5b.async.js} +1 -1
- package/dist/client/npm.d3-shape.b48fc404.async.js +1 -0
- package/dist/client/{npm.d3-transition.83e0f431.async.js → npm.d3-transition.5fd82a9c.async.js} +1 -1
- package/dist/client/{npm.dayjs.f4357565.async.js → npm.dayjs.0a5fd152.async.js} +1 -1
- package/dist/client/{npm.decimal.js.bb6d6d2e.async.js → npm.decimal.js.19391b1c.async.js} +1 -1
- package/dist/client/npm.dompurify.d5071c22.async.js +3 -0
- package/dist/client/{npm.elkjs.d0ff4db1.async.js → npm.elkjs.f35a7d45.async.js} +4 -4
- package/dist/client/npm.gl-matrix.d851d654.async.js +1 -0
- package/dist/client/{npm.handlebars.c04806e7.async.js → npm.handlebars.ade4c4fe.async.js} +5 -5
- package/dist/client/{npm.highlight.js.4213abe5.async.js → npm.highlight.js.8a8320c8.async.js} +1 -1
- package/dist/client/{npm.html-tokenize.360bb6e8.async.js → npm.html-tokenize.a6d58ae7.async.js} +1 -1
- package/dist/client/npm.htmlparser2.27ad86bc.async.js +2 -0
- package/dist/client/npm.i18next.98bb572b.async.js +1 -0
- package/dist/client/npm.json5.d58066fd.async.js +14 -0
- package/dist/client/npm.jstat.733c0b2c.async.js +1 -0
- package/dist/client/{npm.layout-base.49e322a0.async.js → npm.layout-base.0bdb6d00.async.js} +1 -1
- package/dist/client/npm.lodash-es.c06b3dd5.async.js +1 -0
- package/dist/client/npm.lodash.0ff318b3.async.js +37 -0
- package/dist/client/npm.markdown-it.5b35f93d.async.js +15 -0
- package/dist/client/npm.mathjs.fd97f3b7.async.js +52 -0
- package/dist/client/npm.mermaid.defd0c88.async.js +1529 -0
- package/dist/client/npm.moment.36abbf2c.async.js +4 -0
- package/dist/client/npm.picomatch.7a2f1314.async.js +1 -0
- package/dist/client/npm.postcss.2ccf11ae.async.js +27 -0
- package/dist/client/{npm.quill.e91b3c12.async.js → npm.quill.9d4c2cd1.async.js} +7 -7
- package/dist/client/{npm.rc-menu.2e06b9c3.async.js → npm.rc-menu.adf5ade6.async.js} +1 -1
- package/dist/client/npm.rc-picker.ef8a3e8b.async.js +1 -0
- package/dist/client/{npm.rc-select.13236fb8.async.js → npm.rc-select.7c36e54e.async.js} +2 -2
- package/dist/client/{npm.rc-table.de3dd762.async.js → npm.rc-table.a153e021.async.js} +1 -1
- package/dist/client/npm.rc-tree.f61b7d87.async.js +1 -0
- package/dist/client/npm.rc-util.23a9b855.async.js +18 -0
- package/dist/client/npm.react-dom.b9fb5fd7.async.js +11 -0
- package/dist/client/npm.react-image-lightbox.727d3218.async.js +3 -0
- package/dist/client/npm.react-router-dom.832efba3.async.js +1 -0
- package/dist/client/npm.readable-stream.6e743f2a.async.js +1 -0
- package/dist/client/p__index.89314c11.async.js +1533 -0
- package/dist/client/umi.9e319d79.js +21 -0
- package/lib/index.js +11 -3
- package/package.json +6 -6
- package/src/index.ts +12 -9
- package/dist/client/4607.6d585996.async.js +0 -1
- package/dist/client/5721.cf90e884.async.js +0 -8
- package/dist/client/6718.1e7fe05d.async.js +0 -66
- package/dist/client/npm._at_ant-design.4fe52a2f.async.js +0 -110
- package/dist/client/npm._at_dnd-kit.01a3ad70.async.js +0 -6
- package/dist/client/npm._at_emotion.0c6b11eb.async.js +0 -2
- package/dist/client/npm._at_formily.f9d0b213.async.js +0 -101
- package/dist/client/npm._at_formulajs.fe3f9fca.async.js +0 -1
- package/dist/client/npm._at_rc-component.086dbf23.async.js +0 -5
- package/dist/client/npm._at_remix-run.55137b87.async.js +0 -3
- package/dist/client/npm.ahooks.c3df4eb6.async.js +0 -6
- package/dist/client/npm.antd-style.47ebbe31.async.js +0 -1
- package/dist/client/npm.antd.91188318.async.js +0 -476
- package/dist/client/npm.axios.f696c6e5.async.js +0 -2
- package/dist/client/npm.bignumber.js.70d3d7e8.async.js +0 -1
- package/dist/client/npm.buffer.9cce4593.async.js +0 -1
- package/dist/client/npm.cytoscape.39239e7b.async.js +0 -5
- package/dist/client/npm.d3-shape.3660138b.async.js +0 -1
- package/dist/client/npm.dompurify.93b5a130.async.js +0 -3
- package/dist/client/npm.gl-matrix.31b80e16.async.js +0 -1
- package/dist/client/npm.htmlparser2.cbbea4c4.async.js +0 -2
- package/dist/client/npm.i18next.eee0fc0f.async.js +0 -1
- package/dist/client/npm.json5.87aca70f.async.js +0 -14
- package/dist/client/npm.jstat.657c7dba.async.js +0 -1
- package/dist/client/npm.lodash-es.5eff0420.async.js +0 -1
- package/dist/client/npm.lodash.0f9322fa.async.js +0 -37
- package/dist/client/npm.markdown-it.5875530c.async.js +0 -15
- package/dist/client/npm.mathjs.d8df2940.async.js +0 -53
- package/dist/client/npm.mermaid.7057e144.async.js +0 -1530
- package/dist/client/npm.moment.3c26e672.async.js +0 -4
- package/dist/client/npm.postcss.368fceaf.async.js +0 -28
- package/dist/client/npm.rc-picker.218fa2cc.async.js +0 -1
- package/dist/client/npm.rc-tree.bdb9cee8.async.js +0 -1
- package/dist/client/npm.rc-util.87a2c212.async.js +0 -18
- package/dist/client/npm.react-dom.6236e62b.async.js +0 -11
- package/dist/client/npm.react-image-lightbox.0e0cf81f.async.js +0 -3
- package/dist/client/npm.react-router-dom.06c80c5d.async.js +0 -2
- package/dist/client/npm.readable-stream.41117b5f.async.js +0 -1
- package/dist/client/p__index.4ee03ea9.async.js +0 -1509
- package/dist/client/umi.99c57684.js +0 -22
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[5420],{86128:function(We,xe,u){u.d(xe,{Z:function(){return K}});var de=u(87462),B=u(4942),ge=u(91),ve=u(1413),Le=u(15671),De=u(43144),Ke=u(97326),pe=u(32531),ie=u(51630),te=u(93967),z=u.n(te),Y=u(64217),b=u(67294),ue=u(27822),se=function(f){for(var R=f.prefixCls,t=f.level,x=f.isStart,D=f.isEnd,G="".concat(R,"-indent-unit"),o=[],i=0;i<t;i+=1){var h;o.push(b.createElement("span",{key:i,className:z()(G,(h={},(0,B.Z)(h,"".concat(G,"-start"),x[i]),(0,B.Z)(h,"".concat(G,"-end"),D[i]),h))}))}return b.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},o)},N=b.memo(se),le=u(35381),X=u(1089),_=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],W="open",a="close",s="---",y=function(O){(0,pe.Z)(R,O);var f=(0,ie.Z)(R);function R(){var t;(0,Le.Z)(this,R);for(var x=arguments.length,D=new Array(x),G=0;G<x;G++)D[G]=arguments[G];return t=f.call.apply(f,[this].concat(D)),t.state={dragNodeHighlight:!1},t.selectHandle=void 0,t.cacheIndent=void 0,t.onSelectorClick=function(o){var i=t.props.context.onNodeClick;i(o,(0,X.F)(t.props)),t.isSelectable()?t.onSelect(o):t.onCheck(o)},t.onSelectorDoubleClick=function(o){var i=t.props.context.onNodeDoubleClick;i(o,(0,X.F)(t.props))},t.onSelect=function(o){if(!t.isDisabled()){var i=t.props.context.onNodeSelect;i(o,(0,X.F)(t.props))}},t.onCheck=function(o){if(!t.isDisabled()){var i=t.props,h=i.disableCheckbox,E=i.checked,S=t.props.context.onNodeCheck;if(!(!t.isCheckable()||h)){var Q=!E;S(o,(0,X.F)(t.props),Q)}}},t.onMouseEnter=function(o){var i=t.props.context.onNodeMouseEnter;i(o,(0,X.F)(t.props))},t.onMouseLeave=function(o){var i=t.props.context.onNodeMouseLeave;i(o,(0,X.F)(t.props))},t.onContextMenu=function(o){var i=t.props.context.onNodeContextMenu;i(o,(0,X.F)(t.props))},t.onDragStart=function(o){var i=t.props.context.onNodeDragStart;o.stopPropagation(),t.setState({dragNodeHighlight:!0}),i(o,(0,Ke.Z)(t));try{o.dataTransfer.setData("text/plain","")}catch(h){}},t.onDragEnter=function(o){var i=t.props.context.onNodeDragEnter;o.preventDefault(),o.stopPropagation(),i(o,(0,Ke.Z)(t))},t.onDragOver=function(o){var i=t.props.context.onNodeDragOver;o.preventDefault(),o.stopPropagation(),i(o,(0,Ke.Z)(t))},t.onDragLeave=function(o){var i=t.props.context.onNodeDragLeave;o.stopPropagation(),i(o,(0,Ke.Z)(t))},t.onDragEnd=function(o){var i=t.props.context.onNodeDragEnd;o.stopPropagation(),t.setState({dragNodeHighlight:!1}),i(o,(0,Ke.Z)(t))},t.onDrop=function(o){var i=t.props.context.onNodeDrop;o.preventDefault(),o.stopPropagation(),t.setState({dragNodeHighlight:!1}),i(o,(0,Ke.Z)(t))},t.onExpand=function(o){var i=t.props,h=i.loading,E=i.context.onNodeExpand;h||E(o,(0,X.F)(t.props))},t.setSelectHandle=function(o){t.selectHandle=o},t.getNodeState=function(){var o=t.props.expanded;return t.isLeaf()?null:o?W:a},t.hasChildren=function(){var o=t.props.eventKey,i=t.props.context.keyEntities,h=(0,le.Z)(i,o)||{},E=h.children;return!!(E||[]).length},t.isLeaf=function(){var o=t.props,i=o.isLeaf,h=o.loaded,E=t.props.context.loadData,S=t.hasChildren();return i===!1?!1:i||!E&&!S||E&&h&&!S},t.isDisabled=function(){var o=t.props.disabled,i=t.props.context.disabled;return!!(i||o)},t.isCheckable=function(){var o=t.props.checkable,i=t.props.context.checkable;return!i||o===!1?!1:i},t.syncLoadData=function(o){var i=o.expanded,h=o.loading,E=o.loaded,S=t.props.context,Q=S.loadData,w=S.onNodeLoad;h||Q&&i&&!t.isLeaf()&&!t.hasChildren()&&!E&&w((0,X.F)(t.props))},t.isDraggable=function(){var o=t.props,i=o.data,h=o.context.draggable;return!!(h&&(!h.nodeDraggable||h.nodeDraggable(i)))},t.renderDragHandler=function(){var o=t.props.context,i=o.draggable,h=o.prefixCls;return i!=null&&i.icon?b.createElement("span",{className:"".concat(h,"-draggable-icon")},i.icon):null},t.renderSwitcherIconDom=function(o){var i=t.props.switcherIcon,h=t.props.context.switcherIcon,E=i||h;return typeof E=="function"?E((0,ve.Z)((0,ve.Z)({},t.props),{},{isLeaf:o})):E},t.renderSwitcher=function(){var o=t.props.expanded,i=t.props.context.prefixCls;if(t.isLeaf()){var h=t.renderSwitcherIconDom(!0);return h!==!1?b.createElement("span",{className:z()("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},h):null}var E=z()("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(o?W:a)),S=t.renderSwitcherIconDom(!1);return S!==!1?b.createElement("span",{onClick:t.onExpand,className:E},S):null},t.renderCheckbox=function(){var o=t.props,i=o.checked,h=o.halfChecked,E=o.disableCheckbox,S=t.props.context.prefixCls,Q=t.isDisabled(),w=t.isCheckable();if(!w)return null;var J=typeof w!="boolean"?w:null;return b.createElement("span",{className:z()("".concat(S,"-checkbox"),i&&"".concat(S,"-checkbox-checked"),!i&&h&&"".concat(S,"-checkbox-indeterminate"),(Q||E)&&"".concat(S,"-checkbox-disabled")),onClick:t.onCheck},J)},t.renderIcon=function(){var o=t.props.loading,i=t.props.context.prefixCls;return b.createElement("span",{className:z()("".concat(i,"-iconEle"),"".concat(i,"-icon__").concat(t.getNodeState()||"docu"),o&&"".concat(i,"-icon_loading"))})},t.renderSelector=function(){var o=t.state.dragNodeHighlight,i=t.props,h=i.title,E=h===void 0?s:h,S=i.selected,Q=i.icon,w=i.loading,J=i.data,ne=t.props.context,q=ne.prefixCls,Ce=ne.showIcon,Se=ne.icon,Pe=ne.loadData,T=ne.titleRender,ke=t.isDisabled(),be="".concat(q,"-node-content-wrapper"),me;if(Ce){var he=Q||Se;me=he?b.createElement("span",{className:z()("".concat(q,"-iconEle"),"".concat(q,"-icon__customize"))},typeof he=="function"?he(t.props):he):t.renderIcon()}else Pe&&w&&(me=t.renderIcon());var Ee;typeof E=="function"?Ee=E(J):T?Ee=T(J):Ee=E;var Oe=b.createElement("span",{className:"".concat(q,"-title")},Ee);return b.createElement("span",{ref:t.setSelectHandle,title:typeof E=="string"?E:"",className:z()("".concat(be),"".concat(be,"-").concat(t.getNodeState()||"normal"),!ke&&(S||o)&&"".concat(q,"-node-selected")),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu,onClick:t.onSelectorClick,onDoubleClick:t.onSelectorDoubleClick},me,Oe,t.renderDropIndicator())},t.renderDropIndicator=function(){var o=t.props,i=o.disabled,h=o.eventKey,E=t.props.context,S=E.draggable,Q=E.dropLevelOffset,w=E.dropPosition,J=E.prefixCls,ne=E.indent,q=E.dropIndicatorRender,Ce=E.dragOverNodeKey,Se=E.direction,Pe=!!S,T=!i&&Pe&&Ce===h,ke=ne!=null?ne:t.cacheIndent;return t.cacheIndent=ne,T?q({dropPosition:w,dropLevelOffset:Q,indent:ke,prefixCls:J,direction:Se}):null},t}return(0,De.Z)(R,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var x=this.props.selectable,D=this.props.context.selectable;return typeof x=="boolean"?x:D}},{key:"render",value:function(){var x,D=this.props,G=D.eventKey,o=D.className,i=D.style,h=D.dragOver,E=D.dragOverGapTop,S=D.dragOverGapBottom,Q=D.isLeaf,w=D.isStart,J=D.isEnd,ne=D.expanded,q=D.selected,Ce=D.checked,Se=D.halfChecked,Pe=D.loading,T=D.domRef,ke=D.active,be=D.data,me=D.onMouseMove,he=D.selectable,Ee=(0,ge.Z)(D,_),Oe=this.props.context,v=Oe.prefixCls,A=Oe.filterTreeNode,H=Oe.keyEntities,e=Oe.dropContainerKey,g=Oe.dropTargetKey,Z=Oe.draggingNodeKey,M=this.isDisabled(),n=(0,Y.Z)(Ee,{aria:!0,data:!0}),d=(0,le.Z)(H,G)||{},r=d.level,l=J[J.length-1],p=this.isDraggable(),k=!M&&p,C=Z===G,P=he!==void 0?{"aria-selected":!!he}:void 0;return b.createElement("div",(0,de.Z)({ref:T,className:z()(o,"".concat(v,"-treenode"),(x={},(0,B.Z)(x,"".concat(v,"-treenode-disabled"),M),(0,B.Z)(x,"".concat(v,"-treenode-switcher-").concat(ne?"open":"close"),!Q),(0,B.Z)(x,"".concat(v,"-treenode-checkbox-checked"),Ce),(0,B.Z)(x,"".concat(v,"-treenode-checkbox-indeterminate"),Se),(0,B.Z)(x,"".concat(v,"-treenode-selected"),q),(0,B.Z)(x,"".concat(v,"-treenode-loading"),Pe),(0,B.Z)(x,"".concat(v,"-treenode-active"),ke),(0,B.Z)(x,"".concat(v,"-treenode-leaf-last"),l),(0,B.Z)(x,"".concat(v,"-treenode-draggable"),p),(0,B.Z)(x,"dragging",C),(0,B.Z)(x,"drop-target",g===G),(0,B.Z)(x,"drop-container",e===G),(0,B.Z)(x,"drag-over",!M&&h),(0,B.Z)(x,"drag-over-gap-top",!M&&E),(0,B.Z)(x,"drag-over-gap-bottom",!M&&S),(0,B.Z)(x,"filter-node",A&&A((0,X.F)(this.props))),x)),style:i,draggable:k,"aria-grabbed":C,onDragStart:k?this.onDragStart:void 0,onDragEnter:p?this.onDragEnter:void 0,onDragOver:p?this.onDragOver:void 0,onDragLeave:p?this.onDragLeave:void 0,onDrop:p?this.onDrop:void 0,onDragEnd:p?this.onDragEnd:void 0,onMouseMove:me},P,n),b.createElement(N,{prefixCls:v,level:r,isStart:w,isEnd:J}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(b.Component),m=function(f){return b.createElement(ue.k.Consumer,null,function(R){return b.createElement(y,(0,de.Z)({},f,{context:R}))})};m.displayName="TreeNode",m.isTreeNode=1;var K=m},27822:function(We,xe,u){u.d(xe,{k:function(){return B}});var de=u(67294),B=de.createContext(null)},99814:function(We,xe,u){u.d(xe,{O:function(){return K.Z},Z:function(){return Oe}});var de=u(87462),B=u(4942),ge=u(71002),ve=u(1413),Le=u(74902),De=u(15671),Ke=u(43144),pe=u(97326),ie=u(32531),te=u(51630),z=u(93967),Y=u.n(z),b=u(15105),ue=u(64217),se=u(80334),N=u(67294),le=u(27822);function X(v){var A=v.dropPosition,H=v.dropLevelOffset,e=v.indent,g={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(A){case-1:g.top=0,g.left=-H*e;break;case 1:g.bottom=0,g.left=-H*e;break;case 0:g.bottom=0,g.left=e;break}return N.createElement("div",{style:g})}var _=u(36459),W=u(97685),a=u(91),s=u(8410),y=u(85344),m=u(82225),K=u(86128);function O(v,A){var H=N.useState(!1),e=(0,W.Z)(H,2),g=e[0],Z=e[1];(0,s.Z)(function(){if(g)return v(),function(){A()}},[g]),(0,s.Z)(function(){return Z(!0),function(){Z(!1)}},[])}var f=u(1089),R=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],t=function(A,H){var e=A.className,g=A.style,Z=A.motion,M=A.motionNodes,n=A.motionType,d=A.onMotionStart,r=A.onMotionEnd,l=A.active,p=A.treeNodeRequiredProps,k=(0,a.Z)(A,R),C=N.useState(!0),P=(0,W.Z)(C,2),I=P[0],U=P[1],c=N.useContext(le.k),F=c.prefixCls,$=M&&n!=="hide";(0,s.Z)(function(){M&&$!==I&&U($)},[M]);var L=function(){M&&d()},j=N.useRef(!1),V=function(){M&&!j.current&&(j.current=!0,r())};O(L,V);var re=function(ae){$===ae&&V()};return M?N.createElement(m.ZP,(0,de.Z)({ref:H,visible:I},Z,{motionAppear:n==="show",onVisibleChanged:re}),function(ee,ae){var Ne=ee.className,fe=ee.style;return N.createElement("div",{ref:ae,className:Y()("".concat(F,"-treenode-motion"),Ne),style:fe},M.map(function(oe){var ye=(0,de.Z)({},((0,_.Z)(oe.data),oe.data)),Me=oe.title,Ze=oe.key,Ie=oe.isStart,Te=oe.isEnd;delete ye.children;var Re=(0,f.H8)(Ze,p);return N.createElement(K.Z,(0,de.Z)({},ye,Re,{title:Me,active:l,data:oe.data,key:Ze,isStart:Ie,isEnd:Te}))}))}):N.createElement(K.Z,(0,de.Z)({domRef:H,className:e,style:g},k,{active:l}))};t.displayName="MotionTreeNode";var x=N.forwardRef(t),D=x;function G(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],H=v.length,e=A.length;if(Math.abs(H-e)!==1)return{add:!1,key:null};function g(Z,M){var n=new Map;Z.forEach(function(r){n.set(r,!0)});var d=M.filter(function(r){return!n.has(r)});return d.length===1?d[0]:null}return H<e?{add:!0,key:g(v,A)}:{add:!1,key:g(A,v)}}function o(v,A,H){var e=v.findIndex(function(n){return n.key===H}),g=v[e+1],Z=A.findIndex(function(n){return n.key===H});if(g){var M=A.findIndex(function(n){return n.key===g.key});return A.slice(Z+1,M)}return A.slice(Z+1)}var i=["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"],h={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},E=function(){},S="RC_TREE_MOTION_".concat(Math.random()),Q={key:S},w={key:S,level:0,index:0,pos:"0",node:Q,nodes:[Q]},J={parent:null,children:[],pos:w.pos,data:Q,title:null,key:S,isStart:[],isEnd:[]};function ne(v,A,H,e){return A===!1||!H?v:v.slice(0,Math.ceil(H/e)+1)}function q(v){var A=v.key,H=v.pos;return(0,f.km)(A,H)}function Ce(v){for(var A=String(v.data.key),H=v;H.parent;)H=H.parent,A="".concat(H.data.key," > ").concat(A);return A}var Se=N.forwardRef(function(v,A){var H=v.prefixCls,e=v.data,g=v.selectable,Z=v.checkable,M=v.expandedKeys,n=v.selectedKeys,d=v.checkedKeys,r=v.loadedKeys,l=v.loadingKeys,p=v.halfCheckedKeys,k=v.keyEntities,C=v.disabled,P=v.dragging,I=v.dragOverNodeKey,U=v.dropPosition,c=v.motion,F=v.height,$=v.itemHeight,L=v.virtual,j=v.focusable,V=v.activeItem,re=v.focused,ee=v.tabIndex,ae=v.onKeyDown,Ne=v.onFocus,fe=v.onBlur,oe=v.onActiveChange,ye=v.onListChangeStart,Me=v.onListChangeEnd,Ze=(0,a.Z)(v,i),Ie=N.useRef(null),Te=N.useRef(null);N.useImperativeHandle(A,function(){return{scrollTo:function(Ae){Ie.current.scrollTo(Ae)},getIndentWidth:function(){return Te.current.offsetWidth}}});var Re=N.useState(M),Ve=(0,W.Z)(Re,2),_e=Ve[0],qe=Ve[1],et=N.useState(e),Ye=(0,W.Z)(et,2),$e=Ye[0],Xe=Ye[1],tt=N.useState(e),Je=(0,W.Z)(tt,2),nt=Je[0],He=Je[1],rt=N.useState([]),we=(0,W.Z)(rt,2),ct=we[0],at=we[1],ut=N.useState(null),it=(0,W.Z)(ut,2),ft=it[0],ot=it[1],st=N.useRef(e);st.current=e;function dt(){var ce=st.current;Xe(ce),He(ce),at([]),ot(null),Me()}(0,s.Z)(function(){qe(M);var ce=G(_e,M);if(ce.key!==null)if(ce.add){var Ae=$e.findIndex(function(je){var ze=je.key;return ze===ce.key}),Ue=ne(o($e,e,ce.key),L,F,$),Ge=$e.slice();Ge.splice(Ae+1,0,J),He(Ge),at(Ue),ot("show")}else{var Fe=e.findIndex(function(je){var ze=je.key;return ze===ce.key}),Be=ne(o(e,$e,ce.key),L,F,$),Qe=e.slice();Qe.splice(Fe+1,0,J),He(Qe),at(Be),ot("hide")}else $e!==e&&(Xe(e),He(e))},[M,e]),N.useEffect(function(){P||dt()},[P]);var vt=c?nt:e,lt={expandedKeys:M,selectedKeys:n,loadedKeys:r,loadingKeys:l,checkedKeys:d,halfCheckedKeys:p,dragOverNodeKey:I,dropPosition:U,keyEntities:k};return N.createElement(N.Fragment,null,re&&V&&N.createElement("span",{style:h,"aria-live":"assertive"},Ce(V)),N.createElement("div",null,N.createElement("input",{style:h,disabled:j===!1||C,tabIndex:j!==!1?ee:null,onKeyDown:ae,onFocus:Ne,onBlur:fe,value:"",onChange:E,"aria-label":"for screen reader"})),N.createElement("div",{className:"".concat(H,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},N.createElement("div",{className:"".concat(H,"-indent")},N.createElement("div",{ref:Te,className:"".concat(H,"-indent-unit")}))),N.createElement(y.Z,(0,de.Z)({},Ze,{data:vt,itemKey:q,height:F,fullHeight:!1,virtual:L,itemHeight:$,prefixCls:"".concat(H,"-list"),ref:Ie,onVisibleChange:function(Ae,Ue){var Ge=new Set(Ae),Fe=Ue.filter(function(Be){return!Ge.has(Be)});Fe.some(function(Be){return q(Be)===S})&&dt()}}),function(ce){var Ae=ce.pos,Ue=(0,de.Z)({},((0,_.Z)(ce.data),ce.data)),Ge=ce.title,Fe=ce.key,Be=ce.isStart,Qe=ce.isEnd,je=(0,f.km)(Fe,Ae);delete Ue.key,delete Ue.children;var ze=(0,f.H8)(je,lt);return N.createElement(D,(0,de.Z)({},Ue,ze,{title:Ge,active:!!V&&Fe===V.key,pos:Ae,data:ce.data,isStart:Be,isEnd:Qe,motion:c,motionNodes:Fe===S?ct:null,motionType:ft,onMotionStart:ye,onMotionEnd:dt,treeNodeRequiredProps:lt,onMouseMove:function(){oe(null)}}))}))});Se.displayName="NodeList";var Pe=Se,T=u(10225),ke=u(17341),be=u(35381),me=10,he=function(v){(0,ie.Z)(H,v);var A=(0,te.Z)(H);function H(){var e;(0,De.Z)(this,H);for(var g=arguments.length,Z=new Array(g),M=0;M<g;M++)Z[M]=arguments[M];return e=A.call.apply(A,[this].concat(Z)),e.destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,f.w$)()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=N.createRef(),e.onNodeDragStart=function(n,d){var r=e.state,l=r.expandedKeys,p=r.keyEntities,k=e.props.onDragStart,C=d.props.eventKey;e.dragNode=d,e.dragStartMousePosition={x:n.clientX,y:n.clientY};var P=(0,T._5)(l,C);e.setState({draggingNodeKey:C,dragChildrenKeys:(0,T.wA)(C,p),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(P),window.addEventListener("dragend",e.onWindowDragEnd),k==null||k({event:n,node:(0,f.F)(d.props)})},e.onNodeDragEnter=function(n,d){var r=e.state,l=r.expandedKeys,p=r.keyEntities,k=r.dragChildrenKeys,C=r.flattenNodes,P=r.indent,I=e.props,U=I.onDragEnter,c=I.onExpand,F=I.allowDrop,$=I.direction,L=d.props,j=L.pos,V=L.eventKey,re=(0,pe.Z)(e),ee=re.dragNode;if(e.currentMouseOverDroppableNodeKey!==V&&(e.currentMouseOverDroppableNodeKey=V),!ee){e.resetDragState();return}var ae=(0,T.OM)(n,ee,d,P,e.dragStartMousePosition,F,C,p,l,$),Ne=ae.dropPosition,fe=ae.dropLevelOffset,oe=ae.dropTargetKey,ye=ae.dropContainerKey,Me=ae.dropTargetPos,Ze=ae.dropAllowed,Ie=ae.dragOverNodeKey;if(k.indexOf(oe)!==-1||!Ze){e.resetDragState();return}if(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(Te){clearTimeout(e.delayedDragEnterLogic[Te])}),ee.props.eventKey!==d.props.eventKey&&(n.persist(),e.delayedDragEnterLogic[j]=window.setTimeout(function(){if(e.state.draggingNodeKey!==null){var Te=(0,Le.Z)(l),Re=(0,be.Z)(p,d.props.eventKey);Re&&(Re.children||[]).length&&(Te=(0,T.L0)(l,d.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(Te),c==null||c(Te,{node:(0,f.F)(d.props),expanded:!0,nativeEvent:n.nativeEvent})}},800)),ee.props.eventKey===oe&&fe===0){e.resetDragState();return}e.setState({dragOverNodeKey:Ie,dropPosition:Ne,dropLevelOffset:fe,dropTargetKey:oe,dropContainerKey:ye,dropTargetPos:Me,dropAllowed:Ze}),U==null||U({event:n,node:(0,f.F)(d.props),expandedKeys:l})},e.onNodeDragOver=function(n,d){var r=e.state,l=r.dragChildrenKeys,p=r.flattenNodes,k=r.keyEntities,C=r.expandedKeys,P=r.indent,I=e.props,U=I.onDragOver,c=I.allowDrop,F=I.direction,$=(0,pe.Z)(e),L=$.dragNode;if(L){var j=(0,T.OM)(n,L,d,P,e.dragStartMousePosition,c,p,k,C,F),V=j.dropPosition,re=j.dropLevelOffset,ee=j.dropTargetKey,ae=j.dropContainerKey,Ne=j.dropAllowed,fe=j.dropTargetPos,oe=j.dragOverNodeKey;l.indexOf(ee)!==-1||!Ne||(L.props.eventKey===ee&&re===0?e.state.dropPosition===null&&e.state.dropLevelOffset===null&&e.state.dropTargetKey===null&&e.state.dropContainerKey===null&&e.state.dropTargetPos===null&&e.state.dropAllowed===!1&&e.state.dragOverNodeKey===null||e.resetDragState():V===e.state.dropPosition&&re===e.state.dropLevelOffset&&ee===e.state.dropTargetKey&&ae===e.state.dropContainerKey&&fe===e.state.dropTargetPos&&Ne===e.state.dropAllowed&&oe===e.state.dragOverNodeKey||e.setState({dropPosition:V,dropLevelOffset:re,dropTargetKey:ee,dropContainerKey:ae,dropTargetPos:fe,dropAllowed:Ne,dragOverNodeKey:oe}),U==null||U({event:n,node:(0,f.F)(d.props)}))}},e.onNodeDragLeave=function(n,d){e.currentMouseOverDroppableNodeKey===d.props.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;r==null||r({event:n,node:(0,f.F)(d.props)})},e.onWindowDragEnd=function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(n,d){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),r==null||r({event:n,node:(0,f.F)(d.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(n,d){var r,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=e.state,k=p.dragChildrenKeys,C=p.dropPosition,P=p.dropTargetKey,I=p.dropTargetPos,U=p.dropAllowed;if(U){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),P!==null){var F=(0,ve.Z)((0,ve.Z)({},(0,f.H8)(P,e.getTreeNodeRequiredProps())),{},{active:((r=e.getActiveItem())===null||r===void 0?void 0:r.key)===P,data:(0,be.Z)(e.state.keyEntities,P).node}),$=k.indexOf(P)!==-1;(0,se.ZP)(!$,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var L=(0,T.yx)(I),j={event:n,node:(0,f.F)(F),dragNode:e.dragNode?(0,f.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(k),dropToGap:C!==0,dropPosition:C+Number(L[L.length-1])};l||c==null||c(j),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&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,d){var r=e.state,l=r.expandedKeys,p=r.flattenNodes,k=d.expanded,C=d.key,P=d.isLeaf;if(!(P||n.shiftKey||n.metaKey||n.ctrlKey)){var I=p.filter(function(c){return c.key===C})[0],U=(0,f.F)((0,ve.Z)((0,ve.Z)({},(0,f.H8)(C,e.getTreeNodeRequiredProps())),{},{data:I.data}));e.setExpandedKeys(k?(0,T._5)(l,C):(0,T.L0)(l,C)),e.onNodeExpand(n,U)}},e.onNodeClick=function(n,d){var r=e.props,l=r.onClick,p=r.expandAction;p==="click"&&e.triggerExpandActionExpand(n,d),l==null||l(n,d)},e.onNodeDoubleClick=function(n,d){var r=e.props,l=r.onDoubleClick,p=r.expandAction;p==="doubleClick"&&e.triggerExpandActionExpand(n,d),l==null||l(n,d)},e.onNodeSelect=function(n,d){var r=e.state.selectedKeys,l=e.state,p=l.keyEntities,k=l.fieldNames,C=e.props,P=C.onSelect,I=C.multiple,U=d.selected,c=d[k.key],F=!U;F?I?r=(0,T.L0)(r,c):r=[c]:r=(0,T._5)(r,c);var $=r.map(function(L){var j=(0,be.Z)(p,L);return j?j.node:null}).filter(function(L){return L});e.setUncontrolledState({selectedKeys:r}),P==null||P(r,{event:"select",selected:F,node:d,selectedNodes:$,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,d,r){var l=e.state,p=l.keyEntities,k=l.checkedKeys,C=l.halfCheckedKeys,P=e.props,I=P.checkStrictly,U=P.onCheck,c=d.key,F,$={event:"check",node:d,checked:r,nativeEvent:n.nativeEvent};if(I){var L=r?(0,T.L0)(k,c):(0,T._5)(k,c),j=(0,T._5)(C,c);F={checked:L,halfChecked:j},$.checkedNodes=L.map(function(fe){return(0,be.Z)(p,fe)}).filter(function(fe){return fe}).map(function(fe){return fe.node}),e.setUncontrolledState({checkedKeys:L})}else{var V=(0,ke.S)([].concat((0,Le.Z)(k),[c]),!0,p),re=V.checkedKeys,ee=V.halfCheckedKeys;if(!r){var ae=new Set(re);ae.delete(c);var Ne=(0,ke.S)(Array.from(ae),{checked:!1,halfCheckedKeys:ee},p);re=Ne.checkedKeys,ee=Ne.halfCheckedKeys}F=re,$.checkedNodes=[],$.checkedNodesPositions=[],$.halfCheckedKeys=ee,re.forEach(function(fe){var oe=(0,be.Z)(p,fe);if(oe){var ye=oe.node,Me=oe.pos;$.checkedNodes.push(ye),$.checkedNodesPositions.push({node:ye,pos:Me})}}),e.setUncontrolledState({checkedKeys:re},!1,{halfCheckedKeys:ee})}U==null||U(F,$)},e.onNodeLoad=function(n){var d=n.key,r=new Promise(function(l,p){e.setState(function(k){var C=k.loadedKeys,P=C===void 0?[]:C,I=k.loadingKeys,U=I===void 0?[]:I,c=e.props,F=c.loadData,$=c.onLoad;if(!F||P.indexOf(d)!==-1||U.indexOf(d)!==-1)return null;var L=F(n);return L.then(function(){var j=e.state.loadedKeys,V=(0,T.L0)(j,d);$==null||$(V,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:V}),e.setState(function(re){return{loadingKeys:(0,T._5)(re.loadingKeys,d)}}),l()}).catch(function(j){if(e.setState(function(re){return{loadingKeys:(0,T._5)(re.loadingKeys,d)}}),e.loadingRetryTimes[d]=(e.loadingRetryTimes[d]||0)+1,e.loadingRetryTimes[d]>=me){var V=e.state.loadedKeys;(0,se.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,T.L0)(V,d)}),l()}p(j)}),{loadingKeys:(0,T.L0)(U,d)}})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(n,d){var r=e.props.onMouseEnter;r==null||r({event:n,node:d})},e.onNodeMouseLeave=function(n,d){var r=e.props.onMouseLeave;r==null||r({event:n,node:d})},e.onNodeContextMenu=function(n,d){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:d}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var d=arguments.length,r=new Array(d),l=0;l<d;l++)r[l]=arguments[l];n==null||n.apply(void 0,r)},e.onBlur=function(){var n=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var d=arguments.length,r=new Array(d),l=0;l<d;l++)r[l]=arguments[l];n==null||n.apply(void 0,r)},e.getTreeNodeRequiredProps=function(){var n=e.state,d=n.expandedKeys,r=n.selectedKeys,l=n.loadedKeys,p=n.loadingKeys,k=n.checkedKeys,C=n.halfCheckedKeys,P=n.dragOverNodeKey,I=n.dropPosition,U=n.keyEntities;return{expandedKeys:d||[],selectedKeys:r||[],loadedKeys:l||[],loadingKeys:p||[],checkedKeys:k||[],halfCheckedKeys:C||[],dragOverNodeKey:P,dropPosition:I,keyEntities:U}},e.setExpandedKeys=function(n){var d=e.state,r=d.treeData,l=d.fieldNames,p=(0,f.oH)(r,n,l);e.setUncontrolledState({expandedKeys:n,flattenNodes:p},!0)},e.onNodeExpand=function(n,d){var r=e.state.expandedKeys,l=e.state,p=l.listChanging,k=l.fieldNames,C=e.props,P=C.onExpand,I=C.loadData,U=d.expanded,c=d[k.key];if(!p){var F=r.indexOf(c),$=!U;if((0,se.ZP)(U&&F!==-1||!U&&F===-1,"Expand state not sync with index check"),$?r=(0,T.L0)(r,c):r=(0,T._5)(r,c),e.setExpandedKeys(r),P==null||P(r,{node:d,expanded:$,nativeEvent:n.nativeEvent}),$&&I){var L=e.onNodeLoad(d);L&&L.then(function(){var j=(0,f.oH)(e.state.treeData,r,k);e.setUncontrolledState({flattenNodes:j})}).catch(function(){var j=e.state.expandedKeys,V=(0,T._5)(j,c);e.setExpandedKeys(V)})}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})},e.onActiveChange=function(n){var d=e.state.activeKey,r=e.props,l=r.onActiveChange,p=r.itemScrollOffset,k=p===void 0?0:p;d!==n&&(e.setState({activeKey:n}),n!==null&&e.scrollTo({key:n,offset:k}),l==null||l(n))},e.getActiveItem=function(){var n=e.state,d=n.activeKey,r=n.flattenNodes;return d===null?null:r.find(function(l){var p=l.key;return p===d})||null},e.offsetActiveKey=function(n){var d=e.state,r=d.flattenNodes,l=d.activeKey,p=r.findIndex(function(P){var I=P.key;return I===l});p===-1&&n<0&&(p=r.length),p=(p+n+r.length)%r.length;var k=r[p];if(k){var C=k.key;e.onActiveChange(C)}else e.onActiveChange(null)},e.onKeyDown=function(n){var d=e.state,r=d.activeKey,l=d.expandedKeys,p=d.checkedKeys,k=d.fieldNames,C=e.props,P=C.onKeyDown,I=C.checkable,U=C.selectable;switch(n.which){case b.Z.UP:{e.offsetActiveKey(-1),n.preventDefault();break}case b.Z.DOWN:{e.offsetActiveKey(1),n.preventDefault();break}}var c=e.getActiveItem();if(c&&c.data){var F=e.getTreeNodeRequiredProps(),$=c.data.isLeaf===!1||!!(c.data[k.children]||[]).length,L=(0,f.F)((0,ve.Z)((0,ve.Z)({},(0,f.H8)(r,F)),{},{data:c.data,active:!0}));switch(n.which){case b.Z.LEFT:{$&&l.includes(r)?e.onNodeExpand({},L):c.parent&&e.onActiveChange(c.parent.key),n.preventDefault();break}case b.Z.RIGHT:{$&&!l.includes(r)?e.onNodeExpand({},L):c.children&&c.children.length&&e.onActiveChange(c.children[0].key),n.preventDefault();break}case b.Z.ENTER:case b.Z.SPACE:{I&&!L.disabled&&L.checkable!==!1&&!L.disableCheckbox?e.onNodeCheck({},L,!p.includes(r)):!I&&U&&!L.disabled&&L.selectable!==!1&&e.onNodeSelect({},L);break}}}P==null||P(n)},e.setUncontrolledState=function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var l=!1,p=!0,k={};Object.keys(n).forEach(function(C){if(C in e.props){p=!1;return}l=!0,k[C]=n[C]}),l&&(!d||p)&&e.setState((0,ve.Z)((0,ve.Z)({},k),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,Ke.Z)(H,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var g=this.props,Z=g.activeKey,M=g.itemScrollOffset,n=M===void 0?0:M;Z!==void 0&&Z!==this.state.activeKey&&(this.setState({activeKey:Z}),Z!==null&&this.scrollTo({key:Z,offset:n}))}},{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 g,Z=this.state,M=Z.focused,n=Z.flattenNodes,d=Z.keyEntities,r=Z.draggingNodeKey,l=Z.activeKey,p=Z.dropLevelOffset,k=Z.dropContainerKey,C=Z.dropTargetKey,P=Z.dropPosition,I=Z.dragOverNodeKey,U=Z.indent,c=this.props,F=c.prefixCls,$=c.className,L=c.style,j=c.showLine,V=c.focusable,re=c.tabIndex,ee=re===void 0?0:re,ae=c.selectable,Ne=c.showIcon,fe=c.icon,oe=c.switcherIcon,ye=c.draggable,Me=c.checkable,Ze=c.checkStrictly,Ie=c.disabled,Te=c.motion,Re=c.loadData,Ve=c.filterTreeNode,_e=c.height,qe=c.itemHeight,et=c.virtual,Ye=c.titleRender,$e=c.dropIndicatorRender,Xe=c.onContextMenu,tt=c.onScroll,Je=c.direction,nt=c.rootClassName,He=c.rootStyle,rt=(0,ue.Z)(this.props,{aria:!0,data:!0}),we;return ye&&((0,ge.Z)(ye)==="object"?we=ye:typeof ye=="function"?we={nodeDraggable:ye}:we={}),N.createElement(le.k.Provider,{value:{prefixCls:F,selectable:ae,showIcon:Ne,icon:fe,switcherIcon:oe,draggable:we,draggingNodeKey:r,checkable:Me,checkStrictly:Ze,disabled:Ie,keyEntities:d,dropLevelOffset:p,dropContainerKey:k,dropTargetKey:C,dropPosition:P,dragOverNodeKey:I,indent:U,direction:Je,dropIndicatorRender:$e,loadData:Re,filterTreeNode:Ve,titleRender:Ye,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}},N.createElement("div",{role:"tree",className:Y()(F,$,nt,(g={},(0,B.Z)(g,"".concat(F,"-show-line"),j),(0,B.Z)(g,"".concat(F,"-focused"),M),(0,B.Z)(g,"".concat(F,"-active-focused"),l!==null),g)),style:He},N.createElement(Pe,(0,de.Z)({ref:this.listRef,prefixCls:F,style:L,data:n,disabled:Ie,selectable:ae,checkable:!!Me,motion:Te,dragging:r!==null,height:_e,itemHeight:qe,virtual:et,focusable:V,focused:M,tabIndex:ee,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Xe,onScroll:tt},this.getTreeNodeRequiredProps(),rt))))}}],[{key:"getDerivedStateFromProps",value:function(g,Z){var M=Z.prevProps,n={prevProps:g};function d(V){return!M&&V in g||M&&M[V]!==g[V]}var r,l=Z.fieldNames;if(d("fieldNames")&&(l=(0,f.w$)(g.fieldNames),n.fieldNames=l),d("treeData")?r=g.treeData:d("children")&&((0,se.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),r=(0,f.zn)(g.children)),r){n.treeData=r;var p=(0,f.I8)(r,{fieldNames:l});n.keyEntities=(0,ve.Z)((0,B.Z)({},S,w),p.keyEntities)}var k=n.keyEntities||Z.keyEntities;if(d("expandedKeys")||M&&d("autoExpandParent"))n.expandedKeys=g.autoExpandParent||!M&&g.defaultExpandParent?(0,T.r7)(g.expandedKeys,k):g.expandedKeys;else if(!M&&g.defaultExpandAll){var C=(0,ve.Z)({},k);delete C[S],n.expandedKeys=Object.keys(C).map(function(V){return C[V].key})}else!M&&g.defaultExpandedKeys&&(n.expandedKeys=g.autoExpandParent||g.defaultExpandParent?(0,T.r7)(g.defaultExpandedKeys,k):g.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,r||n.expandedKeys){var P=(0,f.oH)(r||Z.treeData,n.expandedKeys||Z.expandedKeys,l);n.flattenNodes=P}if(g.selectable&&(d("selectedKeys")?n.selectedKeys=(0,T.BT)(g.selectedKeys,g):!M&&g.defaultSelectedKeys&&(n.selectedKeys=(0,T.BT)(g.defaultSelectedKeys,g))),g.checkable){var I;if(d("checkedKeys")?I=(0,T.E6)(g.checkedKeys)||{}:!M&&g.defaultCheckedKeys?I=(0,T.E6)(g.defaultCheckedKeys)||{}:r&&(I=(0,T.E6)(g.checkedKeys)||{checkedKeys:Z.checkedKeys,halfCheckedKeys:Z.halfCheckedKeys}),I){var U=I,c=U.checkedKeys,F=c===void 0?[]:c,$=U.halfCheckedKeys,L=$===void 0?[]:$;if(!g.checkStrictly){var j=(0,ke.S)(F,!0,k);F=j.checkedKeys,L=j.halfCheckedKeys}n.checkedKeys=F,n.halfCheckedKeys=L}}return d("loadedKeys")&&(n.loadedKeys=g.loadedKeys),n}}]),H}(N.Component);he.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:X,allowDrop:function(){return!0},expandAction:!1},he.TreeNode=K.Z;var Ee=he,Oe=Ee},10225:function(We,xe,u){u.d(xe,{BT:function(){return N},E6:function(){return _},L0:function(){return te},OM:function(){return se},_5:function(){return ie},r7:function(){return W},wA:function(){return Y},yx:function(){return z}});var de=u(74902),B=u(71002),ge=u(80334),ve=u(67294),Le=u(86128),De=u(35381),Ke=u(1089),pe=null;function ie(a,s){if(!a)return[];var y=a.slice(),m=y.indexOf(s);return m>=0&&y.splice(m,1),y}function te(a,s){var y=(a||[]).slice();return y.indexOf(s)===-1&&y.push(s),y}function z(a){return a.split("-")}function Y(a,s){var y=[],m=(0,De.Z)(s,a);function K(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(f){var R=f.key,t=f.children;y.push(R),K(t)})}return K(m.children),y}function b(a){if(a.parent){var s=z(a.pos);return Number(s[s.length-1])===a.parent.children.length-1}return!1}function ue(a){var s=z(a.pos);return Number(s[s.length-1])===0}function se(a,s,y,m,K,O,f,R,t,x){var D,G=a.clientX,o=a.clientY,i=a.target.getBoundingClientRect(),h=i.top,E=i.height,S=(x==="rtl"?-1:1)*(((K==null?void 0:K.x)||0)-G),Q=(S-12)/m,w=(0,De.Z)(R,y.props.eventKey);if(o<h+E/2){var J=f.findIndex(function(Oe){return Oe.key===w.key}),ne=J<=0?0:J-1,q=f[ne].key;w=(0,De.Z)(R,q)}var Ce=w.key,Se=w,Pe=w.key,T=0,ke=0;if(!t.includes(Ce))for(var be=0;be<Q&&b(w);be+=1)w=w.parent,ke+=1;var me=s.props.data,he=w.node,Ee=!0;return ue(w)&&w.level===0&&o<h+E/2&&O({dragNode:me,dropNode:he,dropPosition:-1})&&w.key===y.props.eventKey?T=-1:(Se.children||[]).length&&t.includes(Pe)?O({dragNode:me,dropNode:he,dropPosition:0})?T=0:Ee=!1:ke===0?Q>-1.5?O({dragNode:me,dropNode:he,dropPosition:1})?T=1:Ee=!1:O({dragNode:me,dropNode:he,dropPosition:0})?T=0:O({dragNode:me,dropNode:he,dropPosition:1})?T=1:Ee=!1:O({dragNode:me,dropNode:he,dropPosition:1})?T=1:Ee=!1,{dropPosition:T,dropLevelOffset:ke,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:Pe,dropContainerKey:T===0?null:((D=w.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:Ee}}function N(a,s){if(a){var y=s.multiple;return y?a.slice():a.length?[a[0]]:a}}var le=function(s){return s};function X(a,s){if(!a)return[];var y=s||{},m=y.processProps,K=m===void 0?le:m,O=Array.isArray(a)?a:[a];return O.map(function(f){var R=f.children,t=_objectWithoutProperties(f,pe),x=X(R,s);return React.createElement(TreeNode,_extends({key:t.key},K(t)),x)})}function _(a){if(!a)return null;var s;if(Array.isArray(a))s={checkedKeys:a,halfCheckedKeys:void 0};else if((0,B.Z)(a)==="object")s={checkedKeys:a.checked||void 0,halfCheckedKeys:a.halfChecked||void 0};else return(0,ge.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return s}function W(a,s){var y=new Set;function m(K){if(!y.has(K)){var O=(0,De.Z)(s,K);if(O){y.add(K);var f=O.parent,R=O.node;R.disabled||f&&m(f.key)}}}return(a||[]).forEach(function(K){m(K)}),(0,de.Z)(y)}},17341:function(We,xe,u){u.d(xe,{S:function(){return Ke}});var de=u(80334),B=u(35381);function ge(pe,ie){var te=new Set;return pe.forEach(function(z){ie.has(z)||te.add(z)}),te}function ve(pe){var ie=pe||{},te=ie.disabled,z=ie.disableCheckbox,Y=ie.checkable;return!!(te||z)||Y===!1}function Le(pe,ie,te,z){for(var Y=new Set(pe),b=new Set,ue=0;ue<=te;ue+=1){var se=ie.get(ue)||new Set;se.forEach(function(_){var W=_.key,a=_.node,s=_.children,y=s===void 0?[]:s;Y.has(W)&&!z(a)&&y.filter(function(m){return!z(m.node)}).forEach(function(m){Y.add(m.key)})})}for(var N=new Set,le=te;le>=0;le-=1){var X=ie.get(le)||new Set;X.forEach(function(_){var W=_.parent,a=_.node;if(!(z(a)||!_.parent||N.has(_.parent.key))){if(z(_.parent.node)){N.add(W.key);return}var s=!0,y=!1;(W.children||[]).filter(function(m){return!z(m.node)}).forEach(function(m){var K=m.key,O=Y.has(K);s&&!O&&(s=!1),!y&&(O||b.has(K))&&(y=!0)}),s&&Y.add(W.key),y&&b.add(W.key),N.add(W.key)}})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(ge(b,Y))}}function De(pe,ie,te,z,Y){for(var b=new Set(pe),ue=new Set(ie),se=0;se<=z;se+=1){var N=te.get(se)||new Set;N.forEach(function(W){var a=W.key,s=W.node,y=W.children,m=y===void 0?[]:y;!b.has(a)&&!ue.has(a)&&!Y(s)&&m.filter(function(K){return!Y(K.node)}).forEach(function(K){b.delete(K.key)})})}ue=new Set;for(var le=new Set,X=z;X>=0;X-=1){var _=te.get(X)||new Set;_.forEach(function(W){var a=W.parent,s=W.node;if(!(Y(s)||!W.parent||le.has(W.parent.key))){if(Y(W.parent.node)){le.add(a.key);return}var y=!0,m=!1;(a.children||[]).filter(function(K){return!Y(K.node)}).forEach(function(K){var O=K.key,f=b.has(O);y&&!f&&(y=!1),!m&&(f||ue.has(O))&&(m=!0)}),y||b.delete(a.key),m&&ue.add(a.key),le.add(a.key)}})}return{checkedKeys:Array.from(b),halfCheckedKeys:Array.from(ge(ue,b))}}function Ke(pe,ie,te,z){var Y=[],b;z?b=z:b=ve;var ue=new Set(pe.filter(function(X){var _=!!(0,B.Z)(te,X);return _||Y.push(X),_})),se=new Map,N=0;Object.keys(te).forEach(function(X){var _=te[X],W=_.level,a=se.get(W);a||(a=new Set,se.set(W,a)),a.add(_),N=Math.max(N,W)}),(0,de.ZP)(!Y.length,"Tree missing follow keys: ".concat(Y.slice(0,100).map(function(X){return"'".concat(X,"'")}).join(", ")));var le;return ie===!0?le=Le(ue,se,N,b):le=De(ue,ie.halfCheckedKeys,se,N,b),le}},35381:function(We,xe,u){u.d(xe,{Z:function(){return de}});function de(B,ge){return B[ge]}},1089:function(We,xe,u){u.d(xe,{F:function(){return W},H8:function(){return _},I8:function(){return X},km:function(){return Y},oH:function(){return N},w$:function(){return b},zn:function(){return se}});var de=u(71002),B=u(74902),ge=u(1413),ve=u(91),Le=u(50344),De=u(98423),Ke=u(80334),pe=u(35381),ie=["children"];function te(a,s){return"".concat(a,"-").concat(s)}function z(a){return a&&a.type&&a.type.isTreeNode}function Y(a,s){return a!=null?a:s}function b(a){var s=a||{},y=s.title,m=s._title,K=s.key,O=s.children,f=y||"title";return{title:f,_title:m||[f],key:K||"key",children:O||"children"}}function ue(a,s){var y=new Map;function m(K){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(K||[]).forEach(function(f){var R=f[s.key],t=f[s.children];warning(R!=null,"Tree node must have a certain key: [".concat(O).concat(R,"]"));var x=String(R);warning(!y.has(x)||R===null||R===void 0,"Same 'key' exist in the Tree: ".concat(x)),y.set(x,!0),m(t,"".concat(O).concat(x," > "))})}m(a)}function se(a){function s(y){var m=(0,Le.Z)(y);return m.map(function(K){if(!z(K))return(0,Ke.ZP)(!K,"Tree/TreeNode can only accept TreeNode as children."),null;var O=K.key,f=K.props,R=f.children,t=(0,ve.Z)(f,ie),x=(0,ge.Z)({key:O},t),D=s(R);return D.length&&(x.children=D),x}).filter(function(K){return K})}return s(a)}function N(a,s,y){var m=b(y),K=m._title,O=m.key,f=m.children,R=new Set(s===!0?[]:s),t=[];function x(D){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(o,i){for(var h=te(G?G.pos:"0",i),E=Y(o[O],h),S,Q=0;Q<K.length;Q+=1){var w=K[Q];if(o[w]!==void 0){S=o[w];break}}var J=(0,ge.Z)((0,ge.Z)({},(0,De.Z)(o,[].concat((0,B.Z)(K),[O,f]))),{},{title:S,key:E,parent:G,pos:h,children:null,data:o,isStart:[].concat((0,B.Z)(G?G.isStart:[]),[i===0]),isEnd:[].concat((0,B.Z)(G?G.isEnd:[]),[i===D.length-1])});return t.push(J),s===!0||R.has(E)?J.children=x(o[f]||[],J):J.children=[],J})}return x(a),t}function le(a,s,y){var m={};(0,de.Z)(y)==="object"?m=y:m={externalGetKey:y},m=m||{};var K=m,O=K.childrenPropName,f=K.externalGetKey,R=K.fieldNames,t=b(R),x=t.key,D=t.children,G=O||D,o;f?typeof f=="string"?o=function(E){return E[f]}:typeof f=="function"&&(o=function(E){return f(E)}):o=function(E,S){return Y(E[x],S)};function i(h,E,S,Q){var w=h?h[G]:a,J=h?te(S.pos,E):"0",ne=h?[].concat((0,B.Z)(Q),[h]):[];if(h){var q=o(h,J),Ce={node:h,index:E,pos:J,key:q,parentPos:S.node?S.pos:null,level:S.level+1,nodes:ne};s(Ce)}w&&w.forEach(function(Se,Pe){i(Se,Pe,{node:h,pos:J,level:S?S.level+1:-1},ne)})}i(null)}function X(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=s.initWrapper,m=s.processEntity,K=s.onProcessFinished,O=s.externalGetKey,f=s.childrenPropName,R=s.fieldNames,t=arguments.length>2?arguments[2]:void 0,x=O||t,D={},G={},o={posEntities:D,keyEntities:G};return y&&(o=y(o)||o),le(a,function(i){var h=i.node,E=i.index,S=i.pos,Q=i.key,w=i.parentPos,J=i.level,ne=i.nodes,q={node:h,nodes:ne,index:E,key:Q,pos:S,level:J},Ce=Y(Q,S);D[S]=q,G[Ce]=q,q.parent=D[w],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),m&&m(q,o)},{externalGetKey:x,childrenPropName:f,fieldNames:R}),K&&K(o),o}function _(a,s){var y=s.expandedKeys,m=s.selectedKeys,K=s.loadedKeys,O=s.loadingKeys,f=s.checkedKeys,R=s.halfCheckedKeys,t=s.dragOverNodeKey,x=s.dropPosition,D=s.keyEntities,G=(0,pe.Z)(D,a),o={eventKey:a,expanded:y.indexOf(a)!==-1,selected:m.indexOf(a)!==-1,loaded:K.indexOf(a)!==-1,loading:O.indexOf(a)!==-1,checked:f.indexOf(a)!==-1,halfChecked:R.indexOf(a)!==-1,pos:String(G?G.pos:""),dragOver:t===a&&x===0,dragOverGapTop:t===a&&x===-1,dragOverGapBottom:t===a&&x===1};return o}function W(a){var s=a.data,y=a.expanded,m=a.selected,K=a.checked,O=a.loaded,f=a.loading,R=a.halfChecked,t=a.dragOver,x=a.dragOverGapTop,D=a.dragOverGapBottom,G=a.pos,o=a.active,i=a.eventKey,h=(0,ge.Z)((0,ge.Z)({},s),{},{expanded:y,selected:m,checked:K,loaded:O,loading:f,halfChecked:R,dragOver:t,dragOverGapTop:x,dragOverGapBottom:D,pos:G,active:o,key:i});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,Ke.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),a}}),h}}}]);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[5046],{50344:function(R,n,e){e.d(n,{Z:function(){return t}});var l=e(67294),s=e(11805);function t(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[];return l.Children.forEach(c,function(u){u==null&&!f.keepEmpty||(Array.isArray(u)?i=i.concat(t(u)):(0,s.isFragment)(u)&&u.props?i=i.concat(t(u.props.children,f)):i.push(u))}),i}},64019:function(R,n,e){e.d(n,{Z:function(){return s}});var l=e(73935);function s(t,c,f,i){var u=l.unstable_batchedUpdates?function(v){l.unstable_batchedUpdates(f,v)}:f;return t!=null&&t.addEventListener&&t.addEventListener(c,u,i),{remove:function(){t!=null&&t.removeEventListener&&t.removeEventListener(c,u,i)}}}},98924:function(R,n,e){e.d(n,{Z:function(){return l}});function l(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},94999:function(R,n,e){e.d(n,{Z:function(){return l}});function l(s,t){if(!s)return!1;if(s.contains)return s.contains(t);for(var c=t;c;){if(c===s)return!0;c=c.parentNode}return!1}},27678:function(R,n,e){e.d(n,{g1:function(){return d},os:function(){return p}});var l=/margin|padding|width|height|max|min|offset/,s={left:!0,top:!0},t={cssFloat:1,styleFloat:1,float:1};function c(m){return m.nodeType===1?m.ownerDocument.defaultView.getComputedStyle(m,null):{}}function f(m,_,a){if(_=_.toLowerCase(),a==="auto"){if(_==="height")return m.offsetHeight;if(_==="width")return m.offsetWidth}return _ in s||(s[_]=l.test(_)),s[_]?parseFloat(a)||0:a}function i(m,_){var a=arguments.length,M=c(m);return _=t[_]?"cssFloat"in m.style?"cssFloat":"styleFloat":_,a===1?M:f(m,_,M[_]||m.style[_])}function u(m,_,a){var M=arguments.length;if(_=t[_]?"cssFloat"in m.style?"cssFloat":"styleFloat":_,M===3)return typeof a=="number"&&l.test(_)&&(a="".concat(a,"px")),m.style[_]=a,a;for(var g in _)_.hasOwnProperty(g)&&u(m,g,_[g]);return c(m)}function E(m){return m===document.body?document.documentElement.clientWidth:m.offsetWidth}function v(m){return m===document.body?window.innerHeight||document.documentElement.clientHeight:m.offsetHeight}function r(){var m=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:m,height:_}}function d(){var m=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:m,height:_}}function o(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function p(m){var _=m.getBoundingClientRect(),a=document.documentElement;return{left:_.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},44958:function(R,n,e){e.d(n,{hq:function(){return a},jL:function(){return p}});var l=e(98924),s=e(94999),t="data-rc-order",c="data-rc-priority",f="rc-util-key",i=new Map;function u(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=M.mark;return g?g.startsWith("data-")?g:"data-".concat(g):f}function E(M){if(M.attachTo)return M.attachTo;var g=document.querySelector("head");return g||document.body}function v(M){return M==="queue"?"prependQueue":M?"prepend":"append"}function r(M){return Array.from((i.get(M)||M).children).filter(function(g){return g.tagName==="STYLE"})}function d(M){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,l.Z)())return null;var h=g.csp,O=g.prepend,C=g.priority,A=C===void 0?0:C,S=v(O),D=S==="prependQueue",P=document.createElement("style");P.setAttribute(t,S),D&&A&&P.setAttribute(c,"".concat(A)),h!=null&&h.nonce&&(P.nonce=h==null?void 0:h.nonce),P.innerHTML=M;var y=E(g),T=y.firstChild;if(O){if(D){var b=r(y).filter(function(L){if(!["prepend","prependQueue"].includes(L.getAttribute(t)))return!1;var w=Number(L.getAttribute(c)||0);return A>=w});if(b.length)return y.insertBefore(P,b[b.length-1].nextSibling),P}y.insertBefore(P,T)}else y.appendChild(P);return P}function o(M){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=E(g);return r(h).find(function(O){return O.getAttribute(u(g))===M})}function p(M){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=o(M,g);if(h){var O=E(g);O.removeChild(h)}}function m(M,g){var h=i.get(M);if(!h||!(0,s.Z)(document,h)){var O=d("",g),C=O.parentNode;i.set(M,C),M.removeChild(O)}}function _(){i.clear()}function a(M,g){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=E(h);m(O,h);var C=o(g,h);if(C){var A,S;if((A=h.csp)!==null&&A!==void 0&&A.nonce&&C.nonce!==((S=h.csp)===null||S===void 0?void 0:S.nonce)){var D;C.nonce=(D=h.csp)===null||D===void 0?void 0:D.nonce}return C.innerHTML!==M&&(C.innerHTML=M),C}var P=d(M,h);return P.setAttribute(u(h),g),P}},34203:function(R,n,e){e.d(n,{S:function(){return t},Z:function(){return c}});var l=e(67294),s=e(73935);function t(f){return f instanceof HTMLElement||f instanceof SVGElement}function c(f){return t(f)?f:f instanceof l.Component?s.findDOMNode(f):null}},88603:function(R,n,e){e.d(n,{tS:function(){return c}});var l=e(74902),s=e(5110);function t(r){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,s.Z)(r)){var o=r.nodeName.toLowerCase(),p=["input","select","textarea","button"].includes(o)||r.isContentEditable||o==="a"&&!!r.getAttribute("href"),m=r.getAttribute("tabindex"),_=Number(m),a=null;return m&&!Number.isNaN(_)?a=_:p&&a===null&&(a=0),p&&r.disabled&&(a=null),a!==null&&(a>=0||d&&a<0)}return!1}function c(r){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=(0,l.Z)(r.querySelectorAll("*")).filter(function(p){return t(p,d)});return t(r,d)&&o.unshift(r),o}var f=null;function i(){f=document.activeElement}function u(){f=null}function E(){if(f)try{f.focus()}catch(r){}}function v(r,d){if(d.keyCode===9){var o=c(r),p=o[d.shiftKey?0:o.length-1],m=p===document.activeElement||r===document.activeElement;if(m){var _=o[d.shiftKey?o.length-1:0];_.focus(),d.preventDefault()}}}},5110:function(R,n){n.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var l=e.getBBox(),s=l.width,t=l.height;if(s||t)return!0}if(e.getBoundingClientRect){var c=e.getBoundingClientRect(),f=c.width,i=c.height;if(f||i)return!0}}return!1}},27571:function(R,n,e){e.d(n,{A:function(){return t}});function l(c){var f;return c==null||(f=c.getRootNode)===null||f===void 0?void 0:f.call(c)}function s(c){return l(c)instanceof ShadowRoot}function t(c){return s(c)?l(c):null}},79370:function(R,n,e){e.d(n,{G:function(){return c}});var l=e(98924),s=function(i){if((0,l.Z)()&&window.document.documentElement){var u=Array.isArray(i)?i:[i],E=window.document.documentElement;return u.some(function(v){return v in E.style})}return!1},t=function(i,u){if(!s(i))return!1;var E=document.createElement("div"),v=E.style[i];return E.style[i]=u,E.style[i]!==v};function c(f,i){return!Array.isArray(f)&&i!==void 0?t(f,i):s(f)}},15105:function(R,n){var e={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(s){var t=s.keyCode;if(s.altKey&&!s.ctrlKey||s.metaKey||t>=e.F1&&t<=e.F12)return!1;switch(t){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(s){if(s>=e.ZERO&&s<=e.NINE||s>=e.NUM_ZERO&&s<=e.NUM_MULTIPLY||s>=e.A&&s<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&s===0)return!0;switch(s){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};n.Z=e},38135:function(R,n,e){var l;e.d(n,{s:function(){return g},v:function(){return S}});var s=e(74165),t=e(15861),c=e(71002),f=e(1413),i=e(73935),u=(0,f.Z)({},l||(l=e.t(i,2))),E=u.version,v=u.render,r=u.unmountComponentAtNode,d;try{var o=Number((E||"").split(".")[0]);o>=18&&(d=u.createRoot)}catch(P){}function p(P){var y=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;y&&(0,c.Z)(y)==="object"&&(y.usingClientEntryPoint=P)}var m="__rc_react_root__";function _(P,y){p(!0);var T=y[m]||d(y);p(!1),T.render(P),y[m]=T}function a(P,y){v(P,y)}function M(P,y){}function g(P,y){if(d){_(P,y);return}a(P,y)}function h(P){return O.apply(this,arguments)}function O(){return O=(0,t.Z)((0,s.Z)().mark(function P(y){return(0,s.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",Promise.resolve().then(function(){var L;(L=y[m])===null||L===void 0||L.unmount(),delete y[m]}));case 1:case"end":return b.stop()}},P)})),O.apply(this,arguments)}function C(P){r(P)}function A(P){}function S(P){return D.apply(this,arguments)}function D(){return D=(0,t.Z)((0,s.Z)().mark(function P(y){return(0,s.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(d===void 0){b.next=2;break}return b.abrupt("return",h(y));case 2:C(y);case 3:case"end":return b.stop()}},P)})),D.apply(this,arguments)}},74204:function(R,n,e){e.d(n,{Z:function(){return s},o:function(){return c}});var l;function s(f){if(typeof document=="undefined")return 0;if(f||l===void 0){var i=document.createElement("div");i.style.width="100%",i.style.height="200px";var u=document.createElement("div"),E=u.style;E.position="absolute",E.top="0",E.left="0",E.pointerEvents="none",E.visibility="hidden",E.width="200px",E.height="150px",E.overflow="hidden",u.appendChild(i),document.body.appendChild(u);var v=i.offsetWidth;u.style.overflow="scroll";var r=i.offsetWidth;v===r&&(r=u.clientWidth),document.body.removeChild(u),l=v-r}return l}function t(f){var i=f.match(/^(.*)px$/),u=Number(i==null?void 0:i[1]);return Number.isNaN(u)?s():u}function c(f){if(typeof document=="undefined"||!f||!(f instanceof Element))return{width:0,height:0};var i=getComputedStyle(f,"::-webkit-scrollbar"),u=i.width,E=i.height;return{width:t(u),height:t(E)}}},66680:function(R,n,e){e.d(n,{Z:function(){return s}});var l=e(67294);function s(t){var c=l.useRef();c.current=t;var f=l.useCallback(function(){for(var i,u=arguments.length,E=new Array(u),v=0;v<u;v++)E[v]=arguments[v];return(i=c.current)===null||i===void 0?void 0:i.call.apply(i,[c].concat(E))},[]);return f}},7028:function(R,n,e){var l,s=e(97685),t=e(1413),c=e(67294);function f(){var v=(0,t.Z)({},l||(l=e.t(c,2)));return v.useId}var i=0;function u(){}var E=f();n.Z=E?function(r){var d=E();return r||d}:function(r){var d=c.useState("ssr-id"),o=(0,s.Z)(d,2),p=o[0],m=o[1];return c.useEffect(function(){var _=i;i+=1,m("rc_unique_".concat(_))},[]),r||p}},8410:function(R,n,e){e.d(n,{o:function(){return f}});var l=e(67294),s=e(98924),t=(0,s.Z)()?l.useLayoutEffect:l.useEffect,c=function(u,E){var v=l.useRef(!0);t(function(){return u(v.current)},E),t(function(){return v.current=!1,function(){v.current=!0}},[])},f=function(u,E){c(function(v){if(!v)return u()},E)};n.Z=c},56982:function(R,n,e){e.d(n,{Z:function(){return s}});var l=e(67294);function s(t,c,f){var i=l.useRef({});return(!("value"in i.current)||f(i.current.condition,c))&&(i.current.value=t(),i.current.condition=c),i.current.value}},21770:function(R,n,e){e.d(n,{Z:function(){return i}});var l=e(97685),s=e(66680),t=e(8410),c=e(30470);function f(u){return u!==void 0}function i(u,E){var v=E||{},r=v.defaultValue,d=v.value,o=v.onChange,p=v.postState,m=(0,c.Z)(function(){return f(d)?d:f(r)?typeof r=="function"?r():r:typeof u=="function"?u():u}),_=(0,l.Z)(m,2),a=_[0],M=_[1],g=d!==void 0?d:a,h=p?p(g):g,O=(0,s.Z)(o),C=(0,c.Z)([g]),A=(0,l.Z)(C,2),S=A[0],D=A[1];(0,t.o)(function(){var y=S[0];a!==y&&O(a,y)},[S]),(0,t.o)(function(){f(d)||M(d)},[d]);var P=(0,s.Z)(function(y,T){M(y,T),D([g],T)});return[h,P]}},38182:function(R,n,e){var l=e(97685),s=e(67294),t=e(31131),c=e(8410),f=function(){var u=(0,s.useState)(!1),E=(0,l.Z)(u,2),v=E[0],r=E[1];return(0,c.Z)(function(){r((0,t.Z)())},[]),v};n.Z=f},30470:function(R,n,e){e.d(n,{Z:function(){return t}});var l=e(97685),s=e(67294);function t(c){var f=s.useRef(!1),i=s.useState(c),u=(0,l.Z)(i,2),E=u[0],v=u[1];s.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function r(d,o){o&&f.current||v(d)}return[E,r]}},56790:function(R,n,e){e.d(n,{C8:function(){return s.Z},t4:function(){return t.t4},x1:function(){return t.x1},zX:function(){return l.Z}});var l=e(66680),s=e(21770),t=e(42550),c=e(8880),f=e(80334)},91881:function(R,n,e){var l=e(71002),s=e(80334);function t(c,f){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=new Set;function E(v,r){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=u.has(v);if((0,s.ZP)(!o,"Warning: There may be circular references"),o)return!1;if(v===r)return!0;if(i&&d>1)return!1;u.add(v);var p=d+1;if(Array.isArray(v)){if(!Array.isArray(r)||v.length!==r.length)return!1;for(var m=0;m<v.length;m++)if(!E(v[m],r[m],p))return!1;return!0}if(v&&r&&(0,l.Z)(v)==="object"&&(0,l.Z)(r)==="object"){var _=Object.keys(v);return _.length!==Object.keys(r).length?!1:_.every(function(a){return E(v[a],r[a],p)})}return!1}return E(c,f)}n.Z=t},31131:function(R,n){n.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))}},98423:function(R,n,e){e.d(n,{Z:function(){return s}});var l=e(1413);function s(t,c){var f=(0,l.Z)({},t);return Array.isArray(c)&&c.forEach(function(i){delete f[i]}),f}},64217:function(R,n,e){e.d(n,{Z:function(){return E}});var l=e(1413),s=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
2
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
3
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
4
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
5
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
6
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
7
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
8
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
9
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
10
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
11
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
12
|
-
summary tabIndex target title type useMap value width wmode wrap`,t=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
13
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
14
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
15
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
16
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
17
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
18
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,c="".concat(s," ").concat(t).split(/[\s\n]+/),f="aria-",i="data-";function u(v,r){return v.indexOf(r)===0}function E(v){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d;r===!1?d={aria:!0,data:!0,attr:!0}:r===!0?d={aria:!0}:d=(0,l.Z)({},r);var o={};return Object.keys(v).forEach(function(p){(d.aria&&(p==="role"||u(p,f))||d.data&&u(p,i)||d.attr&&c.includes(p))&&(o[p]=v[p])}),o}},75164:function(R,n){var e=function(u){return+setTimeout(u,16)},l=function(u){return clearTimeout(u)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(e=function(u){return window.requestAnimationFrame(u)},l=function(u){return window.cancelAnimationFrame(u)});var s=0,t=new Map;function c(i){t.delete(i)}var f=function(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;s+=1;var v=s;function r(d){if(d===0)c(v),u();else{var o=e(function(){r(d-1)});t.set(v,o)}}return r(E),v};f.cancel=function(i){var u=t.get(i);return c(i),l(u)},n.Z=f},42550:function(R,n,e){e.d(n,{Yr:function(){return E},mH:function(){return f},sQ:function(){return i},t4:function(){return v},x1:function(){return u}});var l=e(71002),s=e(67294),t=e(11805),c=e(56982);function f(r,d){typeof r=="function"?r(d):(0,l.Z)(r)==="object"&&r&&"current"in r&&(r.current=d)}function i(){for(var r=arguments.length,d=new Array(r),o=0;o<r;o++)d[o]=arguments[o];var p=d.filter(function(m){return m});return p.length<=1?p[0]:function(m){d.forEach(function(_){f(_,m)})}}function u(){for(var r=arguments.length,d=new Array(r),o=0;o<r;o++)d[o]=arguments[o];return(0,c.Z)(function(){return i.apply(void 0,d)},d,function(p,m){return p.length!==m.length||p.every(function(_,a){return _!==m[a]})})}function E(r){var d,o,p=(0,t.isMemo)(r)?r.type.type:r.type;return!(typeof p=="function"&&!((d=p.prototype)!==null&&d!==void 0&&d.render)||typeof r=="function"&&!((o=r.prototype)!==null&&o!==void 0&&o.render))}function v(r){return!(0,s.isValidElement)(r)||(0,t.isFragment)(r)?!1:E(r)}},88306:function(R,n,e){e.d(n,{Z:function(){return l}});function l(s,t){for(var c=s,f=0;f<t.length;f+=1){if(c==null)return;c=c[t[f]]}return c}},8880:function(R,n,e){e.d(n,{T:function(){return d},Z:function(){return u}});var l=e(71002),s=e(1413),t=e(74902),c=e(84506),f=e(88306);function i(o,p,m,_){if(!p.length)return m;var a=(0,c.Z)(p),M=a[0],g=a.slice(1),h;return!o&&typeof M=="number"?h=[]:Array.isArray(o)?h=(0,t.Z)(o):h=(0,s.Z)({},o),_&&m===void 0&&g.length===1?delete h[M][g[0]]:h[M]=i(h[M],g,m,_),h}function u(o,p,m){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return p.length&&_&&m===void 0&&!(0,f.Z)(o,p.slice(0,-1))?o:i(o,p,m,_)}function E(o){return(0,l.Z)(o)==="object"&&o!==null&&Object.getPrototypeOf(o)===Object.prototype}function v(o){return Array.isArray(o)?[]:{}}var r=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function d(){for(var o=arguments.length,p=new Array(o),m=0;m<o;m++)p[m]=arguments[m];var _=v(p[0]);return p.forEach(function(a){function M(g,h){var O=new Set(h),C=(0,f.Z)(a,g),A=Array.isArray(C);if(A||E(C)){if(!O.has(C)){O.add(C);var S=(0,f.Z)(_,g);A?_=u(_,g,[]):(!S||(0,l.Z)(S)!=="object")&&(_=u(_,g,v(C))),r(C).forEach(function(D){M([].concat((0,t.Z)(g),[D]),O)})}}else _=u(_,g,C)}M([])}),_}},80334:function(R,n,e){e.d(n,{ET:function(){return v},Kp:function(){return c}});var l={},s=[],t=function(d){s.push(d)};function c(r,d){if(!1)var o}function f(r,d){if(!1)var o}function i(){l={}}function u(r,d,o){!d&&!l[o]&&(r(!1,o),l[o]=!0)}function E(r,d){u(c,r,d)}function v(r,d){u(f,r,d)}E.preMessage=t,E.resetWarned=i,E.noteOnce=v,n.ZP=E},19158:function(R,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=e;function e(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},32191:function(R,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=e;function e(l,s){if(!l)return!1;if(l.contains)return l.contains(s);for(var t=s;t;){if(t===l)return!0;t=t.parentNode}return!1}},93399:function(R,n,e){var l=e(64836).default;Object.defineProperty(n,"__esModule",{value:!0}),n.clearContainerCache=a,n.injectCSS=o,n.removeCSS=m,n.updateCSS=M;var s=l(e(19158)),t=l(e(32191)),c="data-rc-order",f="data-rc-priority",i="rc-util-key",u=new Map;function E(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=g.mark;return h?h.startsWith("data-")?h:"data-".concat(h):i}function v(g){if(g.attachTo)return g.attachTo;var h=document.querySelector("head");return h||document.body}function r(g){return g==="queue"?"prependQueue":g?"prepend":"append"}function d(g){return Array.from((u.get(g)||g).children).filter(function(h){return h.tagName==="STYLE"})}function o(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,s.default)())return null;var O=h.csp,C=h.prepend,A=h.priority,S=A===void 0?0:A,D=r(C),P=D==="prependQueue",y=document.createElement("style");y.setAttribute(c,D),P&&S&&y.setAttribute(f,"".concat(S)),O!=null&&O.nonce&&(y.nonce=O==null?void 0:O.nonce),y.innerHTML=g;var T=v(h),b=T.firstChild;if(C){if(P){var L=d(T).filter(function(w){if(!["prepend","prependQueue"].includes(w.getAttribute(c)))return!1;var U=Number(w.getAttribute(f)||0);return S>=U});if(L.length)return T.insertBefore(y,L[L.length-1].nextSibling),y}T.insertBefore(y,b)}else T.appendChild(y);return y}function p(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=v(h);return d(O).find(function(C){return C.getAttribute(E(h))===g})}function m(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=p(g,h);if(O){var C=v(h);C.removeChild(O)}}function _(g,h){var O=u.get(g);if(!O||!(0,t.default)(document,O)){var C=o("",h),A=C.parentNode;u.set(g,A),g.removeChild(C)}}function a(){u.clear()}function M(g,h){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=v(O);_(C,O);var A=p(h,O);if(A){var S,D;if((S=O.csp)!==null&&S!==void 0&&S.nonce&&A.nonce!==((D=O.csp)===null||D===void 0?void 0:D.nonce)){var P;A.nonce=(P=O.csp)===null||P===void 0?void 0:P.nonce}return A.innerHTML!==g&&(A.innerHTML=g),A}var y=o(g,O);return y.setAttribute(E(O),h),y}},63298:function(R,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getShadowRoot=s,n.inShadow=l;function e(t){var c;return t==null||(c=t.getRootNode)===null||c===void 0?void 0:c.call(t)}function l(t){return e(t)instanceof ShadowRoot}function s(t){return l(t)?e(t):null}},67265:function(R,n,e){var l=e(75263).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;var s=l(e(67294));function t(c,f,i){var u=s.useRef({});return(!("value"in u.current)||i(u.current.condition,f))&&(u.current.value=c(),u.current.condition=f),u.current.value}},75531:function(R,n,e){var l,s=e(64836).default;l={value:!0},n.sQ=E,l=u,l=d,l=r,l=v;var t=s(e(18698)),c=e(67294),f=e(11805),i=s(e(67265));function u(o,p){typeof o=="function"?o(p):(0,t.default)(o)==="object"&&o&&"current"in o&&(o.current=p)}function E(){for(var o=arguments.length,p=new Array(o),m=0;m<o;m++)p[m]=arguments[m];var _=p.filter(function(a){return a});return _.length<=1?_[0]:function(a){p.forEach(function(M){u(M,a)})}}function v(){for(var o=arguments.length,p=new Array(o),m=0;m<o;m++)p[m]=arguments[m];return(0,i.default)(function(){return E.apply(void 0,p)},p,function(_,a){return _.length!==a.length||_.every(function(M,g){return M!==a[g]})})}function r(o){var p,m,_=(0,f.isMemo)(o)?o.type.type:o.type;return!(typeof _=="function"&&!((p=_.prototype)!==null&&p!==void 0&&p.render)||typeof o=="function"&&!((m=o.prototype)!==null&&m!==void 0&&m.render))}function d(o){return!(0,c.isValidElement)(o)||(0,f.isFragment)(o)?!1:r(o)}},45520:function(R,n){Object.defineProperty(n,"__esModule",{value:!0}),n.call=i,n.default=void 0,n.note=c,n.noteOnce=E,n.preMessage=void 0,n.resetWarned=f,n.warning=t,n.warningOnce=u;var e={},l=[],s=n.preMessage=function(d){l.push(d)};function t(r,d){if(!1)var o}function c(r,d){if(!1)var o}function f(){e={}}function i(r,d,o){!d&&!e[o]&&(r(!1,o),e[o]=!0)}function u(r,d){i(t,r,d)}function E(r,d){i(c,r,d)}u.preMessage=s,u.resetWarned=f,u.noteOnce=E;var v=n.default=u},51162:function(R,n){var e=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.server_context"),E=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),r=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),o=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function _(a){if(typeof a=="object"&&a!==null){var M=a.$$typeof;switch(M){case e:switch(a=a.type,a){case s:case c:case t:case v:case r:return a;default:switch(a=a&&a.$$typeof,a){case u:case i:case E:case o:case d:case f:return a;default:return M}}case l:return M}}}n.ContextConsumer=i,n.ContextProvider=f,n.Element=e,n.ForwardRef=E,n.Fragment=s,n.Lazy=o,n.Memo=d,n.Portal=l,n.Profiler=c,n.StrictMode=t,n.Suspense=v,n.SuspenseList=r,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(a){return _(a)===i},n.isContextProvider=function(a){return _(a)===f},n.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},n.isForwardRef=function(a){return _(a)===E},n.isFragment=function(a){return _(a)===s},n.isLazy=function(a){return _(a)===o},n.isMemo=function(a){return _(a)===d},n.isPortal=function(a){return _(a)===l},n.isProfiler=function(a){return _(a)===c},n.isStrictMode=function(a){return _(a)===t},n.isSuspense=function(a){return _(a)===v},n.isSuspenseList=function(a){return _(a)===r},n.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===s||a===c||a===t||a===v||a===r||a===p||typeof a=="object"&&a!==null&&(a.$$typeof===o||a.$$typeof===d||a.$$typeof===f||a.$$typeof===i||a.$$typeof===E||a.$$typeof===m||a.getModuleId!==void 0)},n.typeOf=_},11805:function(R,n,e){R.exports=e(51162)}}]);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[5105],{87774:function(Bn,ne,Re){var J=Re(67294);function m(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var T=Object.prototype.hasOwnProperty,O=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},R={};function Ae(e){return T.call(R,e)?!0:T.call(v,e)?!1:O.test(e)?R[e]=!0:(v[e]=!0,!1)}function N(e,r,l,i,p,a,f){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=i,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=e,this.type=r,this.sanitizeURL=a,this.removeEmptyString=f}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new N(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];S[r]=new N(r,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new N(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new N(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new N(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new N(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new N(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new N(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new N(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function _e(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace(g,_e);S[r]=new N(r,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(g,_e);S[r]=new N(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(g,_e);S[r]=new N(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new N(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new N(e,1,!1,e.toLowerCase(),null,!0,!0)});var z={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sn=["Webkit","ms","Moz","O"];Object.keys(z).forEach(function(e){sn.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),z[r]=z[e]})});var gt=/["'&<>]/;function V(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var r=gt.exec(e);if(r){var l="",i,p=0;for(i=r.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}p!==i&&(l+=e.substring(p,i)),p=i+1,l+=r}e=p!==i?l+e.substring(p,i):l}return e}var vt=/([A-Z])/g,L=/^ms-/,D=Array.isArray;function U(e,r){return{insertionMode:e,selectedValue:r}}function He(e,r,l){switch(r){case"select":return U(1,l.value!=null?l.value:l.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=e.insertionMode||e.insertionMode===0?U(1,null):e}var me=new Map;function St(e,r,l){if(typeof l!="object")throw Error(m(62));r=!0;for(var i in l)if(T.call(l,i)){var p=l[i];if(p!=null&&typeof p!="boolean"&&p!==""){if(i.indexOf("--")===0){var a=V(i);p=V((""+p).trim())}else{a=i;var f=me.get(a);f!==void 0||(f=V(a.replace(vt,"-$1").toLowerCase().replace(L,"-ms-")),me.set(a,f)),a=f,p=typeof p=="number"?p===0||T.call(z,i)?""+p:p+"px":V((""+p).trim())}r?(r=!1,e.push(' style="',a,":",p)):e.push(";",a,":",p)}}r||e.push('"')}function $(e,r,l,i){switch(l){case"style":St(e,r,i);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"){if(r=S.hasOwnProperty(l)?S[l]:null,r!==null){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!r.acceptsBooleans)return}switch(l=r.attributeName,r.type){case 3:i&&e.push(" ",l,'=""');break;case 4:i===!0?e.push(" ",l,'=""'):i!==!1&&e.push(" ",l,'="',V(i),'"');break;case 5:isNaN(i)||e.push(" ",l,'="',V(i),'"');break;case 6:!isNaN(i)&&1<=i&&e.push(" ",l,'="',V(i),'"');break;default:r.sanitizeURL&&(i=""+i),e.push(" ",l,'="',V(i),'"')}}else if(Ae(l)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(r=l.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-")return}e.push(" ",l,'="',V(i),'"')}}}function B(e,r,l){if(r!=null){if(l!=null)throw Error(m(60));if(typeof r!="object"||!("__html"in r))throw Error(m(61));r=r.__html,r!=null&&e.push(""+r)}}function an(e){var r="";return J.Children.forEach(e,function(l){l!=null&&(r+=l)}),r}function Ue(e,r,l,i){e.push(q(l));var p=l=null,a;for(a in r)if(T.call(r,a)){var f=r[a];if(f!=null)switch(a){case"children":l=f;break;case"dangerouslySetInnerHTML":p=f;break;default:$(e,i,a,f)}}return e.push(">"),B(e,p,l),typeof l=="string"?(e.push(V(l)),null):l}var We=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,xt=new Map;function q(e){var r=xt.get(e);if(r===void 0){if(!We.test(e))throw Error(m(65,e));r="<"+e,xt.set(e,r)}return r}function cn(e,r,l,i,p){switch(r){case"select":e.push(q("select"));var a=null,f=null;for(C in l)if(T.call(l,C)){var y=l[C];if(y!=null)switch(C){case"children":a=y;break;case"dangerouslySetInnerHTML":f=y;break;case"defaultValue":case"value":break;default:$(e,i,C,y)}}return e.push(">"),B(e,f,a),a;case"option":f=p.selectedValue,e.push(q("option"));var x=y=null,w=null,C=null;for(a in l)if(T.call(l,a)){var M=l[a];if(M!=null)switch(a){case"children":y=M;break;case"selected":w=M;break;case"dangerouslySetInnerHTML":C=M;break;case"value":x=M;default:$(e,i,a,M)}}if(f!=null)if(l=x!==null?""+x:an(y),D(f)){for(i=0;i<f.length;i++)if(""+f[i]===l){e.push(' selected=""');break}}else""+f===l&&e.push(' selected=""');else w&&e.push(' selected=""');return e.push(">"),B(e,C,y),y;case"textarea":e.push(q("textarea")),C=f=a=null;for(y in l)if(T.call(l,y)&&(x=l[y],x!=null))switch(y){case"children":C=x;break;case"value":a=x;break;case"defaultValue":f=x;break;case"dangerouslySetInnerHTML":throw Error(m(91));default:$(e,i,y,x)}if(a===null&&f!==null&&(a=f),e.push(">"),C!=null){if(a!=null)throw Error(m(92));if(D(C)&&1<C.length)throw Error(m(93));a=""+C}return typeof a=="string"&&a[0]===`
|
|
2
|
-
`&&e.push(`
|
|
3
|
-
`),a!==null&&e.push(V(""+a)),null;case"input":e.push(q("input")),x=C=y=a=null;for(f in l)if(T.call(l,f)&&(w=l[f],w!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(m(399,"input"));case"defaultChecked":x=w;break;case"defaultValue":y=w;break;case"checked":C=w;break;case"value":a=w;break;default:$(e,i,f,w)}return C!==null?$(e,i,"checked",C):x!==null&&$(e,i,"checked",x),a!==null?$(e,i,"value",a):y!==null&&$(e,i,"value",y),e.push("/>"),null;case"menuitem":e.push(q("menuitem"));for(var K in l)if(T.call(l,K)&&(a=l[K],a!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(m(400));default:$(e,i,K,a)}return e.push(">"),null;case"title":e.push(q("title")),a=null;for(M in l)if(T.call(l,M)&&(f=l[M],f!=null))switch(M){case"children":a=f;break;case"dangerouslySetInnerHTML":throw Error(m(434));default:$(e,i,M,f)}return e.push(">"),a;case"listing":case"pre":e.push(q(r)),f=a=null;for(x in l)if(T.call(l,x)&&(y=l[x],y!=null))switch(x){case"children":a=y;break;case"dangerouslySetInnerHTML":f=y;break;default:$(e,i,x,y)}if(e.push(">"),f!=null){if(a!=null)throw Error(m(60));if(typeof f!="object"||!("__html"in f))throw Error(m(61));l=f.__html,l!=null&&(typeof l=="string"&&0<l.length&&l[0]===`
|
|
4
|
-
`?e.push(`
|
|
5
|
-
`,l):e.push(""+l))}return typeof a=="string"&&a[0]===`
|
|
6
|
-
`&&e.push(`
|
|
7
|
-
`),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(q(r));for(var Q in l)if(T.call(l,Q)&&(a=l[Q],a!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(m(399,r));default:$(e,i,Q,a)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ue(e,l,r,i);case"html":return p.insertionMode===0&&e.push("<!DOCTYPE html>"),Ue(e,l,r,i);default:if(r.indexOf("-")===-1&&typeof l.is!="string")return Ue(e,l,r,i);e.push(q(r)),f=a=null;for(w in l)if(T.call(l,w)&&(y=l[w],y!=null))switch(w){case"children":a=y;break;case"dangerouslySetInnerHTML":f=y;break;case"style":St(e,i,y);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ae(w)&&typeof y!="function"&&typeof y!="symbol"&&e.push(" ",w,'="',V(y),'"')}return e.push(">"),B(e,f,a),a}}function kt(e,r,l){if(e.push('<!--$?--><template id="'),l===null)throw Error(m(395));return e.push(l),e.push('"></template>')}function wt(e,r,l,i){switch(l.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(r.segmentPrefix),r=i.toString(16),e.push(r),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(r.segmentPrefix),r=i.toString(16),e.push(r),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(r.segmentPrefix),r=i.toString(16),e.push(r),e.push('">');case 4:return e.push('<table hidden id="'),e.push(r.segmentPrefix),r=i.toString(16),e.push(r),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(r.segmentPrefix),r=i.toString(16),e.push(r),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(r.segmentPrefix),r=i.toString(16),e.push(r),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(r.segmentPrefix),r=i.toString(16),e.push(r),e.push('">');default:throw Error(m(397))}}function pn(e,r){switch(r.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(m(397))}}var fn=/[<\u2028\u2029]/g;function Ze(e){return JSON.stringify(e).replace(fn,function(r){switch(r){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function X(e,r){return r=r===void 0?"":r,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:r+"P:",segmentPrefix:r+"S:",boundaryPrefix:r+"B:",idPrefix:r,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function Ct(e,r,l,i){return l.generateStaticMarkup?(e.push(V(r)),!1):(r===""?e=i:(i&&e.push("<!-- -->"),e.push(V(r)),e=!0),e)}var ye=Object.assign,qe=Symbol.for("react.element"),Xe=Symbol.for("react.portal"),Ge=Symbol.for("react.fragment"),Et=Symbol.for("react.strict_mode"),Je=Symbol.for("react.profiler"),Ft=Symbol.for("react.provider"),Ye=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),oe=Symbol.for("react.scope"),Tt=Symbol.for("react.debug_trace_mode"),Pe=Symbol.for("react.legacy_hidden"),dn=Symbol.for("react.default_value"),Ie=Symbol.iterator;function ge(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ge:return"Fragment";case Xe:return"Portal";case Je:return"Profiler";case Et:return"StrictMode";case ie:return"Suspense";case re:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ye:return(e.displayName||"Context")+".Consumer";case Ft:return(e._context.displayName||"Context")+".Provider";case Y:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ke:return r=e.displayName||null,r!==null?r:ge(e.type)||"Memo";case b:r=e._payload,e=e._init;try{return ge(e(r))}catch(l){}}return null}var Me={};function Rt(e,r){if(e=e.contextTypes,!e)return Me;var l={},i;for(i in e)l[i]=r[i];return l}var le=null;function j(e,r){if(e!==r){e.context._currentValue2=e.parentValue,e=e.parent;var l=r.parent;if(e===null){if(l!==null)throw Error(m(401))}else{if(l===null)throw Error(m(401));j(e,l)}r.context._currentValue2=r.value}}function _t(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&_t(e)}function Pt(e){var r=e.parent;r!==null&&Pt(r),e.context._currentValue2=e.value}function It(e,r){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(m(402));e.depth===r.depth?j(e,r):It(e,r)}function Mt(e,r){var l=r.parent;if(l===null)throw Error(m(402));e.depth===l.depth?j(e,l):Mt(e,l),r.context._currentValue2=r.value}function Be(e){var r=le;r!==e&&(r===null?Pt(e):e===null?_t(r):r.depth===e.depth?j(r,e):r.depth>e.depth?It(r,e):Mt(r,e),le=e)}var Bt={isMounted:function(){return!1},enqueueSetState:function(e,r){e=e._reactInternals,e.queue!==null&&e.queue.push(r)},enqueueReplaceState:function(e,r){e=e._reactInternals,e.replace=!0,e.queue=[r]},enqueueForceUpdate:function(){}};function Dt(e,r,l,i){var p=e.state!==void 0?e.state:null;e.updater=Bt,e.props=l,e.state=p;var a={queue:[],replace:!1};e._reactInternals=a;var f=r.contextType;if(e.context=typeof f=="object"&&f!==null?f._currentValue2:i,f=r.getDerivedStateFromProps,typeof f=="function"&&(f=f(l,p),p=f==null?p:ye({},p,f),e.state=p),typeof r.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(r=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),r!==e.state&&Bt.enqueueReplaceState(e,e.state,null),a.queue!==null&&0<a.queue.length)if(r=a.queue,f=a.replace,a.queue=null,a.replace=!1,f&&r.length===1)e.state=r[0];else{for(a=f?r[0]:e.state,p=!0,f=f?1:0;f<r.length;f++){var y=r[f];y=typeof y=="function"?y.call(e,a,l,i):y,y!=null&&(p?(p=!1,a=ye({},a,y)):ye(a,y))}e.state=a}else a.queue=null}var hn={id:1,overflow:""};function Qe(e,r,l){var i=e.id;e=e.overflow;var p=32-De(i)-1;i&=~(1<<p),l+=1;var a=32-De(r)+p;if(30<a){var f=p-p%5;return a=(i&(1<<f)-1).toString(32),i>>=f,p-=f,{id:1<<32-De(r)+p|l<<p|i,overflow:a+e}}return{id:1<<a|l<<p|i,overflow:e}}var De=Math.clz32?Math.clz32:gn,mn=Math.log,yn=Math.LN2;function gn(e){return e>>>=0,e===0?32:31-(mn(e)/yn|0)|0}function vn(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var Sn=typeof Object.is=="function"?Object.is:vn,G=null,et=null,ze=null,_=null,ve=!1,Ne=!1,Se=0,ue=null,Ve=0;function se(){if(G===null)throw Error(m(321));return G}function zt(){if(0<Ve)throw Error(m(312));return{memoizedState:null,queue:null,next:null}}function tt(){return _===null?ze===null?(ve=!1,ze=_=zt()):(ve=!0,_=ze):_.next===null?(ve=!1,_=_.next=zt()):(ve=!0,_=_.next),_}function nt(){et=G=null,Ne=!1,ze=null,Ve=0,_=ue=null}function Nt(e,r){return typeof r=="function"?r(e):r}function Vt(e,r,l){if(G=se(),_=tt(),ve){var i=_.queue;if(r=i.dispatch,ue!==null&&(l=ue.get(i),l!==void 0)){ue.delete(i),i=_.memoizedState;do i=e(i,l.action),l=l.next;while(l!==null);return _.memoizedState=i,[i,r]}return[_.memoizedState,r]}return e=e===Nt?typeof r=="function"?r():r:l!==void 0?l(r):r,_.memoizedState=e,e=_.queue={last:null,dispatch:null},e=e.dispatch=xn.bind(null,G,e),[_.memoizedState,e]}function Lt(e,r){if(G=se(),_=tt(),r=r===void 0?null:r,_!==null){var l=_.memoizedState;if(l!==null&&r!==null){var i=l[1];e:if(i===null)i=!1;else{for(var p=0;p<i.length&&p<r.length;p++)if(!Sn(r[p],i[p])){i=!1;break e}i=!0}if(i)return l[0]}}return e=e(),_.memoizedState=[e,r],e}function xn(e,r,l){if(25<=Ve)throw Error(m(301));if(e===G)if(Ne=!0,e={action:l,next:null},ue===null&&(ue=new Map),l=ue.get(r),l===void 0)ue.set(r,e);else{for(r=l;r.next!==null;)r=r.next;r.next=e}}function kn(){throw Error(m(394))}function Le(){}var bt={readContext:function(e){return e._currentValue2},useContext:function(e){return se(),e._currentValue2},useMemo:Lt,useReducer:Vt,useRef:function(e){G=se(),_=tt();var r=_.memoizedState;return r===null?(e={current:e},_.memoizedState=e):r},useState:function(e){return Vt(Nt,e)},useInsertionEffect:Le,useLayoutEffect:function(){},useCallback:function(e,r){return Lt(function(){return e},r)},useImperativeHandle:Le,useEffect:Le,useDebugValue:Le,useDeferredValue:function(e){return se(),e},useTransition:function(){return se(),[!1,kn]},useId:function(){var e=et.treeContext,r=e.overflow;e=e.id,e=(e&~(1<<32-De(e)-1)).toString(32)+r;var l=be;if(l===null)throw Error(m(404));return r=Se++,e=":"+l.idPrefix+"R"+e,0<r&&(e+="H"+r.toString(32)),e+":"},useMutableSource:function(e,r){return se(),r(e._source)},useSyncExternalStore:function(e,r,l){if(l===void 0)throw Error(m(407));return l()}},be=null,rt=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function wn(e){return console.error(e),null}function xe(){}function Cn(e,r,l,i,p,a,f,y,x){var w=[],C=new Set;return r={destination:null,responseState:r,progressiveChunkSize:i===void 0?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:C,pingedTasks:w,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:p===void 0?wn:p,onAllReady:a===void 0?xe:a,onShellReady:f===void 0?xe:f,onShellError:y===void 0?xe:y,onFatalError:x===void 0?xe:x},l=Oe(r,0,null,l,!1,!1),l.parentFlushed=!0,e=ot(r,e,null,l,C,Me,null,hn),w.push(e),r}function ot(e,r,l,i,p,a,f,y){e.allPendingTasks++,l===null?e.pendingRootTasks++:l.pendingTasks++;var x={node:r,ping:function(){var w=e.pingedTasks;w.push(x),w.length===1&&Ut(e)},blockedBoundary:l,blockedSegment:i,abortSet:p,legacyContext:a,context:f,treeContext:y};return p.add(x),x}function Oe(e,r,l,i,p,a){return{status:0,id:-1,index:r,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:l,lastPushedText:p,textEmbedded:a}}function ke(e,r){if(e=e.onError(r),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function $e(e,r){var l=e.onShellError;l(r),l=e.onFatalError,l(r),e.destination!==null?(e.status=2,e.destination.destroy(r)):(e.status=1,e.fatalError=r)}function Ot(e,r,l,i,p){for(G={},et=r,Se=0,e=l(i,p);Ne;)Ne=!1,Se=0,Ve+=1,_=null,e=l(i,p);return nt(),e}function $t(e,r,l,i){var p=l.render(),a=i.childContextTypes;if(a!=null){var f=r.legacyContext;if(typeof l.getChildContext!="function")i=f;else{l=l.getChildContext();for(var y in l)if(!(y in a))throw Error(m(108,ge(i)||"Unknown",y));i=ye({},f,l)}r.legacyContext=i,A(e,r,p),r.legacyContext=f}else A(e,r,p)}function jt(e,r){if(e&&e.defaultProps){r=ye({},r),e=e.defaultProps;for(var l in e)r[l]===void 0&&(r[l]=e[l]);return r}return r}function lt(e,r,l,i,p){if(typeof l=="function")if(l.prototype&&l.prototype.isReactComponent){p=Rt(l,r.legacyContext);var a=l.contextType;a=new l(i,typeof a=="object"&&a!==null?a._currentValue2:p),Dt(a,l,i,p),$t(e,r,a,l)}else{a=Rt(l,r.legacyContext),p=Ot(e,r,l,i,a);var f=Se!==0;if(typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0)Dt(p,l,i,a),$t(e,r,p,l);else if(f){i=r.treeContext,r.treeContext=Qe(i,1,0);try{A(e,r,p)}finally{r.treeContext=i}}else A(e,r,p)}else if(typeof l=="string"){switch(p=r.blockedSegment,a=cn(p.chunks,l,i,e.responseState,p.formatContext),p.lastPushedText=!1,f=p.formatContext,p.formatContext=He(f,l,i),ut(e,r,a),p.formatContext=f,l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:p.chunks.push("</",l,">")}p.lastPushedText=!1}else{switch(l){case Pe:case Tt:case Et:case Je:case Ge:A(e,r,i.children);return;case re:A(e,r,i.children);return;case oe:throw Error(m(343));case ie:e:{l=r.blockedBoundary,p=r.blockedSegment,a=i.fallback,i=i.children,f=new Set;var y={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:f,errorDigest:null},x=Oe(e,p.chunks.length,y,p.formatContext,!1,!1);p.children.push(x),p.lastPushedText=!1;var w=Oe(e,0,null,p.formatContext,!1,!1);w.parentFlushed=!0,r.blockedBoundary=y,r.blockedSegment=w;try{if(ut(e,r,i),e.responseState.generateStaticMarkup||w.lastPushedText&&w.textEmbedded&&w.chunks.push("<!-- -->"),w.status=1,pe(y,w),y.pendingTasks===0)break e}catch(C){w.status=4,y.forceClientRender=!0,y.errorDigest=ke(e,C)}finally{r.blockedBoundary=l,r.blockedSegment=p}r=ot(e,a,l,x,f,r.legacyContext,r.context,r.treeContext),e.pingedTasks.push(r)}return}if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Y:if(i=Ot(e,r,l.render,i,p),Se!==0){l=r.treeContext,r.treeContext=Qe(l,1,0);try{A(e,r,i)}finally{r.treeContext=l}}else A(e,r,i);return;case Ke:l=l.type,i=jt(l,i),lt(e,r,l,i,p);return;case Ft:if(p=i.children,l=l._context,i=i.value,a=l._currentValue2,l._currentValue2=i,f=le,le=i={parent:f,depth:f===null?0:f.depth+1,context:l,parentValue:a,value:i},r.context=i,A(e,r,p),e=le,e===null)throw Error(m(403));i=e.parentValue,e.context._currentValue2=i===dn?e.context._defaultValue:i,e=le=e.parent,r.context=e;return;case Ye:i=i.children,i=i(l._currentValue2),A(e,r,i);return;case b:p=l._init,l=p(l._payload),i=jt(l,i),lt(e,r,l,i,void 0);return}throw Error(m(130,l==null?l:typeof l,""))}}function A(e,r,l){if(r.node=l,typeof l=="object"&&l!==null){switch(l.$$typeof){case qe:lt(e,r,l.type,l.props,l.ref);return;case Xe:throw Error(m(257));case b:var i=l._init;l=i(l._payload),A(e,r,l);return}if(D(l)){At(e,r,l);return}if(l===null||typeof l!="object"?i=null:(i=Ie&&l[Ie]||l["@@iterator"],i=typeof i=="function"?i:null),i&&(i=i.call(l))){if(l=i.next(),!l.done){var p=[];do p.push(l.value),l=i.next();while(!l.done);At(e,r,p)}return}throw e=Object.prototype.toString.call(l),Error(m(31,e==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":e))}typeof l=="string"?(i=r.blockedSegment,i.lastPushedText=Ct(r.blockedSegment.chunks,l,e.responseState,i.lastPushedText)):typeof l=="number"&&(i=r.blockedSegment,i.lastPushedText=Ct(r.blockedSegment.chunks,""+l,e.responseState,i.lastPushedText))}function At(e,r,l){for(var i=l.length,p=0;p<i;p++){var a=r.treeContext;r.treeContext=Qe(a,i,p);try{ut(e,r,l[p])}finally{r.treeContext=a}}}function ut(e,r,l){var i=r.blockedSegment.formatContext,p=r.legacyContext,a=r.context;try{return A(e,r,l)}catch(x){if(nt(),typeof x=="object"&&x!==null&&typeof x.then=="function"){l=x;var f=r.blockedSegment,y=Oe(e,f.chunks.length,null,f.formatContext,f.lastPushedText,!0);f.children.push(y),f.lastPushedText=!1,e=ot(e,r.node,r.blockedBoundary,y,r.abortSet,r.legacyContext,r.context,r.treeContext).ping,l.then(e,e),r.blockedSegment.formatContext=i,r.legacyContext=p,r.context=a,Be(a)}else throw r.blockedSegment.formatContext=i,r.legacyContext=p,r.context=a,Be(a),x}}function it(e){var r=e.blockedBoundary;e=e.blockedSegment,e.status=3,fe(this,r,e)}function Ht(e,r,l){var i=e.blockedBoundary;e.blockedSegment.status=3,i===null?(r.allPendingTasks--,r.status!==2&&(r.status=2,r.destination!==null&&r.destination.push(null))):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,e=l===void 0?Error(m(432)):l,i.errorDigest=r.onError(e),i.parentFlushed&&r.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(p){return Ht(p,r,l)}),i.fallbackAbortableTasks.clear(),r.allPendingTasks--,r.allPendingTasks===0&&(i=r.onAllReady,i()))}function pe(e,r){if(r.chunks.length===0&&r.children.length===1&&r.children[0].boundary===null){var l=r.children[0];l.id=r.id,l.parentFlushed=!0,l.status===1&&pe(e,l)}else e.completedSegments.push(r)}function fe(e,r,l){if(r===null){if(l.parentFlushed){if(e.completedRootSegment!==null)throw Error(m(389));e.completedRootSegment=l}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=xe,r=e.onShellReady,r())}else r.pendingTasks--,r.forceClientRender||(r.pendingTasks===0?(l.parentFlushed&&l.status===1&&pe(r,l),r.parentFlushed&&e.completedBoundaries.push(r),r.fallbackAbortableTasks.forEach(it,e),r.fallbackAbortableTasks.clear()):l.parentFlushed&&l.status===1&&(pe(r,l),r.completedSegments.length===1&&r.parentFlushed&&e.partialBoundaries.push(r)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function Ut(e){if(e.status!==2){var r=le,l=rt.current;rt.current=bt;var i=be;be=e.responseState;try{var p=e.pingedTasks,a;for(a=0;a<p.length;a++){var f=p[a],y=e,x=f.blockedSegment;if(x.status===0){Be(f.context);try{A(y,f,f.node),y.responseState.generateStaticMarkup||x.lastPushedText&&x.textEmbedded&&x.chunks.push("<!-- -->"),f.abortSet.delete(f),x.status=1,fe(y,f.blockedBoundary,x)}catch(W){if(nt(),typeof W=="object"&&W!==null&&typeof W.then=="function"){var w=f.ping;W.then(w,w)}else{f.abortSet.delete(f),x.status=4;var C=f.blockedBoundary,M=W,K=ke(y,M);if(C===null?$e(y,M):(C.pendingTasks--,C.forceClientRender||(C.forceClientRender=!0,C.errorDigest=K,C.parentFlushed&&y.clientRenderedBoundaries.push(C))),y.allPendingTasks--,y.allPendingTasks===0){var Q=y.onAllReady;Q()}}}finally{}}}p.splice(0,a),e.destination!==null&&je(e,e.destination)}catch(W){ke(e,W),$e(e,W)}finally{be=i,rt.current=l,l===bt&&Be(r)}}}function we(e,r,l){switch(l.parentFlushed=!0,l.status){case 0:var i=l.id=e.nextSegmentId++;return l.lastPushedText=!1,l.textEmbedded=!1,e=e.responseState,r.push('<template id="'),r.push(e.placeholderPrefix),e=i.toString(16),r.push(e),r.push('"></template>');case 1:l.status=2;var p=!0;i=l.chunks;var a=0;l=l.children;for(var f=0;f<l.length;f++){for(p=l[f];a<p.index;a++)r.push(i[a]);p=Ce(e,r,p)}for(;a<i.length-1;a++)r.push(i[a]);return a<i.length&&(p=r.push(i[a])),p;default:throw Error(m(390))}}function Ce(e,r,l){var i=l.boundary;if(i===null)return we(e,r,l);if(i.parentFlushed=!0,i.forceClientRender)return e.responseState.generateStaticMarkup||(i=i.errorDigest,r.push("<!--$!-->"),r.push("<template"),i&&(r.push(' data-dgst="'),i=V(i),r.push(i),r.push('"')),r.push("></template>")),we(e,r,l),e=e.responseState.generateStaticMarkup?!0:r.push("<!--/$-->"),e;if(0<i.pendingTasks){i.rootSegmentID=e.nextSegmentId++,0<i.completedSegments.length&&e.partialBoundaries.push(i);var p=e.responseState,a=p.nextSuspenseID++;return p=p.boundaryPrefix+a.toString(16),i=i.id=p,kt(r,e.responseState,i),we(e,r,l),r.push("<!--/$-->")}if(i.byteSize>e.progressiveChunkSize)return i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),kt(r,e.responseState,i.id),we(e,r,l),r.push("<!--/$-->");if(e.responseState.generateStaticMarkup||r.push("<!--$-->"),l=i.completedSegments,l.length!==1)throw Error(m(391));return Ce(e,r,l[0]),e=e.responseState.generateStaticMarkup?!0:r.push("<!--/$-->"),e}function st(e,r,l){return wt(r,e.responseState,l.formatContext,l.id),Ce(e,r,l),pn(r,l.formatContext)}function at(e,r,l){for(var i=l.completedSegments,p=0;p<i.length;p++)ct(e,r,l,i[p]);if(i.length=0,e=e.responseState,i=l.id,l=l.rootSegmentID,r.push(e.startInlineScript),e.sentCompleteBoundaryFunction?r.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,r.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),i===null)throw Error(m(395));return l=l.toString(16),r.push(i),r.push('","'),r.push(e.segmentPrefix),r.push(l),r.push('")<\/script>')}function ct(e,r,l,i){if(i.status===2)return!0;var p=i.id;if(p===-1){if((i.id=l.rootSegmentID)===-1)throw Error(m(392));return st(e,r,i)}return st(e,r,i),e=e.responseState,r.push(e.startInlineScript),e.sentCompleteSegmentFunction?r.push('$RS("'):(e.sentCompleteSegmentFunction=!0,r.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),r.push(e.segmentPrefix),p=p.toString(16),r.push(p),r.push('","'),r.push(e.placeholderPrefix),r.push(p),r.push('")<\/script>')}function je(e,r){try{var l=e.completedRootSegment;if(l!==null&&e.pendingRootTasks===0){Ce(e,r,l),e.completedRootSegment=null;var i=e.responseState.bootstrapChunks;for(l=0;l<i.length-1;l++)r.push(i[l]);l<i.length&&r.push(i[l])}var p=e.clientRenderedBoundaries,a;for(a=0;a<p.length;a++){var f=p[a];i=r;var y=e.responseState,x=f.id,w=f.errorDigest,C=f.errorMessage,M=f.errorComponentStack;if(i.push(y.startInlineScript),y.sentClientRenderFunction?i.push('$RX("'):(y.sentClientRenderFunction=!0,i.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),x===null)throw Error(m(395));if(i.push(x),i.push('"'),w||C||M){i.push(",");var K=Ze(w||"");i.push(K)}if(C||M){i.push(",");var Q=Ze(C||"");i.push(Q)}if(M){i.push(",");var W=Ze(M);i.push(W)}if(!i.push(")<\/script>")){e.destination=null,a++,p.splice(0,a);return}}p.splice(0,a);var Ee=e.completedBoundaries;for(a=0;a<Ee.length;a++)if(!at(e,r,Ee[a])){e.destination=null,a++,Ee.splice(0,a);return}Ee.splice(0,a);var ae=e.partialBoundaries;for(a=0;a<ae.length;a++){var ft=ae[a];e:{p=e,f=r;var Fe=ft.completedSegments;for(y=0;y<Fe.length;y++)if(!ct(p,f,ft,Fe[y])){y++,Fe.splice(0,y);var qt=!1;break e}Fe.splice(0,y),qt=!0}if(!qt){e.destination=null,a++,ae.splice(0,a);return}}ae.splice(0,a);var de=e.completedBoundaries;for(a=0;a<de.length;a++)if(!at(e,r,de[a])){e.destination=null,a++,de.splice(0,a);return}de.splice(0,a)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&r.push(null)}}function Wt(e,r){try{var l=e.abortableTasks;l.forEach(function(i){return Ht(i,e,r)}),l.clear(),e.destination!==null&&je(e,e.destination)}catch(i){ke(e,i),$e(e,i)}}function Zt(){}function pt(e,r,l,i){var p=!1,a=null,f="",y={push:function(w){return w!==null&&(f+=w),!0},destroy:function(w){p=!0,a=w}},x=!1;if(e=Cn(e,X(l,r?r.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Zt,void 0,function(){x=!0},void 0,void 0),Ut(e),Wt(e,i),e.status===1)e.status=2,y.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=y;try{je(e,y)}catch(w){ke(e,w),$e(e,w)}}if(p)throw a;if(!x)throw Error(m(426));return f}ne.renderToNodeStream=function(){throw Error(m(207))},ne.renderToStaticMarkup=function(e,r){return pt(e,r,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ne.renderToStaticNodeStream=function(){throw Error(m(208))},ne.renderToString=function(e,r){return pt(e,r,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ne.version="18.2.0"},38698:function(Bn,ne,Re){var J=Re(67294);function m(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var T=null,O=0;function v(t,n){if(n.length!==0)if(512<n.length)0<O&&(t.enqueue(new Uint8Array(T.buffer,0,O)),T=new Uint8Array(512),O=0),t.enqueue(n);else{var o=T.length-O;o<n.length&&(o===0?t.enqueue(T):(T.set(n.subarray(0,o),O),t.enqueue(T),n=n.subarray(o)),T=new Uint8Array(512),O=0),T.set(n,O),O+=n.length}}function R(t,n){return v(t,n),!0}function Ae(t){T&&0<O&&(t.enqueue(new Uint8Array(T.buffer,0,O)),T=null,O=0)}var N=new TextEncoder;function S(t){return N.encode(t)}function g(t){return N.encode(t)}function _e(t,n){typeof t.error=="function"?t.error(n):t.close()}var z=Object.prototype.hasOwnProperty,sn=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,gt={},V={};function vt(t){return z.call(V,t)?!0:z.call(gt,t)?!1:sn.test(t)?V[t]=!0:(gt[t]=!0,!1)}function L(t,n,o,u,c,s,d){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=u,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=t,this.type=n,this.sanitizeURL=s,this.removeEmptyString=d}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){D[t]=new L(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];D[n]=new L(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){D[t]=new L(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){D[t]=new L(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){D[t]=new L(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){D[t]=new L(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){D[t]=new L(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){D[t]=new L(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){D[t]=new L(t,5,!1,t.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function He(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var n=t.replace(U,He);D[n]=new L(n,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(U,He);D[n]=new L(n,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(U,He);D[n]=new L(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){D[t]=new L(t,1,!1,t.toLowerCase(),null,!1,!1)}),D.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){D[t]=new L(t,1,!1,t.toLowerCase(),null,!0,!0)});var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},St=["Webkit","ms","Moz","O"];Object.keys(me).forEach(function(t){St.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),me[n]=me[t]})});var $=/["'&<>]/;function B(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var n=$.exec(t);if(n){var o="",u,c=0;for(u=n.index;u<t.length;u++){switch(t.charCodeAt(u)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}c!==u&&(o+=t.substring(c,u)),c=u+1,o+=n}t=c!==u?o+t.substring(c,u):o}return t}var an=/([A-Z])/g,Ue=/^ms-/,We=Array.isArray,xt=g("<script>"),q=g("<\/script>"),cn=g('<script src="'),kt=g('<script type="module" src="'),wt=g('" async=""><\/script>'),pn=/(<\/|<)(s)(cript)/gi;function fn(t,n,o,u){return""+n+(o==="s"?"\\u0073":"\\u0053")+u}function Ze(t,n,o,u,c){t=t===void 0?"":t,n=n===void 0?xt:g('<script nonce="'+B(n)+'">');var s=[];if(o!==void 0&&s.push(n,S((""+o).replace(pn,fn)),q),u!==void 0)for(o=0;o<u.length;o++)s.push(cn,S(B(u[o])),wt);if(c!==void 0)for(u=0;u<c.length;u++)s.push(kt,S(B(c[u])),wt);return{bootstrapChunks:s,startInlineScript:n,placeholderPrefix:g(t+"P:"),segmentPrefix:g(t+"S:"),boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function X(t,n){return{insertionMode:t,selectedValue:n}}function Ct(t){return X(t==="http://www.w3.org/2000/svg"?2:t==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ye(t,n,o){switch(n){case"select":return X(1,o.value!=null?o.value:o.defaultValue);case"svg":return X(2,null);case"math":return X(3,null);case"foreignObject":return X(1,null);case"table":return X(4,null);case"thead":case"tbody":case"tfoot":return X(5,null);case"colgroup":return X(7,null);case"tr":return X(6,null)}return 4<=t.insertionMode||t.insertionMode===0?X(1,null):t}var qe=g("<!-- -->");function Xe(t,n,o,u){return n===""?u:(u&&t.push(qe),t.push(S(B(n))),!0)}var Ge=new Map,Et=g(' style="'),Je=g(":"),Ft=g(";");function Ye(t,n,o){if(typeof o!="object")throw Error(m(62));n=!0;for(var u in o)if(z.call(o,u)){var c=o[u];if(c!=null&&typeof c!="boolean"&&c!==""){if(u.indexOf("--")===0){var s=S(B(u));c=S(B((""+c).trim()))}else{s=u;var d=Ge.get(s);d!==void 0||(d=g(B(s.replace(an,"-$1").toLowerCase().replace(Ue,"-ms-"))),Ge.set(s,d)),s=d,c=typeof c=="number"?c===0||z.call(me,u)?S(""+c):S(c+"px"):S(B((""+c).trim()))}n?(n=!1,t.push(Et,s,Je,c)):t.push(Ft,s,Je,c)}}n||t.push(re)}var Y=g(" "),ie=g('="'),re=g('"'),Ke=g('=""');function b(t,n,o,u){switch(o){case"style":Ye(t,n,u);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"){if(n=D.hasOwnProperty(o)?D[o]:null,n!==null){switch(typeof u){case"function":case"symbol":return;case"boolean":if(!n.acceptsBooleans)return}switch(o=S(n.attributeName),n.type){case 3:u&&t.push(Y,o,Ke);break;case 4:u===!0?t.push(Y,o,Ke):u!==!1&&t.push(Y,o,ie,S(B(u)),re);break;case 5:isNaN(u)||t.push(Y,o,ie,S(B(u)),re);break;case 6:!isNaN(u)&&1<=u&&t.push(Y,o,ie,S(B(u)),re);break;default:n.sanitizeURL&&(u=""+u),t.push(Y,o,ie,S(B(u)),re)}}else if(vt(o)){switch(typeof u){case"function":case"symbol":return;case"boolean":if(n=o.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-")return}t.push(Y,S(o),ie,S(B(u)),re)}}}var oe=g(">"),Tt=g("/>");function Pe(t,n,o){if(n!=null){if(o!=null)throw Error(m(60));if(typeof n!="object"||!("__html"in n))throw Error(m(61));n=n.__html,n!=null&&t.push(S(""+n))}}function dn(t){var n="";return J.Children.forEach(t,function(o){o!=null&&(n+=o)}),n}var Ie=g(' selected=""');function ge(t,n,o,u){t.push(j(o));var c=o=null,s;for(s in n)if(z.call(n,s)){var d=n[s];if(d!=null)switch(s){case"children":o=d;break;case"dangerouslySetInnerHTML":c=d;break;default:b(t,u,s,d)}}return t.push(oe),Pe(t,c,o),typeof o=="string"?(t.push(S(B(o))),null):o}var Me=g(`
|
|
8
|
-
`),Rt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,le=new Map;function j(t){var n=le.get(t);if(n===void 0){if(!Rt.test(t))throw Error(m(65,t));n=g("<"+t),le.set(t,n)}return n}var _t=g("<!DOCTYPE html>");function Pt(t,n,o,u,c){switch(n){case"select":t.push(j("select"));var s=null,d=null;for(E in o)if(z.call(o,E)){var h=o[E];if(h!=null)switch(E){case"children":s=h;break;case"dangerouslySetInnerHTML":d=h;break;case"defaultValue":case"value":break;default:b(t,u,E,h)}}return t.push(oe),Pe(t,d,s),s;case"option":d=c.selectedValue,t.push(j("option"));var k=h=null,F=null,E=null;for(s in o)if(z.call(o,s)){var I=o[s];if(I!=null)switch(s){case"children":h=I;break;case"selected":F=I;break;case"dangerouslySetInnerHTML":E=I;break;case"value":k=I;default:b(t,u,s,I)}}if(d!=null)if(o=k!==null?""+k:dn(h),We(d)){for(u=0;u<d.length;u++)if(""+d[u]===o){t.push(Ie);break}}else""+d===o&&t.push(Ie);else F&&t.push(Ie);return t.push(oe),Pe(t,E,h),h;case"textarea":t.push(j("textarea")),E=d=s=null;for(h in o)if(z.call(o,h)&&(k=o[h],k!=null))switch(h){case"children":E=k;break;case"value":s=k;break;case"defaultValue":d=k;break;case"dangerouslySetInnerHTML":throw Error(m(91));default:b(t,u,h,k)}if(s===null&&d!==null&&(s=d),t.push(oe),E!=null){if(s!=null)throw Error(m(92));if(We(E)&&1<E.length)throw Error(m(93));s=""+E}return typeof s=="string"&&s[0]===`
|
|
9
|
-
`&&t.push(Me),s!==null&&t.push(S(B(""+s))),null;case"input":t.push(j("input")),k=E=h=s=null;for(d in o)if(z.call(o,d)&&(F=o[d],F!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(m(399,"input"));case"defaultChecked":k=F;break;case"defaultValue":h=F;break;case"checked":E=F;break;case"value":s=F;break;default:b(t,u,d,F)}return E!==null?b(t,u,"checked",E):k!==null&&b(t,u,"checked",k),s!==null?b(t,u,"value",s):h!==null&&b(t,u,"value",h),t.push(Tt),null;case"menuitem":t.push(j("menuitem"));for(var H in o)if(z.call(o,H)&&(s=o[H],s!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(m(400));default:b(t,u,H,s)}return t.push(oe),null;case"title":t.push(j("title")),s=null;for(I in o)if(z.call(o,I)&&(d=o[I],d!=null))switch(I){case"children":s=d;break;case"dangerouslySetInnerHTML":throw Error(m(434));default:b(t,u,I,d)}return t.push(oe),s;case"listing":case"pre":t.push(j(n)),d=s=null;for(k in o)if(z.call(o,k)&&(h=o[k],h!=null))switch(k){case"children":s=h;break;case"dangerouslySetInnerHTML":d=h;break;default:b(t,u,k,h)}if(t.push(oe),d!=null){if(s!=null)throw Error(m(60));if(typeof d!="object"||!("__html"in d))throw Error(m(61));o=d.__html,o!=null&&(typeof o=="string"&&0<o.length&&o[0]===`
|
|
10
|
-
`?t.push(Me,S(o)):t.push(S(""+o)))}return typeof s=="string"&&s[0]===`
|
|
11
|
-
`&&t.push(Me),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":t.push(j(n));for(var ee in o)if(z.call(o,ee)&&(s=o[ee],s!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(m(399,n));default:b(t,u,ee,s)}return t.push(Tt),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ge(t,o,n,u);case"html":return c.insertionMode===0&&t.push(_t),ge(t,o,n,u);default:if(n.indexOf("-")===-1&&typeof o.is!="string")return ge(t,o,n,u);t.push(j(n)),d=s=null;for(F in o)if(z.call(o,F)&&(h=o[F],h!=null))switch(F){case"children":s=h;break;case"dangerouslySetInnerHTML":d=h;break;case"style":Ye(t,u,h);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:vt(F)&&typeof h!="function"&&typeof h!="symbol"&&t.push(Y,S(F),ie,S(B(h)),re)}return t.push(oe),Pe(t,d,s),s}}var It=g("</"),Mt=g(">"),Be=g('<template id="'),Bt=g('"></template>'),Dt=g("<!--$-->"),hn=g('<!--$?--><template id="'),Qe=g('"></template>'),De=g("<!--$!-->"),mn=g("<!--/$-->"),yn=g("<template"),gn=g('"'),vn=g(' data-dgst="');g(' data-msg="'),g(' data-stck="');var Sn=g("></template>");function G(t,n,o){if(v(t,hn),o===null)throw Error(m(395));return v(t,o),R(t,Qe)}var et=g('<div hidden id="'),ze=g('">'),_=g("</div>"),ve=g('<svg aria-hidden="true" style="display:none" id="'),Ne=g('">'),Se=g("</svg>"),ue=g('<math aria-hidden="true" style="display:none" id="'),Ve=g('">'),se=g("</math>"),zt=g('<table hidden id="'),tt=g('">'),nt=g("</table>"),Nt=g('<table hidden><tbody id="'),Vt=g('">'),Lt=g("</tbody></table>"),xn=g('<table hidden><tr id="'),kn=g('">'),Le=g("</tr></table>"),bt=g('<table hidden><colgroup id="'),be=g('">'),rt=g("</colgroup></table>");function wn(t,n,o,u){switch(o.insertionMode){case 0:case 1:return v(t,et),v(t,n.segmentPrefix),v(t,S(u.toString(16))),R(t,ze);case 2:return v(t,ve),v(t,n.segmentPrefix),v(t,S(u.toString(16))),R(t,Ne);case 3:return v(t,ue),v(t,n.segmentPrefix),v(t,S(u.toString(16))),R(t,Ve);case 4:return v(t,zt),v(t,n.segmentPrefix),v(t,S(u.toString(16))),R(t,tt);case 5:return v(t,Nt),v(t,n.segmentPrefix),v(t,S(u.toString(16))),R(t,Vt);case 6:return v(t,xn),v(t,n.segmentPrefix),v(t,S(u.toString(16))),R(t,kn);case 7:return v(t,bt),v(t,n.segmentPrefix),v(t,S(u.toString(16))),R(t,be);default:throw Error(m(397))}}function xe(t,n){switch(n.insertionMode){case 0:case 1:return R(t,_);case 2:return R(t,Se);case 3:return R(t,se);case 4:return R(t,nt);case 5:return R(t,Lt);case 6:return R(t,Le);case 7:return R(t,rt);default:throw Error(m(397))}}var Cn=g('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ot=g('$RS("'),Oe=g('","'),ke=g('")<\/script>'),$e=g('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ot=g('$RC("'),$t=g('","'),jt=g('")<\/script>'),lt=g('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),A=g('$RX("'),At=g('"'),ut=g(")<\/script>"),it=g(","),Ht=/[<\u2028\u2029]/g;function pe(t){return JSON.stringify(t).replace(Ht,function(n){switch(n){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var fe=Object.assign,Ut=Symbol.for("react.element"),we=Symbol.for("react.portal"),Ce=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),ct=Symbol.for("react.provider"),je=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),Zt=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),e=Symbol.for("react.memo"),r=Symbol.for("react.lazy"),l=Symbol.for("react.scope"),i=Symbol.for("react.debug_trace_mode"),p=Symbol.for("react.legacy_hidden"),a=Symbol.for("react.default_value"),f=Symbol.iterator;function y(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ce:return"Fragment";case we:return"Portal";case at:return"Profiler";case st:return"StrictMode";case Zt:return"Suspense";case pt:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case je:return(t.displayName||"Context")+".Consumer";case ct:return(t._context.displayName||"Context")+".Provider";case Wt:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case e:return n=t.displayName||null,n!==null?n:y(t.type)||"Memo";case r:n=t._payload,t=t._init;try{return y(t(n))}catch(o){}}return null}var x={};function w(t,n){if(t=t.contextTypes,!t)return x;var o={},u;for(u in t)o[u]=n[u];return o}var C=null;function M(t,n){if(t!==n){t.context._currentValue=t.parentValue,t=t.parent;var o=n.parent;if(t===null){if(o!==null)throw Error(m(401))}else{if(o===null)throw Error(m(401));M(t,o)}n.context._currentValue=n.value}}function K(t){t.context._currentValue=t.parentValue,t=t.parent,t!==null&&K(t)}function Q(t){var n=t.parent;n!==null&&Q(n),t.context._currentValue=t.value}function W(t,n){if(t.context._currentValue=t.parentValue,t=t.parent,t===null)throw Error(m(402));t.depth===n.depth?M(t,n):W(t,n)}function Ee(t,n){var o=n.parent;if(o===null)throw Error(m(402));t.depth===o.depth?M(t,o):Ee(t,o),n.context._currentValue=n.value}function ae(t){var n=C;n!==t&&(n===null?Q(t):t===null?K(n):n.depth===t.depth?M(n,t):n.depth>t.depth?W(n,t):Ee(n,t),C=t)}var ft={isMounted:function(){return!1},enqueueSetState:function(t,n){t=t._reactInternals,t.queue!==null&&t.queue.push(n)},enqueueReplaceState:function(t,n){t=t._reactInternals,t.replace=!0,t.queue=[n]},enqueueForceUpdate:function(){}};function Fe(t,n,o,u){var c=t.state!==void 0?t.state:null;t.updater=ft,t.props=o,t.state=c;var s={queue:[],replace:!1};t._reactInternals=s;var d=n.contextType;if(t.context=typeof d=="object"&&d!==null?d._currentValue:u,d=n.getDerivedStateFromProps,typeof d=="function"&&(d=d(o,c),c=d==null?c:fe({},c,d),t.state=c),typeof n.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function"))if(n=t.state,typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&ft.enqueueReplaceState(t,t.state,null),s.queue!==null&&0<s.queue.length)if(n=s.queue,d=s.replace,s.queue=null,s.replace=!1,d&&n.length===1)t.state=n[0];else{for(s=d?n[0]:t.state,c=!0,d=d?1:0;d<n.length;d++){var h=n[d];h=typeof h=="function"?h.call(t,s,o,u):h,h!=null&&(c?(c=!1,s=fe({},s,h)):fe(s,h))}t.state=s}else s.queue=null}var qt={id:1,overflow:""};function de(t,n,o){var u=t.id;t=t.overflow;var c=32-Xt(u)-1;u&=~(1<<c),o+=1;var s=32-Xt(n)+c;if(30<s){var d=c-c%5;return s=(u&(1<<d)-1).toString(32),u>>=d,c-=d,{id:1<<32-Xt(n)+c|o<<c|u,overflow:s+t}}return{id:1<<s|o<<c|u,overflow:t}}var Xt=Math.clz32?Math.clz32:Kn,Jn=Math.log,Yn=Math.LN2;function Kn(t){return t>>>=0,t===0?32:31-(Jn(t)/Yn|0)|0}function Qn(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var er=typeof Object.is=="function"?Object.is:Qn,ce=null,En=null,Gt=null,P=null,dt=!1,Jt=!1,ht=0,he=null,Yt=0;function Te(){if(ce===null)throw Error(m(321));return ce}function Dn(){if(0<Yt)throw Error(m(312));return{memoizedState:null,queue:null,next:null}}function Fn(){return P===null?Gt===null?(dt=!1,Gt=P=Dn()):(dt=!0,P=Gt):P.next===null?(dt=!1,P=P.next=Dn()):(dt=!0,P=P.next),P}function Tn(){En=ce=null,Jt=!1,Gt=null,Yt=0,P=he=null}function zn(t,n){return typeof n=="function"?n(t):n}function Nn(t,n,o){if(ce=Te(),P=Fn(),dt){var u=P.queue;if(n=u.dispatch,he!==null&&(o=he.get(u),o!==void 0)){he.delete(u),u=P.memoizedState;do u=t(u,o.action),o=o.next;while(o!==null);return P.memoizedState=u,[u,n]}return[P.memoizedState,n]}return t=t===zn?typeof n=="function"?n():n:o!==void 0?o(n):n,P.memoizedState=t,t=P.queue={last:null,dispatch:null},t=t.dispatch=tr.bind(null,ce,t),[P.memoizedState,t]}function Vn(t,n){if(ce=Te(),P=Fn(),n=n===void 0?null:n,P!==null){var o=P.memoizedState;if(o!==null&&n!==null){var u=o[1];e:if(u===null)u=!1;else{for(var c=0;c<u.length&&c<n.length;c++)if(!er(n[c],u[c])){u=!1;break e}u=!0}if(u)return o[0]}}return t=t(),P.memoizedState=[t,n],t}function tr(t,n,o){if(25<=Yt)throw Error(m(301));if(t===ce)if(Jt=!0,t={action:o,next:null},he===null&&(he=new Map),o=he.get(n),o===void 0)he.set(n,t);else{for(n=o;n.next!==null;)n=n.next;n.next=t}}function nr(){throw Error(m(394))}function Kt(){}var Ln={readContext:function(t){return t._currentValue},useContext:function(t){return Te(),t._currentValue},useMemo:Vn,useReducer:Nn,useRef:function(t){ce=Te(),P=Fn();var n=P.memoizedState;return n===null?(t={current:t},P.memoizedState=t):n},useState:function(t){return Nn(zn,t)},useInsertionEffect:Kt,useLayoutEffect:function(){},useCallback:function(t,n){return Vn(function(){return t},n)},useImperativeHandle:Kt,useEffect:Kt,useDebugValue:Kt,useDeferredValue:function(t){return Te(),t},useTransition:function(){return Te(),[!1,nr]},useId:function(){var t=En.treeContext,n=t.overflow;t=t.id,t=(t&~(1<<32-Xt(t)-1)).toString(32)+n;var o=Qt;if(o===null)throw Error(m(404));return n=ht++,t=":"+o.idPrefix+"R"+t,0<n&&(t+="H"+n.toString(32)),t+":"},useMutableSource:function(t,n){return Te(),n(t._source)},useSyncExternalStore:function(t,n,o){if(o===void 0)throw Error(m(407));return o()}},Qt=null,Rn=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function rr(t){return console.error(t),null}function mt(){}function or(t,n,o,u,c,s,d,h,k){var F=[],E=new Set;return n={destination:null,responseState:n,progressiveChunkSize:u===void 0?12800:u,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:E,pingedTasks:F,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:c===void 0?rr:c,onAllReady:s===void 0?mt:s,onShellReady:d===void 0?mt:d,onShellError:h===void 0?mt:h,onFatalError:k===void 0?mt:k},o=en(n,0,null,o,!1,!1),o.parentFlushed=!0,t=_n(n,t,null,o,E,x,null,qt),F.push(t),n}function _n(t,n,o,u,c,s,d,h){t.allPendingTasks++,o===null?t.pendingRootTasks++:o.pendingTasks++;var k={node:n,ping:function(){var F=t.pingedTasks;F.push(k),F.length===1&&Un(t)},blockedBoundary:o,blockedSegment:u,abortSet:c,legacyContext:s,context:d,treeContext:h};return c.add(k),k}function en(t,n,o,u,c,s){return{status:0,id:-1,index:n,parentFlushed:!1,chunks:[],children:[],formatContext:u,boundary:o,lastPushedText:c,textEmbedded:s}}function yt(t,n){if(t=t.onError(n),t!=null&&typeof t!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof t+'" instead');return t}function tn(t,n){var o=t.onShellError;o(n),o=t.onFatalError,o(n),t.destination!==null?(t.status=2,_e(t.destination,n)):(t.status=1,t.fatalError=n)}function bn(t,n,o,u,c){for(ce={},En=n,ht=0,t=o(u,c);Jt;)Jt=!1,ht=0,Yt+=1,P=null,t=o(u,c);return Tn(),t}function On(t,n,o,u){var c=o.render(),s=u.childContextTypes;if(s!=null){var d=n.legacyContext;if(typeof o.getChildContext!="function")u=d;else{o=o.getChildContext();for(var h in o)if(!(h in s))throw Error(m(108,y(u)||"Unknown",h));u=fe({},d,o)}n.legacyContext=u,Z(t,n,c),n.legacyContext=d}else Z(t,n,c)}function $n(t,n){if(t&&t.defaultProps){n=fe({},n),t=t.defaultProps;for(var o in t)n[o]===void 0&&(n[o]=t[o]);return n}return n}function Pn(t,n,o,u,c){if(typeof o=="function")if(o.prototype&&o.prototype.isReactComponent){c=w(o,n.legacyContext);var s=o.contextType;s=new o(u,typeof s=="object"&&s!==null?s._currentValue:c),Fe(s,o,u,c),On(t,n,s,o)}else{s=w(o,n.legacyContext),c=bn(t,n,o,u,s);var d=ht!==0;if(typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0)Fe(c,o,u,s),On(t,n,c,o);else if(d){u=n.treeContext,n.treeContext=de(u,1,0);try{Z(t,n,c)}finally{n.treeContext=u}}else Z(t,n,c)}else if(typeof o=="string"){switch(c=n.blockedSegment,s=Pt(c.chunks,o,u,t.responseState,c.formatContext),c.lastPushedText=!1,d=c.formatContext,c.formatContext=ye(d,o,u),In(t,n,s),c.formatContext=d,o){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:c.chunks.push(It,S(o),Mt)}c.lastPushedText=!1}else{switch(o){case p:case i:case st:case at:case Ce:Z(t,n,u.children);return;case pt:Z(t,n,u.children);return;case l:throw Error(m(343));case Zt:e:{o=n.blockedBoundary,c=n.blockedSegment,s=u.fallback,u=u.children,d=new Set;var h={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null},k=en(t,c.chunks.length,h,c.formatContext,!1,!1);c.children.push(k),c.lastPushedText=!1;var F=en(t,0,null,c.formatContext,!1,!1);F.parentFlushed=!0,n.blockedBoundary=h,n.blockedSegment=F;try{if(In(t,n,u),F.lastPushedText&&F.textEmbedded&&F.chunks.push(qe),F.status=1,nn(h,F),h.pendingTasks===0)break e}catch(E){F.status=4,h.forceClientRender=!0,h.errorDigest=yt(t,E)}finally{n.blockedBoundary=o,n.blockedSegment=c}n=_n(t,s,o,k,d,n.legacyContext,n.context,n.treeContext),t.pingedTasks.push(n)}return}if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Wt:if(u=bn(t,n,o.render,u,c),ht!==0){o=n.treeContext,n.treeContext=de(o,1,0);try{Z(t,n,u)}finally{n.treeContext=o}}else Z(t,n,u);return;case e:o=o.type,u=$n(o,u),Pn(t,n,o,u,c);return;case ct:if(c=u.children,o=o._context,u=u.value,s=o._currentValue,o._currentValue=u,d=C,C=u={parent:d,depth:d===null?0:d.depth+1,context:o,parentValue:s,value:u},n.context=u,Z(t,n,c),t=C,t===null)throw Error(m(403));u=t.parentValue,t.context._currentValue=u===a?t.context._defaultValue:u,t=C=t.parent,n.context=t;return;case je:u=u.children,u=u(o._currentValue),Z(t,n,u);return;case r:c=o._init,o=c(o._payload),u=$n(o,u),Pn(t,n,o,u,void 0);return}throw Error(m(130,o==null?o:typeof o,""))}}function Z(t,n,o){if(n.node=o,typeof o=="object"&&o!==null){switch(o.$$typeof){case Ut:Pn(t,n,o.type,o.props,o.ref);return;case we:throw Error(m(257));case r:var u=o._init;o=u(o._payload),Z(t,n,o);return}if(We(o)){jn(t,n,o);return}if(o===null||typeof o!="object"?u=null:(u=f&&o[f]||o["@@iterator"],u=typeof u=="function"?u:null),u&&(u=u.call(o))){if(o=u.next(),!o.done){var c=[];do c.push(o.value),o=u.next();while(!o.done);jn(t,n,c)}return}throw t=Object.prototype.toString.call(o),Error(m(31,t==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":t))}typeof o=="string"?(u=n.blockedSegment,u.lastPushedText=Xe(n.blockedSegment.chunks,o,t.responseState,u.lastPushedText)):typeof o=="number"&&(u=n.blockedSegment,u.lastPushedText=Xe(n.blockedSegment.chunks,""+o,t.responseState,u.lastPushedText))}function jn(t,n,o){for(var u=o.length,c=0;c<u;c++){var s=n.treeContext;n.treeContext=de(s,u,c);try{In(t,n,o[c])}finally{n.treeContext=s}}}function In(t,n,o){var u=n.blockedSegment.formatContext,c=n.legacyContext,s=n.context;try{return Z(t,n,o)}catch(k){if(Tn(),typeof k=="object"&&k!==null&&typeof k.then=="function"){o=k;var d=n.blockedSegment,h=en(t,d.chunks.length,null,d.formatContext,d.lastPushedText,!0);d.children.push(h),d.lastPushedText=!1,t=_n(t,n.node,n.blockedBoundary,h,n.abortSet,n.legacyContext,n.context,n.treeContext).ping,o.then(t,t),n.blockedSegment.formatContext=u,n.legacyContext=c,n.context=s,ae(s)}else throw n.blockedSegment.formatContext=u,n.legacyContext=c,n.context=s,ae(s),k}}function lr(t){var n=t.blockedBoundary;t=t.blockedSegment,t.status=3,Hn(this,n,t)}function An(t,n,o){var u=t.blockedBoundary;t.blockedSegment.status=3,u===null?(n.allPendingTasks--,n.status!==2&&(n.status=2,n.destination!==null&&n.destination.close())):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,t=o===void 0?Error(m(432)):o,u.errorDigest=n.onError(t),u.parentFlushed&&n.clientRenderedBoundaries.push(u)),u.fallbackAbortableTasks.forEach(function(c){return An(c,n,o)}),u.fallbackAbortableTasks.clear(),n.allPendingTasks--,n.allPendingTasks===0&&(u=n.onAllReady,u()))}function nn(t,n){if(n.chunks.length===0&&n.children.length===1&&n.children[0].boundary===null){var o=n.children[0];o.id=n.id,o.parentFlushed=!0,o.status===1&&nn(t,o)}else t.completedSegments.push(n)}function Hn(t,n,o){if(n===null){if(o.parentFlushed){if(t.completedRootSegment!==null)throw Error(m(389));t.completedRootSegment=o}t.pendingRootTasks--,t.pendingRootTasks===0&&(t.onShellError=mt,n=t.onShellReady,n())}else n.pendingTasks--,n.forceClientRender||(n.pendingTasks===0?(o.parentFlushed&&o.status===1&&nn(n,o),n.parentFlushed&&t.completedBoundaries.push(n),n.fallbackAbortableTasks.forEach(lr,t),n.fallbackAbortableTasks.clear()):o.parentFlushed&&o.status===1&&(nn(n,o),n.completedSegments.length===1&&n.parentFlushed&&t.partialBoundaries.push(n)));t.allPendingTasks--,t.allPendingTasks===0&&(t=t.onAllReady,t())}function Un(t){if(t.status!==2){var n=C,o=Rn.current;Rn.current=Ln;var u=Qt;Qt=t.responseState;try{var c=t.pingedTasks,s;for(s=0;s<c.length;s++){var d=c[s],h=t,k=d.blockedSegment;if(k.status===0){ae(d.context);try{Z(h,d,d.node),k.lastPushedText&&k.textEmbedded&&k.chunks.push(qe),d.abortSet.delete(d),k.status=1,Hn(h,d.blockedBoundary,k)}catch(te){if(Tn(),typeof te=="object"&&te!==null&&typeof te.then=="function"){var F=d.ping;te.then(F,F)}else{d.abortSet.delete(d),k.status=4;var E=d.blockedBoundary,I=te,H=yt(h,I);if(E===null?tn(h,I):(E.pendingTasks--,E.forceClientRender||(E.forceClientRender=!0,E.errorDigest=H,E.parentFlushed&&h.clientRenderedBoundaries.push(E))),h.allPendingTasks--,h.allPendingTasks===0){var ee=h.onAllReady;ee()}}}finally{}}}c.splice(0,s),t.destination!==null&&Mn(t,t.destination)}catch(te){yt(t,te),tn(t,te)}finally{Qt=u,Rn.current=o,o===Ln&&ae(n)}}}function rn(t,n,o){switch(o.parentFlushed=!0,o.status){case 0:var u=o.id=t.nextSegmentId++;return o.lastPushedText=!1,o.textEmbedded=!1,t=t.responseState,v(n,Be),v(n,t.placeholderPrefix),t=S(u.toString(16)),v(n,t),R(n,Bt);case 1:o.status=2;var c=!0;u=o.chunks;var s=0;o=o.children;for(var d=0;d<o.length;d++){for(c=o[d];s<c.index;s++)v(n,u[s]);c=on(t,n,c)}for(;s<u.length-1;s++)v(n,u[s]);return s<u.length&&(c=R(n,u[s])),c;default:throw Error(m(390))}}function on(t,n,o){var u=o.boundary;if(u===null)return rn(t,n,o);if(u.parentFlushed=!0,u.forceClientRender)u=u.errorDigest,R(n,De),v(n,yn),u&&(v(n,vn),v(n,S(B(u))),v(n,gn)),R(n,Sn),rn(t,n,o);else if(0<u.pendingTasks){u.rootSegmentID=t.nextSegmentId++,0<u.completedSegments.length&&t.partialBoundaries.push(u);var c=t.responseState,s=c.nextSuspenseID++;c=g(c.boundaryPrefix+s.toString(16)),u=u.id=c,G(n,t.responseState,u),rn(t,n,o)}else if(u.byteSize>t.progressiveChunkSize)u.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(u),G(n,t.responseState,u.id),rn(t,n,o);else{if(R(n,Dt),o=u.completedSegments,o.length!==1)throw Error(m(391));on(t,n,o[0])}return R(n,mn)}function Wn(t,n,o){return wn(n,t.responseState,o.formatContext,o.id),on(t,n,o),xe(n,o.formatContext)}function Zn(t,n,o){for(var u=o.completedSegments,c=0;c<u.length;c++)qn(t,n,o,u[c]);if(u.length=0,t=t.responseState,u=o.id,o=o.rootSegmentID,v(n,t.startInlineScript),t.sentCompleteBoundaryFunction?v(n,Ot):(t.sentCompleteBoundaryFunction=!0,v(n,$e)),u===null)throw Error(m(395));return o=S(o.toString(16)),v(n,u),v(n,$t),v(n,t.segmentPrefix),v(n,o),R(n,jt)}function qn(t,n,o,u){if(u.status===2)return!0;var c=u.id;if(c===-1){if((u.id=o.rootSegmentID)===-1)throw Error(m(392));return Wn(t,n,u)}return Wn(t,n,u),t=t.responseState,v(n,t.startInlineScript),t.sentCompleteSegmentFunction?v(n,ot):(t.sentCompleteSegmentFunction=!0,v(n,Cn)),v(n,t.segmentPrefix),c=S(c.toString(16)),v(n,c),v(n,Oe),v(n,t.placeholderPrefix),v(n,c),R(n,ke)}function Mn(t,n){T=new Uint8Array(512),O=0;try{var o=t.completedRootSegment;if(o!==null&&t.pendingRootTasks===0){on(t,n,o),t.completedRootSegment=null;var u=t.responseState.bootstrapChunks;for(o=0;o<u.length-1;o++)v(n,u[o]);o<u.length&&R(n,u[o])}var c=t.clientRenderedBoundaries,s;for(s=0;s<c.length;s++){var d=c[s];u=n;var h=t.responseState,k=d.id,F=d.errorDigest,E=d.errorMessage,I=d.errorComponentStack;if(v(u,h.startInlineScript),h.sentClientRenderFunction?v(u,A):(h.sentClientRenderFunction=!0,v(u,lt)),k===null)throw Error(m(395));if(v(u,k),v(u,At),(F||E||I)&&(v(u,it),v(u,S(pe(F||"")))),(E||I)&&(v(u,it),v(u,S(pe(E||"")))),I&&(v(u,it),v(u,S(pe(I)))),!R(u,ut)){t.destination=null,s++,c.splice(0,s);return}}c.splice(0,s);var H=t.completedBoundaries;for(s=0;s<H.length;s++)if(!Zn(t,n,H[s])){t.destination=null,s++,H.splice(0,s);return}H.splice(0,s),Ae(n),T=new Uint8Array(512),O=0;var ee=t.partialBoundaries;for(s=0;s<ee.length;s++){var te=ee[s];e:{c=t,d=n;var ln=te.completedSegments;for(h=0;h<ln.length;h++)if(!qn(c,d,te,ln[h])){h++,ln.splice(0,h);var Gn=!1;break e}ln.splice(0,h),Gn=!0}if(!Gn){t.destination=null,s++,ee.splice(0,s);return}}ee.splice(0,s);var un=t.completedBoundaries;for(s=0;s<un.length;s++)if(!Zn(t,n,un[s])){t.destination=null,s++,un.splice(0,s);return}un.splice(0,s)}finally{Ae(n),t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&n.close()}}function Xn(t,n){try{var o=t.abortableTasks;o.forEach(function(u){return An(u,t,n)}),o.clear(),t.destination!==null&&Mn(t,t.destination)}catch(u){yt(t,u),tn(t,u)}}ne.renderToReadableStream=function(t,n){return new Promise(function(o,u){var c,s,d=new Promise(function(E,I){s=E,c=I}),h=or(t,Ze(n?n.identifierPrefix:void 0,n?n.nonce:void 0,n?n.bootstrapScriptContent:void 0,n?n.bootstrapScripts:void 0,n?n.bootstrapModules:void 0),Ct(n?n.namespaceURI:void 0),n?n.progressiveChunkSize:void 0,n?n.onError:void 0,s,function(){var E=new ReadableStream({type:"bytes",pull:function(I){if(h.status===1)h.status=2,_e(I,h.fatalError);else if(h.status!==2&&h.destination===null){h.destination=I;try{Mn(h,I)}catch(H){yt(h,H),tn(h,H)}}},cancel:function(){Xn(h)}},{highWaterMark:0});E.allReady=d,o(E)},function(E){d.catch(function(){}),u(E)},c);if(n&&n.signal){var k=n.signal,F=function(){Xn(h,k.reason),k.removeEventListener("abort",F)};k.addEventListener("abort",F)}Un(h)})},ne.version="18.2.0"},97762:function(Bn,ne,Re){var J,m,T;m=Re(87774),T=Re(38698),J=m.version,ne.Dq=m.renderToString,J=m.renderToStaticMarkup,J=m.renderToNodeStream,J=m.renderToStaticNodeStream,J=T.renderToReadableStream}}]);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2068],{87487:function(){},92879:function(Ue,ve,p){var c=p(67294),ge=p(45697),h=p.n(ge),ye=p(83253),be=p.n(ye);function le(i,s){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);s&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable})),a.push.apply(a,n)}return a}function g(i){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?le(Object(a),!0).forEach(function(n){K(i,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):le(Object(a)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(a,n))})}return i}function Se(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function ue(i,s){for(var a=0;a<s.length;a++){var n=s[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function Ee(i,s,a){return s&&ue(i.prototype,s),a&&ue(i,a),i}function K(i,s,a){return s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}function z(){return z=Object.assign||function(i){for(var s=1;s<arguments.length;s++){var a=arguments[s];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])}return i},z.apply(this,arguments)}function Me(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&F(i,s)}function N(i){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},N(i)}function F(i,s){return F=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},F(i,s)}function _e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function f(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ke(i,s){return s&&(typeof s=="object"||typeof s=="function")?s:f(i)}function we(i){var s=_e();return function(){var n=N(i),e;if(s){var t=N(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return ke(this,e)}}function he(i,s){return Oe(i)||Te(i,s)||ce(i,s)||xe()}function $(i){return Ie(i)||Ce(i)||ce(i)||Pe()}function Ie(i){if(Array.isArray(i))return V(i)}function Oe(i){if(Array.isArray(i))return i}function Ce(i){if(typeof Symbol!="undefined"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Te(i,s){var a=i==null?null:typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(a!=null){var n=[],e=!0,t=!1,o,r;try{for(a=a.call(i);!(e=(o=a.next()).done)&&(n.push(o.value),!(s&&n.length===s));e=!0);}catch(l){t=!0,r=l}finally{try{!e&&a.return!=null&&a.return()}finally{if(t)throw r}}return n}}function ce(i,s){if(i){if(typeof i=="string")return V(i,s);var a=Object.prototype.toString.call(i).slice(8,-1);if(a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set")return Array.from(i);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return V(i,s)}}function V(i,s){(s==null||s>i.length)&&(s=i.length);for(var a=0,n=new Array(s);a<s;a++)n[a]=i[a];return n}function Pe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!i)return"";var a=i;return s&&Object.keys(s).forEach(function(n){a=a.replace(n,s[n])}),a}function fe(){return typeof p.g.window!="undefined"?p.g.window.innerWidth:0}function Le(){return typeof p.g.window!="undefined"?p.g.window.innerHeight:0}var De=function(){try{return p.g.window.location.hostname!==p.g.window.parent.location.hostname}catch(s){return!0}};function me(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.g.window.self;return i===p.g.window.top||De()?i:me(i.parent)}var y=0,D=300,Re=1.007,G=100,Ae=200,Xe=1,B={ESC:27,LEFT_ARROW:37,RIGHT_ARROW:39},R=0,J=1,Q=2,Z=3,ee=0,I=1,O=2,W=3,Ye=200,te=function(i){Me(a,i);var s=we(a);function a(n){var e;return Se(this,a),e=s.call(this,n),e.state={isClosing:!n.animationDisabled,shouldAnimate:!1,zoomLevel:y,offsetX:0,offsetY:0,loadErrorStatus:{}},e.outerEl=c.createRef(),e.zoomInBtn=c.createRef(),e.zoomOutBtn=c.createRef(),e.caption=c.createRef(),e.closeIfClickInner=e.closeIfClickInner.bind(f(e)),e.handleImageDoubleClick=e.handleImageDoubleClick.bind(f(e)),e.handleImageMouseWheel=e.handleImageMouseWheel.bind(f(e)),e.handleKeyInput=e.handleKeyInput.bind(f(e)),e.handleMouseUp=e.handleMouseUp.bind(f(e)),e.handleMouseDown=e.handleMouseDown.bind(f(e)),e.handleMouseMove=e.handleMouseMove.bind(f(e)),e.handleOuterMousewheel=e.handleOuterMousewheel.bind(f(e)),e.handleTouchStart=e.handleTouchStart.bind(f(e)),e.handleTouchMove=e.handleTouchMove.bind(f(e)),e.handleTouchEnd=e.handleTouchEnd.bind(f(e)),e.handlePointerEvent=e.handlePointerEvent.bind(f(e)),e.handleCaptionMousewheel=e.handleCaptionMousewheel.bind(f(e)),e.handleWindowResize=e.handleWindowResize.bind(f(e)),e.handleZoomInButtonClick=e.handleZoomInButtonClick.bind(f(e)),e.handleZoomOutButtonClick=e.handleZoomOutButtonClick.bind(f(e)),e.requestClose=e.requestClose.bind(f(e)),e.requestMoveNext=e.requestMoveNext.bind(f(e)),e.requestMovePrev=e.requestMovePrev.bind(f(e)),e.timeouts=[],e.currentAction=R,e.eventsSource=ee,e.pointerList=[],e.preventInnerClose=!1,e.preventInnerCloseTimeout=null,e.keyPressed=!1,e.imageCache={},e.lastKeyDownTime=0,e.resizeTimeout=null,e.wheelActionTimeout=null,e.resetScrollTimeout=null,e.scrollX=0,e.scrollY=0,e.moveStartX=0,e.moveStartY=0,e.moveStartOffsetX=0,e.moveStartOffsetY=0,e.swipeStartX=0,e.swipeStartY=0,e.swipeEndX=0,e.swipeEndY=0,e.pinchTouchList=null,e.pinchDistance=0,e.keyCounter=0,e.moveRequested=!1,e}return Ee(a,[{key:"componentDidMount",value:function(){var e=this;this.props.animationDisabled||this.setState({isClosing:!1}),this.windowContext=me(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach(function(t){e.windowContext.addEventListener(t,e.listeners[t])}),this.loadAllImages()}},{key:"shouldComponentUpdate",value:function(e){var t=this;return this.getSrcTypes().forEach(function(o){t.props[o.name]!==e[o.name]&&(t.moveRequested=!1)}),!this.moveRequested}},{key:"componentDidUpdate",value:function(e){var t=this,o=!1,r={},l={};this.getSrcTypes().forEach(function(u){e[u.name]!==t.props[u.name]&&(o=!0,r[e[u.name]]=!0,l[t.props[u.name]]=!0)}),(o||this.moveRequested)&&(Object.keys(r).forEach(function(u){!(u in l)&&u in t.imageCache&&(t.imageCache[u].loaded=!1)}),this.moveRequested=!1,this.loadAllImages(this.props))}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach(function(t){e.windowContext.removeEventListener(t,e.listeners[t])}),this.timeouts.forEach(function(t){return clearTimeout(t)})}},{key:"setTimeout",value:function(n){function e(t,o){return n.apply(this,arguments)}return e.toString=function(){return n.toString()},e}(function(n,e){var t=this,o=setTimeout(function(){t.timeouts=t.timeouts.filter(function(r){return r!==o}),n()},e);return this.timeouts.push(o),o})},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout(function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null},100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],o={};if(this.isImageLoaded(t))o=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else if(this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))t=this.props["".concat(e,"Thumbnail")],o=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0);else return null;return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:o.height,targetWidth:o.width}}},{key:"getFitSizes",value:function(e,t,o){var r=this.getLightboxRect(),l=r.height-this.props.imagePadding*2,u=r.width-this.props.imagePadding*2;o||(l=Math.min(l,t),u=Math.min(u,e));var m=u/l,d=e/t;return m>d?{width:e*l/t,height:l}:{width:u,height:t*u/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(t===null)return{maxX:0,minX:0,maxY:0,minY:0};var o=this.getLightboxRect(),r=this.getZoomMultiplier(e),l=0;r*t.width-o.width<0?l=(o.width-r*t.width)/2:l=(r*t.width-o.width)/2;var u=0;return r*t.height-o.height<0?u=(o.height-r*t.height)/2:u=(r*t.height-o.height)/2,{maxX:l,maxY:u,minX:-1*l,minY:-1*u}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.state.zoomLevel;return Math.pow(Re,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:fe(),height:Le(),top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(n){function e(t){return n.apply(this,arguments)}return e.toString=function(){return n.toString()},e}(function(n){this.timeouts=this.timeouts.filter(function(e){return e!==n}),clearTimeout(n)})},{key:"changeZoom",value:function(e,t,o){if(this.props.enableZoom){var r=Math.max(y,Math.min(D,e));if(r!==this.state.zoomLevel){if(r===y){this.setState({zoomLevel:r,offsetX:0,offsetY:0});return}var l=this.getBestImageForType("mainSrc");if(l!==null){var u=this.getZoomMultiplier(),m=this.getZoomMultiplier(r),d=this.getLightboxRect(),C=typeof t!="undefined"?t-d.left:d.width/2,S=typeof o!="undefined"?o-d.top:d.height/2,E=(d.width-l.width*u)/2,M=(d.height-l.height*u)/2,ne=E-this.state.offsetX,q=M-this.state.offsetY,ie=(C-ne)/u,U=(S-q)/u,_=C-ie*m,b=S-U*m,oe=(d.width-l.width*m)/2,re=(d.height-l.height*m)/2,T=oe-_,A=re-b;if(this.currentAction!==Z){var k=this.getMaxOffsets();this.state.zoomLevel>r&&(T=Math.max(k.minX,Math.min(k.maxX,T)),A=Math.max(k.minY,Math.min(k.maxY,A)))}this.setState({zoomLevel:r,offsetX:T,offsetY:A})}}}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating()){if(e.type==="keyup"){this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus;return}var t=e.which||e.keyCode,o=new Date;if(!(o.getTime()-this.lastKeyDownTime<this.props.keyRepeatLimit&&t!==B.ESC))switch(this.lastKeyDownTime=o.getTime(),t){case B.ESC:e.preventDefault(),this.requestClose(e);break;case B.LEFT_ARROW:if(!this.props.prevSrc)return;e.preventDefault(),this.keyPressed=!0,this.requestMovePrev(e);break;case B.RIGHT_ARROW:if(!this.props.nextSrc)return;e.preventDefault(),this.keyPressed=!0,this.requestMoveNext(e);break}}}},{key:"handleOuterMousewheel",value:function(e){var t=this;e.stopPropagation();var o=Ae,r=0,l=500;if(this.clearTimeout(this.resetScrollTimeout),this.resetScrollTimeout=this.setTimeout(function(){t.scrollX=0,t.scrollY=0},300),!(this.wheelActionTimeout!==null||this.isAnimating())){if(Math.abs(e.deltaY)<Math.abs(e.deltaX)){this.scrollY=0,this.scrollX+=e.deltaX;var u=o/2;this.scrollX>=o||e.deltaX>=u?(this.requestMoveNext(e),r=l,this.scrollX=0):(this.scrollX<=-1*o||e.deltaX<=-1*u)&&(this.requestMovePrev(e),r=l,this.scrollX=0)}r!==0&&(this.wheelActionTimeout=this.setTimeout(function(){t.wheelActionTimeout=null},r))}}},{key:"handleImageMouseWheel",value:function(e){var t=Xe;if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<t)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>y?this.changeZoom(y,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+G,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(this.eventsSource===ee)return this.eventsSource=e,!0;switch(e){case I:return!1;case O:return this.eventsSource=O,this.filterPointersBySource(),!0;case W:return this.eventsSource===I?(this.eventsSource=W,this.filterPointersBySource(),!0):!1;default:return!1}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter(function(t){var o=t.id;return o!==e.id})}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter(function(t){var o=t.source;return o===e.eventsSource})}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(I)&&a.isTargetMatchImage(e.target)&&(this.addPointer(a.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(I)&&this.multiPointerMove(e,[a.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(I)&&(this.removePointer(a.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(W))switch(e.type){case"pointerdown":a.isTargetMatchImage(e.target)&&(this.addPointer(a.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[a.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(a.parsePointerEvent(e)),this.multiPointerEnd(e);break}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(O)&&a.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,function(o){return t.addPointer(a.parseTouchPointer(o))}),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(O)&&this.multiPointerMove(e,[].map.call(e.changedTouches,function(t){return a.parseTouchPointer(t)}))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(O)&&([].map.call(e.changedTouches,function(o){return t.removePointer(a.parseTouchPointer(o))}),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=y?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:{e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break}case 2:{e.preventDefault(),this.handlePinchStart(this.pointerList);break}}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case J:{e.preventDefault(),this.handleMove(t[0]);break}case Q:{e.preventDefault(),this.handleSwipe(t[0]);break}case Z:{e.preventDefault(),this.handlePinch(t);break}}}},{key:"multiPointerEnd",value:function(e){switch(this.currentAction!==R&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:{this.eventsSource=ee;break}case 1:{e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break}case 2:{e.preventDefault(),this.handlePinchStart(this.pointerList);break}}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case J:this.handleMoveEnd(e);break;case Q:this.handleSwipeEnd(e);break;case Z:this.handlePinchEnd(e);break}}},{key:"handleMoveStart",value:function(e){var t=e.x,o=e.y;this.props.enableZoom&&(this.currentAction=J,this.moveStartX=t,this.moveStartY=o,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,o=e.y,r=this.moveStartX-t+this.moveStartOffsetX,l=this.moveStartY-o+this.moveStartOffsetY;(this.state.offsetX!==r||this.state.offsetY!==l)&&this.setState({offsetX:r,offsetY:l})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=R,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),o=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));(o!==this.state.offsetX||r!==this.state.offsetY)&&(this.setState({offsetX:o,offsetY:r,shouldAnimate:!0}),this.setTimeout(function(){e.setState({shouldAnimate:!1})},this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,o=e.y;this.currentAction=Q,this.swipeStartX=t,this.swipeStartY=o,this.swipeEndX=t,this.swipeEndY=o}},{key:"handleSwipe",value:function(e){var t=e.x,o=e.y;this.swipeEndX=t,this.swipeEndY=o}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,o=Math.abs(t),r=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=R,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||o<r*1.5)){if(o<Ye){var l=this.getLightboxRect();if(o<l.width/4)return}t>0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pinchTouchList,t=he(e,2),o=t[0],r=t[1];return Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2))}},{key:"calculatePinchCenter",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pinchTouchList,t=he(e,2),o=t[0],r=t[1];return{x:o.x-(o.x-r.x)/2,y:o.y-(o.y-r.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=Z,this.pinchTouchList=e.map(function(t){var o=t.id,r=t.x,l=t.y;return{id:o,x:r,y:l}}),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map(function(m){for(var d=0;d<e.length;d+=1)if(e[d].id===m.id)return e[d];return m});var t=this.calculatePinchDistance(),o=this.state.zoomLevel+t-this.pinchDistance;this.pinchDistance=t;var r=this.calculatePinchCenter(this.pinchTouchList),l=r.x,u=r.y;this.changeZoom(o,l,u)}},{key:"handlePinchEnd",value:function(){this.currentAction=R,this.pinchTouchList=null,this.pinchDistance=0}},{key:"handleWindowResize",value:function(){this.clearTimeout(this.resizeTimeout),this.resizeTimeout=this.setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){var e=this.state.zoomLevel+G;this.changeZoom(e),e===D&&this.zoomOutBtn.current.focus()}},{key:"handleZoomOutButtonClick",value:function(){var e=this.state.zoomLevel-G;this.changeZoom(e),e===y&&this.zoomInBtn.current.focus()}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),!!this.caption.current){var t=this.caption.current.getBoundingClientRect(),o=t.height,r=this.caption.current,l=r.scrollHeight,u=r.scrollTop;(e.deltaY>0&&o+u>=l||e.deltaY<0&&u<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,o){var r=this;if(this.isImageLoaded(t)){this.setTimeout(function(){o()},1);return}var l=new p.g.Image;this.props.imageCrossOrigin&&(l.crossOrigin=this.props.imageCrossOrigin),l.onerror=function(u){r.props.onImageLoadError(t,e,u),r.setState(function(m){return{loadErrorStatus:g(g({},m.loadErrorStatus),{},K({},e,!0))}}),o(u)},l.onload=function(){r.props.onImageLoad(t,e,l),r.imageCache[t]={loaded:!0,width:l.width,height:l.height},o()},l.src=t}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=function(l,u){return function(m){m||e.props[l]!==u||e.didUnmount||e.forceUpdate()}};this.getSrcTypes().forEach(function(r){var l=r.name;t[l]&&e.state.loadErrorStatus[l]&&e.setState(function(u){return{loadErrorStatus:g(g({},u.loadErrorStatus),{},K({},l,!1))}}),t[l]&&!e.isImageLoaded(t[l])&&e.loadImage(l,t[l],o(l,t[l]))})}},{key:"requestClose",value:function(e){var t=this,o=function(){return t.props.onCloseRequest(e)};if(this.props.animationDisabled||e.type==="keydown"&&!this.props.animationOnKeyInput){o();return}this.setState({isClosing:!0}),this.setTimeout(o,this.props.animationDuration)}},{key:"requestMove",value:function(e,t){var o=this,r={zoomLevel:y,offsetX:0,offsetY:0};!this.props.animationDisabled&&(!this.keyPressed||this.props.animationOnKeyInput)&&(r.shouldAnimate=!0,this.setTimeout(function(){return o.setState({shouldAnimate:!1})},this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,e==="prev"?(this.keyCounter-=1,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,t=this.props,o=t.animationDisabled,r=t.animationDuration,l=t.clickOutsideToClose,u=t.discourageDownloads,m=t.enableZoom,d=t.imageTitle,C=t.nextSrc,S=t.prevSrc,E=t.toolbarButtons,M=t.reactModalStyle,ne=t.onAfterOpen,q=t.imageCrossOrigin,ie=t.reactModalProps,U=t.loader,_=this.state,b=_.zoomLevel,oe=_.offsetX,re=_.offsetY,T=_.isClosing,A=_.loadErrorStatus,k=this.getLightboxRect(),ae={};!o&&this.isAnimating()&&(ae=g(g({},ae),{},{transition:"transform ".concat(r,"ms")}));var X={};this.getSrcTypes().forEach(function(w){var v=w.name,P=w.keyEnding;X[v]=P});var Y=[],se=function(v,P,Be){if(e.props[v]){var H=e.getBestImageForType(v),x=g(g({},ae),a.getTransform(g(g({},Be),H)));b>y&&(x.cursor="move");var Ze=function(L){return Object.keys(L).some(function(qe){return L[qe]})};if(H===null&&Ze(A)){Y.push(c.createElement("div",{className:"".concat(P," ril__image ril-errored"),style:x,key:e.props[v]+X[v]},c.createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));return}if(H===null){var We=U!==void 0?U:c.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},$(new Array(12)).map(function(pe,L){return c.createElement("div",{key:L,className:"ril-loading-circle-point ril__loadingCirclePoint"})}));Y.push(c.createElement("div",{className:"".concat(P," ril__image ril-not-loaded"),style:x,key:e.props[v]+X[v]},c.createElement("div",{className:"ril__loadingContainer"},We)));return}var j=H.src;u?(x.backgroundImage="url('".concat(j,"')"),Y.push(c.createElement("div",{className:"".concat(P," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:x,key:j+X[v]},c.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):Y.push(c.createElement("img",z({},q?{crossOrigin:q}:{},{className:"".concat(P," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(L){return L.preventDefault()},style:x,src:j,key:j+X[v],alt:typeof d=="string"?d:de("Image"),draggable:!1})))}},ze=this.getZoomMultiplier();se("nextSrc","ril-image-next ril__imageNext",{x:k.width}),se("mainSrc","ril-image-current",{x:-1*oe,y:-1*re,zoom:ze}),se("prevSrc","ril-image-prev ril__imagePrev",{x:-1*k.width});var Ne={overlay:g({zIndex:1e3,backgroundColor:"transparent"},M.overlay),content:g({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},M.content)};return c.createElement(be(),z({isOpen:!0,onRequestClose:l?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),ne()},style:Ne,contentLabel:de("Lightbox"),appElement:typeof p.g.window!="undefined"?p.g.window.document.body:void 0},ie),c.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(T?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(r,"ms"),animationDuration:"".concat(r,"ms"),animationDirection:T?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},c.createElement("div",{className:"ril-inner ril__inner",onClick:l?this.closeIfClickInner:void 0},Y),S&&c.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,title:this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),C&&c.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,title:this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),c.createElement("div",{className:"ril-toolbar ril__toolbar"},c.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},c.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},c.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},d))),c.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},E&&E.map(function(w,v){return c.createElement("li",{key:"button_".concat(v+1),className:"ril-toolbar__item ril__toolbarItem"},w)}),m&&c.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},c.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,title:this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat($(b===D?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||b===D,onClick:!this.isAnimating()&&b!==D?this.handleZoomInButtonClick:void 0})),m&&c.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},c.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,title:this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat($(b===y?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||b===y,onClick:!this.isAnimating()&&b!==y?this.handleZoomOutButtonClick:void 0})),c.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},c.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,title:this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&c.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(v){return v.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},c.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}],[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:I,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:O,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:W,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,o=t===void 0?0:t,r=e.y,l=r===void 0?0:r,u=e.zoom,m=u===void 0?1:u,d=e.width,C=e.targetWidth,S=o,E=fe();d>E&&(S+=(E-d)/2);var M=m*(C/d);return{transform:"translate3d(".concat(S,"px,").concat(l,"px,0) scale3d(").concat(M,",").concat(M,",1)")}}}]),a}(c.Component);te.propTypes={mainSrc:h().string.isRequired,prevSrc:h().string,nextSrc:h().string,mainSrcThumbnail:h().string,prevSrcThumbnail:h().string,nextSrcThumbnail:h().string,onCloseRequest:h().func.isRequired,onMovePrevRequest:h().func,onMoveNextRequest:h().func,onImageLoadError:h().func,onImageLoad:h().func,onAfterOpen:h().func,discourageDownloads:h().bool,animationDisabled:h().bool,animationOnKeyInput:h().bool,animationDuration:h().number,keyRepeatLimit:h().number,keyRepeatKeyupBonus:h().number,imageTitle:h().node,imageCaption:h().node,imageCrossOrigin:h().string,reactModalStyle:h().shape({}),imagePadding:h().number,wrapperClassName:h().string,toolbarButtons:h().arrayOf(h().node),clickOutsideToClose:h().bool,enableZoom:h().bool,reactModalProps:h().shape({}),nextLabel:h().string,prevLabel:h().string,zoomInLabel:h().string,zoomOutLabel:h().string,closeLabel:h().string,imageLoadErrorMessage:h().node,loader:h().node},te.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",loader:void 0},ve.Z=te}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!(function(){"use strict";var me=(ne,I,_)=>new Promise((K,O)=>{var a=p=>{try{i(_.next(p))}catch(m){O(m)}},Z=p=>{try{i(_.throw(p))}catch(m){O(m)}},i=p=>p.done?K(p.value):Promise.resolve(p.value).then(a,Z);i((_=_.apply(ne,I)).next())});(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[1216],{79655:function(ne,I,_){var K,O;_.r(I),_.d(I,{AbortedDeferredError:function(){return p.X3},Await:function(){return i.Await},BrowserRouter:function(){return Oe},Form:function(){return ie},HashRouter:function(){return Me},Link:function(){return ae},MemoryRouter:function(){return i.MemoryRouter},NavLink:function(){return Be},Navigate:function(){return i.Navigate},NavigationType:function(){return p.aU},Outlet:function(){return i.Outlet},Route:function(){return i.Route},Router:function(){return i.Router},RouterProvider:function(){return Ue},Routes:function(){return i.Routes},ScrollRestoration:function(){return We},UNSAFE_DataRouterContext:function(){return i.UNSAFE_DataRouterContext},UNSAFE_DataRouterStateContext:function(){return i.UNSAFE_DataRouterStateContext},UNSAFE_FetchersContext:function(){return q},UNSAFE_LocationContext:function(){return i.UNSAFE_LocationContext},UNSAFE_NavigationContext:function(){return i.UNSAFE_NavigationContext},UNSAFE_RouteContext:function(){return i.UNSAFE_RouteContext},UNSAFE_ViewTransitionContext:function(){return $},UNSAFE_useRouteId:function(){return i.UNSAFE_useRouteId},UNSAFE_useScrollRestoration:function(){return fe},createBrowserRouter:function(){return Le},createHashRouter:function(){return Te},createMemoryRouter:function(){return i.createMemoryRouter},createPath:function(){return p.Ep},createRoutesFromChildren:function(){return i.createRoutesFromChildren},createRoutesFromElements:function(){return i.createRoutesFromElements},createSearchParams:function(){return H},defer:function(){return p.PQ},generatePath:function(){return p.Gn},isRouteErrorResponse:function(){return p.WK},json:function(){return p.AV},matchPath:function(){return p.LX},matchRoutes:function(){return p.fp},parsePath:function(){return p.cP},redirect:function(){return p.uX},redirectDocument:function(){return p.fZ},renderMatches:function(){return i.renderMatches},resolvePath:function(){return p.i3},unstable_HistoryRouter:function(){return ke},unstable_usePrompt:function(){return Ye},unstable_useViewTransitionState:function(){return de},useActionData:function(){return i.useActionData},useAsyncError:function(){return i.useAsyncError},useAsyncValue:function(){return i.useAsyncValue},useBeforeUnload:function(){return ze},useBlocker:function(){return i.useBlocker},useFetcher:function(){return Xe},useFetchers:function(){return je},useFormAction:function(){return le},useHref:function(){return i.useHref},useInRouterContext:function(){return i.useInRouterContext},useLinkClickHandler:function(){return ue},useLoaderData:function(){return i.useLoaderData},useLocation:function(){return i.useLocation},useMatch:function(){return i.useMatch},useMatches:function(){return i.useMatches},useNavigate:function(){return i.useNavigate},useNavigation:function(){return i.useNavigation},useNavigationType:function(){return i.useNavigationType},useOutlet:function(){return i.useOutlet},useOutletContext:function(){return i.useOutletContext},useParams:function(){return i.useParams},useResolvedPath:function(){return i.useResolvedPath},useRevalidator:function(){return i.useRevalidator},useRouteError:function(){return i.useRouteError},useRouteLoaderData:function(){return i.useRouteLoaderData},useRoutes:function(){return i.useRoutes},useSearchParams:function(){return He},useSubmit:function(){return te}});var a=_(67294),Z=_(73935),i=_(89250),p=_(44536),m=_(12599);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},b.apply(this,arguments)}function Y(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const B="get",G="application/x-www-form-urlencoded";function W(e){return e!=null&&typeof e.tagName=="string"}function he(e){return W(e)&&e.tagName.toLowerCase()==="button"}function ve(e){return W(e)&&e.tagName.toLowerCase()==="form"}function pe(e){return W(e)&&e.tagName.toLowerCase()==="input"}function Se(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Re(e,t){return e.button===0&&(!t||t==="_self")&&!Se(e)}function H(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map(r=>[n,r]):[[n,o]])},[]))}function we(e,t){let n=H(e);return t&&t.forEach((o,r)=>{n.has(r)||t.getAll(r).forEach(s=>{n.append(r,s)})}),n}let V=null;function ye(){if(V===null)try{new FormData(document.createElement("form"),0),V=!1}catch(e){V=!0}return V}const Ee=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Q(e){return e!=null&&!Ee.has(e)?null:e}function ge(e,t){let n,o,r,s,u;if(ve(e)){let c=e.getAttribute("action");o=c?(0,m.Zn)(c,t):null,n=e.getAttribute("method")||B,r=Q(e.getAttribute("enctype"))||G,s=new FormData(e)}else if(he(e)||pe(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(o=l?(0,m.Zn)(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||B,r=Q(e.getAttribute("formenctype"))||Q(c.getAttribute("enctype"))||G,s=new FormData(c,e),!ye()){let{name:f,type:d,value:h}=e;if(d==="image"){let v=f?f+".":"";s.append(v+"x","0"),s.append(v+"y","0")}else f&&s.append(f,h)}}else{if(W(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=B,o=null,r=G,u=e}return s&&r==="text/plain"&&(u=s,s=void 0),{action:o,method:n.toLowerCase(),encType:r,formData:s,body:u}}const _e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],be=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Ce=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];function Le(e,t){return(0,m.p7)({basename:t==null?void 0:t.basename,future:b({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:(0,m.lX)({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||re(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,window:t==null?void 0:t.window}).initialize()}function Te(e,t){return(0,m.p7)({basename:t==null?void 0:t.basename,future:b({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:(0,m.q_)({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||re(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,window:t==null?void 0:t.window}).initialize()}function re(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=b({},t,{errors:xe(t.errors)})),t}function xe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[o,r]of t)if(r&&r.__type==="RouteErrorResponse")n[o]=new m.OF(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let s=window[r.__subType];if(typeof s=="function")try{let u=new s(r.message);u.stack="",n[o]=u}catch(u){}}if(n[o]==null){let s=new Error(r.message);s.stack="",n[o]=s}}else n[o]=r;return n}const $=a.createContext({isTransitioning:!1}),q=a.createContext(new Map),Fe="startTransition",A=(K||(K=_.t(a,2)))[Fe],Pe="flushSync",oe=(O||(O=_.t(Z,2)))[Pe];function Ae(e){A?A(e):e()}function M(e){oe?oe(e):e()}class Ne{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",t(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",n(o))}})}}function Ue(e){let{fallbackElement:t,router:n,future:o}=e,[r,s]=a.useState(n.state),[u,c]=a.useState(),[l,f]=a.useState({isTransitioning:!1}),[d,h]=a.useState(),[v,g]=a.useState(),[E,L]=a.useState(),T=a.useRef(new Map),{v7_startTransition:w}=o||{},S=a.useCallback(y=>{w?Ae(y):y()},[w]),R=a.useCallback((y,P)=>{let{deletedFetchers:C,unstable_flushSync:z,unstable_viewTransitionOpts:N}=P;C.forEach(U=>T.current.delete(U)),y.fetchers.forEach((U,Qe)=>{U.data!==void 0&&T.current.set(Qe,U.data)});let Ge=n.window==null||typeof n.window.document.startViewTransition!="function";if(!N||Ge){z?M(()=>s(y)):S(()=>s(y));return}if(z){M(()=>{v&&(d&&d.resolve(),v.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let U=n.window.document.startViewTransition(()=>{M(()=>s(y))});U.finished.finally(()=>{M(()=>{h(void 0),g(void 0),c(void 0),f({isTransitioning:!1})})}),M(()=>g(U));return}v?(d&&d.resolve(),v.skipTransition(),L({state:y,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(c(y),f({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[n.window,v,d,T,S]);a.useLayoutEffect(()=>n.subscribe(R),[n,R]),a.useEffect(()=>{l.isTransitioning&&!l.flushSync&&h(new Ne)},[l]),a.useEffect(()=>{if(d&&u&&n.window){let y=u,P=d.promise,C=n.window.document.startViewTransition(()=>me(this,null,function*(){S(()=>s(y)),yield P}));C.finished.finally(()=>{h(void 0),g(void 0),c(void 0),f({isTransitioning:!1})}),g(C)}},[S,u,d,n.window]),a.useEffect(()=>{d&&u&&r.location.key===u.location.key&&d.resolve()},[d,v,r.location,u]),a.useEffect(()=>{!l.isTransitioning&&E&&(c(E.state),f({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),L(void 0))},[l.isTransitioning,E]),a.useEffect(()=>{},[]);let x=a.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:y=>n.navigate(y),push:(y,P,C)=>n.navigate(y,{state:P,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(y,P,C)=>n.navigate(y,{replace:!0,state:P,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[n]),F=n.basename||"/",j=a.useMemo(()=>({router:n,navigator:x,static:!1,basename:F}),[n,x,F]);return a.createElement(a.Fragment,null,a.createElement(i.UNSAFE_DataRouterContext.Provider,{value:j},a.createElement(i.UNSAFE_DataRouterStateContext.Provider,{value:r},a.createElement(q.Provider,{value:T.current},a.createElement($.Provider,{value:l},a.createElement(i.Router,{basename:F,location:r.location,navigationType:r.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},r.initialized||n.future.v7_partialHydration?a.createElement(De,{routes:n.routes,future:n.future,state:r}):t))))),null)}function De(e){let{routes:t,future:n,state:o}=e;return(0,i.UNSAFE_useRoutesImpl)(t,void 0,o,n)}function Oe(e){let{basename:t,children:n,future:o,window:r}=e,s=a.useRef();s.current==null&&(s.current=(0,m.lX)({window:r,v5Compat:!0}));let u=s.current,[c,l]=a.useState({action:u.action,location:u.location}),{v7_startTransition:f}=o||{},d=a.useCallback(h=>{f&&A?A(()=>l(h)):l(h)},[l,f]);return a.useLayoutEffect(()=>u.listen(d),[u,d]),a.createElement(i.Router,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:o})}function Me(e){let{basename:t,children:n,future:o,window:r}=e,s=a.useRef();s.current==null&&(s.current=(0,m.q_)({window:r,v5Compat:!0}));let u=s.current,[c,l]=a.useState({action:u.action,location:u.location}),{v7_startTransition:f}=o||{},d=a.useCallback(h=>{f&&A?A(()=>l(h)):l(h)},[l,f]);return a.useLayoutEffect(()=>u.listen(d),[u,d]),a.createElement(i.Router,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:o})}function ke(e){let{basename:t,children:n,future:o,history:r}=e,[s,u]=a.useState({action:r.action,location:r.location}),{v7_startTransition:c}=o||{},l=a.useCallback(f=>{c&&A?A(()=>u(f)):u(f)},[u,c]);return a.useLayoutEffect(()=>r.listen(l),[r,l]),a.createElement(i.Router,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:r,future:o})}const Ie=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=a.forwardRef(function(t,n){let{onClick:o,relative:r,reloadDocument:s,replace:u,state:c,target:l,to:f,preventScrollReset:d,unstable_viewTransition:h}=t,v=Y(t,_e),{basename:g}=a.useContext(i.UNSAFE_NavigationContext),E,L=!1;if(typeof f=="string"&&Ke.test(f)&&(E=f,Ie))try{let R=new URL(window.location.href),x=f.startsWith("//")?new URL(R.protocol+f):new URL(f),F=(0,m.Zn)(x.pathname,g);x.origin===R.origin&&F!=null?f=F+x.search+x.hash:L=!0}catch(R){}let T=(0,i.useHref)(f,{relative:r}),w=ue(f,{replace:u,state:c,target:l,preventScrollReset:d,relative:r,unstable_viewTransition:h});function S(R){o&&o(R),R.defaultPrevented||w(R)}return a.createElement("a",b({},v,{href:E||T,onClick:L||s?o:S,ref:n,target:l}))}),Be=a.forwardRef(function(t,n){let{"aria-current":o="page",caseSensitive:r=!1,className:s="",end:u=!1,style:c,to:l,unstable_viewTransition:f,children:d}=t,h=Y(t,be),v=(0,i.useResolvedPath)(l,{relative:h.relative}),g=(0,i.useLocation)(),E=a.useContext(i.UNSAFE_DataRouterStateContext),{navigator:L}=a.useContext(i.UNSAFE_NavigationContext),T=E!=null&&de(v)&&f===!0,w=L.encodeLocation?L.encodeLocation(v).pathname:v.pathname,S=g.pathname,R=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;r||(S=S.toLowerCase(),R=R?R.toLowerCase():null,w=w.toLowerCase());const x=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let F=S===w||!u&&S.startsWith(w)&&S.charAt(x)==="/",j=R!=null&&(R===w||!u&&R.startsWith(w)&&R.charAt(w.length)==="/"),y={isActive:F,isPending:j,isTransitioning:T},P=F?o:void 0,C;typeof s=="function"?C=s(y):C=[s,F?"active":null,j?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let z=typeof c=="function"?c(y):c;return a.createElement(ae,b({},h,{"aria-current":P,className:C,ref:n,style:z,to:l,unstable_viewTransition:f}),typeof d=="function"?d(y):d)}),ie=a.forwardRef((e,t)=>{let{fetcherKey:n,navigate:o,reloadDocument:r,replace:s,state:u,method:c=B,action:l,onSubmit:f,relative:d,preventScrollReset:h,unstable_viewTransition:v}=e,g=Y(e,Ce),E=te(),L=le(l,{relative:d}),T=c.toLowerCase()==="get"?"get":"post",w=S=>{if(f&&f(S),S.defaultPrevented)return;S.preventDefault();let R=S.nativeEvent.submitter,x=(R==null?void 0:R.getAttribute("formmethod"))||c;E(R||S.currentTarget,{fetcherKey:n,method:x,navigate:o,replace:s,state:u,relative:d,preventScrollReset:h,unstable_viewTransition:v})};return a.createElement("form",b({ref:t,method:T,action:L,onSubmit:r?f:w},g))});function We(e){let{getKey:t,storageKey:n}=e;return fe({getKey:t,storageKey:n}),null}var D;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D||(D={}));var k;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(k||(k={}));function $e(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function J(e){let t=a.useContext(i.UNSAFE_DataRouterContext);return t||(0,m.J0)(!1),t}function ee(e){let t=a.useContext(i.UNSAFE_DataRouterStateContext);return t||(0,m.J0)(!1),t}function ue(e,t){let{target:n,replace:o,state:r,preventScrollReset:s,relative:u,unstable_viewTransition:c}=t===void 0?{}:t,l=(0,i.useNavigate)(),f=(0,i.useLocation)(),d=(0,i.useResolvedPath)(e,{relative:u});return a.useCallback(h=>{if(Re(h,n)){h.preventDefault();let v=o!==void 0?o:(0,p.Ep)(f)===(0,p.Ep)(d);l(e,{replace:v,state:r,preventScrollReset:s,relative:u,unstable_viewTransition:c})}},[f,l,d,o,r,n,e,s,u,c])}function He(e){let t=a.useRef(H(e)),n=a.useRef(!1),o=(0,i.useLocation)(),r=a.useMemo(()=>we(o.search,n.current?null:t.current),[o.search]),s=(0,i.useNavigate)(),u=a.useCallback((c,l)=>{const f=H(typeof c=="function"?c(r):c);n.current=!0,s("?"+f,l)},[s,r]);return[r,u]}function Ve(){if(typeof document=="undefined")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Je=0,se=()=>"__"+String(++Je)+"__";function te(){let{router:e}=J(D.UseSubmit),{basename:t}=a.useContext(i.UNSAFE_NavigationContext),n=(0,i.UNSAFE_useRouteId)();return a.useCallback(function(o,r){r===void 0&&(r={}),Ve();let{action:s,method:u,encType:c,formData:l,body:f}=ge(o,t);if(r.navigate===!1){let d=r.fetcherKey||se();e.fetch(d,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:f,formMethod:r.method||u,formEncType:r.encType||c,unstable_flushSync:r.unstable_flushSync})}else e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:f,formMethod:r.method||u,formEncType:r.encType||c,replace:r.replace,state:r.state,fromRouteId:n,unstable_flushSync:r.unstable_flushSync,unstable_viewTransition:r.unstable_viewTransition})},[e,t,n])}function le(e,t){let{relative:n}=t===void 0?{}:t,{basename:o}=a.useContext(i.UNSAFE_NavigationContext),r=a.useContext(i.UNSAFE_RouteContext);r||(0,m.J0)(!1);let[s]=r.matches.slice(-1),u=b({},(0,i.useResolvedPath)(e||".",{relative:n})),c=(0,i.useLocation)();if(e==null){u.search=c.search;let l=new URLSearchParams(u.search);l.has("index")&&l.get("index")===""&&(l.delete("index"),u.search=l.toString()?"?"+l.toString():"")}return(!e||e===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(u.pathname=u.pathname==="/"?o:(0,m.RQ)([o,u.pathname])),(0,p.Ep)(u)}function Xe(e){var t;let{key:n}=e===void 0?{}:e,{router:o}=J(D.UseFetcher),r=ee(k.UseFetcher),s=a.useContext(q),u=a.useContext(i.UNSAFE_RouteContext),c=(t=u.matches[u.matches.length-1])==null?void 0:t.route.id;s||(0,m.J0)(!1),u||(0,m.J0)(!1),c==null&&(0,m.J0)(!1);let[l,f]=a.useState(n||"");n&&n!==l?f(n):l||f(se()),a.useEffect(()=>(o.getFetcher(l),()=>{o.deleteFetcher(l)}),[o,l]);let d=a.useCallback((w,S)=>{c||(0,m.J0)(!1),o.fetch(l,c,w,S)},[l,c,o]),h=te(),v=a.useCallback((w,S)=>{h(w,b({},S,{navigate:!1,fetcherKey:l}))},[l,h]),g=a.useMemo(()=>a.forwardRef((S,R)=>a.createElement(ie,b({},S,{navigate:!1,fetcherKey:l,ref:R}))),[l]),E=r.fetchers.get(l)||m.ov,L=s.get(l);return a.useMemo(()=>b({Form:g,submit:v,load:d},E,{data:L}),[g,v,d,E,L])}function je(){let e=ee(k.UseFetchers);return Array.from(e.fetchers.entries()).map(t=>{let[n,o]=t;return b({},o,{key:n})})}const ce="react-router-scroll-positions";let X={};function fe(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:o}=J(D.UseScrollRestoration),{restoreScrollPosition:r,preventScrollReset:s}=ee(k.UseScrollRestoration),{basename:u}=a.useContext(i.UNSAFE_NavigationContext),c=(0,i.useLocation)(),l=(0,i.useMatches)(),f=(0,i.useNavigation)();a.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Ze(a.useCallback(()=>{if(f.state==="idle"){let d=(t?t(c,l):null)||c.key;X[d]=window.scrollY}try{sessionStorage.setItem(n||ce,JSON.stringify(X))}catch(d){}window.history.scrollRestoration="auto"},[n,t,f.state,c,l])),typeof document!="undefined"&&(a.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(n||ce);d&&(X=JSON.parse(d))}catch(d){}},[n]),a.useLayoutEffect(()=>{let d=t&&u!=="/"?(v,g)=>t(b({},v,{pathname:(0,m.Zn)(v.pathname,u)||v.pathname}),g):t,h=o==null?void 0:o.enableScrollRestoration(X,()=>window.scrollY,d);return()=>h&&h()},[o,u,t]),a.useLayoutEffect(()=>{if(r!==!1){if(typeof r=="number"){window.scrollTo(0,r);return}if(c.hash){let d=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(d){d.scrollIntoView();return}}s!==!0&&window.scrollTo(0,0)}},[c,r,s]))}function ze(e,t){let{capture:n}=t||{};a.useEffect(()=>{let o=n!=null?{capture:n}:void 0;return window.addEventListener("beforeunload",e,o),()=>{window.removeEventListener("beforeunload",e,o)}},[e,n])}function Ze(e,t){let{capture:n}=t||{};a.useEffect(()=>{let o=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,o),()=>{window.removeEventListener("pagehide",e,o)}},[e,n])}function Ye(e){let{when:t,message:n}=e,o=(0,i.useBlocker)(t);a.useEffect(()=>{o.state==="blocked"&&(window.confirm(n)?setTimeout(o.proceed,0):o.reset())},[o,n]),a.useEffect(()=>{o.state==="blocked"&&!t&&o.reset()},[o,t])}function de(e,t){t===void 0&&(t={});let n=a.useContext($);n==null&&(0,m.J0)(!1);let{basename:o}=J(D.useViewTransitionState),r=(0,i.useResolvedPath)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=(0,m.Zn)(n.currentLocation.pathname,o)||n.currentLocation.pathname,u=(0,m.Zn)(n.nextLocation.pathname,o)||n.nextLocation.pathname;return(0,m.LX)(r.pathname,u)!=null||(0,m.LX)(r.pathname,s)!=null}}}]);
|
|
2
|
-
}());
|