@ttmg/cli 0.3.2-beta.7 → 0.3.2-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.
Files changed (30) hide show
  1. package/dist/index.js +6552 -8
  2. package/dist/index.js.map +1 -1
  3. package/dist/package.json +5 -2
  4. package/dist/public/assets/{index-CW9D9cbx.js → index-B7gDE9jg.js} +1 -1
  5. package/dist/public/assets/{index-C0C36jb2.js → index-BGB_3rmy.js} +5 -5
  6. package/dist/public/assets/index-BGB_3rmy.js.br +0 -0
  7. package/dist/public/assets/{index-uov949jQ.js → index-BGxy8aq-.js} +1 -1
  8. package/dist/public/assets/index-BGxy8aq-.js.br +0 -0
  9. package/dist/public/assets/{index-BkVEWAPY.js → index-Be7GH3NR.js} +1 -1
  10. package/dist/public/assets/{index-DqL2KSXM.js → index-C-hKdJe4.js} +1 -1
  11. package/dist/public/assets/{index-B6sOtD-C.js → index-CZeMe3yb.js} +1 -1
  12. package/dist/public/assets/index-CZeMe3yb.js.br +0 -0
  13. package/dist/public/assets/{index-GteNW6eR.js → index-DCvzzS3c.js} +1 -1
  14. package/dist/public/assets/index-DCvzzS3c.js.br +0 -0
  15. package/dist/public/assets/{index-Dg2qShwB.js → index-DTYGiGBE.js} +1 -1
  16. package/dist/public/assets/{index-DwEKoL_q.js → index-DZh72DCT.js} +1 -1
  17. package/dist/public/assets/{index-DQ4KFxPV.js → index-NjsKimh-.js} +1 -1
  18. package/dist/public/assets/{index-DfNs0hDP.js → index-dPxUjVAV.js} +1 -1
  19. package/dist/public/assets/index-sz2rmYug.js +1 -0
  20. package/dist/public/index.html +1 -1
  21. package/dist/scripts/build.js +6 -0
  22. package/dist/scripts/test-protocol.js +29 -0
  23. package/dist/scripts/test-regression.js +94 -0
  24. package/dist/scripts/test-regression.ts +93 -0
  25. package/package.json +5 -2
  26. package/dist/public/assets/index-B6sOtD-C.js.br +0 -0
  27. package/dist/public/assets/index-C0C36jb2.js.br +0 -0
  28. package/dist/public/assets/index-CaSOlQza.js +0 -1
  29. package/dist/public/assets/index-GteNW6eR.js.br +0 -0
  30. package/dist/public/assets/index-uov949jQ.js.br +0 -0
@@ -1 +1 @@
1
- import{B as U,R as d,r as e,g as T,P as m,a as V,b as X,_ as z,c as H,j as a,T as o,i as n,S as q,d as K,e as Y,u as J,f as Q,h as ee}from"./index-C0C36jb2.js";const R={PREFIX:`${U}-descriptions`},S={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"],LAYOUT_SET:["horizontal","vertical"]},O=d.createContext(null);var te=function(t,l){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&l.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)l.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(i[r[s]]=t[r[s]]);return i};const j=R.PREFIX,L=`${j}-key`,I=`${j}-value`;class b extends e.PureComponent{render(){const l=this.props,{itemKey:i,hidden:r,className:s,span:p,style:c,children:h}=l,y=te(l,["itemKey","hidden","className","span","style","children"]),{align:f,layout:g}=this.context;if(r)return null;const v=d.createElement("td",{className:`${j}-item`,colSpan:p||1},d.createElement("span",{className:L},i,":"),d.createElement("span",{className:I},typeof h=="function"?h():h)),_=d.createElement(d.Fragment,null,d.createElement("th",{className:`${j}-item ${j}-item-th`},d.createElement("span",{className:L},i)),d.createElement("td",{className:`${j}-item ${j}-item-td`,colSpan:p?p*2-1:1},d.createElement("span",{className:I},typeof h=="function"?h():h))),u=f==="plain"?d.createElement("tr",Object.assign({className:s,style:c},T(y)),v):d.createElement("tr",Object.assign({className:s,style:c},T(y)),_);return g==="horizontal"?f==="plain"?v:_:u}}b.propTypes={itemKey:m.node,hidden:m.bool,className:m.string,style:m.object};b.contextType=O;class ae extends V{constructor(l){super(Object.assign({},l))}getHorizontalList(){const{column:l,data:i,children:r}=this.getProps(),s=this._adapter.getColumns(),p=[],c={totalSpan:0,itemList:[]};for(const h of s)c.totalSpan+=h.span||1,c.itemList.push(h),c.totalSpan>=l&&(p.push(c.itemList),c.itemList=[],c.totalSpan=0);if(c.itemList.length!=0){const h=c.itemList[c.itemList.length-1];if(isNaN(h.span)){let y=0;c.itemList.forEach(f=>y+=isNaN(f.span)?1:f.span),y<l&&(h.span=l-y+1)}p.push(c.itemList)}return p}}var le=function(t,l){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&l.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)l.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(i[r[s]]=t[r[s]]);return i};const M=R.PREFIX;class N extends X{constructor(l){super(l),this.renderChildrenList=()=>{const i=this.props,{layout:r,data:s,children:p}=i;return r==="horizontal"?this.foundation.getHorizontalList().map((h,y)=>d.createElement("tr",{key:y},h.map((f,g)=>z(f)?d.createElement(b,Object.assign({itemKey:f.key},f,{key:y+"-"+g}),f.value):null))):s&&s.length?s.map((c,h)=>z(c)?d.createElement(b,Object.assign({itemKey:c.key},c,{key:h}),c.value):null):p},this.foundation=new ae(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{getColumns:()=>{var l,i;return!((l=this.props.data)===null||l===void 0)&&l.length?this.props.data:this.props.children?(i=d.Children.toArray(this.props.children))===null||i===void 0?void 0:i.map(r=>e.isValidElement(r)?Object.assign({value:r.props.children},r.props):[]):[]}})}render(){const l=this.props,{align:i,row:r,size:s,className:p,style:c,children:h,data:y,layout:f}=l,g=le(l,["align","row","size","className","style","children","data","layout"]),v=H(M,p,{[`${M}-${i}`]:!r,[`${M}-double`]:r,[`${M}-double-${s}`]:r,[`${M}-horizontal`]:f==="horizontal",[`${M}-vertical`]:f==="vertical"});return d.createElement("div",Object.assign({className:v,style:c},T(g)),d.createElement("table",null,d.createElement("tbody",null,d.createElement(O.Provider,{value:{align:i,layout:f}},this.renderChildrenList()))))}}N.Item=b;N.contextType=O;N.propTypes={align:m.oneOf(S.ALIGN_SET),row:m.bool,size:m.oneOf(S.SIZE_SET),style:m.object,className:m.string,data:m.arrayOf(m.shape({key:m.node,value:m.oneOfType([m.node,m.func]),hidden:m.bool,className:m.string,style:m.object})),layout:m.oneOf(S.LAYOUT_SET),column:m.number};N.defaultProps={align:"center",row:!1,size:"medium",data:[],layout:"vertical",column:3};var re=Object.defineProperty,C=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,D=(t,l,i)=>l in t?re(t,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[l]=i,ne=(t,l)=>{for(var i in l||(l={}))ie.call(l,i)&&D(t,i,l[i]);if(C)for(var i of C(l))se.call(l,i)&&D(t,i,l[i]);return t};function ce(t){return e.createElement("svg",ne({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},t),e.createElement("rect",{width:200,height:200,fill:"transparent"}),e.createElement("path",{d:"M74.7 78.6c20.78-6.32 57.55-12.26 71.81-9.86 4.21.7 8.12 1.98 11.36 3.42-.51-1.69-.95-3.5-1.38-5.3l-.04-.18c-1.03-4.27-2.05-8.44-3.95-10.55-4.8-5.32.67-10.12.67-10.12l.93-10.53c13.02 4.82 21.65 14.92 27 25.08 4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1.64 2.18 5.44 19.18 7.53 32.66l-46.15.58-7.58-14.68-4.66-12.26c-19.46 7.46-50.77 19.02-64.9 18.44-10.35-.42-15.68-15.68-17.44-28.7a71.55 71.55 0 0 1-.67-9.4c0-5.64.3-12.18 2.22-17.89.74-2.21 1.73-4.3 3.04-6.17a18.1 18.1 0 0 1 4.6-4.59c0 4-1.02 13.54 2.8 14.12 5.06.78 10.4-9.08 13.85-7.06 3.87 2.27-1.65 16.34-1.33 17.2.27.7.53 1.4.76 2.07a48.99 48.99 0 0 1 2.25 8.55C46.59 87.56 60 83.06 74.69 78.6Z",fill:"white"}),e.createElement("path",{d:"M181.1 60.56c4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1m36.77-38.65c-5.36-10.16-13.99-20.26-27-25.08l-.94 10.53s-5.46 4.8-.67 10.12c1.9 2.11 2.92 6.28 3.95 10.55m24.66-6.12c-6-.37-18.32.8-24.66 6.12m0 0c1.57 6.53 3.15 13.3 7.91 13.3 7.2 0-3.6-8.84-17.85-11.24-14.25-2.4-51.03 3.54-71.82 9.86-20.78 6.32-39.04 12.71-42.77 19.1-3.63 6.23 13.24 10.92 4.49-14.17m0 0c-.23-.67-.49-1.36-.76-2.08-.32-.85 5.2-14.92 1.33-17.19-3.45-2.02-8.8 7.84-13.85 7.06-3.82-.58-2.8-10.12-2.8-14.12a18.1 18.1 0 0 0-4.6 4.6M36.4 83.52c-7.27 1.58-21.92 8.1-25.27 11.73m0 0a71.55 71.55 0 0 1-.67-9.41c0-5.64.3-12.18 2.22-17.89m-1.55 27.3c1.76 13 7.09 28.27 17.45 28.7 14.12.57 45.43-10.99 64.89-18.45l4.66 12.26 7.58 14.68 46.15-.58c-2.09-13.48-6.89-30.48-7.53-32.67M15.73 61.8c-.98 3-1.08 5.5.19 7.8m-.2-7.8a24.08 24.08 0 0 0-3.03 6.16m0 0a5.43 5.43 0 0 0 1.25 4.22m130.4 27.02c-.9-3.08-3.12-9.95-4.76-12.76",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m156.89 15.66-2.04 27.96 2.57 28.1c-7.51-3.07-13.32-4.34-27.25-3.36-11.94.83-31.75 3.95-46.23 7.62-16.66 4.27-37.81 11.64-45.21 15.9-.77-4.64-2.92-10.15-2.92-10.15-.07-.7 2.63-8.32 2.73-13.06.08-3.08-.91-4.45-2.33-4.75a3.47 3.47 0 0 0-2.05.35c-.63.32-.86.48-1.38.84-1.34.98-2.38 2.02-3.95 3.34a17.14 17.14 0 0 1-3.04 2.17 4.6 4.6 0 0 1-2.89.63c-.63-.1-1.21-.47-1.71-1.58l-.07-.89c-.5-5.79-2.7-20.12-2.7-34.91 0-7.74 1.61-10.04 2.7-11.59l.13-.18c3.85-5.53 13.67-6.75 23.12-6.96 2.5-.14 5.2-.2 8.1-.17l.11.15H53.15l-.52.07 18.32 25.49-3.62 14.08 10.2 15.98-2.84-16.49 10-11.99-3.5-27.7s8.78-.5 19.47-1.77c10.69-1.28 18.47-1.9 29.42-1.83 1.64.01 3.4.1 5.23.22 9.64.65 18.55 2.56 21.46 4.4l.13.09h-.01Z",fill:"var(--semi-color-primary-light-default)"}),e.createElement("path",{d:"M143 27.91a1.38 1.38 0 0 1 1.77-.85c.5.18.98.41 1.44.71a1.38 1.38 0 0 1-1.53 2.31c-.26-.17-.53-.3-.82-.4a1.38 1.38 0 0 1-.85-1.77Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M140.65 28.12c.21.74-.21 1.5-.95 1.72-.36.1-.73.22-1.11.36a1.38 1.38 0 1 1-.95-2.6c.43-.16.87-.3 1.3-.43.74-.2 1.5.22 1.71.95Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M134.74 30.4c.37.67.14 1.51-.53 1.89l-1.07.62a1.38 1.38 0 1 1-1.41-2.38l1.12-.65a1.38 1.38 0 0 1 1.89.52Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M97.86 31.43h.76a1.38 1.38 0 1 1-.06 2.77h-.52a6.7 6.7 0 0 0-.57.1 1.38 1.38 0 0 1-.64-2.68c.33-.08.64-.14.94-.18l.09-.01Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M147.78 31.75c.73-.23 1.5.19 1.72.92.13.43.25.88.35 1.35a1.38 1.38 0 0 1-2.7.58c-.1-.4-.19-.78-.3-1.13-.22-.73.2-1.5.93-1.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M102.27 33.13c.19-.75.94-1.2 1.68-1.01.45.11.89.23 1.3.37a1.38 1.38 0 0 1-.84 2.63c-.36-.11-.73-.22-1.13-.32a1.38 1.38 0 0 1-1-1.67Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M129.3 33.68c.42.64.25 1.5-.4 1.92l-.52.34-.53.36a1.38 1.38 0 0 1-1.53-2.31l.32-.21.21-.14.3-.2.23-.15c.64-.42 1.5-.25 1.92.39Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M108.25 35.22c.36-.67 1.2-.92 1.88-.55a246.5 246.5 0 0 1 1.11.61 1.38 1.38 0 0 1-1.33 2.43l-.5-.28h-.01l-.6-.34a1.38 1.38 0 0 1-.55-1.87Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M92.83 35.77c.76-.01 1.4.6 1.4 1.36.01.16.03.34.07.55a1.38 1.38 0 1 1-2.7.58 5.62 5.62 0 0 1-.13-1.08c-.01-.76.6-1.4 1.36-1.4Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M124 37.2c.31.7 0 1.51-.7 1.82a6.07 6.07 0 0 1-1.44.45 1.38 1.38 0 1 1-.67-2.68l.58-.16c.1-.03.24-.07.42-.15.7-.3 1.51.02 1.82.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M113.9 38.14c.15-.75.89-1.22 1.63-1.06.35.07.72.13 1.1.16a1.38 1.38 0 0 1-.26 2.76c-.49-.05-.96-.12-1.41-.22a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M148.98 37.95c.76-.01 1.4.6 1.4 1.36a38.45 38.45 0 0 1 0 1.42 1.38 1.38 0 0 1-2.77-.08 24.28 24.28 0 0 0 0-1.3c0-.76.6-1.39 1.37-1.4Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M148.6 44.88c.75.16 1.22.9 1.06 1.65-.1.47-.22.94-.34 1.41a1.38 1.38 0 1 1-2.68-.7c.12-.43.22-.87.31-1.3.17-.75.9-1.22 1.65-1.06Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M146.69 51.6c.7.31 1 1.13.7 1.83-.2.44-.41.88-.63 1.31a1.38 1.38 0 0 1-2.48-1.24c.2-.4.4-.8.58-1.2.31-.7 1.13-1.01 1.83-.7Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M41.67 55.45c.07.77-.5 1.44-1.25 1.5-.43.04-.86.1-1.26.19a1.38 1.38 0 1 1-.54-2.72c.5-.1 1.02-.17 1.55-.22.76-.07 1.43.5 1.5 1.25Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M44.58 55.78c.22-.73 1-1.15 1.72-.93l.74.23a1.38 1.38 0 1 1-.9 2.62l-.62-.2a1.38 1.38 0 0 1-.94-1.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M91.9 56.9c.05.76-.52 1.42-1.29 1.47-.44.02-.89.06-1.32.11a1.38 1.38 0 0 1-.31-2.75c.48-.05.96-.1 1.45-.13.77-.05 1.42.53 1.47 1.3Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M94.72 56.95c.07-.76.74-1.33 1.5-1.26l1.43.14a1.38 1.38 0 0 1-.32 2.75c-.45-.05-.9-.1-1.35-.13a1.38 1.38 0 0 1-1.26-1.5Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M101.64 57.83c.16-.75.9-1.22 1.64-1.07l1.39.31a1.38 1.38 0 1 1-.62 2.7l-1.34-.3a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M34.85 57.26c.48.6.39 1.46-.2 1.94-.33.27-.63.55-.9.84a1.38 1.38 0 0 1-2.03-1.89c.36-.39.76-.75 1.18-1.1.6-.48 1.46-.39 1.95.2Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M85 57.9c.29.71-.06 1.51-.78 1.8a15.8 15.8 0 0 0-1.26.54 1.38 1.38 0 1 1-1.15-2.52 71.64 71.64 0 0 1 1.4-.6c.71-.28 1.52.07 1.8.78Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M143.4 57.76c.61.47.72 1.34.26 1.95-.3.39-.62.77-.94 1.14a1.38 1.38 0 0 1-2.09-1.81 24 24 0 0 0 .84-1.03c.47-.6 1.33-.71 1.94-.25Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M108.43 59.46c.22-.74.99-1.15 1.72-.93l1.35.41a1.38 1.38 0 1 1-.82 2.64l-1.32-.4a1.38 1.38 0 0 1-.93-1.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M115.08 61.58a1.38 1.38 0 0 1 1.77-.82l1.32.48a1.38 1.38 0 0 1-.97 2.6c-.43-.17-.87-.33-1.3-.48a1.38 1.38 0 0 1-.82-1.78Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M138.67 62.89c.42.64.25 1.5-.4 1.92-.41.27-.85.54-1.29.78a1.38 1.38 0 0 1-1.32-2.43c.37-.2.73-.43 1.1-.66.63-.42 1.49-.25 1.91.39Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M30.5 62.78c.77.07 1.33.74 1.26 1.5l-.03.59.01.75-1.6 1.4a1.38 1.38 0 0 1-1.16-1.32l-.02-.83c0-.28.02-.56.04-.84.07-.76.75-1.32 1.5-1.25Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M121.6 64.07c.3-.7 1.1-1.04 1.8-.75a146.8 146.8 0 0 1 1.26.52 1.38 1.38 0 1 1-.97 2.59 19.62 19.62 0 0 1-1.35-.55c-.7-.3-1.04-1.1-.74-1.81Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M72.11 64.94c.48.6.4 1.47-.2 1.95-.38.3-.74.62-1.09.92A1.38 1.38 0 1 1 69 65.73c.37-.33.76-.66 1.17-.99.59-.48 1.46-.39 1.94.2Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M132.4 65.92c.09.76-.46 1.44-1.22 1.53-.5.05-1.02.08-1.53.09a1.38 1.38 0 1 1-.02-2.77c.42 0 .84-.03 1.25-.07.76-.09 1.44.46 1.53 1.22Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M66.66 69.9c.57.52.6 1.4.09 1.96l-.73.8-.02.02-.16.18-.08.09a1.38 1.38 0 0 1-2.05-1.86l.25-.28.75-.82c.51-.56 1.39-.6 1.95-.09Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M61.6 75.28c.45.61.31 1.48-.3 1.93-.44.31-.88.61-1.36.89a1.38 1.38 0 1 1-1.4-2.4c.4-.22.77-.46 1.12-.72a1.38 1.38 0 0 1 1.94.3Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M37.67 75.97c.42.19.86.37 1.35.53a1.38 1.38 0 0 1-.89 2.62c-.56-.19-1.1-.4-1.6-.63l.72-2.63c.14.01.28.05.42.11Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M55.05 78.57c.12.75-.4 1.46-1.15 1.58-.5.08-1 .15-1.54.2a1.38 1.38 0 1 1-.28-2.75c.49-.05.95-.11 1.39-.18.75-.12 1.46.4 1.58 1.15Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M43.4 78.87c.06-.76.73-1.33 1.49-1.27a38.43 38.43 0 0 0 1.5.1 1.38 1.38 0 1 1-.12 2.76 62.94 62.94 0 0 1-1.6-.1 1.38 1.38 0 0 1-1.27-1.49Z",fill:"var(--semi-color-primary)"}),e.createElement("g",{clipPath:"url(#clip_failure_96_39_65)"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.9 46.87a13.45 13.45 0 0 1 9.37-16.53 13.46 13.46 0 0 1 16.52 9.39c2.64 9.56-4.76 29.27-5.14 29.9a.75.75 0 0 1-.99.27c-.64-.34-17.11-13.47-19.76-23.03Zm14.36 1.54a6.1 6.1 0 0 1-3.25-11.75 6.1 6.1 0 0 1 3.25 11.75Z",fill:"var(--semi-color-primary)"})),e.createElement("path",{d:"M102.31 100.69c-2.8 1.55-5.63 2.85-9.36 4.58l1.48 3.92c2.14-.96 6.16-6.03 7.88-8.5Z",fill:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M121 63.04c8.85 2.1 12.43-6.5 13.12-8.77.68-2.27-5.6-11.86-8-11.2l-.42.12-.23.06c-3.1.82-11.15 2.94-12.35 8-1.3 5.46 2.4 10.49 7.88 11.79Z",fill:"#515151"}),e.createElement("path",{d:"M134.5 64.73c-.43.47-1.2.74-2.33.73a12.7 12.7 0 0 1-4.06-.86 31.25 31.25 0 0 1-9.94-6.22c-3.25-2.97-5.97-5.8-7.59-8.42-1.61-2.61-2.05-4.88-.98-6.84a3.7 3.7 0 0 1 2.11-1.86 4.53 4.53 0 0 1 2.9.15c2.16.76 4.57 2.83 6.48 6.02 3.4 5.63 6.89 8.23 9.7 10.33.49.35.95.7 1.38 1.03a7.29 7.29 0 0 1 2.61 3.48c.34 1.1.16 1.97-.28 2.46Z",fill:"white",stroke:"#515151"}),e.createElement("mask",{id:"mask_failure_130_526","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:98,y:44,width:36,height:27},e.createElement("path",{d:"M130.53 62.1c-.5-3.3-9.52-14.75-16.08-15.03l-12.68 4.52 6.47 14.16 17.25 3.07c1.84-1.14 5.43-4.07 5.04-6.72Z",fill:"#C4C4C4"})),e.createElement("g",{mask:"url(#mask_failure_130_526)"},e.createElement("path",{d:"M127.2 63.62a9.74 9.74 0 0 1-13.76.5 9.74 9.74 0 0 1-.32-13.77 9.74 9.74 0 0 1 13.77-.5 9.74 9.74 0 0 1 .32 13.77Z",fill:"white",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m116.79 47.35-.02.37c2.86.5 8.57 2.59 8.58 6.87 0 5.36-7.44 9.34-14.47 3.46-.34-.28-.66-.53-.95-.74a10.09 10.09 0 0 0 3.17 7.17 10.24 10.24 0 0 0 14.47-.52 10.24 10.24 0 0 0-.34-14.47 10.16 10.16 0 0 0-10.44-2.14Z",fill:"#515151"}),e.createElement("path",{d:"M119.34 55a.79.79 0 1 0-1.1-1.12.79.79 0 0 0 1.1 1.12Z",fill:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.98 50.72c.21-.09.45.01.54.22a7.87 7.87 0 0 0 1.84 2.65.41.41 0 1 1-.55.62 8.67 8.67 0 0 1-2.05-2.95.41.41 0 0 1 .22-.54Z",fill:"#515151"}),e.createElement("path",{d:"M114.85 52.4a.79.79 0 1 0-1.1-1.1.79.79 0 0 0 1.1 1.1Z",fill:"#515151"}),e.createElement("mask",{id:"path-18-inside-1",fill:"white"},e.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)"})),e.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)",fill:"white"}),e.createElement("path",{d:"m128.42 60.04.01-.01a.03.03 0 0 1 .02 0l-4.12 4.37a5.98 5.98 0 0 0 8.45-.25l-4.36-4.11Zm.03 0v.02l-4.37-4.11a5.98 5.98 0 0 0 .25 8.45l4.12-4.37Zm0 .03h-.01a.03.03 0 0 1-.02 0l4.12-4.37a5.98 5.98 0 0 0-8.46.25l4.37 4.12Zm-.03 0v-.03l4.37 4.11a5.98 5.98 0 0 0-.25-8.45l-4.12 4.37Z",fill:"#515151",mask:"url(#path-18-inside-1)"})),e.createElement("path",{d:"M145.63 40.19c1.37-2.75 12.75 2.35 16.14 6.78 3.38 4.43 1.48 10.74-1.9 9.68-6.69-2.12-7.56-6.7-7.94-9.48-1.2-1.85-7.67-4.24-6.3-6.98Z",fill:"white",stroke:"#515151"}),e.createElement("path",{d:"m158.95 41.56 6.64 2.52 1.66 12.47-8.3 1.98-3.47-12.03 3.47-4.94Z",fill:"white"}),e.createElement("path",{d:"M167.3 151.94c5.19 1.66 23.35 35.57 19.05 35.57-13.86 0-34.5.53-71.42.53-15.63 0-17.9-5.16-11.79-22.08a353.23 353.23 0 0 1 6.14-15.76l32.5 1.26c-.43 1.53-.91 3.07-1.38 4.4a26.82 26.82 0 0 1 8.73-1.47c5.27 0 7.04 1.4 11.77 0 2.13-.62 4.8-2.97 6.4-2.45Z",fill:"white",className:""}),e.createElement("path",{d:"M140.4 155.87c.47-1.34.95-2.88 1.38-4.4l-32.5-1.27a353.23 353.23 0 0 0-6.14 15.76c-6.1 16.92-3.84 22.08 11.79 22.08 36.93 0 57.56-.53 71.42-.53 4.3 0-13.86-33.91-19.06-35.57-1.6-.52-4.26 1.83-6.4 2.45-4.72 1.4-6.5 0-11.76 0-3.08 0-6.06.55-8.72 1.48Zm0 0a26.67 26.67 0 0 1-4.44 8.38c-1.7 2.22-3.99 4.43-5.43 4.33-1.44-.1-1.42-3.18 0-5.66 1.97-3.44 6.45-5.87 9.88-7.05Z",stroke:"#1C1F23",className:""}),e.createElement("path",{d:"M149.25 131.7s3.36 19.46-12.34 21.04c-11.53 1.15-40.77-4.55-53.76-7.79 4.72 12.82 9.61 39.86 7 42.16-3.33 2.93-47.55 1.76-55.96 0-8.42-1.75 13.82-11.46 15.45-14.66 2.99-5.84-5.48-21.18-5.75-45.45-.27-24.27 18.18-24.86 34.47-21.64 13.02 2.57 41.63 18.33 52.56 26.86l18.33-.52Z",fill:"white",stroke:"#515151"}),e.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151",className:"__web-inspector-hide-shortcut__"}),e.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151"}),e.createElement("path",{d:"M126.02 142.7c-3.1-2.99-4.99-7.5-4.16-12.35",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.6 95.65c-9.03-10.98-18.97-19.74-25.5-24.56l1.63-2.22c6.7 4.95 16.81 13.86 26 25.02 9.18 11.16 17.54 24.67 20.59 38.83l-2.7.59c-2.91-13.56-10.97-26.67-20.02-37.66Z",fill:"#515151"}),e.createElement("path",{d:"m149.12 107.09-16.36 13.2 22.27 17.8 8.87-19.19c-.14-3.93-2.34-5.34-5.83-4.66l-3.12-2.5c.08-3.5-2.18-5.64-5.83-4.65Z",fill:"#E6E8EA"}),e.createElement("path",{d:"m148.24 128.62 9.45-14.34-2.91-2.33-10.94 13.07 4.4 3.6Z",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M143.67 127.98a6.93 6.93 0 1 1-10.82-8.65 6.93 6.93 0 0 1 10.82 8.65Zm12.28 9.82a6.93 6.93 0 1 1-10.82-8.66 6.93 6.93 0 0 1 10.82 8.66Z",fill:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.43 123.46 9.21-1.8.32 1.61-9.2 1.81-.33-1.62Z",fill:"white"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m145.5 133.11 9.21-1.8.32 1.62-9.2 1.8-.33-1.62Z",fill:"white"}),e.createElement("defs",null,e.createElement("clipPath",{id:"clip_failure_96_39_65"},e.createElement("rect",{width:44.4004,height:44.4627,transform:"matrix(0.963965 -0.266028 0.266198 0.963918 18.4214 34.6221)",fill:"white"}))))}var oe=ce;const me=({packages:t})=>a.jsx("div",{children:t.map(({name:l,size:i},r)=>{const s=(i/1024/1024).toFixed(2)+"MB",p=i<=4*1024*1024;return a.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:6,backgroundColor:p?"#E8F5E9":"#FCE4EC",marginBottom:r===t.length-1?0:8,width:"fit-content"},children:[a.jsxs(o.Text,{style:{fontWeight:600,fontSize:14},children:[l,":"]}),a.jsx(o.Text,{style:{color:p?"#4CAF50":"#F44336",fontWeight:600},children:s}),a.jsx(o.Text,{type:"tertiary",style:{marginLeft:8},children:p?n("notExceedIndependentPkgSizeLimit",{limit:"4MB"}):n("exceedIndependentPkgSizeLimit",{limit:"4MB"})})]},l)})}),de=({size:t,limit:l})=>{const i=(t/1024/1024).toFixed(2)+"MB",r=t<=l*1024*1024,s=r?n("notExceedSizeLimit",{limit:l+"MB"}):n("exceedSizeLimit",{limit:l+"MB"});return a.jsxs("div",{style:{display:"flex",alignItems:"center",width:"fit-content",padding:"2px 8px",borderRadius:6,backgroundColor:r?"#E8F5E9":"#FCE4EC"},children:[a.jsx(o.Text,{style:{fontWeight:600,color:r?"#4CAF50":"#F44336"},children:i}),a.jsx(o.Text,{type:"tertiary",style:{marginLeft:8},children:s})]})},pe=({packages:t,limit:l})=>{const i=t.find(c=>c.type==="main")?.size,r=(i/1024/1024).toFixed(2)+"MB",s=i<=l*1024*1024,p=s?n("notExceedMainPkgSizeLimit",{limit:l+"MB"}):n("exceedMainPkgSizeLimit",{limit:l+"MB"});return a.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",width:"fit-content",borderRadius:6,backgroundColor:s?"#E8F5E9":"#FCE4EC"},children:[a.jsx(o.Text,{style:{fontWeight:600,color:s?"#4CAF50":"#F44336"},children:r}),a.jsx(o.Text,{type:"tertiary",style:{marginLeft:8},children:p})]})},he=({domains:t=[]})=>t?.length?a.jsx(q,{style:{flexWrap:"wrap"},children:t.map(l=>a.jsx(K,{children:l},l))}):a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("trustDomainEmptyTip")})}),fe=({termsOfServiceLink:t})=>{const l=n("termsLabel");return t?a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-value",children:t})]}):a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("termsOfServiceEmptyTip")})})]})},ye=({privacyPolicyLink:t})=>{const l=n("privacyLabel");return t?a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-value",children:t})]}):a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("privacyPolicyEmptyTip")})})]})},ue=()=>a.jsx(Y,{style:{marginBottom:32},fullMode:!1,icon:null,closeIcon:null,description:a.jsxs("div",{children:[a.jsx(o,{style:{marginBottom:8},children:n("projectInfoDesc")}),a.jsx(o,{children:n("projectInfoDescTip")})]}),type:"info"}),ge=({logo:t,placeholder:l})=>{if(!t?.trim())return a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("gameIconEmptyTip")})});const[i,r]=e.useState(!1);return a.jsxs("div",{style:{width:100,height:100,borderRadius:4,overflow:"hidden",position:"relative",background:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center"},children:[!i&&(l||a.jsx("div",{style:{width:"100%",height:"100%",background:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",color:"#aaa",fontSize:14}})),a.jsx("img",{src:t,alt:"logo",style:{width:"100%",height:"100%",borderRadius:4,objectFit:"cover",position:"absolute",top:0,left:0,opacity:i?1:0,transition:"opacity 0.3s"},onLoad:()=>r(!0)})]})},ve=({description:t})=>t?a.jsx(o.Text,{style:{fontSize:14},children:t}):a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("gameDescEmptyTip")})}),xe=({errorMsg:t})=>a.jsxs("div",{className:"error-display",children:[a.jsx(oe,{}),a.jsx("div",{className:"error-display-content",children:a.jsx(o.Text,{style:{fontSize:14},children:t})})]}),Me=()=>{const{state:{gameDetail:t,user:l,packages:i,engine:r},setGameDetail:s}=J(),[p,c]=e.useState(!0),[h,y]=e.useState(!1),[f,g]=e.useState(""),v=({errorCode:u,errorMsg:Z,clientKey:x})=>{c(!1),y(!0),u===404?g(n("getDevGameDetailNotFound",{clientKey:x})):u===403?g(n("gameDetailNoPermission",{clientKey:x})):u===401?l?.user_id?g(n("gameLoginExpired",{clientKey:x})):g(n("gameDetailNotLogin",{clientKey:x})):l?.user_id&&g(n("gameLoginExpired",{clientKey:x}))};e.useEffect(()=>{if(t&&!t.has_error){c(!1);return}t?.has_error&&(y(!0),v({errorCode:t.error_code,errorMsg:t.error_msg,clientKey:t.client_key})),Q({url:"/game/detail",method:"GET"}).then(u=>{if(u?.error)c(!1),v(u.error);else{const{data:Z}=u;s(Z),c(!1)}})},[]);const _=e.useMemo(()=>{if(!t||t?.has_error)return[];const{name:u,client_key:Z,size:x,description:F,request_allowed_domains:B}=t,k=r==="unity",w=i?.length>0?i:t.packages??[],$=w.reduce((E,G)=>E+(G?.size??0),0)||x,A=k?60:30,P=w.filter(E=>E.type==="independent"),W=w.some(E=>E.type==="main");return[{key:n("gameName"),value:()=>u?.trim()?a.jsx(o.Text,{style:{fontWeight:"bold"},children:u}):a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("gameNameEmptyTip")})})},{key:n("gameIcon"),value:()=>a.jsx(ge,{logo:t.display_icon_url||""})},{key:n("gameID"),value:()=>a.jsx(o.Text,{children:Z})},{key:n("gameDesc"),value:()=>a.jsx(ve,{description:F})},{key:n("gameSize"),value:()=>a.jsx(de,{size:$,limit:A})},{key:n("gameMainPackageSize"),hidden:k||!W,value:()=>a.jsx(pe,{packages:w,limit:4})},{key:n("gameIndependentPackageSize"),hidden:k||P.length===0,value:()=>a.jsx(me,{packages:P})},{key:n("gameTrustDomains"),value:()=>a.jsx(he,{domains:B})},{key:n("gameTermsAndPrivacy"),value:()=>a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[a.jsx(fe,{termsOfServiceLink:t.terms_of_service_link}),a.jsx(ye,{privacyPolicyLink:t.privacy_policy_link})]})}].filter(E=>!E.hidden)},[r,t,i]);return p&&!t?a.jsx("div",{className:"game-detail-loading-container",children:a.jsx(ee,{size:"large"})}):h?a.jsx(xe,{errorMsg:f}):_.length===0?null:a.jsxs("div",{className:"game-detail-container",children:[a.jsx(ue,{}),a.jsx(N,{data:_,align:"left",size:"small"})]})};export{Me as ProjectDetail};
1
+ import{B as U,R as d,r as e,g as T,P as m,a as V,b as X,_ as z,c as H,j as a,T as o,i as n,S as q,d as K,e as Y,u as J,f as Q,h as ee}from"./index-BGB_3rmy.js";const R={PREFIX:`${U}-descriptions`},S={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"],LAYOUT_SET:["horizontal","vertical"]},O=d.createContext(null);var te=function(t,l){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&l.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)l.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(i[r[s]]=t[r[s]]);return i};const j=R.PREFIX,L=`${j}-key`,I=`${j}-value`;class b extends e.PureComponent{render(){const l=this.props,{itemKey:i,hidden:r,className:s,span:p,style:c,children:h}=l,y=te(l,["itemKey","hidden","className","span","style","children"]),{align:f,layout:g}=this.context;if(r)return null;const v=d.createElement("td",{className:`${j}-item`,colSpan:p||1},d.createElement("span",{className:L},i,":"),d.createElement("span",{className:I},typeof h=="function"?h():h)),_=d.createElement(d.Fragment,null,d.createElement("th",{className:`${j}-item ${j}-item-th`},d.createElement("span",{className:L},i)),d.createElement("td",{className:`${j}-item ${j}-item-td`,colSpan:p?p*2-1:1},d.createElement("span",{className:I},typeof h=="function"?h():h))),u=f==="plain"?d.createElement("tr",Object.assign({className:s,style:c},T(y)),v):d.createElement("tr",Object.assign({className:s,style:c},T(y)),_);return g==="horizontal"?f==="plain"?v:_:u}}b.propTypes={itemKey:m.node,hidden:m.bool,className:m.string,style:m.object};b.contextType=O;class ae extends V{constructor(l){super(Object.assign({},l))}getHorizontalList(){const{column:l,data:i,children:r}=this.getProps(),s=this._adapter.getColumns(),p=[],c={totalSpan:0,itemList:[]};for(const h of s)c.totalSpan+=h.span||1,c.itemList.push(h),c.totalSpan>=l&&(p.push(c.itemList),c.itemList=[],c.totalSpan=0);if(c.itemList.length!=0){const h=c.itemList[c.itemList.length-1];if(isNaN(h.span)){let y=0;c.itemList.forEach(f=>y+=isNaN(f.span)?1:f.span),y<l&&(h.span=l-y+1)}p.push(c.itemList)}return p}}var le=function(t,l){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&l.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)l.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(i[r[s]]=t[r[s]]);return i};const M=R.PREFIX;class N extends X{constructor(l){super(l),this.renderChildrenList=()=>{const i=this.props,{layout:r,data:s,children:p}=i;return r==="horizontal"?this.foundation.getHorizontalList().map((h,y)=>d.createElement("tr",{key:y},h.map((f,g)=>z(f)?d.createElement(b,Object.assign({itemKey:f.key},f,{key:y+"-"+g}),f.value):null))):s&&s.length?s.map((c,h)=>z(c)?d.createElement(b,Object.assign({itemKey:c.key},c,{key:h}),c.value):null):p},this.foundation=new ae(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{getColumns:()=>{var l,i;return!((l=this.props.data)===null||l===void 0)&&l.length?this.props.data:this.props.children?(i=d.Children.toArray(this.props.children))===null||i===void 0?void 0:i.map(r=>e.isValidElement(r)?Object.assign({value:r.props.children},r.props):[]):[]}})}render(){const l=this.props,{align:i,row:r,size:s,className:p,style:c,children:h,data:y,layout:f}=l,g=le(l,["align","row","size","className","style","children","data","layout"]),v=H(M,p,{[`${M}-${i}`]:!r,[`${M}-double`]:r,[`${M}-double-${s}`]:r,[`${M}-horizontal`]:f==="horizontal",[`${M}-vertical`]:f==="vertical"});return d.createElement("div",Object.assign({className:v,style:c},T(g)),d.createElement("table",null,d.createElement("tbody",null,d.createElement(O.Provider,{value:{align:i,layout:f}},this.renderChildrenList()))))}}N.Item=b;N.contextType=O;N.propTypes={align:m.oneOf(S.ALIGN_SET),row:m.bool,size:m.oneOf(S.SIZE_SET),style:m.object,className:m.string,data:m.arrayOf(m.shape({key:m.node,value:m.oneOfType([m.node,m.func]),hidden:m.bool,className:m.string,style:m.object})),layout:m.oneOf(S.LAYOUT_SET),column:m.number};N.defaultProps={align:"center",row:!1,size:"medium",data:[],layout:"vertical",column:3};var re=Object.defineProperty,C=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,D=(t,l,i)=>l in t?re(t,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[l]=i,ne=(t,l)=>{for(var i in l||(l={}))ie.call(l,i)&&D(t,i,l[i]);if(C)for(var i of C(l))se.call(l,i)&&D(t,i,l[i]);return t};function ce(t){return e.createElement("svg",ne({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},t),e.createElement("rect",{width:200,height:200,fill:"transparent"}),e.createElement("path",{d:"M74.7 78.6c20.78-6.32 57.55-12.26 71.81-9.86 4.21.7 8.12 1.98 11.36 3.42-.51-1.69-.95-3.5-1.38-5.3l-.04-.18c-1.03-4.27-2.05-8.44-3.95-10.55-4.8-5.32.67-10.12.67-10.12l.93-10.53c13.02 4.82 21.65 14.92 27 25.08 4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1.64 2.18 5.44 19.18 7.53 32.66l-46.15.58-7.58-14.68-4.66-12.26c-19.46 7.46-50.77 19.02-64.9 18.44-10.35-.42-15.68-15.68-17.44-28.7a71.55 71.55 0 0 1-.67-9.4c0-5.64.3-12.18 2.22-17.89.74-2.21 1.73-4.3 3.04-6.17a18.1 18.1 0 0 1 4.6-4.59c0 4-1.02 13.54 2.8 14.12 5.06.78 10.4-9.08 13.85-7.06 3.87 2.27-1.65 16.34-1.33 17.2.27.7.53 1.4.76 2.07a48.99 48.99 0 0 1 2.25 8.55C46.59 87.56 60 83.06 74.69 78.6Z",fill:"white"}),e.createElement("path",{d:"M181.1 60.56c4.57 8.67 6.75 17.37 7.25 22.89 1.06 12-8.18 18.86-19.2 18.86-9.74 0-18.36-1.64-24.81-3.1m36.77-38.65c-5.36-10.16-13.99-20.26-27-25.08l-.94 10.53s-5.46 4.8-.67 10.12c1.9 2.11 2.92 6.28 3.95 10.55m24.66-6.12c-6-.37-18.32.8-24.66 6.12m0 0c1.57 6.53 3.15 13.3 7.91 13.3 7.2 0-3.6-8.84-17.85-11.24-14.25-2.4-51.03 3.54-71.82 9.86-20.78 6.32-39.04 12.71-42.77 19.1-3.63 6.23 13.24 10.92 4.49-14.17m0 0c-.23-.67-.49-1.36-.76-2.08-.32-.85 5.2-14.92 1.33-17.19-3.45-2.02-8.8 7.84-13.85 7.06-3.82-.58-2.8-10.12-2.8-14.12a18.1 18.1 0 0 0-4.6 4.6M36.4 83.52c-7.27 1.58-21.92 8.1-25.27 11.73m0 0a71.55 71.55 0 0 1-.67-9.41c0-5.64.3-12.18 2.22-17.89m-1.55 27.3c1.76 13 7.09 28.27 17.45 28.7 14.12.57 45.43-10.99 64.89-18.45l4.66 12.26 7.58 14.68 46.15-.58c-2.09-13.48-6.89-30.48-7.53-32.67M15.73 61.8c-.98 3-1.08 5.5.19 7.8m-.2-7.8a24.08 24.08 0 0 0-3.03 6.16m0 0a5.43 5.43 0 0 0 1.25 4.22m130.4 27.02c-.9-3.08-3.12-9.95-4.76-12.76",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m156.89 15.66-2.04 27.96 2.57 28.1c-7.51-3.07-13.32-4.34-27.25-3.36-11.94.83-31.75 3.95-46.23 7.62-16.66 4.27-37.81 11.64-45.21 15.9-.77-4.64-2.92-10.15-2.92-10.15-.07-.7 2.63-8.32 2.73-13.06.08-3.08-.91-4.45-2.33-4.75a3.47 3.47 0 0 0-2.05.35c-.63.32-.86.48-1.38.84-1.34.98-2.38 2.02-3.95 3.34a17.14 17.14 0 0 1-3.04 2.17 4.6 4.6 0 0 1-2.89.63c-.63-.1-1.21-.47-1.71-1.58l-.07-.89c-.5-5.79-2.7-20.12-2.7-34.91 0-7.74 1.61-10.04 2.7-11.59l.13-.18c3.85-5.53 13.67-6.75 23.12-6.96 2.5-.14 5.2-.2 8.1-.17l.11.15H53.15l-.52.07 18.32 25.49-3.62 14.08 10.2 15.98-2.84-16.49 10-11.99-3.5-27.7s8.78-.5 19.47-1.77c10.69-1.28 18.47-1.9 29.42-1.83 1.64.01 3.4.1 5.23.22 9.64.65 18.55 2.56 21.46 4.4l.13.09h-.01Z",fill:"var(--semi-color-primary-light-default)"}),e.createElement("path",{d:"M143 27.91a1.38 1.38 0 0 1 1.77-.85c.5.18.98.41 1.44.71a1.38 1.38 0 0 1-1.53 2.31c-.26-.17-.53-.3-.82-.4a1.38 1.38 0 0 1-.85-1.77Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M140.65 28.12c.21.74-.21 1.5-.95 1.72-.36.1-.73.22-1.11.36a1.38 1.38 0 1 1-.95-2.6c.43-.16.87-.3 1.3-.43.74-.2 1.5.22 1.71.95Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M134.74 30.4c.37.67.14 1.51-.53 1.89l-1.07.62a1.38 1.38 0 1 1-1.41-2.38l1.12-.65a1.38 1.38 0 0 1 1.89.52Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M97.86 31.43h.76a1.38 1.38 0 1 1-.06 2.77h-.52a6.7 6.7 0 0 0-.57.1 1.38 1.38 0 0 1-.64-2.68c.33-.08.64-.14.94-.18l.09-.01Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M147.78 31.75c.73-.23 1.5.19 1.72.92.13.43.25.88.35 1.35a1.38 1.38 0 0 1-2.7.58c-.1-.4-.19-.78-.3-1.13-.22-.73.2-1.5.93-1.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M102.27 33.13c.19-.75.94-1.2 1.68-1.01.45.11.89.23 1.3.37a1.38 1.38 0 0 1-.84 2.63c-.36-.11-.73-.22-1.13-.32a1.38 1.38 0 0 1-1-1.67Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M129.3 33.68c.42.64.25 1.5-.4 1.92l-.52.34-.53.36a1.38 1.38 0 0 1-1.53-2.31l.32-.21.21-.14.3-.2.23-.15c.64-.42 1.5-.25 1.92.39Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M108.25 35.22c.36-.67 1.2-.92 1.88-.55a246.5 246.5 0 0 1 1.11.61 1.38 1.38 0 0 1-1.33 2.43l-.5-.28h-.01l-.6-.34a1.38 1.38 0 0 1-.55-1.87Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M92.83 35.77c.76-.01 1.4.6 1.4 1.36.01.16.03.34.07.55a1.38 1.38 0 1 1-2.7.58 5.62 5.62 0 0 1-.13-1.08c-.01-.76.6-1.4 1.36-1.4Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M124 37.2c.31.7 0 1.51-.7 1.82a6.07 6.07 0 0 1-1.44.45 1.38 1.38 0 1 1-.67-2.68l.58-.16c.1-.03.24-.07.42-.15.7-.3 1.51.02 1.82.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M113.9 38.14c.15-.75.89-1.22 1.63-1.06.35.07.72.13 1.1.16a1.38 1.38 0 0 1-.26 2.76c-.49-.05-.96-.12-1.41-.22a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M148.98 37.95c.76-.01 1.4.6 1.4 1.36a38.45 38.45 0 0 1 0 1.42 1.38 1.38 0 0 1-2.77-.08 24.28 24.28 0 0 0 0-1.3c0-.76.6-1.39 1.37-1.4Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M148.6 44.88c.75.16 1.22.9 1.06 1.65-.1.47-.22.94-.34 1.41a1.38 1.38 0 1 1-2.68-.7c.12-.43.22-.87.31-1.3.17-.75.9-1.22 1.65-1.06Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M146.69 51.6c.7.31 1 1.13.7 1.83-.2.44-.41.88-.63 1.31a1.38 1.38 0 0 1-2.48-1.24c.2-.4.4-.8.58-1.2.31-.7 1.13-1.01 1.83-.7Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M41.67 55.45c.07.77-.5 1.44-1.25 1.5-.43.04-.86.1-1.26.19a1.38 1.38 0 1 1-.54-2.72c.5-.1 1.02-.17 1.55-.22.76-.07 1.43.5 1.5 1.25Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M44.58 55.78c.22-.73 1-1.15 1.72-.93l.74.23a1.38 1.38 0 1 1-.9 2.62l-.62-.2a1.38 1.38 0 0 1-.94-1.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M91.9 56.9c.05.76-.52 1.42-1.29 1.47-.44.02-.89.06-1.32.11a1.38 1.38 0 0 1-.31-2.75c.48-.05.96-.1 1.45-.13.77-.05 1.42.53 1.47 1.3Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M94.72 56.95c.07-.76.74-1.33 1.5-1.26l1.43.14a1.38 1.38 0 0 1-.32 2.75c-.45-.05-.9-.1-1.35-.13a1.38 1.38 0 0 1-1.26-1.5Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M101.64 57.83c.16-.75.9-1.22 1.64-1.07l1.39.31a1.38 1.38 0 1 1-.62 2.7l-1.34-.3a1.38 1.38 0 0 1-1.07-1.64Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M34.85 57.26c.48.6.39 1.46-.2 1.94-.33.27-.63.55-.9.84a1.38 1.38 0 0 1-2.03-1.89c.36-.39.76-.75 1.18-1.1.6-.48 1.46-.39 1.95.2Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M85 57.9c.29.71-.06 1.51-.78 1.8a15.8 15.8 0 0 0-1.26.54 1.38 1.38 0 1 1-1.15-2.52 71.64 71.64 0 0 1 1.4-.6c.71-.28 1.52.07 1.8.78Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M143.4 57.76c.61.47.72 1.34.26 1.95-.3.39-.62.77-.94 1.14a1.38 1.38 0 0 1-2.09-1.81 24 24 0 0 0 .84-1.03c.47-.6 1.33-.71 1.94-.25Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M108.43 59.46c.22-.74.99-1.15 1.72-.93l1.35.41a1.38 1.38 0 1 1-.82 2.64l-1.32-.4a1.38 1.38 0 0 1-.93-1.72Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M115.08 61.58a1.38 1.38 0 0 1 1.77-.82l1.32.48a1.38 1.38 0 0 1-.97 2.6c-.43-.17-.87-.33-1.3-.48a1.38 1.38 0 0 1-.82-1.78Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M138.67 62.89c.42.64.25 1.5-.4 1.92-.41.27-.85.54-1.29.78a1.38 1.38 0 0 1-1.32-2.43c.37-.2.73-.43 1.1-.66.63-.42 1.49-.25 1.91.39Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M30.5 62.78c.77.07 1.33.74 1.26 1.5l-.03.59.01.75-1.6 1.4a1.38 1.38 0 0 1-1.16-1.32l-.02-.83c0-.28.02-.56.04-.84.07-.76.75-1.32 1.5-1.25Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M121.6 64.07c.3-.7 1.1-1.04 1.8-.75a146.8 146.8 0 0 1 1.26.52 1.38 1.38 0 1 1-.97 2.59 19.62 19.62 0 0 1-1.35-.55c-.7-.3-1.04-1.1-.74-1.81Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M72.11 64.94c.48.6.4 1.47-.2 1.95-.38.3-.74.62-1.09.92A1.38 1.38 0 1 1 69 65.73c.37-.33.76-.66 1.17-.99.59-.48 1.46-.39 1.94.2Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M132.4 65.92c.09.76-.46 1.44-1.22 1.53-.5.05-1.02.08-1.53.09a1.38 1.38 0 1 1-.02-2.77c.42 0 .84-.03 1.25-.07.76-.09 1.44.46 1.53 1.22Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M66.66 69.9c.57.52.6 1.4.09 1.96l-.73.8-.02.02-.16.18-.08.09a1.38 1.38 0 0 1-2.05-1.86l.25-.28.75-.82c.51-.56 1.39-.6 1.95-.09Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M61.6 75.28c.45.61.31 1.48-.3 1.93-.44.31-.88.61-1.36.89a1.38 1.38 0 1 1-1.4-2.4c.4-.22.77-.46 1.12-.72a1.38 1.38 0 0 1 1.94.3Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M37.67 75.97c.42.19.86.37 1.35.53a1.38 1.38 0 0 1-.89 2.62c-.56-.19-1.1-.4-1.6-.63l.72-2.63c.14.01.28.05.42.11Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M55.05 78.57c.12.75-.4 1.46-1.15 1.58-.5.08-1 .15-1.54.2a1.38 1.38 0 1 1-.28-2.75c.49-.05.95-.11 1.39-.18.75-.12 1.46.4 1.58 1.15Z",fill:"var(--semi-color-primary)"}),e.createElement("path",{d:"M43.4 78.87c.06-.76.73-1.33 1.49-1.27a38.43 38.43 0 0 0 1.5.1 1.38 1.38 0 1 1-.12 2.76 62.94 62.94 0 0 1-1.6-.1 1.38 1.38 0 0 1-1.27-1.49Z",fill:"var(--semi-color-primary)"}),e.createElement("g",{clipPath:"url(#clip_failure_96_39_65)"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.9 46.87a13.45 13.45 0 0 1 9.37-16.53 13.46 13.46 0 0 1 16.52 9.39c2.64 9.56-4.76 29.27-5.14 29.9a.75.75 0 0 1-.99.27c-.64-.34-17.11-13.47-19.76-23.03Zm14.36 1.54a6.1 6.1 0 0 1-3.25-11.75 6.1 6.1 0 0 1 3.25 11.75Z",fill:"var(--semi-color-primary)"})),e.createElement("path",{d:"M102.31 100.69c-2.8 1.55-5.63 2.85-9.36 4.58l1.48 3.92c2.14-.96 6.16-6.03 7.88-8.5Z",fill:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M121 63.04c8.85 2.1 12.43-6.5 13.12-8.77.68-2.27-5.6-11.86-8-11.2l-.42.12-.23.06c-3.1.82-11.15 2.94-12.35 8-1.3 5.46 2.4 10.49 7.88 11.79Z",fill:"#515151"}),e.createElement("path",{d:"M134.5 64.73c-.43.47-1.2.74-2.33.73a12.7 12.7 0 0 1-4.06-.86 31.25 31.25 0 0 1-9.94-6.22c-3.25-2.97-5.97-5.8-7.59-8.42-1.61-2.61-2.05-4.88-.98-6.84a3.7 3.7 0 0 1 2.11-1.86 4.53 4.53 0 0 1 2.9.15c2.16.76 4.57 2.83 6.48 6.02 3.4 5.63 6.89 8.23 9.7 10.33.49.35.95.7 1.38 1.03a7.29 7.29 0 0 1 2.61 3.48c.34 1.1.16 1.97-.28 2.46Z",fill:"white",stroke:"#515151"}),e.createElement("mask",{id:"mask_failure_130_526","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:98,y:44,width:36,height:27},e.createElement("path",{d:"M130.53 62.1c-.5-3.3-9.52-14.75-16.08-15.03l-12.68 4.52 6.47 14.16 17.25 3.07c1.84-1.14 5.43-4.07 5.04-6.72Z",fill:"#C4C4C4"})),e.createElement("g",{mask:"url(#mask_failure_130_526)"},e.createElement("path",{d:"M127.2 63.62a9.74 9.74 0 0 1-13.76.5 9.74 9.74 0 0 1-.32-13.77 9.74 9.74 0 0 1 13.77-.5 9.74 9.74 0 0 1 .32 13.77Z",fill:"white",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m116.79 47.35-.02.37c2.86.5 8.57 2.59 8.58 6.87 0 5.36-7.44 9.34-14.47 3.46-.34-.28-.66-.53-.95-.74a10.09 10.09 0 0 0 3.17 7.17 10.24 10.24 0 0 0 14.47-.52 10.24 10.24 0 0 0-.34-14.47 10.16 10.16 0 0 0-10.44-2.14Z",fill:"#515151"}),e.createElement("path",{d:"M119.34 55a.79.79 0 1 0-1.1-1.12.79.79 0 0 0 1.1 1.12Z",fill:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.98 50.72c.21-.09.45.01.54.22a7.87 7.87 0 0 0 1.84 2.65.41.41 0 1 1-.55.62 8.67 8.67 0 0 1-2.05-2.95.41.41 0 0 1 .22-.54Z",fill:"#515151"}),e.createElement("path",{d:"M114.85 52.4a.79.79 0 1 0-1.1-1.1.79.79 0 0 0 1.1 1.1Z",fill:"#515151"}),e.createElement("mask",{id:"path-18-inside-1",fill:"white"},e.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)"})),e.createElement("ellipse",{rx:2.97818,ry:2.97818,transform:"matrix(0.727696 0.6859 -0.685903 0.727693 128.435 60.0508)",fill:"white"}),e.createElement("path",{d:"m128.42 60.04.01-.01a.03.03 0 0 1 .02 0l-4.12 4.37a5.98 5.98 0 0 0 8.45-.25l-4.36-4.11Zm.03 0v.02l-4.37-4.11a5.98 5.98 0 0 0 .25 8.45l4.12-4.37Zm0 .03h-.01a.03.03 0 0 1-.02 0l4.12-4.37a5.98 5.98 0 0 0-8.46.25l4.37 4.12Zm-.03 0v-.03l4.37 4.11a5.98 5.98 0 0 0-.25-8.45l-4.12 4.37Z",fill:"#515151",mask:"url(#path-18-inside-1)"})),e.createElement("path",{d:"M145.63 40.19c1.37-2.75 12.75 2.35 16.14 6.78 3.38 4.43 1.48 10.74-1.9 9.68-6.69-2.12-7.56-6.7-7.94-9.48-1.2-1.85-7.67-4.24-6.3-6.98Z",fill:"white",stroke:"#515151"}),e.createElement("path",{d:"m158.95 41.56 6.64 2.52 1.66 12.47-8.3 1.98-3.47-12.03 3.47-4.94Z",fill:"white"}),e.createElement("path",{d:"M167.3 151.94c5.19 1.66 23.35 35.57 19.05 35.57-13.86 0-34.5.53-71.42.53-15.63 0-17.9-5.16-11.79-22.08a353.23 353.23 0 0 1 6.14-15.76l32.5 1.26c-.43 1.53-.91 3.07-1.38 4.4a26.82 26.82 0 0 1 8.73-1.47c5.27 0 7.04 1.4 11.77 0 2.13-.62 4.8-2.97 6.4-2.45Z",fill:"white",className:""}),e.createElement("path",{d:"M140.4 155.87c.47-1.34.95-2.88 1.38-4.4l-32.5-1.27a353.23 353.23 0 0 0-6.14 15.76c-6.1 16.92-3.84 22.08 11.79 22.08 36.93 0 57.56-.53 71.42-.53 4.3 0-13.86-33.91-19.06-35.57-1.6-.52-4.26 1.83-6.4 2.45-4.72 1.4-6.5 0-11.76 0-3.08 0-6.06.55-8.72 1.48Zm0 0a26.67 26.67 0 0 1-4.44 8.38c-1.7 2.22-3.99 4.43-5.43 4.33-1.44-.1-1.42-3.18 0-5.66 1.97-3.44 6.45-5.87 9.88-7.05Z",stroke:"#1C1F23",className:""}),e.createElement("path",{d:"M149.25 131.7s3.36 19.46-12.34 21.04c-11.53 1.15-40.77-4.55-53.76-7.79 4.72 12.82 9.61 39.86 7 42.16-3.33 2.93-47.55 1.76-55.96 0-8.42-1.75 13.82-11.46 15.45-14.66 2.99-5.84-5.48-21.18-5.75-45.45-.27-24.27 18.18-24.86 34.47-21.64 13.02 2.57 41.63 18.33 52.56 26.86l18.33-.52Z",fill:"white",stroke:"#515151"}),e.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151",className:"__web-inspector-hide-shortcut__"}),e.createElement("path",{d:"M141.5 153.87c-3.11 2.55-27.72 5-35.58 3.53l2.75-6.8c20.23 2.85 28.08 3.34 33.46 1.16l-.63 2.11Z",fill:"#515151"}),e.createElement("path",{d:"M126.02 142.7c-3.1-2.99-4.99-7.5-4.16-12.35",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M130.6 95.65c-9.03-10.98-18.97-19.74-25.5-24.56l1.63-2.22c6.7 4.95 16.81 13.86 26 25.02 9.18 11.16 17.54 24.67 20.59 38.83l-2.7.59c-2.91-13.56-10.97-26.67-20.02-37.66Z",fill:"#515151"}),e.createElement("path",{d:"m149.12 107.09-16.36 13.2 22.27 17.8 8.87-19.19c-.14-3.93-2.34-5.34-5.83-4.66l-3.12-2.5c.08-3.5-2.18-5.64-5.83-4.65Z",fill:"#E6E8EA"}),e.createElement("path",{d:"m148.24 128.62 9.45-14.34-2.91-2.33-10.94 13.07 4.4 3.6Z",stroke:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M143.67 127.98a6.93 6.93 0 1 1-10.82-8.65 6.93 6.93 0 0 1 10.82 8.65Zm12.28 9.82a6.93 6.93 0 1 1-10.82-8.66 6.93 6.93 0 0 1 10.82 8.66Z",fill:"#515151"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m133.43 123.46 9.21-1.8.32 1.61-9.2 1.81-.33-1.62Z",fill:"white"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m145.5 133.11 9.21-1.8.32 1.62-9.2 1.8-.33-1.62Z",fill:"white"}),e.createElement("defs",null,e.createElement("clipPath",{id:"clip_failure_96_39_65"},e.createElement("rect",{width:44.4004,height:44.4627,transform:"matrix(0.963965 -0.266028 0.266198 0.963918 18.4214 34.6221)",fill:"white"}))))}var oe=ce;const me=({packages:t})=>a.jsx("div",{children:t.map(({name:l,size:i},r)=>{const s=(i/1024/1024).toFixed(2)+"MB",p=i<=4*1024*1024;return a.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:6,backgroundColor:p?"#E8F5E9":"#FCE4EC",marginBottom:r===t.length-1?0:8,width:"fit-content"},children:[a.jsxs(o.Text,{style:{fontWeight:600,fontSize:14},children:[l,":"]}),a.jsx(o.Text,{style:{color:p?"#4CAF50":"#F44336",fontWeight:600},children:s}),a.jsx(o.Text,{type:"tertiary",style:{marginLeft:8},children:p?n("notExceedIndependentPkgSizeLimit",{limit:"4MB"}):n("exceedIndependentPkgSizeLimit",{limit:"4MB"})})]},l)})}),de=({size:t,limit:l})=>{const i=(t/1024/1024).toFixed(2)+"MB",r=t<=l*1024*1024,s=r?n("notExceedSizeLimit",{limit:l+"MB"}):n("exceedSizeLimit",{limit:l+"MB"});return a.jsxs("div",{style:{display:"flex",alignItems:"center",width:"fit-content",padding:"2px 8px",borderRadius:6,backgroundColor:r?"#E8F5E9":"#FCE4EC"},children:[a.jsx(o.Text,{style:{fontWeight:600,color:r?"#4CAF50":"#F44336"},children:i}),a.jsx(o.Text,{type:"tertiary",style:{marginLeft:8},children:s})]})},pe=({packages:t,limit:l})=>{const i=t.find(c=>c.type==="main")?.size,r=(i/1024/1024).toFixed(2)+"MB",s=i<=l*1024*1024,p=s?n("notExceedMainPkgSizeLimit",{limit:l+"MB"}):n("exceedMainPkgSizeLimit",{limit:l+"MB"});return a.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"2px 8px",width:"fit-content",borderRadius:6,backgroundColor:s?"#E8F5E9":"#FCE4EC"},children:[a.jsx(o.Text,{style:{fontWeight:600,color:s?"#4CAF50":"#F44336"},children:r}),a.jsx(o.Text,{type:"tertiary",style:{marginLeft:8},children:p})]})},he=({domains:t=[]})=>t?.length?a.jsx(q,{style:{flexWrap:"wrap"},children:t.map(l=>a.jsx(K,{children:l},l))}):a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("trustDomainEmptyTip")})}),fe=({termsOfServiceLink:t})=>{const l=n("termsLabel");return t?a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-value",children:t})]}):a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("termsOfServiceEmptyTip")})})]})},ye=({privacyPolicyLink:t})=>{const l=n("privacyLabel");return t?a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-value",children:t})]}):a.jsxs("div",{className:"terms-privacy-item",children:[a.jsx(o.Text,{type:"tertiary",className:"terms-privacy-label",children:l}),a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("privacyPolicyEmptyTip")})})]})},ue=()=>a.jsx(Y,{style:{marginBottom:32},fullMode:!1,icon:null,closeIcon:null,description:a.jsxs("div",{children:[a.jsx(o,{style:{marginBottom:8},children:n("projectInfoDesc")}),a.jsx(o,{children:n("projectInfoDescTip")})]}),type:"info"}),ge=({logo:t,placeholder:l})=>{if(!t?.trim())return a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("gameIconEmptyTip")})});const[i,r]=e.useState(!1);return a.jsxs("div",{style:{width:100,height:100,borderRadius:4,overflow:"hidden",position:"relative",background:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center"},children:[!i&&(l||a.jsx("div",{style:{width:"100%",height:"100%",background:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",color:"#aaa",fontSize:14}})),a.jsx("img",{src:t,alt:"logo",style:{width:"100%",height:"100%",borderRadius:4,objectFit:"cover",position:"absolute",top:0,left:0,opacity:i?1:0,transition:"opacity 0.3s"},onLoad:()=>r(!0)})]})},ve=({description:t})=>t?a.jsx(o.Text,{style:{fontSize:14},children:t}):a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("gameDescEmptyTip")})}),xe=({errorMsg:t})=>a.jsxs("div",{className:"error-display",children:[a.jsx(oe,{}),a.jsx("div",{className:"error-display-content",children:a.jsx(o.Text,{style:{fontSize:14},children:t})})]}),Me=()=>{const{state:{gameDetail:t,user:l,packages:i,engine:r},setGameDetail:s}=J(),[p,c]=e.useState(!0),[h,y]=e.useState(!1),[f,g]=e.useState(""),v=({errorCode:u,errorMsg:Z,clientKey:x})=>{c(!1),y(!0),u===404?g(n("getDevGameDetailNotFound",{clientKey:x})):u===403?g(n("gameDetailNoPermission",{clientKey:x})):u===401?l?.user_id?g(n("gameLoginExpired",{clientKey:x})):g(n("gameDetailNotLogin",{clientKey:x})):l?.user_id&&g(n("gameLoginExpired",{clientKey:x}))};e.useEffect(()=>{if(t&&!t.has_error){c(!1);return}t?.has_error&&(y(!0),v({errorCode:t.error_code,errorMsg:t.error_msg,clientKey:t.client_key})),Q({url:"/game/detail",method:"GET"}).then(u=>{if(u?.error)c(!1),v(u.error);else{const{data:Z}=u;s(Z),c(!1)}})},[]);const _=e.useMemo(()=>{if(!t||t?.has_error)return[];const{name:u,client_key:Z,size:x,description:F,request_allowed_domains:B}=t,k=r==="unity",w=i?.length>0?i:t.packages??[],$=w.reduce((E,G)=>E+(G?.size??0),0)||x,A=k?60:30,P=w.filter(E=>E.type==="independent"),W=w.some(E=>E.type==="main");return[{key:n("gameName"),value:()=>u?.trim()?a.jsx(o.Text,{style:{fontWeight:"bold"},children:u}):a.jsx("div",{className:"project-detail-warning",children:a.jsx(o.Text,{className:"project-detail-warning-text",children:n("gameNameEmptyTip")})})},{key:n("gameIcon"),value:()=>a.jsx(ge,{logo:t.display_icon_url||""})},{key:n("gameID"),value:()=>a.jsx(o.Text,{children:Z})},{key:n("gameDesc"),value:()=>a.jsx(ve,{description:F})},{key:n("gameSize"),value:()=>a.jsx(de,{size:$,limit:A})},{key:n("gameMainPackageSize"),hidden:k||!W,value:()=>a.jsx(pe,{packages:w,limit:4})},{key:n("gameIndependentPackageSize"),hidden:k||P.length===0,value:()=>a.jsx(me,{packages:P})},{key:n("gameTrustDomains"),value:()=>a.jsx(he,{domains:B})},{key:n("gameTermsAndPrivacy"),value:()=>a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[a.jsx(fe,{termsOfServiceLink:t.terms_of_service_link}),a.jsx(ye,{privacyPolicyLink:t.privacy_policy_link})]})}].filter(E=>!E.hidden)},[r,t,i]);return p&&!t?a.jsx("div",{className:"game-detail-loading-container",children:a.jsx(ee,{size:"large"})}):h?a.jsx(xe,{errorMsg:f}):_.length===0?null:a.jsxs("div",{className:"game-detail-container",children:[a.jsx(ue,{}),a.jsx(N,{data:_,align:"left",size:"small"})]})};export{Me as ProjectDetail};
@@ -1 +1 @@
1
- import{$ as G,B as X,a as B,a0 as z,a1 as U,a2 as _,a3 as Y,a4 as q,a5 as W,a6 as Z,a7 as H,a8 as J,a9 as Q,R as a,b as F,c as g,P as s,aa as $,t as N,r as ee,K as te,l as V,s as se,ab as ne}from"./index-C0C36jb2.js";const w={PREFIX:`${X}-dropdown`},O={POSITION_SET:G.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},R={SPACING:4,NESTED_SPACING:2};class oe extends B{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:n}=this.getProps();if(e&&n==="click"){const t=this._adapter.getPopupId();this.setFocusToFirstMenuItem(t)}}getMenuItemNodes(e){const n=document.getElementById(e);return n?Array.from(n.getElementsByTagName("li")).filter(t=>t.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const n=this.getMenuItemNodes(e);n&&z(n)}setFocusToLastMenuItem(e){const n=this.getMenuItemNodes(e);n&&U(n)}handleKeyDown(e){var n,t;const o=(t=(n=e.target)===null||n===void 0?void 0:n.attributes["data-popupid"])===null||t===void 0?void 0:t.value,{visible:r}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(o),r&&_(e);break;case"ArrowUp":this.setFocusToLastMenuItem(o),r&&_(e);break}}}class re extends B{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&Y(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,n){const t=q(this.menuItemNodes,e,this.firstChars,n);t>=0&&W(this.menuItemNodes,this.menuItemNodes[t])}onMenuKeydown(e){const n=Z(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(o=>o.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(o=>{var r;this.firstChars.push((r=o.textContent.trim()[0])===null||r===void 0?void 0:r.toLowerCase())});const t=this.menuItemNodes.find(o=>o.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(n);break;case"ArrowUp":Q(this.menuItemNodes,t),_(e);break;case"ArrowDown":J(this.menuItemNodes,t),_(e);break;default:H(e.key)&&this.setFocusByFirstCharacter(t,e.key);break}}}const E=a.createContext({level:0});var ae=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ie=w.PREFIX;class M extends F{constructor(e){super(e),this.foundation=new re(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const e=this.props,{children:n,className:t,style:o}=e,r=ae(e,["children","className","style"]);return a.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},r,{className:g(`${ie}-menu`,t),style:o,onKeyDown:l=>this.foundation.onMenuKeydown(l)}),n)}}M.propTypes={children:s.node,className:s.string,style:s.object};M.contextType=E;const f=w.PREFIX;class x extends F{render(){const{children:e,disabled:n,className:t,forwardRef:o,style:r,type:l,active:u,icon:m,onKeyDown:I,showTick:v,hover:h}=this.props,{showTick:C}=this.context,d=C??v,P=g(t,{[`${f}-item`]:!0,[`${f}-item-disabled`]:n,[`${f}-item-hover`]:h,[`${f}-item-withTick`]:d,[`${f}-item-${l}`]:l,[`${f}-item-active`]:u}),y={};n||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(p=>{this.context.level!==1&&p==="onClick"?y.onMouseDown=A=>{var j,D;A.button===0&&((D=(j=this.props)[p])===null||D===void 0||D.call(j,A))}:y[p]=this.props[p]});let b=null;switch(!0){case(d&&u):b=a.createElement($,null);break;case(d&&!u):b=a.createElement($,{style:{color:"transparent"}});break;default:b=null;break}let T=null;return m&&(T=a.createElement("div",{className:`${f}-item-icon`},m)),a.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":n},y,{onKeyDown:I,ref:p=>o(p),className:P,style:r},this.getDataAttr(this.props)),b,T,e)}}x.propTypes={children:s.oneOfType([s.string,s.node]),name:s.string,disabled:s.bool,selected:s.bool,onClick:s.func,onMouseEnter:s.func,onMouseLeave:s.func,onContextMenu:s.func,className:s.string,style:s.object,forwardRef:s.func,type:s.oneOf(O.ITEM_TYPE),active:s.bool,icon:s.node};x.contextType=E;x.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:N,onMouseLeave:N,forwardRef:N};x.elementType="Dropdown.Item";const le=w.PREFIX,K=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:n}=i;return a.createElement("div",{className:g(`${le}-divider`,n),style:e})};K.propTypes={style:s.object,className:s.string};const L=w.PREFIX;class S extends ee.PureComponent{render(){const{className:e,style:n,children:t}=this.props,{showTick:o}=this.context,r=g({[`${L}-title`]:!0,[`${L}-title-withTick`]:o},e);return a.createElement("div",{className:r,style:n},t)}}S.propTypes={children:s.node,className:s.string,style:s.object};S.contextType=E;var k=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ce=O.POSITION_SET,ue=O.TRIGGER_SET;class c extends F{constructor(e){super(e),this.handleVisibleChange=n=>this.foundation.handleVisibleChange(n),this.state={popVisible:e.visible},this.foundation=new oe(this.adapter),this.tooltipRef=a.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>{var n,t;return(t=(n=this.props).onVisibleChange)===null||t===void 0?void 0:t.call(n,e)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:n,contentClassName:t,style:o,showTick:r,prefixCls:l,trigger:u}=this.props,m=g(l,t),{level:I=0}=this.context,v={showTick:r,level:I+1,trigger:u};let h=null;return a.isValidElement(e)?h=e:Array.isArray(n)&&(h=this.renderMenu()),a.createElement(E.Provider,{value:v},a.createElement("div",{className:m,style:o},a.createElement("div",{className:`${l}-content`,"x-semi-prop":"render"},h)))}renderMenu(){const{menu:e}=this.props,n=e.map((t,o)=>{switch(t.node){case"title":{const{name:r,node:l}=t,u=k(t,["name","node"]);return a.createElement(c.Title,Object.assign({},u,{key:l+r+o}),r)}case"item":{const{node:r,name:l}=t,u=k(t,["node","name"]);return a.createElement(c.Item,Object.assign({},u,{key:r+l+o}),l)}case"divider":return a.createElement(c.Divider,{key:t.node+o});default:return null}});return a.createElement(c.Menu,null,n)}renderPopCard(){const{render:e,contentClassName:n,style:t,showTick:o,prefixCls:r}=this.props,l=g(r,n),{level:u=0}=this.context,m={showTick:o,level:u+1};return a.createElement(E.Provider,{value:m},a.createElement("div",{className:l,style:t},a.createElement("div",{className:`${r}-content`},e)))}render(){const e=this.props,{children:n,position:t,trigger:o,onVisibleChange:r,zIndex:l,className:u,motion:m,margin:I,style:v,prefixCls:h}=e,C=k(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:d}=this.props;const{level:P}=this.context,{popVisible:y}=this.state,b=this.renderContent();return P>0?d=typeof d=="number"?d:R.NESTED_SPACING:(d===null||typeof d>"u")&&(d=R.SPACING),a.createElement(te,Object.assign({zIndex:l,motion:m,margin:I,content:b,className:u,prefixCls:h,spacing:d,position:t,trigger:o,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},C),a.isValidElement(n)?a.cloneElement(n,{className:g(V(n,"props.className"),{[`${h}-showing`]:y}),"aria-haspopup":!0,"aria-expanded":y,onKeyDown:T=>{this.foundation.handleKeyDown(T);const p=V(n,"props.onKeyDown");p&&p(T)}}):n)}}c.Menu=M;c.Item=x;c.Divider=K;c.Title=S;c.contextType=E;c.propTypes={children:s.node,contentClassName:s.oneOfType([s.string,s.array]),className:s.string,getPopupContainer:s.func,margin:s.oneOfType([s.number,s.object]),mouseEnterDelay:s.number,mouseLeaveDelay:s.number,menu:s.array,motion:s.oneOfType([s.bool,s.func,s.object]),onVisibleChange:s.func,prefixCls:s.string,position:s.oneOf(ce),rePosKey:s.oneOfType([s.string,s.number]),render:s.node,spacing:s.oneOfType([s.number,s.object]),showTick:s.bool,style:s.object,trigger:s.oneOf(ue),visible:s.bool,zIndex:s.number};c.__SemiComponentName__="Dropdown";c.defaultProps=se(c.__SemiComponentName__,{onVisibleChange:N,prefixCls:w.PREFIX,zIndex:ne.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:O.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:N});export{c as D};
1
+ import{$ as G,B as X,a as B,a0 as z,a1 as U,a2 as _,a3 as Y,a4 as q,a5 as W,a6 as Z,a7 as H,a8 as J,a9 as Q,R as a,b as F,c as g,P as s,aa as $,t as N,r as ee,K as te,l as V,s as se,ab as ne}from"./index-BGB_3rmy.js";const w={PREFIX:`${X}-dropdown`},O={POSITION_SET:G.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},R={SPACING:4,NESTED_SPACING:2};class oe extends B{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:n}=this.getProps();if(e&&n==="click"){const t=this._adapter.getPopupId();this.setFocusToFirstMenuItem(t)}}getMenuItemNodes(e){const n=document.getElementById(e);return n?Array.from(n.getElementsByTagName("li")).filter(t=>t.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const n=this.getMenuItemNodes(e);n&&z(n)}setFocusToLastMenuItem(e){const n=this.getMenuItemNodes(e);n&&U(n)}handleKeyDown(e){var n,t;const o=(t=(n=e.target)===null||n===void 0?void 0:n.attributes["data-popupid"])===null||t===void 0?void 0:t.value,{visible:r}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(o),r&&_(e);break;case"ArrowUp":this.setFocusToLastMenuItem(o),r&&_(e);break}}}class re extends B{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&Y(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,n){const t=q(this.menuItemNodes,e,this.firstChars,n);t>=0&&W(this.menuItemNodes,this.menuItemNodes[t])}onMenuKeydown(e){const n=Z(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(o=>o.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(o=>{var r;this.firstChars.push((r=o.textContent.trim()[0])===null||r===void 0?void 0:r.toLowerCase())});const t=this.menuItemNodes.find(o=>o.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(n);break;case"ArrowUp":Q(this.menuItemNodes,t),_(e);break;case"ArrowDown":J(this.menuItemNodes,t),_(e);break;default:H(e.key)&&this.setFocusByFirstCharacter(t,e.key);break}}}const E=a.createContext({level:0});var ae=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ie=w.PREFIX;class M extends F{constructor(e){super(e),this.foundation=new re(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const e=this.props,{children:n,className:t,style:o}=e,r=ae(e,["children","className","style"]);return a.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},r,{className:g(`${ie}-menu`,t),style:o,onKeyDown:l=>this.foundation.onMenuKeydown(l)}),n)}}M.propTypes={children:s.node,className:s.string,style:s.object};M.contextType=E;const f=w.PREFIX;class x extends F{render(){const{children:e,disabled:n,className:t,forwardRef:o,style:r,type:l,active:u,icon:m,onKeyDown:I,showTick:v,hover:h}=this.props,{showTick:C}=this.context,d=C??v,P=g(t,{[`${f}-item`]:!0,[`${f}-item-disabled`]:n,[`${f}-item-hover`]:h,[`${f}-item-withTick`]:d,[`${f}-item-${l}`]:l,[`${f}-item-active`]:u}),y={};n||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(p=>{this.context.level!==1&&p==="onClick"?y.onMouseDown=A=>{var j,D;A.button===0&&((D=(j=this.props)[p])===null||D===void 0||D.call(j,A))}:y[p]=this.props[p]});let b=null;switch(!0){case(d&&u):b=a.createElement($,null);break;case(d&&!u):b=a.createElement($,{style:{color:"transparent"}});break;default:b=null;break}let T=null;return m&&(T=a.createElement("div",{className:`${f}-item-icon`},m)),a.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":n},y,{onKeyDown:I,ref:p=>o(p),className:P,style:r},this.getDataAttr(this.props)),b,T,e)}}x.propTypes={children:s.oneOfType([s.string,s.node]),name:s.string,disabled:s.bool,selected:s.bool,onClick:s.func,onMouseEnter:s.func,onMouseLeave:s.func,onContextMenu:s.func,className:s.string,style:s.object,forwardRef:s.func,type:s.oneOf(O.ITEM_TYPE),active:s.bool,icon:s.node};x.contextType=E;x.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:N,onMouseLeave:N,forwardRef:N};x.elementType="Dropdown.Item";const le=w.PREFIX,K=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:n}=i;return a.createElement("div",{className:g(`${le}-divider`,n),style:e})};K.propTypes={style:s.object,className:s.string};const L=w.PREFIX;class S extends ee.PureComponent{render(){const{className:e,style:n,children:t}=this.props,{showTick:o}=this.context,r=g({[`${L}-title`]:!0,[`${L}-title-withTick`]:o},e);return a.createElement("div",{className:r,style:n},t)}}S.propTypes={children:s.node,className:s.string,style:s.object};S.contextType=E;var k=function(i,e){var n={};for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&e.indexOf(t)<0&&(n[t]=i[t]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(i);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(i,t[o])&&(n[t[o]]=i[t[o]]);return n};const ce=O.POSITION_SET,ue=O.TRIGGER_SET;class c extends F{constructor(e){super(e),this.handleVisibleChange=n=>this.foundation.handleVisibleChange(n),this.state={popVisible:e.visible},this.foundation=new oe(this.adapter),this.tooltipRef=a.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>{var n,t;return(t=(n=this.props).onVisibleChange)===null||t===void 0?void 0:t.call(n,e)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:n,contentClassName:t,style:o,showTick:r,prefixCls:l,trigger:u}=this.props,m=g(l,t),{level:I=0}=this.context,v={showTick:r,level:I+1,trigger:u};let h=null;return a.isValidElement(e)?h=e:Array.isArray(n)&&(h=this.renderMenu()),a.createElement(E.Provider,{value:v},a.createElement("div",{className:m,style:o},a.createElement("div",{className:`${l}-content`,"x-semi-prop":"render"},h)))}renderMenu(){const{menu:e}=this.props,n=e.map((t,o)=>{switch(t.node){case"title":{const{name:r,node:l}=t,u=k(t,["name","node"]);return a.createElement(c.Title,Object.assign({},u,{key:l+r+o}),r)}case"item":{const{node:r,name:l}=t,u=k(t,["node","name"]);return a.createElement(c.Item,Object.assign({},u,{key:r+l+o}),l)}case"divider":return a.createElement(c.Divider,{key:t.node+o});default:return null}});return a.createElement(c.Menu,null,n)}renderPopCard(){const{render:e,contentClassName:n,style:t,showTick:o,prefixCls:r}=this.props,l=g(r,n),{level:u=0}=this.context,m={showTick:o,level:u+1};return a.createElement(E.Provider,{value:m},a.createElement("div",{className:l,style:t},a.createElement("div",{className:`${r}-content`},e)))}render(){const e=this.props,{children:n,position:t,trigger:o,onVisibleChange:r,zIndex:l,className:u,motion:m,margin:I,style:v,prefixCls:h}=e,C=k(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:d}=this.props;const{level:P}=this.context,{popVisible:y}=this.state,b=this.renderContent();return P>0?d=typeof d=="number"?d:R.NESTED_SPACING:(d===null||typeof d>"u")&&(d=R.SPACING),a.createElement(te,Object.assign({zIndex:l,motion:m,margin:I,content:b,className:u,prefixCls:h,spacing:d,position:t,trigger:o,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},C),a.isValidElement(n)?a.cloneElement(n,{className:g(V(n,"props.className"),{[`${h}-showing`]:y}),"aria-haspopup":!0,"aria-expanded":y,onKeyDown:T=>{this.foundation.handleKeyDown(T);const p=V(n,"props.onKeyDown");p&&p(T)}}):n)}}c.Menu=M;c.Item=x;c.Divider=K;c.Title=S;c.contextType=E;c.propTypes={children:s.node,contentClassName:s.oneOfType([s.string,s.array]),className:s.string,getPopupContainer:s.func,margin:s.oneOfType([s.number,s.object]),mouseEnterDelay:s.number,mouseLeaveDelay:s.number,menu:s.array,motion:s.oneOfType([s.bool,s.func,s.object]),onVisibleChange:s.func,prefixCls:s.string,position:s.oneOf(ce),rePosKey:s.oneOfType([s.string,s.number]),render:s.node,spacing:s.oneOfType([s.number,s.object]),showTick:s.bool,style:s.object,trigger:s.oneOf(ue),visible:s.bool,zIndex:s.number};c.__SemiComponentName__="Dropdown";c.defaultProps=se(c.__SemiComponentName__,{onVisibleChange:N,prefixCls:w.PREFIX,zIndex:ne.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:O.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:N});export{c as D};
@@ -1 +1 @@
1
- import{j as e,T as s,i as c,W as o}from"./index-C0C36jb2.js";import{D as n}from"./index-BkVEWAPY.js";const a=[{node:"item",name:c("quickStart"),link:"https://bytedance.sg.larkoffice.com/docx/MarqdNvQLoihvjxN4rFllgjBgwb"},{node:"item",name:c("jsApiList"),link:"https://bytedance.larkoffice.com/wiki/GQscwDOQSiPxyjkbzyfckh2pnDg"},{node:"item",name:c("advancedGuide"),link:"https://bytedance.larkoffice.com/wiki/AGqRwu0qQiXZpVkkToUcRP99nwc"},{node:"item",name:c("faq"),link:"https://bytedance.larkoffice.com/wiki/O6aWwFhDBiEglwkcnJ4ccJpdnmb"}],m=()=>e.jsx(n,{trigger:"hover",position:"bottomRight",render:e.jsx(e.Fragment,{children:a.map(i=>e.jsx(n.Item,{onClick:()=>{window.open(i.link)},children:i.name},i.name))}),children:e.jsxs("div",{className:"access-docs",children:[e.jsx(s.Text,{className:"access-docs-text",type:"primary",children:c("docs")}),e.jsx(o,{className:"access-docs-icon"})]})});export{m as AccessDocs};
1
+ import{j as e,T as s,i as c,W as o}from"./index-BGB_3rmy.js";import{D as n}from"./index-Be7GH3NR.js";const a=[{node:"item",name:c("quickStart"),link:"https://bytedance.sg.larkoffice.com/docx/MarqdNvQLoihvjxN4rFllgjBgwb"},{node:"item",name:c("jsApiList"),link:"https://bytedance.larkoffice.com/wiki/GQscwDOQSiPxyjkbzyfckh2pnDg"},{node:"item",name:c("advancedGuide"),link:"https://bytedance.larkoffice.com/wiki/AGqRwu0qQiXZpVkkToUcRP99nwc"},{node:"item",name:c("faq"),link:"https://bytedance.larkoffice.com/wiki/O6aWwFhDBiEglwkcnJ4ccJpdnmb"}],m=()=>e.jsx(n,{trigger:"hover",position:"bottomRight",render:e.jsx(e.Fragment,{children:a.map(i=>e.jsx(n.Item,{onClick:()=>{window.open(i.link)},children:i.name},i.name))}),children:e.jsxs("div",{className:"access-docs",children:[e.jsx(s.Text,{className:"access-docs-text",type:"primary",children:c("docs")}),e.jsx(o,{className:"access-docs-icon"})]})});export{m as AccessDocs};
@@ -1 +1 @@
1
- import{G as ge,r as b,B as Te,a as oe,l as z,H as V,J as ye,R as a,b as le,K as Oe,M as _e,c as K,O as Ae,Q as be,P as o,t as S,U as De,V as ie,W as ae,A as Pe,m as re,X as ce,L as je,s as He,j as u,Y as ee,u as Me,w as Le,Z as Re,d as Ve,i as W,D as ke}from"./index-C0C36jb2.js";import{D as se}from"./index-BkVEWAPY.js";function $e(p){return b.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},p),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.5a7.5 7.5 0 1 1-7.07 10 1.5 1.5 0 0 0-2.83 1 10.5 10.5 0 1 0 1.27-9.48l-.43-1.45a1.5 1.5 0 1 0-2.88.86l1.5 5c.23.74.98 1.2 1.73 1.04l5-1a1.5 1.5 0 0 0-.58-2.94l-2.01.4A7.5 7.5 0 0 1 12 4.5Zm1.5 3a1.5 1.5 0 0 0-3 0V12c0 .4.16.78.44 1.06l3 3a1.5 1.5 0 0 0 2.12-2.12l-2.56-2.56V7.5Z",fill:"currentColor"}))}const Fe=ge($e,"history");function Ge(p){return b.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},p),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm1 2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6Z",fill:"currentColor"}))}const Ze=ge(Ge,"sidebar"),de="horizontal",pe="vertical",x={PREFIX:`${Te}-navigation`},h={MODE:[pe,de],MODE_VERTICAL:pe,MODE_HORIZONTAL:de,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},$={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},ue={open:"chevron_up",closed:"chevron_down"};let Be=class ne{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(t==null||typeof t!="object")&&(t={text:t,itemKey:t,maxHeight:$.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const e of Object.keys(t))this[e]=t[e];t.items&&Array.isArray(t.items)&&t.items.length?(this.items=t.items.map(e=>new ne(e)),"toggleIcon"in t?this.toggleIcon=ne.isValidToggleIcon(t.toggleIcon)?Object.assign({},t.toggleIcon):Object.assign({},ue):this.toggleIcon=Object.assign({},ue)):this.items=null}static isValidToggleIcon(t){return!!(t&&typeof t=="object"&&typeof t.open=="string"&&t.open.length&&typeof t.closed=="string"&&t.closed.length)}};class F extends oe{constructor(t){super(Object.assign({},t))}static getZeroParentKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=[];for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];if(n.length){for(const l of n)if(Array.isArray(t[l])&&t[l].length){const r=t[l][0];V(r)||e.push(r)}}return e}static buildItemKeysMap(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";var i;if(Array.isArray(t)&&t.length)for(const l of t)if(Array.isArray(l))F.buildItemKeysMap(l,e,[...s],n);else{let r;if(l&&typeof l=="object"&&(r=l[n]||l.props&&l.props[n]),r){e[r]=[...s];const c=(i=l.props)===null||i===void 0?void 0:i.children;if(Array.isArray(l.items)&&l.items.length)F.buildItemKeysMap(l.items,e,[...s,r],n);else if(c){const d=Array.isArray(c)?c:[c];F.buildItemKeysMap(d,e,[...s,r],n)}}}return e}init(t){const{defaultSelectedKeys:e,selectedKeys:s}=this.getProps();let n=s||e||[];const{itemKeysMap:i,willOpenKeys:l,formattedItems:r}=this.getCalcState(),c=this.selectLevelZeroParentKeys(i,n);if(n=n.concat(c),t==="constructor")return{selectedKeys:n,itemKeysMap:i,openKeys:l,items:r};this._adapter.updateSelectedKeys(n,!1),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(l),this._adapter.updateItems(r),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:t,formattedItems:e}=this.getFormattedItems(),s=this.getWillOpenKeys(t);return{itemKeysMap:t,willOpenKeys:s,formattedItems:e}}getFormattedItems(){const{items:t,children:e}=this.getProps(),s=this.formatItems(t),n=Array.isArray(t)&&t.length?s:e;return{itemKeysMap:F.buildItemKeysMap(n),formattedItems:s}}getWillOpenKeys(t){const{defaultOpenKeys:e,openKeys:s,defaultSelectedKeys:n,selectedKeys:i,mode:l}=this.getProps(),{openKeys:r=[]}=this.getStates();let c=s||e||[];if(!(Array.isArray(e)||Array.isArray(s))&&l===h.MODE_VERTICAL&&(Array.isArray(n)||Array.isArray(i))){const d=Array.isArray(i)?i:n;c=r.concat(this.getShouldOpenKeys(t,d)),c=Array.from(new Set(c))}return[...c]}getShouldOpenKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const s=new Set;return Array.isArray(e)&&e.length&&e.forEach(n=>{if(n){const i=z(t,n);Array.isArray(i)&&i.forEach(l=>s.add(l))}}),[...s]}destroy(){}selectLevelZeroParentKeys(t,e){const s=V(t)?this.getState("itemKeysMap"):t,n=[];if(e.length){for(const i of e)if(Array.isArray(s[i])&&s[i].length){const l=s[i][0];V(l)||n.push(l)}}return n.length?n:[]}formatItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];for(const s of t)e.push(new Be(s));return e}handleSelect(t){this._adapter.notifySelect(t)}judgeIfOpen(t,e){let s=!1;const n=Array.isArray(t)?t:t&&[t];if(n&&Array.isArray(e)&&e.length){for(const i of e)if(s=n.includes(i.itemKey)||this.judgeIfOpen(n,i.items),s)break}return s}handleCollapseChange(){const t=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(t),this._adapter.notifyCollapseChange(t)}handleItemsChange(t){this._adapter.setItemsChanged(t)}}const he=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];return n.forEach(l=>l&&e.add(l)),Array.from(e)},me=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];return n.forEach(l=>l&&e.delete(l)),Array.from(e)};class Ue extends oe{constructor(t){super(Object.assign({},t))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(t){return t!=null&&(typeof t=="number"||typeof t=="string")}handleDropdownVisibleChange(t){const e=this.getProp("itemKey"),s=this._adapter.getOpenKeysIsControlled(),n=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),l=t?he(i,e):me(i,e);this.clearDelayTimer(),s||n&&this._adapter.updateOpen(t),this._adapter.notifyGlobalOpenChange({itemKey:e,openKeys:l,isOpen:t})}handleClick(t,e){const{itemKey:s,disabled:n}=this.getProps();if(n)return;const i=e&&e.contains(t.target);let l=!!this._adapter.getIsOpen();i?l=!l:l=!1;const r=l?he(this._adapter.getOpenKeys(),s):me(this._adapter.getOpenKeys(),s),c={itemKey:s,openKeys:r,isOpen:l,domEvent:t},d=this._adapter.getOpenKeysIsControlled(),m=this._adapter.getCanUpdateOpenKeys();!d&&m&&this._adapter.updateOpen(l),this._adapter.notifyGlobalOpenChange(c),this._adapter.notifyGlobalOnClick(c)}handleKeyPress(t,e){ye(t)&&this.handleClick(t,e)}}class Xe extends oe{constructor(t){super(Object.assign({},t))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(t){return t!=null&&(typeof t=="string"||typeof t=="number")}handleClick(t){const{isSubNav:e,itemKey:s,text:n,disabled:i}=this.getProps();if(i)return;!e&&this.isValidKey(s)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const l=[s];if(!e){if(!this._adapter.getSelected()){const r=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:s,selectedKeys:l,selectedItems:r,domEvent:t})}this._adapter.notifyGlobalOnClick({itemKey:s,text:n,domEvent:t})}this._adapter.notifyClick({itemKey:s,text:n,domEvent:t})}handleKeyPress(t){if(ye(t)){const{link:e,linkOptions:s}=this.getProps(),n=z(s,"target","_self");this.handleClick(t),typeof e=="string"&&(n==="_blank"?window.open(e):window.location.href=e)}}}const G=a.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),y=`${x.PREFIX}-item`;class Z extends le{constructor(t){super(t),this.setItemRef=e=>{this.props.forwardRef&&this.props.forwardRef(e)},this.wrapTooltip=e=>{const{text:s,tooltipHideDelay:n,tooltipShowDelay:i}=this.props,l=n??this.context.tooltipHideDelay,r=i??this.context.tooltipShowDelay;return a.createElement(Oe,{content:s,wrapWhenSpecial:!1,position:"right",trigger:"hover",mouseEnterDelay:r,mouseLeaveDelay:l},e)},this.handleClick=e=>this.foundation.handleClick(e),this.handleKeyPress=e=>this.foundation.handleKeyPress(e),this.state={tooltipShow:!1},this.foundation=new Xe(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];return this.context[t](...s)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{cloneDeep:_e,updateTooltipShow:e=>this.setState({tooltipShow:e}),updateSelected:e=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:e=>this._invokeContextFunc("updateSelectedKeys",[...e]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onSelect",...s)},notifyGlobalOnClick:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onClick",...s)},notifyClick:function(){return t.props.onClick(...arguments)},notifyMouseEnter:function(){return t.props.onMouseEnter(...arguments)},notifyMouseLeave:function(){return t.props.onMouseLeave(...arguments)},getIsCollapsed:()=>this.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!t&&this.context.mode===h.MODE_HORIZONTAL)return null;let i="large";e===h.ICON_POS_RIGHT&&(i="default");const l=K(`${y}-icon`,{[`${y}-icon-toggle-${this.context.toggleIconPosition}`]:s,[`${y}-icon-info`]:!s});return a.createElement("i",{className:l,key:n},Ae(t)?a.cloneElement(t,{size:t.props.size||i}):t)}render(){var t;const{text:e,icon:s,toggleIcon:n,className:i,isSubNav:l,style:r,indent:c,onMouseEnter:d,onMouseLeave:m,link:C,linkOptions:w,disabled:I,level:g=0,tabIndex:L}=this.props,{mode:O,isInSubNav:f,prefixCls:v,limitIndent:B}=this.context,N=this.adapter.getIsCollapsed(),D=this.adapter.getSelected();let E=null;const q=(t=this.props)===null||t===void 0?void 0:t.children;if(!V(q))E=q;else{let j=null;if(O===h.MODE_VERTICAL&&!B&&!N){const T=s&&!c?g:g-1;j=be(T,U=>this.renderIcon(null,h.ICON_POS_RIGHT,!1,U))}E=a.createElement(a.Fragment,null,j,this.context.toggleIconPosition===h.TOGGLE_ICON_LEFT&&this.renderIcon(n,h.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),s||c||f?this.renderIcon(s,h.ICON_POS_LEFT,!1,"key-position-left"):null,V(e)?"":a.createElement("span",{className:`${x.PREFIX}-item-text`},e),this.context.toggleIconPosition===h.TOGGLE_ICON_RIGHT&&this.renderIcon(n,h.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof C=="string"&&(E=a.createElement("a",Object.assign({className:`${v}-item-link`,href:C,tabIndex:-1},w),E));let P="";if(f&&(N||O===h.MODE_HORIZONTAL)){const j=K({[y]:!0,[`${y}-sub`]:l,[`${y}-selected`]:D,[`${y}-collapsed`]:N,[`${y}-disabled`]:I});P=a.createElement(se.Item,{selected:D,active:D,forwardRef:this.setItemRef,className:j,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,disabled:I,onKeyDown:this.handleKeyPress},E)}else{const j=K(`${i||`${y}-normal`}`,{[y]:!0,[`${y}-sub`]:l,[`${y}-selected`]:D&&!l,[`${y}-collapsed`]:N,[`${y}-disabled`]:I,[`${y}-has-link`]:typeof C=="string"}),T={"aria-disabled":I};if(l){const U=this.adapter.getIsOpen();T["aria-expanded"]=U}P=a.createElement("li",Object.assign({role:l?null:"menuitem",tabIndex:l?-1:L},T,{style:r,ref:this.setItemRef,className:j,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,onKeyPress:this.handleKeyPress},this.getDataAttr(this.props)),E)}return(N&&!f&&!l||N&&l&&I)&&(P=this.wrapTooltip(P)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:P,isSubNav:l,isInSubNav:f,props:this.props}):P}}Z.contextType=G;Z.propTypes={text:o.oneOfType([o.string,o.node]),itemKey:o.oneOfType([o.string,o.number]),onClick:o.func,onMouseEnter:o.func,onMouseLeave:o.func,icon:o.oneOfType([o.node]),className:o.string,toggleIcon:o.string,style:o.object,forwardRef:o.func,indent:o.oneOfType([o.bool,o.number]),isCollapsed:o.bool,isSubNav:o.bool,link:o.string,linkOptions:o.object,disabled:o.bool,tabIndex:o.number};Z.defaultProps={isSubNav:!1,indent:!1,forwardRef:S,isCollapsed:!1,onClick:S,onMouseEnter:S,onMouseLeave:S,disabled:!1,tabIndex:0};class Y extends le{constructor(t){super(t),this.setItemRef=e=>{e&&e.current?this.itemRef=e:this.itemRef={current:e}},this.setTitleRef=e=>{e&&e.current?this.titleRef=e:this.titleRef={current:e}},this.handleClick=e=>{this.foundation.handleClick(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=e=>{this.foundation.handleKeyPress(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=e=>this.foundation.handleDropdownVisibleChange(e),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=a.createRef(),this.itemRef=a.createRef(),this.foundation=new Ue(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];return this.context[t](...s)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{updateIsHovered:e=>this.setState({isHovered:e}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:e=>this._invokeContextFunc(e?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onOpenChange",...s)},notifyGlobalOnSelect:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onSelect",...s)},notifyGlobalOnClick:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onClick",...s)},getIsSelected:e=>!!(!V(e)&&z(this.context,"selectedKeys",[]).includes(String(e))),getIsOpen:()=>{const{itemKey:e}=this.props;return!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))}})}renderIcon(t,e,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:l}=this.context;let r="large";e===h.ICON_POS_RIGHT&&(r="default");const c=K(`${l}-item-icon`,{[`${l}-item-icon-toggle-${this.context.toggleIconPosition}`]:n,[`${l}-item-icon-info`]:!n}),d=this.adapter.getIsOpen(),m=a.isValidElement(t)?s?a.createElement(De,{animationState:d?"enter":"leave",startClassName:`${x.PREFIX}-icon-rotate-${d?"180":"0"}`},C=>{let{animationClassName:w}=C;return a.cloneElement(t,{size:r,className:w})}):a.cloneElement(t,{size:r}):null;return a.createElement("i",{key:i,className:c},m)}renderTitleDiv(){const{text:t,icon:e,itemKey:s,indent:n,disabled:i,level:l,expandIcon:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,prefixCls:C,subNavMotion:w,limitIndent:I}=this.context,g=this.adapter.getIsOpen(),L=K(`${C}-sub-title`,{[`${C}-sub-title-selected`]:this.adapter.getIsSelected(s),[`${C}-sub-title-disabled`]:i});let O=!1,f="";m?d?f=a.createElement(ie,null):f=null:c===h.MODE_HORIZONTAL?d?f=a.createElement(ie,{"aria-hidden":!0}):f=r||a.createElement(ae,{"aria-hidden":!0}):(w&&(O=!0),f=r||a.createElement(ae,{"aria-hidden":!0}));let v=null;if(c===h.MODE_VERTICAL&&!I&&!m){const D=e&&!n?l:l-1;v=be(D,E=>this.renderIcon(null,h.ICON_POS_RIGHT,!1,!1,E))}const B=!m&&d&&c===h.MODE_HORIZONTAL||m&&d;return a.createElement("div",{role:"menuitem",tabIndex:B?-1:0,ref:this.setTitleRef,className:L,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":g?"true":"false"},a.createElement("div",{className:`${C}-item-inner`},v,this.context.toggleIconPosition===h.TOGGLE_ICON_LEFT&&this.renderIcon(f,h.ICON_POS_RIGHT,O,!0,"key-toggle-position-left"),e||n||d&&c!==h.MODE_HORIZONTAL?this.renderIcon(e,h.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,a.createElement("span",{className:`${C}-item-text`},t),this.context.toggleIconPosition===h.TOGGLE_ICON_RIGHT&&this.renderIcon(f,h.ICON_POS_RIGHT,O,!0,"key-toggle-position-right")))}renderSubUl(){const{children:t,maxHeight:e}=this.props,{isCollapsed:s,mode:n,subNavMotion:i,prefixCls:l}=this.context,r=this.adapter.getIsOpen(),c=n===h.MODE_HORIZONTAL,d=K(`${l}-sub`,{[`${l}-sub-open`]:r,[`${l}-sub-popover`]:s||c});return c?null:i?a.createElement(Pe,{motion:i,isOpen:r,keepDOM:!1,fade:!0},s?null:a.createElement("ul",{className:d},t)):r&&!s?a.createElement("ul",{className:d},t):null}wrapDropdown(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:s,dropdownStyle:n,disabled:i,subDropdownProps:l,dropdownProps:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,subNavCloseDelay:C,subNavOpenDelay:w,prefixCls:I,getPopupContainer:g}=this.context,L=this.adapter.getIsOpen(),O=this.adapter.getOpenKeysIsControlled(),f=K({[`${I}-popover`]:m}),v={trigger:"hover",style:n};return O&&(v.trigger="custom",v.visible=L),g&&(v.getPopupContainer=g),(m||c===h.MODE_HORIZONTAL)&&(e=i?e:a.createElement(se,Object.assign({className:f,render:a.createElement(se.Menu,null,s),position:c===h.MODE_HORIZONTAL&&!d?"bottomLeft":"rightTop",mouseEnterDelay:w,mouseLeaveDelay:C,onVisibleChange:this.handleDropdownVisible},r||l,v),e)),e}render(){const{itemKey:t,style:e,onMouseEnter:s,onMouseLeave:n,disabled:i,text:l}=this.props,{mode:r,isCollapsed:c,prefixCls:d}=this.context;let m=this.renderTitleDiv();const C=this.renderSubUl();return(c||r===h.MODE_HORIZONTAL)&&(m=this.wrapDropdown(m)),a.createElement(Z,{style:e,isSubNav:!0,itemKey:t,forwardRef:this.setItemRef,isCollapsed:c,className:`${d}-sub-wrap`,onMouseEnter:s,onMouseLeave:n,disabled:i,text:l},a.createElement(G.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},m,C))}}Y.contextType=G;Y.propTypes={itemKey:o.oneOfType([o.string,o.number]),text:o.oneOfType([o.string,o.node]),isOpen:o.bool,isCollapsed:o.bool,indent:o.oneOfType([o.bool,o.number]),children:o.node,style:o.object,icon:o.node,maxHeight:o.number,onMouseEnter:o.func,onMouseLeave:o.func,disabled:o.bool,level:o.number};Y.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:$.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function We(p){let{prefixCls:t,locale:e,collapseText:s,isCollapsed:n,onClick:i=S}=p;const l=()=>{typeof i=="function"&&i(!n)},r={icon:a.createElement(Ze,null),type:"tertiary",theme:"borderless",onClick:l};let c=n?e?.expandText:e?.collapseText;return typeof s=="function"&&(c=s(n)),a.createElement("div",{className:`${t}-collapse-btn`},n?a.createElement(Oe,{content:c,position:"right"},a.createElement(re,Object.assign({},r))):a.createElement(re,Object.assign({},r),c))}class H extends b.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:t,collapseText:e}=this.props;if(a.isValidElement(t))return t;const{onCollapseChange:s,prefixCls:n,locale:i,isCollapsed:l}=this.context;return a.createElement(We,{prefixCls:n,isCollapsed:l,locale:i,onClick:s,collapseText:e})}}render(){const{style:t,className:e,collapseButton:s,onClick:n}=this.props;let{children:i}=this.props;const{isCollapsed:l,mode:r}=this.context;!a.isValidElement(i)&&s&&r!==h.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const c=K(e,`${x.PREFIX}-footer`,{[`${x.PREFIX}-footer-collapsed`]:l});return a.createElement("div",{className:c,style:t,onClick:n},i)}}H.contextType=G;H.propTypes={children:o.node,style:o.object,className:o.string,collapseButton:o.oneOfType([o.node,o.bool]),collapseText:o.func,onClick:o.func};H.defaultProps={collapseButton:!1,onClick:S};H.elementType="NavFooter";class M extends b.PureComponent{renderLogo(t){return a.isValidElement(t)?t:null}render(){const{children:t,style:e,className:s,logo:n,text:i,link:l,linkOptions:r,prefixCls:c}=this.props,{isCollapsed:d}=this.context,m=K(s,`${x.PREFIX}-header`,{[`${x.PREFIX}-header-collapsed`]:d});let C=a.createElement(a.Fragment,null,n?a.createElement("i",{className:`${x.PREFIX}-header-logo`},this.renderLogo(n)):null,!V(i)&&!d?a.createElement("span",{className:`${x.PREFIX}-header-text`},i):null,t);return typeof l=="string"&&(C=a.createElement("a",Object.assign({className:`${c}-header-link`,href:l},r),C)),a.createElement("div",{className:m,style:e},C)}}M.contextType=G;M.propTypes={prefixCls:o.string,logo:o.oneOfType([o.string,o.object,o.node]),text:o.oneOfType([o.string,o.node]),children:o.node,style:o.object,className:o.string,link:o.string,linkOptions:o.object};M.defaultProps={prefixCls:x.PREFIX};M.elementType="NavHeader";var ze=function(p,t){var e={};for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&t.indexOf(s)<0&&(e[s]=p[s]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(p);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(p,s[n])&&(e[s[n]]=p[s[n]]);return e};function Ce(p,t){return function(){const s=new Set(p.state[t]);for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];i.forEach(r=>r&&s.add(r)),p.setState({[t]:Array.from(s)})}}function fe(p,t){return function(){const s=new Set(p.state[t]);for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];i.forEach(r=>r&&s.delete(r)),p.setState({[t]:Array.from(s)})}}const{hasOwnProperty:Ye}=Object.prototype;class A extends le{constructor(t){super(t),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new F(this.adapter),this.itemsChanged=!0;const{isCollapsed:e,defaultIsCollapsed:s,items:n,children:i}=t,l={isCollapsed:!!(this.isControlled("isCollapsed")?e:s),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},l),n&&n.length||i){const r=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},l),r)}}static getDerivedStateFromProps(t,e){const s={};return Ye.call(t,"isCollapsed")&&t.isCollapsed!==e.isCollapsed&&(s.isCollapsed=t.isCollapsed),s}componentDidMount(){}componentDidUpdate(t){if(t.items!==this.props.items||t.children!==this.props.children)this.foundation.init();else{if(this.foundation.handleItemsChange(!1),this.props.selectedKeys&&!ce(t.selectedKeys,this.props.selectedKeys)){this.adapter.updateSelectedKeys(this.props.selectedKeys);const e=this.foundation.getWillOpenKeys(this.state.itemKeysMap);this.adapter.updateOpenKeys(e)}this.props.openKeys&&!ce(t.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys)}}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return t.props.onSelect(...arguments)},notifyOpenChange:function(){return t.props.onOpenChange(...arguments)},setIsCollapsed:e=>this.setState({isCollapsed:e}),notifyCollapseChange:function(){return t.props.onCollapseChange(...arguments)},updateItems:e=>this.setState({items:[...e]}),setItemKeysMap:e=>this.setState({itemKeysMap:Object.assign({},e)}),addSelectedKeys:Ce(this,"selectedKeys"),removeSelectedKeys:fe(this,"selectedKeys"),updateSelectedKeys:function(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=e;if(s){const i=t.foundation.selectLevelZeroParentKeys(null,e);n=Array.from(new Set(e.concat(i)))}t.setState({selectedKeys:n})},updateOpenKeys:e=>this.setState({openKeys:[...e]}),addOpenKeys:Ce(this,"openKeys"),removeOpenKeys:fe(this,"openKeys"),setItemsChanged:e=>{this.itemsChanged=e}})}renderItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:s,subDropdownProps:n}=this.props;return a.createElement(a.Fragment,null,t.map((l,r)=>Array.isArray(l.items)&&l.items.length?a.createElement(Y,Object.assign({key:l.itemKey||String(e)+r},l,{level:e,expandIcon:s,subDropdownProps:n}),this.renderItems(l.items,e+1)):a.createElement(Z,Object.assign({key:l.itemKey||String(e)+r},l,{level:e}))))}render(){const t=this.props,{children:e,mode:s,onOpenChange:n,onSelect:i,onClick:l,style:r,className:c,subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:C,tooltipShowDelay:w,tooltipHideDelay:I,prefixCls:g,bodyStyle:L,footer:O,header:f,toggleIconPosition:v,limitIndent:B,renderWrapper:N,getPopupContainer:D}=t,E=ze(t,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:q,openKeys:P,items:j,isCollapsed:T}=this.state,{updateOpenKeys:U,addOpenKeys:Ie,removeOpenKeys:ve,updateSelectedKeys:Ke,addSelectedKeys:xe,removeSelectedKeys:Ee}=this.adapter,Se=Object.assign({},r);let _=b.Children.toArray(e);const Q=[],J=[];if(a.isValidElement(O)?Q.push(a.createElement(H,{key:0},O)):O&&typeof O=="object"&&Q.push(a.createElement(H,Object.assign({key:0},O))),a.isValidElement(f)?J.push(a.createElement(M,{key:0},f)):f&&typeof f=="object"&&J.push(a.createElement(M,Object.assign({key:0},f))),Array.isArray(_)&&_.length){_=[..._];let X=_.length;for(let R=0;R<X;R++){const k=_[R];k.type===H||z(k,"type.elementType")==="NavFooter"?(Q.push(k),_.splice(R,1),R--,X--):(k.type===M||z(k,"type.elementType")==="NavHeader")&&(J.push(k),_.splice(R,1),R--,X--)}}const we=K(g,c,{[`${g}-collapsed`]:T,[`${g}-horizontal`]:s==="horizontal",[`${g}-vertical`]:s==="vertical"}),Ne=K(`${g}-header-list-outer`,{[`${g}-header-list-outer-collapsed`]:T});return this.itemsChanged&&this.adapter.setCache("itemElems",this.renderItems(j)),a.createElement(je,{componentName:"Navigation"},X=>a.createElement(G.Provider,{value:{subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:C,tooltipShowDelay:w,tooltipHideDelay:I,openKeys:P,openKeysIsControlled:this.isControlled("openKeys")&&s==="vertical"&&!T,canUpdateOpenKeys:!0,selectedKeys:q,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:T,onCollapseChange:this.onCollapseChange,mode:s,onSelect:i,onOpenChange:n,updateOpenKeys:U,addOpenKeys:Ie,removeOpenKeys:ve,updateSelectedKeys:Ke,addSelectedKeys:xe,removeSelectedKeys:Ee,onClick:l,locale:X,prefixCls:g,toggleIconPosition:v,limitIndent:B,renderWrapper:N,getPopupContainer:D}},a.createElement("div",Object.assign({className:we,style:Se},this.getDataAttr(E)),a.createElement("div",{className:`${g}-inner`},a.createElement("div",{className:Ne},J,a.createElement("div",{style:L,className:`${g}-list-wrapper`},a.createElement("ul",{role:"menu","aria-orientation":s,className:`${g}-list`},this.adapter.getCache("itemElems"),_))),Q))))}}A.Sub=Y;A.Item=Z;A.Header=M;A.Footer=H;A.propTypes={collapseIcon:o.node,defaultOpenKeys:o.arrayOf(o.oneOfType([o.string,o.number])),openKeys:o.arrayOf(o.oneOfType([o.string,o.number])),defaultSelectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),expandIcon:o.node,selectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),mode:o.oneOf([...h.MODE]),onSelect:o.func,onClick:o.func,onOpenChange:o.func,items:o.array,isCollapsed:o.bool,defaultIsCollapsed:o.bool,onCollapseChange:o.func,multiple:o.bool,onDeselect:o.func,subNavMotion:o.oneOfType([o.bool,o.object,o.func]),subNavCloseDelay:o.number,subNavOpenDelay:o.number,tooltipShowDelay:o.number,tooltipHideDelay:o.number,children:o.node,style:o.object,bodyStyle:o.object,className:o.string,toggleIconPosition:o.string,prefixCls:o.string,header:o.oneOfType([o.node,o.object]),footer:o.oneOfType([o.node,o.object]),limitIndent:o.bool,getPopupContainer:o.func};A.__SemiComponentName__="Navigation";A.defaultProps=He(A.__SemiComponentName__,{subNavCloseDelay:$.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:$.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:$.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:$.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:S,onSelect:S,onClick:S,onOpenChange:S,toggleIconPosition:"right",limitIndent:!0,prefixCls:x.PREFIX,subNavMotion:!0,mode:h.MODE_VERTICAL});function qe(){return u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.48092 0.748384C8.16727 0.653859 7.83272 0.653859 7.51907 0.748384C7.30423 0.813133 7.13028 0.92386 6.97716 1.04125C6.83512 1.15015 6.67675 1.2924 6.50211 1.44927L2.21784 5.29713C2.00105 5.49145 1.80997 5.66273 1.66845 5.87532C1.54419 6.062 1.4522 6.26826 1.39635 6.48545C1.33275 6.73279 1.333 6.9894 1.33329 7.28054L1.33333 12.4241C1.33331 12.6835 1.3333 12.9169 1.34917 13.1111C1.36616 13.3191 1.40462 13.5401 1.51499 13.7567C1.67477 14.0703 1.92974 14.3253 2.24335 14.485C2.45995 14.5954 2.68093 14.6339 2.88891 14.6509C3.08312 14.6667 3.31653 14.6667 3.57591 14.6667H12.4241C12.6835 14.6667 12.9169 14.6667 13.1111 14.6509C13.3191 14.6339 13.54 14.5954 13.7566 14.485C14.0703 14.3253 14.3252 14.0703 14.485 13.7567C14.5954 13.5401 14.6338 13.3191 14.6508 13.1111C14.6667 12.9169 14.6667 12.6835 14.6667 12.4241L14.6667 7.28053C14.667 6.9894 14.6672 6.73279 14.6036 6.48545C14.5478 6.26826 14.4558 6.062 14.3315 5.87532C14.19 5.66273 13.9989 5.49145 13.7822 5.29713L9.49788 1.44927C9.32325 1.2924 9.16488 1.15015 9.02284 1.04125C8.86971 0.923861 8.69577 0.813133 8.48092 0.748384ZM7.90381 2.025C7.96654 2.0061 8.03345 2.0061 8.09618 2.025C8.09682 2.02519 8.10364 2.0272 8.11997 2.0364C8.13837 2.04678 8.16717 2.06534 8.21161 2.0994C8.30743 2.17287 8.42696 2.27959 8.62365 2.45625L12.8467 6.24917C13.1328 6.50615 13.1858 6.56032 13.2216 6.61414C13.263 6.67637 13.2937 6.74512 13.3123 6.81752C13.3284 6.88014 13.3333 6.95575 13.3333 7.34034V12.4C13.3333 12.6911 13.3328 12.8692 13.3219 13.0025C13.3168 13.0646 13.3105 13.1022 13.3051 13.125C13.3025 13.1359 13.3004 13.1426 13.2991 13.1462C13.2979 13.1496 13.2971 13.1511 13.297 13.1514C13.265 13.2141 13.214 13.2651 13.1513 13.297C13.1511 13.2972 13.1496 13.2979 13.1461 13.2991C13.1425 13.3004 13.1359 13.3026 13.125 13.3051C13.1022 13.3105 13.0646 13.3169 13.0025 13.322C12.8692 13.3328 12.691 13.3334 12.4 13.3334H8.66667V8.50008C8.66667 8.31599 8.51743 8.16675 8.33333 8.16675H7.66667C7.48257 8.16675 7.33333 8.31599 7.33333 8.50008V13.3334H3.6C3.30897 13.3334 3.13079 13.3328 2.99749 13.322C2.93539 13.3169 2.89781 13.3105 2.875 13.3051C2.86414 13.3026 2.85747 13.3004 2.85386 13.2991C2.85039 13.2979 2.84894 13.2972 2.84867 13.297C2.78595 13.2651 2.73495 13.2141 2.70299 13.1514C2.70291 13.1512 2.70256 13.1505 2.70199 13.1491C2.70168 13.1483 2.70131 13.1474 2.70088 13.1462C2.69959 13.1426 2.69745 13.1359 2.69489 13.125C2.68952 13.1022 2.68315 13.0646 2.67807 13.0025C2.66718 12.8692 2.66666 12.6911 2.66666 12.4V7.34034C2.66666 6.95575 2.67157 6.88014 2.68767 6.81752C2.70629 6.74512 2.73695 6.67637 2.77837 6.61414C2.8142 6.56032 2.86717 6.50615 3.1533 6.24917L7.37634 2.45625C7.57304 2.27959 7.69256 2.17287 7.78839 2.0994C7.83282 2.06534 7.86162 2.04678 7.88003 2.0364C7.89635 2.0272 7.90317 2.02519 7.90381 2.025Z",fill:"black",fillOpacity:"0.65"})})}const Qe=()=>u.jsx(ee,{svg:u.jsx(qe,{})});function Je(){return u.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M5.33333 7.66675C5.14924 7.66675 5 7.51751 5 7.33341V6.66675C5 6.48265 5.14924 6.33341 5.33333 6.33341H10.6667C10.8508 6.33341 11 6.48265 11 6.66675V7.33341C11 7.51751 10.8508 7.66675 10.6667 7.66675H5.33333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M5.33333 10.6667C5.14924 10.6667 5 10.5175 5 10.3334V9.66675C5 9.48265 5.14924 9.33341 5.33333 9.33341H8.33333C8.51743 9.33341 8.66667 9.48265 8.66667 9.66675V10.3334C8.66667 10.5175 8.51743 10.6667 8.33333 10.6667H5.33333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33333 0.666748C5.14924 0.666748 5 0.815986 5 1.00008V2.00013C4.01165 2.0009 3.49359 2.01346 3.09202 2.21807C2.71569 2.40982 2.40973 2.71578 2.21799 3.0921C2 3.51992 2 4.07998 2 5.20008V12.1334C2 13.2535 2 13.8136 2.21799 14.2414C2.40973 14.6177 2.71569 14.9237 3.09202 15.1154C3.51984 15.3334 4.0799 15.3334 5.2 15.3334H10.8C11.9201 15.3334 12.4802 15.3334 12.908 15.1154C13.2843 14.9237 13.5903 14.6177 13.782 14.2414C14 13.8136 14 13.2535 14 12.1334V5.20008C14 4.07998 14 3.51992 13.782 3.0921C13.5903 2.71578 13.2843 2.40982 12.908 2.21807C12.5064 2.01346 11.9883 2.0009 11 2.00013V1.00008C11 0.815986 10.8508 0.666748 10.6667 0.666748H10C9.81591 0.666748 9.66667 0.815986 9.66667 1.00008V2.00008H6.33333V1.00008C6.33333 0.815986 6.1841 0.666748 6 0.666748H5.33333ZM3.99498 3.35623C4.22961 3.33707 4.53372 3.33396 5 3.33349V4.00008C5 4.18418 5.14924 4.33341 5.33333 4.33341H6C6.1841 4.33341 6.33333 4.18418 6.33333 4.00008V3.33341H9.66667V4.00008C9.66667 4.18418 9.81591 4.33341 10 4.33341H10.6667C10.8508 4.33341 11 4.18418 11 4.00008V3.33349C11.4663 3.33396 11.7704 3.33707 12.005 3.35623C12.1292 3.36638 12.2044 3.37913 12.25 3.38988C12.2717 3.39499 12.2851 3.39927 12.2923 3.40185C12.2992 3.40432 12.3027 3.40608 12.3027 3.40608C12.4281 3.46999 12.5301 3.57198 12.594 3.69742C12.594 3.69742 12.5958 3.70087 12.5982 3.7078C12.6008 3.71502 12.6051 3.72837 12.6102 3.75008C12.621 3.79572 12.6337 3.87086 12.6438 3.99506C12.6656 4.26168 12.6667 4.61803 12.6667 5.20008V12.1334C12.6667 12.7155 12.6656 13.0718 12.6438 13.3384C12.6337 13.4626 12.621 13.5378 12.6102 13.5834C12.6051 13.6051 12.6008 13.6185 12.5982 13.6257C12.5969 13.6295 12.5958 13.632 12.5951 13.6337C12.5945 13.6351 12.594 13.6361 12.594 13.6361C12.5301 13.7615 12.4281 13.8635 12.3027 13.9274C12.3027 13.9274 12.2992 13.9292 12.2923 13.9316C12.2851 13.9342 12.2717 13.9385 12.25 13.9436C12.2044 13.9544 12.1292 13.9671 12.005 13.9773C11.7384 13.999 11.3821 14.0001 10.8 14.0001H5.2C4.61795 14.0001 4.26159 13.999 3.99498 13.9773C3.87078 13.9671 3.79563 13.9544 3.75 13.9436C3.72829 13.9385 3.71494 13.9342 3.70772 13.9316C3.70078 13.9292 3.69734 13.9274 3.69734 13.9274C3.5719 13.8635 3.46991 13.7615 3.406 13.6361C3.406 13.6361 3.40424 13.6326 3.40177 13.6257C3.39919 13.6185 3.39491 13.6051 3.38979 13.5834C3.37905 13.5378 3.3663 13.4626 3.35615 13.3384C3.33437 13.0718 3.33333 12.7155 3.33333 12.1334V5.20008C3.33333 4.61803 3.33437 4.26168 3.35615 3.99506C3.3663 3.87086 3.37905 3.79572 3.38979 3.75008C3.39491 3.72837 3.39919 3.71502 3.40177 3.7078C3.40424 3.70087 3.406 3.69742 3.406 3.69742C3.46991 3.57198 3.5719 3.46999 3.69734 3.40608C3.69734 3.40608 3.70078 3.40432 3.70772 3.40185C3.71494 3.39927 3.72829 3.39499 3.75 3.38988C3.79563 3.37913 3.87078 3.36638 3.99498 3.35623Z",fill:"black",fillOpacity:"0.65"})]})}const et=()=>u.jsx(ee,{svg:u.jsx(Je,{})});function tt(){return u.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7.16667C7.33518 7.16667 8.45466 6.24312 8.75446 5H14.6667C14.8508 5 15 4.85076 15 4.66667V4C15 3.81591 14.8508 3.66667 14.6667 3.66667H8.75446C8.45466 2.42355 7.33518 1.5 6 1.5C4.66482 1.5 3.54534 2.42355 3.24554 3.66667H1.33333C1.14924 3.66667 1 3.81591 1 4V4.66667C1 4.85076 1.14924 5 1.33333 5H3.24554C3.54534 6.24312 4.66482 7.16667 6 7.16667ZM7.5 4.33333C7.5 5.16176 6.82843 5.83333 6 5.83333C5.17157 5.83333 4.5 5.16176 4.5 4.33333C4.5 3.50491 5.17157 2.83333 6 2.83333C6.82843 2.83333 7.5 3.50491 7.5 4.33333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 14.5C11.3352 14.5 12.4547 13.5765 12.7545 12.3333H14.6667C14.8508 12.3333 15 12.1841 15 12V11.3333C15 11.1492 14.8508 11 14.6667 11H12.7545C12.4547 9.75688 11.3352 8.83333 10 8.83333C8.66482 8.83333 7.54534 9.75688 7.24554 11H1.33333C1.14924 11 1 11.1492 1 11.3333V12C1 12.1841 1.14924 12.3333 1.33333 12.3333H7.24554C7.54534 13.5765 8.66482 14.5 10 14.5ZM11.5 11.6667C11.5 12.4951 10.8284 13.1667 10 13.1667C9.17157 13.1667 8.5 12.4951 8.5 11.6667C8.5 10.8382 9.17157 10.1667 10 10.1667C10.8284 10.1667 11.5 10.8382 11.5 11.6667Z",fill:"black",fillOpacity:"0.65"})]})}const st=()=>u.jsx(ee,{svg:u.jsx(tt,{})});function nt(){return u.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M5.66666 2.66659C5.85076 2.66659 6 2.51735 6 2.33325V1.66659C6 1.48249 5.85076 1.33325 5.66666 1.33325H5.59999C4.10652 1.33325 3.35979 1.33325 2.78935 1.6239C2.28759 1.87956 1.87964 2.28751 1.62398 2.78928C1.33333 3.35971 1.33333 4.10645 1.33333 5.59992V5.66658C1.33333 5.85068 1.48257 5.99992 1.66666 5.99992H2.33333C2.51742 5.99992 2.66666 5.85068 2.66666 5.66658V5.59992C2.66666 4.83118 2.6677 4.33482 2.69856 3.95703C2.72816 3.59482 2.7784 3.46052 2.81199 3.3946C2.93982 3.14372 3.14379 2.93974 3.39467 2.81191C3.4606 2.77832 3.59489 2.72808 3.95711 2.69849C4.33489 2.66762 4.83126 2.66659 5.59999 2.66659H5.66666Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M14.6667 5.66658C14.6667 5.85068 14.5174 5.99992 14.3333 5.99992H13.6667C13.4826 5.99992 13.3333 5.85068 13.3333 5.66658V5.59992C13.3333 4.83118 13.3323 4.33482 13.3014 3.95703C13.2718 3.59482 13.2216 3.46052 13.188 3.3946C13.0602 3.14372 12.8562 2.93974 12.6053 2.81191C12.5394 2.77832 12.4051 2.72808 12.0429 2.69849C11.6651 2.66762 11.1687 2.66659 10.4 2.66659H10.3333C10.1492 2.66659 10 2.51735 10 2.33325V1.66659C10 1.48249 10.1492 1.33325 10.3333 1.33325H10.4C11.8935 1.33325 12.6402 1.33325 13.2106 1.6239C13.7124 1.87956 14.1203 2.28751 14.376 2.78928C14.6667 3.35971 14.6667 4.10645 14.6667 5.59992V5.66658Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M1.66666 9.99992C1.48257 9.99992 1.33333 10.1492 1.33333 10.3333V10.3999C1.33333 11.8934 1.33333 12.6401 1.62398 13.2106C1.87964 13.7123 2.28759 14.1203 2.78935 14.3759C3.35979 14.6666 4.10652 14.6666 5.59999 14.6666H5.66666C5.85076 14.6666 6 14.5173 6 14.3333V13.6666C6 13.4825 5.85076 13.3333 5.66666 13.3333H5.59999C4.83126 13.3333 4.33489 13.3322 3.95711 13.3013C3.59489 13.2718 3.4606 13.2215 3.39467 13.1879C3.14379 13.0601 2.93982 12.8561 2.81199 12.6052C2.7784 12.5393 2.72816 12.405 2.69856 12.0428C2.6677 11.665 2.66666 11.1687 2.66666 10.3999V10.3333C2.66666 10.1492 2.51742 9.99992 2.33333 9.99992H1.66666Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M10.3333 13.3333C10.1492 13.3333 10 13.4825 10 13.6666V14.3333C10 14.5173 10.1492 14.6666 10.3333 14.6666H10.4C11.8935 14.6666 12.6402 14.6666 13.2106 14.3759C13.7124 14.1203 14.1203 13.7123 14.376 13.2106C14.6667 12.6401 14.6667 11.8934 14.6667 10.3999V10.3333C14.6667 10.1492 14.5174 9.99992 14.3333 9.99992H13.6667C13.4826 9.99992 13.3333 10.1492 13.3333 10.3333V10.3999C13.3333 11.1687 13.3323 11.665 13.3014 12.0428C13.2718 12.405 13.2216 12.5393 13.188 12.6052C13.0602 12.8561 12.8562 13.0601 12.6053 13.1879C12.5394 13.2215 12.4051 13.2718 12.0429 13.3013C11.6651 13.3322 11.1687 13.3333 10.4 13.3333H10.3333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.17159 10.1144C8.64463 10.4634 8.01272 10.6667 7.33333 10.6667C5.49238 10.6667 3.99999 9.17428 3.99999 7.33333C3.99999 5.49238 5.49238 4 7.33333 4C9.17428 4 10.6667 5.49238 10.6667 7.33333C10.6667 8.01272 10.4634 8.64464 10.1144 9.17159L11.7357 10.7929C11.8659 10.9231 11.8659 11.1341 11.7357 11.2643L11.2643 11.7357C11.1341 11.8659 10.9231 11.8659 10.7929 11.7357L9.17159 10.1144ZM9.33333 7.33333C9.33333 8.4379 8.4379 9.33333 7.33333 9.33333C6.22876 9.33333 5.33333 8.4379 5.33333 7.33333C5.33333 6.22876 6.22876 5.33333 7.33333 5.33333C8.4379 5.33333 9.33333 6.22876 9.33333 7.33333Z",fill:"black",fillOpacity:"0.65"})]})}const ot=()=>u.jsx(ee,{svg:u.jsx(nt,{})}),te=[{text:W("scanQRCode2Debug"),itemKey:"scan_qrcode",icon:u.jsx(Qe,{}),path:"/"},{itemKey:"launch_mode",text:W("launchMode"),icon:u.jsx(st,{}),path:"/launch_mode"},{itemKey:"precheck_code",text:W("codePreCheck"),icon:u.jsx(ot,{}),path:"/precheck_code"},{itemKey:"project_info",text:W("projectInfo"),icon:u.jsx(et,{}),path:"/project_detail"},{itemKey:"changelog",text:W("changelog"),icon:u.jsx(Fe,{size:"default",style:{fontWeight:"300",color:"#666"}}),path:"/changelog"}],at=()=>{const{state:{devToolVersion:p}}=Me(),t=Le(),[e,s]=b.useState("scan_qrcode"),[n,i]=b.useState(!1);b.useEffect(()=>{i(Re(p))},[p]);const l=b.useMemo(()=>te.map(c=>c.itemKey==="changelog"?{...c,text:u.jsxs("span",{className:"sidebar-changelog-label",children:[c.text,n&&u.jsx(Ve,{className:"sidebar-changelog-new-tag",color:"red",shape:"circle",size:"small",type:"solid",children:"NEW"})]})}:c),[n]),r=c=>{const d=te.find(m=>m.itemKey===c.itemKey);d&&(d.itemKey==="changelog"&&p&&(ke(p),i(!1)),t(d.path),s(d.itemKey))};return b.useEffect(()=>{const c=window.location.pathname,d=te.find(m=>m.path===c);s(d?d.itemKey:"")},[t]),u.jsx(A,{limitIndent:!1,bodyStyle:{height:"100vh",paddingLeft:"12px",width:"100%"},items:l,selectedKeys:[e],onSelect:r})};export{at as Sidebar};
1
+ import{G as ge,r as b,B as Te,a as oe,l as z,H as V,J as ye,R as a,b as le,K as Oe,M as _e,c as K,O as Ae,Q as be,P as o,t as S,U as De,V as ie,W as ae,A as Pe,m as re,X as ce,L as je,s as He,j as u,Y as ee,u as Me,w as Le,Z as Re,d as Ve,i as W,D as ke}from"./index-BGB_3rmy.js";import{D as se}from"./index-Be7GH3NR.js";function $e(p){return b.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},p),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.5a7.5 7.5 0 1 1-7.07 10 1.5 1.5 0 0 0-2.83 1 10.5 10.5 0 1 0 1.27-9.48l-.43-1.45a1.5 1.5 0 1 0-2.88.86l1.5 5c.23.74.98 1.2 1.73 1.04l5-1a1.5 1.5 0 0 0-.58-2.94l-2.01.4A7.5 7.5 0 0 1 12 4.5Zm1.5 3a1.5 1.5 0 0 0-3 0V12c0 .4.16.78.44 1.06l3 3a1.5 1.5 0 0 0 2.12-2.12l-2.56-2.56V7.5Z",fill:"currentColor"}))}const Fe=ge($e,"history");function Ge(p){return b.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},p),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm1 2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6Z",fill:"currentColor"}))}const Ze=ge(Ge,"sidebar"),de="horizontal",pe="vertical",x={PREFIX:`${Te}-navigation`},h={MODE:[pe,de],MODE_VERTICAL:pe,MODE_HORIZONTAL:de,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},$={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},ue={open:"chevron_up",closed:"chevron_down"};let Be=class ne{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(t==null||typeof t!="object")&&(t={text:t,itemKey:t,maxHeight:$.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const e of Object.keys(t))this[e]=t[e];t.items&&Array.isArray(t.items)&&t.items.length?(this.items=t.items.map(e=>new ne(e)),"toggleIcon"in t?this.toggleIcon=ne.isValidToggleIcon(t.toggleIcon)?Object.assign({},t.toggleIcon):Object.assign({},ue):this.toggleIcon=Object.assign({},ue)):this.items=null}static isValidToggleIcon(t){return!!(t&&typeof t=="object"&&typeof t.open=="string"&&t.open.length&&typeof t.closed=="string"&&t.closed.length)}};class F extends oe{constructor(t){super(Object.assign({},t))}static getZeroParentKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=[];for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];if(n.length){for(const l of n)if(Array.isArray(t[l])&&t[l].length){const r=t[l][0];V(r)||e.push(r)}}return e}static buildItemKeysMap(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";var i;if(Array.isArray(t)&&t.length)for(const l of t)if(Array.isArray(l))F.buildItemKeysMap(l,e,[...s],n);else{let r;if(l&&typeof l=="object"&&(r=l[n]||l.props&&l.props[n]),r){e[r]=[...s];const c=(i=l.props)===null||i===void 0?void 0:i.children;if(Array.isArray(l.items)&&l.items.length)F.buildItemKeysMap(l.items,e,[...s,r],n);else if(c){const d=Array.isArray(c)?c:[c];F.buildItemKeysMap(d,e,[...s,r],n)}}}return e}init(t){const{defaultSelectedKeys:e,selectedKeys:s}=this.getProps();let n=s||e||[];const{itemKeysMap:i,willOpenKeys:l,formattedItems:r}=this.getCalcState(),c=this.selectLevelZeroParentKeys(i,n);if(n=n.concat(c),t==="constructor")return{selectedKeys:n,itemKeysMap:i,openKeys:l,items:r};this._adapter.updateSelectedKeys(n,!1),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(l),this._adapter.updateItems(r),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:t,formattedItems:e}=this.getFormattedItems(),s=this.getWillOpenKeys(t);return{itemKeysMap:t,willOpenKeys:s,formattedItems:e}}getFormattedItems(){const{items:t,children:e}=this.getProps(),s=this.formatItems(t),n=Array.isArray(t)&&t.length?s:e;return{itemKeysMap:F.buildItemKeysMap(n),formattedItems:s}}getWillOpenKeys(t){const{defaultOpenKeys:e,openKeys:s,defaultSelectedKeys:n,selectedKeys:i,mode:l}=this.getProps(),{openKeys:r=[]}=this.getStates();let c=s||e||[];if(!(Array.isArray(e)||Array.isArray(s))&&l===h.MODE_VERTICAL&&(Array.isArray(n)||Array.isArray(i))){const d=Array.isArray(i)?i:n;c=r.concat(this.getShouldOpenKeys(t,d)),c=Array.from(new Set(c))}return[...c]}getShouldOpenKeys(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const s=new Set;return Array.isArray(e)&&e.length&&e.forEach(n=>{if(n){const i=z(t,n);Array.isArray(i)&&i.forEach(l=>s.add(l))}}),[...s]}destroy(){}selectLevelZeroParentKeys(t,e){const s=V(t)?this.getState("itemKeysMap"):t,n=[];if(e.length){for(const i of e)if(Array.isArray(s[i])&&s[i].length){const l=s[i][0];V(l)||n.push(l)}}return n.length?n:[]}formatItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];for(const s of t)e.push(new Be(s));return e}handleSelect(t){this._adapter.notifySelect(t)}judgeIfOpen(t,e){let s=!1;const n=Array.isArray(t)?t:t&&[t];if(n&&Array.isArray(e)&&e.length){for(const i of e)if(s=n.includes(i.itemKey)||this.judgeIfOpen(n,i.items),s)break}return s}handleCollapseChange(){const t=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(t),this._adapter.notifyCollapseChange(t)}handleItemsChange(t){this._adapter.setItemsChanged(t)}}const he=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];return n.forEach(l=>l&&e.add(l)),Array.from(e)},me=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=new Set(t);for(var s=arguments.length,n=new Array(s>1?s-1:0),i=1;i<s;i++)n[i-1]=arguments[i];return n.forEach(l=>l&&e.delete(l)),Array.from(e)};class Ue extends oe{constructor(t){super(Object.assign({},t))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(t){return t!=null&&(typeof t=="number"||typeof t=="string")}handleDropdownVisibleChange(t){const e=this.getProp("itemKey"),s=this._adapter.getOpenKeysIsControlled(),n=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),l=t?he(i,e):me(i,e);this.clearDelayTimer(),s||n&&this._adapter.updateOpen(t),this._adapter.notifyGlobalOpenChange({itemKey:e,openKeys:l,isOpen:t})}handleClick(t,e){const{itemKey:s,disabled:n}=this.getProps();if(n)return;const i=e&&e.contains(t.target);let l=!!this._adapter.getIsOpen();i?l=!l:l=!1;const r=l?he(this._adapter.getOpenKeys(),s):me(this._adapter.getOpenKeys(),s),c={itemKey:s,openKeys:r,isOpen:l,domEvent:t},d=this._adapter.getOpenKeysIsControlled(),m=this._adapter.getCanUpdateOpenKeys();!d&&m&&this._adapter.updateOpen(l),this._adapter.notifyGlobalOpenChange(c),this._adapter.notifyGlobalOnClick(c)}handleKeyPress(t,e){ye(t)&&this.handleClick(t,e)}}class Xe extends oe{constructor(t){super(Object.assign({},t))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(t){return t!=null&&(typeof t=="string"||typeof t=="number")}handleClick(t){const{isSubNav:e,itemKey:s,text:n,disabled:i}=this.getProps();if(i)return;!e&&this.isValidKey(s)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const l=[s];if(!e){if(!this._adapter.getSelected()){const r=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:s,selectedKeys:l,selectedItems:r,domEvent:t})}this._adapter.notifyGlobalOnClick({itemKey:s,text:n,domEvent:t})}this._adapter.notifyClick({itemKey:s,text:n,domEvent:t})}handleKeyPress(t){if(ye(t)){const{link:e,linkOptions:s}=this.getProps(),n=z(s,"target","_self");this.handleClick(t),typeof e=="string"&&(n==="_blank"?window.open(e):window.location.href=e)}}}const G=a.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),y=`${x.PREFIX}-item`;class Z extends le{constructor(t){super(t),this.setItemRef=e=>{this.props.forwardRef&&this.props.forwardRef(e)},this.wrapTooltip=e=>{const{text:s,tooltipHideDelay:n,tooltipShowDelay:i}=this.props,l=n??this.context.tooltipHideDelay,r=i??this.context.tooltipShowDelay;return a.createElement(Oe,{content:s,wrapWhenSpecial:!1,position:"right",trigger:"hover",mouseEnterDelay:r,mouseLeaveDelay:l},e)},this.handleClick=e=>this.foundation.handleClick(e),this.handleKeyPress=e=>this.foundation.handleKeyPress(e),this.state={tooltipShow:!1},this.foundation=new Xe(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];return this.context[t](...s)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{cloneDeep:_e,updateTooltipShow:e=>this.setState({tooltipShow:e}),updateSelected:e=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:e=>this._invokeContextFunc("updateSelectedKeys",[...e]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onSelect",...s)},notifyGlobalOnClick:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onClick",...s)},notifyClick:function(){return t.props.onClick(...arguments)},notifyMouseEnter:function(){return t.props.onMouseEnter(...arguments)},notifyMouseLeave:function(){return t.props.onMouseLeave(...arguments)},getIsCollapsed:()=>this.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!t&&this.context.mode===h.MODE_HORIZONTAL)return null;let i="large";e===h.ICON_POS_RIGHT&&(i="default");const l=K(`${y}-icon`,{[`${y}-icon-toggle-${this.context.toggleIconPosition}`]:s,[`${y}-icon-info`]:!s});return a.createElement("i",{className:l,key:n},Ae(t)?a.cloneElement(t,{size:t.props.size||i}):t)}render(){var t;const{text:e,icon:s,toggleIcon:n,className:i,isSubNav:l,style:r,indent:c,onMouseEnter:d,onMouseLeave:m,link:C,linkOptions:w,disabled:I,level:g=0,tabIndex:L}=this.props,{mode:O,isInSubNav:f,prefixCls:v,limitIndent:B}=this.context,N=this.adapter.getIsCollapsed(),D=this.adapter.getSelected();let E=null;const q=(t=this.props)===null||t===void 0?void 0:t.children;if(!V(q))E=q;else{let j=null;if(O===h.MODE_VERTICAL&&!B&&!N){const T=s&&!c?g:g-1;j=be(T,U=>this.renderIcon(null,h.ICON_POS_RIGHT,!1,U))}E=a.createElement(a.Fragment,null,j,this.context.toggleIconPosition===h.TOGGLE_ICON_LEFT&&this.renderIcon(n,h.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),s||c||f?this.renderIcon(s,h.ICON_POS_LEFT,!1,"key-position-left"):null,V(e)?"":a.createElement("span",{className:`${x.PREFIX}-item-text`},e),this.context.toggleIconPosition===h.TOGGLE_ICON_RIGHT&&this.renderIcon(n,h.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof C=="string"&&(E=a.createElement("a",Object.assign({className:`${v}-item-link`,href:C,tabIndex:-1},w),E));let P="";if(f&&(N||O===h.MODE_HORIZONTAL)){const j=K({[y]:!0,[`${y}-sub`]:l,[`${y}-selected`]:D,[`${y}-collapsed`]:N,[`${y}-disabled`]:I});P=a.createElement(se.Item,{selected:D,active:D,forwardRef:this.setItemRef,className:j,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,disabled:I,onKeyDown:this.handleKeyPress},E)}else{const j=K(`${i||`${y}-normal`}`,{[y]:!0,[`${y}-sub`]:l,[`${y}-selected`]:D&&!l,[`${y}-collapsed`]:N,[`${y}-disabled`]:I,[`${y}-has-link`]:typeof C=="string"}),T={"aria-disabled":I};if(l){const U=this.adapter.getIsOpen();T["aria-expanded"]=U}P=a.createElement("li",Object.assign({role:l?null:"menuitem",tabIndex:l?-1:L},T,{style:r,ref:this.setItemRef,className:j,onClick:this.handleClick,onMouseEnter:d,onMouseLeave:m,onKeyPress:this.handleKeyPress},this.getDataAttr(this.props)),E)}return(N&&!f&&!l||N&&l&&I)&&(P=this.wrapTooltip(P)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:P,isSubNav:l,isInSubNav:f,props:this.props}):P}}Z.contextType=G;Z.propTypes={text:o.oneOfType([o.string,o.node]),itemKey:o.oneOfType([o.string,o.number]),onClick:o.func,onMouseEnter:o.func,onMouseLeave:o.func,icon:o.oneOfType([o.node]),className:o.string,toggleIcon:o.string,style:o.object,forwardRef:o.func,indent:o.oneOfType([o.bool,o.number]),isCollapsed:o.bool,isSubNav:o.bool,link:o.string,linkOptions:o.object,disabled:o.bool,tabIndex:o.number};Z.defaultProps={isSubNav:!1,indent:!1,forwardRef:S,isCollapsed:!1,onClick:S,onMouseEnter:S,onMouseLeave:S,disabled:!1,tabIndex:0};class Y extends le{constructor(t){super(t),this.setItemRef=e=>{e&&e.current?this.itemRef=e:this.itemRef={current:e}},this.setTitleRef=e=>{e&&e.current?this.titleRef=e:this.titleRef={current:e}},this.handleClick=e=>{this.foundation.handleClick(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=e=>{this.foundation.handleKeyPress(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=e=>this.foundation.handleDropdownVisibleChange(e),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=a.createRef(),this.itemRef=a.createRef(),this.foundation=new Ue(this.adapter)}_invokeContextFunc(t){if(t&&this.context&&typeof this.context[t]=="function"){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];return this.context[t](...s)}return null}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{updateIsHovered:e=>this.setState({isHovered:e}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:e=>this._invokeContextFunc(e?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onOpenChange",...s)},notifyGlobalOnSelect:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onSelect",...s)},notifyGlobalOnClick:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return t._invokeContextFunc("onClick",...s)},getIsSelected:e=>!!(!V(e)&&z(this.context,"selectedKeys",[]).includes(String(e))),getIsOpen:()=>{const{itemKey:e}=this.props;return!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))}})}renderIcon(t,e,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:l}=this.context;let r="large";e===h.ICON_POS_RIGHT&&(r="default");const c=K(`${l}-item-icon`,{[`${l}-item-icon-toggle-${this.context.toggleIconPosition}`]:n,[`${l}-item-icon-info`]:!n}),d=this.adapter.getIsOpen(),m=a.isValidElement(t)?s?a.createElement(De,{animationState:d?"enter":"leave",startClassName:`${x.PREFIX}-icon-rotate-${d?"180":"0"}`},C=>{let{animationClassName:w}=C;return a.cloneElement(t,{size:r,className:w})}):a.cloneElement(t,{size:r}):null;return a.createElement("i",{key:i,className:c},m)}renderTitleDiv(){const{text:t,icon:e,itemKey:s,indent:n,disabled:i,level:l,expandIcon:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,prefixCls:C,subNavMotion:w,limitIndent:I}=this.context,g=this.adapter.getIsOpen(),L=K(`${C}-sub-title`,{[`${C}-sub-title-selected`]:this.adapter.getIsSelected(s),[`${C}-sub-title-disabled`]:i});let O=!1,f="";m?d?f=a.createElement(ie,null):f=null:c===h.MODE_HORIZONTAL?d?f=a.createElement(ie,{"aria-hidden":!0}):f=r||a.createElement(ae,{"aria-hidden":!0}):(w&&(O=!0),f=r||a.createElement(ae,{"aria-hidden":!0}));let v=null;if(c===h.MODE_VERTICAL&&!I&&!m){const D=e&&!n?l:l-1;v=be(D,E=>this.renderIcon(null,h.ICON_POS_RIGHT,!1,!1,E))}const B=!m&&d&&c===h.MODE_HORIZONTAL||m&&d;return a.createElement("div",{role:"menuitem",tabIndex:B?-1:0,ref:this.setTitleRef,className:L,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":g?"true":"false"},a.createElement("div",{className:`${C}-item-inner`},v,this.context.toggleIconPosition===h.TOGGLE_ICON_LEFT&&this.renderIcon(f,h.ICON_POS_RIGHT,O,!0,"key-toggle-position-left"),e||n||d&&c!==h.MODE_HORIZONTAL?this.renderIcon(e,h.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,a.createElement("span",{className:`${C}-item-text`},t),this.context.toggleIconPosition===h.TOGGLE_ICON_RIGHT&&this.renderIcon(f,h.ICON_POS_RIGHT,O,!0,"key-toggle-position-right")))}renderSubUl(){const{children:t,maxHeight:e}=this.props,{isCollapsed:s,mode:n,subNavMotion:i,prefixCls:l}=this.context,r=this.adapter.getIsOpen(),c=n===h.MODE_HORIZONTAL,d=K(`${l}-sub`,{[`${l}-sub-open`]:r,[`${l}-sub-popover`]:s||c});return c?null:i?a.createElement(Pe,{motion:i,isOpen:r,keepDOM:!1,fade:!0},s?null:a.createElement("ul",{className:d},t)):r&&!s?a.createElement("ul",{className:d},t):null}wrapDropdown(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:s,dropdownStyle:n,disabled:i,subDropdownProps:l,dropdownProps:r}=this.props,{mode:c,isInSubNav:d,isCollapsed:m,subNavCloseDelay:C,subNavOpenDelay:w,prefixCls:I,getPopupContainer:g}=this.context,L=this.adapter.getIsOpen(),O=this.adapter.getOpenKeysIsControlled(),f=K({[`${I}-popover`]:m}),v={trigger:"hover",style:n};return O&&(v.trigger="custom",v.visible=L),g&&(v.getPopupContainer=g),(m||c===h.MODE_HORIZONTAL)&&(e=i?e:a.createElement(se,Object.assign({className:f,render:a.createElement(se.Menu,null,s),position:c===h.MODE_HORIZONTAL&&!d?"bottomLeft":"rightTop",mouseEnterDelay:w,mouseLeaveDelay:C,onVisibleChange:this.handleDropdownVisible},r||l,v),e)),e}render(){const{itemKey:t,style:e,onMouseEnter:s,onMouseLeave:n,disabled:i,text:l}=this.props,{mode:r,isCollapsed:c,prefixCls:d}=this.context;let m=this.renderTitleDiv();const C=this.renderSubUl();return(c||r===h.MODE_HORIZONTAL)&&(m=this.wrapDropdown(m)),a.createElement(Z,{style:e,isSubNav:!0,itemKey:t,forwardRef:this.setItemRef,isCollapsed:c,className:`${d}-sub-wrap`,onMouseEnter:s,onMouseLeave:n,disabled:i,text:l},a.createElement(G.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},m,C))}}Y.contextType=G;Y.propTypes={itemKey:o.oneOfType([o.string,o.number]),text:o.oneOfType([o.string,o.node]),isOpen:o.bool,isCollapsed:o.bool,indent:o.oneOfType([o.bool,o.number]),children:o.node,style:o.object,icon:o.node,maxHeight:o.number,onMouseEnter:o.func,onMouseLeave:o.func,disabled:o.bool,level:o.number};Y.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:$.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function We(p){let{prefixCls:t,locale:e,collapseText:s,isCollapsed:n,onClick:i=S}=p;const l=()=>{typeof i=="function"&&i(!n)},r={icon:a.createElement(Ze,null),type:"tertiary",theme:"borderless",onClick:l};let c=n?e?.expandText:e?.collapseText;return typeof s=="function"&&(c=s(n)),a.createElement("div",{className:`${t}-collapse-btn`},n?a.createElement(Oe,{content:c,position:"right"},a.createElement(re,Object.assign({},r))):a.createElement(re,Object.assign({},r),c))}class H extends b.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:t,collapseText:e}=this.props;if(a.isValidElement(t))return t;const{onCollapseChange:s,prefixCls:n,locale:i,isCollapsed:l}=this.context;return a.createElement(We,{prefixCls:n,isCollapsed:l,locale:i,onClick:s,collapseText:e})}}render(){const{style:t,className:e,collapseButton:s,onClick:n}=this.props;let{children:i}=this.props;const{isCollapsed:l,mode:r}=this.context;!a.isValidElement(i)&&s&&r!==h.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const c=K(e,`${x.PREFIX}-footer`,{[`${x.PREFIX}-footer-collapsed`]:l});return a.createElement("div",{className:c,style:t,onClick:n},i)}}H.contextType=G;H.propTypes={children:o.node,style:o.object,className:o.string,collapseButton:o.oneOfType([o.node,o.bool]),collapseText:o.func,onClick:o.func};H.defaultProps={collapseButton:!1,onClick:S};H.elementType="NavFooter";class M extends b.PureComponent{renderLogo(t){return a.isValidElement(t)?t:null}render(){const{children:t,style:e,className:s,logo:n,text:i,link:l,linkOptions:r,prefixCls:c}=this.props,{isCollapsed:d}=this.context,m=K(s,`${x.PREFIX}-header`,{[`${x.PREFIX}-header-collapsed`]:d});let C=a.createElement(a.Fragment,null,n?a.createElement("i",{className:`${x.PREFIX}-header-logo`},this.renderLogo(n)):null,!V(i)&&!d?a.createElement("span",{className:`${x.PREFIX}-header-text`},i):null,t);return typeof l=="string"&&(C=a.createElement("a",Object.assign({className:`${c}-header-link`,href:l},r),C)),a.createElement("div",{className:m,style:e},C)}}M.contextType=G;M.propTypes={prefixCls:o.string,logo:o.oneOfType([o.string,o.object,o.node]),text:o.oneOfType([o.string,o.node]),children:o.node,style:o.object,className:o.string,link:o.string,linkOptions:o.object};M.defaultProps={prefixCls:x.PREFIX};M.elementType="NavHeader";var ze=function(p,t){var e={};for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&t.indexOf(s)<0&&(e[s]=p[s]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(p);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(p,s[n])&&(e[s[n]]=p[s[n]]);return e};function Ce(p,t){return function(){const s=new Set(p.state[t]);for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];i.forEach(r=>r&&s.add(r)),p.setState({[t]:Array.from(s)})}}function fe(p,t){return function(){const s=new Set(p.state[t]);for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];i.forEach(r=>r&&s.delete(r)),p.setState({[t]:Array.from(s)})}}const{hasOwnProperty:Ye}=Object.prototype;class A extends le{constructor(t){super(t),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new F(this.adapter),this.itemsChanged=!0;const{isCollapsed:e,defaultIsCollapsed:s,items:n,children:i}=t,l={isCollapsed:!!(this.isControlled("isCollapsed")?e:s),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},l),n&&n.length||i){const r=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},l),r)}}static getDerivedStateFromProps(t,e){const s={};return Ye.call(t,"isCollapsed")&&t.isCollapsed!==e.isCollapsed&&(s.isCollapsed=t.isCollapsed),s}componentDidMount(){}componentDidUpdate(t){if(t.items!==this.props.items||t.children!==this.props.children)this.foundation.init();else{if(this.foundation.handleItemsChange(!1),this.props.selectedKeys&&!ce(t.selectedKeys,this.props.selectedKeys)){this.adapter.updateSelectedKeys(this.props.selectedKeys);const e=this.foundation.getWillOpenKeys(this.state.itemKeysMap);this.adapter.updateOpenKeys(e)}this.props.openKeys&&!ce(t.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys)}}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return t.props.onSelect(...arguments)},notifyOpenChange:function(){return t.props.onOpenChange(...arguments)},setIsCollapsed:e=>this.setState({isCollapsed:e}),notifyCollapseChange:function(){return t.props.onCollapseChange(...arguments)},updateItems:e=>this.setState({items:[...e]}),setItemKeysMap:e=>this.setState({itemKeysMap:Object.assign({},e)}),addSelectedKeys:Ce(this,"selectedKeys"),removeSelectedKeys:fe(this,"selectedKeys"),updateSelectedKeys:function(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=e;if(s){const i=t.foundation.selectLevelZeroParentKeys(null,e);n=Array.from(new Set(e.concat(i)))}t.setState({selectedKeys:n})},updateOpenKeys:e=>this.setState({openKeys:[...e]}),addOpenKeys:Ce(this,"openKeys"),removeOpenKeys:fe(this,"openKeys"),setItemsChanged:e=>{this.itemsChanged=e}})}renderItems(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:s,subDropdownProps:n}=this.props;return a.createElement(a.Fragment,null,t.map((l,r)=>Array.isArray(l.items)&&l.items.length?a.createElement(Y,Object.assign({key:l.itemKey||String(e)+r},l,{level:e,expandIcon:s,subDropdownProps:n}),this.renderItems(l.items,e+1)):a.createElement(Z,Object.assign({key:l.itemKey||String(e)+r},l,{level:e}))))}render(){const t=this.props,{children:e,mode:s,onOpenChange:n,onSelect:i,onClick:l,style:r,className:c,subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:C,tooltipShowDelay:w,tooltipHideDelay:I,prefixCls:g,bodyStyle:L,footer:O,header:f,toggleIconPosition:v,limitIndent:B,renderWrapper:N,getPopupContainer:D}=t,E=ze(t,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:q,openKeys:P,items:j,isCollapsed:T}=this.state,{updateOpenKeys:U,addOpenKeys:Ie,removeOpenKeys:ve,updateSelectedKeys:Ke,addSelectedKeys:xe,removeSelectedKeys:Ee}=this.adapter,Se=Object.assign({},r);let _=b.Children.toArray(e);const Q=[],J=[];if(a.isValidElement(O)?Q.push(a.createElement(H,{key:0},O)):O&&typeof O=="object"&&Q.push(a.createElement(H,Object.assign({key:0},O))),a.isValidElement(f)?J.push(a.createElement(M,{key:0},f)):f&&typeof f=="object"&&J.push(a.createElement(M,Object.assign({key:0},f))),Array.isArray(_)&&_.length){_=[..._];let X=_.length;for(let R=0;R<X;R++){const k=_[R];k.type===H||z(k,"type.elementType")==="NavFooter"?(Q.push(k),_.splice(R,1),R--,X--):(k.type===M||z(k,"type.elementType")==="NavHeader")&&(J.push(k),_.splice(R,1),R--,X--)}}const we=K(g,c,{[`${g}-collapsed`]:T,[`${g}-horizontal`]:s==="horizontal",[`${g}-vertical`]:s==="vertical"}),Ne=K(`${g}-header-list-outer`,{[`${g}-header-list-outer-collapsed`]:T});return this.itemsChanged&&this.adapter.setCache("itemElems",this.renderItems(j)),a.createElement(je,{componentName:"Navigation"},X=>a.createElement(G.Provider,{value:{subNavCloseDelay:d,subNavOpenDelay:m,subNavMotion:C,tooltipShowDelay:w,tooltipHideDelay:I,openKeys:P,openKeysIsControlled:this.isControlled("openKeys")&&s==="vertical"&&!T,canUpdateOpenKeys:!0,selectedKeys:q,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:T,onCollapseChange:this.onCollapseChange,mode:s,onSelect:i,onOpenChange:n,updateOpenKeys:U,addOpenKeys:Ie,removeOpenKeys:ve,updateSelectedKeys:Ke,addSelectedKeys:xe,removeSelectedKeys:Ee,onClick:l,locale:X,prefixCls:g,toggleIconPosition:v,limitIndent:B,renderWrapper:N,getPopupContainer:D}},a.createElement("div",Object.assign({className:we,style:Se},this.getDataAttr(E)),a.createElement("div",{className:`${g}-inner`},a.createElement("div",{className:Ne},J,a.createElement("div",{style:L,className:`${g}-list-wrapper`},a.createElement("ul",{role:"menu","aria-orientation":s,className:`${g}-list`},this.adapter.getCache("itemElems"),_))),Q))))}}A.Sub=Y;A.Item=Z;A.Header=M;A.Footer=H;A.propTypes={collapseIcon:o.node,defaultOpenKeys:o.arrayOf(o.oneOfType([o.string,o.number])),openKeys:o.arrayOf(o.oneOfType([o.string,o.number])),defaultSelectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),expandIcon:o.node,selectedKeys:o.arrayOf(o.oneOfType([o.string,o.number])),mode:o.oneOf([...h.MODE]),onSelect:o.func,onClick:o.func,onOpenChange:o.func,items:o.array,isCollapsed:o.bool,defaultIsCollapsed:o.bool,onCollapseChange:o.func,multiple:o.bool,onDeselect:o.func,subNavMotion:o.oneOfType([o.bool,o.object,o.func]),subNavCloseDelay:o.number,subNavOpenDelay:o.number,tooltipShowDelay:o.number,tooltipHideDelay:o.number,children:o.node,style:o.object,bodyStyle:o.object,className:o.string,toggleIconPosition:o.string,prefixCls:o.string,header:o.oneOfType([o.node,o.object]),footer:o.oneOfType([o.node,o.object]),limitIndent:o.bool,getPopupContainer:o.func};A.__SemiComponentName__="Navigation";A.defaultProps=He(A.__SemiComponentName__,{subNavCloseDelay:$.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:$.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:$.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:$.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:S,onSelect:S,onClick:S,onOpenChange:S,toggleIconPosition:"right",limitIndent:!0,prefixCls:x.PREFIX,subNavMotion:!0,mode:h.MODE_VERTICAL});function qe(){return u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.48092 0.748384C8.16727 0.653859 7.83272 0.653859 7.51907 0.748384C7.30423 0.813133 7.13028 0.92386 6.97716 1.04125C6.83512 1.15015 6.67675 1.2924 6.50211 1.44927L2.21784 5.29713C2.00105 5.49145 1.80997 5.66273 1.66845 5.87532C1.54419 6.062 1.4522 6.26826 1.39635 6.48545C1.33275 6.73279 1.333 6.9894 1.33329 7.28054L1.33333 12.4241C1.33331 12.6835 1.3333 12.9169 1.34917 13.1111C1.36616 13.3191 1.40462 13.5401 1.51499 13.7567C1.67477 14.0703 1.92974 14.3253 2.24335 14.485C2.45995 14.5954 2.68093 14.6339 2.88891 14.6509C3.08312 14.6667 3.31653 14.6667 3.57591 14.6667H12.4241C12.6835 14.6667 12.9169 14.6667 13.1111 14.6509C13.3191 14.6339 13.54 14.5954 13.7566 14.485C14.0703 14.3253 14.3252 14.0703 14.485 13.7567C14.5954 13.5401 14.6338 13.3191 14.6508 13.1111C14.6667 12.9169 14.6667 12.6835 14.6667 12.4241L14.6667 7.28053C14.667 6.9894 14.6672 6.73279 14.6036 6.48545C14.5478 6.26826 14.4558 6.062 14.3315 5.87532C14.19 5.66273 13.9989 5.49145 13.7822 5.29713L9.49788 1.44927C9.32325 1.2924 9.16488 1.15015 9.02284 1.04125C8.86971 0.923861 8.69577 0.813133 8.48092 0.748384ZM7.90381 2.025C7.96654 2.0061 8.03345 2.0061 8.09618 2.025C8.09682 2.02519 8.10364 2.0272 8.11997 2.0364C8.13837 2.04678 8.16717 2.06534 8.21161 2.0994C8.30743 2.17287 8.42696 2.27959 8.62365 2.45625L12.8467 6.24917C13.1328 6.50615 13.1858 6.56032 13.2216 6.61414C13.263 6.67637 13.2937 6.74512 13.3123 6.81752C13.3284 6.88014 13.3333 6.95575 13.3333 7.34034V12.4C13.3333 12.6911 13.3328 12.8692 13.3219 13.0025C13.3168 13.0646 13.3105 13.1022 13.3051 13.125C13.3025 13.1359 13.3004 13.1426 13.2991 13.1462C13.2979 13.1496 13.2971 13.1511 13.297 13.1514C13.265 13.2141 13.214 13.2651 13.1513 13.297C13.1511 13.2972 13.1496 13.2979 13.1461 13.2991C13.1425 13.3004 13.1359 13.3026 13.125 13.3051C13.1022 13.3105 13.0646 13.3169 13.0025 13.322C12.8692 13.3328 12.691 13.3334 12.4 13.3334H8.66667V8.50008C8.66667 8.31599 8.51743 8.16675 8.33333 8.16675H7.66667C7.48257 8.16675 7.33333 8.31599 7.33333 8.50008V13.3334H3.6C3.30897 13.3334 3.13079 13.3328 2.99749 13.322C2.93539 13.3169 2.89781 13.3105 2.875 13.3051C2.86414 13.3026 2.85747 13.3004 2.85386 13.2991C2.85039 13.2979 2.84894 13.2972 2.84867 13.297C2.78595 13.2651 2.73495 13.2141 2.70299 13.1514C2.70291 13.1512 2.70256 13.1505 2.70199 13.1491C2.70168 13.1483 2.70131 13.1474 2.70088 13.1462C2.69959 13.1426 2.69745 13.1359 2.69489 13.125C2.68952 13.1022 2.68315 13.0646 2.67807 13.0025C2.66718 12.8692 2.66666 12.6911 2.66666 12.4V7.34034C2.66666 6.95575 2.67157 6.88014 2.68767 6.81752C2.70629 6.74512 2.73695 6.67637 2.77837 6.61414C2.8142 6.56032 2.86717 6.50615 3.1533 6.24917L7.37634 2.45625C7.57304 2.27959 7.69256 2.17287 7.78839 2.0994C7.83282 2.06534 7.86162 2.04678 7.88003 2.0364C7.89635 2.0272 7.90317 2.02519 7.90381 2.025Z",fill:"black",fillOpacity:"0.65"})})}const Qe=()=>u.jsx(ee,{svg:u.jsx(qe,{})});function Je(){return u.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M5.33333 7.66675C5.14924 7.66675 5 7.51751 5 7.33341V6.66675C5 6.48265 5.14924 6.33341 5.33333 6.33341H10.6667C10.8508 6.33341 11 6.48265 11 6.66675V7.33341C11 7.51751 10.8508 7.66675 10.6667 7.66675H5.33333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M5.33333 10.6667C5.14924 10.6667 5 10.5175 5 10.3334V9.66675C5 9.48265 5.14924 9.33341 5.33333 9.33341H8.33333C8.51743 9.33341 8.66667 9.48265 8.66667 9.66675V10.3334C8.66667 10.5175 8.51743 10.6667 8.33333 10.6667H5.33333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.33333 0.666748C5.14924 0.666748 5 0.815986 5 1.00008V2.00013C4.01165 2.0009 3.49359 2.01346 3.09202 2.21807C2.71569 2.40982 2.40973 2.71578 2.21799 3.0921C2 3.51992 2 4.07998 2 5.20008V12.1334C2 13.2535 2 13.8136 2.21799 14.2414C2.40973 14.6177 2.71569 14.9237 3.09202 15.1154C3.51984 15.3334 4.0799 15.3334 5.2 15.3334H10.8C11.9201 15.3334 12.4802 15.3334 12.908 15.1154C13.2843 14.9237 13.5903 14.6177 13.782 14.2414C14 13.8136 14 13.2535 14 12.1334V5.20008C14 4.07998 14 3.51992 13.782 3.0921C13.5903 2.71578 13.2843 2.40982 12.908 2.21807C12.5064 2.01346 11.9883 2.0009 11 2.00013V1.00008C11 0.815986 10.8508 0.666748 10.6667 0.666748H10C9.81591 0.666748 9.66667 0.815986 9.66667 1.00008V2.00008H6.33333V1.00008C6.33333 0.815986 6.1841 0.666748 6 0.666748H5.33333ZM3.99498 3.35623C4.22961 3.33707 4.53372 3.33396 5 3.33349V4.00008C5 4.18418 5.14924 4.33341 5.33333 4.33341H6C6.1841 4.33341 6.33333 4.18418 6.33333 4.00008V3.33341H9.66667V4.00008C9.66667 4.18418 9.81591 4.33341 10 4.33341H10.6667C10.8508 4.33341 11 4.18418 11 4.00008V3.33349C11.4663 3.33396 11.7704 3.33707 12.005 3.35623C12.1292 3.36638 12.2044 3.37913 12.25 3.38988C12.2717 3.39499 12.2851 3.39927 12.2923 3.40185C12.2992 3.40432 12.3027 3.40608 12.3027 3.40608C12.4281 3.46999 12.5301 3.57198 12.594 3.69742C12.594 3.69742 12.5958 3.70087 12.5982 3.7078C12.6008 3.71502 12.6051 3.72837 12.6102 3.75008C12.621 3.79572 12.6337 3.87086 12.6438 3.99506C12.6656 4.26168 12.6667 4.61803 12.6667 5.20008V12.1334C12.6667 12.7155 12.6656 13.0718 12.6438 13.3384C12.6337 13.4626 12.621 13.5378 12.6102 13.5834C12.6051 13.6051 12.6008 13.6185 12.5982 13.6257C12.5969 13.6295 12.5958 13.632 12.5951 13.6337C12.5945 13.6351 12.594 13.6361 12.594 13.6361C12.5301 13.7615 12.4281 13.8635 12.3027 13.9274C12.3027 13.9274 12.2992 13.9292 12.2923 13.9316C12.2851 13.9342 12.2717 13.9385 12.25 13.9436C12.2044 13.9544 12.1292 13.9671 12.005 13.9773C11.7384 13.999 11.3821 14.0001 10.8 14.0001H5.2C4.61795 14.0001 4.26159 13.999 3.99498 13.9773C3.87078 13.9671 3.79563 13.9544 3.75 13.9436C3.72829 13.9385 3.71494 13.9342 3.70772 13.9316C3.70078 13.9292 3.69734 13.9274 3.69734 13.9274C3.5719 13.8635 3.46991 13.7615 3.406 13.6361C3.406 13.6361 3.40424 13.6326 3.40177 13.6257C3.39919 13.6185 3.39491 13.6051 3.38979 13.5834C3.37905 13.5378 3.3663 13.4626 3.35615 13.3384C3.33437 13.0718 3.33333 12.7155 3.33333 12.1334V5.20008C3.33333 4.61803 3.33437 4.26168 3.35615 3.99506C3.3663 3.87086 3.37905 3.79572 3.38979 3.75008C3.39491 3.72837 3.39919 3.71502 3.40177 3.7078C3.40424 3.70087 3.406 3.69742 3.406 3.69742C3.46991 3.57198 3.5719 3.46999 3.69734 3.40608C3.69734 3.40608 3.70078 3.40432 3.70772 3.40185C3.71494 3.39927 3.72829 3.39499 3.75 3.38988C3.79563 3.37913 3.87078 3.36638 3.99498 3.35623Z",fill:"black",fillOpacity:"0.65"})]})}const et=()=>u.jsx(ee,{svg:u.jsx(Je,{})});function tt(){return u.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7.16667C7.33518 7.16667 8.45466 6.24312 8.75446 5H14.6667C14.8508 5 15 4.85076 15 4.66667V4C15 3.81591 14.8508 3.66667 14.6667 3.66667H8.75446C8.45466 2.42355 7.33518 1.5 6 1.5C4.66482 1.5 3.54534 2.42355 3.24554 3.66667H1.33333C1.14924 3.66667 1 3.81591 1 4V4.66667C1 4.85076 1.14924 5 1.33333 5H3.24554C3.54534 6.24312 4.66482 7.16667 6 7.16667ZM7.5 4.33333C7.5 5.16176 6.82843 5.83333 6 5.83333C5.17157 5.83333 4.5 5.16176 4.5 4.33333C4.5 3.50491 5.17157 2.83333 6 2.83333C6.82843 2.83333 7.5 3.50491 7.5 4.33333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 14.5C11.3352 14.5 12.4547 13.5765 12.7545 12.3333H14.6667C14.8508 12.3333 15 12.1841 15 12V11.3333C15 11.1492 14.8508 11 14.6667 11H12.7545C12.4547 9.75688 11.3352 8.83333 10 8.83333C8.66482 8.83333 7.54534 9.75688 7.24554 11H1.33333C1.14924 11 1 11.1492 1 11.3333V12C1 12.1841 1.14924 12.3333 1.33333 12.3333H7.24554C7.54534 13.5765 8.66482 14.5 10 14.5ZM11.5 11.6667C11.5 12.4951 10.8284 13.1667 10 13.1667C9.17157 13.1667 8.5 12.4951 8.5 11.6667C8.5 10.8382 9.17157 10.1667 10 10.1667C10.8284 10.1667 11.5 10.8382 11.5 11.6667Z",fill:"black",fillOpacity:"0.65"})]})}const st=()=>u.jsx(ee,{svg:u.jsx(tt,{})});function nt(){return u.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M5.66666 2.66659C5.85076 2.66659 6 2.51735 6 2.33325V1.66659C6 1.48249 5.85076 1.33325 5.66666 1.33325H5.59999C4.10652 1.33325 3.35979 1.33325 2.78935 1.6239C2.28759 1.87956 1.87964 2.28751 1.62398 2.78928C1.33333 3.35971 1.33333 4.10645 1.33333 5.59992V5.66658C1.33333 5.85068 1.48257 5.99992 1.66666 5.99992H2.33333C2.51742 5.99992 2.66666 5.85068 2.66666 5.66658V5.59992C2.66666 4.83118 2.6677 4.33482 2.69856 3.95703C2.72816 3.59482 2.7784 3.46052 2.81199 3.3946C2.93982 3.14372 3.14379 2.93974 3.39467 2.81191C3.4606 2.77832 3.59489 2.72808 3.95711 2.69849C4.33489 2.66762 4.83126 2.66659 5.59999 2.66659H5.66666Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M14.6667 5.66658C14.6667 5.85068 14.5174 5.99992 14.3333 5.99992H13.6667C13.4826 5.99992 13.3333 5.85068 13.3333 5.66658V5.59992C13.3333 4.83118 13.3323 4.33482 13.3014 3.95703C13.2718 3.59482 13.2216 3.46052 13.188 3.3946C13.0602 3.14372 12.8562 2.93974 12.6053 2.81191C12.5394 2.77832 12.4051 2.72808 12.0429 2.69849C11.6651 2.66762 11.1687 2.66659 10.4 2.66659H10.3333C10.1492 2.66659 10 2.51735 10 2.33325V1.66659C10 1.48249 10.1492 1.33325 10.3333 1.33325H10.4C11.8935 1.33325 12.6402 1.33325 13.2106 1.6239C13.7124 1.87956 14.1203 2.28751 14.376 2.78928C14.6667 3.35971 14.6667 4.10645 14.6667 5.59992V5.66658Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M1.66666 9.99992C1.48257 9.99992 1.33333 10.1492 1.33333 10.3333V10.3999C1.33333 11.8934 1.33333 12.6401 1.62398 13.2106C1.87964 13.7123 2.28759 14.1203 2.78935 14.3759C3.35979 14.6666 4.10652 14.6666 5.59999 14.6666H5.66666C5.85076 14.6666 6 14.5173 6 14.3333V13.6666C6 13.4825 5.85076 13.3333 5.66666 13.3333H5.59999C4.83126 13.3333 4.33489 13.3322 3.95711 13.3013C3.59489 13.2718 3.4606 13.2215 3.39467 13.1879C3.14379 13.0601 2.93982 12.8561 2.81199 12.6052C2.7784 12.5393 2.72816 12.405 2.69856 12.0428C2.6677 11.665 2.66666 11.1687 2.66666 10.3999V10.3333C2.66666 10.1492 2.51742 9.99992 2.33333 9.99992H1.66666Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{d:"M10.3333 13.3333C10.1492 13.3333 10 13.4825 10 13.6666V14.3333C10 14.5173 10.1492 14.6666 10.3333 14.6666H10.4C11.8935 14.6666 12.6402 14.6666 13.2106 14.3759C13.7124 14.1203 14.1203 13.7123 14.376 13.2106C14.6667 12.6401 14.6667 11.8934 14.6667 10.3999V10.3333C14.6667 10.1492 14.5174 9.99992 14.3333 9.99992H13.6667C13.4826 9.99992 13.3333 10.1492 13.3333 10.3333V10.3999C13.3333 11.1687 13.3323 11.665 13.3014 12.0428C13.2718 12.405 13.2216 12.5393 13.188 12.6052C13.0602 12.8561 12.8562 13.0601 12.6053 13.1879C12.5394 13.2215 12.4051 13.2718 12.0429 13.3013C11.6651 13.3322 11.1687 13.3333 10.4 13.3333H10.3333Z",fill:"black",fillOpacity:"0.65"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.17159 10.1144C8.64463 10.4634 8.01272 10.6667 7.33333 10.6667C5.49238 10.6667 3.99999 9.17428 3.99999 7.33333C3.99999 5.49238 5.49238 4 7.33333 4C9.17428 4 10.6667 5.49238 10.6667 7.33333C10.6667 8.01272 10.4634 8.64464 10.1144 9.17159L11.7357 10.7929C11.8659 10.9231 11.8659 11.1341 11.7357 11.2643L11.2643 11.7357C11.1341 11.8659 10.9231 11.8659 10.7929 11.7357L9.17159 10.1144ZM9.33333 7.33333C9.33333 8.4379 8.4379 9.33333 7.33333 9.33333C6.22876 9.33333 5.33333 8.4379 5.33333 7.33333C5.33333 6.22876 6.22876 5.33333 7.33333 5.33333C8.4379 5.33333 9.33333 6.22876 9.33333 7.33333Z",fill:"black",fillOpacity:"0.65"})]})}const ot=()=>u.jsx(ee,{svg:u.jsx(nt,{})}),te=[{text:W("scanQRCode2Debug"),itemKey:"scan_qrcode",icon:u.jsx(Qe,{}),path:"/"},{itemKey:"launch_mode",text:W("launchMode"),icon:u.jsx(st,{}),path:"/launch_mode"},{itemKey:"precheck_code",text:W("codePreCheck"),icon:u.jsx(ot,{}),path:"/precheck_code"},{itemKey:"project_info",text:W("projectInfo"),icon:u.jsx(et,{}),path:"/project_detail"},{itemKey:"changelog",text:W("changelog"),icon:u.jsx(Fe,{size:"default",style:{fontWeight:"300",color:"#666"}}),path:"/changelog"}],at=()=>{const{state:{devToolVersion:p}}=Me(),t=Le(),[e,s]=b.useState("scan_qrcode"),[n,i]=b.useState(!1);b.useEffect(()=>{i(Re(p))},[p]);const l=b.useMemo(()=>te.map(c=>c.itemKey==="changelog"?{...c,text:u.jsxs("span",{className:"sidebar-changelog-label",children:[c.text,n&&u.jsx(Ve,{className:"sidebar-changelog-new-tag",color:"red",shape:"circle",size:"small",type:"solid",children:"NEW"})]})}:c),[n]),r=c=>{const d=te.find(m=>m.itemKey===c.itemKey);d&&(d.itemKey==="changelog"&&p&&(ke(p),i(!1)),t(d.path),s(d.itemKey))};return b.useEffect(()=>{const c=window.location.pathname,d=te.find(m=>m.path===c);s(d?d.itemKey:"")},[t]),u.jsx(A,{limitIndent:!1,bodyStyle:{height:"100vh",paddingLeft:"12px",width:"100%"},items:l,selectedKeys:[e],onSelect:r})};export{at as Sidebar};