@nocobase/app 1.7.0-beta.8 → 1.8.0-beta.1

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.
Files changed (48) hide show
  1. package/dist/client/501.72b99d17.async.js +1 -0
  2. package/dist/client/5977.08716e4e.async.js +58 -0
  3. package/dist/client/index.html +1 -1
  4. package/dist/client/index.html.tpl +1 -1
  5. package/dist/client/npm._at_ant-design.47a729f3.async.js +141 -0
  6. package/dist/client/npm._at_budibase.b1200847.async.js +36 -0
  7. package/dist/client/npm._at_dnd-kit.ebb2cc42.async.js +5 -0
  8. package/dist/client/npm._at_formily.f71b1c62.async.js +96 -0
  9. package/dist/client/npm._at_rc-component.5f4cc5e2.async.js +8 -0
  10. package/dist/client/{npm.ahooks.4b44f0c8.async.js → npm.ahooks.c5b165dc.async.js} +1 -1
  11. package/dist/client/npm.antd.1b1bd213.async.js +464 -0
  12. package/dist/client/npm.dayjs.45ed1676.async.js +1 -0
  13. package/dist/client/{npm.dompurify.d5071c22.async.js → npm.dompurify.2ca7a7c6.async.js} +1 -1
  14. package/dist/client/{npm.highlight.js.83fe0142.async.js → npm.highlight.js.f727dfe3.async.js} +1 -1
  15. package/dist/client/{npm.lodash.0ff318b3.async.js → npm.lodash.5dcc1c5e.async.js} +2 -2
  16. package/dist/client/{npm.mermaid.721cd79c.async.js → npm.mermaid.b398414f.async.js} +114 -114
  17. package/dist/client/npm.rc-cascader.cf6ec555.async.js +4 -0
  18. package/dist/client/npm.rc-image.d550fa79.async.js +1 -0
  19. package/dist/client/npm.rc-menu.da4ef0ce.async.js +1 -0
  20. package/dist/client/npm.rc-picker.89eafb74.async.js +22 -0
  21. package/dist/client/npm.rc-select.44fb85b4.async.js +3 -0
  22. package/dist/client/npm.rc-slider.d2d511ab.async.js +1 -0
  23. package/dist/client/npm.rc-table.c5aa8a0d.async.js +22 -0
  24. package/dist/client/npm.rc-tree-select.5597dcbf.async.js +5 -0
  25. package/dist/client/npm.rc-tree.49888c60.async.js +1 -0
  26. package/dist/client/npm.sanitize-html.506a0a55.async.js +34 -0
  27. package/dist/client/npm.uuid.15e7bb90.async.js +1 -0
  28. package/dist/client/p__index.e8f58a9f.async.js +1665 -0
  29. package/dist/client/umi.a7d2d1d2.js +63 -0
  30. package/package.json +6 -6
  31. package/dist/client/4750.667c5051.async.js +0 -69
  32. package/dist/client/501.e8db2401.async.js +0 -1
  33. package/dist/client/npm._at_ant-design.5ba41bf5.async.js +0 -139
  34. package/dist/client/npm._at_budibase.4c85e362.async.js +0 -36
  35. package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +0 -9
  36. package/dist/client/npm._at_formily.07fa921d.async.js +0 -96
  37. package/dist/client/npm._at_rc-component.43f95f42.async.js +0 -5
  38. package/dist/client/npm.antd.483a9a61.async.js +0 -440
  39. package/dist/client/npm.dayjs.0a5fd152.async.js +0 -1
  40. package/dist/client/npm.rc-cascader.04b47add.async.js +0 -1
  41. package/dist/client/npm.rc-menu.adf5ade6.async.js +0 -1
  42. package/dist/client/npm.rc-picker.9e629062.async.js +0 -1
  43. package/dist/client/npm.rc-select.7c36e54e.async.js +0 -3
  44. package/dist/client/npm.rc-table.a153e021.async.js +0 -1
  45. package/dist/client/npm.rc-tree.f61b7d87.async.js +0 -1
  46. package/dist/client/npm.sanitize-html.4386b2d9.async.js +0 -34
  47. package/dist/client/p__index.664cb0f3.async.js +0 -1586
  48. package/dist/client/umi.31a3c863.js +0 -60
@@ -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{}},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??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??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,34 +0,0 @@
1
- (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4582],{91036:function(T,U,d){const A=d(23719),v=d(22997),{isPlainObject:l}=d(10977),h=d(9996),u=d(79430),{parse:g}=d(13200),E=["img","audio","video","picture","svg","object","map","iframe","embed"],O=["script","style"];function f(i,o){i&&Object.keys(i).forEach(function(y){o(i[y],y)})}function c(i,o){return{}.hasOwnProperty.call(i,o)}function t(i,o){const y=[];return f(i,function(w){o(w)&&y.push(w)}),y}function s(i){for(const o in i)if(c(i,o))return!1;return!0}function a(i){return i.map(function(o){if(!o.url)throw new Error("URL missing");return o.url+(o.w?` ${o.w}w`:"")+(o.h?` ${o.h}h`:"")+(o.d?` ${o.d}x`:"")}).join(", ")}T.exports=r;const e=/^[^\0\t\n\f\r /<=>]+$/;function r(i,o,y){if(i==null)return"";typeof i=="number"&&(i=i.toString());let w="",C="";function m(b,M){const R=this;this.tag=b,this.attribs=M||{},this.tagPosition=w.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if($.length){const N=$[$.length-1];N.text+=R.text}},this.updateParentNodeMediaChildren=function(){$.length&&E.includes(this.tag)&&$[$.length-1].mediaChildren.push(this.tag)}}o=Object.assign({},r.defaults,o),o.parser=Object.assign({},n,o.parser);const p=function(b){return o.allowedTags===!1||(o.allowedTags||[]).indexOf(b)>-1};O.forEach(function(b){p(b)&&!o.allowVulnerableTags&&console.warn(`
2
-
3
- \u26A0\uFE0F Your \`allowedTags\` option includes, \`${b}\`, which is inherently
4
- vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
5
- Or, to disable this warning, add the \`allowVulnerableTags\` option
6
- and ensure you are accounting for this risk.
7
-
8
- `)});const S=o.nonTextTags||["script","style","textarea","option"];let x,D;o.allowedAttributes&&(x={},D={},f(o.allowedAttributes,function(b,M){x[M]=[];const R=[];b.forEach(function(N){typeof N=="string"&&N.indexOf("*")>=0?R.push(v(N).replace(/\\\*/g,".*")):x[M].push(N)}),R.length&&(D[M]=new RegExp("^("+R.join("|")+")$"))}));const L={},P={},Z={};f(o.allowedClasses,function(b,M){if(x&&(c(x,M)||(x[M]=[]),x[M].push("class")),L[M]=b,Array.isArray(b)){const R=[];L[M]=[],Z[M]=[],b.forEach(function(N){typeof N=="string"&&N.indexOf("*")>=0?R.push(v(N).replace(/\\\*/g,".*")):N instanceof RegExp?Z[M].push(N):L[M].push(N)}),R.length&&(P[M]=new RegExp("^("+R.join("|")+")$"))}});const _={};let K;f(o.transformTags,function(b,M){let R;typeof b=="function"?R=b:typeof b=="string"&&(R=r.simpleTransform(b)),M==="*"?K=R:_[M]=R});let j,$,Q,H,W,X,I=!1;ee();const re=new A.Parser({onopentag:function(b,M){if(o.enforceHtmlBoundary&&b==="html"&&ee(),W){X++;return}const R=new m(b,M);$.push(R);let N=!1;const G=!!R.text;let V;if(c(_,b)&&(V=_[b](b,M),R.attribs=M=V.attribs,V.text!==void 0&&(R.innerText=V.text),b!==V.tagName&&(R.name=b=V.tagName,H[j]=V.tagName)),K&&(V=K(b,M),R.attribs=M=V.attribs,b!==V.tagName&&(R.name=b=V.tagName,H[j]=V.tagName)),(!p(b)||o.disallowedTagsMode==="recursiveEscape"&&!s(Q)||o.nestingLimit!=null&&j>=o.nestingLimit)&&(N=!0,Q[j]=!0,(o.disallowedTagsMode==="discard"||o.disallowedTagsMode==="completelyDiscard")&&S.indexOf(b)!==-1&&(W=!0,X=1),Q[j]=!0),j++,N){if(o.disallowedTagsMode==="discard"||o.disallowedTagsMode==="completelyDiscard")return;C=w,w=""}w+="<"+b,b==="script"&&(o.allowedScriptHostnames||o.allowedScriptDomains)&&(R.innerText=""),(!x||c(x,b)||x["*"])&&f(M,function(B,k){if(!e.test(k)){delete R.attribs[k];return}if(B===""&&!o.allowedEmptyAttributes.includes(k)&&(o.nonBooleanAttributes.includes(k)||o.nonBooleanAttributes.includes("*"))){delete R.attribs[k];return}let fe=!1;if(!x||c(x,b)&&x[b].indexOf(k)!==-1||x["*"]&&x["*"].indexOf(k)!==-1||c(D,b)&&D[b].test(k)||D["*"]&&D["*"].test(k))fe=!0;else if(x&&x[b]){for(const F of x[b])if(l(F)&&F.name&&F.name===k){fe=!0;let z="";if(F.multiple===!0){const se=B.split(" ");for(const Y of se)F.values.indexOf(Y)!==-1&&(z===""?z=Y:z+=" "+Y)}else F.values.indexOf(B)>=0&&(z=B);B=z}}if(fe){if(o.allowedSchemesAppliedToAttributes.indexOf(k)!==-1&&ie(b,B)){delete R.attribs[k];return}if(b==="script"&&k==="src"){let F=!0;try{const z=oe(B);if(o.allowedScriptHostnames||o.allowedScriptDomains){const se=(o.allowedScriptHostnames||[]).find(function(J){return J===z.url.hostname}),Y=(o.allowedScriptDomains||[]).find(function(J){return z.url.hostname===J||z.url.hostname.endsWith(`.${J}`)});F=se||Y}}catch{F=!1}if(!F){delete R.attribs[k];return}}if(b==="iframe"&&k==="src"){let F=!0;try{const z=oe(B);if(z.isRelativeUrl)F=c(o,"allowIframeRelativeUrls")?o.allowIframeRelativeUrls:!o.allowedIframeHostnames&&!o.allowedIframeDomains;else if(o.allowedIframeHostnames||o.allowedIframeDomains){const se=(o.allowedIframeHostnames||[]).find(function(J){return J===z.url.hostname}),Y=(o.allowedIframeDomains||[]).find(function(J){return z.url.hostname===J||z.url.hostname.endsWith(`.${J}`)});F=se||Y}}catch{F=!1}if(!F){delete R.attribs[k];return}}if(k==="srcset")try{let F=u(B);if(F.forEach(function(z){ie("srcset",z.url)&&(z.evil=!0)}),F=t(F,function(z){return!z.evil}),F.length)B=a(t(F,function(z){return!z.evil})),R.attribs[k]=B;else{delete R.attribs[k];return}}catch{delete R.attribs[k];return}if(k==="class"){const F=L[b],z=L["*"],se=P[b],Y=Z[b],J=P["*"],ue=[se,J].concat(Y).filter(function(he){return he});if(F&&z?B=ne(B,h(F,z),ue):B=ne(B,F||z,ue),!B.length){delete R.attribs[k];return}}if(k==="style"){if(o.parseStyleAttributes)try{const F=g(b+" {"+B+"}",{map:!1}),z=le(F,o.allowedStyles);if(B=ae(z),B.length===0){delete R.attribs[k];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+b+" {"+B+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete R.attribs[k];return}else if(o.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}w+=" "+k,B&&B.length?w+='="'+te(B,!0)+'"':o.allowedEmptyAttributes.includes(k)&&(w+='=""')}else delete R.attribs[k]}),o.selfClosing.indexOf(b)!==-1?w+=" />":(w+=">",R.innerText&&!G&&!o.textFilter&&(w+=te(R.innerText),I=!0)),N&&(w=C+te(w),C="")},ontext:function(b){if(W)return;const M=$[$.length-1];let R;if(M&&(R=M.tag,b=M.innerText!==void 0?M.innerText:b),o.disallowedTagsMode==="completelyDiscard"&&!p(R))b="";else if((o.disallowedTagsMode==="discard"||o.disallowedTagsMode==="completelyDiscard")&&(R==="script"||R==="style"))w+=b;else{const N=te(b,!1);o.textFilter&&!I?w+=o.textFilter(N,R):I||(w+=N)}if($.length){const N=$[$.length-1];N.text+=b}},onclosetag:function(b,M){if(W)if(X--,!X)W=!1;else return;const R=$.pop();if(!R)return;if(R.tag!==b){$.push(R);return}W=o.enforceHtmlBoundary?b==="html":!1,j--;const N=Q[j];if(N){if(delete Q[j],o.disallowedTagsMode==="discard"||o.disallowedTagsMode==="completelyDiscard"){R.updateParentNodeText();return}C=w,w=""}if(H[j]&&(b=H[j],delete H[j]),o.exclusiveFilter&&o.exclusiveFilter(R)){w=w.substr(0,R.tagPosition);return}if(R.updateParentNodeMediaChildren(),R.updateParentNodeText(),o.selfClosing.indexOf(b)!==-1||M&&!p(b)&&["escape","recursiveEscape"].indexOf(o.disallowedTagsMode)>=0){N&&(w=C,C="");return}w+="</"+b+">",N&&(w=C+te(w),C=""),I=!1}},o.parser);return re.write(i),re.end(),w;function ee(){w="",j=0,$=[],Q={},H={},W=!1,X=0}function te(b,M){return typeof b!="string"&&(b=b+""),o.parser.decodeEntities&&(b=b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),M&&(b=b.replace(/"/g,"&quot;"))),b=b.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),M&&(b=b.replace(/"/g,"&quot;")),b}function ie(b,M){for(M=M.replace(/[\x00-\x20]+/g,"");;){const G=M.indexOf("<!--");if(G===-1)break;const V=M.indexOf("-->",G+4);if(V===-1)break;M=M.substring(0,G)+M.substring(V+3)}const R=M.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!R)return M.match(/^[/\\]{2}/)?!o.allowProtocolRelative:!1;const N=R[1].toLowerCase();return c(o.allowedSchemesByTag,b)?o.allowedSchemesByTag[b].indexOf(N)===-1:!o.allowedSchemes||o.allowedSchemes.indexOf(N)===-1}function oe(b){if(b=b.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),b.startsWith("relative:"))throw new Error("relative: exploit attempt");let M="relative://relative-site";for(let G=0;G<100;G++)M+=`/${G}`;const R=new URL(b,M);return{isRelativeUrl:R&&R.hostname==="relative-site"&&R.protocol==="relative:",url:R}}function le(b,M){if(!M)return b;const R=b.nodes[0];let N;return M[R.selector]&&M["*"]?N=h(M[R.selector],M["*"]):N=M[R.selector]||M["*"],N&&(b.nodes[0].nodes=R.nodes.reduce(q(N),[])),b}function ae(b){return b.nodes[0].nodes.reduce(function(M,R){return M.push(`${R.prop}:${R.value}${R.important?" !important":""}`),M},[]).join(";")}function q(b){return function(M,R){return c(b,R.prop)&&b[R.prop].some(function(G){return G.test(R.value)})&&M.push(R),M}}function ne(b,M,R){return M?(b=b.split(/\s+/),b.filter(function(N){return M.indexOf(N)!==-1||R.some(function(G){return G.test(N)})}).join(" ")):b}}const n={decodeEntities:!0};r.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},r.simpleTransform=function(i,o,y){return y=y===void 0?!0:y,o=o||{},function(w,C){let m;if(y)for(m in o)C[m]=o[m];else C=o;return{tagName:i,attribs:C}}}},22997:function(T){"use strict";T.exports=U=>{if(typeof U!="string")throw new TypeError("Expected a string");return U.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},10977:function(T,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});function d(v){return Object.prototype.toString.call(v)==="[object Object]"}function A(v){var l,h;return d(v)===!1?!1:(l=v.constructor,l===void 0?!0:(h=l.prototype,!(d(h)===!1||h.hasOwnProperty("isPrototypeOf")===!1)))}U.isPlainObject=A},12650:function(T,U,d){"use strict";let A=d(66808);class v extends A{constructor(h){super(h),this.type="atrule"}append(...h){return this.proxyOf.nodes||(this.nodes=[]),super.append(...h)}prepend(...h){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...h)}}T.exports=v,v.default=v,A.registerAtRule(v)},91569:function(T,U,d){"use strict";let A=d(83454);class v extends A{constructor(h){super(h),this.type="comment"}}T.exports=v,v.default=v},66808:function(T,U,d){"use strict";let{isClean:A,my:v}=d(58999),l=d(85232),h=d(91569),u=d(83454),g,E,O,f;function c(a){return a.map(e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e))}function t(a){if(a[A]=!1,a.proxyOf.nodes)for(let e of a.proxyOf.nodes)t(e)}class s extends u{append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(i=>typeof i=="function"?(o,y)=>i(o.toProxy(),y):i)):r==="every"||r==="some"?n=>e[r]((i,...o)=>n(i.toProxy(),...o)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let y of i)this.proxyOf.nodes.splice(n+1,0,y);let o;for(let y in this.indexes)o=this.indexes[y],n<o&&(this.indexes[y]=o+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,o=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let w of o)this.proxyOf.nodes.splice(n,0,w);let y;for(let w in this.indexes)y=this.indexes[w],n<=y&&(this.indexes[w]=y+o.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=c(g(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector)e=[new E(e)];else if(e.name)e=[new O(e)];else if(e.text)e=[new h(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[v]||s.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[A]&&t(i),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(o){throw r.addToError(o)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}s.registerParse=a=>{g=a},s.registerRule=a=>{E=a},s.registerAtRule=a=>{O=a},s.registerRoot=a=>{f=a},T.exports=s,s.default=s,s.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,O.prototype):a.type==="rule"?Object.setPrototypeOf(a,E.prototype):a.type==="decl"?Object.setPrototypeOf(a,l.prototype):a.type==="comment"?Object.setPrototypeOf(a,h.prototype):a.type==="root"&&Object.setPrototypeOf(a,f.prototype),a[v]=!0,a.nodes&&a.nodes.forEach(e=>{s.rebuild(e)})}},95373:function(T,U,d){"use strict";let A=d(74241),v=d(75347);class l extends Error{constructor(u,g,E,O,f,c){super(u),this.name="CssSyntaxError",this.reason=u,f&&(this.file=f),O&&(this.source=O),c&&(this.plugin=c),typeof g<"u"&&typeof E<"u"&&(typeof g=="number"?(this.line=g,this.column=E):(this.line=g.line,this.column=g.column,this.endLine=E.line,this.endColumn=E.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,l)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(u){if(!this.source)return"";let g=this.source;u==null&&(u=A.isColorSupported),v&&u&&(g=v(g));let E=g.split(/\r?\n/),O=Math.max(this.line-3,0),f=Math.min(this.line+2,E.length),c=String(f).length,t,s;if(u){let{bold:a,gray:e,red:r}=A.createColors(!0);t=n=>a(r(n)),s=n=>e(n)}else t=s=a=>a;return E.slice(O,f).map((a,e)=>{let r=O+1+e,n=" "+(" "+r).slice(-c)+" | ";if(r===this.line){let i=s(n.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+s(n)+a+`
9
- `+i+t("^")}return" "+s(n)+a}).join(`
10
- `)}toString(){let u=this.showSourceCode();return u&&(u=`
11
-
12
- `+u+`
13
- `),this.name+": "+this.message+u}}T.exports=l,l.default=l},85232:function(T,U,d){"use strict";let A=d(83454);class v extends A{constructor(h){h&&typeof h.value<"u"&&typeof h.value!="string"&&(h={...h,value:String(h.value)}),super(h),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}T.exports=v,v.default=v},5991:function(T,U,d){"use strict";let A=d(66808),v,l;class h extends A{constructor(g){super({type:"document",...g}),this.nodes||(this.nodes=[])}toResult(g={}){return new v(new l,this,g).stringify()}}h.registerLazyResult=u=>{v=u},h.registerProcessor=u=>{l=u},T.exports=h,h.default=h},38853:function(T,U,d){"use strict";let A=d(85232),v=d(49470),l=d(91569),h=d(12650),u=d(62627),g=d(71283),E=d(4485);function O(f,c){if(Array.isArray(f))return f.map(a=>O(a));let{inputs:t,...s}=f;if(t){c=[];for(let a of t){let e={...a,__proto__:u.prototype};e.map&&(e.map={...e.map,__proto__:v.prototype}),c.push(e)}}if(s.nodes&&(s.nodes=f.nodes.map(a=>O(a,c))),s.source){let{inputId:a,...e}=s.source;s.source=e,a!=null&&(s.source.input=c[a])}if(s.type==="root")return new g(s);if(s.type==="decl")return new A(s);if(s.type==="rule")return new E(s);if(s.type==="comment")return new l(s);if(s.type==="atrule")return new h(s);throw new Error("Unknown node type: "+f.type)}T.exports=O,O.default=O},62627:function(T,U,d){"use strict";let{SourceMapConsumer:A,SourceMapGenerator:v}=d(59905),{fileURLToPath:l,pathToFileURL:h}=d(64604),{isAbsolute:u,resolve:g}=d(34017),{nanoid:E}=d(96888),O=d(75347),f=d(95373),c=d(49470),t=Symbol("fromOffsetCache"),s=!!(A&&v),a=!!(g&&u);class e{constructor(n,i={}){if(n===null||typeof n>"u"||typeof n=="object"&&!n.toString)throw new Error(`PostCSS received ${n} instead of CSS string`);if(this.css=n.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,i.from&&(!a||/^\w+:\/\//.test(i.from)||u(i.from)?this.file=i.from:this.file=g(i.from)),a&&s){let o=new c(this.css,i);if(o.text){this.map=o;let y=o.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y))}}this.file||(this.id="<input css "+E(6)+">"),this.map&&(this.map.file=this.from)}error(n,i,o,y={}){let w,C,m;if(i&&typeof i=="object"){let S=i,x=o;if(typeof S.offset=="number"){let D=this.fromOffset(S.offset);i=D.line,o=D.col}else i=S.line,o=S.column;if(typeof x.offset=="number"){let D=this.fromOffset(x.offset);C=D.line,m=D.col}else C=x.line,m=x.column}else if(!o){let S=this.fromOffset(i);i=S.line,o=S.col}let p=this.origin(i,o,C,m);return p?w=new f(n,p.endLine===void 0?p.line:{column:p.column,line:p.line},p.endLine===void 0?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,y.plugin):w=new f(n,C===void 0?i:{column:o,line:i},C===void 0?o:{column:m,line:C},this.css,this.file,y.plugin),w.input={column:o,endColumn:m,endLine:C,line:i,source:this.css},this.file&&(h&&(w.input.url=h(this.file).toString()),w.input.file=this.file),w}fromOffset(n){let i,o;if(this[t])o=this[t];else{let w=this.css.split(`
14
- `);o=new Array(w.length);let C=0;for(let m=0,p=w.length;m<p;m++)o[m]=C,C+=w[m].length+1;this[t]=o}i=o[o.length-1];let y=0;if(n>=i)y=o.length-1;else{let w=o.length-2,C;for(;y<w;)if(C=y+(w-y>>1),n<o[C])w=C-1;else if(n>=o[C+1])y=C+1;else{y=C;break}}return{col:n-o[y]+1,line:y+1}}mapResolve(n){return/^\w+:\/\//.test(n)?n:g(this.map.consumer().sourceRoot||this.map.root||".",n)}origin(n,i,o,y){if(!this.map)return!1;let w=this.map.consumer(),C=w.originalPositionFor({column:i,line:n});if(!C.source)return!1;let m;typeof o=="number"&&(m=w.originalPositionFor({column:y,line:o}));let p;u(C.source)?p=h(C.source):p=new URL(C.source,this.map.consumer().sourceRoot||h(this.map.mapFile));let S={column:C.column,endColumn:m&&m.column,endLine:m&&m.line,line:C.line,url:p.toString()};if(p.protocol==="file:")if(l)S.file=l(p);else throw new Error("file: protocol is not available in this PostCSS build");let x=w.sourceContentFor(C.source);return x&&(S.source=x),S}toJSON(){let n={};for(let i of["hasBOM","css","file","id"])this[i]!=null&&(n[i]=this[i]);return this.map&&(n.map={...this.map},n.map.consumerCache&&(n.map.consumerCache=void 0)),n}get from(){return this.file||this.id}}T.exports=e,e.default=e,O&&O.registerInput&&O.registerInput(e)},75673:function(T,U,d){"use strict";let{isClean:A,my:v}=d(58999),l=d(40429),h=d(23179),u=d(66808),g=d(5991),E=d(84133),O=d(96641),f=d(11665),c=d(71283);const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},a={Once:!0,postcssPlugin:!0,prepare:!0},e=0;function r(C){return typeof C=="object"&&typeof C.then=="function"}function n(C){let m=!1,p=t[C.type];return C.type==="decl"?m=C.prop.toLowerCase():C.type==="atrule"&&(m=C.name.toLowerCase()),m&&C.append?[p,p+"-"+m,e,p+"Exit",p+"Exit-"+m]:m?[p,p+"-"+m,p+"Exit",p+"Exit-"+m]:C.append?[p,e,p+"Exit"]:[p,p+"Exit"]}function i(C){let m;return C.type==="document"?m=["Document",e,"DocumentExit"]:C.type==="root"?m=["Root",e,"RootExit"]:m=n(C),{eventIndex:0,events:m,iterator:0,node:C,visitorIndex:0,visitors:[]}}function o(C){return C[A]=!1,C.nodes&&C.nodes.forEach(m=>o(m)),C}let y={};class w{constructor(m,p,S){this.stringified=!1,this.processed=!1;let x;if(typeof p=="object"&&p!==null&&(p.type==="root"||p.type==="document"))x=o(p);else if(p instanceof w||p instanceof O)x=o(p.root),p.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=p.map);else{let D=f;S.syntax&&(D=S.syntax.parse),S.parser&&(D=S.parser),D.parse&&(D=D.parse);try{x=D(p,S)}catch(L){this.processed=!0,this.error=L}x&&!x[v]&&u.rebuild(x)}this.result=new O(m,x,S),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(D=>typeof D=="object"&&D.prepare?{...D,...D.prepare(this.result)}:D)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(m,p){let S=this.result.lastPlugin;try{p&&p.addToError(m),this.error=m,m.name==="CssSyntaxError"&&!m.plugin?(m.plugin=S.postcssPlugin,m.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return m}prepareVisitors(){this.listeners={};let m=(p,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([p,x])};for(let p of this.plugins)if(typeof p=="object")for(let S in p){if(!s[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${p.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!a[S])if(typeof p[S]=="object")for(let x in p[S])x==="*"?m(p,S,p[S][x]):m(p,S+"-"+x.toLowerCase(),p[S][x]);else typeof p[S]=="function"&&m(p,S,p[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let m=0;m<this.plugins.length;m++){let p=this.plugins[m],S=this.runOnRoot(p);if(r(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let m=this.result.root;for(;!m[A];){m[A]=!0;let p=[i(m)];for(;p.length>0;){let S=this.visitTick(p);if(r(S))try{await S}catch(x){let D=p[p.length-1].node;throw this.handleError(x,D)}}}if(this.listeners.OnceExit)for(let[p,S]of this.listeners.OnceExit){this.result.lastPlugin=p;try{if(m.type==="document"){let x=m.nodes.map(D=>S(D,this.helpers));await Promise.all(x)}else await S(m,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(m){this.result.lastPlugin=m;try{if(typeof m=="object"&&m.Once){if(this.result.root.type==="document"){let p=this.result.root.nodes.map(S=>m.Once(S,this.helpers));return r(p[0])?Promise.all(p):p}return m.Once(this.result.root,this.helpers)}else if(typeof m=="function")return m(this.result.root,this.result)}catch(p){throw this.handleError(p)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let m=this.result.opts,p=h;m.syntax&&(p=m.syntax.stringify),m.stringifier&&(p=m.stringifier),p.stringify&&(p=p.stringify);let x=new l(p,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let m of this.plugins){let p=this.runOnRoot(m);if(r(p))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let m=this.result.root;for(;!m[A];)m[A]=!0,this.walkSync(m);if(this.listeners.OnceExit)if(m.type==="document")for(let p of m.nodes)this.visitSync(this.listeners.OnceExit,p);else this.visitSync(this.listeners.OnceExit,m)}return this.result}then(m,p){return this.async().then(m,p)}toString(){return this.css}visitSync(m,p){for(let[S,x]of m){this.result.lastPlugin=S;let D;try{D=x(p,this.helpers)}catch(L){throw this.handleError(L,p.proxyOf)}if(p.type!=="root"&&p.type!=="document"&&!p.parent)return!0;if(r(D))throw this.getAsyncError()}}visitTick(m){let p=m[m.length-1],{node:S,visitors:x}=p;if(S.type!=="root"&&S.type!=="document"&&!S.parent){m.pop();return}if(x.length>0&&p.visitorIndex<x.length){let[L,P]=x[p.visitorIndex];p.visitorIndex+=1,p.visitorIndex===x.length&&(p.visitors=[],p.visitorIndex=0),this.result.lastPlugin=L;try{return P(S.toProxy(),this.helpers)}catch(Z){throw this.handleError(Z,S)}}if(p.iterator!==0){let L=p.iterator,P;for(;P=S.nodes[S.indexes[L]];)if(S.indexes[L]+=1,!P[A]){P[A]=!0,m.push(i(P));return}p.iterator=0,delete S.indexes[L]}let D=p.events;for(;p.eventIndex<D.length;){let L=D[p.eventIndex];if(p.eventIndex+=1,L===e){S.nodes&&S.nodes.length&&(S[A]=!0,p.iterator=S.getIterator());return}else if(this.listeners[L]){p.visitors=this.listeners[L];return}}m.pop()}walkSync(m){m[A]=!0;let p=n(m);for(let S of p)if(S===e)m.nodes&&m.each(x=>{x[A]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,m.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}w.registerPostcss=C=>{y=C},T.exports=w,w.default=w,c.registerLazyResult(w),g.registerLazyResult(w)},30416:function(T){"use strict";let U={comma(d){return U.split(d,[","],!0)},space(d){let A=[" ",`
15
- `," "];return U.split(d,A)},split(d,A,v){let l=[],h="",u=!1,g=0,E=!1,O="",f=!1;for(let c of d)f?f=!1:c==="\\"?f=!0:E?c===O&&(E=!1):c==='"'||c==="'"?(E=!0,O=c):c==="("?g+=1:c===")"?g>0&&(g-=1):g===0&&A.includes(c)&&(u=!0),u?(h!==""&&l.push(h.trim()),h="",u=!1):h+=c;return(v||h!=="")&&l.push(h.trim()),l}};T.exports=U,U.default=U},40429:function(T,U,d){"use strict";var A=d(48764).lW;let{SourceMapConsumer:v,SourceMapGenerator:l}=d(59905),{dirname:h,relative:u,resolve:g,sep:E}=d(34017),{pathToFileURL:O}=d(64604),f=d(62627),c=!!(v&&l),t=!!(h&&g&&u&&E);class s{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
16
- `;this.css.includes(`\r
17
- `)&&(r=`\r
18
- `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||h(e.file),i;this.mapOpts.sourcesContent===!1?(i=new v(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),t&&c&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e)}else this.map=new l({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile()});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,y;this.stringify(this.root,(w,C,m)=>{if(this.css+=w,C&&m!=="end"&&(i.generated.line=e,i.generated.column=r-1,C.source&&C.source.start?(i.source=this.sourcePath(C),i.original.line=C.source.start.line,i.original.column=C.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=w.match(/\n/g),o?(e+=o.length,y=w.lastIndexOf(`
19
- `),r=w.length-y):r+=w.length,C&&m!=="start"){let p=C.parent||{raws:{}};(!(C.type==="decl"||C.type==="atrule"&&!C.nodes)||C!==p.last||p.raws.semicolon)&&(C.source&&C.source.end?(i.source=this.sourcePath(C),i.original.line=C.source.end.line,i.original.column=C.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?h(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=h(g(n,this.mapOpts.annotation)));let i=u(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new f(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return A?A.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(O){let n=O(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;E==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}T.exports=s},42336:function(T,U,d){"use strict";let A=d(40429),v=d(23179),l=d(84133),h=d(11665);const u=d(96641);class g{constructor(O,f,c){f=f.toString(),this.stringified=!1,this._processor=O,this._css=f,this._opts=c,this._map=void 0;let t,s=v;this.result=new u(this._processor,t,this._opts),this.result.css=f;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let e=new A(s,t,this._opts,f);if(e.isMap()){let[r,n]=e.generate();r&&(this.result.css=r),n&&(this.result.map=n)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(O){return this.async().catch(O)}finally(O){return this.async().then(O,O)}sync(){if(this.error)throw this.error;return this.result}then(O,f){return this.async().then(O,f)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let O,f=h;try{O=f(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=O,O}get[Symbol.toStringTag](){return"NoWorkResult"}}T.exports=g,g.default=g},83454:function(T,U,d){"use strict";let{isClean:A,my:v}=d(58999),l=d(95373),h=d(7843),u=d(23179);function g(O,f){let c=new O.constructor;for(let t in O){if(!Object.prototype.hasOwnProperty.call(O,t)||t==="proxyCache")continue;let s=O[t],a=typeof s;t==="parent"&&a==="object"?f&&(c[t]=f):t==="source"?c[t]=s:Array.isArray(s)?c[t]=s.map(e=>g(e,c)):(a==="object"&&s!==null&&(s=g(s)),c[t]=s)}return c}class E{constructor(f={}){this.raws={},this[A]=!1,this[v]=!0;for(let c in f)if(c==="nodes"){this.nodes=[];for(let t of f[c])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[c]=f[c]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let c=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let c in f)this[c]=f[c];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let c=g(this);for(let t in f)c[t]=f[t];return c}cloneAfter(f={}){let c=this.clone(f);return this.parent.insertAfter(this,c),c}cloneBefore(f={}){let c=this.clone(f);return this.parent.insertBefore(this,c),c}error(f,c={}){if(this.source){let{end:t,start:s}=this.rangeBy(c);return this.source.input.error(f,{column:s.column,line:s.line},{column:t.column,line:t.line},c)}return new l(f)}getProxyProcessor(){return{get(f,c){return c==="proxyOf"?f:c==="root"?()=>f.root().toProxy():f[c]},set(f,c,t){return f[c]===t||(f[c]=t,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&f.markDirty()),!0}}}markDirty(){if(this[A]){this[A]=!1;let f=this;for(;f=f.parent;)f[A]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f,c){let t=this.source.start;if(f.index)t=this.positionInside(f.index,c);else if(f.word){c=this.toString();let s=c.indexOf(f.word);s!==-1&&(t=this.positionInside(s,c))}return t}positionInside(f,c){let t=c||this.toString(),s=this.source.start.column,a=this.source.start.line;for(let e=0;e<f;e++)t[e]===`
20
- `?(s=1,a+=1):s+=1;return{column:s,line:a}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let c={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(f.word){let s=this.toString(),a=s.indexOf(f.word);a!==-1&&(c=this.positionInside(a,s),t=this.positionInside(a+f.word.length,s))}else f.start?c={column:f.start.column,line:f.start.line}:f.index&&(c=this.positionInside(f.index)),f.end?t={column:f.end.column,line:f.end.line}:f.endIndex?t=this.positionInside(f.endIndex):f.index&&(t=this.positionInside(f.index+1));return(t.line<c.line||t.line===c.line&&t.column<=c.column)&&(t={column:c.column+1,line:c.line}),{end:t,start:c}}raw(f,c){return new h().raw(this,f,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let c=this,t=!1;for(let s of f)s===this?t=!0:t?(this.parent.insertAfter(c,s),c=s):this.parent.insertBefore(c,s);t||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,c){let t={},s=c==null;c=c||new Map;let a=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e==="parent"||e==="proxyCache")continue;let r=this[e];if(Array.isArray(r))t[e]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON(null,c):n);else if(typeof r=="object"&&r.toJSON)t[e]=r.toJSON(null,c);else if(e==="source"){let n=c.get(r.input);n==null&&(n=a,c.set(r.input,a),a++),t[e]={end:r.end,inputId:n,start:r.start}}else t[e]=r}return s&&(t.inputs=[...c.keys()].map(e=>e.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=u){f.stringify&&(f=f.stringify);let c="";return f(this,t=>{c+=t}),c}warn(f,c,t){let s={node:this};for(let a in t)s[a]=t[a];return f.warn(c,s)}get proxyOf(){return this}}T.exports=E,E.default=E},11665:function(T,U,d){"use strict";let A=d(66808),v=d(92972),l=d(62627);function h(u,g){let E=new l(u,g),O=new v(E);try{O.parse()}catch(f){throw f}return O.root}T.exports=h,h.default=h,A.registerParse(h)},92972:function(T,U,d){"use strict";let A=d(85232),v=d(53240),l=d(91569),h=d(12650),u=d(71283),g=d(4485);const E={empty:!0,space:!0};function O(c){for(let t=c.length-1;t>=0;t--){let s=c[t],a=s[3]||s[2];if(a)return a}}class f{constructor(t){this.input=t,this.root=new u,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let s=new h;s.name=t[1].slice(1),s.name===""&&this.unnamedAtrule(s,t),this.init(s,t[2]);let a,e,r,n=!1,i=!1,o=[],y=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),a=t[0],a==="("||a==="["?y.push(a==="("?")":"]"):a==="{"&&y.length>0?y.push("}"):a===y[y.length-1]&&y.pop(),y.length===0)if(a===";"){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){i=!0;break}else if(a==="}"){if(o.length>0){for(r=o.length-1,e=o[r];e&&e[0]==="space";)e=o[--r];e&&(s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++)}this.end(t);break}else o.push(t);else o.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(s.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(s,"params",o),n&&(t=o[o.length-1],s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),i&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){let s=this.colon(t);if(s===!1)return;let a=0,e;for(let r=s-1;r>=0&&(e=t[r],!(e[0]!=="space"&&(a+=1,a===2)));r--);throw this.input.error("Missed semicolon",e[0]==="word"?e[3]+1:e[2])}colon(t){let s=0,a,e,r;for(let[n,i]of t.entries()){if(a=i,e=a[0],e==="("&&(s+=1),e===")"&&(s-=1),s===0&&e===":")if(!r)this.doubleColon(a);else{if(r[0]==="word"&&r[1]==="progid")continue;return n}r=a}return!1}comment(t){let s=new l;this.init(s,t[2]),s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++;let a=t[1].slice(2,-2);if(/^\s*$/.test(a))s.text="",s.raws.left=a,s.raws.right="";else{let e=a.match(/^(\s*)([^]*\S)(\s*)$/);s.text=e[2],s.raws.left=e[1],s.raws.right=e[3]}}createTokenizer(){this.tokenizer=v(this.input)}decl(t,s){let a=new A;this.init(a,t[0][2]);let e=t[t.length-1];for(e[0]===";"&&(this.semicolon=!0,t.pop()),a.source.end=this.getPosition(e[3]||e[2]||O(t)),a.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),a.raws.before+=t.shift()[1];for(a.source.start=this.getPosition(t[0][2]),a.prop="";t.length;){let y=t[0][0];if(y===":"||y==="space"||y==="comment")break;a.prop+=t.shift()[1]}a.raws.between="";let r;for(;t.length;)if(r=t.shift(),r[0]===":"){a.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),a.raws.between+=r[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let n=[],i;for(;t.length&&(i=t[0][0],!(i!=="space"&&i!=="comment"));)n.push(t.shift());this.precheckMissedSemicolon(t);for(let y=t.length-1;y>=0;y--){if(r=t[y],r[1].toLowerCase()==="!important"){a.important=!0;let w=this.stringFrom(t,y);w=this.spacesFromEnd(t)+w,w!==" !important"&&(a.raws.important=w);break}else if(r[1].toLowerCase()==="important"){let w=t.slice(0),C="";for(let m=y;m>0;m--){let p=w[m][0];if(C.trim().indexOf("!")===0&&p!=="space")break;C=w.pop()[1]+C}C.trim().indexOf("!")===0&&(a.important=!0,a.raws.important=C,t=w)}if(r[0]!=="space"&&r[0]!=="comment")break}t.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(a.raws.between+=n.map(y=>y[1]).join(""),n=[]),this.raw(a,"value",n.concat(t),s),a.value.includes(":")&&!s&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let s=new g;this.init(s,t[2]),s.selector="",s.raws.between="",this.current=s}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let s=this.input.fromOffset(t);return{column:s.col,line:s.line,offset:t}}init(t,s){this.current.push(t),t.source={input:this.input,start:this.getPosition(s)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let s=!1,a=null,e=!1,r=null,n=[],i=t[1].startsWith("--"),o=[],y=t;for(;y;){if(a=y[0],o.push(y),a==="("||a==="[")r||(r=y),n.push(a==="("?")":"]");else if(i&&e&&a==="{")r||(r=y),n.push("}");else if(n.length===0)if(a===";")if(e){this.decl(o,i);return}else break;else if(a==="{"){this.rule(o);return}else if(a==="}"){this.tokenizer.back(o.pop()),s=!0;break}else a===":"&&(e=!0);else a===n[n.length-1]&&(n.pop(),n.length===0&&(r=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),n.length>0&&this.unclosedBracket(r),s&&e){if(!i)for(;o.length&&(y=o[o.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,i)}else this.unknownWord(o)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,s,a,e){let r,n,i=a.length,o="",y=!0,w,C;for(let m=0;m<i;m+=1)r=a[m],n=r[0],n==="space"&&m===i-1&&!e?y=!1:n==="comment"?(C=a[m-1]?a[m-1][0]:"empty",w=a[m+1]?a[m+1][0]:"empty",!E[C]&&!E[w]?o.slice(-1)===","?y=!1:o+=r[1]:y=!1):o+=r[1];if(!y){let m=a.reduce((p,S)=>p+S[1],"");t.raws[s]={raw:m,value:o}}t[s]=o}rule(t){t.pop();let s=new g;this.init(s,t[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(s,"selector",t),this.current=s}spacesAndCommentsFromEnd(t){let s,a="";for(;t.length&&(s=t[t.length-1][0],!(s!=="space"&&s!=="comment"));)a=t.pop()[1]+a;return a}spacesAndCommentsFromStart(t){let s,a="";for(;t.length&&(s=t[0][0],!(s!=="space"&&s!=="comment"));)a+=t.shift()[1];return a}spacesFromEnd(t){let s,a="";for(;t.length&&(s=t[t.length-1][0],s==="space");)a=t.pop()[1]+a;return a}stringFrom(t,s){let a="";for(let e=s;e<t.length;e++)a+=t[e][1];return t.splice(s,t.length-s),a}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,s){throw this.input.error("At-rule without name",{offset:s[2]},{offset:s[2]+s[1].length})}}T.exports=f},13200:function(T,U,d){"use strict";let A=d(95373),v=d(85232),l=d(75673),h=d(66808),u=d(46580),g=d(23179),E=d(38853),O=d(5991),f=d(3061),c=d(91569),t=d(12650),s=d(96641),a=d(62627),e=d(11665),r=d(30416),n=d(4485),i=d(71283),o=d(83454);function y(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new u(w)}y.plugin=function(C,m){let p=!1;function S(...D){console&&console.warn&&!p&&(p=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
21
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{NODE_ENV:"production",PUBLIC_PATH:"auto"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"auto"}.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
22
- https://www.w3ctech.com/topic/2226`));let L=m(...D);return L.postcssPlugin=C,L.postcssVersion=new u().version,L}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(D,L,P){return y([S(P)]).process(D,L)},S},y.stringify=g,y.parse=e,y.fromJSON=E,y.list=r,y.comment=w=>new c(w),y.atRule=w=>new t(w),y.decl=w=>new v(w),y.rule=w=>new n(w),y.root=w=>new i(w),y.document=w=>new O(w),y.CssSyntaxError=A,y.Declaration=v,y.Container=h,y.Processor=u,y.Document=O,y.Comment=c,y.Warning=f,y.AtRule=t,y.Result=s,y.Input=a,y.Rule=n,y.Root=i,y.Node=o,l.registerPostcss(y),T.exports=y,y.default=y},49470:function(T,U,d){"use strict";var A=d(48764).lW;let{SourceMapConsumer:v,SourceMapGenerator:l}=d(59905),{existsSync:h,readFileSync:u}=d(31777),{dirname:g,join:E}=d(34017);function O(c){return A?A.from(c,"base64").toString():window.atob(c)}class f{constructor(t,s){if(s.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let a=s.map?s.map.prev:void 0,e=this.loadMap(s.from,a);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=g(this.mapFile)),e&&(this.text=e)}consumer(){return this.consumerCache||(this.consumerCache=new v(this.text)),this.consumerCache}decodeInline(t){let s=/^data:application\/json;charset=utf-?8;base64,/,a=/^data:application\/json;base64,/,e=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(e.test(t)||r.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(s.test(t)||a.test(t))return O(t.substr(RegExp.lastMatch.length));let n=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let s=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!s)return;let a=t.lastIndexOf(s.pop()),e=t.indexOf("*/",a);a>-1&&e>-1&&(this.annotation=this.getAnnotationURL(t.substring(a,e)))}loadFile(t){if(this.root=g(t),h(t))return this.mapFile=t,u(t,"utf-8").toString().trim()}loadMap(t,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let a=s(t);if(a){let e=this.loadFile(a);if(!e)throw new Error("Unable to load previous source map: "+a.toString());return e}}else{if(s instanceof v)return l.fromSourceMap(s).toString();if(s instanceof l)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let a=this.annotation;return t&&(a=E(g(t),a)),this.loadFile(a)}}}startWith(t,s){return t?t.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}T.exports=f,f.default=f},46580:function(T,U,d){"use strict";let A=d(42336),v=d(75673),l=d(5991),h=d(71283);class u{constructor(E=[]){this.version="8.4.32",this.plugins=this.normalize(E)}normalize(E){let O=[];for(let f of E)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))O=O.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)O.push(f);else if(typeof f=="function")O.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return O}process(E,O={}){return this.plugins.length===0&&typeof O.parser>"u"&&typeof O.stringifier>"u"&&typeof O.syntax>"u"?new A(this,E,O):new v(this,E,O)}use(E){return this.plugins=this.plugins.concat(this.normalize([E])),this}}T.exports=u,u.default=u,h.registerProcessor(u),l.registerProcessor(u)},96641:function(T,U,d){"use strict";let A=d(3061);class v{constructor(h,u,g){this.processor=h,this.messages=[],this.root=u,this.opts=g,this.css=void 0,this.map=void 0}toString(){return this.css}warn(h,u={}){u.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(u.plugin=this.lastPlugin.postcssPlugin);let g=new A(h,u);return this.messages.push(g),g}warnings(){return this.messages.filter(h=>h.type==="warning")}get content(){return this.css}}T.exports=v,v.default=v},71283:function(T,U,d){"use strict";let A=d(66808),v,l;class h extends A{constructor(g){super(g),this.type="root",this.nodes||(this.nodes=[])}normalize(g,E,O){let f=super.normalize(g);if(E){if(O==="prepend")this.nodes.length>1?E.raws.before=this.nodes[1].raws.before:delete E.raws.before;else if(this.first!==E)for(let c of f)c.raws.before=E.raws.before}return f}removeChild(g,E){let O=this.index(g);return!E&&O===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[O].raws.before),super.removeChild(g)}toResult(g={}){return new v(new l,this,g).stringify()}}h.registerLazyResult=u=>{v=u},h.registerProcessor=u=>{l=u},T.exports=h,h.default=h,A.registerRoot(h)},4485:function(T,U,d){"use strict";let A=d(66808),v=d(30416);class l extends A{constructor(u){super(u),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return v.comma(this.selector)}set selectors(u){let g=this.selector?this.selector.match(/,\s*/):null,E=g?g[0]:","+this.raw("between","beforeOpen");this.selector=u.join(E)}}T.exports=l,l.default=l,A.registerRule(l)},7843:function(T){"use strict";const U={after:`
23
- `,beforeClose:`
24
- `,beforeComment:`
25
- `,beforeDecl:`
26
- `,beforeOpen:" ",beforeRule:`
27
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function d(v){return v[0].toUpperCase()+v.slice(1)}class A{constructor(l){this.builder=l}atrule(l,h){let u="@"+l.name,g=l.params?this.rawValue(l,"params"):"";if(typeof l.raws.afterName<"u"?u+=l.raws.afterName:g&&(u+=" "),l.nodes)this.block(l,u+g);else{let E=(l.raws.between||"")+(h?";":"");this.builder(u+g+E,l)}}beforeAfter(l,h){let u;l.type==="decl"?u=this.raw(l,null,"beforeDecl"):l.type==="comment"?u=this.raw(l,null,"beforeComment"):h==="before"?u=this.raw(l,null,"beforeRule"):u=this.raw(l,null,"beforeClose");let g=l.parent,E=0;for(;g&&g.type!=="root";)E+=1,g=g.parent;if(u.includes(`
28
- `)){let O=this.raw(l,null,"indent");if(O.length)for(let f=0;f<E;f++)u+=O}return u}block(l,h){let u=this.raw(l,"between","beforeOpen");this.builder(h+u+"{",l,"start");let g;l.nodes&&l.nodes.length?(this.body(l),g=this.raw(l,"after")):g=this.raw(l,"after","emptyBody"),g&&this.builder(g),this.builder("}",l,"end")}body(l){let h=l.nodes.length-1;for(;h>0&&l.nodes[h].type==="comment";)h-=1;let u=this.raw(l,"semicolon");for(let g=0;g<l.nodes.length;g++){let E=l.nodes[g],O=this.raw(E,"before");O&&this.builder(O),this.stringify(E,h!==g||u)}}comment(l){let h=this.raw(l,"left","commentLeft"),u=this.raw(l,"right","commentRight");this.builder("/*"+h+l.text+u+"*/",l)}decl(l,h){let u=this.raw(l,"between","colon"),g=l.prop+u+this.rawValue(l,"value");l.important&&(g+=l.raws.important||" !important"),h&&(g+=";"),this.builder(g,l)}document(l){this.body(l)}raw(l,h,u){let g;if(u||(u=h),h&&(g=l.raws[h],typeof g<"u"))return g;let E=l.parent;if(u==="before"&&(!E||E.type==="root"&&E.first===l||E&&E.type==="document"))return"";if(!E)return U[u];let O=l.root();if(O.rawCache||(O.rawCache={}),typeof O.rawCache[u]<"u")return O.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(l,u);{let f="raw"+d(u);this[f]?g=this[f](O,l):O.walk(c=>{if(g=c.raws[h],typeof g<"u")return!1})}return typeof g>"u"&&(g=U[u]),O.rawCache[u]=g,g}rawBeforeClose(l){let h;return l.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return h=u.raws.after,h.includes(`
29
- `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawBeforeComment(l,h){let u;return l.walkComments(g=>{if(typeof g.raws.before<"u")return u=g.raws.before,u.includes(`
30
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(h,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(l,h){let u;return l.walkDecls(g=>{if(typeof g.raws.before<"u")return u=g.raws.before,u.includes(`
31
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(h,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(l){let h;return l.walk(u=>{if(u.type!=="decl"&&(h=u.raws.between,typeof h<"u"))return!1}),h}rawBeforeRule(l){let h;return l.walk(u=>{if(u.nodes&&(u.parent!==l||l.first!==u)&&typeof u.raws.before<"u")return h=u.raws.before,h.includes(`
32
- `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawColon(l){let h;return l.walkDecls(u=>{if(typeof u.raws.between<"u")return h=u.raws.between.replace(/[^\s:]/g,""),!1}),h}rawEmptyBody(l){let h;return l.walk(u=>{if(u.nodes&&u.nodes.length===0&&(h=u.raws.after,typeof h<"u"))return!1}),h}rawIndent(l){if(l.raws.indent)return l.raws.indent;let h;return l.walk(u=>{let g=u.parent;if(g&&g!==l&&g.parent&&g.parent===l&&typeof u.raws.before<"u"){let E=u.raws.before.split(`
33
- `);return h=E[E.length-1],h=h.replace(/\S/g,""),!1}}),h}rawSemicolon(l){let h;return l.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(h=u.raws.semicolon,typeof h<"u"))return!1}),h}rawValue(l,h){let u=l[h],g=l.raws[h];return g&&g.value===u?g.raw:u}root(l){this.body(l),l.raws.after&&this.builder(l.raws.after)}rule(l){this.block(l,this.rawValue(l,"selector")),l.raws.ownSemicolon&&this.builder(l.raws.ownSemicolon,l,"end")}stringify(l,h){if(!this[l.type])throw new Error("Unknown AST node type "+l.type+". Maybe you need to change PostCSS stringifier.");this[l.type](l,h)}}T.exports=A,A.default=A},23179:function(T,U,d){"use strict";let A=d(7843);function v(l,h){new A(h).stringify(l)}T.exports=v,v.default=v},58999:function(T){"use strict";T.exports.isClean=Symbol("isClean"),T.exports.my=Symbol("my")},53240:function(T){"use strict";const U="'".charCodeAt(0),d='"'.charCodeAt(0),A="\\".charCodeAt(0),v="/".charCodeAt(0),l=`
34
- `.charCodeAt(0),h=" ".charCodeAt(0),u="\f".charCodeAt(0),g=" ".charCodeAt(0),E="\r".charCodeAt(0),O="[".charCodeAt(0),f="]".charCodeAt(0),c="(".charCodeAt(0),t=")".charCodeAt(0),s="{".charCodeAt(0),a="}".charCodeAt(0),e=";".charCodeAt(0),r="*".charCodeAt(0),n=":".charCodeAt(0),i="@".charCodeAt(0),o=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,C=/[\da-f]/i;T.exports=function(p,S={}){let x=p.css.valueOf(),D=S.ignoreErrors,L,P,Z,_,K,j,$,Q,H,W,X=x.length,I=0,re=[],ee=[];function te(){return I}function ie(q){throw p.error("Unclosed "+q,I)}function oe(){return ee.length===0&&I>=X}function le(q){if(ee.length)return ee.pop();if(I>=X)return;let ne=q?q.ignoreUnclosed:!1;switch(L=x.charCodeAt(I),L){case l:case h:case g:case E:case u:{P=I;do P+=1,L=x.charCodeAt(P);while(L===h||L===l||L===g||L===E||L===u);W=["space",x.slice(I,P)],I=P-1;break}case O:case f:case s:case a:case n:case e:case t:{let b=String.fromCharCode(L);W=[b,b,I];break}case c:{if(Q=re.length?re.pop()[1]:"",H=x.charCodeAt(I+1),Q==="url"&&H!==U&&H!==d&&H!==h&&H!==l&&H!==g&&H!==u&&H!==E){P=I;do{if(j=!1,P=x.indexOf(")",P+1),P===-1)if(D||ne){P=I;break}else ie("bracket");for($=P;x.charCodeAt($-1)===A;)$-=1,j=!j}while(j);W=["brackets",x.slice(I,P+1),I,P],I=P}else P=x.indexOf(")",I+1),_=x.slice(I,P+1),P===-1||w.test(_)?W=["(","(",I]:(W=["brackets",_,I,P],I=P);break}case U:case d:{Z=L===U?"'":'"',P=I;do{if(j=!1,P=x.indexOf(Z,P+1),P===-1)if(D||ne){P=I+1;break}else ie("string");for($=P;x.charCodeAt($-1)===A;)$-=1,j=!j}while(j);W=["string",x.slice(I,P+1),I,P],I=P;break}case i:{o.lastIndex=I+1,o.test(x),o.lastIndex===0?P=x.length-1:P=o.lastIndex-2,W=["at-word",x.slice(I,P+1),I,P],I=P;break}case A:{for(P=I,K=!0;x.charCodeAt(P+1)===A;)P+=1,K=!K;if(L=x.charCodeAt(P+1),K&&L!==v&&L!==h&&L!==l&&L!==g&&L!==E&&L!==u&&(P+=1,C.test(x.charAt(P)))){for(;C.test(x.charAt(P+1));)P+=1;x.charCodeAt(P+1)===h&&(P+=1)}W=["word",x.slice(I,P+1),I,P],I=P;break}default:{L===v&&x.charCodeAt(I+1)===r?(P=x.indexOf("*/",I+2)+1,P===0&&(D||ne?P=x.length:ie("comment")),W=["comment",x.slice(I,P+1),I,P],I=P):(y.lastIndex=I+1,y.test(x),y.lastIndex===0?P=x.length-1:P=y.lastIndex-2,W=["word",x.slice(I,P+1),I,P],re.push(W),I=P);break}}return I++,W}function ae(q){ee.push(q)}return{back:ae,endOfFile:oe,nextToken:le,position:te}}},84133:function(T){"use strict";let U={};T.exports=function(A){U[A]||(U[A]=!0,typeof console<"u"&&console.warn&&console.warn(A))}},3061:function(T){"use strict";class U{constructor(A,v={}){if(this.type="warning",this.text=A,v.node&&v.node.source){let l=v.node.rangeBy(v);this.line=l.start.line,this.column=l.start.column,this.endLine=l.end.line,this.endColumn=l.end.column}for(let l in v)this[l]=v[l]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}T.exports=U,U.default=U}}]);