@nocobase/app 1.7.0-beta.8 → 1.7.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/2167.a74bd66f.async.js +58 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/npm._at_ant-design.47a729f3.async.js +141 -0
- package/dist/client/npm._at_dnd-kit.0058c596.async.js +5 -0
- package/dist/client/npm._at_formily.5f112117.async.js +100 -0
- package/dist/client/npm._at_rc-component.12d32a22.async.js +8 -0
- package/dist/client/{npm.ahooks.4b44f0c8.async.js → npm.ahooks.c5b165dc.async.js} +1 -1
- package/dist/client/npm.antd.1b1bd213.async.js +464 -0
- package/dist/client/npm.dayjs.54ff5ad9.async.js +1 -0
- package/dist/client/{npm.dompurify.d5071c22.async.js → npm.dompurify.2ca7a7c6.async.js} +1 -1
- package/dist/client/{npm.highlight.js.83fe0142.async.js → npm.highlight.js.f727dfe3.async.js} +1 -1
- package/dist/client/{npm.lodash.0ff318b3.async.js → npm.lodash.5dcc1c5e.async.js} +2 -2
- package/dist/client/{npm.mermaid.721cd79c.async.js → npm.mermaid.42f5ed21.async.js} +4 -4
- package/dist/client/npm.rc-cascader.cf6ec555.async.js +4 -0
- package/dist/client/npm.rc-image.c695cc37.async.js +1 -0
- package/dist/client/npm.rc-menu.ab059b1c.async.js +1 -0
- package/dist/client/npm.rc-picker.89eafb74.async.js +22 -0
- package/dist/client/npm.rc-select.6b32e443.async.js +3 -0
- package/dist/client/npm.rc-slider.d2d511ab.async.js +1 -0
- package/dist/client/npm.rc-table.c5aa8a0d.async.js +22 -0
- package/dist/client/npm.rc-tree-select.5597dcbf.async.js +5 -0
- package/dist/client/npm.rc-tree.a1cc1b34.async.js +1 -0
- package/dist/client/{npm.sanitize-html.4386b2d9.async.js → npm.sanitize-html.5dd1860c.async.js} +4 -4
- package/dist/client/p__index.2fd148ac.async.js +1600 -0
- package/dist/client/umi.021ad53c.js +63 -0
- package/package.json +6 -6
- package/dist/client/4750.667c5051.async.js +0 -69
- package/dist/client/npm._at_ant-design.5ba41bf5.async.js +0 -139
- package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +0 -9
- package/dist/client/npm._at_formily.07fa921d.async.js +0 -96
- package/dist/client/npm._at_rc-component.43f95f42.async.js +0 -5
- package/dist/client/npm.antd.483a9a61.async.js +0 -440
- package/dist/client/npm.dayjs.0a5fd152.async.js +0 -1
- package/dist/client/npm.rc-cascader.04b47add.async.js +0 -1
- package/dist/client/npm.rc-menu.adf5ade6.async.js +0 -1
- package/dist/client/npm.rc-picker.9e629062.async.js +0 -1
- package/dist/client/npm.rc-select.7c36e54e.async.js +0 -3
- package/dist/client/npm.rc-table.a153e021.async.js +0 -1
- package/dist/client/npm.rc-tree.f61b7d87.async.js +0 -1
- package/dist/client/p__index.664cb0f3.async.js +0 -1586
- package/dist/client/umi.31a3c863.js +0 -60
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[5420],{86128:function(Ge,ke,s){s.d(ke,{Z:function(){return Y}});var pe=s(87462),L=s(4942),q=s(1413),Le=s(97685),Ae=s(91),O=s(67294),Z=s(93967),re=s.n(Z),fe=s(64217),u=s(27822),ee=function(t){for(var f=t.prefixCls,h=t.level,y=t.isStart,C=t.isEnd,P="".concat(f,"-indent-unit"),I=[],m=0;m<h;m+=1)I.push(O.createElement("span",{key:m,className:re()(P,(0,L.Z)((0,L.Z)({},"".concat(P,"-start"),y[m]),"".concat(P,"-end"),C[m]))}));return O.createElement("span",{"aria-hidden":"true",className:"".concat(f,"-indent")},I)},z=O.memo(ee),G=s(35381),J=s(1089),ve=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],E="open",ce="close",he="---",te=function(t){var f,h,y,C=t.eventKey,P=t.className,I=t.style,m=t.dragOver,Q=t.dragOverGapTop,de=t.dragOverGapBottom,_=t.isLeaf,X=t.isStart,ne=t.isEnd,U=t.expanded,ie=t.selected,ae=t.checked,oe=t.halfChecked,ue=t.loading,B=t.domRef,De=t.active,le=t.data,Me=t.onMouseMove,Se=t.selectable,Fe=(0,Ae.Z)(t,ve),o=O.useContext(u.k),T=O.useContext(u.y),Re=O.useRef(null),be=O.useState(!1),Oe=(0,Le.Z)(be,2),Ze=Oe[0],Te=Oe[1],Ee=!!(o.disabled||t.disabled||(f=T.nodeDisabled)!==null&&f!==void 0&&f.call(T,le)),i=O.useMemo(function(){return!o.checkable||t.checkable===!1?!1:o.checkable},[o.checkable,t.checkable]),H=function(K){Ee||o.onNodeSelect(K,(0,J.F)(t))},w=function(K){Ee||!i||t.disableCheckbox||o.onNodeCheck(K,(0,J.F)(t),!ae)},e=O.useMemo(function(){return typeof Se=="boolean"?Se:o.selectable},[Se,o.selectable]),v=function(K){o.onNodeClick(K,(0,J.F)(t)),e?H(K):w(K)},x=function(K){o.onNodeDoubleClick(K,(0,J.F)(t))},$=function(K){o.onNodeMouseEnter(K,(0,J.F)(t))},n=function(K){o.onNodeMouseLeave(K,(0,J.F)(t))},d=function(K){o.onNodeContextMenu(K,(0,J.F)(t))},a=O.useMemo(function(){return!!(o.draggable&&(!o.draggable.nodeDraggable||o.draggable.nodeDraggable(le)))},[o.draggable,le]),l=function(K){K.stopPropagation(),Te(!0),o.onNodeDragStart(K,t);try{K.dataTransfer.setData("text/plain","")}catch{}},g=function(K){K.preventDefault(),K.stopPropagation(),o.onNodeDragEnter(K,t)},k=function(K){K.preventDefault(),K.stopPropagation(),o.onNodeDragOver(K,t)},N=function(K){K.stopPropagation(),o.onNodeDragLeave(K,t)},D=function(K){K.stopPropagation(),Te(!1),o.onNodeDragEnd(K,t)},R=function(K){K.preventDefault(),K.stopPropagation(),Te(!1),o.onNodeDrop(K,t)},c=function(K){ue||o.onNodeExpand(K,(0,J.F)(t))},p=O.useMemo(function(){var W=(0,G.Z)(o.keyEntities,C)||{},K=W.children;return!!(K||[]).length},[o.keyEntities,C]),M=O.useMemo(function(){return _===!1?!1:_||!o.loadData&&!p||o.loadData&&t.loaded&&!p},[_,o.loadData,p,t.loaded]);O.useEffect(function(){ue||typeof o.loadData=="function"&&U&&!M&&!t.loaded&&o.onNodeLoad((0,J.F)(t))},[ue,o.loadData,o.onNodeLoad,U,M,t]);var S=O.useMemo(function(){var W;return(W=o.draggable)!==null&&W!==void 0&&W.icon?O.createElement("span",{className:"".concat(o.prefixCls,"-draggable-icon")},o.draggable.icon):null},[o.draggable]),b=function(K){var Ne=t.switcherIcon||o.switcherIcon;return typeof Ne=="function"?Ne((0,q.Z)((0,q.Z)({},t),{},{isLeaf:K})):Ne},j=function(){if(M){var K=b(!0);return K!==!1?O.createElement("span",{className:re()("".concat(o.prefixCls,"-switcher"),"".concat(o.prefixCls,"-switcher-noop"))},K):null}var Ne=b(!1);return Ne!==!1?O.createElement("span",{onClick:c,className:re()("".concat(o.prefixCls,"-switcher"),"".concat(o.prefixCls,"-switcher_").concat(U?E:ce))},Ne):null},F=O.useMemo(function(){if(!i)return null;var W=typeof i!="boolean"?i:null;return O.createElement("span",{className:re()("".concat(o.prefixCls,"-checkbox"),(0,L.Z)((0,L.Z)((0,L.Z)({},"".concat(o.prefixCls,"-checkbox-checked"),ae),"".concat(o.prefixCls,"-checkbox-indeterminate"),!ae&&oe),"".concat(o.prefixCls,"-checkbox-disabled"),Ee||t.disableCheckbox)),onClick:w,role:"checkbox","aria-checked":oe?"mixed":ae,"aria-disabled":Ee||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},W)},[i,ae,oe,Ee,t.disableCheckbox,t.title]),A=O.useMemo(function(){return M?null:U?E:ce},[M,U]),V=O.useMemo(function(){return O.createElement("span",{className:re()("".concat(o.prefixCls,"-iconEle"),"".concat(o.prefixCls,"-icon__").concat(A||"docu"),(0,L.Z)({},"".concat(o.prefixCls,"-icon_loading"),ue))})},[o.prefixCls,A,ue]),se=O.useMemo(function(){var W=!!o.draggable,K=!t.disabled&&W&&o.dragOverNodeKey===C;return K?o.dropIndicatorRender({dropPosition:o.dropPosition,dropLevelOffset:o.dropLevelOffset,indent:o.indent,prefixCls:o.prefixCls,direction:o.direction}):null},[o.dropPosition,o.dropLevelOffset,o.indent,o.prefixCls,o.direction,o.draggable,o.dragOverNodeKey,o.dropIndicatorRender]),Ke=O.useMemo(function(){var W=t.title,K=W===void 0?he:W,Ne="".concat(o.prefixCls,"-node-content-wrapper"),Be;if(o.showIcon){var we=t.icon||o.icon;Be=we?O.createElement("span",{className:re()("".concat(o.prefixCls,"-iconEle"),"".concat(o.prefixCls,"-icon__customize"))},typeof we=="function"?we(t):we):V}else o.loadData&&ue&&(Be=V);var $e;return typeof K=="function"?$e=K(le):o.titleRender?$e=o.titleRender(le):$e=K,O.createElement("span",{ref:Re,title:typeof K=="string"?K:"",className:re()(Ne,"".concat(Ne,"-").concat(A||"normal"),(0,L.Z)({},"".concat(o.prefixCls,"-node-selected"),!Ee&&(ie||Ze))),onMouseEnter:$,onMouseLeave:n,onContextMenu:d,onClick:v,onDoubleClick:x},Be,O.createElement("span",{className:"".concat(o.prefixCls,"-title")},$e),se)},[o.prefixCls,o.showIcon,t,o.icon,V,o.titleRender,le,A,$,n,d,v,x]),ge=(0,fe.Z)(Fe,{aria:!0,data:!0}),me=(0,G.Z)(o.keyEntities,C)||{},xe=me.level,Ce=ne[ne.length-1],Pe=!Ee&&a,We=o.draggingNodeKey===C,Ie=Se!==void 0?{"aria-selected":!!Se}:void 0;return O.createElement("div",(0,pe.Z)({ref:B,role:"treeitem","aria-expanded":_?void 0:U,className:re()(P,"".concat(o.prefixCls,"-treenode"),(y={},(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)(y,"".concat(o.prefixCls,"-treenode-disabled"),Ee),"".concat(o.prefixCls,"-treenode-switcher-").concat(U?"open":"close"),!_),"".concat(o.prefixCls,"-treenode-checkbox-checked"),ae),"".concat(o.prefixCls,"-treenode-checkbox-indeterminate"),oe),"".concat(o.prefixCls,"-treenode-selected"),ie),"".concat(o.prefixCls,"-treenode-loading"),ue),"".concat(o.prefixCls,"-treenode-active"),De),"".concat(o.prefixCls,"-treenode-leaf-last"),Ce),"".concat(o.prefixCls,"-treenode-draggable"),a),"dragging",We),(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)(y,"drop-target",o.dropTargetKey===C),"drop-container",o.dropContainerKey===C),"drag-over",!Ee&&m),"drag-over-gap-top",!Ee&&Q),"drag-over-gap-bottom",!Ee&&de),"filter-node",(h=o.filterTreeNode)===null||h===void 0?void 0:h.call(o,(0,J.F)(t))),"".concat(o.prefixCls,"-treenode-leaf"),M))),style:I,draggable:Pe,onDragStart:Pe?l:void 0,onDragEnter:a?g:void 0,onDragOver:a?k:void 0,onDragLeave:a?N:void 0,onDrop:a?R:void 0,onDragEnd:a?D:void 0,onMouseMove:Me},Ie,ge),O.createElement(z,{prefixCls:o.prefixCls,level:xe,isStart:X,isEnd:ne}),S,j(),F,Ke)};te.isTreeNode=1;var Y=te},27822:function(Ge,ke,s){s.d(ke,{k:function(){return L},y:function(){return q}});var pe=s(67294),L=pe.createContext(null),q=pe.createContext({})},99814:function(Ge,ke,s){s.d(ke,{OF:function(){return C.Z},y6:function(){return ce.y},ZP:function(){return Ee}});var pe=s(87462),L=s(71002),q=s(1413),Le=s(74902),Ae=s(15671),O=s(43144),Z=s(97326),re=s(32531),fe=s(29388),u=s(4942),ee=s(93967),z=s.n(ee),G=s(15105),J=s(64217),ve=s(80334),E=s(67294),ce=s(27822),he=function(H){var w=H.dropPosition,e=H.dropLevelOffset,v=H.indent,x={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(w){case-1:x.top=0,x.left=-e*v;break;case 1:x.bottom=0,x.left=-e*v;break;case 0:x.bottom=0,x.left=v;break}return E.createElement("div",{style:x})},te=he,Y=s(36459),r=s(97685),t=s(91),f=s(8410),h=s(85344),y=s(82225),C=s(86128);function P(i,H){var w=E.useState(!1),e=(0,r.Z)(w,2),v=e[0],x=e[1];(0,f.Z)(function(){if(v)return i(),function(){H()}},[v]),(0,f.Z)(function(){return x(!0),function(){x(!1)}},[])}var I=P,m=s(1089),Q=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],de=E.forwardRef(function(i,H){var w=i.className,e=i.style,v=i.motion,x=i.motionNodes,$=i.motionType,n=i.onMotionStart,d=i.onMotionEnd,a=i.active,l=i.treeNodeRequiredProps,g=(0,t.Z)(i,Q),k=E.useState(!0),N=(0,r.Z)(k,2),D=N[0],R=N[1],c=E.useContext(ce.k),p=c.prefixCls,M=x&&$!=="hide";(0,f.Z)(function(){x&&M!==D&&R(M)},[x]);var S=function(){x&&n()},b=E.useRef(!1),j=function(){x&&!b.current&&(b.current=!0,d())};I(S,j);var F=function(V){M===V&&j()};return x?E.createElement(y.ZP,(0,pe.Z)({ref:H,visible:D},v,{motionAppear:$==="show",onVisibleChanged:F}),function(A,V){var se=A.className,Ke=A.style;return E.createElement("div",{ref:V,className:z()("".concat(p,"-treenode-motion"),se),style:Ke},x.map(function(ge){var me=Object.assign({},((0,Y.Z)(ge.data),ge.data)),xe=ge.title,Ce=ge.key,Pe=ge.isStart,We=ge.isEnd;delete me.children;var Ie=(0,m.H8)(Ce,l);return E.createElement(C.Z,(0,pe.Z)({},me,Ie,{title:xe,active:a,data:ge.data,key:Ce,isStart:Pe,isEnd:We}))}))}):E.createElement(C.Z,(0,pe.Z)({domRef:H,className:w,style:e},g,{active:a}))}),_=de;function X(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],w=i.length,e=H.length;if(Math.abs(w-e)!==1)return{add:!1,key:null};function v(x,$){var n=new Map;x.forEach(function(a){n.set(a,!0)});var d=$.filter(function(a){return!n.has(a)});return d.length===1?d[0]:null}return w<e?{add:!0,key:v(i,H)}:{add:!1,key:v(H,i)}}function ne(i,H,w){var e=i.findIndex(function(n){return n.key===w}),v=i[e+1],x=H.findIndex(function(n){return n.key===w});if(v){var $=H.findIndex(function(n){return n.key===v.key});return H.slice(x+1,$)}return H.slice(x+1)}var U=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ie={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ae=function(){},oe="RC_TREE_MOTION_".concat(Math.random()),ue={key:oe},B={key:oe,level:0,index:0,pos:"0",node:ue,nodes:[ue]},De={parent:null,children:[],pos:B.pos,data:ue,title:null,key:oe,isStart:[],isEnd:[]};function le(i,H,w,e){return H===!1||!w?i:i.slice(0,Math.ceil(w/e)+1)}function Me(i){var H=i.key,w=i.pos;return(0,m.km)(H,w)}function Se(i){for(var H=String(i.data.key),w=i;w.parent;)w=w.parent,H="".concat(w.data.key," > ").concat(H);return H}var Fe=E.forwardRef(function(i,H){var w=i.prefixCls,e=i.data,v=i.selectable,x=i.checkable,$=i.expandedKeys,n=i.selectedKeys,d=i.checkedKeys,a=i.loadedKeys,l=i.loadingKeys,g=i.halfCheckedKeys,k=i.keyEntities,N=i.disabled,D=i.dragging,R=i.dragOverNodeKey,c=i.dropPosition,p=i.motion,M=i.height,S=i.itemHeight,b=i.virtual,j=i.scrollWidth,F=i.focusable,A=i.activeItem,V=i.focused,se=i.tabIndex,Ke=i.onKeyDown,ge=i.onFocus,me=i.onBlur,xe=i.onActiveChange,Ce=i.onListChangeStart,Pe=i.onListChangeEnd,We=(0,t.Z)(i,U),Ie=E.useRef(null),W=E.useRef(null);E.useImperativeHandle(H,function(){return{scrollTo:function(Ue){Ie.current.scrollTo(Ue)},getIndentWidth:function(){return W.current.offsetWidth}}});var K=E.useState($),Ne=(0,r.Z)(K,2),Be=Ne[0],we=Ne[1],$e=E.useState(e),Qe=(0,r.Z)($e,2),He=Qe[0],_e=Qe[1],at=E.useState(e),qe=(0,r.Z)(at,2),rt=qe[0],Ve=qe[1],ze=E.useState([]),et=(0,r.Z)(ze,2),ft=et[0],ot=et[1],vt=E.useState(null),st=(0,r.Z)(vt,2),gt=st[0],dt=st[1],ct=E.useRef(e);ct.current=e;function it(){var ye=ct.current;_e(ye),Ve(ye),ot([]),dt(null),Pe()}(0,f.Z)(function(){we($);var ye=X(Be,$);if(ye.key!==null)if(ye.add){var Ue=He.findIndex(function(Xe){var Je=Xe.key;return Je===ye.key}),je=le(ne(He,e,ye.key),b,M,S),tt=He.slice();tt.splice(Ue+1,0,De),Ve(tt),ot(je),dt("show")}else{var Ye=e.findIndex(function(Xe){var Je=Xe.key;return Je===ye.key}),lt=le(ne(e,He,ye.key),b,M,S),nt=e.slice();nt.splice(Ye+1,0,De),Ve(nt),ot(lt),dt("hide")}else He!==e&&(_e(e),Ve(e))},[$,e]),E.useEffect(function(){D||it()},[D]);var yt=p?rt:e,ut={expandedKeys:$,selectedKeys:n,loadedKeys:a,loadingKeys:l,checkedKeys:d,halfCheckedKeys:g,dragOverNodeKey:R,dropPosition:c,keyEntities:k};return E.createElement(E.Fragment,null,V&&A&&E.createElement("span",{style:ie,"aria-live":"assertive"},Se(A)),E.createElement("div",null,E.createElement("input",{style:ie,disabled:F===!1||N,tabIndex:F!==!1?se:null,onKeyDown:Ke,onFocus:ge,onBlur:me,value:"",onChange:ae,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(w,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(w,"-indent")},E.createElement("div",{ref:W,className:"".concat(w,"-indent-unit")}))),E.createElement(h.Z,(0,pe.Z)({},We,{data:yt,itemKey:Me,height:M,fullHeight:!1,virtual:b,itemHeight:S,scrollWidth:j,prefixCls:"".concat(w,"-list"),ref:Ie,role:"tree",onVisibleChange:function(Ue){Ue.every(function(je){return Me(je)!==oe})&&it()}}),function(ye){var Ue=ye.pos,je=Object.assign({},((0,Y.Z)(ye.data),ye.data)),tt=ye.title,Ye=ye.key,lt=ye.isStart,nt=ye.isEnd,Xe=(0,m.km)(Ye,Ue);delete je.key,delete je.children;var Je=(0,m.H8)(Xe,ut);return E.createElement(_,(0,pe.Z)({},je,Je,{title:tt,active:!!A&&Ye===A.key,pos:Ue,data:ye.data,isStart:lt,isEnd:nt,motion:p,motionNodes:Ye===oe?ft:null,motionType:gt,onMotionStart:Ce,onMotionEnd:it,treeNodeRequiredProps:ut,onMouseMove:function(){xe(null)}}))}))}),o=Fe,T=s(10225),Re=s(17341),be=s(35381),Oe=10,Ze=function(i){(0,re.Z)(w,i);var H=(0,fe.Z)(w);function w(){var e;(0,Ae.Z)(this,w);for(var v=arguments.length,x=new Array(v),$=0;$<v;$++)x[$]=arguments[$];return e=H.call.apply(H,[this].concat(x)),(0,u.Z)((0,Z.Z)(e),"destroyed",!1),(0,u.Z)((0,Z.Z)(e),"delayedDragEnterLogic",void 0),(0,u.Z)((0,Z.Z)(e),"loadingRetryTimes",{}),(0,u.Z)((0,Z.Z)(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,m.w$)()}),(0,u.Z)((0,Z.Z)(e),"dragStartMousePosition",null),(0,u.Z)((0,Z.Z)(e),"dragNodeProps",null),(0,u.Z)((0,Z.Z)(e),"currentMouseOverDroppableNodeKey",null),(0,u.Z)((0,Z.Z)(e),"listRef",E.createRef()),(0,u.Z)((0,Z.Z)(e),"onNodeDragStart",function(n,d){var a=e.state,l=a.expandedKeys,g=a.keyEntities,k=e.props.onDragStart,N=d.eventKey;e.dragNodeProps=d,e.dragStartMousePosition={x:n.clientX,y:n.clientY};var D=(0,T._5)(l,N);e.setState({draggingNodeKey:N,dragChildrenKeys:(0,T.wA)(N,g),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(D),window.addEventListener("dragend",e.onWindowDragEnd),k==null||k({event:n,node:(0,m.F)(d)})}),(0,u.Z)((0,Z.Z)(e),"onNodeDragEnter",function(n,d){var a=e.state,l=a.expandedKeys,g=a.keyEntities,k=a.dragChildrenKeys,N=a.flattenNodes,D=a.indent,R=e.props,c=R.onDragEnter,p=R.onExpand,M=R.allowDrop,S=R.direction,b=d.pos,j=d.eventKey;if(e.currentMouseOverDroppableNodeKey!==j&&(e.currentMouseOverDroppableNodeKey=j),!e.dragNodeProps){e.resetDragState();return}var F=(0,T.OM)(n,e.dragNodeProps,d,D,e.dragStartMousePosition,M,N,g,l,S),A=F.dropPosition,V=F.dropLevelOffset,se=F.dropTargetKey,Ke=F.dropContainerKey,ge=F.dropTargetPos,me=F.dropAllowed,xe=F.dragOverNodeKey;if(k.includes(se)||!me){e.resetDragState();return}if(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(Ce){clearTimeout(e.delayedDragEnterLogic[Ce])}),e.dragNodeProps.eventKey!==d.eventKey&&(n.persist(),e.delayedDragEnterLogic[b]=window.setTimeout(function(){if(e.state.draggingNodeKey!==null){var Ce=(0,Le.Z)(l),Pe=(0,be.Z)(g,d.eventKey);Pe&&(Pe.children||[]).length&&(Ce=(0,T.L0)(l,d.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(Ce),p==null||p(Ce,{node:(0,m.F)(d),expanded:!0,nativeEvent:n.nativeEvent})}},800)),e.dragNodeProps.eventKey===se&&V===0){e.resetDragState();return}e.setState({dragOverNodeKey:xe,dropPosition:A,dropLevelOffset:V,dropTargetKey:se,dropContainerKey:Ke,dropTargetPos:ge,dropAllowed:me}),c==null||c({event:n,node:(0,m.F)(d),expandedKeys:l})}),(0,u.Z)((0,Z.Z)(e),"onNodeDragOver",function(n,d){var a=e.state,l=a.dragChildrenKeys,g=a.flattenNodes,k=a.keyEntities,N=a.expandedKeys,D=a.indent,R=e.props,c=R.onDragOver,p=R.allowDrop,M=R.direction;if(e.dragNodeProps){var S=(0,T.OM)(n,e.dragNodeProps,d,D,e.dragStartMousePosition,p,g,k,N,M),b=S.dropPosition,j=S.dropLevelOffset,F=S.dropTargetKey,A=S.dropContainerKey,V=S.dropTargetPos,se=S.dropAllowed,Ke=S.dragOverNodeKey;l.includes(F)||!se||(e.dragNodeProps.eventKey===F&&j===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():b===e.state.dropPosition&&j===e.state.dropLevelOffset&&F===e.state.dropTargetKey&&A===e.state.dropContainerKey&&V===e.state.dropTargetPos&&se===e.state.dropAllowed&&Ke===e.state.dragOverNodeKey||e.setState({dropPosition:b,dropLevelOffset:j,dropTargetKey:F,dropContainerKey:A,dropTargetPos:V,dropAllowed:se,dragOverNodeKey:Ke}),c==null||c({event:n,node:(0,m.F)(d)}))}}),(0,u.Z)((0,Z.Z)(e),"onNodeDragLeave",function(n,d){e.currentMouseOverDroppableNodeKey===d.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var a=e.props.onDragLeave;a==null||a({event:n,node:(0,m.F)(d)})}),(0,u.Z)((0,Z.Z)(e),"onWindowDragEnd",function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)}),(0,u.Z)((0,Z.Z)(e),"onNodeDragEnd",function(n,d){var a=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),a==null||a({event:n,node:(0,m.F)(d)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)}),(0,u.Z)((0,Z.Z)(e),"onNodeDrop",function(n,d){var a,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=e.state,k=g.dragChildrenKeys,N=g.dropPosition,D=g.dropTargetKey,R=g.dropTargetPos,c=g.dropAllowed;if(c){var p=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),D!==null){var M=(0,q.Z)((0,q.Z)({},(0,m.H8)(D,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===D,data:(0,be.Z)(e.state.keyEntities,D).node}),S=k.includes(D);(0,ve.ZP)(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var b=(0,T.yx)(R),j={event:n,node:(0,m.F)(M),dragNode:e.dragNodeProps?(0,m.F)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(k),dropToGap:N!==0,dropPosition:N+Number(b[b.length-1])};l||p==null||p(j),e.dragNodeProps=null}}}),(0,u.Z)((0,Z.Z)(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}),(0,u.Z)((0,Z.Z)(e),"triggerExpandActionExpand",function(n,d){var a=e.state,l=a.expandedKeys,g=a.flattenNodes,k=d.expanded,N=d.key,D=d.isLeaf;if(!(D||n.shiftKey||n.metaKey||n.ctrlKey)){var R=g.filter(function(p){return p.key===N})[0],c=(0,m.F)((0,q.Z)((0,q.Z)({},(0,m.H8)(N,e.getTreeNodeRequiredProps())),{},{data:R.data}));e.setExpandedKeys(k?(0,T._5)(l,N):(0,T.L0)(l,N)),e.onNodeExpand(n,c)}}),(0,u.Z)((0,Z.Z)(e),"onNodeClick",function(n,d){var a=e.props,l=a.onClick,g=a.expandAction;g==="click"&&e.triggerExpandActionExpand(n,d),l==null||l(n,d)}),(0,u.Z)((0,Z.Z)(e),"onNodeDoubleClick",function(n,d){var a=e.props,l=a.onDoubleClick,g=a.expandAction;g==="doubleClick"&&e.triggerExpandActionExpand(n,d),l==null||l(n,d)}),(0,u.Z)((0,Z.Z)(e),"onNodeSelect",function(n,d){var a=e.state.selectedKeys,l=e.state,g=l.keyEntities,k=l.fieldNames,N=e.props,D=N.onSelect,R=N.multiple,c=d.selected,p=d[k.key],M=!c;M?R?a=(0,T.L0)(a,p):a=[p]:a=(0,T._5)(a,p);var S=a.map(function(b){var j=(0,be.Z)(g,b);return j?j.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:a}),D==null||D(a,{event:"select",selected:M,node:d,selectedNodes:S,nativeEvent:n.nativeEvent})}),(0,u.Z)((0,Z.Z)(e),"onNodeCheck",function(n,d,a){var l=e.state,g=l.keyEntities,k=l.checkedKeys,N=l.halfCheckedKeys,D=e.props,R=D.checkStrictly,c=D.onCheck,p=d.key,M,S={event:"check",node:d,checked:a,nativeEvent:n.nativeEvent};if(R){var b=a?(0,T.L0)(k,p):(0,T._5)(k,p),j=(0,T._5)(N,p);M={checked:b,halfChecked:j},S.checkedNodes=b.map(function(ge){return(0,be.Z)(g,ge)}).filter(Boolean).map(function(ge){return ge.node}),e.setUncontrolledState({checkedKeys:b})}else{var F=(0,Re.S)([].concat((0,Le.Z)(k),[p]),!0,g),A=F.checkedKeys,V=F.halfCheckedKeys;if(!a){var se=new Set(A);se.delete(p);var Ke=(0,Re.S)(Array.from(se),{checked:!1,halfCheckedKeys:V},g);A=Ke.checkedKeys,V=Ke.halfCheckedKeys}M=A,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=V,A.forEach(function(ge){var me=(0,be.Z)(g,ge);if(me){var xe=me.node,Ce=me.pos;S.checkedNodes.push(xe),S.checkedNodesPositions.push({node:xe,pos:Ce})}}),e.setUncontrolledState({checkedKeys:A},!1,{halfCheckedKeys:V})}c==null||c(M,S)}),(0,u.Z)((0,Z.Z)(e),"onNodeLoad",function(n){var d,a=n.key,l=e.state.keyEntities,g=(0,be.Z)(l,a);if(!(g!=null&&(d=g.children)!==null&&d!==void 0&&d.length)){var k=new Promise(function(N,D){e.setState(function(R){var c=R.loadedKeys,p=c===void 0?[]:c,M=R.loadingKeys,S=M===void 0?[]:M,b=e.props,j=b.loadData,F=b.onLoad;if(!j||p.includes(a)||S.includes(a))return null;var A=j(n);return A.then(function(){var V=e.state.loadedKeys,se=(0,T.L0)(V,a);F==null||F(se,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:se}),e.setState(function(Ke){return{loadingKeys:(0,T._5)(Ke.loadingKeys,a)}}),N()}).catch(function(V){if(e.setState(function(Ke){return{loadingKeys:(0,T._5)(Ke.loadingKeys,a)}}),e.loadingRetryTimes[a]=(e.loadingRetryTimes[a]||0)+1,e.loadingRetryTimes[a]>=Oe){var se=e.state.loadedKeys;(0,ve.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,T.L0)(se,a)}),N()}D(V)}),{loadingKeys:(0,T.L0)(S,a)}})});return k.catch(function(){}),k}}),(0,u.Z)((0,Z.Z)(e),"onNodeMouseEnter",function(n,d){var a=e.props.onMouseEnter;a==null||a({event:n,node:d})}),(0,u.Z)((0,Z.Z)(e),"onNodeMouseLeave",function(n,d){var a=e.props.onMouseLeave;a==null||a({event:n,node:d})}),(0,u.Z)((0,Z.Z)(e),"onNodeContextMenu",function(n,d){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:d}))}),(0,u.Z)((0,Z.Z)(e),"onFocus",function(){var n=e.props.onFocus;e.setState({focused:!0});for(var d=arguments.length,a=new Array(d),l=0;l<d;l++)a[l]=arguments[l];n==null||n.apply(void 0,a)}),(0,u.Z)((0,Z.Z)(e),"onBlur",function(){var n=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var d=arguments.length,a=new Array(d),l=0;l<d;l++)a[l]=arguments[l];n==null||n.apply(void 0,a)}),(0,u.Z)((0,Z.Z)(e),"getTreeNodeRequiredProps",function(){var n=e.state,d=n.expandedKeys,a=n.selectedKeys,l=n.loadedKeys,g=n.loadingKeys,k=n.checkedKeys,N=n.halfCheckedKeys,D=n.dragOverNodeKey,R=n.dropPosition,c=n.keyEntities;return{expandedKeys:d||[],selectedKeys:a||[],loadedKeys:l||[],loadingKeys:g||[],checkedKeys:k||[],halfCheckedKeys:N||[],dragOverNodeKey:D,dropPosition:R,keyEntities:c}}),(0,u.Z)((0,Z.Z)(e),"setExpandedKeys",function(n){var d=e.state,a=d.treeData,l=d.fieldNames,g=(0,m.oH)(a,n,l);e.setUncontrolledState({expandedKeys:n,flattenNodes:g},!0)}),(0,u.Z)((0,Z.Z)(e),"onNodeExpand",function(n,d){var a=e.state.expandedKeys,l=e.state,g=l.listChanging,k=l.fieldNames,N=e.props,D=N.onExpand,R=N.loadData,c=d.expanded,p=d[k.key];if(!g){var M=a.includes(p),S=!c;if((0,ve.ZP)(c&&M||!c&&!M,"Expand state not sync with index check"),a=S?(0,T.L0)(a,p):(0,T._5)(a,p),e.setExpandedKeys(a),D==null||D(a,{node:d,expanded:S,nativeEvent:n.nativeEvent}),S&&R){var b=e.onNodeLoad(d);b&&b.then(function(){var j=(0,m.oH)(e.state.treeData,a,k);e.setUncontrolledState({flattenNodes:j})}).catch(function(){var j=e.state.expandedKeys,F=(0,T._5)(j,p);e.setExpandedKeys(F)})}}}),(0,u.Z)((0,Z.Z)(e),"onListChangeStart",function(){e.setUncontrolledState({listChanging:!0})}),(0,u.Z)((0,Z.Z)(e),"onListChangeEnd",function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})}),(0,u.Z)((0,Z.Z)(e),"onActiveChange",function(n){var d=e.state.activeKey,a=e.props,l=a.onActiveChange,g=a.itemScrollOffset,k=g===void 0?0:g;d!==n&&(e.setState({activeKey:n}),n!==null&&e.scrollTo({key:n,offset:k}),l==null||l(n))}),(0,u.Z)((0,Z.Z)(e),"getActiveItem",function(){var n=e.state,d=n.activeKey,a=n.flattenNodes;return d===null?null:a.find(function(l){var g=l.key;return g===d})||null}),(0,u.Z)((0,Z.Z)(e),"offsetActiveKey",function(n){var d=e.state,a=d.flattenNodes,l=d.activeKey,g=a.findIndex(function(D){var R=D.key;return R===l});g===-1&&n<0&&(g=a.length),g=(g+n+a.length)%a.length;var k=a[g];if(k){var N=k.key;e.onActiveChange(N)}else e.onActiveChange(null)}),(0,u.Z)((0,Z.Z)(e),"onKeyDown",function(n){var d=e.state,a=d.activeKey,l=d.expandedKeys,g=d.checkedKeys,k=d.fieldNames,N=e.props,D=N.onKeyDown,R=N.checkable,c=N.selectable;switch(n.which){case G.Z.UP:{e.offsetActiveKey(-1),n.preventDefault();break}case G.Z.DOWN:{e.offsetActiveKey(1),n.preventDefault();break}}var p=e.getActiveItem();if(p&&p.data){var M=e.getTreeNodeRequiredProps(),S=p.data.isLeaf===!1||!!(p.data[k.children]||[]).length,b=(0,m.F)((0,q.Z)((0,q.Z)({},(0,m.H8)(a,M)),{},{data:p.data,active:!0}));switch(n.which){case G.Z.LEFT:{S&&l.includes(a)?e.onNodeExpand({},b):p.parent&&e.onActiveChange(p.parent.key),n.preventDefault();break}case G.Z.RIGHT:{S&&!l.includes(a)?e.onNodeExpand({},b):p.children&&p.children.length&&e.onActiveChange(p.children[0].key),n.preventDefault();break}case G.Z.ENTER:case G.Z.SPACE:{R&&!b.disabled&&b.checkable!==!1&&!b.disableCheckbox?e.onNodeCheck({},b,!g.includes(a)):!R&&c&&!b.disabled&&b.selectable!==!1&&e.onNodeSelect({},b);break}}}D==null||D(n)}),(0,u.Z)((0,Z.Z)(e),"setUncontrolledState",function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var l=!1,g=!0,k={};Object.keys(n).forEach(function(N){if(e.props.hasOwnProperty(N)){g=!1;return}l=!0,k[N]=n[N]}),l&&(!d||g)&&e.setState((0,q.Z)((0,q.Z)({},k),a))}}),(0,u.Z)((0,Z.Z)(e),"scrollTo",function(n){e.listRef.current.scrollTo(n)}),e}return(0,O.Z)(w,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var v=this.props,x=v.activeKey,$=v.itemScrollOffset,n=$===void 0?0:$;x!==void 0&&x!==this.state.activeKey&&(this.setState({activeKey:x}),x!==null&&this.scrollTo({key:x,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 v=this.state,x=v.focused,$=v.flattenNodes,n=v.keyEntities,d=v.draggingNodeKey,a=v.activeKey,l=v.dropLevelOffset,g=v.dropContainerKey,k=v.dropTargetKey,N=v.dropPosition,D=v.dragOverNodeKey,R=v.indent,c=this.props,p=c.prefixCls,M=c.className,S=c.style,b=c.showLine,j=c.focusable,F=c.tabIndex,A=F===void 0?0:F,V=c.selectable,se=c.showIcon,Ke=c.icon,ge=c.switcherIcon,me=c.draggable,xe=c.checkable,Ce=c.checkStrictly,Pe=c.disabled,We=c.motion,Ie=c.loadData,W=c.filterTreeNode,K=c.height,Ne=c.itemHeight,Be=c.scrollWidth,we=c.virtual,$e=c.titleRender,Qe=c.dropIndicatorRender,He=c.onContextMenu,_e=c.onScroll,at=c.direction,qe=c.rootClassName,rt=c.rootStyle,Ve=(0,J.Z)(this.props,{aria:!0,data:!0}),ze;me&&((0,L.Z)(me)==="object"?ze=me:typeof me=="function"?ze={nodeDraggable:me}:ze={});var et={prefixCls:p,selectable:V,showIcon:se,icon:Ke,switcherIcon:ge,draggable:ze,draggingNodeKey:d,checkable:xe,checkStrictly:Ce,disabled:Pe,keyEntities:n,dropLevelOffset:l,dropContainerKey:g,dropTargetKey:k,dropPosition:N,dragOverNodeKey:D,indent:R,direction:at,dropIndicatorRender:Qe,loadData:Ie,filterTreeNode:W,titleRender:$e,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};return E.createElement(ce.k.Provider,{value:et},E.createElement("div",{className:z()(p,M,qe,(0,u.Z)((0,u.Z)((0,u.Z)({},"".concat(p,"-show-line"),b),"".concat(p,"-focused"),x),"".concat(p,"-active-focused"),a!==null)),style:rt},E.createElement(o,(0,pe.Z)({ref:this.listRef,prefixCls:p,style:S,data:$,disabled:Pe,selectable:V,checkable:!!xe,motion:We,dragging:d!==null,height:K,itemHeight:Ne,virtual:we,focusable:j,focused:x,tabIndex:A,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He,onScroll:_e,scrollWidth:Be},this.getTreeNodeRequiredProps(),Ve))))}}],[{key:"getDerivedStateFromProps",value:function(v,x){var $=x.prevProps,n={prevProps:v};function d(A){return!$&&v.hasOwnProperty(A)||$&&$[A]!==v[A]}var a,l=x.fieldNames;if(d("fieldNames")&&(l=(0,m.w$)(v.fieldNames),n.fieldNames=l),d("treeData")?a=v.treeData:d("children")&&((0,ve.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,m.zn)(v.children)),a){n.treeData=a;var g=(0,m.I8)(a,{fieldNames:l});n.keyEntities=(0,q.Z)((0,u.Z)({},oe,B),g.keyEntities)}var k=n.keyEntities||x.keyEntities;if(d("expandedKeys")||$&&d("autoExpandParent"))n.expandedKeys=v.autoExpandParent||!$&&v.defaultExpandParent?(0,T.r7)(v.expandedKeys,k):v.expandedKeys;else if(!$&&v.defaultExpandAll){var N=(0,q.Z)({},k);delete N[oe];var D=[];Object.keys(N).forEach(function(A){var V=N[A];V.children&&V.children.length&&D.push(V.key)}),n.expandedKeys=D}else!$&&v.defaultExpandedKeys&&(n.expandedKeys=v.autoExpandParent||v.defaultExpandParent?(0,T.r7)(v.defaultExpandedKeys,k):v.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var R=(0,m.oH)(a||x.treeData,n.expandedKeys||x.expandedKeys,l);n.flattenNodes=R}if(v.selectable&&(d("selectedKeys")?n.selectedKeys=(0,T.BT)(v.selectedKeys,v):!$&&v.defaultSelectedKeys&&(n.selectedKeys=(0,T.BT)(v.defaultSelectedKeys,v))),v.checkable){var c;if(d("checkedKeys")?c=(0,T.E6)(v.checkedKeys)||{}:!$&&v.defaultCheckedKeys?c=(0,T.E6)(v.defaultCheckedKeys)||{}:a&&(c=(0,T.E6)(v.checkedKeys)||{checkedKeys:x.checkedKeys,halfCheckedKeys:x.halfCheckedKeys}),c){var p=c,M=p.checkedKeys,S=M===void 0?[]:M,b=p.halfCheckedKeys,j=b===void 0?[]:b;if(!v.checkStrictly){var F=(0,Re.S)(S,!0,k);S=F.checkedKeys,j=F.halfCheckedKeys}n.checkedKeys=S,n.halfCheckedKeys=j}}return d("loadedKeys")&&(n.loadedKeys=v.loadedKeys),n}}]),w}(E.Component);(0,u.Z)(Ze,"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:te,allowDrop:function(){return!0},expandAction:!1}),(0,u.Z)(Ze,"TreeNode",C.Z);var Te=Ze,Ee=Te},10225:function(Ge,ke,s){s.d(ke,{BT:function(){return E},E6:function(){return te},L0:function(){return u},OM:function(){return ve},_5:function(){return fe},r7:function(){return Y},wA:function(){return z},yx:function(){return ee}});var pe=s(74902),L=s(71002),q=s(80334),Le=s(67294),Ae=s(86128),O=s(35381),Z=s(1089),re=null;function fe(r,t){if(!r)return[];var f=r.slice(),h=f.indexOf(t);return h>=0&&f.splice(h,1),f}function u(r,t){var f=(r||[]).slice();return f.indexOf(t)===-1&&f.push(t),f}function ee(r){return r.split("-")}function z(r,t){var f=[],h=(0,O.Z)(t,r);function y(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];C.forEach(function(P){var I=P.key,m=P.children;f.push(I),y(m)})}return y(h.children),f}function G(r){if(r.parent){var t=ee(r.pos);return Number(t[t.length-1])===r.parent.children.length-1}return!1}function J(r){var t=ee(r.pos);return Number(t[t.length-1])===0}function ve(r,t,f,h,y,C,P,I,m,Q){var de,_=r.clientX,X=r.clientY,ne=r.target.getBoundingClientRect(),U=ne.top,ie=ne.height,ae=(Q==="rtl"?-1:1)*(((y==null?void 0:y.x)||0)-_),oe=(ae-12)/h,ue=m.filter(function(Ee){var i;return(i=I[Ee])===null||i===void 0||(i=i.children)===null||i===void 0?void 0:i.length}),B=(0,O.Z)(I,f.eventKey);if(X<U+ie/2){var De=P.findIndex(function(Ee){return Ee.key===B.key}),le=De<=0?0:De-1,Me=P[le].key;B=(0,O.Z)(I,Me)}var Se=B.key,Fe=B,o=B.key,T=0,Re=0;if(!ue.includes(Se))for(var be=0;be<oe&&G(B);be+=1)B=B.parent,Re+=1;var Oe=t.data,Ze=B.node,Te=!0;return J(B)&&B.level===0&&X<U+ie/2&&C({dragNode:Oe,dropNode:Ze,dropPosition:-1})&&B.key===f.eventKey?T=-1:(Fe.children||[]).length&&ue.includes(o)?C({dragNode:Oe,dropNode:Ze,dropPosition:0})?T=0:Te=!1:Re===0?oe>-1.5?C({dragNode:Oe,dropNode:Ze,dropPosition:1})?T=1:Te=!1:C({dragNode:Oe,dropNode:Ze,dropPosition:0})?T=0:C({dragNode:Oe,dropNode:Ze,dropPosition:1})?T=1:Te=!1:C({dragNode:Oe,dropNode:Ze,dropPosition:1})?T=1:Te=!1,{dropPosition:T,dropLevelOffset:Re,dropTargetKey:B.key,dropTargetPos:B.pos,dragOverNodeKey:o,dropContainerKey:T===0?null:((de=B.parent)===null||de===void 0?void 0:de.key)||null,dropAllowed:Te}}function E(r,t){if(r){var f=t.multiple;return f?r.slice():r.length?[r[0]]:r}}var ce=function(t){return t};function he(r,t){if(!r)return[];var f=t||{},h=f.processProps,y=h===void 0?ce:h,C=Array.isArray(r)?r:[r];return C.map(function(P){var I=P.children,m=_objectWithoutProperties(P,re),Q=he(I,t);return React.createElement(TreeNode,_extends({key:m.key},y(m)),Q)})}function te(r){if(!r)return null;var t;if(Array.isArray(r))t={checkedKeys:r,halfCheckedKeys:void 0};else if((0,L.Z)(r)==="object")t={checkedKeys:r.checked||void 0,halfCheckedKeys:r.halfChecked||void 0};else return(0,q.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return t}function Y(r,t){var f=new Set;function h(y){if(!f.has(y)){var C=(0,O.Z)(t,y);if(C){f.add(y);var P=C.parent,I=C.node;I.disabled||P&&h(P.key)}}}return(r||[]).forEach(function(y){h(y)}),(0,pe.Z)(f)}},17341:function(Ge,ke,s){s.d(ke,{S:function(){return Z}});var pe=s(80334),L=s(35381);function q(re,fe){var u=new Set;return re.forEach(function(ee){fe.has(ee)||u.add(ee)}),u}function Le(re){var fe=re||{},u=fe.disabled,ee=fe.disableCheckbox,z=fe.checkable;return!!(u||ee)||z===!1}function Ae(re,fe,u,ee){for(var z=new Set(re),G=new Set,J=0;J<=u;J+=1){var ve=fe.get(J)||new Set;ve.forEach(function(te){var Y=te.key,r=te.node,t=te.children,f=t===void 0?[]:t;z.has(Y)&&!ee(r)&&f.filter(function(h){return!ee(h.node)}).forEach(function(h){z.add(h.key)})})}for(var E=new Set,ce=u;ce>=0;ce-=1){var he=fe.get(ce)||new Set;he.forEach(function(te){var Y=te.parent,r=te.node;if(!(ee(r)||!te.parent||E.has(te.parent.key))){if(ee(te.parent.node)){E.add(Y.key);return}var t=!0,f=!1;(Y.children||[]).filter(function(h){return!ee(h.node)}).forEach(function(h){var y=h.key,C=z.has(y);t&&!C&&(t=!1),!f&&(C||G.has(y))&&(f=!0)}),t&&z.add(Y.key),f&&G.add(Y.key),E.add(Y.key)}})}return{checkedKeys:Array.from(z),halfCheckedKeys:Array.from(q(G,z))}}function O(re,fe,u,ee,z){for(var G=new Set(re),J=new Set(fe),ve=0;ve<=ee;ve+=1){var E=u.get(ve)||new Set;E.forEach(function(Y){var r=Y.key,t=Y.node,f=Y.children,h=f===void 0?[]:f;!G.has(r)&&!J.has(r)&&!z(t)&&h.filter(function(y){return!z(y.node)}).forEach(function(y){G.delete(y.key)})})}J=new Set;for(var ce=new Set,he=ee;he>=0;he-=1){var te=u.get(he)||new Set;te.forEach(function(Y){var r=Y.parent,t=Y.node;if(!(z(t)||!Y.parent||ce.has(Y.parent.key))){if(z(Y.parent.node)){ce.add(r.key);return}var f=!0,h=!1;(r.children||[]).filter(function(y){return!z(y.node)}).forEach(function(y){var C=y.key,P=G.has(C);f&&!P&&(f=!1),!h&&(P||J.has(C))&&(h=!0)}),f||G.delete(r.key),h&&J.add(r.key),ce.add(r.key)}})}return{checkedKeys:Array.from(G),halfCheckedKeys:Array.from(q(J,G))}}function Z(re,fe,u,ee){var z=[],G;ee?G=ee:G=Le;var J=new Set(re.filter(function(he){var te=!!(0,L.Z)(u,he);return te||z.push(he),te})),ve=new Map,E=0;Object.keys(u).forEach(function(he){var te=u[he],Y=te.level,r=ve.get(Y);r||(r=new Set,ve.set(Y,r)),r.add(te),E=Math.max(E,Y)}),(0,pe.ZP)(!z.length,"Tree missing follow keys: ".concat(z.slice(0,100).map(function(he){return"'".concat(he,"'")}).join(", ")));var ce;return fe===!0?ce=Ae(J,ve,E,G):ce=O(J,fe.halfCheckedKeys,ve,E,G),ce}},35381:function(Ge,ke,s){s.d(ke,{Z:function(){return pe}});function pe(L,q){return L[q]}},1089:function(Ge,ke,s){s.d(ke,{F:function(){return Y},H8:function(){return te},I8:function(){return he},km:function(){return z},oH:function(){return E},w$:function(){return G},zn:function(){return ve}});var pe=s(71002),L=s(74902),q=s(1413),Le=s(91),Ae=s(50344),O=s(98423),Z=s(80334),re=s(35381),fe=["children"];function u(r,t){return"".concat(r,"-").concat(t)}function ee(r){return r&&r.type&&r.type.isTreeNode}function z(r,t){return r??t}function G(r){var t=r||{},f=t.title,h=t._title,y=t.key,C=t.children,P=f||"title";return{title:P,_title:h||[P],key:y||"key",children:C||"children"}}function J(r,t){var f=new Map;function h(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(y||[]).forEach(function(P){var I=P[t.key],m=P[t.children];warning(I!=null,"Tree node must have a certain key: [".concat(C).concat(I,"]"));var Q=String(I);warning(!f.has(Q)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(Q)),f.set(Q,!0),h(m,"".concat(C).concat(Q," > "))})}h(r)}function ve(r){function t(f){var h=(0,Ae.Z)(f);return h.map(function(y){if(!ee(y))return(0,Z.ZP)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var C=y.key,P=y.props,I=P.children,m=(0,Le.Z)(P,fe),Q=(0,q.Z)({key:C},m),de=t(I);return de.length&&(Q.children=de),Q}).filter(function(y){return y})}return t(r)}function E(r,t,f){var h=G(f),y=h._title,C=h.key,P=h.children,I=new Set(t===!0?[]:t),m=[];function Q(de){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return de.map(function(X,ne){for(var U=u(_?_.pos:"0",ne),ie=z(X[C],U),ae,oe=0;oe<y.length;oe+=1){var ue=y[oe];if(X[ue]!==void 0){ae=X[ue];break}}var B=Object.assign((0,O.Z)(X,[].concat((0,L.Z)(y),[C,P])),{title:ae,key:ie,parent:_,pos:U,children:null,data:X,isStart:[].concat((0,L.Z)(_?_.isStart:[]),[ne===0]),isEnd:[].concat((0,L.Z)(_?_.isEnd:[]),[ne===de.length-1])});return m.push(B),t===!0||I.has(ie)?B.children=Q(X[P]||[],B):B.children=[],B})}return Q(r),m}function ce(r,t,f){var h={};(0,pe.Z)(f)==="object"?h=f:h={externalGetKey:f},h=h||{};var y=h,C=y.childrenPropName,P=y.externalGetKey,I=y.fieldNames,m=G(I),Q=m.key,de=m.children,_=C||de,X;P?typeof P=="string"?X=function(ie){return ie[P]}:typeof P=="function"&&(X=function(ie){return P(ie)}):X=function(ie,ae){return z(ie[Q],ae)};function ne(U,ie,ae,oe){var ue=U?U[_]:r,B=U?u(ae.pos,ie):"0",De=U?[].concat((0,L.Z)(oe),[U]):[];if(U){var le=X(U,B),Me={node:U,index:ie,pos:B,key:le,parentPos:ae.node?ae.pos:null,level:ae.level+1,nodes:De};t(Me)}ue&&ue.forEach(function(Se,Fe){ne(Se,Fe,{node:U,pos:B,level:ae?ae.level+1:-1},De)})}ne(null)}function he(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=t.initWrapper,h=t.processEntity,y=t.onProcessFinished,C=t.externalGetKey,P=t.childrenPropName,I=t.fieldNames,m=arguments.length>2?arguments[2]:void 0,Q=C||m,de={},_={},X={posEntities:de,keyEntities:_};return f&&(X=f(X)||X),ce(r,function(ne){var U=ne.node,ie=ne.index,ae=ne.pos,oe=ne.key,ue=ne.parentPos,B=ne.level,De=ne.nodes,le={node:U,nodes:De,index:ie,key:oe,pos:ae,level:B},Me=z(oe,ae);de[ae]=le,_[Me]=le,le.parent=de[ue],le.parent&&(le.parent.children=le.parent.children||[],le.parent.children.push(le)),h&&h(le,X)},{externalGetKey:Q,childrenPropName:P,fieldNames:I}),y&&y(X),X}function te(r,t){var f=t.expandedKeys,h=t.selectedKeys,y=t.loadedKeys,C=t.loadingKeys,P=t.checkedKeys,I=t.halfCheckedKeys,m=t.dragOverNodeKey,Q=t.dropPosition,de=t.keyEntities,_=(0,re.Z)(de,r),X={eventKey:r,expanded:f.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:y.indexOf(r)!==-1,loading:C.indexOf(r)!==-1,checked:P.indexOf(r)!==-1,halfChecked:I.indexOf(r)!==-1,pos:String(_?_.pos:""),dragOver:m===r&&Q===0,dragOverGapTop:m===r&&Q===-1,dragOverGapBottom:m===r&&Q===1};return X}function Y(r){var t=r.data,f=r.expanded,h=r.selected,y=r.checked,C=r.loaded,P=r.loading,I=r.halfChecked,m=r.dragOver,Q=r.dragOverGapTop,de=r.dragOverGapBottom,_=r.pos,X=r.active,ne=r.eventKey,U=(0,q.Z)((0,q.Z)({},t),{},{expanded:f,selected:h,checked:y,loaded:C,loading:P,halfChecked:I,dragOver:m,dragOverGapTop:Q,dragOverGapBottom:de,pos:_,active:X,key:ne});return"props"in U||Object.defineProperty(U,"props",{get:function(){return(0,Z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),U}}}]);
|
package/dist/client/{npm.sanitize-html.4386b2d9.async.js → npm.sanitize-html.5dd1860c.async.js}
RENAMED
|
@@ -11,15 +11,15 @@ and ensure you are accounting for this risk.
|
|
|
11
11
|
|
|
12
12
|
`+u+`
|
|
13
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(
|
|
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(85296),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
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
16
|
`;this.css.includes(`\r
|
|
17
17
|
`)&&(r=`\r
|
|
18
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(
|
|
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(
|
|
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(85296);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(85296),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
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)},
|
|
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)},85296: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
23
|
`,beforeClose:`
|
|
24
24
|
`,beforeComment:`
|
|
25
25
|
`,beforeDecl:`
|